open-consul/website/build/javascripts/highcharts-61a7ed96.js

5 lines
137 KiB
JavaScript
Raw Normal View History

2014-02-08 00:41:03 +00:00
!function(){function t(t,e){var n;t||(t={});for(n in e)t[n]=e[n];return t}function e(){var t,e=arguments.length,n={},i=function(t,e){var n,r;"object"!=typeof t&&(t={});for(r in e)e.hasOwnProperty(r)&&(n=e[r],t[r]=n&&"object"==typeof n&&"[object Array]"!==Object.prototype.toString.call(n)&&"number"!=typeof n.nodeType?i(t[r]||{},n):e[r]);return t};for(t=0;e>t;t++)n=i(n,arguments[t]);return n}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"object"==typeof t}function o(t){return"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"number"==typeof t}function a(t){return de.log(t)/de.LN10}function l(t){return de.pow(10,t)}function h(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}}function u(t){return t!==X&&null!==t}function c(t,e,n){var o,s;if(i(e))u(n)?t.setAttribute(e,n):t&&t.getAttribute&&(s=t.getAttribute(e));else if(u(e)&&r(e))for(o in e)t.setAttribute(o,e[o]);return s}function d(t){return o(t)?t:[t]}function f(){var t,e,n=arguments,i=n.length;for(t=0;i>t;t++)if(e=n[t],"undefined"!=typeof e&&null!==e)return e}function p(e,n){Me&&n&&n.opacity!==X&&(n.filter="alpha(opacity="+100*n.opacity+")"),t(e.style,n)}function g(e,n,i,r,o){return e=ue.createElement(e),n&&t(e,n),o&&p(e,{padding:0,border:Fe,margin:0}),i&&p(e,i),r&&r.appendChild(e),e}function m(e,n){var i=function(){};return i.prototype=new e,t(i.prototype,n),i}function v(t,e,i,r){var o=q.lang,t=+t||0,s=-1===e?(t.toString().split(".")[1]||"").length:isNaN(e=ye(e))?2:e,e=void 0===i?o.decimalPoint:i,r=void 0===r?o.thousandsSep:r,o=0>t?"-":"",i=String(n(t=ye(t).toFixed(s))),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(s?e+ye(t-i).toFixed(s).slice(2):"")}function y(t,e){return Array((e||2)+1-String(t).length).join(0)+t}function x(t,e,n){var i=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(i),n.apply(this,t)}}function b(t,e){for(var n,i,r,o,s,a="{",l=!1,h=[];-1!==(a=t.indexOf(a));){if(n=t.slice(0,a),l){for(i=n.split(":"),r=i.shift().split("."),s=r.length,n=e,o=0;s>o;o++)n=n[r[o]];i.length&&(i=i.join(":"),r=/\.([0-9])/,o=q.lang,s=void 0,/f$/.test(i)?(s=(s=i.match(r))?s[1]:-1,n=v(n,s,o.decimalPoint,i.indexOf(",")>-1?o.thousandsSep:"")):n=U(i,n))}h.push(n),t=t.slice(a+1),a=(l=!l)?"}":"{"}return h.push(t),h.join("")}function w(t){return de.pow(10,pe(de.log(t)/de.LN10))}function k(t,e,n,i){var r,n=f(n,1);for(r=t/n,e||(e=[1,2,2.5,5,10],i&&i.allowDecimals===!1&&(1===n?e=[1,2,5,10]:.1>=n&&(e=[1/n]))),i=0;i<e.length&&(t=e[i],!(r<=(e[i]+(e[i+1]||e[i]))/2));i++);return t*=n}function S(t,e){var n,i=e||[[We,[1,2,5,10,20,25,50,100,200,500]],[$e,[1,2,5,10,15,30]],[Xe,[1,2,5,10,15,30]],[Ye,[1,2,3,4,6,8,12]],[Ge,[1,2]],[qe,[1,2]],[Ue,[1,2,3,4,6]],[Ve,null]],r=i[i.length-1],o=K[r[0]],s=r[1];for(n=0;n<i.length&&(r=i[n],o=K[r[0]],s=r[1],!(i[n+1]&&t<=(o*s[s.length-1]+K[i[n+1][0]])/2));n++);return o===K[Ve]&&5*o>t&&(s=[1,2,5]),i=k(t/o,s,r[0]===Ve?w(t/o):1),{unitRange:o,count:i,unitName:r[0]}}function C(e,n,i,r){var o,s=[],a={},l=q.global.useUTC,h=new Date(n),c=e.unitRange,d=e.count;if(u(n)){c>=K[$e]&&(h.setMilliseconds(0),h.setSeconds(c>=K[Xe]?0:d*pe(h.getSeconds()/d))),c>=K[Xe]&&h[oe](c>=K[Ye]?0:d*pe(h[J]()/d)),c>=K[Ye]&&h[se](c>=K[Ge]?0:d*pe(h[te]()/d)),c>=K[Ge]&&h[ae](c>=K[Ue]?1:d*pe(h[ne]()/d)),c>=K[Ue]&&(h[le](c>=K[Ve]?0:d*pe(h[ie]()/d)),o=h[re]()),c>=K[Ve]&&(o-=o%d,h[he](o)),c===K[qe]&&h[ae](h[ne]()-h[ee]()+f(r,1)),n=1,o=h[re]();for(var r=h.getTime(),p=h[ie](),g=h[ne](),m=l?0:(864e5+6e4*h.getTimezoneOffset())%864e5;i>r;)s.push(r),c===K[Ve]?r=Q(o+n*d,0):c===K[Ue]?r=Q(o,p+n*d):l||c!==K[Ge]&&c!==K[qe]?r+=c*d:r=Q(o,p,g+n*d*(c===K[Ge]?1:7)),n++;s.push(r),rn(on(s,function(t){return c<=K[Ye]&&t%K[Ge]===m}),function(t){a[t]=Ge})}return s.info=t(e,{higherRanks:a,totalRange:c*d}),s}function M(){this.symbol=this.color=0}function T(t,e){var n,i,r=t.length;for(i=0;r>i;i++)t[i].ss_i=i;for(t.sort(function(t,i){return n=e(t,i),0===n?t.ss_i-i.ss_i:n}),i=0;r>i;i++)delete t[i].ss_i}function A(t){for(var e=t.length,n=t[0];e--;)t[e]
return{h:t,b:e}},label:function(n,i,r,o,s,a,l,h,c){function d(){var t,n;t=T.element.style,v=(void 0===y||void 0===x||M.styles.textAlign)&&T.getBBox(),M.width=(y||v.width||0)+2*L+P,M.height=(x||v.height||0)+2*L,k=L+C.fontMetrics(t&&t.fontSize).b,S&&(m||(t=fe(-A*L),n=h?-k:0,M.box=m=o?C.symbol(o,t,n,M.width,M.height):C.rect(t,n,M.width,M.height,0,_[Ze]),m.add(M)),m.isImg||m.attr(e({width:M.width,height:M.height},_)),_=null)}function f(){var t,e=M.styles,e=e&&e.textAlign,n=P+L*(1-A);t=h?0:k,!u(y)||"center"!==e&&"right"!==e||(n+={center:.5,right:1}[e]*(y-v.width)),(n!==T.x||t!==T.y)&&T.attr({x:n,y:t}),T.x=n,T.y=t}function p(t,e){m?m.attr(t,e):_[t]=e}function g(){T.add(M),M.attr({text:n,x:i,y:r}),m&&u(s)&&M.attr({anchorX:s,anchorY:a})}var m,v,y,x,b,w,k,S,C=this,M=C.g(c),T=C.text("",0,0,l).attr({zIndex:1}),A=0,L=3,P=0,E=0,_={},l=M.attrSetters;ln(M,"add",g),l.width=function(t){return y=t,!1},l.height=function(t){return x=t,!1},l.padding=function(t){return u(t)&&t!==L&&(L=t,f()),!1},l.paddingLeft=function(t){return u(t)&&t!==P&&(P=t,f()),!1},l.align=function(t){return A={left:0,center:.5,right:1}[t],!1},l.text=function(t,e){return T.attr(e,t),d(),f(),!1},l[Ze]=function(t,e){return S=!0,E=t%2/2,p(e,t),!1},l.stroke=l.fill=l.r=function(t,e){return"fill"===e&&(S=!0),p(e,t),!1},l.anchorX=function(t,e){return s=t,p(e,t+E-b),!1},l.anchorY=function(t,e){return a=t,p(e,t-w),!1},l.x=function(t){return M.x=t,t-=A*((y||v.width)+L),b=fe(t),M.attr("translateX",b),!1},l.y=function(t){return w=M.y=fe(t),M.attr("translateY",w),!1};var N=M.css;return t(M,{css:function(t){if(t){var n={},t=e(t);rn("fontSize,fontWeight,fontFamily,color,lineHeight,width,textDecoration,textShadow".split(","),function(e){t[e]!==X&&(n[e]=t[e],delete t[e])}),T.css(n)}return N.call(M,t)},getBBox:function(){return{width:v.width+2*L,height:v.height+2*L,x:v.x-L,y:v.y-L}},shadow:function(t){return m&&m.shadow(t),M},destroy:function(){hn(M,"add",g),hn(M.element,"mouseenter"),hn(M.element,"mouseleave"),T&&(T=T.destroy()),m&&(m=m.destroy()),z.prototype.destroy.call(M),M=C=d=f=p=g=null}})}},Y=mn;var vn;if(!_e&&!De){Highcharts.VMLElement=vn={init:function(t,e){var n=["<",e,' filled="f" stroked="f"'],i=["position: ","absolute",";"],r=e===Be;("shape"===e||r)&&i.push("left:0;top:0;width:1px;height:1px;"),i.push("visibility: ",r?"hidden":"visible"),n.push(' style="',i.join(""),'"/>'),e&&(n=r||"span"===e||"img"===e?n.join(""):t.prepVML(n),this.element=g(n)),this.renderer=t,this.attrSetters={}},add:function(t){var e=this.renderer,n=this.element,i=e.box,i=t?t.element||t:i;return t&&t.inverted&&e.invertChild(n,i),i.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),un(this,"add"),this},updateTransform:z.prototype.htmlUpdateTransform,setSpanRotation:function(t,e,n){p(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",n,", M12=",-e,", M21=",e,", M22=",n,", sizingMethod='auto expand')"].join(""):Fe})},pathToVML:function(t){for(var e,n=t.length,i=[];n--;)s(t[n])?i[n]=fe(10*t[n])-5:"Z"===t[n]?i[n]="x":(i[n]=t[n],!t.isArc||"wa"!==t[n]&&"at"!==t[n]||(e="wa"===t[n]?1:-1,i[n+5]===i[n+7]&&(i[n+7]-=e),i[n+6]===i[n+8]&&(i[n+8]-=e)));return i.join(" ")||"x"},attr:function(t,e){var n,r,o,a,l,h=this.element||{},d=h.style,f=h.nodeName,p=this.renderer,m=this.symbolName,v=this.shadows,y=this.attrSetters,x=this;if(i(t)&&u(e)&&(n=t,t={},t[n]=e),i(t))n=t,x="strokeWidth"===n||"stroke-width"===n?this.strokeweight:this[n];else for(n in t)if(r=t[n],l=!1,o=y[n]&&y[n].call(this,r,n),o!==!1&&null!==r){if(o!==X&&(r=o),m&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(n))a||(this.symbolAttr(t),a=!0),l=!0;else if("d"===n){if(r=r||[],this.d=r.join(" "),h.path=r=this.pathToVML(r),v)for(o=v.length;o--;)v[o].path=v[o].cutOff?this.cutOffPath(r,v[o].cutOff):r;l=!0}else if("visibility"===n){if(v)for(o=v.length;o--;)v[o].style[n]=r;"DIV"===f&&(r="hidden"===r?"-999em":0,Te||(d[n]=r?"visible":"hidden"),n="top"),d[n]=r,l=!0}else"zIndex"===n?(r&&(d[n]=r),l=!0):-1!==nn(n,["x","y","width","height"])?(this[n]=r,"x"===n||"y"===n?n={x:"left",y:"top"}[n]:r
}),e._addedPlotLB||(rn((r.plotLines||[]).concat(r.plotBands||[]),function(t){e.addPlotBandOrLine(t)}),e._addedPlotLB=!0)),rn([d,f,p],function(t){var e,i,r=[],o=V?V.duration||500:0,s=function(){for(i=r.length;i--;)t[r[i]]&&!t[r[i]].isActive&&(t[r[i]].destroy(),delete t[r[i]])};for(e in t)t[e].isActive||(t[e].render(e,!1,0),t[e].isActive=!1,r.push(e));t!==p&&n.hasRendered&&o?o&&setTimeout(s,o):s()}),y&&(t=e.getLinePath(y),e.axisLine?e.axisLine.animate({d:t}):e.axisLine=i.path(t).attr({stroke:r.lineColor,"stroke-width":y,zIndex:7}).add(e.axisGroup),e.axisLine[k?"show":"hide"]()),h&&k&&(h[h.isNew?"attr":"animate"](e.getTitlePosition()),h.isNew=!1),g&&g.enabled){var S,C,r=e.stackTotalGroup;r||(e.stackTotalGroup=r=i.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),r.translate(n.plotLeft,n.plotTop);for(S in c)for(C in i=c[S])i[C].render(r)}e.isDirty=!1},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,n=this.options,i=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();rn([n.plotLines||[],i.plotLines||[],n.plotBands||[],i.plotBands||[]],function(e){for(r=e.length;r--;)e[r].id===t&&h(e,e[r])})},setTitle:function(t,e){this.update({title:t},e)},redraw:function(){var t=this.chart.pointer;t.reset&&t.reset(!0),this.render(),rn(this.plotLinesAndBands,function(t){t.render()}),rn(this.series,function(t){t.isDirty=!0})},buildStacks:function(){var t=this.series,e=t.length;if(!this.isXAxis){for(;e--;)t[e].setStackedPoints();if(this.usePercentage)for(e=0;e<t.length;e++)t[e].setPercentStacks()}},setCategories:function(t,e){this.update({categories:t},e)},destroy:function(t){var e,n=this,i=n.stacks,r=n.plotLinesAndBands;t||hn(n);for(e in i)P(i[e]),i[e]=null;for(rn([n.ticks,n.minorTicks,n.alternateBands],function(t){P(t)}),t=r.length;t--;)r[t].destroy();rn("stackTotalGroup,axisLine,axisGroup,gridGroup,labelGroup,axisTitle".split(","),function(t){n[t]&&(n[t]=n[t].destroy())})}},F.prototype={init:function(t,e){var i=e.borderWidth,r=e.style,o=n(r.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape,null,null,e.useHTML,null,"tooltip").attr({padding:o,fill:e.backgroundColor,"stroke-width":i,r:e.borderRadius,zIndex:8}).css(r).css({padding:0}).add().attr({y:-999}),De||this.label.shadow(e.shadow),this.shared=e.shared},destroy:function(){rn(this.crosshairs,function(t){t&&t.destroy()}),this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(e,n,i,r){var o=this,s=o.now,a=o.options.animation!==!1&&!o.isHidden;t(s,{x:a?(2*s.x+e)/3:e,y:a?(s.y+n)/2:n,anchorX:a?(2*s.anchorX+i)/3:i,anchorY:a?(s.anchorY+r)/2:r}),o.label.attr(s),a&&(ye(e-s.x)>1||ye(n-s.y)>1)&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(e,n,i,r)},32))},hide:function(){var t,e=this;clearTimeout(this.hideTimer),this.isHidden||(t=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){e.label.fadeOut(),e.isHidden=!0},f(this.options.hideDelay,500)),t&&rn(t,function(t){t.setState()}),this.chart.hoverPoints=null)},hideCrosshairs:function(){rn(this.crosshairs,function(t){t&&t.hide()})},getAnchor:function(t,e){var n,i,r=this.chart,o=r.inverted,s=r.plotTop,a=0,l=0,t=d(t);return n=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===X&&(e=r.pointer.normalize(e)),n=[e.chartX-r.plotLeft,e.chartY-s]),n||(rn(t,function(t){i=t.series.yAxis,a+=t.plotX,l+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!o&&i?i.top-s:0)}),a/=t.length,l/=t.length,n=[o?r.plotWidth-l:a,this.shared&&!o&&t.length>1&&e?e.chartY-s:o?r.plotHeight-a:l]),an(n,fe)},getPosition:function(t,e,n){var i,r=this.chart,o=r.plotLeft,s=r.plotTop,a=r.plotWidth,l=r.plotHeight,h=f(this.options.distance,12),u=n.plotX,n=n.plotY,r=u+o+(r.inverted?h:-t-h),c=n-e+s+15;return 7>r&&(r=o+me(u,0)+h),r+t>o+a&&(r-=r+t-(o+a),c=n-e+s-h,i=!0),s+5>c&&(c=s+5,i&&n>=c&&c+e>=n&&(c=n+s+h)),c+e>s+l&&(c=me(s,s+l-e-h)),{x:r,y:c}},defaultFormatter:function(t){var e,n=this.points||d(this),i=n[0].series;return e=[i.tooltipHeaderFormatter(n[0])],rn(n,fu
}),i.seriesGroup||(i.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),rn(i.series,function(t){t.translate(),t.setTooltipPoints(),t.render()}),a.items&&rn(a.items,function(e){var r=t(a.style,e.style),s=n(r.left)+i.plotLeft,l=n(r.top)+i.plotTop+12;delete r.left,delete r.top,o.text(e.html,s,l).attr({zIndex:2}).css(r).add()}),l.enabled&&!i.credits&&(e=l.href,i.credits=o.text(l.text,0,0).on("click",function(){e&&(location.href=e)}).attr({align:l.position.align,zIndex:8}).css(l.style).add().align(l.position)),i.hasRendered=!0},destroy:function(){var t,e=this,n=e.axes,i=e.series,r=e.container,o=r&&r.parentNode;for(un(e,"destroy"),He[e.index]=X,e.renderTo.removeAttribute("data-highcharts-chart"),hn(e),t=n.length;t--;)n[t]=n[t].destroy();for(t=i.length;t--;)i[t]=i[t].destroy();rn("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),r&&(r.innerHTML="",hn(r),o&&E(r));for(t in e)delete e[t]},isReadyToRender:function(){var t=this;return!_e&&ce==ce.top&&"complete"!==ue.readyState||De&&!ce.canvg?(De?xn.push(function(){t.firstRender()},t.options.global.canvasToolsURL):ue.attachEvent("onreadystatechange",function(){ue.detachEvent("onreadystatechange",t.firstRender),"complete"===ue.readyState&&t.firstRender()}),!1):!0},firstRender:function(){var t=this,e=t.options,n=t.callback;t.isReadyToRender()&&(t.getContainer(),un(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),rn(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),un(t,"beforeRender"),t.pointer=new j(t,e),t.render(),t.renderer.draw(),n&&n.apply(t,[t]),rn(t.callbacks,function(e){e.apply(t,[t])}),t.cloneRenderTo(!0),un(t,"load"))},splashArray:function(t,e){var n=e[t],n=r(n)?n:[n,n,n,n];return[f(e[t+"Top"],n[0]),f(e[t+"Right"],n[1]),f(e[t+"Bottom"],n[2]),f(e[t+"Left"],n[3])]}},$.prototype.callbacks=[];var bn=function(){};bn.prototype={init:function(t,e,n){return this.series=t,this.applyOptions(e,n),this.pointAttr={},t.options.colorByPoint&&(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter++],t.colorCounter===e.length)&&(t.colorCounter=0),t.chart.pointCount++,this},applyOptions:function(e,n){var i=this.series,r=i.pointValKey,e=bn.prototype.optionsToObject.call(this,e);return t(this,e),this.options=this.options?t(this.options,e):e,r&&(this.y=this[r]),this.x===X&&i&&(this.x=n===X?i.autoIncrement():n),this},optionsToObject:function(t){var e,n=this.series,i=n.pointArrayMap||["y"],r=i.length,s=0,a=0;if("number"==typeof t||null===t)e={y:t};else if(o(t))for(e={},t.length>r&&(n=typeof t[0],"string"===n?e.name=t[0]:"number"===n&&(e.x=t[0]),s++);r>a;)e[i[a++]]=t[s++];else"object"==typeof t&&(e=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return e},destroy:function(){var t,e=this.series.chart,n=e.hoverPoints;e.pointCount--,n&&(this.setState(),h(n,this),!n.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(hn(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e="graphic,dataLabel,dataLabelUpper,group,connector,shadowGroup".split(","),n=6;n--;)t=e[n],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(t,e){var n=this,i=n.series,r=i.chart,t=f(t,!n.selected);n.firePointEvent(t?"select":"unselect",{accumulate:e},function(){n.selected=n.options.selected=t,i.options.data[nn(n,i.data)]=n.options,n.setState(t&&"select"),e||rn(r.getSelectedPoints(),function(t){t.selected&&t!==n&&(t.selected=t.options.selected=!1,i.options.data[nn(t,i.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t){var e=this.series,n=e.chart,i=n.tooltip,r=n.hoverPoint;r&&r!==this&&r.onMouseOut(),thi
}).css(r),Re)&&t[e].on("touchstart",o)}),t._hasTracking=!0)},alignDataLabel:function(t,n,i,r,o){var s=this.chart,a=s.inverted,l=t.dlBox||t.shapeArgs,h=t.below||t.plotY>f(this.translatedThreshold,s.plotSizeY),u=f(i.inside,!!this.options.stacking);l&&(r=e(l),a&&(r={x:s.plotWidth-r.y-r.height,y:s.plotHeight-r.x-r.width,width:r.height,height:r.width}),!u)&&(a?(r.x+=h?0:r.width,r.width=0):(r.y+=h?r.height:0,r.height=0)),i.align=f(i.align,!a||u?"center":h?"right":"left"),i.verticalAlign=f(i.verticalAlign,a||u?"middle":h?"top":"bottom"),wn.prototype.alignDataLabel.call(this,t,n,i,r,o)},animate:function(t){var e=this.yAxis,n=this.options,i=this.chart.inverted,r={};_e&&(t?(r.scaleY=.001,t=ve(e.pos+e.len,me(e.pos,e.toPixels(n.threshold))),i?r.translateX=t-e.len:r.translateY=t,this.group.attr(r)):(r.scaleY=1,r[i?"translateX":"translateY"]=e.pos,this.group.animate(r,this.options.animation),this.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&rn(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),wn.prototype.remove.apply(t,arguments)}}),Ke.column=vn,pn.bar=e(pn.column),yn=m(vn,{type:"bar",inverted:!0}),Ke.bar=yn,pn.scatter=e(Qe,{lineWidth:0,tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>",followPointer:!0},stickyTracking:!1}),yn=m(wn,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup"],drawTracker:vn.prototype.drawTracker,setTooltipPoints:Ie}),Ke.scatter=yn,pn.pie=e(Qe,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),Qe={type:"pie",isCartesian:!1,pointClass:m(bn,{init:function(){bn.prototype.init.apply(this,arguments);var e,n=this;return n.y<0&&(n.y=null),t(n,{visible:n.visible!==!1,name:f(n.name,"Slice")}),e=function(t){n.slice("select"===t.type)},ln(n,"select",e),ln(n,"unselect",e),n},setVisible:function(t){var e,n=this,i=n.series,r=i.chart;n.visible=n.options.visible=t=t===X?!n.visible:t,i.options.data[nn(n,i.data)]=n.options,e=t?"show":"hide",rn(["graphic","dataLabel","connector","shadowGroup"],function(t){n[t]&&n[t][e]()}),n.legendItem&&r.legend.colorizeItem(n,t),!i.isDirty&&i.options.ignoreHiddenPoint&&(i.isDirty=!0,r.redraw())},slice:function(t,e,n){var i=this.series;D(n,i.chart),f(e,!0),this.sliced=this.options.sliced=t=u(t)?t:!this.sliced,i.options.data[nn(this,i.data)]=this.options,t=t?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:Ie,animate:function(t){var e=this,n=e.points,i=e.startAngleRad;t||(rn(n,function(t){var n=t.graphic,t=t.shapeArgs;n&&(n.attr({r:e.center[3]/2,start:i,end:i}),n.animate({r:t.r,start:t.start,end:t.end},e.options.animation))}),e.animate=null)},setData:function(t,e){wn.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),f(e,!0)&&this.chart.redraw()},generatePoints:function(){var t,e,n,i,r=0,o=this.options.ignoreHiddenPoint;for(wn.prototype.generatePoints.call(this),e=this.points,n=e.length,t=0;n>t;t++)i=e[t],r+=o&&!i.visible?0:i.y;for(this.total=r,t=0;n>t;t++)i=e[t],i.percentage=r>0?100*(i.y/r):0,i.total=r},getCenter:function(){var t,e,i=this.options,r=this.chart,o=2*(i.slicedOffset||0),s=r.plotWidth-2*o,a=r.plotHeight-2*o,r=i.center,i=[f(r[0],"50%"),f(r[1],"50%"),i.size||"100%",i.innerSize||0],l=ve(s,a);return an(i,function(i,r){return e=/%$/.test(i),t=2>r||2===r&&e,(e?[s,a,l,l][r]*n(i)/100:i)+(t?o:0)})},translate:function(t){this.generatePoints();var e,n,i,r,o,s=0,a=this.options,l=a.slicedOffset,h=l+a.borderWidth,u=a.startAngle||0,c=this.startAngleRad=we/180*(u-90