/*! jQuery UI - v1.12.1 - 2019-06-02
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var l=0,h=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=h.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=h.call(arguments,1),r=this;return o?this.length||"instance"!==n?this.each(function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),I=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=I[0],D.top+=I[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+I[0],u[1]+I[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(i,s){var n,o,a,r,l,h=i.nodeName.toLowerCase();return"area"===h?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(h)?(r=!i.disabled,r&&(l=t(i).closest("fieldset")[0],l&&(r=!l.disabled))):r="a"===h?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var c=!1;t(document).on("mouseup",function(){c=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!c){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),c=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,c=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)
},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(r).scrollTop()<n.scrollSensitivity?o=t(r).scrollTop(t(r).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<n.scrollSensitivity&&(o=t(r).scrollTop(t(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(r).scrollLeft()<n.scrollSensitivity?o=t(r).scrollLeft(t(r).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<n.scrollSensitivity&&(o=t(r).scrollLeft(t(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,s){var n,o,a,r,l,h,c,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.left,_=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)l=s.snapElements[d].left-s.margins.left,h=l+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElements[d].height,l-g>_||m>h+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(l-_),r=g>=Math.abs(h-m),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>=Math.abs(u-b),a=g>=Math.abs(l-m),r=g>=Math.abs(h-_),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&u(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var u=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,l=a+e.helperProportions.height,h=i.offset.left,c=i.offset.top,u=h+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=h&&u>=r&&a>=c&&d>=l;case"intersect":return o+e.helperProportions.width/2>h&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,h,i.proportions().width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(o>=h&&u>=o||r>=h&&u>=r||h>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&u(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=u(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,l=this._change[o];return this._updatePrevProperties(),l?(i=l.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,l,h=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),n&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(d,"left")?d.scrollWidth:o,r=l._hasScroll(d)?d.scrollHeight:n,l.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?l.left:0),h.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-l.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};
t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,h=l[0]||1,c=l[1]||1,u=Math.round((n.width-o.width)/h)*h,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWidth&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=l,_&&(p+=h),v&&(f+=c),g&&(p-=h),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-h)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-h>0?(i.size.width=p,i.position.left=a.left-u):(p=h-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:s.left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting":"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,l=e.pageY;return o>r&&(i=r,r=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),h=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.elementPos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"===n.tolerance?h=!(c.left>r||o>c.right||c.top>l||a>c.bottom):"fit"===n.tolerance&&(h=c.left>o&&r>c.right&&c.top>a&&l>c.bottom),h?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+h>r&&l>s+h,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],l=[],h=this._connectWith();if(h&&e)for(s=h.length-1;s>=0;s--)for(o=t(h[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=l.length-1;s>=0;s--)l[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,h=r.length;h>s;s++)l=t(r[s]),l.data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t("<td>&#160;</td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,l,h,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(l=this.items[s].item.offset()[a],h=!1,e[u]-l>this.items[s][r]/2&&(h=!0),n>Math.abs(e[u]-l)&&(n=Math.abs(e[u]-l),o=this.items[s],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,s=this.options.icons;s&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+s.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._addClass(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons"))
},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void 0)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uniqueId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n.height(),this.element.siblings(":visible").each(function(){var i=t(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,s,n=this.options,o=this.active,a=t(e.currentTarget),r=a[0]===o[0],l=r&&n.collapsible,h=l?t():a.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:l?t():a,newPanel:h};e.preventDefault(),r&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=l?!1:this.headers.index(a),this.active=r?t():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},u=h&&c.down||c,d=function(){a._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=n||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),t.hide().animate(this.showProps,{duration:o,easing:n,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(r+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(s-e.outerHeight()-r),r=0)}}),void 0):e.animate(this.hideProps,o,n,d):t.animate(this.showProps,o,n,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var d=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(s,n){var o,a={};return n?"controlgroupLabel"===s?(o=e.element.find(n),o.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(o.get()),void 0):(t.fn[s]&&(a=e["_"+s+"Options"]?e["_"+s+"Options"]("middle"):{classes:{}},e.element.find(n).each(function(){var n=t(this),o=n[s]("instance"),r=t.widget.extend({},a);if("button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(r.classes=e._resolveClassesValues(r.classes,o)),n[s](r);var l=n[s]("widget");t.data(l[0],"ui-controlgroup-data",o?o:n[s]("instance")),i.push(l[0])}})),void 0):void 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),s=i.data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",s=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,s)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var s={};return t.each(e,function(n){var o=i.options.classes[n]||"";o=t.trim(o.replace(d,"")),s[n]=(o+" "+e[n]).replace(/\s+/g," ")}),s},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?(this._callChildMethod(e?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,s){var n=e[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===e.length?"only":s);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[s](),s)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,s=this,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){s.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(n.disabled=e),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,s="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(s):t(s).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e,void 0):(this.refresh(),void 0)):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)
},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var s="iconPosition"!==e,n=s?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,i),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?(this._super("showLabel",e),void 0):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments),void 0)}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}});var p;t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.on("focus",this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,n,o){var r,l,h,c,u,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),a(d.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,h/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),p===n&&(p=null))},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,s){var n,o,r,l,h=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):h?"all"===i?t.extend({},h.settings):this._get(h,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),h&&(this._curInst===h&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(h,"min"),l=this._getMinMaxDate(h,"max"),a(h.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(h.settings.minDate=this._formatDate(h,r)),null!==l&&void 0!==n.dateFormat&&void 0===n.maxDate&&(h.settings.maxDate=this._formatDate(h,l)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),h),this._autoSize(h),this._setDate(h,o),this._updateAlternate(h),this._updateDatepicker(h)),void 0)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,s,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var s,n,o,r,l,h,c;s=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==s&&(t.datepicker._curInst.dpDiv.stop(!0,!0),s&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(s,"beforeShow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(s),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(s),l=t.datepicker._checkOffset(s,l,r),s.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),s.inline||(h=t.datepicker._get(s,"showAnim"),c=t.datepicker._get(s,"duration"),s.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?s.dpDiv.show(h,t.datepicker._get(s,"showOptions"),c):s.dpDiv[h||"show"](h?c:null),t.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),t.datepicker._curInst=s))}},_updateDatepicker:function(e){this.maxRows=4,p=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),h=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+o>h&&h>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,o,a,r,l=0,h=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),u=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},w=function(t){var e=y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=RegExp("^\\d{"+n+","+s+"}"),a=i.substring(l).match(o);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},k=function(e,s,n){var o=-1,a=t.map(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(l,s.length).toLowerCase()===s.toLowerCase()?(o=e[0],l+=s.length,!1):void 0}),-1!==o)return o+1;throw"Unknown name at position "+l},x=function(){if(i.charAt(l)!==e.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;e.length>n;n++)if(b)"'"!==e.charAt(n)||y("'")?x():b=!1;else switch(e.charAt(n)){case"d":_=w("d");break;case"D":k("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=k("M",p,f);break;case"y":g=w("y");break;case"@":r=new Date(w("@")),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"!":r=new Date((w("!")-this._ticksTo1970)/1e4),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"'":y("'")?x():b=!0;break;default:x()}if(i.length>l&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(r=this._daylightSavingAdjust(new Date(g,m-1,_)),r.getFullYear()!==g||r.getMonth()+1!==m||r.getDate()!==_)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},h=function(t,e,i){var s=""+e;if(l(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return l(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||l("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=h("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=h("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=h("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=l.exec(i);h;){switch(h[2]||"d"){case"d":case"D":r+=parseInt(h[1],10);break;case"w":case"W":r+=7*parseInt(h[1],10);break;case"m":case"M":a+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}h=l.exec(i)}return new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,l,h,c,u,d,p,f,g,m,_,v,b,y,w,k,x,C,D,I,P,T,M,S,H,z,O,A,N,E,W,F,L,R=new Date,B=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),Y=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),$=1!==U[0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),e=Q&&Q>e?Q:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-X,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+X,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?G:B,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",h=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?l:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(Y?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),I=" ui-corner-all",P="",$){if(P+="<div class='ui-datepicker-group",U[1]>1)switch(C){case 0:P+=" ui-datepicker-group-first",I=" ui-corner-"+(Y?"right":"left");
break;case U[1]-1:P+=" ui-datepicker-group-last",I=" ui-corner-"+(Y?"left":"right");break;default:P+=" ui-datepicker-group-middle",I=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===k?Y?o:s:"")+(/all|right/.test(I)&&0===k?Y?s:o:"")+this._generateMonthYearHeader(t,Z,te,Q,J,k>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",T=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)M=(w+c)%7,T+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[M]+"'>"+p[M]+"</span></th>";for(P+=T+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),H=(this._getFirstDayOfMonth(te,Z)-c+7)%7,z=Math.ceil((H+S)/7),O=$?this.maxRows>z?this.maxRows:z:z,this.maxRows=O,A=this._daylightSavingAdjust(new Date(te,Z,1-H)),N=0;O>N;N++){for(P+="<tr>",E=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(A)+"</td>":"",w=0;7>w;w++)W=m?m.apply(t.input?t.input[0]:null,[A]):[!0,""],F=A.getMonth()!==Z,L=F&&!v||!W[0]||Q&&Q>A||J&&A>J,E+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(A.getTime()===D.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===A.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!_?"":" "+W[1]+(A.getTime()===G.getTime()?" "+this._currentClass:"")+(A.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&&!_||!W[2]?"":" title='"+W[2].replace(/'/g,"&#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-year='"+A.getFullYear()+"'")+">"+(F&&!_?"&#xa0;":L?"<span class='ui-state-default'>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===B.getTime()?" ui-state-highlight":"")+(A.getTime()===G.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDate(A.getDate()+1),A=this._daylightSavingAdjust(A);P+=E+"</tr>"}Z++,Z>11&&(Z=0,te++),P+="</tbody></table>"+($?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=P}y+=x}return y+=h,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=s.getMonth())&&(!h||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&_?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!_)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(o).appendTo(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,o){var a=o.offset.left-i.document.scrollLeft(),r=o.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" "+"top"+(r>=0?"+":"")+r,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(s,n){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){var a=i.uiDialog.offset(),r=a.left-i.document.scrollLeft(),l=a.top-i.document.scrollTop();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,s=!1,n={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(e,i){var s,n,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(s=o.is(":data(ui-draggable)"),s&&!i&&o.draggable("destroy"),!s&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(n=o.is(":data(ui-resizable)"),n&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||i===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshValue(),void 0)},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,s=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var s=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&s.index!==e.focusIndex&&(e._trigger("focus",t,{item:s}),e.isOpen||e._select(s,t)),e.focusIndex=s.index,e.button.attr("aria-activedescendant",e.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var s=this,n="";t.each(i,function(i,o){var a;o.optgroup!==n&&(a=t("<li>",{text:o.optgroup}),s._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),n=o.optgroup),s._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var s=t("<li>"),n=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setText(n,i.label),s.append(n).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0),s.length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?(this.button.css("width",""),void 0):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t),void 0)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,s=[];e.each(function(e,n){s.push(i._parseOption(t(n),e))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)
},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,l,h,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),l=o.offset(),h=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=n-1;s>=0;s--)this._change(null,s);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,s=Math.round((t-e)/i)*i;t=s+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,l=this,h=this._animateOff?!1:r.animate,c={};this._hasMultipleValues()?this.handles.each(function(s){i=100*((l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())),c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[h?"animate":"css"](c,r.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&l.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&l.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,s,n,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),i=this._start(e,a),i===!1))return}switch(o=this.options.step,s=n=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignValue(s-o)}this._slide(e,a,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,s=t.ui.keyCode;switch(e.keyCode){case s.UP:return this._repeat(null,1,e),!0;case s.DOWN:return this._repeat(null,-1,e),!0;case s.PAGE_UP:return this._repeat(null,i.page,e),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=Math.round(i/s.step)*s.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,s,n;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i)),void 0):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e),void 0)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:r(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:r(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:r(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:r(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:r(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?(r(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.uiBackCompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,s;i=e.href.replace(t,""),s=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s)}catch(n){}return e.hash.length>1&&i===s}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===e&&(s&&this.tabs.each(function(i,n){return t(n).attr("aria-controls")===s?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:s++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:n=!1,s--;break;case t.ui.keyCode.END:s=this.anchors.length-1;break;case t.ui.keyCode.HOME:s=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}e.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e),void 0)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,s){var n,o,a,r=t(s).uniqueId().attr("id"),l=t(s).closest("li"),h=l.attr("aria-controls");e._isLocal(s)?(n=s.hash,a=n.substring(1),o=e.element.find(e._sanitizeSelector(n))):(a=l.attr("aria-controls")||t({}).uniqueId()[0].id,n="#"+a,o=e.element.find(n),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),h&&l.data("ui-tabs-aria-controls",h),l.attr({"aria-controls":a,"aria-labelledby":r}),o.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,s,n;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;s=this.tabs[n];n++)i=t(s),e===!0||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n.closest("li"),a=o[0]===s[0],r=a&&i.collapsible,l=r?t():this._getPanelForTab(o),h=s.length?this._getPanelForTab(s):t(),c={oldTab:s,oldPanel:h,newTab:r?t():o,newPanel:l};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),h.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var s=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),r={tab:n,panel:a},l=function(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){a.html(t),s._trigger("load",i,r),l(n,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var s=(e.attr("aria-describedby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(s.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,s);-1!==n&&s.splice(n,1),e.removeData("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s.element[0],e.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(function(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(e,s),this._updateContent(s,e))},_updateContent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s||s.nodeType||s.jquery?this._open(e,t,s):(i=s.call(t[0],function(i){n._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}),i&&this._open(e,t,i),void 0)},_open:function(e,i,s){function n(t){h.of=t,a.is(":hidden")||a.position(h)}var o,a,r,l,h=t.extend({},this.options.position);if(s){if(o=this._find(i))return o.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),a=o.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),l=t("<div>").html(a.find(".ui-tooltip-content").html()),l.removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(n(h.of),clearInterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var s=t.Event(e);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this._on(!0,i,s)},close:function(e){var i,s=this,n=t(e?e.currentTarget:this.element),o=this._find(n);return o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(t(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]
}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1)),void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),s=t("<div>").appendTo(i),n=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur"),o=s.element;n.target=n.currentTarget=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var f="ui-effects-",g="ui-effects-style",m="ui-effects-animated",_=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=h(),n=s._rgba=[];return i=i.toLowerCase(),f(l,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),h=o.space||"rgba";return l?(a=s[h](l),s[c[h].cache]=a[c[h].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(n,a,r,l){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,l],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof h?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=h(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=h(t),n=s._space(),o=c[n],a=0===this.alpha()?h("transparent"):this,r=a[o.cache]||o.to(a._rgba),l=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],h=s[o],c=u[n.type]||{};null!==h&&(null===a?l[o]=h:(c.mod&&(h-a>c.mod/2?a+=c.mod:a-h>c.mod/2&&(a-=c.mod)),l[o]=i((h-a)*e+a,n)))}),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=h(e)._rgba;return h(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,l=n.to,c=n.from;h.fn[s]=function(s){if(l&&!this[a]&&(this[a]=l(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=h(c(d)),n[a]=d,n):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,a=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=h(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(_),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFloat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(_.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function s(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(m)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,s=e.length;s>i;i++)null!==e[i]&&t.data(f+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;n>s;s++)null!==e[s]&&(i=t.data(f+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(g,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(g)||"",t.removeData(g)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(e){var i,s=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(f+"placeholder",i)),e.css({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=f+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){r.removeData(m),t.effects.cleanUp(r),"hide"===s.mode&&r.hide(),a()}function a(){t.isFunction(l)&&l.call(r[0]),t.isFunction(e)&&e()}var r=t(this);s.mode=c.shift(),t.uiBackCompat===!1||o?"none"===s.mode?(r[h](),a()):n.call(r[0],s,i):(r.is(":hidden")?"hide"===h:"show"===h)?(r[h](),a()):n.call(r[0],s,a)}var s=e.apply(this,arguments),n=t.effects.effect[s.effect],o=n.mode,a=s.queue,r=a||"fx",l=s.complete,h=s.mode,c=[],u=function(e){var i=t(this),s=t.effects.mode(i,h)||o;i.data(m,!0),c.push(s),o&&("show"===s||s===o&&"hide"===s)&&i.show(),o&&"none"===s||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?h?this[h](s.duration,l):this.each(function(){l&&l.call(this)}):a===!1?this.each(u).each(i):this.queue(r,u).queue(r,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();var v=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},l=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),l&&l.css(t.effects.clipToBox(r)),r.clip=a),l&&l.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,l="hide"===r,h="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(h||l?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),h&&(n={opacity:1},n[m]=o,a.css("opacity",0).css(m,_?2*-u:2*u).animate(n,f,g)),l&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=l?2*u:u/2;l&&(s={opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e.direction||"vertical",r="both"===a,l=r||"horizontal"===a,h=r||"vertical"===a;s=o.cssClip(),n.clip={top:h?(s.bottom-s.top)/2:s.top,right:l?(s.right-s.left)/2:s.right,bottom:h?(s.bottom-s.top)/2:s.bottom,left:l?(s.right-s.left)/2:s.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r?"-=":"+=",c="+="===h?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,u[l]=h+s,a&&(n.css(u),u[l]=c+s,u.opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}var o,a,r,l,h,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(l=m.top+o*v,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,h=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:r+(g?h*_:0),top:l+(g?c*v:0),opacity:g?0:1}).animate({left:r+(g?0:h*_),top:l+(g?0:c*v),opacity:g?1:0},e.duration||500,e.easing,s)}),t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=e.size||15,l=/([0-9]+)%/.exec(r),h=!!e.horizFirst,c=h?["right","bottom"]:["bottom","right"],u=e.duration/2,d=t.effects.createPlaceholder(s),p=s.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)},m=[p[c[0]],p[c[1]]],_=s.queue().length;l&&(r=parseInt(l[1],10)/100*m[a?0:1]),f.clip[c[0]]=r,g.clip[c[0]]=r,g.clip[c[1]]=0,o&&(s.cssClip(g.clip),d&&d.css(t.effects.clipToBox(g)),g.clip=p),s.queue(function(i){d&&d.animate(t.effects.clipToBox(f),u,e.easing).animate(t.effects.clipToBox(g),u,e.easing),i()}).animate(f,u,e.easing).animate(g,u,e.easing).queue(i),t.effects.unshift(s,_,4)}),t.effects.define("highlight","show",function(e,i){var s=t(this),n={backgroundColor:s.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var s,n,o,a=t(this),r=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,u="effect"!==c,d=e.scale||"both",p=e.origin||["middle","center"],f=a.css("position"),g=a.position(),m=t.effects.scaledDimensions(a),_=e.from||m,v=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(o=_,_=v,v=o),n={from:{y:_.height/m.height,x:_.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},("box"===d||"both"===d)&&(n.from.y!==n.to.y&&(_=t.effects.setTransition(a,l,n.from.y,_),v=t.effects.setTransition(a,l,n.to.y,v)),n.from.x!==n.to.x&&(_=t.effects.setTransition(a,h,n.from.x,_),v=t.effects.setTransition(a,h,n.to.x,v))),("content"===d||"both"===d)&&n.from.y!==n.to.y&&(_=t.effects.setTransition(a,r,n.from.y,_),v=t.effects.setTransition(a,r,n.to.y,v)),p&&(s=t.effects.getBaseline(p,m),_.top=(m.outerHeight-_.outerHeight)*s.y+g.top,_.left=(m.outerWidth-_.outerWidth)*s.x+g.left,v.top=(m.outerHeight-v.outerHeight)*s.y+g.top,v.left=(m.outerWidth-v.outerWidth)*s.x+g.left),a.css(_),("content"===d||"both"===d)&&(l=l.concat(["marginTop","marginBottom"]).concat(r),h=h.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var i=t(this),s=t.effects.scaledDimensions(i),o={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},a={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x};n.from.y!==n.to.y&&(o=t.effects.setTransition(i,l,n.from.y,o),a=t.effects.setTransition(i,l,n.to.y,a)),n.from.x!==n.to.x&&(o=t.effects.setTransition(i,h,n.from.x,o),a=t.effects.setTransition(i,h,n.to.x,a)),u&&t.effects.saveStyle(i),i.css(o),i.animate(a,e.duration,e.easing,function(){u&&t.effects.restoreStyle(i)})})),a.animate(v,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===v.opacity&&a.css("opacity",_.opacity),u||(a.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}})}),t.effects.define("scale",function(e,i){var s=t(this),n=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(s),to:t.effects.scaledDimensions(s,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,i)}),t.effects.define("puff","hide",function(e,i){var s=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,s,i)}),t.effects.define("pulsate","show",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=o||a,l=2*(e.times||5)+(r?1:0),h=e.duration/l,c=0,u=1,d=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),c=1);l>u;u++)s.animate({opacity:c},h,e.easing),c=1-c;s.animate({opacity:c},h,e.easing),s.queue(i),t.effects.unshift(s,d,l+1)}),t.effects.define("shake",function(e,i){var s=1,n=t(this),o=e.direction||"left",a=e.distance||20,r=e.times||3,l=2*r+1,h=Math.round(e.duration/l),c="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},g=n.queue().length;for(t.effects.createPlaceholder(n),d[c]=(u?"-=":"+=")+a,p[c]=(u?"+=":"-=")+2*a,f[c]=(u?"-=":"+=")+2*a,n.animate(d,h,e.easing);r>s;s++)n.animate(p,h,e.easing).animate(f,h,e.easing);n.animate(p,h,e.easing).animate(d,h/2,e.easing).queue(i),t.effects.unshift(n,g,l+1)}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=e.distance||o["top"===h?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[h],d[h]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[l][1]]=d.clip[a[l][0]],"show"===r&&(o.cssClip(d.clip),o.css(h,d[h]),d.clip=s,d[h]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var v;t.uiBackCompat!==!1&&(v=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)}))});
$(document).ready(function(){$(".search-navigator").first().css("min-height",$(".content-lister table").first().css("height"))});
$.widget("msci.categoryOpenClose",{_create:function(){this._addHandles();this._openHighlighted()},_addHandles:function(){$("li",this.element).each(function(nr,li){var hasChildren=$("ul",li).length>0;if(hasChildren){$(li).prepend('\x3cspan class\x3d"icon-plus handle"\x3e\x3c/span\x3e');$("ul",li).hide()}});$(".handle",this.element).click(this._handleClick)},_openHighlighted:function(){$(".highlighted",this.element).parents("li").children(".handle").addClass("icon-minus").siblings("ul").show()},_handleClick:function(){$(this).toggleClass("icon-minus").siblings("ul").toggle()}});
$.widget("msci.searchHandler",{_create:function(){var $element=$(this.element);$element.on("click",".js-cmd-search",$.proxy(this._searchButtonClicked,this));$element.on("click","li[data-value]",$.proxy(this._liClicked,this));$element.on("click",".js-cmd-search-clear",$.proxy(this._clearSearch,this));$element.on("keypress","input[name\x3dkeywords], input[data-send]",$.proxy(this._keywordsKeypress,this));$element.on("click","*[data-searchfield]",$.proxy(this._searchLinkClick,this));this._setConversionListener();
if(this.options.isInfiniteScrollEnabled=="true"){this._setScrollListener();this._newSearch({});this.searchFields={}}else this._toggleExpandableFilters(true);if(this.options.isAutocompleteEnabled=="true")this._setAutocomplete(this.options.isAutocompleteFastNavigate)},_toggleExpandableFilters:function(slide){if($(".cw-toggler-content input[type\x3dcheckbox]:checked",this.element).length>0){var btn=$(".cw-toggler-clicker",this.element);var togglerId="#"+btn.data("cw_toggler_content");var toggler=$(togglerId,
this.element);if(slide==true)setTimeout(function(){toggler.slideToggle().css({display:"block"}).addClass("open");btn.addClass("open")},300);else{toggler.css({display:"block"}).addClass("open");btn.addClass("open")}}},_searchLinkClick:function(e){e.stopPropagation();e.preventDefault();var searchStart={};var link=$(e.currentTarget);searchStart[link.data("searchfield")]=[link.data("searchvalue")];if(this.options.isInfiniteScrollEnabled=="true")$("*[data-field]").each(function(i,fieldEl){var fieldName=
$(fieldEl).data("field");if(fieldName==link.data("searchfield")){var selectedOptions=$("select:not([data-send]) option:selected",fieldEl);selectedOptions.each(function(key,selectedOption){var value=$(selectedOption).val();if(value)if($(fieldEl).data("ismulti"))if(!searchStart[fieldName].includes(value))searchStart[fieldName].push(value)});var clickedOption=$("select:not([data-send]) option[value\x3d"+link.data("searchvalue")+"]",fieldEl);clickedOption.prop("selected",true)}});this._newSearch(searchStart)},
_searchButtonClicked:function(e){e.stopPropagation();e.preventDefault();this._clearFilters();this._newSearch({})},_selectChange:function(e){this._newSearch({})},_keywordsKeypress:function(e){if(e.which==13){this._clearFilters();this._newSearch({})}},_liClicked:function(e){e.stopPropagation();e.preventDefault();$(e.currentTarget).toggleClass("selected");this._newSearch({})},_clearSearch:function(e){e.stopPropagation();e.preventDefault();var currentURL=this.options.searchUrl.substr(0,this.options.searchUrl.indexOf("?"));
document.location=currentURL},_invokeSearch:function(searchFields,isFacetSearch){if(searchFields==null)searchFields={};if(isFacetSearch==null)isFacetSearch=false;$("*[data-field]").each(function(i,fieldEl){var fieldName=$(fieldEl).data("field");var selectedOptions=$("select:not([data-send]) option:selected",fieldEl);selectedOptions.each(function(key,selectedOption){var value=$(selectedOption).val();if(value)if(!searchFields[fieldName])searchFields[fieldName]=[value];else if($(fieldEl).data("ismulti"))if(!searchFields[fieldName].includes(value))searchFields[fieldName].push(value)});
var selectedLis=$("li[data-value].selected",fieldEl);selectedLis.each(function(key,selectedLi){var value=$(selectedLi).data("value");if(value){if(!searchFields[fieldName])searchFields[fieldName]=[];if(!searchFields[fieldName].includes(value))searchFields[fieldName].push(value)}});var textBoxes=$("*[data-send]",fieldEl);if(textBoxes.length>0){searchFields[fieldName]=[];textBoxes.each(function(key,input){var value=$(input).val();if(value)if(!searchFields[fieldName].includes(value)||fieldName=="lastModification")searchFields[fieldName].push(value)})}var checkedValues=
$("input[type\x3dcheckbox]:checked",fieldEl);checkedValues.each(function(key,selectedOption){var value=$(selectedOption).val();if(value){if(!searchFields[fieldName])searchFields[fieldName]=[];if(value)if(!searchFields[fieldName].includes(value))searchFields[fieldName].push(value)}})});if("lastModification"in searchFields){if(searchFields["lastModification"][0]=="MM"&&searchFields["lastModification"][1]!="YYYY")searchFields["lastModification"][0]="1";if(searchFields["lastModification"][0]!="MM"&&searchFields["lastModification"][1]==
"YYYY"){var todayDate=new Date;var currentMonth=todayDate.getMonth();if(currentMonth<searchFields["lastModification"][0]){var lastYear=todayDate.getFullYear()-1;searchFields["lastModification"][1]=lastYear.toString()}else searchFields["lastModification"][1]=todayDate.getFullYear().toString()}if(searchFields["lastModification"][2]=="MM"&&searchFields["lastModification"][3]!="YYYY")searchFields["lastModification"][2]="12";if(searchFields["lastModification"][2]!="MM"&&searchFields["lastModification"][3]==
"YYYY"){var todayDate=new Date;var currentMonth=todayDate.getMonth();searchFields["lastModification"][3]=todayDate.getFullYear().toString()}}var keywords=$("input[name\x3dkeywords]",this.element).val();var sort_by=$("select[name\x3dsort_by]",this.element).val();var order=$("select[name\x3dorder]",this.element).val();var results=$("select[name\x3dresults]",this.element).val();if(keywords){searchFields.keywords=keywords;if(this.options.isExactSearchValue=="true")if(keywords[0]!='"'&&keywords[keywords.length-
1]!='"')searchFields.keywords='"'+keywords+'"'}if(sort_by){searchFields.sort_by=sort_by;if(order)searchFields.order=order}if(results)searchFields.results=results;this.searchFields=searchFields;searchFields=JSON.stringify(searchFields);if(isFacetSearch==true)this._updateExpandableFacets(searchFields);else this._search(searchFields)},_search:function(searchFields){if(this.options.isInfiniteScrollEnabled=="true"){if(this.hasMore==true){this._getSuggestion(searchFields);this._searchAjax(searchFields,
this.options.isSuggestEnabled!="true")}}else{var url=this.options.searchUrl.replace("SEARCHPLACEHOLDER",encodeURIComponent(searchFields));document.location=url}},_searchAjax:function(searchFields){var widget=this;var rowsContainer=$(".msci-search-result-container");var isInitialSearch=this.isInitialSearch;var searchParamName=this.options.portletNamespace+"search";var pageParamName=this.options.portletNamespace+"page";var useOriginalKeywordsParamName=this.options.portletNamespace+"useOriginalKeywords";
var params={};params[searchParamName]=searchFields;params[pageParamName]=this.ajaxPageCount;params[useOriginalKeywordsParamName]=this.useOriginalKeywords;$.ajax({url:this.options.ajaxSearchURL,data:params,async:false,success:function(rows){var noResultDiv=$("#"+widget.options.portletNamespace+"noResultDiv");if(isInitialSearch==true)rowsContainer.empty();if(rows.length==0){widget.hasMore=false;if(isInitialSearch==true)noResultDiv.removeClass("hide")}else{noResultDiv.addClass("hide");rowsContainer.append(rows)}widget._setConversionListener()},
complete:function(){$("#"+widget.options.portletNamespace+"-listerOuter .infinite-search-anim").hide();widget.loading=false},error:function(jqXHR,status,err){console.log(err)}});this.ajaxPageCount+=1;this.isInitialSearch=false},_getSuggestion:function(searchFields){if(this.options.isSuggestEnabled=="true"&&this.isInitialSearch==true){var widget=this;var container=$(".msci-search-suggestion-container");var searchParamName=this.options.portletNamespace+"search";var params={};params[searchParamName]=
searchFields;$.ajax({url:this.options.ajaxSearchSuggestionURL,data:params,async:false,success:function(jsp){container.empty();container.append(jsp)}});var suggestLink=$("#"+this.options.portletNamespace+"suggestLink");suggestLink.click(function(event){event.preventDefault();widget.hasMore=true;widget.isInitialSearch=true;widget.ajaxPageCount=1;widget.useOriginalKeywords=true;widget._fillWindow({});container.empty()})}},_setScrollListener:function(){var win=$(window);var portletNamespace=this.options.portletNamespace;
var widget=this;win.scroll(function(){var lister=$("#"+portletNamespace+"-listerOuter");var listerPos=lister.offset().top+lister.outerHeight(true);var scrollBottom=win.scrollTop()+win.height();var isNearlyPageBottom=scrollBottom>=$(document).height()-15;var isListerBottom=scrollBottom>listerPos+30||isNearlyPageBottom;if(isListerBottom&&widget.hasMore&&!widget.loading){widget.loading=true;$("#"+portletNamespace+"-listerOuter .infinite-search-anim").show();setTimeout(function(){widget._fillWindow(widget.searchFields)},
300)}})},_newSearch:function(searchFields){this.hasMore=true;this.isInitialSearch=true;this.ajaxPageCount=1;this.useOriginalKeywords=this.options.isSuggestEnabled=="true"?false:true;this._fillWindow(searchFields);if(this.options.isExpandableFacetsEnabled=="true"&&this.options.isInfiniteScrollEnabled=="true")this._getExpandableFacets(searchFields)},_fillWindow:function(searchFields){var portletNamespace=this.options.portletNamespace;var lister=$("#"+portletNamespace+"-listerOuter");var listerPos;do{$("#"+
this.options.portletNamespace+"-listerOuter .infinite-search-anim").show();this._invokeSearch(jQuery.extend({},searchFields));listerPos=lister.offset().top+lister.outerHeight(true)}while($(window).height()+$(window).scrollTop()>=listerPos&&this.hasMore==true&&this.options.isInfiniteScrollEnabled=="true")},_getExpandableFacets:function(searchFields){this._invokeSearch(searchFields,true);this._setExpandableFacetListener();$('.msci-expandable-facets-container input[type\x3d"checkbox"], .msci-expandable-facets-container input[type\x3d"radio"], select').cw_fancy_forms();
this._toggleExpandableFilters(false)},_updateExpandableFacets:function(searchFields){var container=$(".msci-expandable-facets-container");var searchParamName=this.options.portletNamespace+"search";var pageParamName=this.options.portletNamespace+"page";var useOriginalKeywordsParamName=this.options.portletNamespace+"useOriginalKeywords";var params={};params[searchParamName]=searchFields;params[pageParamName]=this.ajaxPageCount;params[useOriginalKeywordsParamName]=this.useOriginalKeywords;$.ajax({url:this.options.ajaxExpandableFacetsURL,
data:params,async:false,success:function(jsp){container.empty();container.append(jsp)}})},_clearFilters:function(){if(this.options.isInfiniteScrollEnabled=="true"&&this.options.isExpandableFacetsEnabled=="true"){var facetContainer=$(".msci-expandable-facets-container");if(facetContainer)facetContainer.empty()}},_setExpandableFacetListener:function(){var widget=this;var facetCheckboxes=$(".cw-toggler-content input[type\x3dcheckbox]");facetCheckboxes.change(function(){widget._newSearch({})})},_setAutocomplete:function(isFastNavigate){var inputNode=
$("#"+this.options.portletNamespace+"-listerOuter #keyword");if(inputNode.length==0)inputNode=$("#"+this.options.portletNamespace+"-listerOuter #"+this.options.portletNamespace+"keywords");if(inputNode.length>0){var url=this.options.ajaxAutocompleteURL;var positionOfSearchFields=url.indexOf("\x26_extendedlister");if(positionOfSearchFields!=-1)url=url.substr(0,positionOfSearchFields);var termParamName=this.options.portletNamespace+"autocompleteTerm";inputNode.autocomplete({minLength:3,source:function(request,
response){var requestData={};requestData[termParamName]=inputNode.val();$.ajax({url:url,dataType:"json",data:requestData,success:function(data){response(data)}})},select:function(event,ui){if(isFastNavigate=="true")window.location.href=ui.item.url}})}},_setConversionListener:function(){var widget=this;var downloadLinks=$(".search-profile-link");downloadLinks.unbind("click");downloadLinks.click(function(event){var documentId=$(this).parents(".search-result").children("input[name\x3ddocumentId]").val();
var params={};var paramName=widget.options.portletNamespace+"documentId";params[paramName]=documentId;$.ajax({url:widget.options.resourceURLUpdateSearchProfile,async:false,data:params})})}});
$.widget("msci.facetHiddenInputHandler",{_create:function(){this.inputField=$(this.options.inputField);var oThis=this;this.element.delegate("*["+this.options.attribute+"]","click",function(e){oThis._clickItem(this);e.preventDefault()})},_clickItem:function(item){var clickedValue=$(item).attr(this.options.attribute);var values=this._getCurrentValues();var index=values.indexOf(clickedValue);if(index!=-1)values.splice(index,1);else values.push(clickedValue);this.inputField.val(values.join(","));this.inputField.parents("form").submit()},
_getCurrentValues:function(){var values=this.inputField.val();if(values=="")values=[];else values=values.split(",");return values}});
$.widget("msci.singleValueFacetHiddenInputHandler",{_create:function(){this.inputField=$(this.options.inputField);var oThis=this;this.element.delegate("*["+this.options.attribute+"]","click",function(e){oThis._clickItem(this);e.preventDefault()})},_clickItem:function(item){var clickedValue=$(item).attr(this.options.attribute);if(clickedValue==this.inputField.val())this.inputField.val("");else this.inputField.val(clickedValue);this.inputField.parents("form").submit()}});
function setCookie(name,value){var today=new Date;var exp=new Date(today.getTime()+ +180*24*3600*1E3);document.cookie=name+"\x3d"+escape(value)+"; path\x3d/; expires\x3d"+exp.toGMTString()}function getCookie(cname){var name=cname+"\x3d";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}
if($("select[name\x3dresults]")){if(getCookie("searchResults")!="")$("select[name\x3dresults]").val(getCookie("searchResults"));$("select[name\x3dresults]").change(function(){var val=$("select[name\x3dresults]").val();setCookie("searchResults",val)})};
(function(Q,K){"object"===typeof module&&module.exports?(K["default"]=K,module.exports=Q.document?K(Q):K):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return K(Q)}):(Q.Highcharts&&Q.Highcharts.error(16,!0),Q.Highcharts=K(Q))})("undefined"!==typeof window?window:this,function(Q){function K(d,k,w,D){d.hasOwnProperty(k)||(d[k]=D.apply(null,w))}var I={};K(I,"parts/Globals.js",[],function(){var d="undefined"!==typeof Q?Q:"undefined"!==typeof window?window:{},k=d.document,
w=d.navigator&&d.navigator.userAgent||"",D=k&&k.createElementNS&&!!k.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,H=/(edge|msie|trident)/i.test(w)&&!d.opera,E=-1!==w.indexOf("Firefox"),y=-1!==w.indexOf("Chrome"),C=E&&4>parseInt(w.split("Firefox/")[1],10);return{product:"Highcharts",version:"7.2.0",deg2rad:2*Math.PI/360,doc:k,hasBidiBug:C,hasTouch:!!d.TouchEvent,isMS:H,isWebKit:-1!==w.indexOf("AppleWebKit"),isFirefox:E,isChrome:y,isSafari:!y&&-1!==w.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(w),
SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:D,win:d,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}});K(I,"parts/Utilities.js",[I["parts/Globals.js"]],function(d){function k(c,a){return parseInt(c,a||10)}function w(c){return"string"===typeof c}function D(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function H(c,a){return!!c&&"object"===typeof c&&(!a||
!D(c))}function E(c){return H(c)&&"number"===typeof c.nodeType}function y(c){var a=c&&c.constructor;return!(!H(c,!0)||E(c)||!a||!a.name||"Object"===a.name)}function C(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function t(c){return"undefined"!==typeof c&&null!==c}function G(c,a,b){var f;w(a)?t(b)?c.setAttribute(a,b):c&&c.getAttribute&&((f=c.getAttribute(a))||"class"!==a||(f=c.getAttribute(a+"Name"))):u(a,function(a,b){c.setAttribute(b,a)});return f}function u(c,a,b){for(var f in c)Object.hasOwnProperty.call(c,
f)&&a.call(b||c[f],c[f],f,c)}d.timers=[];var l=d.charts,p=d.doc,q=d.win;d.error=function(c,a,b){var f=C(c)?"Highcharts error #"+c+": www.highcharts.com/errors/"+c:c,m=function(){if(a)throw Error(f);q.console&&console.log(f)};b?d.fireEvent(b,"displayError",{code:c,message:f},m):m()};d.Fx=function(c,a,b){this.options=a;this.elem=c;this.prop=b};d.Fx.prototype={dSetter:function(){var c=this.paths[0],a=this.paths[1],b=[],f=this.now,m=c.length;if(1===f)b=this.toD;else if(m===a.length&&1>f)for(;m--;){var h=
parseFloat(c[m]);b[m]=isNaN(h)?a[m]:f*parseFloat(""+(a[m]-h))+h}else b=a;this.elem.attr("d",b,null,!0)},update:function(){var c=this.elem,a=this.prop,b=this.now,f=this.options.step;if(this[a+"Setter"])this[a+"Setter"]();else c.attr?c.element&&c.attr(a,b,null,!0):c.style[a]=b+this.unit;f&&f.call(c,b,this)},run:function(c,a,b){var f=this,m=f.options,h=function(a){return h.stopped?!1:f.step(a)},r=q.requestAnimationFrame||function(a){setTimeout(a,13)},x=function(){for(var a=0;a<d.timers.length;a++)d.timers[a]()||
d.timers.splice(a--,1);d.timers.length&&r(x)};c!==a||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=c,this.end=a,this.unit=b,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&1===d.timers.push(h)&&r(x)):(delete m.curAnim[this.prop],m.complete&&0===Object.keys(m.curAnim).length&&m.complete.call(this.elem))},step:function(c){var a=+new Date,b=this.options,f=this.elem,m=b.complete,h=b.duration,d=b.curAnim;if(f.attr&&!f.element)c=!1;else if(c||a>=h+this.startTime){this.now=
this.end;this.pos=1;this.update();var x=d[this.prop]=!0;u(d,function(a){!0!==a&&(x=!1)});x&&m&&m.call(f);c=!1}else this.pos=b.easing((a-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),c=!0;return c},initPath:function(c,a,b){function f(a){for(g=a.length;g--;){var e="M"===a[g]||"L"===a[g];var b=/[a-zA-Z]/.test(a[g+3]);e&&b&&a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])}}function m(a,e){for(;a.length<J;){a[0]=e[J-a.length];var b=a.slice(0,n);[].splice.apply(a,[0,0].concat(b));
F&&(b=a.slice(a.length-n),[].splice.apply(a,[a.length,0].concat(b)),g--)}a[0]="M"}function h(a,b){for(var g=(J-a.length)/n;0<g&&g--;)e=a.slice().splice(a.length/A-n,n*A),e[0]=b[J-n-g*n],v&&(e[n-6]=e[n-2],e[n-5]=e[n-1]),[].splice.apply(a,[a.length/A,0].concat(e)),F&&g--}a=a||"";var d=c.startX,x=c.endX,v=-1<a.indexOf("C"),n=v?7:3,e,g;a=a.split(" ");b=b.slice();var F=c.isArea,A=F?2:1;v&&(f(a),f(b));if(d&&x){for(g=0;g<d.length;g++)if(d[g]===x[0]){var z=g;break}else if(d[0]===x[x.length-d.length+g]){z=
g;var B=!0;break}else if(d[d.length-1]===x[x.length-d.length+g]){z=d.length-g;break}"undefined"===typeof z&&(a=[])}if(a.length&&C(z)){var J=b.length+z*A*n;B?(m(a,b),h(b,a)):(m(b,a),h(a,b))}return[a,b]},fillSetter:function(){d.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,d.color(this.start).tweenTo(d.color(this.end),this.pos),null,!0)}};d.merge=function(){var c,a=arguments,b={},f=function(a,b){"object"!==typeof a&&(a={});u(b,function(c,h){!H(c,!0)||
y(c)||E(c)?a[h]=b[h]:a[h]=f(a[h]||{},c)});return a};!0===a[0]&&(b=a[1],a=Array.prototype.slice.call(a,2));var m=a.length;for(c=0;c<m;c++)b=f(b,a[c]);return b};d.syncTimeout=function(c,a,b){if(a)return setTimeout(c,a,b);c.call(0,b)};d.clearTimeout=function(c){t(c)&&clearTimeout(c)};d.extend=function(c,a){var b;c||(c={});for(b in a)c[b]=a[b];return c};d.pick=function(){var c=arguments,a,b=c.length;for(a=0;a<b;a++){var f=c[a];if("undefined"!==typeof f&&null!==f)return f}};d.css=function(c,a){d.isMS&&
!d.svg&&a&&"undefined"!==typeof a.opacity&&(a.filter="alpha(opacity\x3d"+100*a.opacity+")");d.extend(c.style,a)};d.createElement=function(c,a,b,f,m){c=p.createElement(c);var h=d.css;a&&d.extend(c,a);m&&h(c,{padding:"0",border:"none",margin:"0"});b&&h(c,b);f&&f.appendChild(c);return c};d.extendClass=function(c,a){var b=function(){};b.prototype=new c;d.extend(b.prototype,a);return b};d.pad=function(c,a,b){return Array((a||2)+1-String(c).replace("-","").length).join(b||"0")+c};d.relativeLength=function(c,
a,b){return/%$/.test(c)?a*parseFloat(c)/100+(b||0):parseFloat(c)};d.wrap=function(c,a,b){var f=c[a];c[a]=function(){var a=Array.prototype.slice.call(arguments),c=arguments,d=this;d.proceed=function(){f.apply(d,arguments.length?arguments:c)};a.unshift(f);a=b.apply(this,a);d.proceed=null;return a}};d.datePropsToTimestamps=function(c){u(c,function(a,b){H(a)&&"function"===typeof a.getTime?c[b]=a.getTime():(H(a)||D(a))&&d.datePropsToTimestamps(a)})};d.formatSingle=function(c,a,b){var f=/\.([0-9])/,m=d.defaultOptions.lang;
/f$/.test(c)?(b=(b=c.match(f))?b[1]:-1,null!==a&&(a=d.numberFormat(a,b,m.decimalPoint,-1<c.indexOf(",")?m.thousandsSep:""))):a=(b||d.time).dateFormat(c,a);return a};d.format=function(c,a,b){for(var f="{",m=!1,h,r,x,v,n=[],e;c;){f=c.indexOf(f);if(-1===f)break;h=c.slice(0,f);if(m){h=h.split(":");r=h.shift().split(".");v=r.length;e=a;for(x=0;x<v;x++)e&&(e=e[r[x]]);h.length&&(e=d.formatSingle(h.join(":"),e,b));n.push(e)}else n.push(h);c=c.slice(f+1);f=(m=!m)?"}":"{"}n.push(c);return n.join("")};d.getMagnitude=
function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))};d.normalizeTickInterval=function(c,a,b,f,m){var h=c;b=d.pick(b,1);var r=c/b;a||(a=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===f&&(1===b?a=a.filter(function(a){return 0===a%1}):.1>=b&&(a=[1/b])));for(f=0;f<a.length&&!(h=a[f],m&&h*b>=c||!m&&r<=(a[f]+(a[f+1]||a[f]))/2);f++);return h=d.correctFloat(h*b,-Math.round(Math.log(.001)/Math.LN10))};d.stableSort=function(c,a){var b=c.length,f,m;for(m=0;m<b;m++)c[m].safeI=m;c.sort(function(b,
c){f=a(b,c);return 0===f?b.safeI-c.safeI:f});for(m=0;m<b;m++)delete c[m].safeI};d.arrayMin=function(c){for(var a=c.length,b=c[0];a--;)c[a]<b&&(b=c[a]);return b};d.arrayMax=function(c){for(var a=c.length,b=c[0];a--;)c[a]>b&&(b=c[a]);return b};d.destroyObjectProperties=function(c,a){u(c,function(b,f){b&&b!==a&&b.destroy&&b.destroy();delete c[f]})};d.discardElement=function(c){var a=d.garbageBin;a||(a=d.createElement("div"));c&&a.appendChild(c);a.innerHTML=""};d.correctFloat=function(c,a){return parseFloat(c.toPrecision(a||
14))};d.setAnimation=function(c,a){a.renderer.globalAnimation=d.pick(c,a.options.chart.animation,!0)};d.animObject=function(c){return H(c)?d.merge(c):{duration:c?500:0}};d.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};d.numberFormat=function(c,a,b,f){c=+c||0;a=+a;var m=d.defaultOptions.lang,h=(c.toString().split(".")[1]||"").split("e")[0].length,r=c.toString().split("e");if(-1===a)a=Math.min(h,20);else if(!C(a))a=2;else if(a&&r[1]&&0>r[1]){var x=
a+ +r[1];0<=x?(r[0]=(+r[0]).toExponential(x).split("e")[0],a=x):(r[0]=r[0].split(".")[0]||0,c=20>a?(r[0]*Math.pow(10,r[1])).toFixed(a):0,r[1]=0)}var v=(Math.abs(r[1]?r[0]:c)+Math.pow(10,-Math.max(a,h)-1)).toFixed(a);h=String(k(v));x=3<h.length?h.length%3:0;b=d.pick(b,m.decimalPoint);f=d.pick(f,m.thousandsSep);c=(0>c?"-":"")+(x?h.substr(0,x)+f:"");c+=h.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+f);a&&(c+=b+v.slice(-a));r[1]&&0!==+c&&(c+="e"+r[1]);return c};Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*
c)-1)};d.getStyle=function(c,a,b){if("width"===a)return a=Math.min(c.offsetWidth,c.scrollWidth),b=c.getBoundingClientRect&&c.getBoundingClientRect().width,b<a&&b>=a-1&&(a=Math.floor(b)),Math.max(0,a-d.getStyle(c,"padding-left")-d.getStyle(c,"padding-right"));if("height"===a)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-d.getStyle(c,"padding-top")-d.getStyle(c,"padding-bottom"));q.getComputedStyle||d.error(27,!0);if(c=q.getComputedStyle(c,void 0))c=c.getPropertyValue(a),d.pick(b,"opacity"!==
a)&&(c=k(c));return c};d.inArray=function(c,a,b){return a.indexOf(c,b)};d.find=Array.prototype.find?function(c,a){return c.find(a)}:function(c,a){var b,f=c.length;for(b=0;b<f;b++)if(a(c[b],b))return c[b]};d.keys=Object.keys;d.offset=function(c){var a=p.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0};return{top:c.top+(q.pageYOffset||a.scrollTop)-(a.clientTop||0),left:c.left+(q.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}};d.stop=function(c,a){for(var b=d.timers.length;b--;)d.timers[b].elem!==
c||a&&a!==d.timers[b].prop||(d.timers[b].stopped=!0)};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,a){d[a]=function(a){return Array.prototype[c].apply(a,[].slice.call(arguments,1))}});d.addEvent=function(c,a,b,f){void 0===f&&(f={});var m=c.addEventListener||d.addEventListenerPolyfill;var h="function"===typeof c&&c.prototype?c.prototype.protoEvents=c.prototype.protoEvents||{}:c.hcEvents=c.hcEvents||{};d.Point&&c instanceof d.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=
!0);m&&m.call(c,a,b,!1);h[a]||(h[a]=[]);h[a].push({fn:b,order:"number"===typeof f.order?f.order:Infinity});h[a].sort(function(a,b){return a.order-b.order});return function(){d.removeEvent(c,a,b)}};d.removeEvent=function(c,a,b){function f(a,b){var f=c.removeEventListener||d.removeEventListenerPolyfill;f&&f.call(c,a,b,!1)}function m(b){var h;if(c.nodeName){if(a){var m={};m[a]=!0}else m=b;u(m,function(a,e){if(b[e])for(h=b[e].length;h--;)f(e,b[e][h].fn)})}}var h;["protoEvents","hcEvents"].forEach(function(d){var r=
c[d];r&&(a?(h=r[a]||[],b?(r[a]=h.filter(function(a){return b!==a.fn}),f(a,b)):(m(r),r[a]=[])):(m(r),c[d]={}))})};d.fireEvent=function(c,a,b,f){var m;b=b||{};if(p.createEvent&&(c.dispatchEvent||c.fireEvent)){var h=p.createEvent("Events");h.initEvent(a,!0,!0);d.extend(h,b);c.dispatchEvent?c.dispatchEvent(h):c.fireEvent(a,h)}else b.target||d.extend(b,{preventDefault:function(){b.defaultPrevented=!0},target:c,type:a}),function(a,f){void 0===a&&(a=[]);void 0===f&&(f=[]);var h=0,n=0,e=a.length+f.length;
for(m=0;m<e;m++)!1===(a[h]?f[n]?a[h].order<=f[n].order?a[h++]:f[n++]:a[h++]:f[n++]).fn.call(c,b)&&b.preventDefault()}(c.protoEvents&&c.protoEvents[a],c.hcEvents&&c.hcEvents[a]);f&&!b.defaultPrevented&&f.call(c,b)};d.animate=function(c,a,b){var f,m="",h,r;if(!H(b)){var x=arguments;b={duration:x[2],easing:x[3],complete:x[4]}}C(b.duration)||(b.duration=400);b.easing="function"===typeof b.easing?b.easing:Math[b.easing]||Math.easeInOutSine;b.curAnim=d.merge(a);u(a,function(v,n){d.stop(c,n);r=new d.Fx(c,
b,n);h=null;"d"===n?(r.paths=r.initPath(c,c.d,a.d),r.toD=a.d,f=0,h=1):c.attr?f=c.attr(n):(f=parseFloat(d.getStyle(c,n))||0,"opacity"!==n&&(m="px"));h||(h=v);h&&h.match&&h.match("px")&&(h=h.replace(/px/g,""));r.run(f,h,m)})};d.seriesType=function(c,a,b,f,m){var h=d.getOptions(),r=d.seriesTypes;h.plotOptions[c]=d.merge(h.plotOptions[a],b);r[c]=d.extendClass(r[a]||function(){},f);r[c].prototype.type=c;m&&(r[c].prototype.pointClass=d.extendClass(d.Point,m));return r[c]};d.uniqueKey=function(){var c=Math.random().toString(36).substring(2,
9),a=0;return function(){return"highcharts-"+c+"-"+a++}}();d.isFunction=function(c){return"function"===typeof c};q.jQuery&&(q.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (d[w(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):l[G(this[0],"data-highcharts-chart")]});return{attr:G,defined:t,erase:function(c,a){for(var b=c.length;b--;)if(c[b]===a){c.splice(b,1);break}},isArray:D,isClass:y,isDOMElement:E,isNumber:C,isObject:H,isString:w,objectEach:u,pInt:k,
splat:function(c){return D(c)?c:[c]}}});K(I,"parts/Color.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.isNumber,D=k.pInt,H=d.merge;d.Color=function(E){if(!(this instanceof d.Color))return new d.Color(E);this.init(E)};d.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(d){return[D(d[1]),D(d[2]),D(d[3]),parseFloat(d[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,
parse:function(d){return[D(d[1]),D(d[2]),D(d[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(k){var y,C;if((this.input=k=this.names[k&&k.toLowerCase?k.toLowerCase():""]||k)&&k.stops)this.stops=k.stops.map(function(u){return new d.Color(u[1])});else{if(k&&k.charAt&&"#"===k.charAt()){var t=k.length;k=parseInt(k.substr(1),16);7===t?y=[(k&16711680)>>16,(k&65280)>>8,k&255,1]:4===t&&(y=[(k&3840)>>4|(k&3840)>>8,(k&240)>>4|k&240,(k&15)<<4|k&15,1])}if(!y)for(C=this.parsers.length;C--&&!y;){var E=
this.parsers[C];(t=E.regex.exec(k))&&(y=E.parse(t))}}this.rgba=y||[]},get:function(d){var y=this.input,k=this.rgba;if(this.stops){var t=H(y);t.stops=[].concat(t.stops);this.stops.forEach(function(k,u){t.stops[u]=[t.stops[u][0],k.get(d)]})}else t=k&&w(k[0])?"rgb"===d||!d&&1===k[3]?"rgb("+k[0]+","+k[1]+","+k[2]+")":"a"===d?k[3]:"rgba("+k.join(",")+")":y;return t},brighten:function(d){var k,C=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(d)});else if(w(d)&&0!==d)for(k=0;3>k;k++)C[k]+=
D(255*d),0>C[k]&&(C[k]=0),255<C[k]&&(C[k]=255);return this},setOpacity:function(d){this.rgba[3]=d;return this},tweenTo:function(d,k){var y=this.rgba,t=d.rgba;t.length&&y&&y.length?(d=1!==t[3]||1!==y[3],k=(d?"rgba(":"rgb(")+Math.round(t[0]+(y[0]-t[0])*(1-k))+","+Math.round(t[1]+(y[1]-t[1])*(1-k))+","+Math.round(t[2]+(y[2]-t[2])*(1-k))+(d?","+(t[3]+(y[3]-t[3])*(1-k)):"")+")"):k=d.input||"none";return k}};d.color=function(k){return new d.Color(k)}});K(I,"parts/SvgRenderer.js",[I["parts/Globals.js"],
I["parts/Utilities.js"]],function(d,k){var w=k.attr,D=k.defined,H=k.erase,E=k.isArray,y=k.isNumber,C=k.isObject,t=k.isString,G=k.objectEach,u=k.pInt,l=k.splat,p=d.addEvent,q=d.animate,c=d.charts,a=d.color,b=d.css,f=d.createElement,m=d.deg2rad,h=d.destroyObjectProperties,r=d.doc,x=d.extend,v=d.hasTouch,n=d.isFirefox,e=d.isMS,g=d.isWebKit,F=d.merge,A=d.noop,z=d.pick,B=d.removeEvent,J=d.stop,M=d.svg,T=d.SVG_NS,N=d.symbolSizes,R=d.win;var L=d.SVGElement=function(){return this};x(L.prototype,{opacity:1,
SVG_NS:T,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(a,b){this.element="span"===b?f(b):r.createElementNS(this.SVG_NS,b);this.renderer=a;d.fireEvent(this,"afterInit")},animate:function(a,b,e){var g=d.animObject(z(b,this.renderer.globalAnimation,!0));z(r.hidden,r.msHidden,r.webkitHidden,!1)&&(g.duration=0);0!==g.duration?(e&&(g.complete=e),q(this,a,g)):(this.attr(a,void 0,e),G(a,
function(a,b){g.step&&g.step.call(this,a,{prop:b,pos:1})},this));return this},complexColor:function(a,b,e){var g=this.renderer,c,z,B,f,h,P,n,m,A,O,J,r=[],v;d.fireEvent(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?z="radialGradient":a.linearGradient&&(z="linearGradient");z&&(B=a[z],h=g.gradients,n=a.stops,O=e.radialReference,E(B)&&(a[z]=B={x1:B[0],y1:B[1],x2:B[2],y2:B[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===z&&O&&!D(B.gradientUnits)&&(f=B,B=F(B,g.getRadialAttr(O,
f),{gradientUnits:"userSpaceOnUse"})),G(B,function(a,b){"id"!==b&&r.push(b,a)}),G(n,function(a){r.push(a)}),r=r.join(","),h[r]?J=h[r].attr("id"):(B.id=J=d.uniqueKey(),h[r]=P=g.createElement(z).attr(B).add(g.defs),P.radAttr=f,P.stops=[],n.forEach(function(a){0===a[1].indexOf("rgba")?(c=d.color(a[1]),m=c.get("rgb"),A=c.get("a")):(m=a[1],A=1);a=g.createElement("stop").attr({offset:a[0],"stop-color":m,"stop-opacity":A}).add(P);P.stops.push(a)})),v="url("+g.url+"#"+J+")",e.setAttribute(b,v),e.gradient=
r,a.toString=function(){return v})})},applyTextOutline:function(a){var b=this.element,e;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));a=a.split(" ");var g=a[a.length-1];if((e=a[0])&&"none"!==e&&d.svg){this.fakeTS=!0;a=[].slice.call(b.getElementsByTagName("tspan"));this.ySetter=this.xSetter;e=e.replace(/(^[\d\.]+)(.*?)$/g,function(a,b,e){return 2*b+e});this.removeTextOutline(a);var z=b.firstChild;a.forEach(function(a,c){0===c&&(a.setAttribute("x",b.getAttribute("x")),
c=b.getAttribute("y"),a.setAttribute("y",c||0),null===c&&b.setAttribute("y",0));a=a.cloneNode(1);w(a,{"class":"highcharts-text-outline",fill:g,stroke:g,"stroke-width":e,"stroke-linejoin":"round"});b.insertBefore(a,z)})}},removeTextOutline:function(a){for(var b=a.length,e;b--;)e=a[b],"highcharts-text-outline"===e.getAttribute("class")&&H(a,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(a,b,e,g){var c=this.element,
z,B=this,f,h,n=this.symbolCustomAttribs;if("string"===typeof a&&void 0!==b){var m=a;a={};a[m]=b}"string"===typeof a?B=(this[a+"Getter"]||this._defaultGetter).call(this,a,c):(G(a,function(b,e){f=!1;g||J(this,e);this.symbolName&&-1!==d.inArray(e,n)&&(z||(this.symbolAttr(a),z=!0),f=!0);!this.rotation||"x"!==e&&"y"!==e||(this.doTransform=!0);f||(h=this[e+"Setter"]||this._defaultSetter,h.call(this,b,e,c),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,
b,h))},this),this.afterSetters());e&&e.call(this);return B},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,b,e){for(var g=this.shadows,c=g.length;c--;)e.call(g[c],"height"===a?Math.max(b-(g[c].cutHeight||0),0):"d"===a?this.d:b,a,g[c])},addClass:function(a,b){var e=this.attr("class")||"";b||(a=(a||"").split(/ /g).reduce(function(a,b){-1===e.indexOf(b)&&a.push(b);return a},e?[e]:[]).join(" "));a!==e&&this.attr("class",a);return this},
hasClass:function(a){return-1!==(this.attr("class")||"").split(" ").indexOf(a)},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var b=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(e){b[e]=z(a[e],b[e])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,
b){b=b||a.strokeWidth||0;var e=Math.round(b)%2/2;a.x=Math.floor(a.x||this.x||0)+e;a.y=Math.floor(a.y||this.y||0)+e;a.width=Math.floor((a.width||this.width||0)-2*e);a.height=Math.floor((a.height||this.height||0)-2*e);D(a.strokeWidth)&&(a.strokeWidth=b);return a},css:function(a){var e=this.styles,g={},c=this.element,z="",B=!e,f=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);e&&G(a,function(a,b){a!==e[b]&&(g[b]=a,B=!0)});if(B){e&&(a=x(e,g));if(a)if(null===a.width||"auto"===a.width)delete this.textWidth;
else if("text"===c.nodeName.toLowerCase()&&a.width)var h=this.textWidth=u(a.width);this.styles=a;h&&!M&&this.renderer.forExport&&delete a.width;if(c.namespaceURI===this.SVG_NS){var n=function(a,b){return"-"+b.toLowerCase()};G(a,function(a,b){-1===f.indexOf(b)&&(z+=b.replace(/([A-Z])/g,n)+":"+a+";")});z&&w(c,"style",z)}else b(c,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this},getStyle:function(a){return R.getComputedStyle(this.element||
this,"").getPropertyValue(a)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width");if(a.indexOf("px")===a.length-2)a=u(a);else{var b=r.createElementNS(T,"rect");w(b,{width:a,"stroke-width":0});this.element.parentNode.appendChild(b);a=b.getBBox().width;b.parentNode.removeChild(b)}return a},on:function(a,b){var e=this,g=e.element;v&&"click"===a?(g.ontouchstart=function(a){e.touchEventFired=Date.now();a.preventDefault();b.call(g,a)},g.onclick=
function(a){(-1===R.navigator.userAgent.indexOf("Android")||1100<Date.now()-(e.touchEventFired||0))&&b.call(g,a)}):g["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=
this.translateX||0,b=this.translateY||0,e=this.scaleX,g=this.scaleY,c=this.inverted,B=this.rotation,f=this.matrix,h=this.element;c&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];D(f)&&a.push("matrix("+f.join(",")+")");c?a.push("rotate(90) scale(-1,1)"):B&&a.push("rotate("+B+" "+z(this.rotationOriginX,h.getAttribute("x"),0)+" "+z(this.rotationOriginY,h.getAttribute("y")||0)+")");(D(e)||D(g))&&a.push("scale("+z(e,1)+" "+z(g,1)+")");a.length&&h.setAttribute("transform",a.join(" "))},toFront:function(){var a=
this.element;a.parentNode.appendChild(a);return this},align:function(a,b,e){var g,c={};var B=this.renderer;var f=B.alignedObjects;var h,n;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!e||t(e))this.alignTo=g=e||"renderer",H(f,this),f.push(this),e=null}else a=this.alignOptions,b=this.alignByTranslate,g=this.alignTo;e=z(e,B[g],B);g=a.align;B=a.verticalAlign;f=(e.x||0)+(a.x||0);var m=(e.y||0)+(a.y||0);"right"===g?h=1:"center"===g&&(h=2);h&&(f+=(e.width-(a.width||0))/h);c[b?"translateX":"x"]=Math.round(f);
"bottom"===B?n=1:"middle"===B&&(n=2);n&&(m+=(e.height-(a.height||0))/n);c[b?"translateY":"y"]=Math.round(m);this[this.placed?"animate":"attr"](c);this.placed=!0;this.alignAttr=c;return this},getBBox:function(a,b){var e,g=this.renderer,c=this.element,B=this.styles,f=this.textStr,h,n=g.cache,d=g.cacheKeys,F=c.namespaceURI===this.SVG_NS;b=z(b,this.rotation);var P=b*m;var A=g.styledMode?c&&L.prototype.getStyle.call(c,"font-size"):B&&B.fontSize;if(D(f)){var r=f.toString();-1===r.indexOf("\x3c")&&(r=r.replace(/[0-9]/g,
"0"));r+=["",b||0,A,this.textWidth,B&&B.textOverflow].join()}r&&!a&&(e=n[r]);if(!e){if(F||g.forExport){try{(h=this.fakeTS&&function(a){[].forEach.call(c.querySelectorAll(".highcharts-text-outline"),function(b){b.style.display=a})})&&h("none"),e=c.getBBox?x({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight},h&&h("")}catch(ea){""}if(!e||0>e.width)e={width:0,height:0}}else e=this.htmlGetBBox();g.isSVG&&(a=e.width,g=e.height,F&&(e.height=g={"11px,17":14,"13px,20":16}[B&&B.fontSize+","+Math.round(g)]||
g),b&&(e.width=Math.abs(g*Math.sin(P))+Math.abs(a*Math.cos(P)),e.height=Math.abs(g*Math.cos(P))+Math.abs(a*Math.sin(P))));if(r&&0<e.height){for(;250<d.length;)delete n[d.shift()];n[r]||d.push(r);n[r]=e}}return e},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=
this.renderer,e=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var g=this.zIndexSetter();g||(a?a.element:b.box).appendChild(e);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},e=a.renderer,g=e.isSVG&&"SPAN"===b.nodeName&&a.parentGroup,c=b.ownerSVGElement,z=a.clipPath;b.onclick=b.onmouseout=
b.onmouseover=b.onmousemove=b.point=null;J(a);z&&c&&([].forEach.call(c.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(z.element.id)&&a.removeAttribute("clip-path")}),a.clipPath=z.destroy());if(a.stops){for(c=0;c<a.stops.length;c++)a.stops[c]=a.stops[c].destroy();a.stops=null}a.safeRemoveChild(b);for(e.styledMode||a.destroyShadows();g&&g.div&&0===g.div.childNodes.length;)b=g.parentGroup,a.safeRemoveChild(g.div),delete g.div,g=b;a.alignTo&&H(e.alignedObjects,
a);G(a,function(b,e){a[e]&&a[e].parentGroup===a&&a[e].destroy&&a[e].destroy();delete a[e]})},shadow:function(a,b,e){var g=[],c,B=this.element;if(!a)this.destroyShadows();else if(!this.shadows){var f=z(a.width,3);var h=(a.opacity||.15)/f;var n=this.parentInverted?"(-1,-1)":"("+z(a.offsetX,1)+", "+z(a.offsetY,1)+")";for(c=1;c<=f;c++){var m=B.cloneNode(0);var d=2*f+1-2*c;w(m,{stroke:a.color||"#000000","stroke-opacity":h*c,"stroke-width":d,transform:"translate"+n,fill:"none"});m.setAttribute("class",
(m.getAttribute("class")||"")+" highcharts-shadow");e&&(w(m,"height",Math.max(w(m,"height")-d,0)),m.cutHeight=d);b?b.element.appendChild(m):B.parentNode&&B.parentNode.insertBefore(m,B);g.push(m)}this.shadows=g}return this},destroyShadows:function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=z(this[a+"Value"],
this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,e){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[b]!==a&&(e.setAttribute(b,a),this[b]=a)},dashstyleSetter:function(a){var b,e=this["stroke-width"];"inherit"===e&&(e=1);if(a=a&&a.toLowerCase()){a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash",
"8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=a.length;b--;)a[b]=u(a[b])*e;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){var b={left:"start",center:"middle",right:"end"};b[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",b[a]))},opacitySetter:function(a,b,e){this[b]=a;e.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=r.createElementNS(this.SVG_NS,
"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(r.createTextNode(String(z(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},setTextPath:function(a,b){var e=this.element,g={textAnchor:"text-anchor"},c=!1,z=this.textPathWrapper,B=!z;b=F(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",
textAnchor:"middle"}},b);var f=b.attributes;if(a&&b&&b.enabled){this.options&&this.options.padding&&(f.dx=-this.options.padding);z||(this.textPathWrapper=z=this.renderer.createElement("textPath"),c=!0);var h=z.element;(b=a.element.getAttribute("id"))||a.element.setAttribute("id",b=d.uniqueKey());if(B)for(a=e.getElementsByTagName("tspan");a.length;)a[0].setAttribute("y",0),h.appendChild(a[0]);c&&z.add({element:this.text?this.text.element:e});h.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+
"#"+b);D(f.dy)&&(h.parentNode.setAttribute("dy",f.dy),delete f.dy);D(f.dx)&&(h.parentNode.setAttribute("dx",f.dx),delete f.dx);G(f,function(a,b){h.setAttribute(g[b]||b,a)});e.removeAttribute("transform");this.removeTextOutline.call(z,[].slice.call(e.getElementsByTagName("tspan")));this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=A}else z&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(e,a));return this},
destroyTextPath:function(a,b){var e;b.element.setAttribute("id","");for(e=this.textPathWrapper.element.childNodes;e.length;)a.firstChild.appendChild(e[0]);a.firstChild.removeChild(this.textPathWrapper.element);delete b.textPathWrapper},fillSetter:function(a,b,e){"string"===typeof a?e.setAttribute(b,a):a&&this.complexColor(a,b,e)},visibilitySetter:function(a,b,e){"inherit"===a?e.removeAttribute(b):this[b]!==a&&e.setAttribute(b,a);this[b]=a},zIndexSetter:function(a,b){var e=this.renderer,g=this.parentGroup,
c=(g||e).element||e.box,z=this.element,B=!1;e=c===e.box;var f=this.added;var h;D(a)?(z.setAttribute("data-z-index",a),a=+a,this[b]===a&&(f=!1)):D(this[b])&&z.removeAttribute("data-z-index");this[b]=a;if(f){(a=this.zIndex)&&g&&(g.handleZ=!0);b=c.childNodes;for(h=b.length-1;0<=h&&!B;h--){g=b[h];f=g.getAttribute("data-z-index");var n=!D(f);if(g!==z)if(0>a&&n&&!e&&!h)c.insertBefore(z,b[h]),B=!0;else if(u(f)<=a||n&&(!D(a)||0<=a))c.insertBefore(z,b[h+1]||null),B=!0}B||(c.insertBefore(z,b[e?3:0]||null),
B=!0)}return B},_defaultSetter:function(a,b,e){e.setAttribute(b,a)}});L.prototype.yGetter=L.prototype.xGetter;L.prototype.translateXSetter=L.prototype.translateYSetter=L.prototype.rotationSetter=L.prototype.verticalAlignSetter=L.prototype.rotationOriginXSetter=L.prototype.rotationOriginYSetter=L.prototype.scaleXSetter=L.prototype.scaleYSetter=L.prototype.matrixSetter=function(a,b){this[b]=a;this.doTransform=!0};L.prototype["stroke-widthSetter"]=L.prototype.strokeSetter=function(a,b,e){this[b]=a;this.stroke&&
this["stroke-width"]?(L.prototype.fillSetter.call(this,this.stroke,"stroke",e),e.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke?(e.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(e.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};k=d.SVGRenderer=function(){this.init.apply(this,arguments)};x(k.prototype,{Element:L,SVG_NS:T,init:function(a,e,c,z,B,f,h){var m=this.createElement("svg").attr({version:"1.1",
"class":"highcharts-root"});h||m.css(this.getStyle(z));z=m.element;a.appendChild(z);w(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&w(z,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=z;this.boxWrapper=m;this.alignedObjects=[];this.url=(n||g)&&r.getElementsByTagName("base").length?R.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(r.createTextNode("Created with Highcharts 7.2.0"));this.defs=
this.createElement("defs").add();this.allowHTML=f;this.forExport=B;this.styledMode=h;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,c,!1);var d;n&&a.getBoundingClientRect&&(e=function(){b(a,{left:0,top:0});d=a.getBoundingClientRect();b(a,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},e(),this.unSubPixelFix=p(R,"resize",e))},definition:function(a){function b(a,g){var c;l(a).forEach(function(a){var z=e.createElement(a.tagName),B={};G(a,function(a,
b){"tagName"!==b&&"children"!==b&&"textContent"!==b&&(B[b]=a)});z.attr(B);z.add(g||e.defs);a.textContent&&z.element.appendChild(r.createTextNode(a.textContent));b(a.children||[],z);c=z});return c}var e=this;return b(a)},getStyle:function(a){return this.style=x({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=
this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();h(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:A,getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},truncate:function(a,b,e,g,c,z,B){var f=this,h=a.rotation,n,m=g?1:0,d=(e||g).length,F=d,A=[],J=function(a){b.firstChild&&
b.removeChild(b.firstChild);a&&b.appendChild(r.createTextNode(a))},v=function(z,h){h=h||z;if(void 0===A[h])if(b.getSubStringLength)try{A[h]=c+b.getSubStringLength(0,g?h+1:h)}catch(fa){""}else f.getSpanWidth&&(J(B(e||g,z)),A[h]=c+f.getSpanWidth(a,b));return A[h]},M;a.rotation=0;var x=v(b.textContent.length);if(M=c+x>z){for(;m<=d;)F=Math.ceil((m+d)/2),g&&(n=B(g,F)),x=v(F,n&&n.length-1),m===d?m=d+1:x>z?d=F-1:m=F;0===d?J(""):e&&d===e.length-1||J(n||B(e||g,F))}g&&g.splice(0,F);a.actualWidth=x;a.rotation=
h;return M},escapes:{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;","'":"\x26#39;",'"':"\x26quot;"},buildText:function(a){var e=a.element,g=this,c=g.forExport,B=z(a.textStr,"").toString(),f=-1!==B.indexOf("\x3c"),h=e.childNodes,n,m=w(e,"x"),d=a.styles,F=a.textWidth,A=d&&d.lineHeight,J=d&&d.textOutline,v=d&&"ellipsis"===d.textOverflow,x=d&&"nowrap"===d.whiteSpace,P=d&&d.fontSize,l,L=h.length;d=F&&!a.added&&this.box;var q=function(a){var b;g.styledMode||(b=/(px|em)$/.test(a&&a.style.fontSize)?
a.style.fontSize:P||g.style.fontSize||12);return A?u(A):g.fontMetrics(b,a.getAttribute("style")?a:e).h},p=function(a,b){G(g.escapes,function(e,g){b&&-1!==b.indexOf(e)||(a=a.toString().replace(new RegExp(e,"g"),g))});return a},N=function(a,b){var e=a.indexOf("\x3c");a=a.substring(e,a.indexOf("\x3e")-e);e=a.indexOf(b+"\x3d");if(-1!==e&&(e=e+b.length+1,b=a.charAt(e),'"'===b||"'"===b))return a=a.substring(e+1),a.substring(0,a.indexOf(b))},R=/<br.*?>/g;var k=[B,v,x,A,J,P,F].join();if(k!==a.textCache){for(a.textCache=
k;L--;)e.removeChild(h[L]);f||J||v||F||-1!==B.indexOf(" ")&&(!x||R.test(B))?(d&&d.appendChild(e),f?(B=g.styledMode?B.replace(/<(b|strong)>/g,'\x3cspan class\x3d"highcharts-strong"\x3e').replace(/<(i|em)>/g,'\x3cspan class\x3d"highcharts-emphasized"\x3e'):B.replace(/<(b|strong)>/g,'\x3cspan style\x3d"font-weight:bold"\x3e').replace(/<(i|em)>/g,'\x3cspan style\x3d"font-style:italic"\x3e'),B=B.replace(/<a/g,"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(R)):B=[B],B=B.filter(function(a){return""!==
a}),B.forEach(function(z,B){var f=0,h=0;z=z.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");var d=z.split("|||");d.forEach(function(z){if(""!==z||1===d.length){var A={},J=r.createElementNS(g.SVG_NS,"tspan"),L,O;(L=N(z,"class"))&&w(J,"class",L);if(L=N(z,"style"))L=L.replace(/(;| |^)color([ :])/,"$1fill$2"),w(J,"style",L);(O=N(z,"href"))&&!c&&(w(J,"onclick",'location.href\x3d"'+O+'"'),w(J,"class","highcharts-anchor"),g.styledMode||b(J,{cursor:"pointer"}));
z=p(z.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==z){J.appendChild(r.createTextNode(z));f?A.dx=0:B&&null!==m&&(A.x=m);w(J,A);e.appendChild(J);!f&&l&&(!M&&c&&b(J,{display:"block"}),w(J,"dy",q(J)));if(F){var u=z.replace(/([^\^])-/g,"$1- ").split(" ");A=!x&&(1<d.length||B||1<u.length);O=0;var ca=q(J);if(v)n=g.truncate(a,J,z,void 0,0,Math.max(0,F-parseInt(P||12,10)),function(a,b){return a.substring(0,b)+"\u2026"});else if(A)for(;u.length;)u.length&&!x&&0<O&&(J=r.createElementNS(T,"tspan"),w(J,
{dy:ca,x:m}),L&&w(J,"style",L),J.appendChild(r.createTextNode(u.join(" ").replace(/- /g,"-"))),e.appendChild(J)),g.truncate(a,J,null,u,0===O?h:0,F,function(a,b){return u.slice(0,b).join(" ").replace(/- /g,"-")}),h=a.actualWidth,O++}f++}}});l=l||e.childNodes.length}),v&&n&&a.attr("title",p(a.textStr,["\x26lt;","\x26gt;"])),d&&d.removeChild(e),J&&a.applyTextOutline&&a.applyTextOutline(J)):e.appendChild(r.createTextNode(p(B)))}},getContrast:function(b){b=a(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459<
b[0]+b[1]+b[2]?"#000000":"#FFFFFF"},button:function(a,b,g,c,z,B,f,h,n,m){var d=this.label(a,b,g,n,null,null,m,null,"button"),A=0,J=this.styledMode;d.attr(F({padding:8,r:2},z));if(!J){z=F({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},z);var r=z.style;delete z.style;B=F(z,{fill:"#e6e6e6"},B);var v=B.style;delete B.style;f=F(z,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},f);var M=f.style;delete f.style;h=F(z,{style:{color:"#cccccc"}},
h);var L=h.style;delete h.style}p(d.element,e?"mouseover":"mouseenter",function(){3!==A&&d.setState(1)});p(d.element,e?"mouseout":"mouseleave",function(){3!==A&&d.setState(A)});d.setState=function(a){1!==a&&(d.state=A=a);d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);J||d.attr([z,B,f,h][a||0]).css([r,v,M,L][a||0])};J||d.attr(z).css(x({cursor:"default"},r));return d.on("click",function(a){3!==A&&c.call(d,
a)})},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+b%2/2);return a},path:function(a){var b=this.styledMode?{}:{fill:"none"};E(a)?b.d=a:C(a)&&x(b,a);return this.createElement("path").attr(b)},circle:function(a,b,e){a=C(a)?a:void 0===a?{}:{x:a,y:b,r:e};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,e){e.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,e,g,z,c){C(a)?(g=a,b=g.y,e=g.r,a=g.x):g={innerR:g,start:z,
end:c};a=this.symbol("arc",a,b,e,e,g);a.r=e;return a},rect:function(a,b,e,g,z,c){z=C(a)?a.r:z;var B=this.createElement("rect");a=C(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(e,0),height:Math.max(g,0)};this.styledMode||(void 0!==c&&(a.strokeWidth=c,a=B.crisp(a)),a.fill="none");z&&(a.r=z);B.rSetter=function(a,b,e){B.r=a;w(e,{rx:a,ry:a})};B.rGetter=function(){return B.r};return B.attr(a)},setSize:function(a,b,e){var g=this.alignedObjects,c=g.length;this.width=a;this.height=b;for(this.boxWrapper.animate({width:a,
height:b},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:z(e,!0)?void 0:0});c--;)g[c].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,e,g,c,z){var B={preserveAspectRatio:"none"},f=function(a,b){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",b):a.setAttribute("hc-svg-href",b)},h=function(b){f(n.element,a);z.call(n,b)};1<arguments.length&&x(B,{x:b,y:e,width:g,
height:c});var n=this.createElement("image").attr(B);z?(f(n.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d"),B=new R.Image,p(B,"load",h),B.src=a,B.complete&&h({})):f(n.element,a);return n},symbol:function(a,e,g,B,h,n){var m=this,d=/^url\((.*?)\)$/,F=d.test(a),A=!F&&(this.symbols[a]?a:"circle"),J=A&&this.symbols[A],v=D(e)&&J&&J.call(this.symbols,Math.round(e),Math.round(g),B,h,n);if(J){var M=this.path(v);m.styledMode||M.attr("fill","none");x(M,{symbolName:A,
x:e,y:g,width:B,height:h});n&&x(M,n)}else if(F){var L=a.match(d)[1];M=this.image(L);M.imgwidth=z(N[L]&&N[L].width,n&&n.width);M.imgheight=z(N[L]&&N[L].height,n&&n.height);var l=function(){M.attr({width:M.width,height:M.height})};["width","height"].forEach(function(a){M[a+"Setter"]=function(a,b){var e={},g=this["img"+b],z="width"===b?"translateX":"translateY";this[b]=a;D(g)&&(n&&"within"===n.backgroundSize&&this.width&&this.height&&(g=Math.round(g*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),
this.element&&this.element.setAttribute(b,g),this.alignByTranslate||(e[z]=((this[b]||0)-g)/2,this.attr(e)))}});D(e)&&M.attr({x:e,y:g});M.isImg=!0;D(M.imgwidth)&&D(M.imgheight)?l():(M.attr({width:0,height:0}),f("img",{onload:function(){var a=c[m.chartIndex];0===this.width&&(b(this,{position:"absolute",top:"-999em"}),r.body.appendChild(this));N[L]={width:this.width,height:this.height};M.imgwidth=this.width;M.imgheight=this.height;M.element&&l();this.parentNode&&this.parentNode.removeChild(this);m.imgCount--;
if(!m.imgCount&&a&&a.onload)a.onload()},src:L}),this.imgCount++)}return M},symbols:{circle:function(a,b,e,g){return this.arc(a+e/2,b+g/2,e/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,b,e,g){return["M",a,b,"L",a+e,b,a+e,b+g,a,b+g,"Z"]},triangle:function(a,b,e,g){return["M",a+e/2,b,"L",a+e,b+g,a,b+g,"Z"]},"triangle-down":function(a,b,e,g){return["M",a,b,"L",a+e,b,a+e/2,b+g,"Z"]},diamond:function(a,b,e,g){return["M",a+e/2,b,"L",a+e,b+g/2,a+e/2,b+g,a,b+g/2,"Z"]},arc:function(a,
b,e,g,c){var B=c.start,f=c.r||e,h=c.r||g||e,n=c.end-.001;e=c.innerR;g=z(c.open,.001>Math.abs(c.end-c.start-2*Math.PI));var m=Math.cos(B),d=Math.sin(B),F=Math.cos(n);n=Math.sin(n);B=.001>c.end-B-Math.PI?0:1;c=["M",a+f*m,b+h*d,"A",f,h,0,B,z(c.clockwise,1),a+f*F,b+h*n];D(e)&&c.push(g?"M":"L",a+e*F,b+e*n,"A",e,e,0,B,0,a+e*m,b+e*d);c.push(g?"":"Z");return c},callout:function(a,b,e,g,c){var z=Math.min(c&&c.r||0,e,g),B=z+6,f=c&&c.anchorX;c=c&&c.anchorY;var h=["M",a+z,b,"L",a+e-z,b,"C",a+e,b,a+e,b,a+e,b+
z,"L",a+e,b+g-z,"C",a+e,b+g,a+e,b+g,a+e-z,b+g,"L",a+z,b+g,"C",a,b+g,a,b+g,a,b+g-z,"L",a,b+z,"C",a,b,a,b,a+z,b];f&&f>e?c>b+B&&c<b+g-B?h.splice(13,3,"L",a+e,c-6,a+e+6,c,a+e,c+6,a+e,b+g-z):h.splice(13,3,"L",a+e,g/2,f,c,a+e,g/2,a+e,b+g-z):f&&0>f?c>b+B&&c<b+g-B?h.splice(33,3,"L",a,c+6,a-6,c,a,c-6,a,b+z):h.splice(33,3,"L",a,g/2,f,c,a,g/2,a,b+z):c&&c>g&&f>a+B&&f<a+e-B?h.splice(23,3,"L",f+6,b+g,f,b+g+6,f-6,b+g,a+z,b+g):c&&0>c&&f>a+B&&f<a+e-B&&h.splice(3,3,"L",f-6,b,f,b-6,f+6,b,e-z,b);return h}},clipRect:function(a,
b,e,g){var c=d.uniqueKey()+"-",z=this.createElement("clipPath").attr({id:c}).add(this.defs);a=this.rect(a,b,e,g,0).add(z);a.id=c;a.clipPath=z;a.count=0;return a},text:function(a,b,e,g){var c={};if(g&&(this.allowHTML||!this.forExport))return this.html(a,b,e);c.x=Math.round(b||0);e&&(c.y=Math.round(e));D(a)&&(c.text=a);a=this.createElement("text").attr(c);g||(a.xSetter=function(a,b,e){var g=e.getElementsByTagName("tspan"),c=e.getAttribute(b),z;for(z=0;z<g.length;z++){var B=g[z];B.getAttribute(b)===
c&&B.setAttribute(b,a)}e.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=!this.styledMode&&/px/.test(a)||!R.getComputedStyle?a||b&&b.style&&b.style.fontSize||this.style&&this.style.fontSize:b&&L.prototype.getStyle.call(b,"font-size");a=/px/.test(a)?u(a):12;b=24>a?a+3:Math.round(1.2*a);return{h:b,b:Math.round(.8*b),f:a}},rotCorr:function(a,b,e){var g=a;b&&e&&(g=Math.max(g*Math.cos(b*m),4));return{x:-a/3*Math.sin(b*m),y:g}},label:function(a,b,e,g,c,z,f,h,n){var m=this,d=m.styledMode,A=m.g("button"!==
n&&"label"),J=A.text=m.text("",0,0,f).attr({zIndex:1}),r,v,M=0,l=3,q=0,p,u,T,P,N,O={},R,k,t=/^url\((.*?)\)$/.test(g),ca=d||t,C=function(){return d?r.strokeWidth()%2/2:(R?parseInt(R,10):0)%2/2};n&&A.addClass("highcharts-"+n);var E=function(){var a=J.element.style,b={};v=(void 0===p||void 0===u||N)&&D(J.textStr)&&J.getBBox();A.width=(p||v.width||0)+2*l+q;A.height=(u||v.height||0)+2*l;k=l+Math.min(m.fontMetrics(a&&a.fontSize,J).b,v?v.height:Infinity);ca&&(r||(A.box=r=m.symbols[g]||t?m.symbol(g):m.rect(),
r.addClass(("button"===n?"":"highcharts-label-box")+(n?" highcharts-"+n+"-box":"")),r.add(A),a=C(),b.x=a,b.y=(h?-k:0)+a),b.width=Math.round(A.width),b.height=Math.round(A.height),r.attr(x(b,O)),O={})};var G=function(){var a=q+l;var b=h?0:k;D(p)&&v&&("center"===N||"right"===N)&&(a+={center:.5,right:1}[N]*(p-v.width));if(a!==J.x||b!==J.y)J.attr("x",a),J.hasBoxWidthChanged&&(v=J.getBBox(!0),E()),void 0!==b&&J.attr("y",b);J.x=a;J.y=b};var w=function(a,b){r?r.attr(a,b):O[a]=b};A.onAdd=function(){J.add(A);
A.attr({text:a||0===a?a:"",x:b,y:e});r&&D(c)&&A.attr({anchorX:c,anchorY:z})};A.widthSetter=function(a){p=y(a)?a:null};A.heightSetter=function(a){u=a};A["text-alignSetter"]=function(a){N=a};A.paddingSetter=function(a){D(a)&&a!==l&&(l=A.padding=a,G())};A.paddingLeftSetter=function(a){D(a)&&a!==q&&(q=a,G())};A.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==M&&(M=a,v&&A.attr({x:T}))};A.textSetter=function(a){void 0!==a&&J.attr({text:a});E();G()};A["stroke-widthSetter"]=function(a,b){a&&(ca=
!0);R=this["stroke-width"]=a;w(b,a)};d?A.rSetter=function(a,b){w(b,a)}:A.strokeSetter=A.fillSetter=A.rSetter=function(a,b){"r"!==b&&("fill"===b&&a&&(ca=!0),A[b]=a);w(b,a)};A.anchorXSetter=function(a,b){c=A.anchorX=a;w(b,Math.round(a)-C()-T)};A.anchorYSetter=function(a,b){z=A.anchorY=a;w(b,a-P)};A.xSetter=function(a){A.x=a;M&&(a-=M*((p||v.width)+2*l),A["forceAnimate:x"]=!0);T=Math.round(a);A.attr("translateX",T)};A.ySetter=function(a){P=A.y=Math.round(a);A.attr("translateY",P)};var H=A.css;f={css:function(a){if(a){var b=
{};a=F(a);A.textProps.forEach(function(e){void 0!==a[e]&&(b[e]=a[e],delete a[e])});J.css(b);"width"in b&&E();"fontSize"in b&&(E(),G())}return H.call(A,a)},getBBox:function(){return{width:v.width+2*l,height:v.height+2*l,x:v.x-l,y:v.y-l}},destroy:function(){B(A.element,"mouseenter");B(A.element,"mouseleave");J&&(J=J.destroy());r&&(r=r.destroy());L.prototype.destroy.call(A);A=m=E=G=w=null}};d||(f.shadow=function(a){a&&(E(),r&&r.shadow(a));return A});return x(A,f)}});d.Renderer=k});K(I,"parts/Html.js",
[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.attr,D=k.defined,H=k.pInt,E=d.createElement,y=d.css,C=d.extend,t=d.isFirefox,G=d.isMS,u=d.isWebKit,l=d.pick,p=d.SVGElement;k=d.SVGRenderer;var q=d.win;C(p.prototype,{htmlCss:function(c){var a="SPAN"===this.element.tagName&&c&&"width"in c,b=l(a&&c.width,void 0);if(a){delete c.width;this.textWidth=b;var f=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=C(this.styles,c);y(this.element,c);
f&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,height:c.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var c=this.renderer,a=this.element,b=this.translateX||0,f=this.translateY||0,m=this.x||0,h=this.y||0,d=this.textAlign||"left",x={left:0,center:.5,right:1}[d],v=this.styles,n=v&&v.whiteSpace;y(a,{marginLeft:b,marginTop:f});!c.styledMode&&this.shadows&&this.shadows.forEach(function(a){y(a,{marginLeft:b+
1,marginTop:f+1})});this.inverted&&[].forEach.call(a.childNodes,function(b){c.invertChild(b,a)});if("SPAN"===a.tagName){v=this.rotation;var e=this.textWidth&&H(this.textWidth),g=[v,d,a.innerHTML,this.textWidth,this.textAlign].join(),F;(F=e!==this.oldTextWidth)&&!(F=e>this.oldTextWidth)&&((F=this.textPxLength)||(y(a,{width:"",whiteSpace:n||"nowrap"}),F=a.offsetWidth),F=F>e);F&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(y(a,{width:e+"px",display:"block",whiteSpace:n||
"normal"}),this.oldTextWidth=e,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;g!==this.cTT&&(n=c.fontMetrics(a.style.fontSize,a).b,!D(v)||v===(this.oldRotation||0)&&d===this.oldAlign||this.setSpanRotation(v,x,n),this.getSpanCorrection(!D(v)&&this.textPxLength||a.offsetWidth,n,x,v,d));y(a,{left:m+(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"});this.cTT=g;this.oldRotation=v;this.oldAlign=d}}else this.alignOnAdd=!0},setSpanRotation:function(c,a,b){var f={},m=this.renderer.getTransformKey();
f[m]=f.transform="rotate("+c+"deg)";f[m+(t?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+b+"px";y(this.element,f)},getSpanCorrection:function(c,a,b){this.xCorr=-c*b;this.yCorr=-a}});C(k.prototype,{getTransformKey:function(){return G&&!/Edge/.test(q.navigator.userAgent)?"-ms-transform":u?"-webkit-transform":t?"MozTransform":q.opera?"-o-transform":""},html:function(c,a,b){var f=this.createElement("span"),m=f.element,h=f.renderer,d=h.isSVG,x=function(a,b){["opacity","visibility"].forEach(function(e){a[e+
"Setter"]=function(g,c,f){var z=a.div?a.div.style:b;p.prototype[e+"Setter"].call(this,g,c,f);z&&(z[c]=g)}});a.addedSetters=!0};f.textSetter=function(a){a!==m.innerHTML&&(delete this.bBox,delete this.oldTextWidth);this.textStr=a;m.innerHTML=l(a,"");f.doTransform=!0};d&&x(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){"align"===b&&(b="textAlign");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};
f.attr({text:c,x:Math.round(a),y:Math.round(b)}).css({position:"absolute"});h.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});m.style.whiteSpace="nowrap";f.css=f.htmlCss;d&&(f.add=function(a){var b=h.box.parentNode,e=[];if(this.parentGroup=a){var g=a.div;if(!g){for(;a;)e.push(a),a=a.parentGroup;e.reverse().forEach(function(a){function c(b,e){a[e]=b;"translateX"===e?B.left=b+"px":B.top=b+"px";a.doTransform=!0}var z=w(a.element,"class");g=a.div=a.div||E("div",z?{className:z}:
void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},g||b);var B=g.style;C(a,{classSetter:function(a){return function(b){this.element.setAttribute("class",b);a.className=b}}(g),on:function(){e[0].div&&f.on.apply({element:e[0].div},arguments);return a},translateXSetter:c,translateYSetter:c});a.addedSetters||x(a)})}}else g=b;g.appendChild(m);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();
return f});return f}})});K(I,"parts/Time.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isObject,H=k.objectEach,E=k.splat,y=d.extend,C=d.merge,t=d.pick,G=d.timeUnits,u=d.win;d.Time=function(d){this.update(d,!1)};d.Time.prototype={defaultOptions:{},update:function(d){var l=t(d&&d.useUTC,!0),q=this;this.options=d=C(!0,this.options||{},d);this.Date=d.Date||u.Date||Date;this.timezoneOffset=(this.useUTC=l)&&d.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();
(this.variableTimezone=!(l&&!d.getTimezoneOffset&&!d.timezone))||this.timezoneOffset?(this.get=function(c,a){var b=a.getTime(),f=b-q.getTimezoneOffset(a);a.setTime(f);c=a["getUTC"+c]();a.setTime(b);return c},this.set=function(c,a,b){if("Milliseconds"===c||"Seconds"===c||"Minutes"===c&&0===a.getTimezoneOffset()%60)a["set"+c](b);else{var f=q.getTimezoneOffset(a);f=a.getTime()-f;a.setTime(f);a["setUTC"+c](b);c=q.getTimezoneOffset(a);f=a.getTime()+c;a.setTime(f)}}):l?(this.get=function(c,a){return a["getUTC"+
c]()},this.set=function(c,a,b){return a["setUTC"+c](b)}):(this.get=function(c,a){return a["get"+c]()},this.set=function(c,a,b){return a["set"+c](b)})},makeTime:function(l,p,q,c,a,b){if(this.useUTC){var f=this.Date.UTC.apply(0,arguments);var m=this.getTimezoneOffset(f);f+=m;var h=this.getTimezoneOffset(f);m!==h?f+=h-m:m-36E5!==this.getTimezoneOffset(f-36E5)||d.isSafari||(f-=36E5)}else f=(new this.Date(l,p,t(q,1),t(c,0),t(a,0),t(b,0))).getTime();return f},timezoneOffsetFunction:function(){var l=this,
p=this.options,q=u.moment;if(!this.useUTC)return function(c){return 6E4*(new Date(c)).getTimezoneOffset()};if(p.timezone){if(q)return function(c){return 6E4*-q.tz(c,p.timezone).utcOffset()};d.error(25)}return this.useUTC&&p.getTimezoneOffset?function(c){return 6E4*p.getTimezoneOffset(c)}:function(){return 6E4*(l.timezoneOffset||0)}},dateFormat:function(l,p,q){if(!w(p)||isNaN(p))return d.defaultOptions.lang.invalidDate||"";l=d.pick(l,"%Y-%m-%d %H:%M:%S");var c=this,a=new this.Date(p),b=this.get("Hours",
a),f=this.get("Day",a),m=this.get("Date",a),h=this.get("Month",a),r=this.get("FullYear",a),x=d.defaultOptions.lang,v=x.weekdays,n=x.shortWeekdays,e=d.pad;a=d.extend({a:n?n[f]:v[f].substr(0,3),A:v[f],d:e(m),e:e(m,2," "),w:f,b:x.shortMonths[h],B:x.months[h],m:e(h+1),o:h+1,y:r.toString().substr(2,2),Y:r,H:e(b),k:b,I:e(b%12||12),l:b%12||12,M:e(c.get("Minutes",a)),p:12>b?"AM":"PM",P:12>b?"am":"pm",S:e(a.getSeconds()),L:e(Math.floor(p%1E3),3)},d.dateFormats);H(a,function(a,b){for(;-1!==l.indexOf("%"+b);)l=
l.replace("%"+b,"function"===typeof a?a.call(c,p):a)});return q?l.substr(0,1).toUpperCase()+l.substr(1):l},resolveDTLFormat:function(d){return D(d,!0)?d:(d=E(d),{main:d[0],from:d[1],to:d[2]})},getTimeTicks:function(d,p,q,c){var a=this,b=[],f={};var m=new a.Date(p);var h=d.unitRange,r=d.count||1,x;c=t(c,1);if(w(p)){a.set("Milliseconds",m,h>=G.second?0:r*Math.floor(a.get("Milliseconds",m)/r));h>=G.second&&a.set("Seconds",m,h>=G.minute?0:r*Math.floor(a.get("Seconds",m)/r));h>=G.minute&&a.set("Minutes",
m,h>=G.hour?0:r*Math.floor(a.get("Minutes",m)/r));h>=G.hour&&a.set("Hours",m,h>=G.day?0:r*Math.floor(a.get("Hours",m)/r));h>=G.day&&a.set("Date",m,h>=G.month?1:Math.max(1,r*Math.floor(a.get("Date",m)/r)));if(h>=G.month){a.set("Month",m,h>=G.year?0:r*Math.floor(a.get("Month",m)/r));var v=a.get("FullYear",m)}h>=G.year&&a.set("FullYear",m,v-v%r);h===G.week&&(v=a.get("Day",m),a.set("Date",m,a.get("Date",m)-v+c+(v<c?-7:0)));v=a.get("FullYear",m);c=a.get("Month",m);var n=a.get("Date",m),e=a.get("Hours",
m);p=m.getTime();a.variableTimezone&&(x=q-p>4*G.month||a.getTimezoneOffset(p)!==a.getTimezoneOffset(q));p=m.getTime();for(m=1;p<q;)b.push(p),p=h===G.year?a.makeTime(v+m*r,0):h===G.month?a.makeTime(v,c+m*r):!x||h!==G.day&&h!==G.week?x&&h===G.hour&&1<r?a.makeTime(v,c,n,e+m*r):p+h*r:a.makeTime(v,c,n+m*r*(h===G.day?1:7)),m++;b.push(p);h<=G.hour&&1E4>b.length&&b.forEach(function(b){0===b%18E5&&"000000000"===a.dateFormat("%H%M%S%L",b)&&(f[b]="day")})}b.info=y(d,{higherRanks:f,totalRange:h*r});return b}}});
K(I,"parts/Options.js",[I["parts/Globals.js"]],function(d){var k=d.color,w=d.merge;d.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:d.Time.prototype.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:d.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:d.isTouchDevice?25:10,headerFormat:'\x3cspan style\x3d"font-size: 10px"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e',backgroundColor:k("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,
style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",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"}};d.setOptions=function(k){d.defaultOptions=w(!0,d.defaultOptions,k);d.time.update(w(d.defaultOptions.global,d.defaultOptions.time),!1);return d.defaultOptions};d.getOptions=function(){return d.defaultOptions};
d.defaultPlotOptions=d.defaultOptions.plotOptions;d.time=new d.Time(w(d.defaultOptions.global,d.defaultOptions.time));d.dateFormat=function(k,w,E){return d.time.dateFormat(k,w,E)};""});K(I,"parts/Tick.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=d.correctFloat,E=d.destroyObjectProperties,y=d.fireEvent,C=d.merge,t=d.pick,G=d.deg2rad;d.Tick=function(d,l,p,q,c){this.axis=d;this.pos=l;this.type=p||"";this.isNewLabel=this.isNew=!0;this.parameters=c||
{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p||q||this.addLabel()};d.Tick.prototype={addLabel:function(){var u=this,l=u.axis,p=l.options,q=l.chart,c=l.categories,a=l.names,b=u.pos,f=t(u.options&&u.options.labels,p.labels),m=l.tickPositions,h=b===m[0],r=b===m[m.length-1];c=this.parameters.category||(c?t(c[b],a[b],b):b);var x=u.label;m=m.info;var v,n;if(l.isDatetimeAxis&&m){var e=q.time.resolveDTLFormat(p.dateTimeLabelFormats[!p.grid&&m.higherRanks[b]||
m.unitName]);var g=e.main}u.isFirst=h;u.isLast=r;u.formatCtx={axis:l,chart:q,isFirst:h,isLast:r,dateTimeLabelFormat:g,tickPositionInfo:m,value:l.isLog?H(l.lin2log(c)):c,pos:b};p=l.labelFormatter.call(u.formatCtx,this.formatCtx);if(n=e&&e.list)u.shortenLabel=function(){for(v=0;v<n.length;v++)if(x.attr({text:l.labelFormatter.call(d.extend(u.formatCtx,{dateTimeLabelFormat:n[v]}))}),x.getBBox().width<l.getSlotWidth(u)-2*t(f.padding,5))return;x.attr({text:""})};if(w(x))x&&x.textStr!==p&&(!x.textWidth||
f.style&&f.style.width||x.styles.width||x.css({width:null}),x.attr({text:p}),x.textPxLength=x.getBBox().width);else{if(u.label=x=w(p)&&f.enabled?q.renderer.text(p,0,0,f.useHTML).add(l.labelGroup):null)q.styledMode||x.css(C(f.style)),x.textPxLength=x.getBBox().width;u.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(d){var l=this.axis,p=l.options.labels,q=d.x,c=l.chart.chartWidth,a=l.chart.spacing,b=t(l.labelLeft,
Math.min(l.pos,a[3]));a=t(l.labelRight,Math.max(l.isRadial?0:l.pos+l.len,c-a[1]));var f=this.label,m=this.rotation,h={left:0,center:.5,right:1}[l.labelAlign||f.attr("align")],r=f.getBBox().width,x=l.getSlotWidth(this),v=x,n=1,e,g={};if(m||"justify"!==t(p.overflow,"justify"))0>m&&q-h*r<b?e=Math.round(q/Math.cos(m*G)-b):0<m&&q+h*r>a&&(e=Math.round((c-q)/Math.cos(m*G)));else if(c=q+(1-h)*r,q-h*r<b?v=d.x+v*(1-h)-b:c>a&&(v=a-d.x+v*h,n=-1),v=Math.min(x,v),v<x&&"center"===l.labelAlign&&(d.x+=n*(x-v-h*(x-
Math.min(r,v)))),r>v||l.autoRotation&&(f.styles||{}).width)e=v;e&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(e),(p.style||{}).textOverflow||(g.textOverflow="ellipsis"),f.css(g)))},getPosition:function(u,l,p,q){var c=this.axis,a=c.chart,b=q&&a.oldChartHeight||a.chartHeight;u={x:u?d.correctFloat(c.translate(l+p,null,null,q)+c.transB):c.left+c.offset+(c.opposite?(q&&a.oldChartWidth||a.chartWidth)-c.right-c.left:0),y:u?b-c.bottom+c.offset-(c.opposite?c.height:0):d.correctFloat(b-c.translate(l+
p,null,null,q)-c.transB)};u.y=Math.max(Math.min(u.y,1E5),-1E5);y(this,"afterGetPosition",{pos:u});return u},getLabelPosition:function(d,l,p,q,c,a,b,f){var m=this.axis,h=m.transA,r=m.isLinked&&m.linkedParent?m.linkedParent.reversed:m.reversed,x=m.staggerLines,v=m.tickRotCorr||{x:0,y:0},n=c.y,e=q||m.reserveSpaceDefault?0:-m.labelOffset*("center"===m.labelAlign?.5:1),g={};w(n)||(n=0===m.side?p.rotation?-8:-p.getBBox().height:2===m.side?v.y+8:Math.cos(p.rotation*G)*(v.y-p.getBBox(!1,0).height/2));d=d+
c.x+e+v.x-(a&&q?a*h*(r?-1:1):0);l=l+n-(a&&!q?a*h*(r?1:-1):0);x&&(p=b/(f||1)%x,m.opposite&&(p=x-p-1),l+=m.labelOffset/x*p);g.x=d;g.y=Math.round(l);y(this,"afterGetLabelPosition",{pos:g,tickmarkOffset:a,index:b});return g},getMarkPath:function(d,l,p,q,c,a){return a.crispLine(["M",d,l,"L",d+(c?0:-p),l+(c?p:0)],q)},renderGridLine:function(d,l,p){var q=this.axis,c=q.options,a=this.gridLine,b={},f=this.pos,m=this.type,h=t(this.tickmarkOffset,q.tickmarkOffset),r=q.chart.renderer,x=m?m+"Grid":"grid",v=c[x+
"LineWidth"],n=c[x+"LineColor"];c=c[x+"LineDashStyle"];a||(q.chart.styledMode||(b.stroke=n,b["stroke-width"]=v,c&&(b.dashstyle=c)),m||(b.zIndex=1),d&&(l=0),this.gridLine=a=r.path().attr(b).addClass("highcharts-"+(m?m+"-":"")+"grid-line").add(q.gridGroup));if(a&&(p=q.getPlotLinePath({value:f+h,lineWidth:a.strokeWidth()*p,force:"pass",old:d})))a[d||this.isNew?"attr":"animate"]({d:p,opacity:l})},renderMark:function(d,l,p){var q=this.axis,c=q.options,a=q.chart.renderer,b=this.type,f=b?b+"Tick":"tick",
m=q.tickSize(f),h=this.mark,r=!h,x=d.x;d=d.y;var v=t(c[f+"Width"],!b&&q.isXAxis?1:0);c=c[f+"Color"];m&&(q.opposite&&(m[0]=-m[0]),r&&(this.mark=h=a.path().addClass("highcharts-"+(b?b+"-":"")+"tick").add(q.axisGroup),q.chart.styledMode||h.attr({stroke:c,"stroke-width":v})),h[r?"attr":"animate"]({d:this.getMarkPath(x,d,m[0],h.strokeWidth()*p,q.horiz,a),opacity:l}))},renderLabel:function(d,l,p,q){var c=this.axis,a=c.horiz,b=c.options,f=this.label,m=b.labels,h=m.step;c=t(this.tickmarkOffset,c.tickmarkOffset);
var r=!0,x=d.x;d=d.y;f&&D(x)&&(f.xy=d=this.getLabelPosition(x,d,f,a,m,c,q,h),this.isFirst&&!this.isLast&&!t(b.showFirstLabel,1)||this.isLast&&!this.isFirst&&!t(b.showLastLabel,1)?r=!1:!a||m.step||m.rotation||l||0===p||this.handleOverflow(d),h&&q%h&&(r=!1),r&&D(d.y)?(d.opacity=p,f[this.isNewLabel?"attr":"animate"](d),this.isNewLabel=!1):(f.attr("y",-9999),this.isNewLabel=!0))},render:function(u,l,p){var q=this.axis,c=q.horiz,a=this.pos,b=t(this.tickmarkOffset,q.tickmarkOffset);a=this.getPosition(c,
a,b,l);b=a.x;var f=a.y;q=c&&b===q.pos+q.len||!c&&f===q.pos?-1:1;p=t(p,1);this.isActive=!0;this.renderGridLine(l,p,q);this.renderMark(a,p,q);this.renderLabel(a,l,p,u);this.isNew=!1;d.fireEvent(this,"afterRender")},destroy:function(){E(this,this.axis)}}});K(I,"parts/Axis.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isArray,H=k.isNumber,E=k.isString,y=k.objectEach,C=k.splat,t=d.addEvent,G=d.animObject,u=d.arrayMax,l=d.arrayMin,p=d.color,q=d.correctFloat,c=d.defaultOptions,
a=d.deg2rad,b=d.destroyObjectProperties,f=d.extend,m=d.fireEvent,h=d.format,r=d.getMagnitude,x=d.merge,v=d.normalizeTickInterval,n=d.pick,e=d.removeEvent,g=d.seriesTypes,F=d.syncTimeout,A=d.Tick;k=function(){this.init.apply(this,arguments)};d.extend(k.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},
endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return d.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},
title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(a,b){var e=b.isX,g=this;g.chart=a;g.horiz=a.inverted&&!g.isZAxis?!e:e;g.isXAxis=e;g.coll=g.coll||(e?"xAxis":"yAxis");m(this,"init",{userOptions:b});g.opposite=b.opposite;g.side=b.side||(g.horiz?g.opposite?0:2:g.opposite?1:3);g.setOptions(b);var c=this.options,z=c.type;g.labelFormatter=c.labels.formatter||
g.defaultLabelFormatter;g.userOptions=b;g.minPixelPadding=0;g.reversed=c.reversed;g.visible=!1!==c.visible;g.zoomEnabled=!1!==c.zoomEnabled;g.hasNames="category"===z||!0===c.categories;g.categories=c.categories||g.hasNames;g.names||(g.names=[],g.names.keys={});g.plotLinesAndBandsGroups={};g.isLog="logarithmic"===z;g.isDatetimeAxis="datetime"===z;g.positiveValuesOnly=g.isLog&&!g.allowNegativeLog;g.isLinked=w(c.linkedTo);g.ticks={};g.labelEdge=[];g.minorTicks={};g.plotLinesAndBands=[];g.alternateBands=
{};g.len=0;g.minRange=g.userMinRange=c.minRange||c.maxZoom;g.range=c.range;g.offset=c.offset||0;g.stacks={};g.oldStacks={};g.stacksTouched=0;g.max=null;g.min=null;g.crosshair=n(c.crosshair,C(a.options.tooltip.crosshairs)[e?0:1],!1);b=g.options.events;-1===a.axes.indexOf(g)&&(e?a.axes.splice(a.xAxis.length,0,g):a.axes.push(g),a[g.coll].push(g));g.series=g.series||[];a.inverted&&!g.isZAxis&&e&&void 0===g.reversed&&(g.reversed=!0);y(b,function(a,b){d.isFunction(a)&&t(g,b,a)});g.lin2log=c.linearToLogConverter||
g.lin2log;g.isLog&&(g.val2lin=g.log2lin,g.lin2val=g.lin2log);m(this,"afterInit")},setOptions:function(a){this.options=x(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],x(c[this.coll],a));m(this,"afterSetOptions",{userOptions:a})},defaultLabelFormatter:function(){var a=this.axis,b=this.value,e=a.chart.time,g=a.categories,f=this.dateTimeLabelFormat,n=c.lang,
m=n.numericSymbols;n=n.numericSymbolMagnitude||1E3;var A=m&&m.length,F=a.options.labels.format;a=a.isLog?Math.abs(b):a.tickInterval;if(F)var r=h(F,this,e);else if(g)r=b;else if(f)r=e.dateFormat(f,b);else if(A&&1E3<=a)for(;A--&&void 0===r;)e=Math.pow(n,A+1),a>=e&&0===10*b%e&&null!==m[A]&&0!==b&&(r=d.numberFormat(b/e,-1)+m[A]);void 0===r&&(r=1E4<=Math.abs(b)?d.numberFormat(b,-1):d.numberFormat(b,-1,void 0,""));return r},getSeriesExtremes:function(){var a=this,b=a.chart,e;m(this,"getSeriesExtremes",
null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();a.series.forEach(function(g){if(g.visible||!b.options.chart.ignoreHiddenSeries){var c=g.options,z=c.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=z&&(z=null);if(a.isXAxis){if(c=g.xData,c.length){e=g.getXExtremes(c);var B=e.min;var f=e.max;H(B)||B instanceof Date||(c=c.filter(H),e=g.getXExtremes(c),B=e.min,f=e.max);c.length&&(a.dataMin=Math.min(n(a.dataMin,
B),B),a.dataMax=Math.max(n(a.dataMax,f),f))}}else if(g.getExtremes(),f=g.dataMax,B=g.dataMin,w(B)&&w(f)&&(a.dataMin=Math.min(n(a.dataMin,B),B),a.dataMax=Math.max(n(a.dataMax,f),f)),w(z)&&(a.threshold=z),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});m(this,"afterGetSeriesExtremes")},translate:function(a,b,e,g,c,f){var B=this.linkedParent||this,z=1,h=0,d=g?B.oldTransA:B.transA;g=g?B.oldMin:B.min;var n=B.minPixelPadding;c=(B.isOrdinal||B.isBroken||B.isLog&&c)&&B.lin2val;d||(d=B.transA);
e&&(z*=-1,h=B.len);B.reversed&&(z*=-1,h-=z*(B.sector||B.len));b?(a=(a*z+h-n)/d+g,c&&(a=B.lin2val(a))):(c&&(a=B.val2lin(a)),a=H(g)?z*(a-g)*d+h+z*n+(H(f)?d*f:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a){var b=this,e=b.chart,g=b.left,c=b.top,z=a.old,f=a.value,h=a.translatedValue,d=a.lineWidth,A=a.force,F,r,v,x,l=z&&e.oldChartHeight||
e.chartHeight,q=z&&e.oldChartWidth||e.chartWidth,p,u=b.transB,k=function(a,b,e){if("pass"!==A&&a<b||a>e)A?a=Math.min(Math.max(b,a),e):p=!0;return a};a={value:f,lineWidth:d,old:z,force:A,acrossPanes:a.acrossPanes,translatedValue:h};m(this,"getPlotLinePath",a,function(a){h=n(h,b.translate(f,null,null,z));h=Math.min(Math.max(-1E5,h),1E5);F=v=Math.round(h+u);r=x=Math.round(l-h-u);H(h)?b.horiz?(r=c,x=l-b.bottom,F=v=k(F,g,g+b.width)):(F=g,v=q-b.right,r=x=k(r,c,c+b.height)):(p=!0,A=!1);a.path=p&&!A?null:
e.renderer.crispLine(["M",F,r,"L",v,x],d||1)});return a.path},getLinearTickPositions:function(a,b,e){var g=q(Math.floor(b/a)*a);e=q(Math.ceil(e/a)*a);var c=[],B;q(g+a)===g&&(B=20);if(this.single)return[b];for(b=g;b<=e;){c.push(b);b=q(b+a,B);if(b===z)break;var z=b}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?n(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,b=a.options,e=a.tickPositions,g=a.minorTickInterval,
c=[],f=a.pointRangePadding||0,h=a.min-f;f=a.max+f;var d=f-h;if(d&&d/g<a.len/3)if(a.isLog)this.paddedTicks.forEach(function(b,e,B){e&&c.push.apply(c,a.getLogTickPositions(g,B[e-1],B[e],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())c=c.concat(a.getTimeTicks(a.normalizeTimeTickInterval(g),h,f,b.startOfWeek));else for(b=h+(e[0]-h)%g;b<=f&&b!==c[0];b+=g)c.push(b);0!==c.length&&a.trimTicks(c);return c},adjustForMinRange:function(){var a=this.options,b=this.min,e=this.max,g,c,f,h,
d;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(w(a.min)||w(a.max)?this.minRange=null:(this.series.forEach(function(a){h=a.xData;for(c=d=a.xIncrement?1:h.length-1;0<c;c--)if(f=h[c]-h[c-1],void 0===g||f<g)g=f}),this.minRange=Math.min(5*g,this.dataMax-this.dataMin)));if(e-b<this.minRange){var m=this.dataMax-this.dataMin>=this.minRange;var A=this.minRange;var F=(A-e+b)/2;F=[b-F,n(a.min,b-F)];m&&(F[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin);b=u(F);e=[b+A,n(a.max,b+A)];m&&(e[2]=this.isLog?
this.log2lin(this.dataMax):this.dataMax);e=l(e);e-b<A&&(F[0]=e-A,F[1]=n(a.min,e-A),b=u(F))}this.min=b;this.max=e},getClosest:function(){var a;this.categories?a=1:this.series.forEach(function(b){var e=b.closestPointRange,g=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&w(e)&&g&&(a=w(a)?Math.min(a,e):e)});return a},nameToX:function(a){var b=D(this.categories),e=b?this.categories:this.names,g=a.options.x;a.series.requireSorting=!1;w(g)||(g=!1===this.options.uniqueNames?a.series.autoIncrement():
b?e.indexOf(a.name):n(e.keys[a.name],-1));if(-1===g){if(!b)var c=e.length}else c=g;void 0!==c&&(this.names[c]=a.name,this.names.keys[a.name]=c);return c},updateNames:function(){var a=this,b=this.names;0<b.length&&(Object.keys(b.keys).forEach(function(a){delete b.keys[a]}),b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)a.max=Math.max(a.max,b.xData.length-1),b.processData(),b.generatePoints();b.data.forEach(function(e,g){if(e&&
e.options&&void 0!==e.name){var c=a.nameToX(e);void 0!==c&&c!==e.x&&(e.x=c,b.xData[g]=c)}})}))},setAxisTranslation:function(a){var b=this,e=b.max-b.min,c=b.axisPointRange||0,f=0,h=0,z=b.linkedParent,d=!!b.categories,A=b.transA,F=b.isXAxis;if(F||d||c){var r=b.getClosest();z?(f=z.minPointOffset,h=z.pointRangePadding):b.series.forEach(function(a){var e=d?1:F?n(a.options.pointRange,r,0):b.axisPointRange||0,z=a.options.pointPlacement;c=Math.max(c,e);if(!b.single||d)a=g.xrange&&a instanceof g.xrange?!F:
F,f=Math.max(f,a&&E(z)?0:e/2),h=Math.max(h,a&&"on"===z?0:e)});z=b.ordinalSlope&&r?b.ordinalSlope/r:1;b.minPointOffset=f*=z;b.pointRangePadding=h*=z;b.pointRange=Math.min(c,e);F&&(b.closestPointRange=r)}a&&(b.oldTransA=A);b.translationSlope=b.transA=A=b.staticScale||b.len/(e+h||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=A*f;m(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var b=this,e=b.chart,g=b.options,c=b.isLog,f=b.isDatetimeAxis,
h=b.isXAxis,z=b.isLinked,A=g.maxPadding,F=g.minPadding,x=g.tickInterval,l=g.tickPixelInterval,p=b.categories,u=H(b.threshold)?b.threshold:null,k=b.softThreshold;f||p||z||this.getTickAmount();var t=n(b.userMin,g.min);var y=n(b.userMax,g.max);if(z){b.linkedParent=e[b.coll][g.linkedTo];var E=b.linkedParent.getExtremes();b.min=n(E.min,E.dataMin);b.max=n(E.max,E.dataMax);g.type!==b.linkedParent.options.type&&d.error(11,1,e)}else{if(!k&&w(u))if(b.dataMin>=u)E=u,F=0;else if(b.dataMax<=u){var C=u;A=0}b.min=
n(t,E,b.dataMin);b.max=n(y,C,b.dataMax)}c&&(b.positiveValuesOnly&&!a&&0>=Math.min(b.min,n(b.dataMin,b.min))&&d.error(10,1,e),b.min=q(b.log2lin(b.min),15),b.max=q(b.log2lin(b.max),15));b.range&&w(b.max)&&(b.userMin=b.min=t=Math.max(b.dataMin,b.minFromRange()),b.userMax=y=b.max,b.range=null);m(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(p||b.axisPointRange||b.usePercentage||z)&&w(b.min)&&w(b.max)&&(e=b.max-b.min)&&(!w(t)&&F&&(b.min-=e*F),!w(y)&&A&&(b.max+=e*A));H(g.softMin)&&
!H(b.userMin)&&g.softMin<b.min&&(b.min=t=g.softMin);H(g.softMax)&&!H(b.userMax)&&g.softMax>b.max&&(b.max=y=g.softMax);H(g.floor)&&(b.min=Math.min(Math.max(b.min,g.floor),Number.MAX_VALUE));H(g.ceiling)&&(b.max=Math.max(Math.min(b.max,g.ceiling),n(b.userMax,-Number.MAX_VALUE)));k&&w(b.dataMin)&&(u=u||0,!w(t)&&b.min<u&&b.dataMin>=u?b.min=b.options.minRange?Math.min(u,b.max-b.minRange):u:!w(y)&&b.max>u&&b.dataMax<=u&&(b.max=b.options.minRange?Math.max(u,b.min+b.minRange):u));b.tickInterval=b.min===b.max||
void 0===b.min||void 0===b.max?1:z&&!x&&l===b.linkedParent.options.tickPixelInterval?x=b.linkedParent.tickInterval:n(x,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,p?1:(b.max-b.min)*l/Math.max(b.len,l));h&&!a&&b.series.forEach(function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!x&&(b.tickInterval=
Math.max(b.pointRange,b.tickInterval));a=n(g.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!x&&b.tickInterval<a&&(b.tickInterval=a);f||c||x||(b.tickInterval=v(b.tickInterval,null,r(b.tickInterval),n(g.allowDecimals,!(.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b=a.tickPositions;var e=this.getMinorTickInterval();var g=a.tickPositioner,
c=a.startOnTick,f=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e;this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=e=b&&b.slice();!e&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(e=[this.min,this.max],d.error(19,!1,this.chart)):e=
this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e.length>this.len&&(e=[e[0],e.pop()],e[0]===e[1]&&(e.length=1)),this.tickPositions=e,g&&(g=g.apply(this,[this.min,this.max])))&&(this.tickPositions=e=g);this.paddedTicks=e.slice(0);this.trimTicks(e,
c,f);this.isLinked||(this.single&&2>e.length&&!this.categories&&(this.min-=.5,this.max+=.5),b||g||this.adjustTickAmount());m(this,"afterSetTickPositions")},trimTicks:function(a,b,e){var g=a[0],c=a[a.length-1],f=this.minPointOffset||0;m(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-f>a[0];)a.shift();if(e)this.max=c;else for(;this.max+f<a[a.length-1];)a.pop();0===a.length&&w(g)&&!this.options.tickPositions&&a.push((c+g)/2)}},alignToOthers:function(){var a={},
b,e=this.options;!1===this.chart.options.chart.alignTicks||!1===e.alignTicks||!1===e.startOnTick||!1===e.endOnTick||this.isLog||this.chart[this.coll].forEach(function(e){var g=e.options;g=[e.horiz?g.left:g.top,g.width,g.height,g.pane].join();e.series.length&&(a[g]?b=!0:a[g]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,e=a.tickPixelInterval;!w(a.tickInterval)&&this.len<e&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/
e)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.options,b=this.tickInterval,e=this.tickPositions,g=this.tickAmount,c=this.finalTickAmt,f=e&&e.length,h=n(this.threshold,this.softThreshold?0:null),d;if(this.hasData()){if(f<g){for(d=this.min;e.length<g;)e.length%2||d===h?e.push(q(e[e.length-1]+b)):e.unshift(q(e[0]-b));this.transA*=(f-1)/(g-1);this.min=a.startOnTick?e[0]:Math.min(this.min,e[0]);this.max=a.endOnTick?e[e.length-1]:Math.max(this.max,e[e.length-
1])}else f>g&&(this.tickInterval*=2,this.setTickPositions());if(w(c)){for(b=a=e.length;b--;)(3===c&&1===b%2||2>=c&&0<b&&b<a-1)&&e.splice(b,1);this.finalTickAmt=void 0}}},setScale:function(){var a=this.series.some(function(a){return a.isDirtyData||a.isDirty||a.xAxis&&a.xAxis.isDirty}),b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();(b=this.len!==this.oldAxisLength)||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||
this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks();m(this,"afterSetScale")},setExtremes:function(a,b,e,g,c){var h=this,d=h.chart;e=n(e,!0);h.series.forEach(function(a){delete a.kdTree});c=f(c,{min:a,max:b});m(h,"setExtremes",c,function(){h.userMin=a;
h.userMax=b;h.eventArgs=c;e&&d.redraw(g)})},zoom:function(a,b){var e=this.dataMin,g=this.dataMax,c=this.options,f=Math.min(e,n(c.min,e)),h=Math.max(g,n(c.max,g));a={newMin:a,newMax:b};m(this,"zoom",a,function(a){var b=a.newMin,c=a.newMax;if(b!==this.min||c!==this.max)this.allowZoomOutside||(w(e)&&(b<f&&(b=f),b>h&&(b=h)),w(g)&&(c<f&&(c=f),c>h&&(c=h))),this.displayBtn=void 0!==b||void 0!==c,this.setExtremes(b,c,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed},setAxisSize:function(){var a=
this.chart,b=this.options,e=b.offsets||[0,0,0,0],g=this.horiz,c=this.width=Math.round(d.relativeLength(n(b.width,a.plotWidth-e[3]+e[1]),a.plotWidth)),f=this.height=Math.round(d.relativeLength(n(b.height,a.plotHeight-e[0]+e[2]),a.plotHeight)),h=this.top=Math.round(d.relativeLength(n(b.top,a.plotTop+e[0]),a.plotHeight,a.plotTop));b=this.left=Math.round(d.relativeLength(n(b.left,a.plotLeft+e[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-f-h;this.right=a.chartWidth-c-b;this.len=Math.max(g?c:
f,0);this.pos=g?b:h},getExtremes:function(){var a=this.isLog;return{min:a?q(this.lin2log(this.min)):this.min,max:a?q(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,e=b?this.lin2log(this.min):this.min;b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=e:Infinity===a?a=b:e>a?a=e:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){var b=(n(a,0)-90*this.side+
720)%360;a={align:"center"};m(this,"autoLabelAlign",a,function(a){15<b&&165>b?a.align="right":195<b&&345>b&&(a.align="left")});return a.align},tickSize:function(a){var b=this.options,e=b[a+"Length"],g=n(b[a+"Width"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(g&&e){"inside"===b[a+"Position"]&&(e=-e);var c=[e,g]}a={tickSize:c};m(this,"afterTickSize",a);return a.tickSize},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&
this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var b=this.options.labels,e=this.horiz,g=this.tickInterval,c=g,f=this.len/(((this.categories?1:0)+this.max-this.min)/g),h,d=b.rotation,m=this.labelMetrics(),A,F=Number.MAX_VALUE,r,v=this.max-this.min,x=function(a){var b=a/(f||1);b=1<b?Math.ceil(b):1;b*g>v&&Infinity!==a&&Infinity!==f&&v&&(b=Math.ceil(v/g));return q(b*g)};e?(r=!b.staggerLines&&!b.step&&(w(d)?[d]:f<n(b.autoRotationLimit,80)&&b.autoRotation))&&
r.forEach(function(b){if(b===d||b&&-90<=b&&90>=b){A=x(Math.abs(m.h/Math.sin(a*b)));var e=A+Math.abs(b/360);e<F&&(F=e,h=b,c=A)}}):b.step||(c=x(m.h));this.autoRotation=r;this.labelRotation=n(h,d);return c},getSlotWidth:function(a){var b=this.chart,e=this.horiz,g=this.options.labels,c=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=b.margin[3];return a&&a.slotWidth||e&&2>(g.step||0)&&!g.rotation&&(this.staggerLines||1)*this.len/c||!e&&(g.style&&parseInt(g.style.width,10)||f&&f-b.spacing[3]||
.33*b.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,e=this.tickPositions,g=this.ticks,c=this.options.labels,f=c&&c.style||{},h=this.horiz,d=this.getSlotWidth(),n=Math.max(1,Math.round(d-2*(c.padding||5))),m={},A=this.labelMetrics(),F=c.style&&c.style.textOverflow,r=0;E(c.rotation)||(m.rotation=c.rotation||0);e.forEach(function(a){(a=g[a])&&a.label&&a.label.textPxLength>r&&(r=a.label.textPxLength)});this.maxLabelLength=r;if(this.autoRotation)r>n&&r>A.h?m.rotation=this.labelRotation:
this.labelRotation=0;else if(d){var v=n;if(!F){var x="clip";for(n=e.length;!h&&n--;){var l=e[n];if(l=g[l].label)l.styles&&"ellipsis"===l.styles.textOverflow?l.css({textOverflow:"clip"}):l.textPxLength>d&&l.css({width:d+"px"}),l.getBBox().height>this.len/e.length-(A.h-A.f)&&(l.specificTextOverflow="ellipsis")}}}m.rotation&&(v=r>.5*a.chartHeight?.33*a.chartHeight:r,F||(x="ellipsis"));if(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))m.align=this.labelAlign;e.forEach(function(a){var b=
(a=g[a])&&a.label,e=f.width,c={};b&&(b.attr(m),a.shortenLabel?a.shortenLabel():v&&!e&&"nowrap"!==f.whiteSpace&&(v<b.textPxLength||"SPAN"===b.element.tagName)?(c.width=v,F||(c.textOverflow=b.specificTextOverflow||x),b.css(c)):b.styles&&b.styles.width&&!c.width&&!e&&b.css({width:null}),delete b.specificTextOverflow,a.rotation=m.rotation)},this);this.tickRotCorr=b.rotCorr(A.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&
w(this.min)&&w(this.max)},addTitle:function(a){var b=this.chart.renderer,e=this.horiz,g=this.opposite,c=this.options.title,f,h=this.chart.styledMode;this.axisTitle||((f=c.textAlign)||(f=(e?{low:"left",middle:"center",high:"right"}:{low:g?"right":"left",middle:"center",high:g?"left":"right"})[c.align]),this.axisTitle=b.text(c.text,0,0,c.useHTML).attr({zIndex:7,rotation:c.rotation||0,align:f}).addClass("highcharts-axis-title"),h||this.axisTitle.css(x(c.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=
!0);h||c.style.width||this.isRadial||this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](a)},generateTick:function(a){var b=this.ticks;b[a]?b[a].addLabel():b[a]=new A(this,a)},getOffset:function(){var a=this,b=a.chart,e=b.renderer,g=a.options,c=a.tickPositions,f=a.ticks,h=a.horiz,d=a.side,A=b.inverted&&!a.isZAxis?[1,0,3,2][d]:d,F,r=0,v=0,x=g.title,l=g.labels,q=0,p=b.axisOffset;b=b.clipOffset;var u=[-1,1,1,-1][d],k=g.className,t=a.axisParent;var E=a.hasData();a.showAxis=F=E||n(g.showEmpty,
!0);a.staggerLines=a.horiz&&l.staggerLines;a.axisGroup||(a.gridGroup=e.g("grid").attr({zIndex:g.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(k||"")).add(t),a.axisGroup=e.g("axis").attr({zIndex:g.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(k||"")).add(t),a.labelGroup=e.g("axis-labels").attr({zIndex:l.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(k||"")).add(t));E||a.isLinked?(c.forEach(function(b,e){a.generateTick(b,e)}),a.renderUnsquish(),
a.reserveSpaceDefault=0===d||2===d||{1:"left",3:"right"}[d]===a.labelAlign,n(l.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&c.forEach(function(a){q=Math.max(f[a].getLabelSize(),q)}),a.staggerLines&&(q*=a.staggerLines),a.labelOffset=q*(a.opposite?-1:1)):y(f,function(a,b){a.destroy();delete f[b]});if(x&&x.text&&!1!==x.enabled&&(a.addTitle(F),F&&!1!==x.reserveSpace)){a.titleOffset=r=a.axisTitle.getBBox()[h?"height":"width"];var C=x.offset;v=w(C)?0:n(x.margin,h?5:10)}a.renderLine();
a.offset=u*n(g.offset,p[d]?p[d]+(g.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};e=0===d?-a.labelMetrics().h:2===d?a.tickRotCorr.y:0;v=Math.abs(q)+v;q&&(v=v-e+u*(h?n(l.y,a.tickRotCorr.y+8*u):l.x));a.axisTitleMargin=n(C,v);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(f,c));h=this.tickSize("tick");p[d]=Math.max(p[d],a.axisTitleMargin+r+u*a.offset,v,c&&c.length&&h?h[0]+u*a.offset:0);g=g.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[A]=Math.max(b[A],g);m(this,"afterGetOffset")},
getLinePath:function(a){var b=this.chart,e=this.opposite,g=this.offset,c=this.horiz,f=this.left+(e?this.width:0)+g;g=b.chartHeight-this.bottom-(e?this.height:0)+g;e&&(a*=-1);return b.renderer.crispLine(["M",c?this.left:f,c?g:this.top,"L",c?b.chartWidth-this.right:f,c?g:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,
"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var a=this.horiz,b=this.left,e=this.top,g=this.len,c=this.options.title,f=a?b:e,h=this.opposite,d=this.offset,n=c.x||0,A=c.y||0,F=this.axisTitle,r=this.chart.renderer.fontMetrics(c.style&&c.style.fontSize,F);F=Math.max(F.getBBox(null,0).height-r.h-1,0);g={low:f+(a?0:g),middle:f+g/2,high:f+(a?g:0)}[c.align];b=(a?e+this.height:b)+(a?1:-1)*(h?-1:1)*this.axisTitleMargin+[-F,F,r.f,-F][this.side];a={x:a?g+n:b+(h?this.width:0)+
d+n,y:a?b+A-(h?this.height:0)+d:g+A};m(this,"afterGetTitlePosition",{titlePosition:a});return a},renderMinorTick:function(a){var b=this.chart.hasRendered&&H(this.oldMin),e=this.minorTicks;e[a]||(e[a]=new A(this,a,"minor"));b&&e[a].isNew&&e[a].render(null,!0);e[a].render(null,!1,1)},renderTick:function(a,b){var e=this.isLinked,g=this.ticks,c=this.chart.hasRendered&&H(this.oldMin);if(!e||a>=this.min&&a<=this.max)g[a]||(g[a]=new A(this,a)),c&&g[a].isNew&&g[a].render(b,!0,-1),g[a].render(b)},render:function(){var a=
this,b=a.chart,e=a.options,g=a.isLog,c=a.isLinked,f=a.tickPositions,h=a.axisTitle,n=a.ticks,r=a.minorTicks,v=a.alternateBands,x=e.stackLabels,l=e.alternateGridColor,q=a.tickmarkOffset,p=a.axisLine,u=a.showAxis,k=G(b.renderer.globalAnimation),t,E;a.labelEdge.length=0;a.overlap=!1;[n,r,v].forEach(function(a){y(a,function(a){a.isActive=!1})});if(a.hasData()||c)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(b){a.renderMinorTick(b)}),f.length&&(f.forEach(function(b,e){a.renderTick(b,
e)}),q&&(0===a.min||a.single)&&(n[-1]||(n[-1]=new A(a,-1,null,!0)),n[-1].render(-1))),l&&f.forEach(function(e,c){E=void 0!==f[c+1]?f[c+1]+q:a.max-q;0===c%2&&e<a.max&&E<=a.max+(b.polar?-q:q)&&(v[e]||(v[e]=new d.PlotLineOrBand(a)),t=e+q,v[e].options={from:g?a.lin2log(t):t,to:g?a.lin2log(E):E,color:l},v[e].render(),v[e].isActive=!0)}),a._addedPlotLB||((e.plotLines||[]).concat(e.plotBands||[]).forEach(function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);[n,r,v].forEach(function(a){var e,g=[],c=k.duration;
y(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,g.push(b))});F(function(){for(e=g.length;e--;)a[g[e]]&&!a[g[e]].isActive&&(a[g[e]].destroy(),delete a[g[e]])},a!==v&&b.hasRendered&&c?c:0)});p&&(p[p.isPlaced?"animate":"attr"]({d:this.getLinePath(p.strokeWidth())}),p.isPlaced=!0,p[u?"show":"hide"](u));h&&u&&(e=a.getTitlePosition(),H(e.y)?(h[h.isNew?"attr":"animate"](e),h.isNew=!1):(h.attr("y",-9999),h.isNew=!0));x&&x.enabled&&a.renderStackTotals();a.isDirty=!1;m(this,"afterRender")},redraw:function(){this.visible&&
(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var g=this,c=g.stacks,f=g.plotLinesAndBands,h;m(this,"destroy",{keepEvents:a});a||e(g);y(c,function(a,e){b(a);c[e]=null});[g.ticks,g.minorTicks,g.alternateBands].forEach(function(a){b(a)});if(f)for(a=f.length;a--;)f[a].destroy();"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){g[a]&&
(g[a]=g[a].destroy())});for(h in g.plotLinesAndBandsGroups)g.plotLinesAndBandsGroups[h]=g.plotLinesAndBandsGroups[h].destroy();y(g,function(a,b){-1===g.keepProps.indexOf(b)&&delete g[b]})},drawCrosshair:function(a,b){var e,g=this.crosshair,c=n(g.snap,!0),f,h=this.cross;m(this,"drawCrosshair",{e:a,point:b});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(w(b)||!c)){c?w(b)&&(f=n("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-b.plotY)):f=a&&(this.horiz?a.chartX-this.pos:
this.len-a.chartY+this.pos);w(f)&&(e=this.getPlotLinePath({value:b&&(this.isXAxis?b.x:n(b.stackY,b.y)),translatedValue:f})||null);if(!w(e)){this.hideCrosshair();return}c=this.categories&&!this.isRadial;h||(this.cross=h=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(c?"category ":"thin ")+g.className).attr({zIndex:n(g.zIndex,2)}).add(),this.chart.styledMode||(h.attr({stroke:g.color||(c?p("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":n(g.width,1)}).css({"pointer-events":"none"}),
g.dashStyle&&h.attr({dashstyle:g.dashStyle})));h.show().attr({d:e});c&&!g.width&&h.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();m(this,"afterDrawCrosshair",{e:a,point:b})},hideCrosshair:function(){this.cross&&this.cross.hide();m(this,"afterHideCrosshair")}});return d.Axis=k});K(I,"parts/DateTimeAxis.js",[I["parts/Globals.js"]],function(d){var k=d.Axis,w=d.getMagnitude,D=d.normalizeTickInterval,H=d.timeUnits;k.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,
arguments)};k.prototype.normalizeTimeTickInterval=function(d,k){var y=k||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];k=y[y.length-1];var t=H[k[0]],E=k[1],u;for(u=0;u<y.length&&!(k=y[u],t=H[k[0]],E=k[1],y[u+1]&&d<=(t*E[E.length-1]+H[y[u+1][0]])/2);u++);t===H.year&&d<5*t&&(E=[1,2,5]);d=D(d/t,E,"year"===k[0]?Math.max(w(d/t),1):1);return{unitRange:t,
count:d,unitName:k[0]}}});K(I,"parts/LogarithmicAxis.js",[I["parts/Globals.js"]],function(d){var k=d.Axis,w=d.getMagnitude,D=d.normalizeTickInterval,H=d.pick;k.prototype.getLogTickPositions=function(d,k,C,t){var y=this.options,u=this.len,l=[];t||(this._minorAutoInterval=null);if(.5<=d)d=Math.round(d),l=this.getLinearTickPositions(d,k,C);else if(.08<=d){u=Math.floor(k);var p,q;for(y=.3<d?[1,2,4]:.15<d?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<C+1&&!q;u++){var c=y.length;for(p=0;p<c&&!q;p++){var a=this.log2lin(this.lin2log(u)*
y[p]);a>k&&(!t||b<=C)&&void 0!==b&&l.push(b);b>C&&(q=!0);var b=a}}}else k=this.lin2log(k),C=this.lin2log(C),d=t?this.getMinorTickInterval():y.tickInterval,d=H("auto"===d?null:d,this._minorAutoInterval,y.tickPixelInterval/(t?5:1)*(C-k)/((t?u/this.tickPositions.length:u)||1)),d=D(d,null,w(d)),l=this.getLinearTickPositions(d,k,C).map(this.log2lin),t||(this._minorAutoInterval=d/5);t||(this.tickInterval=d);return l};k.prototype.log2lin=function(d){return Math.log(d)/Math.LN10};k.prototype.lin2log=function(d){return Math.pow(10,
d)}});K(I,"parts/PlotLineOrBand.js",[I["parts/Globals.js"],I["parts/Axis.js"],I["parts/Utilities.js"]],function(d,k,w){var D=w.defined,H=w.erase,E=w.objectEach,y=d.arrayMax,C=d.arrayMin,t=d.destroyObjectProperties,G=d.merge,u=d.pick;d.PlotLineOrBand=function(d,p){this.axis=d;p&&(this.options=p,this.id=p.id)};d.PlotLineOrBand.prototype={render:function(){d.fireEvent(this,"render");var l=this,p=l.axis,q=p.horiz,c=l.options,a=c.label,b=l.label,f=c.to,m=c.from,h=c.value,r=D(m)&&D(f),x=D(h),v=l.svgElem,
n=!v,e=[],g=c.color,F=u(c.zIndex,0),A=c.events;e={"class":"highcharts-plot-"+(r?"band ":"line ")+(c.className||"")};var z={},B=p.chart.renderer,J=r?"bands":"lines";p.isLog&&(m=p.log2lin(m),f=p.log2lin(f),h=p.log2lin(h));p.chart.styledMode||(x?(e.stroke=g||"#999999",e["stroke-width"]=u(c.width,1),c.dashStyle&&(e.dashstyle=c.dashStyle)):r&&(e.fill=g||"#e6ebf5",c.borderWidth&&(e.stroke=c.borderColor,e["stroke-width"]=c.borderWidth)));z.zIndex=F;J+="-"+F;(g=p.plotLinesAndBandsGroups[J])||(p.plotLinesAndBandsGroups[J]=
g=B.g("plot-"+J).attr(z).add());n&&(l.svgElem=v=B.path().attr(e).add(g));if(x)e=p.getPlotLinePath({value:h,lineWidth:v.strokeWidth(),acrossPanes:c.acrossPanes});else if(r)e=p.getPlotBandPath(m,f,c);else return;(n||!v.d)&&e&&e.length?(v.attr({d:e}),A&&E(A,function(a,b){v.on(b,function(a){A[b].apply(l,[a])})})):v&&(e?(v.show(!0),v.animate({d:e})):v.d&&(v.hide(),b&&(l.label=b=b.destroy())));a&&(D(a.text)||D(a.formatter))&&e&&e.length&&0<p.width&&0<p.height&&!e.isFlat?(a=G({align:q&&r&&"center",x:q?!r&&
4:10,verticalAlign:!q&&r&&"middle",y:q?r?16:10:r?6:-4,rotation:q&&!r&&90},a),this.renderLabel(a,e,r,F)):b&&b.hide();return l},renderLabel:function(d,p,q,c){var a=this.label,b=this.axis.chart.renderer;a||(a={align:d.textAlign||d.align,rotation:d.rotation,"class":"highcharts-plot-"+(q?"band":"line")+"-label "+(d.className||"")},a.zIndex=c,c=this.getLabelText(d),this.label=a=b.text(c,0,0,d.useHTML).attr(a).add(),this.axis.chart.styledMode||a.css(d.style));b=p.xBounds||[p[1],p[4],q?p[6]:p[1]];p=p.yBounds||
[p[2],p[5],q?p[7]:p[2]];q=C(b);c=C(p);a.align(d,!1,{x:q,y:c,width:y(b)-q,height:y(p)-c});a.show(!0)},getLabelText:function(d){return D(d.formatter)?d.formatter.call(this):d.text},destroy:function(){H(this.axis.plotLinesAndBands,this);delete this.axis;t(this)}};d.extend(k.prototype,{getPlotBandPath:function(d,p){var q=this.getPlotLinePath({value:p,force:!0,acrossPanes:this.options.acrossPanes}),c=this.getPlotLinePath({value:d,force:!0,acrossPanes:this.options.acrossPanes}),a=[],b=this.horiz,f=1;d=
d<this.min&&p<this.min||d>this.max&&p>this.max;if(c&&q){if(d){var m=c.toString()===q.toString();f=0}for(d=0;d<c.length;d+=6)b&&q[d+1]===c[d+1]?(q[d+1]+=f,q[d+4]+=f):b||q[d+2]!==c[d+2]||(q[d+2]+=f,q[d+5]+=f),a.push("M",c[d+1],c[d+2],"L",c[d+4],c[d+5],q[d+4],q[d+5],q[d+1],q[d+2],"z"),a.isFlat=m}return a},addPlotBand:function(d){return this.addPlotBandOrLine(d,"plotBands")},addPlotLine:function(d){return this.addPlotBandOrLine(d,"plotLines")},addPlotBandOrLine:function(l,p){var q=(new d.PlotLineOrBand(this,
l)).render(),c=this.userOptions;if(q){if(p){var a=c[p]||[];a.push(l);c[p]=a}this.plotLinesAndBands.push(q)}return q},removePlotBandOrLine:function(d){for(var l=this.plotLinesAndBands,q=this.options,c=this.userOptions,a=l.length;a--;)l[a].id===d&&l[a].destroy();[q.plotLines||[],c.plotLines||[],q.plotBands||[],c.plotBands||[]].forEach(function(b){for(a=b.length;a--;)b[a].id===d&&H(b,b[a])})},removePlotBand:function(d){this.removePlotBandOrLine(d)},removePlotLine:function(d){this.removePlotBandOrLine(d)}})});
K(I,"parts/Tooltip.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=k.isString,E=k.splat;"";var y=d.doc,C=d.extend,t=d.format,G=d.merge,u=d.pick,l=d.syncTimeout,p=d.timeUnits;d.Tooltip=function(){this.init.apply(this,arguments)};d.Tooltip.prototype={init:function(d,c){this.chart=d;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!d.inverted;this.shared=c.shared||this.split;this.outside=u(c.outside,!(!d.scrollablePixelsX&&
!d.scrollablePixelsY))&&!this.split},cleanSplit:function(d){this.chart.series.forEach(function(c){var a=c&&c.tt;a&&(!a.isActive||d?c.tt=a.destroy():a.isActive=!1)})},applyFilter:function(){var d=this.chart;d.renderer.definition({tagName:"filter",id:"drop-shadow-"+d.index,opacity:.5,children:[{tagName:"feGaussianBlur","in":"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},
{tagName:"feMergeNode","in":"SourceGraphic"}]}]});d.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+d.index+"{filter:url(#drop-shadow-"+d.index+")}"})},getLabel:function(){var q=this,c=this.chart.renderer,a=this.chart.styledMode,b=this.options,f="tooltip"+(w(b.className)?" "+b.className:""),m;if(!this.label){this.outside&&(this.container=m=d.doc.createElement("div"),m.className="highcharts-tooltip-container",d.css(m,{position:"absolute",top:"1px",pointerEvents:b.style&&b.style.pointerEvents,
zIndex:3}),d.doc.body.appendChild(m),this.renderer=c=new d.Renderer(m,0,0,{},void 0,void 0,c.styledMode));this.split?this.label=c.g(f):(this.label=c.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,f).attr({padding:b.padding,r:b.borderRadius}),a||this.label.attr({fill:b.backgroundColor,"stroke-width":b.borderWidth}).css(b.style).shadow(b.shadow));a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(this.outside){var h={x:this.label.xSetter,y:this.label.ySetter};
this.label.xSetter=function(a,b){h[b].call(this.label,q.distance);m.style.left=a+"px"};this.label.ySetter=function(a,b){h[b].call(this.label,q.distance);m.style.top=a+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(d){this.destroy();G(!0,this.chart.options.tooltip.userOptions,d);this.init(this.chart,G(!0,this.options,d))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&
(this.renderer=this.renderer.destroy(),d.discardElement(this.container));d.clearTimeout(this.hideTimer);d.clearTimeout(this.tooltipTimeout)},move:function(l,c,a,b){var f=this,m=f.now,h=!1!==f.options.animation&&!f.isHidden&&(1<Math.abs(l-m.x)||1<Math.abs(c-m.y)),r=f.followPointer||1<f.len;C(m,{x:h?(2*m.x+l)/3:l,y:h?(m.y+c)/2:c,anchorX:r?void 0:h?(2*m.anchorX+a)/3:a,anchorY:r?void 0:h?(m.anchorY+b)/2:b});f.getLabel().attr(m);h&&(d.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){f&&
f.move(l,c,a,b)},32))},hide:function(p){var c=this;d.clearTimeout(this.hideTimer);p=u(p,this.options.hideDelay,500);this.isHidden||(this.hideTimer=l(function(){c.getLabel()[p?"fadeOut":"hide"]();c.isHidden=!0},p))},getAnchor:function(d,c){var a=this.chart,b=a.pointer,f=a.inverted,m=a.plotTop,h=a.plotLeft,r=0,x=0,v,n;d=E(d);this.followPointer&&c?(void 0===c.chartX&&(c=b.normalize(c)),d=[c.chartX-a.plotLeft,c.chartY-m]):d[0].tooltipPos?d=d[0].tooltipPos:(d.forEach(function(a){v=a.series.yAxis;n=a.series.xAxis;
r+=a.plotX+(!f&&n?n.left-h:0);x+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!f&&v?v.top-m:0)}),r/=d.length,x/=d.length,d=[f?a.plotWidth-x:r,this.shared&&!f&&1<d.length&&c?c.chartY-m:f?a.plotHeight-r:x]);return d.map(Math.round)},getPosition:function(d,c,a){var b=this.chart,f=this.distance,m={},h=b.inverted&&a.h||0,r,x=this.outside,v=x?y.documentElement.clientWidth-2*f:b.chartWidth,n=x?Math.max(y.body.scrollHeight,y.documentElement.scrollHeight,y.body.offsetHeight,y.documentElement.offsetHeight,
y.documentElement.clientHeight):b.chartHeight,e=b.pointer.chartPosition,g=b.containerScaling,F=function(a){return g?a*g.scaleX:a},A=function(a){return g?a*g.scaleY:a},z=function(g){var h="x"===g;return[g,h?v:n,h?d:c].concat(x?[h?F(d):A(c),h?e.left-f+F(a.plotX+b.plotLeft):e.top-f+A(a.plotY+b.plotTop),0,h?v:n]:[h?d:c,h?a.plotX+b.plotLeft:a.plotY+b.plotTop,h?b.plotLeft:b.plotTop,h?b.plotLeft+b.plotWidth:b.plotTop+b.plotHeight])},B=z("y"),l=z("x"),p=!this.followPointer&&u(a.ttBelow,!b.inverted===!!a.negative),
q=function(a,b,e,g,c,d,n){var z="y"===a?A(f):F(f),r=(e-g)/2,B=g<c-f,v=c+f+g<b,x=c-z-e+r;c=c+z-r;if(p&&v)m[a]=c;else if(!p&&B)m[a]=x;else if(B)m[a]=Math.min(n-g,0>x-h?x:x-h);else if(v)m[a]=Math.max(d,c+h+e>b?c:c+h);else return!1},k=function(a,b,e,g,c){var d;c<f||c>b-f?d=!1:m[a]=c<e/2?1:c>b-g/2?b-g-2:c-e/2;return d},t=function(a){var b=B;B=l;l=b;r=a},L=function(){!1!==q.apply(0,B)?!1!==k.apply(0,l)||r||(t(!0),L()):r?m.x=m.y=0:(t(!0),L())};(b.inverted||1<this.len)&&t();L();return m},defaultFormatter:function(d){var c=
this.points||E(this);var a=[d.tooltipFooterHeaderFormatter(c[0])];a=a.concat(d.bodyFormatter(c));a.push(d.tooltipFooterHeaderFormatter(c[0],!0));return a},refresh:function(l,c){var a=this.chart,b=this.options,f=l,m={},h=[];var r=b.formatter||this.defaultFormatter;m=this.shared;var x=a.styledMode;if(b.enabled){d.clearTimeout(this.hideTimer);this.followPointer=E(f)[0].series.tooltipOptions.followPointer;var v=this.getAnchor(f,c);c=v[0];var n=v[1];!m||f.series&&f.series.noSharedTooltip?m=f.getLabelConfig():
(a.pointer.applyInactiveState(f),f.forEach(function(a){a.setState("hover");h.push(a.getLabelConfig())}),m={x:f[0].category,y:f[0].y},m.points=h,f=f[0]);this.len=h.length;r=r.call(m,this);m=f.series;this.distance=u(m.tooltipOptions.distance,16);!1===r?this.hide():(a=this.getLabel(),this.isHidden&&a.attr({opacity:1}).show(),this.split?this.renderSplit(r,E(l)):(b.style.width&&!x||a.css({width:this.chart.spacingBox.width}),a.attr({text:r&&r.join?r.join(""):r}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
u(f.colorIndex,m.colorIndex)),x||a.attr({stroke:b.borderColor||f.color||m.color||"#666666"}),this.updatePosition({plotX:c,plotY:n,negative:f.negative,ttBelow:f.ttBelow,h:v[2]||0})),this.isHidden=!1);d.fireEvent(this,"refresh")}},renderSplit:function(l,c){var a=this,b=[],f=this.chart,m=f.renderer,h=!0,r=this.options,x=0,v,n=this.getLabel(),e=f.plotTop;H(l)&&(l=[!1,l]);l.slice(0,c.length+1).forEach(function(g,d){if(!1!==g&&""!==g){d=c[d-1]||{isHeader:!0,plotX:c[0].plotX,plotY:f.plotHeight};var A=d.series||
a,F=A.tt,B=d.series||{},l="highcharts-color-"+u(d.colorIndex,B.colorIndex,"none");F||(F={padding:r.padding,r:r.borderRadius},f.styledMode||(F.fill=r.backgroundColor,F["stroke-width"]=r.borderWidth),A.tt=F=m.label(null,null,null,(d.isHeader?r.headerShape:r.shape)||"callout",null,null,r.useHTML).addClass("highcharts-tooltip-box "+l).attr(F).add(n));F.isActive=!0;F.attr({text:g});f.styledMode||F.css(r.style).shadow(r.shadow).attr({stroke:r.borderColor||d.color||B.color||"#333333"});g=F.getBBox();l=g.width+
F.strokeWidth();d.isHeader?(x=g.height,f.xAxis[0].opposite&&(v=!0,e-=x),g=Math.max(0,Math.min(d.plotX+f.plotLeft-l/2,f.chartWidth+(f.scrollablePixelsX?f.scrollablePixelsX-f.marginRight:0)-l))):g=d.plotX+f.plotLeft-u(r.distance,16)-l;0>g&&(h=!1);d.isHeader?B=v?-x:f.plotHeight+x:(B=B.yAxis,B=B.pos-e+Math.max(0,Math.min(d.plotY||0,B.len)));b.push({target:B,rank:d.isHeader?1:0,size:A.tt.getBBox().height+1,point:d,x:g,tt:F})}});this.cleanSplit();r.positioner&&b.forEach(function(b){var e=r.positioner.call(a,
b.tt.getBBox().width,b.size,b.point);b.x=e.x;b.align=0;b.target=e.y;b.rank=u(e.rank,b.rank)});d.distribute(b,f.plotHeight+x);b.forEach(function(b){var g=b.point,c=g.series,d=c&&c.yAxis;b.tt.attr({visibility:void 0===b.pos?"hidden":"inherit",x:h||g.isHeader||r.positioner?b.x:g.plotX+f.plotLeft+a.distance,y:b.pos+e,anchorX:g.isHeader?g.plotX+f.plotLeft:g.plotX+c.xAxis.pos,anchorY:g.isHeader?f.plotTop+f.plotHeight/2:d.pos+Math.max(0,Math.min(g.plotY,d.len))})})},updatePosition:function(l){var c=this.chart,
a=c.pointer,b=this.getLabel(),f=l.plotX+c.plotLeft,m=l.plotY+c.plotTop;a.chartPosition||(a.chartPosition=d.offset(c.container));l=(this.options.positioner||this.getPosition).call(this,b.width,b.height,l);if(this.outside){var h=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(b.width+h,b.height+h,!1);if(c=c.containerScaling)d.css(this.container,{transform:"scale("+c.scaleX+", "+c.scaleY+")"}),f*=c.scaleX,m*=c.scaleY;f+=a.chartPosition.left-l.x;m+=a.chartPosition.top-l.y}this.move(Math.round(l.x),
Math.round(l.y||0),f,m)},getDateFormat:function(d,c,a,b){var f=this.chart.time,m=f.dateFormat("%m-%d %H:%M:%S.%L",c),h={millisecond:15,second:12,minute:9,hour:6,day:3},r="millisecond";for(x in p){if(d===p.week&&+f.dateFormat("%w",c)===a&&"00:00:00.000"===m.substr(6)){var x="week";break}if(p[x]>d){x=r;break}if(h[x]&&m.substr(h[x])!=="01-01 00:00:00.000".substr(h[x]))break;"week"!==x&&(r=x)}if(x)var v=f.resolveDTLFormat(b[x]).main;return v},getXDateFormat:function(d,c,a){c=c.dateTimeLabelFormats;var b=
a&&a.closestPointRange;return(b?this.getDateFormat(b,d.x,a.options.startOfWeek,c):c.day)||c.year},tooltipFooterHeaderFormatter:function(l,c){var a=c?"footer":"header",b=l.series,f=b.tooltipOptions,m=f.xDateFormat,h=b.xAxis,r=h&&"datetime"===h.options.type&&D(l.key),x=f[a+"Format"];c={isFooter:c,labelConfig:l};d.fireEvent(this,"headerFormatter",c,function(a){r&&!m&&(m=this.getXDateFormat(l,f,h));r&&m&&(l.point&&l.point.tooltipDateKeys||["key"]).forEach(function(a){x=x.replace("{point."+a+"}","{point."+
a+":"+m+"}")});b.chart.styledMode&&(x=this.styledModeFormat(x));a.text=t(x,{point:l,series:b},this.chart.time)});return c.text},bodyFormatter:function(d){return d.map(function(c){var a=c.series.tooltipOptions;return(a[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,a[(c.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(d){return d.replace('style\x3d"font-size: 10px"','class\x3d"highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,
'class\x3d"highcharts-color-{$1.colorIndex}"')}}});K(I,"parts/Pointer.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.attr,D=k.defined,H=k.isNumber,E=k.isObject,y=k.objectEach,C=k.splat,t=d.addEvent,G=d.charts,u=d.color,l=d.css,p=d.extend,q=d.find,c=d.fireEvent,a=d.offset,b=d.pick,f=d.Tooltip;d.Pointer=function(a,b){this.init(a,b)};d.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=
[];this.lastValidTouch={};f&&(a.tooltip=new f(a,c.tooltip),this.followTouchMove=b(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var c=this.chart,d=c.options.chart,f=d.zoomType||"";c=c.inverted;/touch/.test(a.type)&&(f=b(d.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!c||f&&c;this.zoomVert=f&&!c||a&&c;this.hasZoom=a||f},normalize:function(b,c){var d=b.touches?b.touches.length?b.touches.item(0):b.changedTouches[0]:b;c||(this.chartPosition=
c=a(this.chart.container));var f=d.pageX-c.left;c=d.pageY-c.top;if(d=this.chart.containerScaling)f/=d.scaleX,c/=d.scaleY;return p(b,{chartX:Math.round(f),chartY:Math.round(c)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,b,c){var d;a.forEach(function(a){var f=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");
a=a.searchPoint(c,f);if((f=E(a,!0))&&!(f=!E(d,!0))){f=d.distX-a.distX;var e=d.dist-a.dist,g=(a.series.group&&a.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);f=0<(0!==f&&b?f:0!==e?e:0!==g?g:d.series.index>a.series.index?-1:1)}f&&(d=a)});return d},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,c){var d=a.series,f=d.xAxis;d=d.yAxis;var h=b(a.clientX,a.plotX),n=a.shapeArgs;if(f&&d)return c?{chartX:f.len+
f.pos-h,chartY:d.len+d.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+d.pos};if(n&&n.x&&n.y)return{chartX:n.x,chartY:n.y}},getHoverData:function(a,c,d,f,v,n){var e,g=[];f=!(!f||!a);var h=c&&!c.stickyTracking?[c]:d.filter(function(a){return a.visible&&!(!v&&a.directTouch)&&b(a.options.enableMouseTracking,!0)&&a.stickyTracking});c=(e=f||!n?a:this.findNearestKDPoint(h,v,n))&&e.series;e&&(v&&!c.noSharedTooltip?(h=d.filter(function(a){return a.visible&&!(!v&&a.directTouch)&&b(a.options.enableMouseTracking,
!0)&&!a.noSharedTooltip}),h.forEach(function(a){var b=q(a.points,function(a){return a.x===e.x&&!a.isNull});E(b)&&(a.chart.isBoosting&&(b=a.getPoint(b)),g.push(b))})):g.push(e));return{hoverPoint:e,hoverSeries:c,hoverPoints:g}},runPointActions:function(a,c){var f=this.chart,h=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,m=h?h.shared:!1,n=c||f.hoverPoint,e=n&&n.series||f.hoverSeries;e=this.getHoverData(n,e,f.series,(!a||"touchmove"!==a.type)&&(!!c||e&&e.directTouch&&this.isDirectTouch),m,a);
n=e.hoverPoint;var g=e.hoverPoints;c=(e=e.hoverSeries)&&e.tooltipOptions.followPointer;m=m&&e&&!e.noSharedTooltip;if(n&&(n!==f.hoverPoint||h&&h.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===g.indexOf(a)&&a.setState()});if(f.hoverSeries!==e)e.onMouseOver();this.applyInactiveState(g);(g||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!n.series)return;n.firePointEvent("mouseOver");f.hoverPoints=g;f.hoverPoint=n;h&&h.refresh(m?g:n,a)}else c&&
h&&!h.isHidden&&(n=h.getAnchor([{}],a),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=t(f.container.ownerDocument,"mousemove",function(a){var b=G[d.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(a)}));f.axes.forEach(function(e){var c=b(e.crosshair.snap,!0),f=c?d.find(g,function(a){return a.series[e.coll]===e}):void 0;f||!c?e.drawCrosshair(a,f):e.hideCrosshair()})},applyInactiveState:function(a){var b=[],c;(a||[]).forEach(function(a){c=a.series;b.push(c);
c.linkedParent&&b.push(c.linkedParent);c.linkedSeries&&(b=b.concat(c.linkedSeries));c.navigatorSeries&&b.push(c.navigatorSeries)});this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,f=c.hoverPoint,h=c.hoverPoints,e=c.tooltip,g=e&&e.shared?h:f;a&&g&&C(g).forEach(function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)e&&g&&C(g).length&&(e.refresh(g),
e.shared&&h?h.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):f&&(f.setState(f.state,!0),c.axes.forEach(function(a){a.crosshair&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();h&&h.forEach(function(a){a.setState()});if(d)d.onMouseOut();e&&e.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(a){a.hideCrosshair()});
this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,d;c.series.forEach(function(f){d=a||f.getPlotBox();f.xAxis&&f.xAxis.zoomEnabled&&f.group&&(f.group.attr(d),f.markerGroup&&(f.markerGroup.attr(d),f.markerGroup.clip(b?c.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(d))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},
drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,f=a.chartY,n=this.zoomHor,e=this.zoomVert,g=b.plotLeft,m=b.plotTop,A=b.plotWidth,z=b.plotHeight,B=this.selectionMarker,l=this.mouseDownX,p=this.mouseDownY,q=c.panKey&&a[c.panKey+"Key"];if(!B||!B.touch)if(d<g?d=g:d>g+A&&(d=g+A),f<m?f=m:f>m+z&&(f=m+z),this.hasDragged=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-f,2)),10<this.hasDragged){var k=b.isInsidePlot(l-g,p-m);b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&k&&!q&&!B&&(this.selectionMarker=
B=b.renderer.rect(g,m,n?1:A,e?1:z,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||B.attr({fill:c.selectionMarkerFill||u("#335cad").setOpacity(.25).get()}));B&&n&&(d-=l,B.attr({width:Math.abs(d),x:(0<d?0:d)+l}));B&&e&&(d=f-p,B.attr({height:Math.abs(d),y:(0<d?0:d)+p}));k&&!B&&c.panning&&b.pan(a,c.panning)}},drop:function(a){var b=this,d=this.chart,f=this.hasPinched;if(this.selectionMarker){var m={originalEvent:a,xAxis:[],yAxis:[]},n=this.selectionMarker,e=n.attr?n.attr("x"):
n.x,g=n.attr?n.attr("y"):n.y,F=n.attr?n.attr("width"):n.width,A=n.attr?n.attr("height"):n.height,z;if(this.hasDragged||f)d.axes.forEach(function(c){if(c.zoomEnabled&&D(c.min)&&(f||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var d=c.horiz,h="touchend"===a.type?c.minPixelPadding:0,n=c.toValue((d?e:g)+h);d=c.toValue((d?e+F:g+A)-h);m[c.coll].push({axis:c,min:Math.min(n,d),max:Math.max(n,d)});z=!0}}),z&&c(d,"selection",m,function(a){d.zoom(p(a,f?{animation:!1}:null))});H(d.index)&&(this.selectionMarker=
this.selectionMarker.destroy());f&&this.scaleGroups()}d&&H(d.index)&&(l(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);2!==a.button&&(this.zoomOption(a),a.preventDefault&&a.preventDefault(),this.dragStart(a))},onDocumentMouseUp:function(a){G[d.hoverChartIndex]&&G[d.hoverChartIndex].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition;
a=this.normalize(a,c);!c||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(a){var b=G[d.hoverChartIndex];b&&(a.relatedTarget||a.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;D(d.hoverChartIndex)&&G[d.hoverChartIndex]&&G[d.hoverChartIndex].mouseIsDown||(d.hoverChartIndex=b.index);a=this.normalize(a);a.preventDefault||(a.returnValue=!1);"mousedown"===
b.mouseIsDown&&this.drag(a);!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||b.openMenu||this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=w(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||
this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,d=b.hoverPoint,f=b.plotLeft,m=b.plotTop;a=this.normalize(a);b.cancelClick||(d&&this.inClass(a.target,"highcharts-tracker")?(c(d.series,"click",p(a,{point:d})),b.hoverPoint&&d.firePointEvent("click",a)):(p(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-f,a.chartY-m)&&c(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container,c=b.ownerDocument;
b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};this.unbindContainerMouseLeave=t(b,"mouseleave",a.onContainerMouseLeave);d.unbindDocumentMouseUp||(d.unbindDocumentMouseUp=t(c,"mouseup",a.onDocumentMouseUp));d.hasTouch&&(t(b,"touchstart",function(b){a.onContainerTouchStart(b)}),t(b,"touchmove",function(b){a.onContainerTouchMove(b)}),d.unbindDocumentTouchEnd||(d.unbindDocumentTouchEnd=t(c,"touchend",
a.onDocumentTouchEnd)))},destroy:function(){var a=this;a.unDocMouseMove&&a.unDocMouseMove();this.unbindContainerMouseLeave();d.chartCount||(d.unbindDocumentMouseUp&&(d.unbindDocumentMouseUp=d.unbindDocumentMouseUp()),d.unbindDocumentTouchEnd&&(d.unbindDocumentTouchEnd=d.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);y(a,function(b,c){a[c]=null})}}});K(I,"parts/TouchPointer.js",[I["parts/Globals.js"]],function(d){var k=d.charts,w=d.extend,D=d.noop,H=d.pick;w(d.Pointer.prototype,{pinchTranslate:function(d,
k,C,t,w,u){this.zoomHor&&this.pinchTranslateDirection(!0,d,k,C,t,w,u);this.zoomVert&&this.pinchTranslateDirection(!1,d,k,C,t,w,u)},pinchTranslateDirection:function(d,k,C,t,w,u,l,p){var q=this.chart,c=d?"x":"y",a=d?"X":"Y",b="chart"+a,f=d?"width":"height",m=q["plot"+(d?"Left":"Top")],h,r,x=p||1,v=q.inverted,n=q.bounds[d?"h":"v"],e=1===k.length,g=k[0][b],F=C[0][b],A=!e&&k[1][b],z=!e&&C[1][b];C=function(){!e&&20<Math.abs(g-A)&&(x=p||Math.abs(F-z)/Math.abs(g-A));r=(m-F)/x+g;h=q["plot"+(d?"Width":"Height")]/
x};C();k=r;if(k<n.min){k=n.min;var B=!0}else k+h>n.max&&(k=n.max-h,B=!0);B?(F-=.8*(F-l[c][0]),e||(z-=.8*(z-l[c][1])),C()):l[c]=[F,z];v||(u[c]=r-m,u[f]=h);u=v?1/x:x;w[f]=h;w[c]=k;t[v?d?"scaleY":"scaleX":"scale"+a]=x;t["translate"+a]=u*m+(F-u*g)},pinch:function(d){var k=this,C=k.chart,t=k.pinchDown,E=d.touches,u=E.length,l=k.lastValidTouch,p=k.hasZoom,q=k.selectionMarker,c={},a=1===u&&(k.inClass(d.target,"highcharts-tracker")&&C.runTrackerClick||k.runChartClick),b={};1<u&&(k.initiated=!0);p&&k.initiated&&
!a&&d.preventDefault();[].map.call(E,function(a){return k.normalize(a)});"touchstart"===d.type?([].forEach.call(E,function(a,b){t[b]={chartX:a.chartX,chartY:a.chartY}}),l.x=[t[0].chartX,t[1]&&t[1].chartX],l.y=[t[0].chartY,t[1]&&t[1].chartY],C.axes.forEach(function(a){if(a.zoomEnabled){var b=C.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,d=a.toPixels(Math.min(H(a.options.min,a.dataMin),a.dataMin)),f=a.toPixels(Math.max(H(a.options.max,a.dataMax),a.dataMax)),v=Math.max(d,f);b.min=Math.min(a.pos,Math.min(d,
f)-c);b.max=Math.max(a.pos+a.len,v+c)}}),k.res=!0):k.followTouchMove&&1===u?this.runPointActions(k.normalize(d)):t.length&&(q||(k.selectionMarker=q=w({destroy:D,touch:!0},C.plotBox)),k.pinchTranslate(t,E,c,q,b,l),k.hasPinched=p,k.scaleGroups(c,b),k.res&&(k.res=!1,this.reset(!1,0)))},touch:function(k,y){var C=this.chart,t;if(C.index!==d.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});d.hoverChartIndex=C.index;if(1===k.touches.length)if(k=this.normalize(k),(t=C.isInsidePlot(k.chartX-
C.plotLeft,k.chartY-C.plotTop))&&!C.openMenu){y&&this.runPointActions(k);if("touchmove"===k.type){y=this.pinchDown;var w=y[0]?4<=Math.sqrt(Math.pow(y[0].chartX-k.chartX,2)+Math.pow(y[0].chartY-k.chartY,2)):!1}H(w,!0)&&this.pinch(k)}else y&&this.reset();else 2===k.touches.length&&this.pinch(k)},onContainerTouchStart:function(d){this.zoomOption(d);this.touch(d,!0)},onContainerTouchMove:function(d){this.touch(d)},onDocumentTouchEnd:function(w){k[d.hoverChartIndex]&&k[d.hoverChartIndex].pointer.drop(w)}})});
K(I,"parts/MSPointer.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.objectEach,D=d.addEvent,H=d.charts,E=d.css,y=d.doc;k=d.extend;var C=d.noop,t=d.Pointer,G=d.removeEvent,u=d.win,l=d.wrap;if(!d.hasTouch&&(u.PointerEvent||u.MSPointerEvent)){var p={},q=!!u.PointerEvent,c=function(){var a=[];a.item=function(a){return this[a]};w(p,function(b){a.push({pageX:b.pageX,pageY:b.pageY,target:b.target})});return a},a=function(a,f,m,h){"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||
!H[d.hoverChartIndex]||(h(a),h=H[d.hoverChartIndex].pointer,h[f]({type:m,target:a.currentTarget,preventDefault:C,touches:c()}))};k(t.prototype,{onContainerPointerDown:function(b){a(b,"onContainerTouchStart","touchstart",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(b){a(b,"onContainerTouchMove","touchmove",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY};p[a.pointerId].target||(p[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(b){a(b,
"onDocumentTouchEnd","touchend",function(a){delete p[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,q?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,q?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(y,q?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});l(t.prototype,"init",function(a,c,d){a.call(this,c,d);this.hasZoom&&E(c.container,{"-ms-touch-action":"none","touch-action":"none"})});l(t.prototype,"setDOMEvents",function(a){a.apply(this);
(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(D)});l(t.prototype,"destroy",function(a){this.batchMSEvents(G);a.call(this)})}});K(I,"parts/Legend.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=d.addEvent,E=d.css,y=d.discardElement,C=d.fireEvent;k=d.isFirefox;var t=d.marginNames,G=d.merge,u=d.pick,l=d.setAnimation,p=d.stableSort,q=d.win,c=d.wrap;d.Legend=function(a,b){this.init(a,b)};d.Legend.prototype={init:function(a,b){this.chart=a;this.setOptions(b);
b.enabled&&(this.render(),H(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=H(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(a){var b=u(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=G(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=
b-5;this.symbolWidth=u(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted},update:function(a,b){var c=this.chart;this.setOptions(G(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;u(b,!0)&&c.redraw();C(this,"afterUpdate")},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,d=a.legendItem,h=a.legendLine,r=a.legendSymbol,l=this.itemHiddenStyle.color;
c=b?c.itemStyle.color:l;var v=b?a.color||l:l,n=a.options&&a.options.marker,e={fill:v};d&&d.css({fill:c,color:c});h&&h.attr({stroke:v});r&&(n&&r.isMarker&&(e=a.pointAttribs(),b||(e.stroke=e.fill=l)),r.attr(e))}C(this,"afterColorizeItem",{item:a,visible:b})},positionItems:function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(a){var b=this.options,c=b.symbolPadding;b=!b.rtl;var d=a._legendItemPos,h=d[0];d=d[1];var r=a.checkbox;
if((a=a.legendGroup)&&a.element)a[w(a.translateY)?"animate":"attr"]({translateX:b?h:this.legendWidth-h-2*c-4,translateY:d});r&&(r.x=h,r.y=d)},destroyItem:function(a){var b=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(b){a[b]&&(a[b]=a[b].destroy())});b&&y(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(a,b)});"clipRect up down pager nav box title group".split(" ").forEach(a,
this);this.display=null},positionCheckboxes:function(){var a=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var d=a.translateY;this.allItems.forEach(function(f){var h=f.checkbox;if(h){var m=d+c+h.y+(this.scrollOffset||0)+3;E(h,{left:a.translateX+f.checkboxOffset+h.x-20+"px",top:m+"px",display:this.proximate||m>d-6&&m<d+b-6?"":"none"})}},this)}},renderTitle:function(){var a=this.options,b=this.padding,c=a.title,d=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,
b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?d.format(b.labelFormat,a,this.chart.time):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,
c=b.renderer,d=this.options,h=this.symbolWidth,r=d.symbolPadding,l=this.itemStyle,v=this.itemHiddenStyle,n="horizontal"===d.layout?u(d.itemDistance,20):0,e=!d.rtl,g=a.legendItem,F=!a.series,A=!F&&a.series.drawLegendSymbol?a.series:a,z=A.options;z=this.createCheckboxForItem&&z&&z.showCheckbox;n=h+r+n+(z?20:0);var B=d.useHTML,p=a.options.className;g||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+a.colorIndex+(p?" "+p:"")+(F?" highcharts-series-"+a.index:
"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=g=c.text("",e?h+r:-r,this.baseline||0,B),b.styledMode||g.css(G(a.visible?l:v)),g.attr({align:e?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(b.styledMode?12:l.fontSize,g),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,g.attr("y",this.baseline)),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,A.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,g,B));z&&!a.checkbox&&this.createCheckboxForItem(a);
this.colorizeItem(a,a.visible);!b.styledMode&&l.width||g.css({width:(d.itemWidth||this.widthOption||b.spacingBox.width)-n});this.setText(a);b=g.getBBox();a.itemWidth=a.checkboxOffset=d.itemWidth||a.legendItemWidth||b.width+n;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||b.height||this.symbolHeight)},layoutItem:function(a){var b=this.options,c=this.padding,d="horizontal"===b.layout,h=a.itemHeight,
r=b.itemMarginBottom||0,l=this.itemMarginTop,v=d?u(b.itemDistance,20):0,n=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>n?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>n&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+r),this.lastLineHeight=0);this.lastItemY=l+this.itemY+r;this.lastLineHeight=Math.max(h,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=l+h+r,this.lastLineHeight=h);this.offsetWidth=this.widthOption||Math.max((d?
this.itemX-c-(a.checkbox?0:v):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];this.chart.series.forEach(function(b){var c=b&&b.options;b&&u(c.showInLegend,w(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});C(this,"afterGetAllItems",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=
this.chart,d=this.options,h=this.getAlignment();h&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,m){f.test(h)&&!w(a[m])&&(c[t[m]]=Math.max(c[t[m]],c.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*d[m%2?"x":"y"]+u(d.margin,12)+b[m]+(c.titleOffset[m]||0)))})},proximatePositions:function(){var a=this.chart,b=[],c="left"===this.options.align;this.allItems.forEach(function(f){var h=c;if(f.yAxis&&f.points){f.xAxis.options.reversed&&(h=!h);var m=d.find(h?f.points:
f.points.slice(0).reverse(),function(a){return D(a.plotY)});h=f.legendGroup.getBBox().height;var l=f.yAxis.top-a.plotTop;f.visible?(m=m?m.plotY:f.yAxis.height,m+=l-.3*h):m=l+f.yAxis.height;b.push({target:m,size:h,item:f})}},this);d.distribute(b,a.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos})},render:function(){var a=this.chart,b=a.renderer,c=this.group,m,h=this.box,r=this.options,l=this.padding;this.itemX=l;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=
0;this.widthOption=d.relativeLength(r.width,a.spacingBox.width-l);var v=a.spacingBox.width-2*l-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(v/=2);this.maxLegendWidth=this.widthOption||v;c||(this.group=c=b.g("legend").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(c),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();v=this.getAllItems();p(v,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});r.reversed&&
v.reverse();this.allItems=v;this.display=m=!!v.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;v.forEach(this.renderItem,this);v.forEach(this.layoutItem,this);v=(this.widthOption||this.offsetWidth)+l;var n=this.lastItemY+this.lastLineHeight+this.titleHeight;n=this.handleOverflow(n);n+=l;h||(this.box=h=b.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(c),h.isNew=!0);a.styledMode||h.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||
"none"}).shadow(r.shadow);0<v&&0<n&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:v,height:n},h.strokeWidth())),h.isNew=!1);h[m?"show":"hide"]();a.styledMode&&"none"===c.getStyle("display")&&(v=n=0);this.legendWidth=v;this.legendHeight=n;m&&(b=a.spacingBox,h=b.y,/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?h+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(h-=a.titleOffset[2]),h!==b.y&&(b=G(b,{y:h})),c.align(G(r,{width:v,height:n,verticalAlign:this.proximate?
"top":r.verticalAlign}),!0,b));this.proximate||this.positionItems();C(this,"afterRender")},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,h=this.options,r=h.y,l=this.padding;r=c.spacingBox.height+("top"===h.verticalAlign?-r:r)-l;var v=h.maxHeight,n,e=this.clipRect,g=h.navigation,F=u(g.animation,!0),A=g.arrowSize||12,z=this.nav,B=this.pages,p,q=this.allItems,k=function(a){"number"===typeof a?e.attr({height:a}):e&&(b.clipRect=e.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=
a?"rect("+l+"px,9999px,"+(l+a)+"px,0)":"auto")},t=function(a){b[a]=d.circle(0,0,1.3*A).translate(A/2,A/2).add(z);c.styledMode||b[a].attr("fill","rgba(0,0,0,0.0001)");return b[a]};"horizontal"!==h.layout||"middle"===h.verticalAlign||h.floating||(r/=2);v&&(r=Math.min(r,v));B.length=0;a>r&&!1!==g.enabled?(this.clipHeight=n=Math.max(r-20-this.titleHeight-l,0),this.currentPage=u(this.currentPage,1),this.fullHeight=a,q.forEach(function(a,b){var e=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),
g=B.length;if(!g||e-B[g-1]>n&&(p||e)!==B[g-1])B.push(p||e),g++;a.pageIx=g-1;p&&(q[b-1].pageIx=g-1);b===q.length-1&&e+c-B[g-1]>n&&e!==p&&(B.push(e),a.pageIx=g);e!==p&&(p=e)}),e||(e=b.clipRect=d.clipRect(0,l,9999,0),b.contentGroup.clip(e)),k(n),z||(this.nav=z=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,A,A).add(z),t("upTracker").on("click",function(){b.scroll(-1,F)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),c.styledMode||this.pager.css(g.style),
this.pager.add(z),this.down=d.symbol("triangle-down",0,0,A,A).add(z),t("downTracker").on("click",function(){b.scroll(1,F)})),b.scroll(0),a=r):z&&(k(),this.nav=z.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length,h=this.currentPage+a;a=this.clipHeight;var r=this.options.navigation,p=this.pager,v=this.padding;h>d&&(h=d);0<h&&(void 0!==b&&l(b,this.chart),this.nav.attr({translateX:v,translateY:a+this.padding+7+this.titleHeight,
visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:h+"/"+d}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":h===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),this.chart.styledMode||(this.up.attr({fill:1===h?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===
d?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:h===d?"default":"pointer"})),this.scrollOffset=-c[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes())}};d.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,d=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(d?(a.symbolWidth-c)/2:0,a.baseline-c+1,d?c:a.symbolWidth,c,u(a.options.symbolRadius,c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},
drawLineMarker:function(a){var b=this.options,c=b.marker,d=a.symbolWidth,h=a.symbolHeight,r=h/2,l=this.chart.renderer,v=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var n={};this.chart.styledMode||(n={"stroke-width":b.lineWidth||0},b.dashStyle&&(n.dashstyle=b.dashStyle));this.legendLine=l.path(["M",0,a,"L",d,a]).addClass("highcharts-graph").attr(n).add(v);c&&!1!==c.enabled&&d&&(b=Math.min(u(c.radius,r),r),0===this.symbol.indexOf("url")&&(c=G(c,{width:h,height:h}),b=0),this.legendSymbol=
c=l.symbol(this.symbol,d/2-b,a-b,2*b,2*b,c).addClass("highcharts-point").add(v),c.isMarker=!0)}};(/Trident\/7\.0/.test(q.navigator&&q.navigator.userAgent)||k)&&c(d.Legend.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();c.bubbleLegend||setTimeout(d)})});K(I,"parts/Chart.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.attr,D=k.defined,H=k.erase,E=k.isArray,y=k.isNumber,C=k.isObject,t=k.isString,G=k.objectEach,u=k.pInt,l=k.splat,
p=d.addEvent,q=d.animate,c=d.animObject,a=d.doc,b=d.Axis,f=d.createElement,m=d.defaultOptions,h=d.discardElement,r=d.charts,x=d.css,v=d.extend,n=d.find,e=d.fireEvent,g=d.Legend,F=d.marginNames,A=d.merge,z=d.Pointer,B=d.pick,J=d.removeEvent,M=d.seriesTypes,T=d.syncTimeout,N=d.win,R=d.Chart=function(){this.getArgs.apply(this,arguments)};d.chart=function(a,b,e){return new R(a,b,e)};v(R.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(t(a[0])||a[0].nodeName)this.renderTo=a.shift();
this.init(a[0],a[1])},init:function(a,b){var c,g=a.series,f=a.plotOptions||{};e(this,"init",{args:arguments},function(){a.series=null;c=A(m,a);G(c.plotOptions,function(a,b){C(a)&&(a.tooltip=f[b]&&A(f[b].tooltip)||void 0)});c.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;c.series=a.series=g;this.userOptions=a;var h=c.chart,n=h.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=c;this.axes=
[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new d.Time(a.time):d.time;this.styledMode=h.styledMode;this.hasCartesianSeries=h.showAxes;var F=this;F.index=r.length;r.push(F);d.chartCount++;n&&G(n,function(a,b){d.isFunction(a)&&p(F,b,a)});F.xAxis=[];F.yAxis=[];F.pointCount=F.colorCounter=F.symbolCounter=0;e(F,"afterInit");F.firstRender()})},initSeries:function(a){var b=this.options.chart;(b=M[a.type||b.type||b.defaultSeriesType])||d.error(17,!0,this);b=new b;b.init(this,a);return b},
orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].getName())},isInsidePlot:function(a,b,e){var c=e?b:a;a=e?a:b;return 0<=c&&c<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(a){e(this,"beforeRedraw");var b=this.axes,c=this.series,g=this.pointer,f=this.legend,h=this.userOptions.legend,n=this.isDirtyLegend,A=this.hasCartesianSeries,F=this.isDirtyBox,m=this.renderer,z=m.isHidden(),B=[];this.setResponsive&&this.setResponsive(!1);d.setAnimation(a,
this);z&&this.temporaryDisplay();this.layOutTitles();for(a=c.length;a--;){var r=c[a];if(r.options.stacking){var l=!0;if(r.isDirty){var p=!0;break}}}if(p)for(a=c.length;a--;)r=c[a],r.options.stacking&&(r.isDirty=!0);c.forEach(function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),n=!0):h&&(h.labelFormatter||h.labelFormat)&&(n=!0));a.isDirtyData&&e(a,"updatedData")});n&&f&&f.options.enabled&&(f.render(),this.isDirtyLegend=!1);l&&this.getStacks();A&&b.forEach(function(a){a.updateNames();
a.setScale()});this.getMargins();A&&(b.forEach(function(a){a.isDirty&&(F=!0)}),b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,B.push(function(){e(a,"afterSetExtremes",v(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(F||l)&&a.redraw()}));F&&this.drawChartBox();e(this,"predraw");c.forEach(function(a){(F||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});g&&g.reset(!0);m.draw();e(this,"redraw");e(this,"render");z&&this.temporaryDisplay(!0);B.forEach(function(a){a.call()})},
get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var e=this.series,c;var g=n(this.axes,b)||n(this.series,b);for(c=0;!g&&c<e.length;c++)g=n(e[c].points||[],b);return g},getAxes:function(){var a=this,c=this.options,g=c.xAxis=l(c.xAxis||{});c=c.yAxis=l(c.yAxis||{});e(this,"getAxes");g.forEach(function(a,b){a.index=b;a.isX=!0});c.forEach(function(a,b){a.index=b});g.concat(c).forEach(function(e){new b(a,e)});e(this,"afterGetAxes")},getSelectedPoints:function(){var a=[];this.series.forEach(function(b){a=
a.concat((b[b.hasGroupedData?"points":"data"]||[]).filter(function(a){return B(a.selectedStaging,a.selected)}))});return a},getSelectedSeries:function(){return this.series.filter(function(a){return a.selected})},setTitle:function(a,b,e){this.applyDescription("title",a);this.applyDescription("subtitle",b);this.applyDescription("caption",void 0);this.layOutTitles(e)},applyDescription:function(a,b){var e=this,c="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};
c=this.options[a]=A(!this.styledMode&&{style:c},this.options[a],b);var g=this[a];g&&b&&(this[a]=g=g.destroy());c&&!g&&(g=this.renderer.text(c.text,0,0,c.useHTML).attr({align:c.align,"class":"highcharts-"+a,zIndex:c.zIndex||4}).add(),g.update=function(b){e[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](b)},this.styledMode||g.css(c.style),this[a]=g)},layOutTitles:function(a){var b=[0,0,0],e=this.renderer,c=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var g=
this[a],d=this.options[a],f=d.verticalAlign||"top";a="title"===a?-3:"top"===f?b[0]+2:0;if(g){if(!this.styledMode)var h=d.style.fontSize;h=e.fontMetrics(h,g).b;g.css({width:(d.width||c.width+(d.widthAdjust||0))+"px"});var n=g.getBBox(d.useHTML).height;g.align(v({y:"bottom"===f?h:a+h,height:n},d),!1,"spacingBox");d.floating||("top"===f?b[0]=Math.ceil(b[0]+n):"bottom"===f&&(b[2]=Math.ceil(b[2]+n)))}},this);b[0]&&"top"===(this.options.title.verticalAlign||"top")&&(b[0]+=this.options.title.margin);b[2]&&
"bottom"===this.options.caption.verticalAlign&&(b[2]+=this.options.caption.margin);var g=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;!this.isDirtyBox&&g&&(this.isDirtyBox=this.isDirtyLegend=g,this.hasRendered&&B(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width;a=a.height;var e=this.renderTo;D(b)||(this.containerWidth=d.getStyle(e,"width"));D(a)||(this.containerHeight=d.getStyle(e,"height"));this.chartWidth=Math.max(0,
b||this.containerWidth||600);this.chartHeight=Math.max(0,d.relativeLength(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(b){var e=this.renderTo;if(b)for(;e&&e.style;)e.hcOrigStyle&&(d.css(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(a.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style;){a.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,a.body.appendChild(e));if("none"===d.getStyle(e,"display",!1)||e.hcOricDetached)e.hcOrigStyle=
{display:e.style.display,height:e.style.height,overflow:e.style.overflow},b={display:"block",overflow:"hidden"},e!==this.renderTo&&(b.height=0),d.css(e,b),e.offsetWidth||e.style.setProperty("display","block","important");e=e.parentNode;if(e===a.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b=this.options,c=b.chart;var g=this.renderTo;var h=d.uniqueKey(),n,A;g||(this.renderTo=g=c.renderTo);t(g)&&(this.renderTo=g=a.getElementById(g));
g||d.error(13,!0,this);var F=u(w(g,"data-highcharts-chart"));y(F)&&r[F]&&r[F].hasRendered&&r[F].destroy();w(g,"data-highcharts-chart",this.index);g.innerHTML="";c.skipClone||g.offsetWidth||this.temporaryDisplay();this.getChartSize();F=this.chartWidth;var m=this.chartHeight;x(g,{overflow:"hidden"});this.styledMode||(n=v({position:"relative",overflow:"hidden",width:F+"px",height:m+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},c.style));this.container=
g=f("div",{id:h},n,g);this._cursor=g.style.cursor;this.renderer=new (d[c.renderer]||d.Renderer)(g,F,m,null,c.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);this.setClassName(c.className);if(this.styledMode)for(A in b.defs)this.renderer.definition(b.defs[A]);else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;e(this,"afterGetContainer")},getMargins:function(a){var b=this.spacing,c=this.margin,g=this.titleOffset;this.resetMargins();g[0]&&!D(c[0])&&(this.plotTop=Math.max(this.plotTop,
g[0]+b[0]));g[2]&&!D(c[2])&&(this.marginBottom=Math.max(this.marginBottom,g[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);e(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],e=a.colorAxis,c=a.margin,g=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?g(a.axes):e&&e.length&&g(e);F.forEach(function(e,g){D(c[g])||(a[e]+=b[g])});a.setChartSize()},reflow:function(b){var e=this,c=e.options.chart,
g=e.renderTo,f=D(c.width)&&D(c.height),h=c.width||d.getStyle(g,"width");c=c.height||d.getStyle(g,"height");g=b?b.target:N;if(!f&&!e.isPrinting&&h&&c&&(g===N||g===a)){if(h!==e.containerWidth||c!==e.containerHeight)d.clearTimeout(e.reflowTimeout),e.reflowTimeout=T(function(){e.container&&e.setSize(void 0,void 0,!1)},b?100:0);e.containerWidth=h;e.containerHeight=c}},setReflow:function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=
p(N,"resize",function(a){b.options&&b.reflow(a)}),p(this,"destroy",this.unbindReflow))},setSize:function(a,b,g){var f=this,h=f.renderer;f.isResizing+=1;d.setAnimation(g,f);f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;void 0!==a&&(f.options.chart.width=a);void 0!==b&&(f.options.chart.height=b);f.getChartSize();if(!f.styledMode){var n=h.globalAnimation;(n?q:x)(f.container,{width:f.chartWidth+"px",height:f.chartHeight+"px"},n)}f.setChartSize(!0);h.setSize(f.chartWidth,f.chartHeight,g);
f.axes.forEach(function(a){a.isDirty=!0;a.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(g);f.oldChartHeight=null;e(f,"resize");T(function(){f&&e(f,"endResize",null,function(){--f.isResizing})},c(n).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,g=this.chartWidth,d=this.chartHeight,f=this.options.chart,h=this.spacing,n=this.clipOffset,A,F,m,z;this.plotLeft=A=Math.round(this.plotLeft);this.plotTop=F=Math.round(this.plotTop);this.plotWidth=
m=Math.max(0,Math.round(g-A-this.marginRight));this.plotHeight=z=Math.max(0,Math.round(d-F-this.marginBottom));this.plotSizeX=b?z:m;this.plotSizeY=b?m:z;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:h[3],y:h[0],width:g-h[3]-h[1],height:d-h[0]-h[2]};this.plotBox=c.plotBox={x:A,y:F,width:m,height:z};g=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(g,n[3])/2);c=Math.ceil(Math.max(g,n[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(g,n[1])/
2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(g,n[2])/2-c))};a||this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()});e(this,"afterSetChartSize",{skipAxes:a})},resetMargins:function(){e(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(e){var c=b[e],g=C(c)?c:[c,c,c,c];["Top","Right","Bottom","Left"].forEach(function(c,d){a[e][d]=B(b[e+c],g[d])})});F.forEach(function(b,e){a[b]=B(a.margin[e],a.spacing[e])});a.axisOffset=[0,0,0,0];a.clipOffset=
[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,g=this.chartHeight,d=this.chartBackground,f=this.plotBackground,h=this.plotBorder,n=this.styledMode,A=this.plotBGImage,F=a.backgroundColor,m=a.plotBackgroundColor,z=a.plotBackgroundImage,B,r=this.plotLeft,l=this.plotTop,v=this.plotWidth,p=this.plotHeight,x=this.plotBox,J=this.clipRect,q=this.clipBox,u="animate";d||(this.chartBackground=d=b.rect().addClass("highcharts-background").add(),u="attr");if(n)var k=
B=d.strokeWidth();else{k=a.borderWidth||0;B=k+(a.shadow?8:0);F={fill:F||"none"};if(k||d["stroke-width"])F.stroke=a.borderColor,F["stroke-width"]=k;d.attr(F).shadow(a.shadow)}d[u]({x:B/2,y:B/2,width:c-B-k%2,height:g-B-k%2,r:a.borderRadius});u="animate";f||(u="attr",this.plotBackground=f=b.rect().addClass("highcharts-plot-background").add());f[u](x);n||(f.attr({fill:m||"none"}).shadow(a.plotShadow),z&&(A?A.animate(x):this.plotBGImage=b.image(z,r,l,v,p).add()));J?J.animate({width:q.width,height:q.height}):
this.clipRect=b.clipRect(q);u="animate";h||(u="attr",this.plotBorder=h=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());n||h.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});h[u](h.crisp({x:r,y:l,width:v,height:p},-h.strokeWidth()));this.isDirtyBox=!1;e(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,b=a.options.chart,e,c=a.options.series,g,d;["inverted","angular","polar"].forEach(function(f){e=M[b.type||b.defaultSeriesType];d=b[f]||
e&&e.prototype[f];for(g=c&&c.length;!d&&g--;)(e=M[c[g].type])&&e.prototype[f]&&(d=!0);a[f]=d})},linkSeries:function(){var a=this,b=a.series;b.forEach(function(a){a.linkedSeries.length=0});b.forEach(function(b){var e=b.options.linkedTo;t(e)&&(e=":previous"===e?a.series[b.index-1]:a.get(e))&&e.linkedParent!==b&&(e.linkedSeries.push(b),b.linkedParent=e,b.visible=B(b.options.visible,e.options.visible,b.visible))});e(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(a){a.translate();
a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&b.items.forEach(function(e){var c=v(b.style,e.style),g=u(c.left)+a.plotLeft,d=u(c.top)+a.plotTop+12;delete c.left;delete c.top;a.renderer.text(e.html,g,d).attr({zIndex:2}).css(c).add()})},render:function(){var a=this.axes,b=this.colorAxis,e=this.renderer,c=this.options,d=0,f=function(a){a.forEach(function(a){a.visible&&a.render()})};this.setTitle();this.legend=new g(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);
this.setChartSize();c=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return d=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-d,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var n=1.1<c/this.plotWidth;var A=1.05<h/this.plotHeight;if(n||A)a.forEach(function(a){(a.horiz&&n||!a.horiz&&A)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(a):b&&b.length&&f(b);this.seriesGroup||(this.seriesGroup=
e.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.updateContainerScaling();this.hasRendered=!0},addCredits:function(a){var b=this;a=A(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(N.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),b.styledMode||this.credits.css(a.style),
this.credits.add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},updateContainerScaling:function(){var a=this.container;if(a.offsetWidth&&a.offsetHeight&&a.getBoundingClientRect){var b=a.getBoundingClientRect(),e=b.width/a.offsetWidth;a=b.height/a.offsetHeight;1!==e||1!==a?this.containerScaling={scaleX:e,scaleY:a}:delete this.containerScaling}},destroy:function(){var a=this,b=a.axes,c=a.series,g=a.container,f,n=g&&g.parentNode;e(a,"destroy");a.renderer.forExport?
H(r,a):r[a.index]=void 0;d.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");J(a);for(f=b.length;f--;)b[f]=b[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=c.length;f--;)c[f]=c[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var e=a[b];e&&e.destroy&&(a[b]=e.destroy())});g&&(g.innerHTML="",J(g),
n&&h(g));G(a,function(b,e){delete a[e]})},firstRender:function(){var a=this,b=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(E(b.series)?b.series:[]).forEach(function(b){a.initSeries(b)});a.linkSeries();e(a,"beforeRender");z&&(a.pointer=new z(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&void 0!==
this.index&&a.apply(this,[this])},this);e(this,"load");e(this,"render");D(this.index)&&this.setReflow(this.options.chart.reflow);this.onload=null}})});K(I,"parts/ScrollablePlotArea.js",[I["parts/Globals.js"]],function(d){var k=d.addEvent,w=d.Chart;"";k(w,"afterSetChartSize",function(k){var w=this.options.chart.scrollablePlotArea,E=w&&w.minWidth;w=w&&w.minHeight;if(!this.renderer.forExport){if(E){if(this.scrollablePixelsX=E=Math.max(0,E-this.chartWidth)){this.plotWidth+=E;this.inverted?(this.clipBox.height+=
E,this.plotBox.height+=E):(this.clipBox.width+=E,this.plotBox.width+=E);var y={1:{name:"right",value:E}}}}else w&&(this.scrollablePixelsY=E=Math.max(0,w-this.chartHeight))&&(this.plotHeight+=E,this.inverted?(this.clipBox.width+=E,this.plotBox.width+=E):(this.clipBox.height+=E,this.plotBox.height+=E),y={2:{name:"bottom",value:E}});y&&!k.skipAxes&&this.axes.forEach(function(k){y[k.side]?k.getPlotLinePath=function(){var t=y[k.side].name,C=this[t];this[t]=C-y[k.side].value;var u=d.Axis.prototype.getPlotLinePath.apply(this,
arguments);this[t]=C;return u}:(k.setAxisSize(),k.setAxisTranslation())})}});k(w,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});w.prototype.setUpScrolling=function(){var k={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(k.overflowX="auto");this.scrollablePixelsY&&(k.overflowY="auto");this.scrollingContainer=d.createElement("div",{className:"highcharts-scrolling"},
k,this.renderTo);this.innerContainer=d.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};w.prototype.moveFixedElements=function(){var d=this.container,k=this.fixedRenderer,w=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-reset-zoom .highcharts-subtitle .highcharts-title .highcharts-legend-checkbox".split(" "),y;this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":
this.scrollablePixelsX&&this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis");w.push(y,y+"-labels");w.forEach(function(y){[].forEach.call(d.querySelectorAll(y),function(d){(d.namespaceURI===k.SVG_NS?k.box:k.box.parentNode).appendChild(d);d.style.pointerEvents="auto"})})};w.prototype.applyFixed=function(){var w,H=!this.fixedDiv,E=this.options.chart.scrollablePlotArea;H?(this.fixedDiv=d.createElement("div",
{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=w=new d.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=w.path().attr({fill:d.color(this.options.chart.backgroundColor||"#fff").setOpacity(d.pick(E.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),
k(this,"afterShowResetZoom",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);w=this.chartWidth+(this.scrollablePixelsX||0);var y=this.chartHeight+(this.scrollablePixelsY||0);d.stop(this.container);this.container.style.width=w+"px";this.container.style.height=y+"px";this.renderer.boxWrapper.attr({width:w,height:y,viewBox:[0,0,w,y].join(" ")});this.chartBackground.attr({width:w,height:y});this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+
"px");H&&(E.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*E.scrollPositionX),E.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*E.scrollPositionY));y=this.axisOffset;H=this.plotTop-y[0]-1;E=this.plotLeft-y[3]-1;w=this.plotTop+this.plotHeight+y[2]+1;y=this.plotLeft+this.plotWidth+y[1]+1;var C=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),t=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);H=this.scrollablePixelsX?["M",0,H,"L",
this.plotLeft-1,H,"L",this.plotLeft-1,w,"L",0,w,"Z","M",C,H,"L",this.chartWidth,H,"L",this.chartWidth,w,"L",C,w,"Z"]:this.scrollablePixelsY?["M",E,0,"L",E,this.plotTop-1,"L",y,this.plotTop-1,"L",y,0,"Z","M",E,t,"L",E,this.chartHeight,"L",y,this.chartHeight,"L",y,t,"Z"]:["M",0,0];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:H})}});K(I,"parts/Point.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.erase,H=k.isArray,E=k.isNumber,y=k.isObject,C,
t=d.extend,G=d.fireEvent,u=d.format,l=d.pick,p=d.uniqueKey,q=d.removeEvent;d.Point=C=function(){};d.Point.prototype={init:function(c,a,b){this.series=c;this.applyOptions(a,b);this.id=w(this.id)?this.id:p();this.resolveColor();c.chart.pointCount++;G(this,"afterInit");return this},resolveColor:function(){var c=this.series;var a=c.chart.options.chart.colorCount;var b=c.chart.styledMode;b||this.options.color||(this.color=c.color);c.options.colorByPoint?(b||(a=c.options.colors||c.chart.options.colors,
this.color=this.color||a[c.colorCounter],a=a.length),b=c.colorCounter,c.colorCounter++,c.colorCounter===a&&(c.colorCounter=0)):b=c.colorIndex;this.colorIndex=l(this.colorIndex,b)},applyOptions:function(c,a){var b=this.series,d=b.options.pointValKey||b.pointValKey;c=C.prototype.optionsToObject.call(this,c);t(this,c);this.options=this.options?t(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;d&&(this.y=this[d]);this.formatPrefix=(this.isNull=l(this.isValid&&!this.isValid(),
null===this.x||!E(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&void 0===a&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this));void 0===this.x&&b&&(this.x=void 0===a?b.autoIncrement(this):a);return this},setNestedProperty:function(c,a,b){b.split(".").reduce(function(b,c,d,r){b[c]=r.length-1===d?a:y(b[c],!0)?b[c]:{};return b[c]},c);return c},optionsToObject:function(c){var a={},b=this.series,f=b.options.keys,m=f||b.pointArrayMap||["y"],h=m.length,r=0,l=0;if(E(c)||
null===c)a[m[0]]=c;else if(H(c))for(!f&&c.length>h&&(b=typeof c[0],"string"===b?a.name=c[0]:"number"===b&&(a.x=c[0]),r++);l<h;)f&&void 0===c[r]||(0<m[l].indexOf(".")?d.Point.prototype.setNestedProperty(a,c[r],m[l]):a[m[l]]=c[r]),r++,l++;else"object"===typeof c&&(a=c,c.dataLabels&&(b._hasPointLabels=!0),c.marker&&(b._hasPointMarkers=!0));return a},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":
"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var c=this.series,a=c.zones;c=c.zoneAxis||"y";var b=0,d;for(d=a[b];this[c]>=d.value;)d=a[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d},destroy:function(){var c=this.series.chart,
a=c.hoverPoints,b;c.pointCount--;a&&(this.setState(),D(a,this),a.length||(c.hoverPoints=null));if(this===c.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel||this.dataLabels)q(this),this.destroyElements();this.legendItem&&c.legend.destroyItem(this);for(b in this)this[b]=null},destroyElements:function(c){var a=this,b=[],d;c=c||{graphic:1,dataLabel:1};c.graphic&&b.push("graphic","shadowGroup");c.dataLabel&&b.push("dataLabel","dataLabelUpper","connector");for(d=b.length;d--;){var m=b[d];a[m]&&
(a[m]=a[m].destroy())}["dataLabel","connector"].forEach(function(b){var d=b+"s";c[b]&&a[d]&&(a[d].forEach(function(a){a.element&&a.destroy()}),delete a[d])})},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(c){var a=this.series,b=a.tooltipOptions,d=l(b.valueDecimals,""),m=b.valuePrefix||"",h=b.valueSuffix||
"";a.chart.styledMode&&(c=a.chart.tooltip.styledModeFormat(c));(a.pointArrayMap||["y"]).forEach(function(a){a="{point."+a;if(m||h)c=c.replace(RegExp(a+"}","g"),m+a+"}"+h);c=c.replace(RegExp(a+"}","g"),a+":,."+d+"f}")});return u(c,{point:this,series:this.series},a.chart.time)},firePointEvent:function(c,a,b){var d=this,m=this.series.options;(m.point.events[c]||d.options&&d.options.events&&d.options.events[c])&&this.importEvents();"click"===c&&m.allowPointSelect&&(b=function(a){d.select&&d.select(null,
a.ctrlKey||a.metaKey||a.shiftKey)});G(this,c,a,b)},visible:!0}});K(I,"parts/Series.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.erase,H=k.isArray,E=k.isNumber,y=k.isString,C=k.objectEach,t=k.splat,G=d.addEvent,u=d.animObject,l=d.arrayMax,p=d.arrayMin,q=d.correctFloat,c=d.defaultOptions,a=d.defaultPlotOptions,b=d.extend,f=d.fireEvent,m=d.merge,h=d.pick,r=d.removeEvent,x=d.SVGElement,v=d.syncTimeout,n=d.win;d.Series=d.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,
showCheckbox:!1,animation:{duration:1E3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":d.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",
x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:d.Point,requireSorting:!0,sorted:!0,init:function(a,
c){f(this,"init",{options:c});var e=this,g=a.series,n;this.eventOptions=this.eventOptions||{};e.chart=a;e.options=c=e.setOptions(c);e.linkedSeries=[];e.bindAxes();b(e,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});var m=c.events;C(m,function(a,b){d.isFunction(a)&&e.eventOptions[b]!==a&&(d.isFunction(e.eventOptions[b])&&r(e,b,e.eventOptions[b]),e.eventOptions[b]=a,G(e,b,a))});if(m&&m.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=
!0;e.getColor();e.getSymbol();e.parallelArrays.forEach(function(a){e[a+"Data"]||(e[a+"Data"]=[])});e.points||e.data||e.setData(c.data,!1);e.isCartesian&&(a.hasCartesianSeries=!0);g.length&&(n=g[g.length-1]);e._i=h(n&&n._i,-1)+1;a.orderSeries(this.insert(g));f(this,"afterInit")},insert:function(a){var b=this.options.index,e;if(E(b)){for(e=a.length;e--;)if(b>=h(a[e].options.index,a[e]._i)){a.splice(e+1,0,this);break}-1===e&&a.unshift(this);e+=1}else a.push(this);return h(e,a.length-1)},bindAxes:function(){var a=
this,b=a.options,c=a.chart,h;f(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){c[e].forEach(function(c){h=c.options;if(b[e]===h.index||void 0!==b[e]&&b[e]===h.id||void 0===b[e]&&0===h.index)a.insert(c.series),a[e]=c,c.isDirty=!0});a[e]||a.optionalAxis===e||d.error(18,!0,c)})})},updateParallelArrays:function(a,b){var e=a.series,c=arguments,g=E(b)?function(c){var g="y"===c&&e.toYData?e.toYData(a):a[c];e[c+"Data"][b]=g}:function(a){Array.prototype[b].apply(e[a+"Data"],Array.prototype.slice.call(c,
2))};e.parallelArrays.forEach(g)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,f=this.chart.time;b=h(b,a.pointStart,0);this.pointInterval=c=h(this.pointInterval,a.pointInterval,1);d&&(a=new f.Date(b),"day"===d?f.set("Date",a,f.get("Date",a)+c):"month"===d?f.set("Month",a,f.get("Month",a)+c):"year"===d&&f.set("FullYear",a,f.get("FullYear",
a)+c),c=a.getTime()-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,e=b.options,d=e.plotOptions,n=b.userOptions||{};a=m(a);b=b.styledMode;var B={plotOptions:d,userOptions:a};f(this,"setOptions",B);var l=B.plotOptions[this.type],r=n.plotOptions||{};this.userOptions=B.userOptions;n=m(l,d.series,n.plotOptions&&n.plotOptions[this.type],a);this.tooltipOptions=m(c.tooltip,c.plotOptions.series&&c.plotOptions.series.tooltip,c.plotOptions[this.type].tooltip,e.tooltip.userOptions,d.series&&
d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=h(a.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:n.stickyTracking);null===l.marker&&delete n.marker;this.zoneAxis=n.zoneAxis;e=this.zones=(n.zones||[]).slice();!n.negativeColor&&!n.negativeFillColor||n.zones||(d={value:n[this.zoneAxis+"Threshold"]||n.threshold||0,className:"highcharts-negative"},b||(d.color=n.negativeColor,d.fillColor=
n.negativeFillColor),e.push(d));e.length&&w(e[e.length-1].value)&&e.push(b?{}:{color:this.color,fillColor:this.fillColor});f(this,"afterSetOptions",{options:n});return n},getName:function(){return h(this.options.name,"Series "+(this.index+1))},getCyclic:function(a,b,c){var e=this.chart,g=this.userOptions,d=a+"Index",f=a+"Counter",n=c?c.length:h(e.options.chart[a+"Count"],e[a+"Count"]);if(!b){var m=h(g[d],g["_"+d]);w(m)||(e.series.length||(e[f]=0),g["_"+d]=m=e[f]%n,e[f]+=1);c&&(b=c[m])}void 0!==m&&
(this[d]=m);this[a]=b},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||a[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(a,b){var e=a.id;a=a.x;var c=this.points,g;if(e){var d=(e=this.chart.get(e))&&e.index;void 0!==d&&(g=!0)}void 0===d&&E(a)&&(d=this.xData.indexOf(a,b));
-1!==d&&void 0!==d&&this.cropped&&(d=d>=this.cropStart?d-this.cropStart:d);!g&&c[d]&&c[d].touched&&(d=void 0);return d},drawLegendSymbol:d.LegendSymbolMixin.drawLineMarker,updateData:function(a){var b=this.options,e=this.points,c=[],d,f,h,n=this.requireSorting,m=a.length===e.length,l=!0;this.xIncrement=null;a.forEach(function(a,g){var f=w(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var A=f.x;if(f.id||E(A))if(A=this.findPointIndex(f,h),-1===A||void 0===A?c.push(a):e[A]&&
a!==b.data[A]?(e[A].update(a,!1,null,!1),e[A].touched=!0,n&&(h=A+1)):e[A]&&(e[A].touched=!0),!m||g!==A||this.hasDerivedData)d=!0},this);if(d)for(a=e.length;a--;)(f=e[a])&&!f.touched&&f.remove(!1);else m?a.forEach(function(a,b){e[b].update&&a!==e[b].y&&e[b].update(a,!1,null,!1)}):l=!1;e.forEach(function(a){a&&(a.touched=!1)});if(!l)return!1;c.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);return!0},setData:function(a,b,c,f){var e=this,g=e.points,n=g&&g.length||0,A,m=e.options,F=e.chart,
l=null,r=e.xAxis,v=m.turboThreshold,p=this.xData,x=this.yData,u=(A=e.pointArrayMap)&&A.length,q=m.keys,k=0,t=1,w;a=a||[];A=a.length;b=h(b,!0);!1!==f&&A&&n&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(w=this.updateData(a));if(!w){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(v&&A>v){for(c=0;null===l&&c<A;)l=a[c],c++;if(E(l))for(c=0;c<A;c++)p[c]=this.autoIncrement(),x[c]=a[c];else if(H(l))if(u)for(c=0;c<A;c++)l=a[c],p[c]=l[0],
x[c]=l.slice(1,u+1);else for(q&&(k=q.indexOf("x"),t=q.indexOf("y"),k=0<=k?k:0,t=0<=t?t:1),c=0;c<A;c++)l=a[c],p[c]=l[k],x[c]=l[t];else d.error(12,!1,F)}else for(c=0;c<A;c++)void 0!==a[c]&&(l={series:e},e.pointClass.prototype.applyOptions.apply(l,[a[c]]),e.updateParallelArrays(l,c));x&&y(x[0])&&d.error(14,!0,F);e.data=[];e.options.data=e.userOptions.data=a;for(c=n;c--;)g[c]&&g[c].destroy&&g[c].destroy();r&&(r.minRange=r.userMinRange);e.isDirty=F.isDirtyBox=!0;e.isDirtyData=!!g;c=!1}"point"===m.legendType&&
(this.processData(),this.generatePoints());b&&F.redraw(c)},processData:function(a){var b=this.xData,e=this.yData,c=b.length;var f=0;var h=this.xAxis,n=this.options;var m=n.cropThreshold;var l=this.getExtremesFromAll||n.getExtremesFromAll,r=this.isCartesian;n=h&&h.val2lin;var v=h&&h.isLog,p=this.requireSorting;if(r&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(h){a=h.getExtremes();var x=a.min;var q=a.max}if(r&&this.sorted&&!l&&(!m||c>m||this.forceCrop))if(b[c-1]<x||b[0]>q)b=[],e=
[];else if(this.yData&&(b[0]<x||b[c-1]>q)){f=this.cropData(this.xData,this.yData,x,q);b=f.xData;e=f.yData;f=f.start;var u=!0}for(m=b.length||1;--m;)if(c=v?n(b[m])-n(b[m-1]):b[m]-b[m-1],0<c&&(void 0===k||c<k))var k=c;else 0>c&&p&&(d.error(15,!1,this.chart),p=!1);this.cropped=u;this.cropStart=f;this.processedXData=b;this.processedYData=e;this.closestPointRange=this.basePointRange=k},cropData:function(a,b,c,d,f){var e=a.length,g=0,n=e,A;f=h(f,this.cropShoulder);for(A=0;A<e;A++)if(a[A]>=c){g=Math.max(0,
A-f);break}for(c=A;c<e;c++)if(a[c]>d){n=c+f;break}return{xData:a.slice(g,n),yData:b.slice(g,n),start:g,end:n}},generatePoints:function(){var a=this.options,c=a.data,d=this.data,h,n=this.processedXData,m=this.processedYData,l=this.pointClass,r=n.length,v=this.cropStart||0,p=this.hasGroupedData;a=a.keys;var x=[],q;d||p||(d=[],d.length=c.length,d=this.data=d);a&&p&&(this.options.keys=!1);for(q=0;q<r;q++){var u=v+q;if(p){var k=(new l).init(this,[n[q]].concat(t(m[q])));k.dataGroup=this.groupMap[q];k.dataGroup.options&&
(k.options=k.dataGroup.options,b(k,k.dataGroup.options),delete k.dataLabels)}else(k=d[u])||void 0===c[u]||(d[u]=k=(new l).init(this,c[u],n[q]));k&&(k.index=u,x[q]=k)}this.options.keys=a;if(d&&(r!==(h=d.length)||p))for(q=0;q<h;q++)q!==v||p||(q+=r),d[q]&&(d[q].destroyElements(),d[q].plotX=void 0);this.data=d;this.points=x;f(this,"afterGeneratePoints")},getXExtremes:function(a){return{min:p(a),max:l(a)}},getExtremes:function(a){var b=this.xAxis,c=this.yAxis,e=this.processedXData||this.xData,d=[],h=0,
n=0;var m=0;var r=this.requireSorting?this.cropShoulder:0,v=c?c.positiveValuesOnly:!1,q;a=a||this.stackedYData||this.processedYData||[];c=a.length;b&&(m=b.getExtremes(),n=m.min,m=m.max);for(q=0;q<c;q++){var x=e[q];var k=a[q];var u=(E(k)||H(k))&&(k.length||0<k||!v);x=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(e[q+r]||x)>=n&&(e[q-r]||x)<=m;if(u&&x)if(u=k.length)for(;u--;)E(k[u])&&(d[h++]=k[u]);else d[h++]=k}this.dataMin=p(d);this.dataMax=l(d);f(this,"afterGetExtremes")},
translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,n=this.yAxis,m=this.points,l=m.length,r=!!this.modifyValue,v,p=this.pointPlacementToXValue(),x=E(p),k=a.threshold,u=a.startFromThreshold?k:0,t,y=this.zoneAxis||"y",C=Number.MAX_VALUE;for(v=0;v<l;v++){var G=m[v],D=G.x;var I=G.y;var S=G.low,K=b&&n.stacks[(this.negStacks&&I<(u?0:k)?"-":"")+this.stackKey];n.positiveValuesOnly&&null!==I&&0>=I&&(G.isNull=!0);G.plotX=
t=q(Math.min(Math.max(-1E5,c.translate(D,0,0,0,1,p,"flags"===this.type)),1E5));if(b&&this.visible&&K&&K[D]){var Y=this.getStackIndicator(Y,D,this.index);if(!G.isNull){var Z=K[D];var U=Z.points[Y.key]}}H(U)&&(S=U[0],I=U[1],S===u&&Y.key===K[D].base&&(S=h(E(k)&&k,n.min)),n.positiveValuesOnly&&0>=S&&(S=null),G.total=G.stackTotal=Z.total,G.percentage=Z.total&&G.y/Z.total*100,G.stackY=I,this.irregularWidths||Z.setOffset(this.pointXOffset||0,this.barW||0));G.yBottom=w(S)?Math.min(Math.max(-1E5,n.translate(S,
0,1,0,1)),1E5):null;r&&(I=this.modifyValue(I,G));G.plotY=I="number"===typeof I&&Infinity!==I?Math.min(Math.max(-1E5,n.translate(I,0,1,0,1)),1E5):void 0;G.isInside=void 0!==I&&0<=I&&I<=n.len&&0<=t&&t<=c.len;G.clientX=x?q(c.translate(D,0,0,0,1,p)):t;G.negative=G[y]<(a[y+"Threshold"]||k||0);G.category=d&&void 0!==d[G.x]?d[G.x]:G.x;if(!G.isNull){void 0!==V&&(C=Math.min(C,Math.abs(t-V)));var V=t}G.zone=this.zones.length&&G.getZone()}this.closestPointRangePx=C;f(this,"afterTranslate")},getValidPoints:function(a,
b,c){var e=this.chart;return(a||this.points||[]).filter(function(a){return b&&!e.isInsidePlot(a.plotX,a.plotY,e.inverted)?!1:c||!a.isNull})},getClipBox:function(a,b){var c=this.options,e=this.chart,g=e.inverted,d=this.xAxis,f=d&&this.yAxis;a&&!1===c.clip&&f?a=g?{y:-e.chartWidth+f.len+f.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+d.len+d.pos}:{y:-f.pos,height:e.chartHeight,width:e.chartWidth,x:-d.pos}:(a=this.clipBox||e.clipBox,b&&(a.width=e.plotSizeX,a.x=0));return b?{width:a.width,
x:a.x}:a},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,f=this.clipBox,h=this.getClipBox(a),n=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,h.height,c.xAxis,c.yAxis].join(),m=b[n],l=b[n+"m"];m||(a&&(h.width=0,d&&(h.x=b.plotSizeX+(!1!==c.clip?0:b.plotTop)),b[n+"m"]=l=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[n]=m=e.clipRect(h),m.count={length:0});a&&!m.count[this.index]&&(m.count[this.index]=!0,m.count.length+=
1);if(!1!==c.clip||a)this.group.clip(a||f?m:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=n;a||(m.count[this.index]&&(delete m.count[this.index],--m.count.length),0===m.count.length&&n&&b[n]&&(f||(b[n]=b[n].destroy()),b[n+"m"]&&(b[n+"m"]=b[n+"m"].destroy())))},animate:function(a){var b=this.chart,c=u(this.options.animation);if(a)this.setClip(c);else{var e=this.sharedClipKey;a=b[e];var d=this.getClipBox(c,!0);a&&a.animate(d,c);b[e+"m"]&&b[e+"m"].animate({width:d.width+99,x:d.x-(b.inverted?
0:99)},c);this.animate=null}},afterAnimate:function(){this.setClip();f(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,d=this.options.marker,f=this[this.specialGroup]||this.markerGroup;var n=this.xAxis;var m=h(d.enabled,!n||n.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(n=0;n<a.length;n++){var l=a[n];var r=(c=l.graphic)?"animate":"attr";var v=l.marker||{};var p=!!l.marker;
var q=m&&void 0===v.enabled||v.enabled;var k=!1!==l.isInside;if(q&&!l.isNull){q=h(v.symbol,this.symbol);var x=this.markerAttribs(l,l.selected&&"select");c?c[k?"show":"hide"](k).animate(x):k&&(0<x.width||l.hasImage)&&(l.graphic=c=b.renderer.symbol(q,x.x,x.y,x.width,x.height,p?v:d).add(f));if(c&&!b.styledMode)c[r](this.pointAttribs(l,l.selected&&"select"));c&&c.addClass(l.getClassName(),!0)}else c&&(l.graphic=c.destroy())}},markerAttribs:function(a,b){var c=this.options.marker,e=a.marker||{},d=e.symbol||
c.symbol,g=h(e.radius,c.radius);b&&(c=c.states[b],b=e.states&&e.states[b],g=h(b&&b.radius,c&&c.radius,g+(c&&c.radiusPlus||0)));a.hasImage=d&&0===d.indexOf("url");a.hasImage&&(g=0);a={x:Math.floor(a.plotX)-g,y:a.plotY-g};g&&(a.width=a.height=2*g);return a},pointAttribs:function(a,b){var c=this.options.marker,e=a&&a.options,d=e&&e.marker||{},g=this.color,f=e&&e.color,n=a&&a.color;e=h(d.lineWidth,c.lineWidth);var m=a&&a.zone&&a.zone.color;a=1;g=f||m||n||g;f=d.fillColor||c.fillColor||g;g=d.lineColor||
c.lineColor||g;b=b||"normal";c=c.states[b];b=d.states&&d.states[b]||{};e=h(b.lineWidth,c.lineWidth,e+h(b.lineWidthPlus,c.lineWidthPlus,0));f=b.fillColor||c.fillColor||f;g=b.lineColor||c.lineColor||g;a=h(b.opacity,c.opacity,a);return{stroke:g,"stroke-width":e,fill:f,opacity:a}},destroy:function(a){var b=this,c=b.chart,e=/AppleWebKit\/533/.test(n.navigator.userAgent),h,m,l=b.data||[],v,p;f(b,"destroy");a||r(b);(b.axisTypes||[]).forEach(function(a){(p=b[a])&&p.series&&(D(p.series,b),p.isDirty=p.forceRedraw=
!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(m=l.length;m--;)(v=l[m])&&v.destroy&&v.destroy();b.points=null;d.clearTimeout(b.animationTimeout);C(b,function(a,b){a instanceof x&&!a.survive&&(h=e&&"group"===b?"hide":"destroy",a[h]())});c.hoverSeries===b&&(c.hoverSeries=null);D(c.series,b);c.orderSeries();C(b,function(c,e){a&&"hcEvents"===e||delete b[e]})},getGraphPath:function(a,b,c){var e=this,d=e.options,g=d.step,f,n=[],h=[],m;a=a||e.points;(f=a.reversed)&&a.reverse();(g={right:1,center:2}[g]||
g&&3)&&f&&(g=4-g);!d.connectNulls||b||c||(a=this.getValidPoints(a));a.forEach(function(f,A){var l=f.plotX,r=f.plotY,v=a[A-1];(f.leftCliff||v&&v.rightCliff)&&!c&&(m=!0);f.isNull&&!w(b)&&0<A?m=!d.connectNulls:f.isNull&&!b?m=!0:(0===A||m?A=["M",f.plotX,f.plotY]:e.getPointSpline?A=e.getPointSpline(a,f,A):g?(A=1===g?["L",v.plotX,r]:2===g?["L",(v.plotX+l)/2,v.plotY,"L",(v.plotX+l)/2,r]:["L",l,v.plotY],A.push("L",l,r)):A=["L",l,r],h.push(f.x),g&&(h.push(f.x),2===g&&h.push(f.x)),n.push.apply(n,A),m=!1)});
n.xMap=h;return e.graphPath=n},drawGraph:function(){var a=this,b=this.options,c=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,f=[["graph","highcharts-graph"]];d||f[0].push(b.lineColor||this.color||"#cccccc",b.dashStyle);f=a.getZonesGraphs(f);f.forEach(function(e,g){var f=e[0],n=a[f],h=n?"animate":"attr";n?(n.endX=a.preventGraphAnimation?null:c.xMap,n.animate({d:c})):c.length&&(a[f]=n=a.chart.renderer.path(c).addClass(e[1]).attr({zIndex:1}).add(a.group));n&&!d&&(f={stroke:e[2],
"stroke-width":b.lineWidth,fill:a.fillGraph&&a.color||"none"},e[3]?f.dashstyle=e[3]:"square"!==b.linecap&&(f["stroke-linecap"]=f["stroke-linejoin"]="round"),n[h](f).shadow(2>g&&b.shadow));n&&(n.startX=c.xMap,n.isArea=c.isArea)})},getZonesGraphs:function(a){this.zones.forEach(function(b,c){c=["zone-graph-"+c,"highcharts-graph highcharts-zone-graph-"+c+" "+(b.className||"")];this.chart.styledMode||c.push(b.color||this.color,b.dashStyle||this.options.dashStyle);a.push(c)},this);return a},applyZones:function(){var a=
this,b=this.chart,c=b.renderer,d=this.zones,f,n,m=this.clips||[],l,v=this.graph,r=this.area,p=Math.max(b.chartWidth,b.chartHeight),q=this[(this.zoneAxis||"y")+"Axis"],x=b.inverted,k,u,t,y=!1;if(d.length&&(v||r)&&q&&void 0!==q.min){var w=q.reversed;var C=q.horiz;v&&!this.showLine&&v.hide();r&&r.hide();var G=q.getExtremes();d.forEach(function(e,d){f=w?C?b.plotWidth:0:C?0:q.toPixels(G.min)||0;f=Math.min(Math.max(h(n,f),0),p);n=Math.min(Math.max(Math.round(q.toPixels(h(e.value,G.max),!0)||0),0),p);y&&
(f=n=q.toPixels(G.max));k=Math.abs(f-n);u=Math.min(f,n);t=Math.max(f,n);q.isXAxis?(l={x:x?t:u,y:0,width:k,height:p},C||(l.x=b.plotHeight-l.x)):(l={x:0,y:x?t:u,width:p,height:k},C&&(l.y=b.plotWidth-l.y));x&&c.isVML&&(l=q.isXAxis?{x:0,y:w?u:t,height:l.width,width:b.chartWidth}:{x:l.y-b.plotLeft-b.spacingBox.x,y:0,width:l.height,height:b.chartHeight});m[d]?m[d].animate(l):m[d]=c.clipRect(l);v&&a["zone-graph-"+d].clip(m[d]);r&&a["zone-area-"+d].clip(m[d]);y=e.value>G.max;a.resetZones&&0===n&&(n=void 0)});
this.clips=m}else a.visible&&(v&&v.show(!0),r&&r.show(!0))},invertGroups:function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart;if(c.xAxis){var d=G(e,"resize",b);G(c,"destroy",d);b(a);c.invertGroups=b}},plotGroup:function(a,b,c,d,f){var e=this[a],g=!e;g&&(this[a]=e=this.chart.renderer.g().attr({zIndex:d||.1}).add(f));e.addClass("highcharts-"+
b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);e.attr({visibility:c})[g?"attr":"animate"](this.getPlotBox());return e},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=
this,b=a.chart,c=a.options,d=!!a.animate&&b.renderer.isSVG&&u(c.animation).duration,n=a.visible?"inherit":"hidden",h=c.zIndex,m=a.hasRendered,l=b.seriesGroup,r=b.inverted;f(this,"render");var p=a.plotGroup("group","series",n,h,l);a.markerGroup=a.plotGroup("markerGroup","markers",n,h,l);d&&a.animate(!0);p.inverted=a.isCartesian||a.invertable?r:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&
!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(r);!1===c.clip||a.sharedClipKey||m||p.clip(b.clipRect);d&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},d));a.isDirty=!1;a.hasRendered=!0;f(a,"afterRender")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,f=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:h(d&&d.left,a.plotLeft),translateY:h(f&&f.top,a.plotTop)}));this.translate();
this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b,a)},buildKDTree:function(a){function b(a,e,d){var g;if(g=a&&a.length){var f=c.kdAxisArray[e%d];a.sort(function(a,b){return a[f]-b[f]});g=Math.floor(g/2);return{point:a[g],left:b(a.slice(0,g),e+1,d),right:b(a.slice(g+1),e+1,d)}}}this.buildingKdTree=
!0;var c=this,e=-1<c.options.findNearestPointBy.indexOf("y")?2:1;delete c.kdTree;v(function(){c.kdTree=b(c.getValidPoints(null,!c.directTouch),e,e);c.buildingKdTree=!1},c.options.kdNow||a&&"touchstart"===a.type?0:1)},searchKDTree:function(a,b,c){function e(a,b,c,h){var m=b.point,A=d.kdAxisArray[c%h],l=m;var r=w(a[g])&&w(m[g])?Math.pow(a[g]-m[g],2):null;var v=w(a[f])&&w(m[f])?Math.pow(a[f]-m[f],2):null;v=(r||0)+(v||0);m.dist=w(v)?Math.sqrt(v):Number.MAX_VALUE;m.distX=w(r)?Math.sqrt(r):Number.MAX_VALUE;
A=a[A]-m[A];v=0>A?"left":"right";r=0>A?"right":"left";b[v]&&(v=e(a,b[v],c+1,h),l=v[n]<l[n]?v:m);b[r]&&Math.sqrt(A*A)<l[n]&&(a=e(a,b[r],c+1,h),l=a[n]<l[n]?a:l);return l}var d=this,g=this.kdAxisArray[0],f=this.kdAxisArray[1],n=b?"distX":"dist";b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(c);if(this.kdTree)return e(a,this.kdTree,b,b)},pointPlacementToXValue:function(){var a=this.options.pointPlacement;"between"===a&&(a=.5);E(a)&&(a*=h(this.options.pointRange||
this.xAxis.pointRange));return a}});""});K(I,"parts/Stacking.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.objectEach;k=d.Axis;var H=d.Chart,E=d.correctFloat,y=d.destroyObjectProperties,C=d.format,t=d.pick,G=d.Series;d.StackItem=function(d,l,p,q,c){var a=d.chart.inverted;this.axis=d;this.isNegative=p;this.options=l=l||{};this.x=q;this.total=null;this.points={};this.stack=c;this.rightCliff=this.leftCliff=0;this.alignOptions={align:l.align||(a?p?"left":"right":
"center"),verticalAlign:l.verticalAlign||(a?"middle":p?"bottom":"top"),y:l.y,x:l.x};this.textAlign=l.textAlign||(a?p?"right":"left":"center")};d.StackItem.prototype={destroy:function(){y(this,this.axis)},render:function(d){var l=this.axis.chart,p=this.options,q=p.format;q=q?C(q,this,l.time):p.formatter.call(this);this.label?this.label.attr({text:q,visibility:"hidden"}):(this.label=l.renderer.label(q,null,null,p.shape,null,null,p.useHTML,!1,"stack-labels"),q={text:q,align:this.textAlign,rotation:p.rotation,
padding:t(p.padding,0),visibility:"hidden"},this.label.attr(q),l.styledMode||this.label.css(p.style),this.label.added||this.label.add(d));this.label.labelrank=l.plotHeight},setOffset:function(d,l,p,q,c){var a=this.axis,b=a.chart;q=a.translate(a.usePercentage?100:q?q:this.total,0,0,0,1);p=a.translate(p?p:0);p=w(q)&&Math.abs(q-p);d=t(c,b.xAxis[0].translate(this.x))+d;a=w(q)&&this.getStackBox(b,this,d,q,l,p,a);l=this.label;d=this.isNegative;c="justify"===t(this.options.overflow,"justify");if(l&&a){p=
l.getBBox();var f=b.inverted?d?p.width:0:p.width/2,m=b.inverted?p.height/2:d?-4:p.height+4;this.alignOptions.x=t(this.options.x,0);l.align(this.alignOptions,null,a);q=l.alignAttr;l.show();q.y-=m;c&&(q.x-=f,G.prototype.justifyDataLabel.call(this.axis,l,this.alignOptions,q,p,a),q.x+=f);q.x=l.alignAttr.x;l.attr({x:q.x,y:q.y});t(!c&&this.options.crop,!0)&&((b=b.isInsidePlot(l.x+(b.inverted?0:-p.width/2),l.y)&&b.isInsidePlot(l.x+(b.inverted?d?-p.width:p.width:p.width/2),l.y+p.height))||l.hide())}},getStackBox:function(d,
l,p,q,c,a,b){var f=l.axis.reversed,m=d.inverted;d=b.height+b.pos-(m?d.plotLeft:d.plotTop);l=l.isNegative&&!f||!l.isNegative&&f;return{x:m?l?q:q-a:p,y:m?d-p-c:l?d-q-a:d-q,width:m?a:c,height:m?c:a}}};H.prototype.getStacks=function(){var d=this,l=d.inverted;d.yAxis.forEach(function(d){d.stacks&&d.hasVisibleSeries&&(d.oldStacks=d.stacks)});d.series.forEach(function(p){var q=p.xAxis&&p.xAxis.options||{};!p.options.stacking||!0!==p.visible&&!1!==d.options.chart.ignoreHiddenSeries||(p.stackKey=[p.type,t(p.options.stack,
""),l?q.top:q.left,l?q.height:q.width].join())})};k.prototype.buildStacks=function(){var d=this.series,l=t(this.options.reversedStacks,!0),p=d.length,q;if(!this.isXAxis){this.usePercentage=!1;for(q=p;q--;)d[l?q:p-q-1].setStackedPoints();for(q=0;q<p;q++)d[q].modifyStacks()}};k.prototype.renderStackTotals=function(){var d=this.chart,l=d.renderer,p=this.stacks,q=this.stackTotalGroup;q||(this.stackTotalGroup=q=l.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());q.translate(d.plotLeft,d.plotTop);
D(p,function(c){D(c,function(a){a.render(q)})})};k.prototype.resetStacks=function(){var d=this,l=d.stacks;d.isXAxis||D(l,function(l){D(l,function(p,c){p.touched<d.stacksTouched?(p.destroy(),delete l[c]):(p.total=null,p.cumulative=null)})})};k.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var d=this.stacks=this.oldStacks;D(d,function(d){D(d,function(d){d.cumulative=d.total})})}};G.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var k=
this.processedXData,l=this.processedYData,p=[],q=l.length,c=this.options,a=c.threshold,b=t(c.startFromThreshold&&a,0),f=c.stack;c=c.stacking;var m=this.stackKey,h="-"+m,r=this.negStacks,x=this.yAxis,v=x.stacks,n=x.oldStacks,e,g;x.stacksTouched+=1;for(g=0;g<q;g++){var F=k[g];var A=l[g];var z=this.getStackIndicator(z,F,this.index);var B=z.key;var J=(e=r&&A<(b?0:a))?h:m;v[J]||(v[J]={});v[J][F]||(n[J]&&n[J][F]?(v[J][F]=n[J][F],v[J][F].total=null):v[J][F]=new d.StackItem(x,x.options.stackLabels,e,F,f));
J=v[J][F];null!==A?(J.points[B]=J.points[this.index]=[t(J.cumulative,b)],w(J.cumulative)||(J.base=B),J.touched=x.stacksTouched,0<z.index&&!1===this.singleStacks&&(J.points[B][0]=J.points[this.index+","+F+",0"][0])):J.points[B]=J.points[this.index]=null;"percent"===c?(e=e?m:h,r&&v[e]&&v[e][F]?(e=v[e][F],J.total=e.total=Math.max(e.total,J.total)+Math.abs(A)||0):J.total=E(J.total+(Math.abs(A)||0))):J.total=E(J.total+(A||0));J.cumulative=t(J.cumulative,b)+(A||0);null!==A&&(J.points[B].push(J.cumulative),
p[g]=J.cumulative)}"percent"===c&&(x.usePercentage=!0);this.stackedYData=p;x.oldStacks={}}};G.prototype.modifyStacks=function(){var d=this,l=d.stackKey,p=d.yAxis.stacks,q=d.processedXData,c,a=d.options.stacking;d[a+"Stacker"]&&[l,"-"+l].forEach(function(b){for(var f=q.length,m,h;f--;)if(m=q[f],c=d.getStackIndicator(c,m,d.index,b),h=(m=p[b]&&p[b][m])&&m.points[c.key])d[a+"Stacker"](h,m,f)})};G.prototype.percentStacker=function(d,l,p){l=l.total?100/l.total:0;d[0]=E(d[0]*l);d[1]=E(d[1]*l);this.stackedYData[p]=
d[1]};G.prototype.getStackIndicator=function(d,l,p,q){!w(d)||d.x!==l||q&&d.key!==q?d={x:l,index:0,key:q}:d.index++;d.key=[p,l,d.index].join();return d}});K(I,"parts/Dynamics.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.erase,H=k.isArray,E=k.isNumber,y=k.isObject,C=k.isString,t=k.objectEach,G=k.splat,u=d.addEvent,l=d.animate,p=d.Axis;k=d.Chart;var q=d.createElement,c=d.css,a=d.extend,b=d.fireEvent,f=d.merge,m=d.pick,h=d.Point,r=d.Series,x=d.seriesTypes,v=d.setAnimation;
d.cleanRecursively=function(a,b){var c={};t(a,function(e,g){if(y(a[g],!0)&&!a.nodeType&&b[g])e=d.cleanRecursively(a[g],b[g]),Object.keys(e).length&&(c[g]=e);else if(y(a[g])||a[g]!==b[g])c[g]=a[g]});return c};a(k.prototype,{addSeries:function(a,c,d){var e,g=this;a&&(c=m(c,!0),b(g,"addSeries",{options:a},function(){e=g.initSeries(a);g.isDirtyLegend=!0;g.linkSeries();b(g,"afterAddSeries",{series:e});c&&g.redraw(d)}));return e},addAxis:function(a,b,c,d){return this.createAxis(b?"xAxis":"yAxis",{axis:a,
redraw:c,animation:d})},addColorAxis:function(a,b,c){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:c})},createAxis:function(a,b){var c=this.options,e="colorAxis"===a,n=b.redraw,h=b.animation;b=f(b.axis,{index:this[a].length,isX:"xAxis"===a});var l=e?new d.ColorAxis(this,b):new p(this,b);c[a]=G(c[a]||{});c[a].push(b);e&&(this.isDirtyLegend=!0);m(n,!0)&&this.redraw(h);return l},showLoading:function(b){var d=this,g=d.options,f=d.loadingDiv,h=g.loading,n=function(){f&&c(f,{left:d.plotLeft+
"px",top:d.plotTop+"px",width:d.plotWidth+"px",height:d.plotHeight+"px"})};f||(d.loadingDiv=f=q("div",{className:"highcharts-loading highcharts-loading-hidden"},null,d.container),d.loadingSpan=q("span",{className:"highcharts-loading-inner"},null,f),u(d,"redraw",n));f.className="highcharts-loading";d.loadingSpan.innerHTML=m(b,g.lang.loading,"");d.styledMode||(c(f,a(h.style,{zIndex:10})),c(d.loadingSpan,h.labelStyle),d.loadingShown||(c(f,{opacity:0,display:""}),l(f,{opacity:h.style.opacity||.5},{duration:h.showDuration||
0})));d.loadingShown=!0;n()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||l(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){c(b,{display:"none"})}}));this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis series colorAxis pane".split(" "),update:function(a,c,g,h){var e=this,n={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l,v,r,p=a.isResponsiveOptions,F=[];b(e,"update",{options:a});p||e.setResponsive(!1,!0);a=d.cleanRecursively(a,e.options);f(!0,e.userOptions,a);if(l=a.chart){f(!0,e.options.chart,
l);"className"in l&&e.setClassName(l.className);"reflow"in l&&e.setReflow(l.reflow);if("inverted"in l||"polar"in l||"type"in l){e.propFromSeries();var q=!0}"alignTicks"in l&&(q=!0);t(l,function(a,b){-1!==e.propsRequireUpdateSeries.indexOf("chart."+b)&&(v=!0);-1!==e.propsRequireDirtyBox.indexOf(b)&&(e.isDirtyBox=!0);p||-1===e.propsRequireReflow.indexOf(b)||(r=!0)});!e.styledMode&&"style"in l&&e.renderer.setStyle(l.style)}!e.styledMode&&a.colors&&(this.options.colors=a.colors);a.plotOptions&&f(!0,this.options.plotOptions,
a.plotOptions);a.time&&this.time===d.time&&(this.time=new d.Time(a.time));t(a,function(a,b){if(e[b]&&"function"===typeof e[b].update)e[b].update(a,!1);else if("function"===typeof e[n[b]])e[n[b]](a);"chart"!==b&&-1!==e.propsRequireUpdateSeries.indexOf(b)&&(v=!0)});this.collectionsWithUpdate.forEach(function(b){if(a[b]){if("series"===b){var c=[];e[b].forEach(function(a,b){a.options.isInternal||c.push(m(a.options.index,b))})}G(a[b]).forEach(function(a,d){(d=w(a.id)&&e.get(a.id)||e[b][c?c[d]:d])&&d.coll===
b&&(d.update(a,!1),g&&(d.touched=!0));!d&&g&&e.collectionsWithInit[b]&&(e.collectionsWithInit[b][0].apply(e,[a].concat(e.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});g&&e[b].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:F.push(a)})}});F.forEach(function(a){a.remove&&a.remove(!1)});q&&e.axes.forEach(function(a){a.update({},!1)});v&&e.series.forEach(function(a){a.update({},!1)});a.loading&&f(!0,e.options.loading,a.loading);q=l&&l.width;l=l&&l.height;C(l)&&(l=d.relativeLength(l,
q||e.chartWidth));r||E(q)&&q!==e.chartWidth||E(l)&&l!==e.chartHeight?e.setSize(q,l,h):m(c,!0)&&e.redraw(h);b(e,"afterUpdate",{options:a,redraw:c,animation:h})},setSubtitle:function(a,b){this.applyDescription("subtitle",a);this.layOutTitles(b)},setCaption:function(a,b){this.applyDescription("caption",a);this.layOutTitles(b)}});k.prototype.collectionsWithInit={xAxis:[k.prototype.addAxis,[!0]],yAxis:[k.prototype.addAxis,[!1]],colorAxis:[k.prototype.addColorAxis,[!1]],series:[k.prototype.addSeries]};
a(h.prototype,{update:function(a,b,c,d){function e(){g.applyOptions(a);null===g.y&&h&&(g.graphic=h.destroy());y(a,!0)&&(h&&h.element&&a&&a.marker&&void 0!==a.marker.symbol&&(g.graphic=h.destroy()),a&&a.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()),g.connector&&(g.connector=g.connector.destroy()));n=g.index;f.updateParallelArrays(g,n);v.data[n]=y(v.data[n],!0)||y(a,!0)?g.options:m(a,v.data[n]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&(l.isDirtyBox=!0);"point"===
v.legendType&&(l.isDirtyLegend=!0);b&&l.redraw(c)}var g=this,f=g.series,h=g.graphic,n,l=f.chart,v=f.options;b=m(b,!0);!1===d?e():g.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(this.series.data.indexOf(this),a,b)}});a(r.prototype,{addPoint:function(a,c,d,f,h){var e=this.options,g=this.data,n=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var A=e.data,v=this.xData,r;c=m(c,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[a]);var q=p.x;
var F=v.length;if(this.requireSorting&&q<v[F-1])for(r=!0;F&&v[F-1]>q;)F--;this.updateParallelArrays(p,"splice",F,0,0);this.updateParallelArrays(p,F);l&&p.name&&(l[q]=p.name);A.splice(F,0,a);r&&(this.data.splice(F,0,null),this.processData());"point"===e.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(p,"shift"),A.shift()));!1!==h&&b(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;c&&n.redraw(f)},removePoint:function(a,b,c){var d=
this,e=d.data,g=e[a],f=d.points,h=d.chart,n=function(){f&&f.length===e.length&&f.splice(a,1);e.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(g||{series:d},"splice",a,1);g&&g.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&h.redraw()};v(c,h);b=m(b,!0);g?g.firePointEvent("remove",null,n):n()},remove:function(a,c,d,f){function e(){g.destroy(f);g.remove=null;h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();m(a,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==d?b(g,"remove",null,e):e()},update:function(c,
e){c=d.cleanRecursively(c,this.userOptions);b(this,"update",{options:c});var g=this,h=g.chart,n=g.userOptions,l=g.initialType||g.type,v=c.type||n.type||h.options.chart.type,r=!(this.hasDerivedData||c.dataGrouping||v&&v!==this.type||void 0!==c.pointStart||c.pointInterval||c.pointIntervalUnit||c.keys),p=x[l].prototype,q,k=["group","markerGroup","dataLabelsGroup","transformGroup"],u=["eventOptions","navigatorSeries","baseSeries"],t=g.finishedAnimating&&{animation:!1},y={};r&&(u.push("data","isDirtyData",
"points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&u.push("area","graph"),g.parallelArrays.forEach(function(a){u.push(a+"Data")}),c.data&&this.setData(c.data,!1));c=f(n,t,{index:void 0===n.index?g.index:n.index,pointStart:m(n.pointStart,g.xData[0])},!r&&{data:g.options.data},c);r&&c.data&&(c.data=g.options.data);u=k.concat(u);u.forEach(function(a){u[a]=g[a];delete g[a]});g.remove(!1,null,!1,!0);
for(q in p)g[q]=void 0;x[v||l]?a(g,x[v||l].prototype):d.error(17,!0,h);u.forEach(function(a){g[a]=u[a]});g.init(h,c);if(r&&this.points){var w=g.options;!1===w.visible?(y.graphic=1,y.dataLabel=1):g._hasPointLabels||(v=w.marker,p=w.dataLabels,v&&(!1===v.enabled||"symbol"in v)&&(y.graphic=1),p&&!1===p.enabled&&(y.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(y).length&&a.destroyElements(y),!1===w.showInLegend&&a.legendItem&&h.legend.destroyItem(a))},this)}c.zIndex!==
n.zIndex&&k.forEach(function(a){g[a]&&g[a].attr({zIndex:c.zIndex})});g.initialType=l;h.linkSeries();b(this,"afterUpdate");m(e,!0)&&h.redraw(r?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0}});a(p.prototype,{update:function(b,c){var d=this.chart,e=b&&b.events||{};b=f(this.userOptions,b);d.options[this.coll].indexOf&&(d.options[this.coll][d.options[this.coll].indexOf(this.userOptions)]=b);t(d.options[this.coll].events,function(a,b){"undefined"===
typeof e[b]&&(e[b]=void 0)});this.destroy(!0);this.init(d,a(b,{events:e}));d.isDirtyBox=!0;m(c,!0)&&d.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,f=d.length;f--;)d[f]&&d[f].remove(!1);D(b.axes,this);D(b[c],this);H(b.options[c])?b.options[c].splice(this.options.index,1):delete b.options[c];b[c].forEach(function(a,b){a.options.index=a.userOptions.index=b});this.destroy();b.isDirtyBox=!0;m(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,
b){this.update({categories:a},b)}})});K(I,"parts/AreaSeries.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.objectEach,D=d.color,H=d.pick,E=d.Series;k=d.seriesType;k("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(d){var k=[],t=[],y=this.xAxis,u=this.yAxis,l=u.stacks[this.stackKey],p={},q=this.index,c=u.series,a=c.length,b=H(u.options.reversedStacks,!0)?1:-1,f;d=d||this.points;if(this.options.stacking){for(f=0;f<d.length;f++)d[f].leftNull=
d[f].rightNull=null,p[d[f].x]=d[f];w(l,function(a,b){null!==a.total&&t.push(b)});t.sort(function(a,b){return a-b});var m=c.map(function(a){return a.visible});t.forEach(function(c,d){var h=0,v,n;if(p[c]&&!p[c].isNull)k.push(p[c]),[-1,1].forEach(function(e){var g=1===e?"rightNull":"leftNull",h=0,r=l[t[d+e]];if(r)for(f=q;0<=f&&f<a;)v=r.points[f],v||(f===q?p[c][g]=!0:m[f]&&(n=l[c].points[f])&&(h-=n[1]-n[0])),f+=b;p[c][1===e?"rightCliff":"leftCliff"]=h});else{for(f=q;0<=f&&f<a;){if(v=l[c].points[f]){h=
v[1];break}f+=b}h=u.translate(h,0,1,0,1);k.push({isNull:!0,plotX:y.translate(c,0,0,0,1),x:c,plotY:h,yBottom:h})}})}return k},getGraphPath:function(k){var y=E.prototype.getGraphPath,t=this.options,w=t.stacking,u=this.yAxis,l,p=[],q=[],c=this.index,a=u.stacks[this.stackKey],b=t.threshold,f=Math.round(u.getThreshold(t.threshold));t=d.pick(t.connectNulls,"percent"===w);var m=function(d,h,e){var g=k[d];d=w&&a[g.x].points[c];var n=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||n){var m=(n?d[0]:d[1])+e;var l=
d[0]+e;g=!!n}else!w&&k[h]&&k[h].isNull&&(m=l=b);void 0!==m&&(q.push({plotX:r,plotY:null===m?f:u.getThreshold(m),isNull:g,isCliff:!0}),p.push({plotX:r,plotY:null===l?f:u.getThreshold(l),doCurve:!1}))};k=k||this.points;w&&(k=this.getStackPoints(k));for(l=0;l<k.length;l++){var h=k[l].isNull;var r=H(k[l].rectPlotX,k[l].plotX);var x=H(k[l].yBottom,f);if(!h||t)t||m(l,l-1,"left"),h&&!w&&t||(q.push(k[l]),p.push({x:l,plotX:r,plotY:x})),t||m(l,l+1,"right")}l=y.call(this,q,!0,!0);p.reversed=!0;h=y.call(this,
p,!0,!0);h.length&&(h[0]="L");h=l.concat(h);y=y.call(this,q,!1,t);h.xMap=l.xMap;this.areaPath=h;return y},drawGraph:function(){this.areaPath=[];E.prototype.drawGraph.apply(this);var d=this,k=this.areaPath,t=this.options,w=[["area","highcharts-area",this.color,t.fillColor]];this.zones.forEach(function(k,l){w.push(["zone-area-"+l,"highcharts-area highcharts-zone-area-"+l+" "+k.className,k.color||d.color,k.fillColor||t.fillColor])});w.forEach(function(u){var l=u[0],p=d[l],q=p?"animate":"attr",c={};p?
(p.endX=d.preventGraphAnimation?null:k.xMap,p.animate({d:k})):(c.zIndex=0,p=d[l]=d.chart.renderer.path(k).addClass(u[1]).add(d.group),p.isArea=!0);d.chart.styledMode||(c.fill=H(u[3],D(u[2]).setOpacity(H(t.fillOpacity,.75)).get()));p[q](c);p.startX=k.xMap;p.shiftUnit=t.step?2:1})},drawLegendSymbol:d.LegendSymbolMixin.drawRectangle});""});K(I,"parts/SplineSeries.js",[I["parts/Globals.js"]],function(d){var k=d.pick;d=d.seriesType;d("spline","line",{},{getPointSpline:function(d,D,H){var w=D.plotX,y=D.plotY,
C=d[H-1];H=d[H+1];if(C&&!C.isNull&&!1!==C.doCurve&&!D.isCliff&&H&&!H.isNull&&!1!==H.doCurve&&!D.isCliff){d=C.plotY;var t=H.plotX;H=H.plotY;var G=0;var u=(1.5*w+C.plotX)/2.5;var l=(1.5*y+d)/2.5;t=(1.5*w+t)/2.5;var p=(1.5*y+H)/2.5;t!==u&&(G=(p-l)*(t-w)/(t-u)+y-p);l+=G;p+=G;l>d&&l>y?(l=Math.max(d,y),p=2*y-l):l<d&&l<y&&(l=Math.min(d,y),p=2*y-l);p>H&&p>y?(p=Math.max(H,y),l=2*y-p):p<H&&p<y&&(p=Math.min(H,y),l=2*y-p);D.rightContX=t;D.rightContY=p}D=["C",k(C.rightContX,C.plotX),k(C.rightContY,C.plotY),k(u,
w),k(l,y),w,y];C.rightContX=C.rightContY=null;return D}});""});K(I,"parts/AreaSplineSeries.js",[I["parts/Globals.js"]],function(d){var k=d.seriesTypes.area.prototype,w=d.seriesType;w("areaspline","spline",d.defaultPlotOptions.area,{getStackPoints:k.getStackPoints,getGraphPath:k.getGraphPath,drawGraph:k.drawGraph,drawLegendSymbol:d.LegendSymbolMixin.drawRectangle});""});K(I,"parts/ColumnSeries.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=d.animObject,
E=d.color,y=d.extend,C=d.merge,t=d.pick,G=d.Series;k=d.seriesType;var u=d.svg;k("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group",
"dataLabelsGroup"],negStacks:!0,init:function(){G.prototype.init.apply(this,arguments);var d=this,p=d.chart;p.hasRendered&&p.series.forEach(function(l){l.type===d.type&&(l.isDirty=!0)})},getColumnMetrics:function(){var d=this,p=d.options,k=d.xAxis,c=d.yAxis,a=k.options.reversedStacks;a=k.reversed&&!a||!k.reversed&&a;var b,f={},m=0;!1===p.grouping?m=1:d.chart.series.forEach(function(a){var h=a.yAxis,e=a.options;if(a.type===d.type&&(a.visible||!d.chart.options.chart.ignoreHiddenSeries)&&c.len===h.len&&
c.pos===h.pos){if(e.stacking){b=a.stackKey;void 0===f[b]&&(f[b]=m++);var g=f[b]}else!1!==e.grouping&&(g=m++);a.columnIndex=g}});var h=Math.min(Math.abs(k.transA)*(k.ordinalSlope||p.pointRange||k.closestPointRange||k.tickInterval||1),k.len),r=h*p.groupPadding,x=(h-2*r)/(m||1);p=Math.min(p.maxPointWidth||k.len,t(p.pointWidth,x*(1-2*p.pointPadding)));d.columnMetrics={width:p,offset:(x-p)/2+(r+((d.columnIndex||0)+(a?1:0))*x-h/2)*(a?-1:1)};return d.columnMetrics},crispCol:function(d,p,k,c){var a=this.chart,
b=this.borderWidth,f=-(b%2?.5:0);b=b%2?.5:1;a.inverted&&a.renderer.isVML&&(b+=1);this.options.crisp&&(k=Math.round(d+k)+f,d=Math.round(d)+f,k-=d);c=Math.round(p+c)+b;f=.5>=Math.abs(p)&&.5<c;p=Math.round(p)+b;c-=p;f&&c&&(--p,c+=1);return{x:d,y:p,width:k,height:c}},translate:function(){var d=this,p=d.chart,k=d.options,c=d.dense=2>d.closestPointRange*d.xAxis.transA;c=d.borderWidth=t(k.borderWidth,c?0:1);var a=d.yAxis,b=k.threshold,f=d.translatedThreshold=a.getThreshold(b),m=t(k.minPointLength,5),h=d.getColumnMetrics(),
r=h.width,x=d.barW=Math.max(r,1+2*c),v=d.pointXOffset=h.offset,n=d.dataMin,e=d.dataMax;p.inverted&&(f-=.5);k.pointPadding&&(x=Math.ceil(x));G.prototype.translate.apply(d);d.points.forEach(function(c){var g=t(c.yBottom,f),h=999+Math.abs(g),l=r;h=Math.min(Math.max(-h,c.plotY),a.len+h);var k=c.plotX+v,q=x,u=Math.min(h,g),y=Math.max(h,g)-u;if(m&&Math.abs(y)<m){y=m;var C=!a.reversed&&!c.negative||a.reversed&&c.negative;c.y===b&&d.dataMax<=b&&a.min<b&&n!==e&&(C=!C);u=Math.abs(u-f)>m?g-m:f-(C?m:0)}w(c.options.pointWidth)&&
(l=q=Math.ceil(c.options.pointWidth),k-=Math.round((l-r)/2));c.barX=k;c.pointWidth=l;c.tooltipPos=p.inverted?[a.len+a.pos-p.plotLeft-h,d.xAxis.len-k-q/2,y]:[k+q/2,h+a.pos-p.plotTop,y];c.shapeType=d.pointClass.prototype.shapeType||"rect";c.shapeArgs=d.crispCol.apply(d,c.isNull?[k,f,q,0]:[k,u,q,y])})},getSymbol:d.noop,drawLegendSymbol:d.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(d,p){var l=this.options,
c=this.pointAttrToOptions||{};var a=c.stroke||"borderColor";var b=c["stroke-width"]||"borderWidth",f=d&&d.color||this.color,m=d&&d[a]||l[a]||this.color||f,h=d&&d[b]||l[b]||this[b]||0;c=d&&d.options.dashStyle||l.dashStyle;var r=t(l.opacity,1);if(d&&this.zones.length){var k=d.getZone();f=d.options.color||k&&(k.color||d.nonZonedColor)||this.color;k&&(m=k.borderColor||m,c=k.dashStyle||c,h=k.borderWidth||h)}p&&(d=C(l.states[p],d.options.states&&d.options.states[p]||{}),p=d.brightness,f=d.color||void 0!==
p&&E(f).brighten(d.brightness).get()||f,m=d[a]||m,h=d[b]||h,c=d.dashStyle||c,r=t(d.opacity,r));a={fill:f,stroke:m,"stroke-width":h,opacity:r};c&&(a.dashstyle=c);return a},drawPoints:function(){var d=this,p=this.chart,k=d.options,c=p.renderer,a=k.animationLimit||250,b;d.points.forEach(function(f){var m=f.graphic,h=m&&p.pointCount<a?"animate":"attr";if(D(f.plotY)&&null!==f.y){b=f.shapeArgs;m&&m.element.nodeName!==f.shapeType&&(m=m.destroy());if(m)m[h](C(b));else f.graphic=m=c[f.shapeType](b).add(f.group||
d.group);if(k.borderRadius)m[h]({r:k.borderRadius});p.styledMode||m[h](d.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&k.shadow,null,k.stacking&&!k.borderRadius);m.addClass(f.getClassName(),!0)}else m&&(f.graphic=m.destroy())})},animate:function(d){var l=this,k=this.yAxis,c=l.options,a=this.chart.inverted,b={},f=a?"translateX":"translateY";if(u)if(d)b.scaleY=.001,d=Math.min(k.pos+k.len,Math.max(k.pos,k.toPixels(c.threshold))),a?b.translateX=d-k.len:b.translateY=d,l.clipBox&&l.setClip(),
l.group.attr(b);else{var m=l.group.attr(f);l.group.animate({scaleY:1},y(H(l.options.animation),{step:function(a,c){b[f]=m+c.pos*(k.pos-m);l.group.attr(b)}}));l.animate=null}},remove:function(){var d=this,k=d.chart;k.hasRendered&&k.series.forEach(function(l){l.type===d.type&&(l.isDirty=!0)});G.prototype.remove.apply(d,arguments)}});""});K(I,"parts/BarSeries.js",[I["parts/Globals.js"]],function(d){d=d.seriesType;d("bar","column",null,{inverted:!0});""});K(I,"parts/ScatterSeries.js",[I["parts/Globals.js"]],
function(d){var k=d.Series,w=d.seriesType;w("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cspan style\x3d"font-size: 10px"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],
takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&k.prototype.drawGraph.call(this)},applyJitter:function(){var d=this,k=this.options.jitter,w=this.points.length;k&&this.points.forEach(function(y,C){["x","y"].forEach(function(t,G){var u="plot"+t.toUpperCase();if(k[t]&&!y.isNull){var l=d[t+"Axis"];var p=k[t]*l.transA;if(l&&!l.isLog){var q=Math.max(0,y[u]-p);l=Math.min(l.len,y[u]+p);G=1E4*Math.sin(C+G*w);y[u]=q+(l-q)*(G-Math.floor(G));"x"===t&&(y.clientX=y.plotX)}}})})}});d.addEvent(k,
"afterTranslate",function(){this.applyJitter&&this.applyJitter()});""});K(I,"mixins/centered-series.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.isNumber,D=d.deg2rad,H=d.pick,E=d.relativeLength;d.CenteredSeriesMixin={getCenter:function(){var d=this.options,k=this.chart,t=2*(d.slicedOffset||0),w=k.plotWidth-2*t;k=k.plotHeight-2*t;var u=d.center;u=[H(u[0],"50%"),H(u[1],"50%"),d.size||"100%",d.innerSize||0];var l=Math.min(w,k),p;for(p=0;4>p;++p){var q=u[p];d=2>p||2===p&&
/%$/.test(q);u[p]=E(q,[w,k,l,u[2]][p])+(d?t:0)}u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(d,k){d=w(d)?d:0;k=w(k)&&k>d&&360>k-d?k:d+360;return{start:D*(d+-90),end:D*(k+-90)}}}});K(I,"parts/PieSeries.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=d.addEvent;k=d.CenteredSeriesMixin;var E=k.getStartAndEndRadians,y=d.merge,C=d.noop,t=d.pick,G=d.Point,u=d.Series,l=d.seriesType,p=d.fireEvent,q=d.setAnimation;l("pie","line",{center:[null,
null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},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,states:{hover:{brightness:.1}}},{isCartesian:!1,
requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:d.seriesTypes.column.prototype.pointAttribs,animate:function(c){var a=this,b=a.points,d=a.startAngleRad;c||(b.forEach(function(b){var c=b.graphic,f=b.shapeArgs;c&&(c.attr({r:b.startR||a.center[3]/2,start:d,end:d}),c.animate({r:f.r,start:f.start,end:f.end},a.options.animation))}),a.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var c,
a=0,b=this.points,d=b.length,m=this.options.ignoreHiddenPoint;for(c=0;c<d;c++){var h=b[c];a+=m&&!h.visible?0:h.isNull?0:h.y}this.total=a;for(c=0;c<d;c++)h=b[c],h.percentage=0<a&&(h.visible||!m)?h.y/a*100:0,h.total=a},generatePoints:function(){u.prototype.generatePoints.call(this);this.updateTotals()},getX:function(c,a,b){var d=this.center,m=this.radii?this.radii[b.index]:d[2]/2;return d[0]+(a?-1:1)*Math.cos(Math.asin(Math.max(Math.min((c-d[1])/(m+b.labelDistance),1),-1)))*(m+b.labelDistance)+(0<b.labelDistance?
(a?-1:1)*this.options.dataLabels.padding:0)},translate:function(c){this.generatePoints();var a=0,b=this.options,f=b.slicedOffset,m=f+(b.borderWidth||0),h=E(b.startAngle,b.endAngle),l=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-l;var k=this.points,v=b.dataLabels.distance;b=b.ignoreHiddenPoint;var n,e=k.length;c||(this.center=c=this.getCenter());for(n=0;n<e;n++){var g=k[n];var F=l+a*h;if(!b||g.visible)a+=g.percentage/100;var A=l+a*h;g.shapeType="arc";g.shapeArgs={x:c[0],y:c[1],r:c[2]/2,innerR:c[3]/
2,start:Math.round(1E3*F)/1E3,end:Math.round(1E3*A)/1E3};g.labelDistance=t(g.options.dataLabels&&g.options.dataLabels.distance,v);g.labelDistance=d.relativeLength(g.labelDistance,g.shapeArgs.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,g.labelDistance);A=(A+F)/2;A>1.5*Math.PI?A-=2*Math.PI:A<-Math.PI/2&&(A+=2*Math.PI);g.slicedTranslation={translateX:Math.round(Math.cos(A)*f),translateY:Math.round(Math.sin(A)*f)};var z=Math.cos(A)*c[2]/2;var q=Math.sin(A)*c[2]/2;g.tooltipPos=[c[0]+.7*
z,c[1]+.7*q];g.half=A<-Math.PI/2||A>Math.PI/2?1:0;g.angle=A;F=Math.min(m,g.labelDistance/5);g.labelPosition={natural:{x:c[0]+z+Math.cos(A)*g.labelDistance,y:c[1]+q+Math.sin(A)*g.labelDistance},"final":{},alignment:0>g.labelDistance?"center":g.half?"right":"left",connectorPosition:{breakAt:{x:c[0]+z+Math.cos(A)*F,y:c[1]+q+Math.sin(A)*F},touchingSliceAt:{x:c[0]+z,y:c[1]+q}}}}p(this,"afterTranslate")},drawEmpty:function(){var c=this.options;if(0===this.total){var a=this.center[0];var b=this.center[1];
this.graph||(this.graph=this.chart.renderer.circle(a,b,0).addClass("highcharts-graph").add(this.group));this.graph.animate({"stroke-width":c.borderWidth,cx:a,cy:b,r:this.center[2]/2,fill:c.fillColor||"none",stroke:c.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var c=this,a=c.chart,b=a.renderer,d,m,h,l,k=c.options.shadow;this.drawEmpty();!k||c.shadowGroup||a.styledMode||(c.shadowGroup=b.g("shadow").attr({zIndex:-1}).add(c.group));c.points.forEach(function(f){var n=
{};m=f.graphic;if(!f.isNull&&m){l=f.shapeArgs;d=f.getTranslate();if(!a.styledMode){var e=f.shadowGroup;k&&!e&&(e=f.shadowGroup=b.g("shadow").add(c.shadowGroup));e&&e.attr(d);h=c.pointAttribs(f,f.selected&&"select")}f.delayedRendering?(m.setRadialReference(c.center).attr(l).attr(d),a.styledMode||m.attr(h).attr({"stroke-linejoin":"round"}).shadow(k,e),f.delayedRendering=!1):(m.setRadialReference(c.center),a.styledMode||y(!0,n,h),y(!0,n,l,d),m.animate(n));m.attr({visibility:f.visible?"inherit":"hidden"});
m.addClass(f.getClassName())}else m&&(f.graphic=m.destroy())})},drawPoints:function(){var c=this.chart.renderer;this.points.forEach(function(a){a.graphic||(a.graphic=c[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},searchPoint:C,sortByAngle:function(c,a){c.sort(function(b,c){return void 0!==b.angle&&(c.angle-b.angle)*a})},drawLegendSymbol:d.LegendSymbolMixin.drawRectangle,getCenter:k.getCenter,getSymbol:C,drawGraph:null},{init:function(){G.prototype.init.apply(this,arguments);
var c=this;c.name=t(c.name,"Slice");var a=function(a){c.slice("select"===a.type)};H(c,"select",a);H(c,"unselect",a);return c},isValid:function(){return D(this.y)&&0<=this.y},setVisible:function(c,a){var b=this,d=b.series,m=d.chart,h=d.options.ignoreHiddenPoint;a=t(a,h);c!==b.visible&&(b.visible=b.options.visible=c=void 0===c?!b.visible:c,d.options.data[d.data.indexOf(b)]=b.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(b[a])b[a][c?"show":"hide"](!0)}),b.legendItem&&
m.legend.colorizeItem(b,c),c||"hover"!==b.state||b.setState(""),h&&(d.isDirty=!0),a&&m.redraw())},slice:function(c,a,b){var d=this.series;q(b,d.chart);t(a,!0);this.sliced=this.options.sliced=w(c)?c:!this.sliced;d.options.data[d.data.indexOf(this)]=this.options;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(c){var a=this.shapeArgs;
return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,a.y,a.r+c,a.r+c,{innerR:a.r-1,start:a.start,end:a.end})},connectorShapes:{fixedOffset:function(c,a,b){var d=a.breakAt;a=a.touchingSliceAt;return["M",c.x,c.y].concat(b.softConnector?["C",c.x+("left"===c.alignment?-5:5),c.y,2*d.x-a.x,2*d.y-a.y,d.x,d.y]:["L",d.x,d.y]).concat(["L",a.x,a.y])},straight:function(c,a){a=a.touchingSliceAt;return["M",c.x,c.y,"L",a.x,a.y]},crookedLine:function(c,a,b){a=a.touchingSliceAt;var f=this.series,
m=f.center[0],h=f.chart.plotWidth,l=f.chart.plotLeft;f=c.alignment;var k=this.shapeArgs.r;b=d.relativeLength(b.crookDistance,1);b="left"===f?m+k+(h+l-m-k)*(1-b):l+(m-k)*b;m=["L",b,c.y];if("left"===f?b>c.x||b<a.x:b<c.x||b>a.x)m=[];return["M",c.x,c.y].concat(m).concat(["L",a.x,a.y])}},getConnectorPath:function(){var c=this.labelPosition,a=this.series.options.dataLabels,b=a.connectorShape,d=this.connectorShapes;d[b]&&(b=d[b]);return b.call(this,{x:c.final.x,y:c.final.y,alignment:c.alignment},c.connectorPosition,
a)}});""});K(I,"parts/DataLabels.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isArray,H=k.objectEach,E=k.splat,y=d.arrayMax,C=d.extend,t=d.format,G=d.merge;k=d.noop;var u=d.pick,l=d.relativeLength,p=d.Series,q=d.seriesTypes,c=d.stableSort;d.distribute=function(a,b,f){function m(a,b){return a.target-b.target}var h,l=!0,k=a,v=[];var n=0;var e=k.reducedLen||b;for(h=a.length;h--;)n+=a[h].size;if(n>e){c(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(n=h=0;n<=
e;)n+=a[h].size,h++;v=a.splice(h-1,a.length)}c(a,m);for(a=a.map(function(a){return{size:a.size,targets:[a.target],align:u(a.align,.5)}});l;){for(h=a.length;h--;)l=a[h],n=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=Math.min(Math.max(0,n-l.size*l.align),b-l.size);h=a.length;for(l=!1;h--;)0<h&&a[h-1].pos+a[h-1].size>a[h].pos&&(a[h-1].size+=a[h].size,a[h-1].targets=a[h-1].targets.concat(a[h].targets),a[h-1].align=.5,a[h-1].pos+a[h-1].size>b&&(a[h-1].pos=b-a[h-1].size),a.splice(h,
1),l=!0)}k.push.apply(k,v);h=0;a.some(function(a){var c=0;if(a.targets.some(function(){k[h].pos=a.pos+c;if(Math.abs(k[h].pos-k[h].target)>f)return k.slice(0,h+1).forEach(function(a){delete a.pos}),k.reducedLen=(k.reducedLen||b)-.1*b,k.reducedLen>.1*b&&d.distribute(k,b,f),!0;c+=k[h].size;h++}))return!0});c(k,m)};p.prototype.drawDataLabels=function(){function a(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,"\x3e"===b&&a>c||"\x3c"===b&&a<c||"\x3e\x3d"===b&&a>=c||"\x3c\x3d"===b&&
a<=c||"\x3d\x3d"===b&&a==c||"\x3d\x3d\x3d"===b&&a===c?!0:!1):!0}function b(a,b){var c=[],d;if(D(a)&&!D(b))c=a.map(function(a){return G(a,b)});else if(D(b)&&!D(a))c=b.map(function(b){return G(a,b)});else if(D(a)||D(b))for(d=Math.max(a.length,b.length);d--;)c[d]=G(a[d],b[d]);else c=G(a,b);return c}var c=this,m=c.chart,h=c.options,l=h.dataLabels,k=c.points,v,n=c.hasRendered||0,e=d.animObject(h.animation).duration,g=Math.min(e,200),p=!m.renderer.forExport&&u(l.defer,0<g),A=m.renderer;l=b(b(m.options.plotOptions&&
m.options.plotOptions.series&&m.options.plotOptions.series.dataLabels,m.options.plotOptions&&m.options.plotOptions[c.type]&&m.options.plotOptions[c.type].dataLabels),l);d.fireEvent(this,"drawDataLabels");if(D(l)||l.enabled||c._hasPointLabels){var q=c.plotGroup("dataLabelsGroup","data-labels",p&&!n?"hidden":"inherit",l.zIndex||6);p&&(q.attr({opacity:+n}),n||setTimeout(function(){var a=c.dataLabelsGroup;a&&(c.visible&&q.show(!0),a[h.animation?"animate":"attr"]({opacity:1},{duration:g}))},e-g));k.forEach(function(d){v=
E(b(l,d.dlOptions||d.options&&d.options.dataLabels));v.forEach(function(b,e){var g=b.enabled&&(!d.isNull||d.dataLabelOnNull)&&a(d,b),f=d.dataLabels?d.dataLabels[e]:d.dataLabel,n=d.connectors?d.connectors[e]:d.connector,l=u(b.distance,d.labelDistance),v=!f;if(g){var k=d.getLabelConfig();var r=u(b[d.formatPrefix+"Format"],b.format);k=w(r)?t(r,k,m.time):(b[d.formatPrefix+"Formatter"]||b.formatter).call(k,b);r=b.style;var p=b.rotation;m.styledMode||(r.color=u(b.color,r.color,c.color,"#000000"),"contrast"===
r.color&&(d.contrastColor=A.getContrast(d.color||c.color),r.color=!w(l)&&b.inside||0>l||h.stacking?d.contrastColor:"#000000"),h.cursor&&(r.cursor=h.cursor));var z={r:b.borderRadius||0,rotation:p,padding:b.padding,zIndex:1};m.styledMode||(z.fill=b.backgroundColor,z.stroke=b.borderColor,z["stroke-width"]=b.borderWidth);H(z,function(a,b){void 0===a&&delete z[b]})}!f||g&&w(k)?g&&w(k)&&(f?z.text=k:(d.dataLabels=d.dataLabels||[],f=d.dataLabels[e]=p?A.text(k,0,-9999).addClass("highcharts-data-label"):A.label(k,
0,-9999,b.shape,null,null,b.useHTML,null,"data-label"),e||(d.dataLabel=f),f.addClass(" highcharts-data-label-color-"+d.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),f.options=b,f.attr(z),m.styledMode||f.css(r).shadow(b.shadow),f.added||f.add(q),b.textPath&&!b.useHTML&&f.setTextPath(d.getDataLabelPath&&d.getDataLabelPath(f)||d.graphic,b.textPath),c.alignDataLabel(d,f,b,null,v)):(d.dataLabel=d.dataLabel&&d.dataLabel.destroy(),d.dataLabels&&(1===d.dataLabels.length?delete d.dataLabels:
delete d.dataLabels[e]),e||delete d.dataLabel,n&&(d.connector=d.connector.destroy(),d.connectors&&(1===d.connectors.length?delete d.connectors:delete d.connectors[e])))})})}d.fireEvent(this,"afterDrawDataLabels")};p.prototype.alignDataLabel=function(a,b,c,d,h){var f=this.chart,m=this.isCartesian&&f.inverted,l=u(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=u(a.plotY,-9999),e=b.getBBox(),g=c.rotation,k=c.align,A=this.visible&&(a.series.forceDL||f.isInsidePlot(l,Math.round(n),m)||d&&f.isInsidePlot(l,m?
d.x+1:d.y+d.height-1,m)),p="justify"===u(c.overflow,"justify");if(A){var q=f.renderer.fontMetrics(f.styledMode?void 0:c.style.fontSize,b).b;d=C({x:m?this.yAxis.len-n:l,y:Math.round(m?this.xAxis.len-l:n),width:0,height:0},d);C(c,{width:e.width,height:e.height});g?(p=!1,l=f.renderer.rotCorr(q,g),l={x:d.x+c.x+d.width/2+l.x,y:d.y+c.y+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},b[h?"attr":"animate"](l).attr({align:k}),n=(g+720)%360,n=180<n&&360>n,"left"===k?l.y-=n?e.height:0:"center"===k?(l.x-=
e.width/2,l.y-=e.height/2):"right"===k&&(l.x-=e.width,l.y-=n?0:e.height),b.placed=!0,b.alignAttr=l):(b.align(c,null,d),l=b.alignAttr);p&&0<=d.height?this.justifyDataLabel(b,c,l,e,d,h):u(c.crop,!0)&&(A=f.isInsidePlot(l.x,l.y)&&f.isInsidePlot(l.x+e.width,l.y+e.height));if(c.shape&&!g)b[h?"attr":"animate"]({anchorX:m?f.plotWidth-a.plotY:a.plotX,anchorY:m?f.plotHeight-a.plotX:a.plotY})}A||(b.hide(!0),b.placed=!1)};p.prototype.justifyDataLabel=function(a,b,c,d,h,l){var f=this.chart,m=b.align,n=b.verticalAlign,
e=a.box?0:a.padding||0;var g=c.x+e;if(0>g){"right"===m?(b.align="left",b.inside=!0):b.x=-g;var k=!0}g=c.x+d.width-e;g>f.plotWidth&&("left"===m?(b.align="right",b.inside=!0):b.x=f.plotWidth-g,k=!0);g=c.y+e;0>g&&("bottom"===n?(b.verticalAlign="top",b.inside=!0):b.y=-g,k=!0);g=c.y+d.height-e;g>f.plotHeight&&("top"===n?(b.verticalAlign="bottom",b.inside=!0):b.y=f.plotHeight-g,k=!0);k&&(a.placed=!l,a.align(b,null,h));return k};q.pie&&(q.pie.prototype.dataLabelPositioners={radialDistributionY:function(a){return a.top+
a.distributeBox.pos},radialDistributionX:function(a,b,c,d){return a.getX(c<b.top+2||c>b.bottom-2?d:c,b.half,b)},justify:function(a,b,c){return c[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,c,d){a=a.getBBox().width;return b?a+d:c-a-d},alignToConnectors:function(a,b,c,d){var f=0,m;a.forEach(function(a){m=a.dataLabel.getBBox().width;m>f&&(f=m)});return b?f+d:c-f-d}},q.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,c,m=a.chart,h=a.options.dataLabels,l=h.connectorPadding,
k,v=m.plotWidth,n=m.plotHeight,e=m.plotLeft,g=Math.round(m.chartWidth/3),q,A=a.center,z=A[2]/2,B=A[1],t,C,E,D,H=[[],[]],L,I,O,K,W=[0,0,0,0],da=a.dataLabelPositioners,X;a.visible&&(h.enabled||a._hasPointLabels)&&(b.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),p.prototype.drawDataLabels.apply(a),b.forEach(function(a){a.dataLabel&&(a.visible?(H[a.half].push(a),a.dataLabel._pos=
null,!w(h.style.width)&&!w(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>g&&(a.dataLabel.css({width:.7*g}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),H.forEach(function(b,g){var f=b.length,k=[],r;if(f){a.sortByAngle(b,g-.5);if(0<a.maxLabelDistance){var p=Math.max(0,B-z-a.maxLabelDistance);var q=Math.min(B+z+a.maxLabelDistance,m.plotHeight);b.forEach(function(a){0<
a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,B-z-a.labelDistance),a.bottom=Math.min(B+z+a.labelDistance,m.plotHeight),r=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+r/2,size:r,rank:a.y},k.push(a.distributeBox))});p=q+r-p;d.distribute(k,p,p/5)}for(K=0;K<f;K++){c=b[K];E=c.labelPosition;t=c.dataLabel;O=!1===c.visible?"hidden":"inherit";I=p=E.natural.y;k&&w(c.distributeBox)&&(void 0===c.distributeBox.pos?O="hidden":(D=c.distributeBox.size,I=da.radialDistributionY(c)));
delete c.positionIndex;if(h.justify)L=da.justify(c,z,A);else switch(h.alignTo){case "connectors":L=da.alignToConnectors(b,g,v,e);break;case "plotEdges":L=da.alignToPlotEdges(t,g,v,e);break;default:L=da.radialDistributionX(a,c,I,p)}t._attr={visibility:O,align:E.alignment};t._pos={x:L+h.x+({left:l,right:-l}[E.alignment]||0),y:I+h.y-10};E.final.x=L;E.final.y=I;u(h.crop,!0)&&(C=t.getBBox().width,p=null,L-C<l&&1===g?(p=Math.round(C-L+l),W[3]=Math.max(p,W[3])):L+C>v-l&&0===g&&(p=Math.round(L+C-v+l),W[1]=
Math.max(p,W[1])),0>I-D/2?W[0]=Math.max(Math.round(-I+D/2),W[0]):I+D/2>n&&(W[2]=Math.max(Math.round(I+D/2-n),W[2])),t.sideOverflow=p)}}}),0===y(W)||this.verifyDataLabelOverflow(W))&&(this.placeDataLabels(),this.points.forEach(function(b){X=G(h,b.options.dataLabels);if(k=u(X.connectorWidth,1)){var c;q=b.connector;if((t=b.dataLabel)&&t._pos&&b.visible&&0<b.labelDistance){O=t._attr.visibility;if(c=!q)b.connector=q=m.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+b.colorIndex+
(b.className?" "+b.className:"")).add(a.dataLabelsGroup),m.styledMode||q.attr({"stroke-width":k,stroke:X.connectorColor||b.color||"#666666"});q[c?"attr":"animate"]({d:b.getConnectorPath()});q.attr("visibility",O)}else q&&(b.connector=q.destroy())}}))},q.pie.prototype.placeDataLabels=function(){this.points.forEach(function(a){var b=a.dataLabel,c;b&&a.visible&&((c=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||
{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](c),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)},q.pie.prototype.alignDataLabel=k,q.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,h=c.minSize||80,k=null!==c.size;if(!k){if(null!==d[0])var p=Math.max(b[2]-Math.max(a[1],a[3]),h);else p=Math.max(b[2]-a[1]-a[3],h),b[0]+=(a[3]-a[1])/2;null!==d[1]?p=Math.max(Math.min(p,b[2]-Math.max(a[0],a[2])),h):
(p=Math.max(Math.min(p,b[2]-a[0]-a[2]),h),b[1]+=(a[0]-a[2])/2);p<b[2]?(b[2]=p,b[3]=Math.min(l(c.innerSize||0,p),p),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):k=!0}return k});q.column&&(q.column.prototype.alignDataLabel=function(a,b,c,d,h){var f=this.chart.inverted,m=a.series,l=a.dlBox||a.shapeArgs,n=u(a.below,a.plotY>u(this.translatedThreshold,m.yAxis.len)),e=u(c.inside,!!this.options.stacking);l&&(d=G(l),0>d.y&&(d.height+=d.y,d.y=0),l=d.y+d.height-m.yAxis.len,0<l&&(d.height-=l),
f&&(d={x:m.yAxis.len-d.y-d.height,y:m.xAxis.len-d.x-d.width,width:d.height,height:d.width}),e||(f?(d.x+=n?0:d.width,d.width=0):(d.y+=n?d.height:0,d.height=0)));c.align=u(c.align,!f||e?"center":n?"right":"left");c.verticalAlign=u(c.verticalAlign,f||e?"middle":n?"top":"bottom");p.prototype.alignDataLabel.call(this,a,b,c,d,h);c.inside&&a.contrastColor&&b.css({color:a.contrastColor})})});K(I,"modules/overlapping-datalabels.src.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.isArray,
D=k.objectEach;k=d.Chart;var H=d.pick,E=d.addEvent,y=d.fireEvent;E(k,"render",function(){var d=[];(this.labelCollectors||[]).forEach(function(k){d=d.concat(k())});(this.yAxis||[]).forEach(function(k){k.options.stackLabels&&!k.options.stackLabels.allowOverlap&&D(k.stacks,function(k){D(k,function(k){d.push(k.label)})})});(this.series||[]).forEach(function(k){var t=k.options.dataLabels;k.visible&&(!1!==t.enabled||k._hasPointLabels)&&k.points.forEach(function(k){k.visible&&(w(k.dataLabels)?k.dataLabels:
k.dataLabel?[k.dataLabel]:[]).forEach(function(l){var p=l.options;l.labelrank=H(p.labelrank,k.labelrank,k.shapeArgs&&k.shapeArgs.height);p.allowOverlap||d.push(l)})})});this.hideOverlappingLabels(d)});k.prototype.hideOverlappingLabels=function(d){var k=this,w=d.length,u=k.renderer,l,p,q;var c=function(a){var b=a.box?0:a.padding||0;var c=0;if(a&&(!a.alignAttr||a.placed)){var d=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var f=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=
u.fontMetrics(null,a.element).h);return{x:d.x+(f.translateX||0)+b,y:d.y+(f.translateY||0)+b-c,width:a.width-2*b,height:a.height-2*b}}};for(p=0;p<w;p++)if(l=d[p])l.oldOpacity=l.opacity,l.newOpacity=1,l.absoluteBox=c(l);d.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(p=0;p<w;p++){var a=(c=d[p])&&c.absoluteBox;for(l=p+1;l<w;++l){var b=(q=d[l])&&q.absoluteBox;!a||!b||c===q||0===c.newOpacity||0===q.newOpacity||b.x>a.x+a.width||b.x+b.width<a.x||b.y>a.y+a.height||b.y+b.height<a.y||((c.labelrank<
q.labelrank?c:q).newOpacity=0)}}d.forEach(function(a){var b;if(a){var c=a.newOpacity;a.oldOpacity!==c&&(a.alignAttr&&a.placed?(c?a.show(!0):b=function(){a.hide(!0);a.placed=!1},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b),y(k,"afterHideOverlappingLabels")):a.attr({opacity:c}));a.isOld=!0}})}});K(I,"parts/Interaction.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isArray,H=k.isObject,E=k.objectEach,y=d.addEvent;k=d.Chart;var C=d.createElement,
t=d.css,G=d.defaultOptions,u=d.defaultPlotOptions,l=d.extend,p=d.fireEvent,q=d.hasTouch,c=d.Legend,a=d.merge,b=d.pick,f=d.Point,m=d.Series,h=d.seriesTypes,r=d.svg;var x=d.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=function(a){var b=c.getPointFromEvent(a);void 0!==b&&(c.isDirectTouch=!0,b.onMouseOver(a))},f;a.points.forEach(function(a){f=D(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);f.forEach(function(b){b.div?b.div.point=
a:b.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(e){if(a[e]){a[e].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(a){c.onTrackerMouseOut(a)});if(q)a[e].on("touchstart",d);!b.styledMode&&a.options.cursor&&a[e].css(t).css({cursor:a.options.cursor})}}),a._hasTracking=!0);p(this,"afterDrawTracker")},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),f=d.length,h=a.chart,m=h.pointer,l=h.renderer,k=h.options.tooltip.snap,
x=a.tracker,u,t=function(){if(h.hoverSeries!==a)a.onMouseOver()},w="rgba(192,192,192,"+(r?1E-4:.002)+")";if(f&&!c)for(u=f+1;u--;)"M"===d[u]&&d.splice(u+1,0,d[u+1]-k,d[u+2],"L"),(u&&"M"===d[u]||u===f)&&d.splice(u,0,"L",d[u-2]+k,d[u-1]);x?x.attr({d:d}):a.graph&&(a.tracker=l.path(d).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),h.styledMode||a.tracker.attr({"stroke-linejoin":"round",stroke:w,fill:c?w:"none","stroke-width":a.graph.strokeWidth()+
(c?0:2*k)}),[a.tracker,a.markerGroup].forEach(function(a){a.addClass("highcharts-tracker").on("mouseover",t).on("mouseout",function(a){m.onTrackerMouseOut(a)});b.cursor&&!h.styledMode&&a.css({cursor:b.cursor});if(q)a.on("touchstart",t)}));p(this,"afterDrawTracker")}};h.column&&(h.column.prototype.drawTracker=x.drawTrackerPoint);h.pie&&(h.pie.prototype.drawTracker=x.drawTrackerPoint);h.scatter&&(h.scatter.prototype.drawTracker=x.drawTrackerPoint);l(c.prototype,{setItemEvents:function(b,c,d){var e=
this,h=e.chart.renderer.boxWrapper,n=b instanceof f,m="highcharts-legend-"+(n?"point":"series")+"-active",l=e.chart.styledMode;(d?c:b.legendGroup).on("mouseover",function(){b.visible&&e.allItems.forEach(function(a){b!==a&&a.setState("inactive",!n)});b.setState("hover");b.visible&&h.addClass(m);l||c.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||c.css(a(b.visible?e.itemStyle:e.itemHiddenStyle));e.allItems.forEach(function(a){b!==a&&a.setState("",!n)});h.removeClass(m);
b.setState()}).on("click",function(a){var c=function(){b.setVisible&&b.setVisible();e.allItems.forEach(function(a){b!==a&&a.setState(b.visible?"inactive":"",!n)})};h.removeClass(m);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):p(b,"legendItemClick",a,c)})},createCheckboxForItem:function(a){a.checkbox=C("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);y(a.checkbox,
"click",function(b){p(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});l(k.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=G.lang,d=b.options.chart.resetZoomButton,f=d.theme,h=f.states,m="chart"===d.relativeTo||"spaceBox"===d.relativeTo?null:"plotBox";p(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,f,h&&h.hover).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,
!1,m)});p(this,"afterShowResetZoom")},zoomOut:function(){p(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var c=this,d,g=c.pointer,f=!1,h=c.inverted?g.mouseDownX:g.mouseDownY;!a||a.resetSelection?(c.axes.forEach(function(a){d=a.zoom()}),g.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var b=a.axis,e=c.inverted?b.left:b.top,n=c.inverted?e+b.width:e+b.height,m=b.isXAxis,l=!1;if(!m&&h>=e&&h<=n||m||!w(h))l=!0;g[m?"zoomX":"zoomY"]&&l&&(d=b.zoom(a.min,a.max),b.displayBtn&&
(f=!0))});var m=c.resetZoomButton;f&&!m?c.showResetZoom():!f&&H(m)&&(c.resetZoomButton=m.destroy());d&&c.redraw(b(c.options.chart.animation,a&&a.animation,100>c.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,f;p(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});("xy"===b?[1,0]:[1]).forEach(function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,e=a[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var g=c[d],h=(b.pointRange||0)/2,n=b.reversed&&!c.inverted||!b.reversed&&
c.inverted?-1:1,m=b.getExtremes(),l=b.toValue(g-e,!0)+h*n;n=b.toValue(g+b.len-e,!0)-h*n;var k=n<l;g=k?n:l;l=k?l:n;n=Math.min(m.dataMin,h?m.min:b.toValue(b.toPixels(m.min)-b.minPixelPadding));h=Math.max(m.dataMax,h?m.max:b.toValue(b.toPixels(m.max)+b.minPixelPadding));k=n-g;0<k&&(l+=k,g=n);k=l-h;0<k&&(l=h,g-=k);b.series.length&&g!==m.min&&l!==m.max&&(b.setExtremes(g,l,!1,!1,{trigger:"pan"}),f=!0);c[d]=e});f&&c.redraw(!1);t(c.container,{cursor:"move"})})}});l(f.prototype,{select:function(a,c){var d=
this,g=d.series,f=g.chart;this.selectedStaging=a=b(a,!d.selected);d.firePointEvent(a?"select":"unselect",{accumulate:c},function(){d.selected=d.options.selected=a;g.options.data[g.data.indexOf(d)]=d.options;d.setState(a&&"select");c||f.getSelectedPoints().forEach(function(a){var b=a.series;a.selected&&a!==d&&(a.selected=a.options.selected=!1,b.options.data[b.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging},
onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=a(b.series.options.point,b.options).events;b.events=c;E(c,function(a,c){d.isFunction(a)&&
y(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,c){var d=this.series,g=this.state,f=d.options.states[a||"normal"]||{},h=u[d.type].marker&&d.options.marker,n=h&&!1===h.enabled,m=h&&h.states&&h.states[a||"normal"]||{},k=!1===m.enabled,r=d.stateMarkerGraphic,q=this.marker||{},v=d.chart,x=d.halo,t,w=h&&d.markerAttribs;a=a||"";if(!(a===this.state&&!c||this.selected&&"select"!==a||!1===f.enabled||a&&(k||n&&!1===m.enabled)||a&&q.states&&q.states[a]&&!1===q.states[a].enabled)){this.state=a;w&&
(t=d.markerAttribs(this,a));if(this.graphic){g&&this.graphic.removeClass("highcharts-point-"+g);a&&this.graphic.addClass("highcharts-point-"+a);if(!v.styledMode){var y=d.pointAttribs(this,a);var C=b(v.options.chart.animation,f.animation);d.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:y.opacity},C)}),this.connector&&this.connector.animate({opacity:y.opacity},C));this.graphic.animate(y,C)}t&&this.graphic.animate(t,b(v.options.chart.animation,m.animation,
h.animation));r&&r.hide()}else{if(a&&m){g=q.symbol||d.symbol;r&&r.currentSymbol!==g&&(r=r.destroy());if(t)if(r)r[c?"animate":"attr"]({x:t.x,y:t.y});else g&&(d.stateMarkerGraphic=r=v.renderer.symbol(g,t.x,t.y,t.width,t.height).add(d.markerGroup),r.currentSymbol=g);!v.styledMode&&r&&r.attr(d.pointAttribs(this,a))}r&&(r[a&&this.isInside?"show":"hide"](),r.element.point=this)}a=f.halo;f=(r=this.graphic||r)&&r.visibility||"inherit";a&&a.size&&r&&"hidden"!==f?(x||(d.halo=x=v.renderer.path().add(r.parentGroup)),
x.show()[c?"animate":"attr"]({d:this.haloPath(a.size)}),x.attr({"class":"highcharts-halo highcharts-color-"+b(this.colorIndex,d.colorIndex)+(this.className?" "+this.className:""),visibility:f,zIndex:-1}),x.point=this,v.styledMode||x.attr(l({fill:this.color||d.color,"fill-opacity":a.opacity},a.attributes))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide);p(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
a,this.plotY-a,2*a,2*a)}});l(m.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&p(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&p(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})},
setState:function(a,c){var d=this,g=d.options,f=d.graph,h=g.inactiveOtherPoints,n=g.states,m=g.lineWidth,l=g.opacity,k=b(n[a||"normal"]&&n[a||"normal"].animation,d.chart.options.chart.animation);g=0;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(b){b&&(d.state&&b.removeClass("highcharts-series-"+d.state),a&&b.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(n[a]&&!1===n[a].enabled)return;a&&(m=n[a].lineWidth||m+(n[a].lineWidthPlus||0),l=b(n[a].opacity,
l));if(f&&!f.dashstyle)for(n={"stroke-width":m},f.animate(n,k);d["zone-graph-"+g];)d["zone-graph-"+g].attr(n),g+=1;h||[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&a.animate({opacity:l},k)})}c&&h&&d.points&&d.setAllPointsToState(a)},setAllPointsToState:function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})},setVisible:function(a,b){var c=this,d=c.chart,f=c.legendItem,h=d.options.chart.ignoreHiddenSeries,n=c.visible;var m=(c.visible=a=c.options.visible=
c.userOptions.visible=void 0===a?!n:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][m]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();f&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});h&&(d.isDirtyBox=!0);p(c,m);!1!==b&&d.redraw()},show:function(){this.setVisible(!0)},
hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=this.options.selected=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);p(this,a?"select":"unselect")},drawTracker:x.drawTrackerGraph})});K(I,"parts/Responsive.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.isArray,D=k.isObject,H=k.objectEach,E=k.splat;k=d.Chart;var y=d.pick;k.prototype.setResponsive=function(k,t){var w=this.options.responsive,u=[],l=this.currentResponsive;!t&&w&&
w.rules&&w.rules.forEach(function(l){void 0===l._id&&(l._id=d.uniqueKey());this.matchResponsiveRule(l,u)},this);t=d.merge.apply(0,u.map(function(l){return d.find(w.rules,function(d){return d._id===l}).chartOptions}));t.isResponsiveOptions=!0;u=u.toString()||void 0;u!==(l&&l.ruleIds)&&(l&&this.update(l.undoOptions,k,!0),u?(l=this.currentOptions(t),l.isResponsiveOptions=!0,this.currentResponsive={ruleIds:u,mergedOptions:t,undoOptions:l},this.update(t,k,!0)):this.currentResponsive=void 0)};k.prototype.matchResponsiveRule=
function(d,k){var t=d.condition;(t.callback||function(){return this.chartWidth<=y(t.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=y(t.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=y(t.minWidth,0)&&this.chartHeight>=y(t.minHeight,0)}).call(this)&&k.push(d._id)};k.prototype.currentOptions=function(d){function k(d,p,q,c){var a;H(d,function(b,d){if(!c&&-1<y.collectionsWithUpdate.indexOf(d))for(b=E(b),q[d]=[],a=0;a<b.length;a++)p[d][a]&&(q[d][a]={},k(b[a],p[d][a],q[d][a],c+1));else D(b)?(q[d]=w(b)?[]:
{},k(b,p[d]||{},q[d],c+1)):q[d]=void 0===p[d]?null:p[d]})}var y=this,u={};k(d,this.options,u,0);return u}});K(I,"masters/highcharts.src.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=d.extend;w(d,{attr:k.attr,defined:k.defined,erase:k.erase,isArray:k.isArray,isClass:k.isClass,isDOMElement:k.isDOMElement,isNumber:k.isNumber,isObject:k.isObject,isString:k.isString,objectEach:k.objectEach,pInt:k.pInt,splat:k.splat});return d});K(I,"parts/Scrollbar.js",[I["parts/Globals.js"],
I["parts/Utilities.js"]],function(d,k){function w(a,b,c){this.init(a,b,c)}var D=k.defined,H=d.addEvent;k=d.Axis;var E=d.correctFloat,y=d.defaultOptions,C=d.destroyObjectProperties,t=d.fireEvent,G=d.hasTouch,u=d.merge,l=d.pick,p=d.removeEvent,q,c={height:d.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",
buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};y.scrollbar=u(!0,c,y.scrollbar);d.swapXY=q=function(a,b){var c=a.length;if(b)for(b=0;b<c;b+=3){var d=a[b+1];a[b+1]=a[b+2];a[b+2]=d}return a};w.prototype={init:function(a,b,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=b;this.options=u(c,b);this.chart=d;this.size=l(this.options.size,this.options.height);b.enabled&&(this.render(),this.initEvents(),
this.addEvents())},render:function(){var a=this.renderer,b=this.options,c=this.size,d=this.chart.styledMode,h;this.group=h=a.g("scrollbar").attr({zIndex:b.zIndex,translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:b.trackBorderRadius||0,height:c,width:c}).add(h);d||this.track.attr({fill:b.trackBackgroundColor,stroke:b.trackBorderColor,"stroke-width":b.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%
2/2});this.scrollbarGroup=a.g().add(h);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:c,width:c,r:b.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(q(["M",-3,c/4,"L",-3,2*c/3,"M",0,c/4,"L",0,2*c/3,"M",3,c/4,"L",3,2*c/3],b.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);d||(this.scrollbar.attr({fill:b.barBackgroundColor,stroke:b.barBorderColor,"stroke-width":b.barBorderWidth}),this.scrollbarRifles.attr({stroke:b.rifleColor,
"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)},position:function(a,b,c,d){var f=this.options.vertical,m=0,l=this.rendered?"animate":"attr";this.x=a;this.y=b+this.trackBorderWidth;this.width=c;this.xOffset=this.height=d;this.yOffset=m;f?(this.width=this.yOffset=c=m=this.size,this.xOffset=b=0,this.barWidth=d-2*c,this.x=a+=this.options.margin):
(this.height=this.xOffset=d=b=this.size,this.barWidth=c-2*d,this.y+=this.options.margin);this.group[l]({translateX:a,translateY:this.y});this.track[l]({width:c,height:d});this.scrollbarButtons[1][l]({translateX:f?0:c-b,translateY:f?d-m:0})},drawScrollbarButton:function(a){var b=this.renderer,c=this.scrollbarButtons,d=this.options,h=this.size;var l=b.g().add(this.group);c.push(l);l=b.rect().addClass("highcharts-scrollbar-button").add(l);this.chart.styledMode||l.attr({stroke:d.buttonBorderColor,"stroke-width":d.buttonBorderWidth,
fill:d.buttonBackgroundColor});l.attr(l.crisp({x:-.5,y:-.5,width:h+1,height:h+1,r:d.buttonBorderRadius},l.strokeWidth()));l=b.path(q(["M",h/2+(a?-1:1),h/2-3,"L",h/2+(a?-1:1),h/2+3,"L",h/2+(a?2:-2),h/2],d.vertical)).addClass("highcharts-scrollbar-arrow").add(c[a]);this.chart.styledMode||l.attr({fill:d.buttonArrowColor})},setRange:function(a,b){var c=this.options,d=c.vertical,h=c.minWidth,l=this.barWidth,k,p=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":
"animate";if(D(l)){a=Math.max(a,0);var n=Math.ceil(l*a);this.calculatedWidth=k=E(l*Math.min(b,1)-n);k<h&&(n=(l-h+k)*a,k=h);h=Math.floor(n+this.xOffset+this.yOffset);l=k/2-.5;this.from=a;this.to=b;d?(this.scrollbarGroup[p]({translateY:h}),this.scrollbar[p]({height:k}),this.scrollbarRifles[p]({translateY:l}),this.scrollbarTop=h,this.scrollbarLeft=0):(this.scrollbarGroup[p]({translateX:h}),this.scrollbar[p]({width:k}),this.scrollbarRifles[p]({translateX:l}),this.scrollbarLeft=h,this.scrollbarTop=0);
12>=k?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show());this.rendered=!0}},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?"chartY":"chartX",h=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(h[0]+d,h[1]+d),a.hasDragged&&t(a,"changed",{from:a.from,to:a.to,
trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&t(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=E(a.to-a.from)*a.options.step;a.updatePosition(E(a.from-
c),E(a.to-c));t(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);t(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,h=a.y+a.scrollbarTop,l=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>h||!a.options.vertical&&c.chartX>l?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);
t(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options;b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1<b&&(a=E(1-E(b-a)),b=1);0>a&&(b=E(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,u(!0,this.options,a),this.chart)},addEvents:function(){var a=
this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,h=this.mouseMoveHandler,l=this.mouseUpHandler;a=[[b[a[0]].element,"click",this.buttonToMinClick],[b[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[c,"mousedown",d],[c.ownerDocument,"mousemove",h],[c.ownerDocument,"mouseup",l]];G&&a.push([c,"touchstart",d],[c.ownerDocument,"touchmove",h],[c.ownerDocument,"touchend",l]);a.forEach(function(a){H.apply(null,
a)});this._events=a},removeEvents:function(){this._events.forEach(function(a){p.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,C(a.scrollbarButtons))}};d.Scrollbar||(H(k,"afterInit",function(){var a=this;a.options&&a.options.scrollbar&&a.options.scrollbar.enabled&&
(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=a.options.endOnTick=!1,a.scrollbar=new w(a.chart.renderer,a.options.scrollbar,a.chart),H(a.scrollbar,"changed",function(b){var c=Math.min(l(a.options.min,a.min),a.min,a.dataMin),m=Math.max(l(a.options.max,a.max),a.max,a.dataMax)-c;if(a.horiz&&!a.reversed||!a.horiz&&a.reversed){var h=c+m*this.to;c+=m*this.from}else h=c+m*(1-this.from),c+=m*(1-this.to);l(this.options.liveRedraw,d.svg&&!d.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===
b.DOMType||!D(b.DOMType)?a.setExtremes(c,h,!0,"mousemove"!==b.DOMType,b):this.setRange(this.from,this.to)}))}),H(k,"afterRender",function(){var a=Math.min(l(this.options.min,this.min),this.min,l(this.dataMin,this.min)),b=Math.max(l(this.options.max,this.max),this.max,l(this.dataMax,this.max)),c=this.scrollbar,d=this.axisTitleMargin+(this.titleOffset||0),h=this.chart.scrollbarsOffsets,k=this.options.margin||0;c&&(this.horiz?(this.opposite||(h[1]+=d),c.position(this.left,this.top+this.height+2+h[1]-
(this.opposite?k:0),this.width,this.height),this.opposite||(h[1]+=k),d=1):(this.opposite&&(h[0]+=d),c.position(this.left+this.width+2+h[0]-(this.opposite?0:k),this.top,this.width,this.height),this.opposite&&(h[0]+=k),d=0),h[d]+=c.size+c.options.margin,isNaN(a)||isNaN(b)||!D(this.min)||!D(this.max)||this.min===this.max?c.setRange(0,1):(h=(this.min-a)/(b-a),a=(this.max-a)/(b-a),this.horiz&&!this.reversed||!this.horiz&&this.reversed?c.setRange(h,a):c.setRange(1-a,1-h)))}),H(k,"afterGetOffset",function(){var a=
this.horiz?2:1,b=this.scrollbar;b&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=b.size+b.options.margin)}),d.Scrollbar=w)});K(I,"parts/Navigator.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){function w(a){this.init(a)}var D=k.defined,H=k.erase,E=k.isArray,y=k.isNumber,C=k.splat,t=d.addEvent,G=d.Axis;k=d.Chart;var u=d.color,l=d.defaultOptions,p=d.destroyObjectProperties,q=d.extend,c=d.hasTouch,a=d.isTouchDevice,b=d.merge,f=d.pick,m=d.removeEvent,h=d.Scrollbar,r=
d.Series,x=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];b=[].filter.call(b,y);if(b.length)return Math[a].apply(0,b)};var v=void 0===d.seriesTypes.areaspline?"line":"areaspline";q(l,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:u("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:v,fillOpacity:.05,
lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",
tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});d.Renderer.prototype.symbols["navigator-handle"]=function(a,b,c,d,f){a=f.width/2;b=Math.round(a/3)+.5;f=f.height;return["M",-a-1,.5,"L",a,.5,"L",a,
f+.5,"L",-a-1,f+.5,"L",-a-1,.5,"M",-b,4,"L",-b,f-3,"M",b-1,4,"L",b-1,f-3]};G.prototype.toFixedRange=function(a,b,c,d){var e=this.chart&&this.chart.fixedRange;a=f(c,this.translate(a,!0,!this.horiz));b=f(d,this.translate(b,!0,!this.horiz));c=e&&(b-a)/e;.7<c&&1.3>c&&(d?a=b-e:b=a+e);y(a)&&y(b)||(a=b=void 0);return{min:a,max:b}};w.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+
parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2;g=g%2/2;var h=this.outlineHeight,n=this.scrollbarHeight,l=this.size,m=this.left-n,k=this.top;c?(m-=f,c=k+b+g,b=k+a+g,a=["M",m+h,k-n-g,"L",m+h,c,"L",m,c,"L",m,b,"L",m+h,b,"L",m+h,k+l+n].concat(e?["M",m+h,c-f,"L",m+h,b+f]:[])):(a+=m+n-g,b+=m+n-g,k+=f,a=["M",m,k,"L",a,k,"L",
a,k+h,"L",b,k+h,"L",b,k,"L",m+l+2*n,k].concat(e?["M",a-f,k,"L",b+f,k]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height;if(c){var h=[e,e,e];var n=[g,g+a,g+b];var l=[f,f,f];var m=[a,b-a,this.size-b]}else h=[e,e+a,e+b],n=[g,g,g],l=[a,b-a,this.size-b],m=[f,f,f];this.shades.forEach(function(a,b){a[d]({x:h[b],y:n[b],width:l[b],height:m[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,f=d.renderer,h,l={cursor:d.inverted?
"ns-resize":"ew-resize"};a.navigatorGroup=h=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,e){a.shades[e]=f.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(h);d.styledMode||a.shades[e].attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}).css(1===e&&l)});a.outline=f.path().addClass("highcharts-navigator-outline").add(h);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=
d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(h);if(!d.styledMode){var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.lineWidth}).css(l)}})},update:function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();
b(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,b,c,h){var e=this.chart,g=this.scrollbarHeight,n,l=this.xAxis;var m=l.fake?e.xAxis[0]:l;var k=this.navigatorEnabled,p,r=this.rendered;var q=e.inverted;var v=e.xAxis[0].minRange,u=e.xAxis[0].options.maxRange;if(!this.hasDragged||D(c)){if(!y(a)||!y(b))if(r)c=0,h=f(l.width,m.width);else return;this.left=f(l.left,e.plotLeft+g+(q?e.plotWidth:0));this.size=p=n=f(l.len,(q?e.plotHeight:e.plotWidth)-2*g);e=q?g:n+2*g;
c=f(c,l.toPixels(a,!0));h=f(h,l.toPixels(b,!0));y(c)&&Infinity!==Math.abs(c)||(c=0,h=e);a=l.toValue(c,!0);b=l.toValue(h,!0);var x=Math.abs(d.correctFloat(b-a));x<v?this.grabbedLeft?c=l.toPixels(b-v,!0):this.grabbedRight&&(h=l.toPixels(a+v,!0)):D(u)&&x>u&&(this.grabbedLeft?c=l.toPixels(b-u,!0):this.grabbedRight&&(h=l.toPixels(a+u,!0)));this.zoomedMax=Math.min(Math.max(c,h,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,h),0),p);this.range=this.zoomedMax-
this.zoomedMin;p=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);k&&(this.navigatorGroup.attr({visibility:"visible"}),r=r&&!this.hasDragged?"animate":"attr",this.drawMasks(c,p,q,r),this.drawOutline(c,p,q,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,q,r),this.drawHandle(p,1,q,r)));this.scrollbar&&(q?(q=this.top-g,m=this.left-g+(k||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),g=n+2*g):(q=this.top+(k?this.height:-g),m=this.left-g),this.scrollbar.position(m,q,e,g),this.scrollbar.setRange(this.zoomedMin/
(n||1),this.zoomedMax/(n||1)));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,d=b.container,f=[],h,l;a.mouseMoveHandler=h=function(b){a.onMouseMove(b)};a.mouseUpHandler=l=function(b){a.onMouseUp(b)};f=a.getPartsEvents("mousedown");f.push(t(d,"mousemove",h),t(d.ownerDocument,"mouseup",l));c&&(f.push(t(d,"touchmove",h),t(d.ownerDocument,"touchend",l)),f.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=f;a.series&&a.series[0]&&f.push(t(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},
getPartsEvents:function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,g){c.push(t(e.element,a,function(a){b[d+"Mousedown"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,n=this.range,l=a.chartX;c.inverted&&(l=a.chartY,f=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=n,this.dragOffset=l-e;else{a=l-f-n/2;if(0===b)a=Math.max(0,a);else if(2===b&&
a+n>=h)if(a=h-n,this.reversedExtremes){a-=n;var m=this.getUnionExtremes().dataMin}else var k=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=n,b=d.toFixedRange(a,a+n,m,k),D(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):
(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(b){var c=this,g=c.chart,h=c.left,n=c.navigatorSize,l=c.range,m=c.dragOffset,k=g.inverted;b.touches&&0===b.touches[0].pageX||(b=g.pointer.normalize(b),g=b.chartX,k&&(h=c.top,g=b.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,g-h,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,g-h)):c.grabbedCenter&&(c.hasDragged=!0,g<m?g=m:g>n+m-l&&
(g=n+m-l),c.render(0,0,g-m,g-m+l)),c.hasDragged&&c.scrollbar&&f(c.scrollbar.options.liveRedraw,d.svg&&!a&&!this.chart.isBoosting)&&(b.DOMType=b.type,setTimeout(function(){c.onMouseUp(b)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,f=a.DOMEvent||a;if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var h=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n=this.fixedExtreme;
this.zoomedMax===this.size&&(n=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(h=this.reversedExtremes?d.dataMax:d.dataMin);c=c.toFixedRange(this.zoomedMin,this.zoomedMax,h,n);D(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f})}"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=
this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){m(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&m(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var c=a.options,d=c.navigator,
l=d.enabled,n=c.scrollbar,m=n.enabled;c=l?d.height:0;var k=m?n.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=c;this.scrollbarHeight=k;this.scrollbarEnabled=m;this.navigatorEnabled=l;this.navigatorOptions=d;this.scrollbarOptions=n;this.outlineHeight=c+k;this.opposite=f(d.opposite,!l&&a.inverted);var p=this;l=p.baseSeries;n=a.xAxis.length;m=a.yAxis.length;var r=l&&l[0]&&l[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;p.navigatorEnabled?(p.xAxis=new G(a,b({breaks:r.options.breaks,
ordinal:r.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:n,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[k,0,-k,0],width:c}:{offsets:[0,-k,0,k],height:c})),p.yAxis=new G(a,b(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:m,isInternal:!0,zoomEnabled:!1},a.inverted?{width:c}:{height:c})),l||d.series.data?p.updateNavigatorSeries(!1):0===a.series.length&&
(p.unbindRedraw=t(a,"beforeRedraw",function(){0<a.series.length&&!p.series&&(p.setBaseSeries(),p.unbindRedraw())})),p.reversedExtremes=a.inverted&&!p.xAxis.reversed||!a.inverted&&p.xAxis.reversed,p.renderElements(),p.addMouseEvents()):p.xAxis={translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),g=d.len-2*k,f=x("min",d.options.min,e.dataMin);d=x("max",d.options.max,e.dataMax)-f;return c?b*d/g+f:g*(b-f)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,
!0)},toFixedRange:G.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=p.scrollbar=new h(a.renderer,b(a.options.scrollbar,{margin:p.navigatorEnabled?0:10,vertical:a.inverted}),a),t(p.scrollbar,"changed",function(b){var c=p.size,d=c*this.to;c*=this.from;p.hasDragged=p.scrollbar.hasDragged;p.render(0,0,c,d);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType)&&setTimeout(function(){p.onMouseUp(b)})}));p.addBaseSeriesEvents();p.addChartEvents()},getUnionExtremes:function(a){var b=
this.chart.xAxis[0],c=this.xAxis,d=c.options,h=b.options,l;a&&null===b.dataMin||(l={dataMin:f(d&&d.min,x("min",h.min,b.dataMin,c.dataMin,c.min)),dataMax:f(d&&d.max,x("max",h.max,b.dataMax,c.dataMax,c.max))});return l},setBaseSeries:function(a,b){var c=this.chart,e=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?d.find(c.series,function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&
(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.fake&&this.updateNavigatorSeries(!0,b)},updateNavigatorSeries:function(a,c){var d=this,e=d.chart,f=d.baseSeries,h,n,k=d.navigatorOptions.series,p,r={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,states:{inactive:{opacity:1}}},v=d.series=(d.series||[]).filter(function(a){var b=a.baseSeries;
return 0>f.indexOf(b)?(b&&(m(b,"updatedData",d.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});f&&f.length&&f.forEach(function(a){var g=a.navigatorSeries,m=q({color:a.color,visible:a.visible},E(k)?l.navigator.series:k);g&&!1===d.navigatorOptions.adaptToUpdatedData||(r.name="Navigator "+f.length,h=a.options||{},p=h.navigatorOptions||{},n=b(h,r,m,p),m=p.data||m.data,d.hasNavigatorData=d.hasNavigatorData||!!m,n.data=m||h.data&&h.data.slice(0),g&&g.options?g.update(n,c):(a.navigatorSeries=
e.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});if(k.data&&(!f||!f.length)||E(k))d.hasNavigatorData=!1,k=C(k),k.forEach(function(a,c){r.name="Navigator "+(v.length+1);n=b(l.navigator.series,{color:e.series[c]&&!e.series[c].options.isInternal&&e.series[c].color||e.options.colors[c]||e.options.colors[0]},r,a);n.data=a.data;n.data&&(d.hasNavigatorData=!0,v.push(e.initSeries(n)))});a&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];
b[0]&&b[0].xAxis&&t(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);b.forEach(function(b){t(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});t(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&t(b,"updatedData",this.updatedDataHandler);t(b,"remove",function(){this.navigatorSeries&&(H(a.series,this.navigatorSeries),D(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),
delete this.navigatorSeries)})},this)},getBaseSeriesMin:function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var h=a.stickToMin,l=a.stickToMax,m=f(this.options.overscroll,
0),k=a.series&&a.series[0],p=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(h){var r=c;var q=r+b}l&&(q=d+m,h||(r=Math.max(q-b,a.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE))));p&&(h||l)&&y(r)&&(this.min=this.userMin=r,this.max=this.userMax=q)}a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries,c=a.getBaseSeriesMin(this.xData[0]);a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):
Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=y(this.xAxis.min)&&this.xAxis.min<=c&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(t(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)}),
t(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))},destroy:function(){this.removeEvents();this.xAxis&&(H(this.chart.xAxis,this.xAxis),H(this.chart.axes,this.xAxis));this.yAxis&&(H(this.chart.yAxis,this.yAxis),H(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});
"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){p(a)},this)}};d.Navigator||(d.Navigator=w,t(G,"zoom",function(b){var c=this.chart.options,d=c.chart.zoomType,f=c.chart.pinchType,h=c.navigator;c=c.rangeSelector;this.isXAxis&&(h&&h.enabled||c&&c.enabled)&&("y"===d?b.zoomed=!1:(!a&&"xy"===d||a&&"xy"===f)&&
this.options.range&&(d=this.previousZoom,D(b.newMin)?this.previousZoom=[this.min,this.max]:d&&(b.newMin=d[0],b.newMax=d[1],delete this.previousZoom)));void 0!==b.zoomed&&b.preventDefault()}),t(k,"beforeShowResetZoom",function(){var b=this.options,c=b.navigator,d=b.rangeSelector;if((c&&c.enabled||d&&d.enabled)&&(!a&&"x"===b.chart.zoomType||a&&"x"===b.chart.pinchType))return!1}),t(k,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=
new w(this)}),t(k,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var h=b.yAxis;var l=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-l-b.height:this.spacing[3]+l,b.top=this.plotTop+l):(b.left=this.plotLeft+l,b.top=b.navigatorOptions.top||this.chartHeight-b.height-l-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&c.enabled&&!c.floating?a.legendHeight+
f(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&h&&(this.inverted?d.options.left=h.options.left=b.left:d.options.top=h.options.top=b.top,d.setAxisSize(),h.setAxisSize())}}),t(k,"update",function(a){var c=a.options.navigator||{},d=a.options.scrollbar||{};this.navigator||this.scroller||!c.enabled&&!d.enabled||(b(!0,this.options.navigator,c),b(!0,this.options.scrollbar,d),delete a.options.navigator,delete a.options.scrollbar)}),t(k,"afterUpdate",function(a){this.navigator||this.scroller||
!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new w(this),f(a.redraw,!0)&&this.redraw(a.animation))}),t(k,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),t(r,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),k.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}))});K(I,"parts/OrdinalAxis.js",
[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined;k=d.addEvent;var D=d.Axis,H=d.Chart,E=d.css,y=d.extend,C=d.noop,t=d.pick,G=d.timeUnits;k(d.Series,"updatedData",function(){var d=this.xAxis;d&&d.options.ordinal&&delete d.ordinalIndex});D.prototype.getTimeTicks=function(d,l,k,q,c,a,b){var f=0,m,h,p={},u=[],v=-Number.MAX_VALUE,n=this.options.tickPixelInterval,e=this.chart.time,g=[];if(!this.options.ordinal&&!this.options.breaks||!c||3>c.length||void 0===l)return e.getTimeTicks.apply(e,
arguments);var t=c.length;for(m=0;m<t;m++){var A=m&&c[m-1]>k;c[m]<l&&(f=m);if(m===t-1||c[m+1]-c[m]>5*a||A){if(c[m]>v){for(h=e.getTimeTicks(d,c[f],c[m],q);h.length&&h[0]<=v;)h.shift();h.length&&(v=h[h.length-1]);g.push(u.length);u=u.concat(h)}f=m+1}if(A)break}h=h.info;if(b&&h.unitRange<=G.hour){m=u.length-1;for(f=1;f<m;f++)if(e.dateFormat("%d",u[f])!==e.dateFormat("%d",u[f-1])){p[u[f]]="day";var z=!0}z&&(p[u[0]]="day");h.higherRanks=p}h.segmentStarts=g;u.info=h;if(b&&w(n)){f=g=u.length;z=[];var B;
for(e=[];f--;)m=this.translate(u[f]),B&&(e[f]=B-m),z[f]=B=m;e.sort();e=e[Math.floor(e.length/2)];e<.6*n&&(e=null);f=u[g-1]>k?g-1:g;for(B=void 0;f--;)m=z[f],g=Math.abs(B-m),B&&g<.8*n&&(null===e||g<.8*e)?(p[u[f]]&&!p[u[f+1]]?(g=f+1,B=m):g=f,u.splice(g,1)):B=m}return u};y(D.prototype,{beforeSetTickPositions:function(){var d=[],l,k=!1,q=this.getExtremes(),c=q.min,a=q.max,b,f=this.isXAxis&&!!this.options.breaks;q=this.options.ordinal;var m=Number.MAX_VALUE,h=this.chart.options.chart.ignoreHiddenSeries,
r;if(q||f){this.series.forEach(function(a,b){l=[];if(!(h&&!1===a.visible||!1===a.takeOrdinalPosition&&!f)&&(d=d.concat(a.processedXData),x=d.length,d.sort(function(a,b){return a-b}),m=Math.min(m,t(a.closestPointRange,m)),x)){for(b=0;b<x-1;)d[b]!==d[b+1]&&l.push(d[b+1]),b++;l[0]!==d[0]&&l.unshift(d[0]);d=l}a.isSeriesBoosting&&(r=!0)});r&&(d.length=0);var x=d.length;if(2<x){var v=d[1]-d[0];for(b=x-1;b--&&!k;)d[b+1]-d[b]!==v&&(k=!0);!this.options.keepOrdinalPadding&&(d[0]-c>v||a-d[d.length-1]>v)&&(k=
!0)}else this.options.overscroll&&(2===x?m=d[1]-d[0]:1===x?(m=this.options.overscroll,d=[d[0],d[0]+m]):m=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=m,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,v=this.ordinal2lin(Math.max(c,d[0]),!0),b=Math.max(this.ordinal2lin(Math.min(a,d[d.length-1]),!0),1),this.ordinalSlope=a=(a-c)/(b-v),this.ordinalOffset=c-v*a):(this.overscrollPointsRange=t(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=
this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=q&&k;this.groupIntervalFactor=null},val2lin:function(d,l){var k=this.ordinalPositions;if(k){var q=k.length,c;for(c=q;c--;)if(k[c]===d){var a=c;break}for(c=q-1;c--;)if(d>k[c]||0===c){d=(d-k[c])/(k[c+1]-k[c]);a=c+d;break}l=l?a:this.ordinalSlope*(a||0)+this.ordinalOffset}else l=d;return l},lin2val:function(d,l){var k=this.ordinalPositions;if(k){var q=this.ordinalSlope,c=this.ordinalOffset,a=k.length-1;if(l)if(0>d)d=k[0];else if(d>a)d=k[a];else{a=
Math.floor(d);var b=d-a}else for(;a--;)if(l=q*a+c,d>=l){q=q*(a+1)+c;b=(d-l)/(q-l);break}return void 0!==b&&void 0!==k[a]?k[a]+(b?b*(k[a+1]-k[a]):0):d}return d},getExtendedPositions:function(){var d=this,l=d.chart,k=d.series[0].currentDataGrouping,q=d.ordinalIndex,c=k?k.count+k.unitName:"raw",a=d.options.overscroll,b=d.getExtremes(),f;q||(q=d.ordinalIndex={});if(!q[c]){var m={series:[],chart:l,getExtremes:function(){return{min:b.dataMin,max:b.dataMax+a}},options:{ordinal:!0},val2lin:D.prototype.val2lin,
ordinal2lin:D.prototype.ordinal2lin};d.series.forEach(function(a){f={xAxis:m,xData:a.xData.slice(),chart:l,destroyGroupedData:C};f.xData=f.xData.concat(d.getOverscrollPositions());f.options={dataGrouping:k?{enabled:!0,forced:!0,approximation:"open",units:[[k.unitName,[k.count]]]}:{enabled:!1}};a.processData.apply(f);m.series.push(f)});d.beforeSetTickPositions.apply(m);q[c]=m.ordinalPositions}return q[c]},getOverscrollPositions:function(){var d=this.options.overscroll,l=this.overscrollPointsRange,
k=[],q=this.dataMax;if(w(l))for(k.push(q);q<=this.dataMax+d;)q+=l,k.push(q);return k},getGroupIntervalFactor:function(d,l,k){k=k.processedXData;var p=k.length,c=[];var a=this.groupIntervalFactor;if(!a){for(a=0;a<p-1;a++)c[a]=k[a+1]-k[a];c.sort(function(a,c){return a-c});c=c[Math.floor(p/2)];d=Math.max(d,k[0]);l=Math.min(l,k[p-1]);this.groupIntervalFactor=a=p*c/(l-d)}return a},postProcessTickInterval:function(d){var l=this.ordinalSlope;return l?this.options.breaks?this.closestPointRange||d:d/(l/this.closestPointRange):
d}});D.prototype.ordinal2lin=D.prototype.val2lin;k(H,"pan",function(d){var l=this.xAxis[0],k=l.options.overscroll,q=d.originalEvent.chartX,c=!1;if(l.options.ordinal&&l.series.length){var a=this.mouseDownX,b=l.getExtremes(),f=b.dataMax,m=b.min,h=b.max,r=this.hoverPoints,x=l.closestPointRange||l.overscrollPointsRange;a=(a-q)/(l.translationSlope*(l.ordinalSlope||x));var v={ordinalPositions:l.getExtendedPositions()};x=l.lin2val;var n=l.val2lin;if(!v.ordinalPositions)c=!0;else if(1<Math.abs(a)){r&&r.forEach(function(a){a.setState()});
if(0>a){r=v;var e=l.ordinalPositions?l:v}else r=l.ordinalPositions?l:v,e=v;v=e.ordinalPositions;f>v[v.length-1]&&v.push(f);this.fixedRange=h-m;a=l.toFixedRange(null,null,x.apply(r,[n.apply(r,[m,!0])+a,!0]),x.apply(e,[n.apply(e,[h,!0])+a,!0]));a.min>=Math.min(b.dataMin,m)&&a.max<=Math.max(f,h)+k&&l.setExtremes(a.min,a.max,!0,!1,{trigger:"pan"});this.mouseDownX=q;E(this.container,{cursor:"move"})}}else c=!0;c?k&&(l.max=l.dataMax+k):d.preventDefault()});k(D,"foundExtremes",function(){this.isXAxis&&w(this.options.overscroll)&&
this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&w(this.userMin)&&(this.min+=this.options.overscroll))});k(D,"afterSetScale",function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)})});K(I,"modules/broken-axis.src.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=
k.isArray;k=d.addEvent;var D=d.pick,H=d.extend,E=d.find,y=d.fireEvent,C=d.Axis,t=d.Series,G=function(d,l){return E(l,function(l){return l.from<d&&d<l.to})};H(C.prototype,{isInBreak:function(d,l){var k=d.repeat||Infinity,q=d.from,c=d.to-d.from;l=l>=q?(l-q)%k:k-(q-l)%k;return d.inclusive?l<=c:l<c&&0!==l},isInAnyBreak:function(d,l){var k=this.options.breaks,q=k&&k.length,c;if(q){for(;q--;)if(this.isInBreak(k[q],d)){var a=!0;c||(c=D(k[q].showPoints,!this.isXAxis))}var b=a&&l?a&&!c:a}return b}});k(C,"afterInit",
function(){"function"===typeof this.setBreaks&&this.setBreaks(this.options.breaks,!1)});k(C,"afterSetTickPositions",function(){if(this.isBroken){var d=this.tickPositions,l=this.tickPositions.info,k=[],q;for(q=0;q<d.length;q++)this.isInAnyBreak(d[q])||k.push(d[q]);this.tickPositions=k;this.tickPositions.info=l}});k(C,"afterSetOptions",function(){this.isBroken&&(this.options.ordinal=!1)});C.prototype.setBreaks=function(d,l){function k(a){var b=a,d;for(d=0;d<c.breakArray.length;d++){var h=c.breakArray[d];
if(h.to<=a)b-=h.len;else if(h.from>=a)break;else if(c.isInBreak(h,a)){b-=a-h.from;break}}return b}function q(a){var b;for(b=0;b<c.breakArray.length;b++){var d=c.breakArray[b];if(d.from>=a)break;else d.to<a?a+=d.len:c.isInBreak(d,a)&&(a+=d.len)}return a}var c=this,a=w(d)&&!!d.length;c.isDirty=c.isBroken!==a;c.isBroken=a;c.options.breaks=c.userOptions.breaks=d;c.forceRedraw=!0;a||c.val2lin!==k||(delete c.val2lin,delete c.lin2val);a&&(c.userOptions.ordinal=!1,c.val2lin=k,c.lin2val=q,c.setExtremes=function(a,
c,d,h,l){if(this.isBroken){for(var b,f=this.options.breaks;b=G(a,f);)a=b.to;for(;b=G(c,f);)c=b.from;c<a&&(c=a)}C.prototype.setExtremes.call(this,a,c,d,h,l)},c.setAxisTranslation=function(a){C.prototype.setAxisTranslation.call(this,a);this.unitLength=null;if(this.isBroken){a=c.options.breaks;var b=[],d=[],h=0,l,k=c.userMin||c.min,p=c.userMax||c.max,n=D(c.pointRangePadding,0),e;a.forEach(function(a){l=a.repeat||Infinity;c.isInBreak(a,k)&&(k+=a.to%l-k%l);c.isInBreak(a,p)&&(p-=p%l-a.from%l)});a.forEach(function(a){q=
a.from;for(l=a.repeat||Infinity;q-l>k;)q-=l;for(;q<k;)q+=l;for(e=q;e<p;e+=l)b.push({value:e,move:"in"}),b.push({value:e+(a.to-a.from),move:"out",size:a.breakSize})});b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});var g=0;var q=k;b.forEach(function(a){g+="in"===a.move?1:-1;1===g&&"in"===a.move&&(q=a.value);0===g&&(d.push({from:q,to:a.value,len:a.value-q-(a.size||0)}),h+=a.value-q-(a.size||0))});c.breakArray=d;c.unitLength=p-k-h+n;y(c,"afterBreaks");
c.staticScale?c.transA=c.staticScale:c.unitLength&&(c.transA*=(p-c.min+n)/c.unitLength);n&&(c.minPixelPadding=c.transA*c.minPointOffset);c.min=k;c.max=p}});D(l,!0)&&this.chart.redraw()};k(t,"afterGeneratePoints",function(){var d=this.xAxis,l=this.yAxis,k=this.points,q=k.length,c=this.options.connectNulls;if(d&&l&&(d.options.breaks||l.options.breaks))for(;q--;){var a=k[q];var b=null===a.y&&!1===c;b||!d.isInAnyBreak(a.x,!0)&&!l.isInAnyBreak(a.y,!0)||(k.splice(q,1),this.data[q]&&this.data[q].destroyElements())}});
k(t,"afterRender",function(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,D(this.pointArrayMap,["y"]))});d.Series.prototype.drawBreaks=function(d,l){var k=this,q=k.points,c,a,b,f;d&&l.forEach(function(l){c=d.breakArray||[];a=d.isXAxis?d.min:D(k.options.threshold,d.min);q.forEach(function(h){f=D(h["stack"+l.toUpperCase()],h[l]);c.forEach(function(c){b=!1;if(a<c.from&&f>c.to||a>c.from&&f<c.from)b="pointBreak";else if(a<c.from&&f>c.from&&f<c.to||a>c.from&&f>c.to&&f<c.from)b="pointInBreak";
b&&y(d,b,{point:h,brk:c})})})})};d.Series.prototype.gappedPath=function(){var k=this.currentDataGrouping,l=k&&k.gapSize;k=this.options.gapSize;var p=this.points.slice(),q=p.length-1,c=this.yAxis;if(k&&0<q)for("value"!==this.options.gapUnit&&(k*=this.basePointRange),l&&l>k&&l>=this.basePointRange&&(k=l);q--;)p[q+1].x-p[q].x>k&&(l=(p[q].x+p[q+1].x)/2,p.splice(q+1,0,{isNull:!0,x:l}),this.options.stacking&&(l=c.stacks[this.stackKey][l]=new d.StackItem(c,c.options.stackLabels,!1,l,this.stack),l.total=
0));return this.getGraphPath(p)}});K(I,"masters/modules/broken-axis.src.js",[],function(){});K(I,"parts/DataGrouping.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber;k=d.addEvent;var H=d.arrayMax,E=d.arrayMin,y=d.Axis,C=d.correctFloat,t=d.defaultPlotOptions,G=d.extend,u=d.format,l=d.merge,p=d.pick,q=d.Point,c=d.Series,a=d.Tooltip,b=d.approximations={sum:function(a){var b=a.length;if(!b&&a.hasNulls)var c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var c=
a.length;a=b.sum(a);D(a)&&c&&(a=C(a/c));return a},averages:function(){var a=[];[].forEach.call(arguments,function(c){a.push(b.average(c))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?H(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,c,d,e){a=b.open(a);c=b.high(c);d=b.low(d);e=b.close(e);if(D(a)||
D(c)||D(d)||D(e))return[a,c,d,e]},range:function(a,c){a=b.low(a);c=b.high(c);if(D(a)||D(c))return[a,c];if(null===a&&null===c)return null}},f=function(a,c,d,e){var g=this,h=g.data,f=g.options&&g.options.data,k=[],m=[],n=[],p=a.length,r=!!c,q=[],v=g.pointArrayMap,A=v&&v.length,x=["x"].concat(v||["y"]),t=0,z=0,u;e="function"===typeof e?e:b[e]?b[e]:b[g.getDGApproximation&&g.getDGApproximation()||"average"];A?v.forEach(function(){q.push([])}):q.push([]);var F=A||1;for(u=0;u<=p&&!(a[u]>=d[0]);u++);for(u;u<=
p;u++){for(;void 0!==d[t+1]&&a[u]>=d[t+1]||u===p;){var y=d[t];g.dataGroupInfo={start:g.cropStart+z,length:q[0].length};var C=e.apply(g,q);g.pointClass&&!w(g.dataGroupInfo.options)&&(g.dataGroupInfo.options=l(g.pointClass.prototype.optionsToObject.call({series:g},g.options.data[g.cropStart+z])),x.forEach(function(a){delete g.dataGroupInfo.options[a]}));void 0!==C&&(k.push(y),m.push(C),n.push(g.dataGroupInfo));z=u;for(y=0;y<F;y++)q[y].length=0,q[y].hasNulls=!1;t+=1;if(u===p)break}if(u===p)break;if(v)for(y=
g.cropStart+u,C=h&&h[y]||g.pointClass.prototype.applyOptions.apply({series:g},[f[y]]),y=0;y<A;y++){var E=C[v[y]];D(E)?q[y].push(E):null===E&&(q[y].hasNulls=!0)}else y=r?c[u]:null,D(y)?q[0].push(y):null===y&&(q[0].hasNulls=!0)}return{groupedXData:k,groupedYData:m,groupMap:n}},m={approximations:b,groupData:f},h=c.prototype,r=h.processData,x=h.generatePoints,v={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S",
"%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},n={line:{},spline:{},area:{},areaspline:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5}},e=d.defaultDataGroupingUnits=
[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]];h.getDGApproximation=function(){return d.seriesTypes.arearange&&this instanceof d.seriesTypes.arearange?"range":d.seriesTypes.ohlc&&this instanceof d.seriesTypes.ohlc?"ohlc":d.seriesTypes.column&&this instanceof d.seriesTypes.column?"sum":"average"};h.groupData=f;h.processData=function(){var a=this.chart,b=this.options.dataGrouping,
c=!1!==this.allowDG&&b&&p(b.enabled,a.options.isStock),d=this.visible||!a.options.chart.ignoreHiddenSeries,f,l=this.currentDataGrouping,k=!1;this.forceCrop=c;this.groupPixelWidth=null;this.hasProcessed=!0;c&&!this.requireSorting&&(this.requireSorting=k=!0);c=!1===r.apply(this,arguments)||!c;k&&(this.requireSorting=!1);if(!c){this.destroyGroupedData();c=b.groupAll?this.xData:this.processedXData;var m=b.groupAll?this.yData:this.processedYData,n=a.plotSizeX;a=this.xAxis;var q=a.options.ordinal,v=this.groupPixelWidth=
a.getGroupPixelWidth&&a.getGroupPixelWidth();if(v){this.isDirty=f=!0;this.points=null;k=a.getExtremes();var x=k.min;k=k.max;q=q&&a.getGroupIntervalFactor(x,k,this)||1;v=v*(k-x)/n*q;n=a.getTimeTicks(a.normalizeTimeTickInterval(v,b.units||e),Math.min(x,c[0]),Math.max(k,c[c.length-1]),a.options.startOfWeek,c,this.closestPointRange);m=h.groupData.apply(this,[c,m,n,b.approximation]);c=m.groupedXData;q=m.groupedYData;var t=0;if(b.smoothed&&c.length){var u=c.length-1;for(c[u]=Math.min(c[u],k);u--&&0<u;)c[u]+=
v/2;c[0]=Math.max(c[0],x)}for(u=1;u<n.length;u++)n.info.segmentStarts&&-1!==n.info.segmentStarts.indexOf(u)||(t=Math.max(n[u]-n[u-1],t));x=n.info;x.gapSize=t;this.closestPointRange=n.info.totalRange;this.groupMap=m.groupMap;if(w(c[0])&&c[0]<a.min&&d){if(!w(a.options.min)&&a.min<=a.dataMin||a.min===a.dataMin)a.min=c[0];a.dataMin=c[0]}b.groupAll&&(b=this.cropData(c,q,a.min,a.max,1),c=b.xData,q=b.yData);this.processedXData=c;this.processedYData=q}else this.groupMap=null;this.hasGroupedData=f;this.currentDataGrouping=
x;this.preventGraphAnimation=(l&&l.totalRange)!==(x&&x.totalRange)}};h.destroyGroupedData=function(){var a=this.groupedData;(a||[]).forEach(function(b,c){b&&(a[c]=b.destroy?b.destroy():null)});this.groupedData=null};h.generatePoints=function(){x.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};k(q,"update",function(){if(this.dataGroup)return d.error(24,!1,this.series.chart),!1});k(a,"headerFormatter",function(a){var b=this.chart.time,c=a.labelConfig,d=c.series,
e=d.tooltipOptions,g=d.options.dataGrouping,h=e.xDateFormat,f=d.xAxis,l=e[(a.isFooter?"footer":"header")+"Format"];if(f&&"datetime"===f.options.type&&g&&D(c.key)){var k=d.currentDataGrouping;g=g.dateTimeLabelFormats||v.dateTimeLabelFormats;if(k)if(e=g[k.unitName],1===k.count)h=e[0];else{h=e[1];var m=e[2]}else!h&&g&&(h=this.getXDateFormat(c,e,f));h=b.dateFormat(h,c.key);m&&(h+=b.dateFormat(m,c.key+k.totalRange-1));d.chart.styledMode&&(l=this.styledModeFormat(l));a.text=u(l,{point:G(c.point,{key:h}),
series:d},b);a.preventDefault()}});k(c,"destroy",h.destroyGroupedData);k(c,"afterSetOptions",function(a){a=a.options;var b=this.type,c=this.chart.options.plotOptions,d=t[b].dataGrouping,e=this.useCommonDataGrouping&&v;if(n[b]||e)d||(d=l(v,n[b])),a.dataGrouping=l(e,d,c.series&&c.series.dataGrouping,c[b].dataGrouping,this.userOptions.dataGrouping)});k(y,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});y.prototype.getGroupPixelWidth=function(){var a=this.series,b=a.length,
c,d=0,e=!1,h;for(c=b;c--;)(h=a[c].options.dataGrouping)&&(d=Math.max(d,p(h.groupPixelWidth,v.groupPixelWidth)));for(c=b;c--;)(h=a[c].options.dataGrouping)&&a[c].hasProcessed&&(b=(a[c].processedXData||a[c].data).length,a[c].groupPixelWidth||b>this.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};y.prototype.setDataGrouping=function(a,b){var c;b=p(b,!0);a||(a={forced:!1,units:null});if(this instanceof y)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=
a},!1);this.ordinalSlope=null;b&&this.chart.redraw()};d.dataGrouping=m;"";return m});K(I,"parts/OHLCSeries.js",[I["parts/Globals.js"]],function(d){var k=d.Point,w=d.seriesType,D=d.seriesTypes;w("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'},threshold:null,states:{hover:{lineWidth:3}},
stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(d){return[d.open,d.high,d.low,d.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){D.column.prototype.init.apply(this,arguments);this.options.stacking=!1},pointAttribs:function(d,k){k=D.column.prototype.pointAttribs.call(this,d,k);var y=this.options;delete k.fill;!d.options.color&&y.upColor&&d.open<d.close&&(k.stroke=y.upColor);return k},translate:function(){var d=
this,k=d.yAxis,y=!!d.modifyValue,w=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];D.column.prototype.translate.apply(d);d.points.forEach(function(t){[t.open,t.high,t.low,t.close,t.low].forEach(function(C,u){null!==C&&(y&&(C=d.modifyValue(C)),t[w[u]]=k.toPixels(C,!0))});t.tooltipPos[1]=t.plotHigh+k.pos-d.chart.plotTop})},drawPoints:function(){var d=this,k=d.chart;d.points.forEach(function(y){var w=y.graphic,t=!w;if(void 0!==y.plotY){w||(y.graphic=w=k.renderer.path().add(d.group));k.styledMode||
w.attr(d.pointAttribs(y,y.selected&&"select"));var E=w.strokeWidth()%2/2;var u=Math.round(y.plotX)-E;var l=Math.round(y.shapeArgs.width/2);var p=["M",u,Math.round(y.yBottom),"L",u,Math.round(y.plotHigh)];if(null!==y.open){var q=Math.round(y.plotOpen)+E;p.push("M",u,q,"L",u-l,q)}null!==y.close&&(q=Math.round(y.plotClose)+E,p.push("M",u,q,"L",u+l,q));w[t?"attr":"animate"]({d:p}).addClass(y.getClassName(),!0)}})},animate:null},{getClassName:function(){return k.prototype.getClassName.call(this)+(this.open<
this.close?" highcharts-point-up":" highcharts-point-down")}});""});K(I,"parts/CandlestickSeries.js",[I["parts/Globals.js"]],function(d){var k=d.defaultPlotOptions,w=d.merge,D=d.seriesType,H=d.seriesTypes;D("candlestick","ohlc",w(k.column,{states:{hover:{lineWidth:2}},tooltip:k.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}),{pointAttribs:function(d,k){var w=H.column.prototype.pointAttribs.call(this,d,k),t=this.options,y=d.open<d.close,u=t.lineColor||
this.color;w["stroke-width"]=t.lineWidth;w.fill=d.options.color||(y?t.upColor||this.color:this.color);w.stroke=d.options.lineColor||(y?t.upLineColor||u:u);k&&(d=t.states[k],w.fill=d.color||w.fill,w.stroke=d.lineColor||w.stroke,w["stroke-width"]=d.lineWidth||w["stroke-width"]);return w},drawPoints:function(){var d=this,k=d.chart,w=d.yAxis.reversed;d.points.forEach(function(t){var y=t.graphic,u=!y;if(void 0!==t.plotY){y||(t.graphic=y=k.renderer.path().add(d.group));d.chart.styledMode||y.attr(d.pointAttribs(t,
t.selected&&"select")).shadow(d.options.shadow);var l=y.strokeWidth()%2/2;var p=Math.round(t.plotX)-l;var q=t.plotOpen;var c=t.plotClose;var a=Math.min(q,c);q=Math.max(q,c);var b=Math.round(t.shapeArgs.width/2);c=w?q!==t.yBottom:Math.round(a)!==Math.round(t.plotHigh);var f=w?Math.round(a)!==Math.round(t.plotHigh):q!==t.yBottom;a=Math.round(a)+l;q=Math.round(q)+l;l=[];l.push("M",p-b,q,"L",p-b,a,"L",p+b,a,"L",p+b,q,"Z","M",p,a,"L",p,c?Math.round(w?t.yBottom:t.plotHigh):a,"M",p,q,"L",p,f?Math.round(w?
t.plotHigh:t.yBottom):q);y[u?"attr":"animate"]({d:l}).addClass(t.getClassName(),!0)}})}});""});K(I,"mixins/on-series.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=d.seriesTypes,H=d.stableSort;return{getPlotBox:function(){return d.Series.prototype.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){D.column.prototype.translate.apply(this);var d=this,k=d.options,C=d.chart,t=d.points,G=t.length-1,u,l=k.onSeries;
l=l&&C.get(l);k=k.onKey||"y";var p=l&&l.options.step,q=l&&l.points,c=q&&q.length,a=C.inverted,b=d.xAxis,f=d.yAxis,m=0,h;if(l&&l.visible&&c){m=(l.pointXOffset||0)+(l.barW||0)/2;C=l.currentDataGrouping;var r=q[c-1].x+(C?C.totalRange:0);H(t,function(a,b){return a.x-b.x});for(k="plot"+k[0].toUpperCase()+k.substr(1);c--&&t[G];){var x=q[c];C=t[G];C.y=x.y;if(x.x<=C.x&&void 0!==x[k]){if(C.x<=r&&(C.plotY=x[k],x.x<C.x&&!p&&(h=q[c+1])&&void 0!==h[k])){var v=(C.x-x.x)/(h.x-x.x);C.plotY+=v*(h[k]-x[k]);C.y+=v*
(h.y-x.y)}G--;c++;if(0>G)break}}}t.forEach(function(c,e){c.plotX+=m;if(void 0===c.plotY||a)0<=c.plotX&&c.plotX<=b.len?a?(c.plotY=b.translate(c.x,0,1,0,1),c.plotX=w(c.y)?f.translate(c.y,0,0,0,1):0):c.plotY=(b.opposite?0:d.yAxis.len)+b.offset:c.shapeArgs={};if((u=t[e-1])&&u.plotX===c.plotX){void 0===u.stackIndex&&(u.stackIndex=0);var g=u.stackIndex+1}c.stackIndex=g});this.onSeries=l}}});K(I,"parts/FlagsSeries.js",[I["parts/Globals.js"],I["parts/Utilities.js"],I["mixins/on-series.js"]],function(d,k,
w){function D(a){c[a+"pin"]=function(b,d,k,h,l){var f=l&&l.anchorX;l=l&&l.anchorY;"circle"===a&&h>k&&(b-=Math.round((h-k)/2),k=h);var m=c[a](b,d,k,h);f&&l&&(m.push("M","circle"===a?b+k/2:m[1]+m[4]/2,d>l?d:d+h,"L",f,l),m=m.concat(c.circle(f-1,l-1,2,2)));return m}}var H=k.defined,E=k.isNumber,y=k.objectEach,C=d.addEvent,t=d.merge;k=d.noop;var G=d.Renderer,u=d.Series,l=d.seriesType,p=d.TrackerMixin,q=d.VMLRenderer,c=d.SVGRenderer.prototype.symbols;l("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",
stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:u.prototype.init,pointAttribs:function(a,b){var c=this.options,d=a&&a.color||this.color,h=c.lineColor,k=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;b&&
(a=c.states[b].fillColor,h=c.states[b].lineColor,k=c.states[b].lineWidth);return{fill:a||d,stroke:h||d,"stroke-width":k||c.lineWidth||0}},translate:w.translate,getPlotBox:w.getPlotBox,drawPoints:function(){var a=this.points,b=this.chart,c=b.renderer,k=b.inverted,h=this.options,l=h.y,p,q=this.yAxis,n={},e=[];for(p=a.length;p--;){var g=a[p];var u=(k?g.plotY:g.plotX)>this.xAxis.len;var A=g.plotX;var z=g.stackIndex;var w=g.options.shape||h.shape;var C=g.plotY;void 0!==C&&(C=g.plotY+l-(void 0!==z&&z*h.stackDistance));
g.anchorX=z?void 0:g.plotX;var D=z?void 0:g.plotY;var E="flag"!==w;z=g.graphic;void 0!==C&&0<=A&&!u?(z||(z=g.graphic=c.label("",null,null,w,null,null,h.useHTML),b.styledMode||z.attr(this.pointAttribs(g)).css(t(h.style,g.style)),z.attr({align:E?"center":"left",width:h.width,height:h.height,"text-align":h.textAlign}).addClass("highcharts-point").add(this.markerGroup),g.graphic.div&&(g.graphic.div.point=g),b.styledMode||z.shadow(h.shadow),z.isNew=!0),0<A&&(A-=z.strokeWidth()%2),w={y:C,anchorY:D},h.allowOverlapX&&
(w.x=A,w.anchorX=g.anchorX),z.attr({text:g.options.title||h.title||"A"})[z.isNew?"attr":"animate"](w),h.allowOverlapX||(n[g.plotX]?n[g.plotX].size=Math.max(n[g.plotX].size,z.width):n[g.plotX]={align:E?.5:0,size:z.width,target:A,anchorX:A}),g.tooltipPos=[A,C+q.pos-b.plotTop]):z&&(g.graphic=z.destroy())}h.allowOverlapX||(y(n,function(a){a.plotX=a.anchorX;e.push(a)}),d.distribute(e,k?q.len:this.xAxis.len,100),a.forEach(function(a){var b=a.graphic&&n[a.plotX];b&&(a.graphic[a.graphic.isNew?"attr":"animate"]({x:b.pos+
b.align*b.size,anchorX:a.anchorX}),H(b.pos)?a.graphic.isNew=!1:(a.graphic.attr({x:-9999,anchorX:-9999}),a.graphic.isNew=!0))}));h.useHTML&&d.wrap(this.markerGroup,"on",function(a){return d.SVGElement.prototype.on.apply(a.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},drawTracker:function(){var a=this.points;p.drawTrackerPoint.apply(this);a.forEach(function(b){var c=b.graphic;c&&C(c.element,"mouseover",function(){0<b.stackIndex&&!b.raised&&(b._y=c.y,c.attr({y:b._y-8}),b.raised=
!0);a.forEach(function(a){a!==b&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})})})},animate:function(a){a?this.setClip():this.animate=null},setClip:function(){u.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup.clip(this.chart[this.sharedClipKey])},buildKDTree:k,invertGroups:k},{isValid:function(){return E(this.y)||void 0===this.y}});c.flag=function(a,b,d,k,h){var f=h&&h.anchorX||a;h=h&&h.anchorY||b;return c.circle(f-1,h-1,2,2).concat(["M",
f,h,"L",a,b+k,a,b,a+d,b,a+d,b+k,a,b+k,"Z"])};D("circle");D("square");G===q&&["circlepin","flag","squarepin"].forEach(function(a){q.prototype.symbols[a]=c[a]});""});K(I,"parts/RangeSelector.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){function w(a){this.init(a)}var D=k.defined,H=k.isNumber,E=k.objectEach,y=k.pInt,C=k.splat,t=d.addEvent,G=d.Axis;k=d.Chart;var u=d.css,l=d.createElement,p=d.defaultOptions,q=d.destroyObjectProperties,c=d.discardElement,a=d.extend,b=d.fireEvent,f=d.merge,
m=d.pick;a(p,{rangeSelector:{verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}});p.lang=f(p.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});w.prototype={clickButton:function(a,b){var c=this.chart,d=this.buttonOptions[a],h=c.xAxis[0],e=c.scroller&&c.scroller.getUnionExtremes()||h||{},g=e.dataMin,f=e.dataMax,
k=h&&Math.round(Math.min(h.max,m(f,h.max))),l=d.type;e=d._range;var p,q=d.dataGrouping;if(null!==g&&null!==f){c.fixedRange=e;q&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(h||{chart:this.chart},q,!1),this.frozenStates=d.preserveDataGrouping);if("month"===l||"year"===l)if(h){l={range:d,max:k,chart:c,dataMin:g,dataMax:f};var r=h.minFromRange.call(l);H(l.newMax)&&(k=l.newMax)}else e=d;else if(e)r=Math.max(k-e,g),k=Math.min(r+e,f);else if("ytd"===l)if(h)void 0===f&&(g=Number.MAX_VALUE,
f=Number.MIN_VALUE,c.series.forEach(function(a){a=a.xData;g=Math.min(a[0],g);f=Math.max(a[a.length-1],f)}),b=!1),k=this.getYTDExtremes(f,g,c.time.useUTC),r=p=k.min,k=k.max;else{this.deferredYTDClick=a;return}else"all"===l&&h&&(r=g,k=f);r+=d._offsetMin;k+=d._offsetMax;this.setSelected(a);if(h)h.setExtremes(r,k,m(b,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:d});else{var u=C(c.options.xAxis)[0];var w=u.range;u.range=e;var y=u.min;u.min=p;t(c,"load",function(){u.range=w;u.min=y})}}},setSelected:function(a){this.selected=
this.options.selected=a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,d=a.options.rangeSelector,h=d.buttons||[].concat(c.defaultButtons),f=d.selected,e=function(){var a=c.minInput,d=c.maxInput;a&&a.blur&&b(a,"blur");d&&d.blur&&b(d,"blur")};c.chart=a;c.options=d;c.buttons=[];c.buttonOptions=h;this.unMouseDown=t(a.container,
"mousedown",e);this.unResize=t(a,"resize",e);h.forEach(c.computeButtonRange);void 0!==f&&h[f]&&this.clickButton(f,!1);t(a,"load",function(){a.xAxis&&a.xAxis[0]&&t(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&c.forcedDataGrouping&&!c.frozenStates&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this,b=this.chart,c=b.xAxis[0],d=Math.round(c.max-c.min),f=!c.hasVisibleSeries,e=b.scroller&&b.scroller.getUnionExtremes()||
c,g=e.dataMin,k=e.dataMax;b=a.getYTDExtremes(k,g,b.time.useUTC);var l=b.min,m=b.max,p=a.selected,q=H(p),t=a.options.allButtonsEnabled,u=a.buttons;a.buttonOptions.forEach(function(b,e){var h=b._range,n=b.type,r=b.count||1,v=u[e],x=0,A=b._offsetMax-b._offsetMin;b=e===p;var z=h>k-g,w=h<c.minRange,y=!1,B=!1;h=h===d;("month"===n||"year"===n)&&d+36E5>=864E5*{month:28,year:365}[n]*r-A&&d-36E5<=864E5*{month:31,year:366}[n]*r+A?h=!0:"ytd"===n?(h=m-l+A===d,y=!b):"all"===n&&(h=c.max-c.min>=k-g,B=!b&&q&&h);n=
!t&&(z||w||B||f);r=b&&h||h&&!q&&!y||b&&a.frozenStates;n?x=3:r&&(q=!0,x=2);v.state!==x&&(v.setState(x),0===x&&p===e&&a.setSelected(null))})},computeButtonRange:function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=m(a.offsetMin,0);a._offsetMax=m(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,
d=this.chart.time,h=this[a+"Input"];D(b)&&(h.previousValue=h.HCTime,h.HCTime=b);h.value=d.dateFormat(c.inputEditDateFormat||"%Y-%m-%d",h.HCTime);this[a+"DateBox"].attr({text:d.dateFormat(c.inputDateFormat||"%b %e, %Y",h.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"];u(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){u(this[a+"Input"],{border:0,width:"1px",height:"1px"});
this.setInputValue(a)},drawInput:function(b){function c(){var a=z.value,b=(g.inputDateParser||Date.parse)(a),c=k.xAxis[0],d=k.scroller&&k.scroller.xAxis?k.scroller.xAxis:c,e=d.dataMin;d=d.dataMax;b!==z.previousValue&&(z.previousValue=b,H(b)||(b=a.split("-"),b=Date.UTC(y(b[0]),y(b[1])-1,y(b[2]))),H(b)&&(k.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),t?b>h.maxInput.HCTime?b=void 0:b<e&&(b=e):b<h.minInput.HCTime?b=void 0:b>d&&(b=d),void 0!==b&&c.setExtremes(t?b:c.min,t?c.max:b,void 0,void 0,
{trigger:"rangeSelectorInput"})))}var h=this,k=h.chart,m=k.renderer.style||{},e=k.renderer,g=k.options.rangeSelector,q=h.div,t="min"===b,z,w,C=this.inputGroup;this[b+"Label"]=w=e.label(p.lang[t?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(C);C.offset+=w.width+5;this[b+"DateBox"]=e=e.label("",C.offset).addClass("highcharts-range-input").attr({padding:2,width:g.inputBoxWidth||90,height:g.inputBoxHeight||17,"text-align":"center"}).on("click",
function(){h.showInput(b);h[b+"Input"].focus()});k.styledMode||e.attr({stroke:g.inputBoxBorderColor||"#cccccc","stroke-width":1});e.add(C);C.offset+=e.width+(t?10:0);this[b+"Input"]=z=l("input",{name:b,className:"highcharts-range-selector",type:"text"},{top:k.plotTop+"px"},q);k.styledMode||(w.css(f(m,g.labelStyle)),e.css(f({color:"#333333"},m,g.inputStyle)),u(z,a({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:m.fontSize,fontFamily:m.fontFamily,top:"-9999em"},
g.inputStyle)));z.onfocus=function(){h.showInput(b)};z.onblur=function(){z===d.doc.activeElement&&c();h.hideInput(b);z.blur()};z.onchange=c;z.onkeypress=function(a){13===a.keyCode&&c()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,f=new d.Date(a),e=d.get("FullYear",f);c=c?d.Date.UTC(e,0,1):+new d.Date(e,
0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,d=c.chart,f=d.renderer,e=d.container,g=d.options,h=g.exporting&&!1!==g.exporting.enabled&&g.navigation&&g.navigation.buttonOptions,k=p.lang,q=c.div,r=g.rangeSelector,t=m(g.chart.style&&g.chart.style.zIndex,0)+1;g=r.floating;var u=c.buttons;q=c.inputGroup;var w=r.buttonTheme,y=r.buttonPosition,C=r.inputPosition,D=r.inputEnabled,E=w&&w.states,G=d.plotLeft,H=c.buttonGroup;var I=c.rendered;var K=
c.options.verticalAlign,X=d.legend,Q=X&&X.options,S=y.y,ba=C.y,Y=I||!1,Z=Y?"animate":"attr",U=0,V=0,aa;if(!1!==r.enabled){I||(c.group=I=f.g("range-selector-group").attr({zIndex:7}).add(),c.buttonGroup=H=f.g("range-selector-buttons").add(I),c.zoomText=f.text(k.rangeSelectorZoom,0,15).add(H),d.styledMode||(c.zoomText.css(r.labelStyle),w["stroke-width"]=m(w["stroke-width"],0)),c.buttonOptions.forEach(function(a,b){u[b]=f.button(a.text,0,0,function(d){var e=a.events&&a.events.click,g;e&&(g=e.call(a,d));
!1!==g&&c.clickButton(b);c.isActive=!0},w,E&&E.hover,E&&E.select,E&&E.disabled).attr({"text-align":"center"}).add(H)}),!1!==D&&(c.div=q=l("div",null,{position:"relative",height:0,zIndex:t}),e.parentNode.insertBefore(q,e),c.inputGroup=q=f.g("input-group").add(I),q.offset=0,c.drawInput("min"),c.drawInput("max")));c.zoomText[Z]({x:m(G+y.x,G)});var ea=m(G+y.x,G)+c.zoomText.getBBox().width+5;c.buttonOptions.forEach(function(a,b){u[b][Z]({x:ea});ea+=u[b].width+m(r.buttonSpacing,5)});G=d.plotLeft-d.spacing[3];
c.updateButtonStates();h&&this.titleCollision(d)&&"top"===K&&"right"===y.align&&y.y+H.getBBox().height-12<(h.y||0)+h.height&&(U=-40);"left"===y.align?aa=y.x-d.spacing[3]:"right"===y.align&&(aa=y.x+U-d.spacing[1]);H.align({y:y.y,width:H.getBBox().width,align:y.align,x:aa},!0,d.spacingBox);c.group.placed=Y;c.buttonGroup.placed=Y;!1!==D&&(U=h&&this.titleCollision(d)&&"top"===K&&"right"===C.align&&C.y-q.getBBox().height-12<(h.y||0)+h.height+d.spacing[0]?-40:0,"left"===C.align?aa=G:"right"===C.align&&
(aa=-Math.max(d.axisOffset[1],-U)),q.align({y:C.y,width:q.getBBox().width,align:C.align,x:C.x+aa-2},!0,d.spacingBox),e=q.alignAttr.translateX+q.alignOptions.x-U+q.getBBox().x+2,h=q.alignOptions.width,k=H.alignAttr.translateX+H.getBBox().x,aa=H.getBBox().width+20,(C.align===y.align||k+aa>e&&e+h>k&&S<ba+q.getBBox().height)&&q.attr({translateX:q.alignAttr.translateX+(d.axisOffset[1]>=-U?0:-U),translateY:q.alignAttr.translateY+H.getBBox().height+10}),c.setInputValue("min",a),c.setInputValue("max",b),
c.inputGroup.placed=Y);c.group.align({verticalAlign:K},!0,d.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;"bottom"===K&&(X=Q&&"bottom"===Q.verticalAlign&&Q.enabled&&!Q.floating?X.legendHeight+m(Q.margin,10):0,a=a+X-20,V=b-a-(g?0:r.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===K)g&&(V=0),d.titleOffset&&d.titleOffset[0]&&(V=d.titleOffset[0]),V+=d.margin[0]-d.spacing[0]||0;else if("middle"===K)if(ba===S)V=0>ba?b+void 0:b;else if(ba||S)V=0>ba||0>S?V-Math.min(ba,S):b-
a+NaN;c.group.translate(r.x,r.y+Math.floor(V));!1!==D&&(c.minInput.style.marginTop=c.group.translateY+"px",c.maxInput.style.marginTop=c.group.translateY+"px");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,f=a.inputPosition.y;if(a.height)return a.height;a=b?b.getBBox(!0).height+13+c:0;b=Math.min(f,d);if(0>f&&0>d||0<f&&0<d)a+=Math.abs(b);return a},titleCollision:function(a){return!(a.options.title.text||a.options.subtitle.text)},update:function(a){var b=
this.chart;f(!0,b.options.rangeSelector,a);this.destroy();this.init(b);b.rangeSelector.render()},destroy:function(){var a=this,b=a.minInput,d=a.maxInput;a.unMouseDown();a.unResize();q(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);E(a,function(b,d){b&&"chart"!==d&&(b.destroy?b.destroy():b.nodeType&&c(this[d]));b!==w.prototype[d]&&(a[d]=null)},this)}};G.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],c=this.max,
d=this.chart.time,f=function(a,c){var e=new d.Date(a),g=d.get(b,e);d.set(b,e,g+c);g===d.get(b,e)&&d.set("Date",e,0);return e.getTime()-a};if(H(a)){var e=c-a;var g=a}else e=c+f(c,-a.count),this.chart&&(this.chart.fixedRange=c-e);var k=m(this.dataMin,Number.MIN_VALUE);H(e)||(e=k);e<=k&&(e=k,void 0===g&&(g=f(e,a.count)),this.newMax=Math.min(e+g,this.dataMax));H(c)||(e=void 0);return e};d.RangeSelector||(t(k,"afterGetContainer",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))}),
t(k,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(H(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))}),t(k,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,d=this.extraTopMargin;b&&
b.enabled&&!D(a)&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=new w(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(a.render(),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)}),t(k,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===
a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))}),t(k,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))}),k.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();H(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector;if(d){var f=t(a.xAxis[0],"afterSetExtremes",function(a){d.render(a.min,a.max)});var e=t(a,"redraw",b);b()}t(a,"destroy",function(){d&&
(e(),f())})}),d.RangeSelector=w)});K(I,"parts/StockChart.js",[I["parts/Globals.js"],I["parts/Utilities.js"]],function(d,k){var w=k.defined,D=k.isNumber,H=k.isString,E=k.splat;k=d.addEvent;var y=d.arrayMax,C=d.arrayMin,t=d.Axis,G=d.Chart,u=d.extend,l=d.format,p=d.merge,q=d.pick,c=d.Point,a=d.Renderer,b=d.Series,f=d.SVGRenderer,m=d.VMLRenderer,h=b.prototype,r=h.init,x=h.processData,v=c.prototype.tooltipFormatter;d.StockChart=d.stockChart=function(a,b,c){var e=H(a)||a.nodeName,g=arguments[e?1:0],f=g,
h=g.series,k=d.getOptions(),l,m=q(g.navigator&&g.navigator.enabled,k.navigator.enabled,!0),n=m?{startOnTick:!1,endOnTick:!1}:null;g.xAxis=E(g.xAxis||{}).map(function(a,b){return p({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},k.xAxis,k.xAxis&&k.xAxis[b],a,{type:"datetime",categories:null},n)});g.yAxis=E(g.yAxis||{}).map(function(a,b){l=q(a.opposite,!0);return p({labels:{y:-2},opposite:l,showLastLabel:!(!a.categories&&"category"!==
a.type),title:{text:null}},k.yAxis,k.yAxis&&k.yAxis[b],a)});g.series=null;g=p({chart:{panning:!0,pinchType:"x"},navigator:{enabled:m},scrollbar:{enabled:q(k.scrollbar.enabled,!0)},rangeSelector:{enabled:q(k.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:q(k.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},g,{isStock:!0});g.series=f.series=h;return e?new G(a,g,c):new G(g,b)};k(b,"setOptions",function(a){function b(a){return d.seriesTypes[a]&&c instanceof d.seriesTypes[a]}var c=this,
f;this.chart.options.isStock&&(b("column")||b("columnrange")?f={borderWidth:0,shadow:!1}:!b("line")||b("scatter")||b("sma")||(f={marker:{enabled:!1,radius:2}}),f&&(a.plotOptions[this.type]=p(a.plotOptions[this.type],f)))});k(t,"autoLabelAlign",function(a){var b=this.chart,c=this.options;b=b._labelPanes=b._labelPanes||{};var d=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled&&(15===d.x&&(d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,
a.align="right",a.preventDefault()))});k(t,"destroy",function(){var a=this.chart,b=this.options&&this.options.top+","+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});k(t,"getPlotLinePath",function(a){function b(a){var b="xAxis"===a?"yAxis":"xAxis";a=c.options[b];return D(a)?[h[b][a]]:H(a)?[h.get(a)]:f.map(function(a){return a[b]})}var c=this,f=this.isLinked&&!this.series?this.linkedParent.series:this.series,h=c.chart,k=h.renderer,l=c.left,m=c.top,n,p,r,t,u=
[],v=[],x=a.translatedValue,y=a.value,C=a.force;if(h.options.isStock&&!1!==a.acrossPanes&&"xAxis"===c.coll||"yAxis"===c.coll){a.preventDefault();v=b(c.coll);var E=c.isXAxis?h.yAxis:h.xAxis;E.forEach(function(a){if(w(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis";b=w(a.options[b])?h[b][a.options[b]]:h[b][0];c===b&&v.push(a)}});var G=v.length?[]:[c.isXAxis?h.yAxis[0]:h.xAxis[0]];v.forEach(function(a){-1!==G.indexOf(a)||d.find(G,function(b){return b.pos===a.pos&&
b.len===a.len})||G.push(a)});var I=q(x,c.translate(y,null,null,a.old));D(I)&&(c.horiz?G.forEach(function(a){var b;p=a.pos;t=p+a.len;n=r=Math.round(I+c.transB);"pass"!==C&&(n<l||n>l+c.width)&&(C?n=r=Math.min(Math.max(l,n),l+c.width):b=!0);b||u.push("M",n,p,"L",r,t)}):G.forEach(function(a){var b;n=a.pos;r=n+a.len;p=t=Math.round(m+c.height-I);"pass"!==C&&(p<m||p>m+c.height)&&(C?p=t=Math.min(Math.max(m,p),c.top+c.height):b=!0);b||u.push("M",n,p,"L",r,t)}));a.path=0<u.length?k.crispPolyLine(u,a.lineWidth||
1):null}});f.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};a===m&&(m.prototype.crispPolyLine=f.prototype.crispPolyLine);k(t,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});k(t,"afterDrawCrosshair",function(a){var b,c;if(w(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){var d=this.chart,f=this.options.crosshair.label,
h=this.horiz,k=this.opposite,m=this.left,n=this.top,p=this.crossLabel,r=f.format,t="",v="inside"===this.options.tickPosition,x=!1!==this.crosshair.snap,y=0,C=a.e||this.cross&&this.cross.e,D=a.point;var E=this.lin2log;if(this.isLog){a=E(this.min);var G=E(this.max)}else a=this.min,G=this.max;E=h?"center":k?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";p||(p=this.crossLabel=d.renderer.label(null,null,null,f.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&
" highcharts-color-"+this.series[0].colorIndex)).attr({align:f.align||E,padding:q(f.padding,8),r:q(f.borderRadius,3),zIndex:2}).add(this.labelGroup),d.styledMode||p.attr({fill:f.backgroundColor||this.series[0]&&this.series[0].color||"#666666",stroke:f.borderColor||"","stroke-width":f.borderWidth||0}).css(u({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},f.style)));h?(E=x?D.plotX+m:C.chartX,n+=k?0:this.height):(E=k?this.width+m:0,n=x?D.plotY+n:C.chartY);r||f.formatter||(this.isDatetimeAxis&&
(t="%b %d, %Y"),r="{value"+(t?":"+t:"")+"}");t=x?D[this.isXAxis?"x":"y"]:this.toValue(h?C.chartX:C.chartY);p.attr({text:r?l(r,{value:t},d.time):f.formatter.call(this,t),x:E,y:n,visibility:t<a||t>G?"hidden":"visible"});f=p.getBBox();if(h){if(v&&!k||!v&&k)n=p.y-f.height}else n=p.y-f.height/2;h?(b=m-f.x,c=m+this.width-f.x):(b="left"===this.labelAlign?m:0,c="right"===this.labelAlign?m+this.width:d.chartWidth);p.translateX<b&&(y=b-p.translateX);p.translateX+f.width>=c&&(y=-(p.translateX+f.width-c));p.attr({x:E+
y,y:n,anchorX:h?E:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:n+f.height/2})}});h.init=function(){r.apply(this,arguments);this.setCompare(this.options.compare)};h.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};h.processData=function(a){var b,
c=-1,d=!0===this.options.compareStart?0:1;x.apply(this,arguments);if(this.xAxis&&this.processedYData){var f=this.processedXData;var h=this.processedYData;var k=h.length;this.pointArrayMap&&(c=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(b=0;b<k-d;b++){var l=h[b]&&-1<c?h[b][c]:h[b];if(D(l)&&f[b+d]>=this.xAxis.min&&0!==l){this.compareValue=l;break}}}};k(b,"afterGetExtremes",function(){if(this.modifyValue){var a=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)];
this.dataMin=C(a);this.dataMax=y(a)}});t.prototype.setCompare=function(a,b){this.isXAxis||(this.series.forEach(function(b){b.setCompare(a)}),q(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(a){a=a.replace("{point.change}",(0<this.change?"+":"")+d.numberFormat(this.change,q(this.series.tooltipOptions.changeDecimals,2)));return v.apply(this,[a])};k(b,"render",function(){var a=this.chart;if(!(a.is3d&&a.is3d()||a.polar)&&this.xAxis&&!this.xAxis.isRadial){var b=this.yAxis.len;if(this.xAxis.axisLine){var c=
a.plotTop+a.plotHeight-this.yAxis.pos-this.yAxis.len,d=Math.floor(this.xAxis.axisLine.strokeWidth()/2);0<=c&&(b-=Math.max(d-c,0))}!this.clipBox&&this.animate?(this.clipBox=p(a.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=b):a[this.sharedClipKey]&&(a[this.sharedClipKey].animate({width:this.xAxis.len,height:b}),a[this.sharedClipKey+"m"]&&a[this.sharedClipKey+"m"].animate({width:this.xAxis.len}))}});k(G,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(p(!0,this.options.scrollbar,
a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)})});K(I,"masters/modules/stock.src.js",[],function(){});K(I,"masters/highstock.src.js",[I["masters/highcharts.src.js"]],function(d){d.product="Highstock";return d});I["masters/highstock.src.js"]._modules=I;return I["masters/highstock.src.js"]});
(function(){$=jQuery.noConflict();$.widget("msci.tickers",{_create:function(){this.stripWidth=0;this.totalTravel=0;this.$strip=$("#tickers")},_init:function(){var self=this;var $widget=$("#ticker-placeholder").data("msci-tickers");if(window.json_rt_callback!="undefined")window.json_rt_callback=function(data){$widget.getDataFromRT(data)};this.updateJSON();var updateInterval=setInterval(function(){self.updateJSON()},$widget.options.updateInterval)},options:{urlPrefix:"https://www.msci.com",rtApiUrl:"https://app2.msci.com/webapp/indexperf/GetDelayedRealTime?callback\x3djson_rt_callback\x26cachebuster\x3d",
updateInterval:6E4,isUpdate:false,travelocity:.04,staticTickers:[{rtid:"11074",name:"ACWI",fSheet:"https://www.msci.com/documents/10199/aad764ed-657c-4399-8be0-89320ad12547"},{rtid:"10020",name:"EAFE",fSheet:"https://www.msci.com/documents/10199/56aada01-e1e4-492a-858c-430b34e2676d"},{rtid:"11082",name:"Emerging Markets",fSheet:"https://www.msci.com/documents/10199/10c3f32f-4565-4a92-aa1c-edf6f3a4e03f"},{rtid:"10021",name:"Europe",fSheet:"https://www.msci.com/documents/10199/861bb4d4-7a59-489b-8cef-bb104e152e3c"},
{rtid:"10136",name:"USA",fSheet:"https://www.msci.com/documents/10199/1e6851ab-03b8-4504-b9f3-b8cb91509ede"},{rtid:"10140",name:"World",fSheet:"https://www.msci.com/documents/10199/cad25553-6265-4a1b-9942-cb5be891015d"}],dynamicTickers:[{rtid:"10001",name:"Australia",fSheet:"https://www.msci.com/documents/10199/5fd82b6d-e2b6-4fbb-854c-190986c2ede6"},{rtid:"10997",name:"Brazil",fSheet:"https://www.msci.com/documents/10199/15658f2b-6ce0-46a8-9ddf-a523e91824ec"},{rtid:"10131",name:"Canada",fSheet:"https://www.msci.com/documents/10199/63003aeb-0089-4290-93d2-43d8e89393e6"},
{rtid:"10556",name:"China",fSheet:"https://www.msci.com/documents/10199/2da7d324-61aa-49eb-8787-1866ebf453d3"},{rtid:"10012",name:"Japan",fSheet:"https://www.msci.com/documents/10199/59bbbe70-edd4-42b9-9889-89a10c478799"},{rtid:"10018",name:"Switzerland",fSheet:"https://www.msci.com/documents/10199/ff531729-c909-456a-92c1-a695da79657a"},{rtid:"12492",name:"United Kingdom",fSheet:"https://www.msci.com/documents/10199/3b75b636-55c0-4ce8-a8aa-6bb70e12b99d"}]},getDataFromRT:function(data){var self=this;
if(data.error);else{var sTicks=[];var dTicks=[];var items=data.xmfIndices;var $sList=$("#st-tickers");var $dList=$("#tickers");var liEl="";$(this.options.staticTickers).each(function(i,v){sTicks.push(v.rtid)});$(this.options.dynamicTickers).each(function(i,v){dTicks.push(v.rtid)});items.sort(self.compare);$(items).each(function(index,val){if(sTicks.indexOf(val.index.id)>-1){var idx=sTicks.indexOf(val.index.id);if(!self.options.isUpdate){liEl=self.createTemplate(val,"static");$("#st-tickers").append(liEl)}self.updateTickerValues(val,
idx,"static")}else if(dTicks.indexOf(val.index.id)>-1){var idx=dTicks.indexOf(val.index.id);if(!self.options.isUpdate){liEl=self.createTemplate(val,"dynamic");$("#tickers").append(liEl)}self.updateTickerValues(val,idx,"dynamic")}});if(!this.options.isUpdate){$("#st-tickers li").last().addClass("last");self.scrollTicker();this.options.isUpdate=true}else{self.$strip.stop();self.resetScroll()}}},compare:function(a,b){if(a.index.name<b.index.name)return-1;if(a.index.name>b.index.name)return 1;return 0},
updateJSON:function(){if($("#json_rt").length>0)$("#json_rt").remove();var timestamp=Math.floor(new Date/1E3/60)*1E3*60;var js=document.createElement("script");js.setAttribute("id","json_rt");js.src=$("#ticker-placeholder").data("msci-tickers").options.rtApiUrl+timestamp;document.getElementsByTagName("head")[0].appendChild(js)},createTemplate:function(val,listType){var id=val.index.id;var dynamicList="";if(listType=="dynamic")dynamicList='\x3cli id\x3d"ticker-'+id+'" class\x3d"tick-default" \x3e\x3ca target\x3d"_blank"\x3e\x3cspan id\x3d"ticker-name" class\x3d"name-'+
id+'"\x3e\x3c/span\x3e\x3csub id\x3d"ticker-cur" class\x3d"cur-'+id+' idx-sub"\x3e\x3c/sub\x3e \x3cspan id\x3d"arrow"\x3e\x3c/span\x3e\x3cspan id\x3d"ticker-level" class\x3d"level-'+id+'"\x3e\x3c/span\x3e \x3cspan id\x3d"ticker-dynamic-percent" class\x3d"percent-'+id+'"\x3e\x3c/span\x3e \x3csub id\x3d"ticker-date" class\x3d"date-'+id+' idx-sub"\x3e\x3c/sub\x3e\x3c/a\x3e\x3c/li\x3e';else dynamicList='\x3cli id\x3d"ticker-'+id+'" class\x3d"tick-default" \x3e\x3ca target\x3d"_blank"\x3e\x3cdiv class\x3d"ticker-title"\x3e\x3cspan id\x3d"ticker-name" class\x3d"name-'+
id+'"\x3e\x3c/span\x3e \x3c/div\x3e\x3cdiv class\x3d"ticker-info"\x3e\x3cspan id\x3d"ticker-level" class\x3d"level-'+id+'"\x3e\x3c/span\x3e \x3cspan id\x3d"ticker-static-percent" class\x3d"percent-'+id+'"\x3e\x3c/span\x3e \x3csub id\x3d"ticker-date" class\x3d"date-'+id+' idx-sub"\x3e\x3c/sub\x3e\x3c/div\x3e\x3c/a\x3e\x3c/li\x3e';return dynamicList},updateTickerValues:function(val,idx,listType){var id=val.index.id;var name=$(".name-"+id);var currency=$(".cur-"+id);var level=$(".level-"+id);var percentChange=
$(".percent-"+id);var change=$("#ticker-"+id);var changeClone=$("#ticker-"+id+"-clone");var date=$(".date-"+id);var re=/^(\d+), (.*) (\d\d):(\d\d)/;var dateItems=re.exec(val.index.date);if(val.index.closed)date.html(dateItems[2]+" "+dateItems[1]);else date.html(dateItems[3]+":"+dateItems[4]);change.removeClass("tick-up").removeClass("tick-down");changeClone.removeClass("tick-up").removeClass("tick-down");if(val.index.change>=0){change.addClass("tick-up");changeClone.addClass("tick-up")}else if(val.index.change<
0){change.addClass("tick-down");changeClone.addClass("tick-down")}if(listType=="static"){name.html((val.index.currency=="EUR"?"**":"*")+this.options.staticTickers[idx].name);change.find("a").attr("href",this.options.staticTickers[idx].fSheet);percentChange.html(val.index.percentChange)}else if(listType=="dynamic"){name.html(this.options.dynamicTickers[idx].name);change.find("a").attr("href",this.options.dynamicTickers[idx].fSheet);changeClone.find("a").attr("href",this.options.dynamicTickers[idx].fSheet);
percentChange.html(Math.abs(parseFloat(val.index.percentChange))+"%")}currency.html(val.index.currency);level.html(val.index.level)},scrollTicker:function(){var self=this;self.makeInfinteScroll();self.$strip.find("li").each(function(i){self.stripWidth+=jQuery(this,i).outerWidth(true)});self.$strip.width(self.stripWidth);self.totalTravel=self.stripWidth/2;self.defTiming=self.totalTravel/this.options.travelocity;self.scrollnews(self.totalTravel,self.defTiming);self.$strip.hover(function(){$(this).stop(true)},
self.resetScroll)},makeInfinteScroll:function(){var self=this;var $children=self.$strip.children();$children.each(function(){var el=$(this).clone();el[0].id+="-clone";self.$strip.append(el)})},scrollnews:function(spazio,tempo){var self=this;self.$strip.animate({left:"-\x3d"+spazio},tempo,"linear",function(){self.$strip.css("left",0);self.scrollnews(self.totalTravel,self.defTiming)})},resetScroll:function(){var widget=$("#ticker-placeholder").data("msci-tickers");widget.recalculateWidth();var offset=
widget.$strip.position();var residualSpace=offset.left+widget.totalTravel;var residualTime=residualSpace/widget.options.travelocity;widget.scrollnews(residualSpace,residualTime)},recalculateWidth:function(){var self=this;var newStripWidth=0;var newTotalTravel=0;self.$strip.find("li").each(function(i){newStripWidth+=jQuery(this,i).outerWidth(true)});newTotalTravel=newStripWidth/2;self.totalTravel=newTotalTravel}})})();
