function releaseCallback(e,t,n){if(n.status!==200||n.responseText.length<10)throw document.getElementById(`last-updated-${e}`).innerText="never",document.getElementById(`unavailable-${e}`).classList.remove("is-hidden"),document.getElementById(`downloads-${e}`).classList.add("is-hidden"),new Error(n.responseText);var s,o,i,a,r,l,d,h,m,c=JSON.parse(n.responseText),u=0;document.getElementById(`last-updated-${e}`).innerText=moment(c[0].published_at).fromNow();for(i=0;i `}),r+=` `,document.getElementById(`downloads-${e}`).innerHTML+=`
`,u++,u>=t)break}}function getRelease(e,t=3){var n=new XMLHttpRequest;n.open("GET",`https://api.github.com/repos/yuzu-emu/yuzu-${e}/releases`),n.onload=function(){releaseCallback(e,t,this)},n.send()}function fetchPR(e,t){return fetch(`https://api.github.com/repos/${e}-emu/${e}/pulls/${t}`,{headers:{Accept:"application/vnd.github.v3+json","X-Requested-With":"XMLHttpRequest"},method:"GET"}).then(function(e){return e.json()})}function buildHovercard(e){const t=document.getElementById("gh-template"),s=t.getElementsByClassName("gh-hover-title")[0];s.firstChild.innerText=e.title,s.href=e.html_url;const o=e.merged_at;let n="open",i="";if(o){let e=moment.utc(o);i=e.fromNow(),n="merged",t.getElementsByClassName("gh-hover-date")[0].innerText=`Merged ${i}.`}else e.state==="closed"&&(n="closed");return t.getElementsByClassName("gh-hover-icon")[0].classList.add(n),t.getElementsByClassName("gh-hover-number")[0].innerText=`#${e.number}`,t.innerHTML}function createHovercard(e,t){return fetchPR(e,t).then(function(e){return buildHovercard(e)})}function showHovercard(e,t){if(e._loading)return;if(e._cached){e.setContent(e._cached);return}e._loading=!0;const n=e.reference.getAttribute("data-gh-pr");createHovercard(t,n).then(function(t){e._cached=t,e.setContent(t),e._loading=!1}).catch(function(t){e.setContent("Error fetching data from GitHub: "+t),e._loading=!1})}window.showHovercard=showHovercard;const navbar=document.getElementById("hero-navbar"),navbarBaseColor="is-dark";navbar&&window.addEventListener("scroll",()=>{window.scrollY>0?(navbar.classList.add("is-freestanding"),navbar.classList.add(navbarBaseColor)):(navbar.classList.remove("is-freestanding"),navbar.classList.remove(navbarBaseColor))});let colors=["orangered","deepskyblue","yellow","deeppink","lime","gray"];document.body.classList.add("switch-left-"+colors.splice(Math.floor(Math.random()*colors.length),1)[0]),document.body.classList.add("switch-right-"+colors[Math.floor(Math.random()*colors.length)]),document.addEventListener("DOMContentLoaded",function(){const e=document.getElementsByClassName("lazy-load");for(let t=0;t0&&document.addEventListener("DOMContentLoaded",function(){const e=new Glide(".glide",{type:"carousel",perView:1,focusAt:"center",autoplay:4e3,gap:0,animationTimingFunc:"ease-in-out",animationDuration:1e3});e.mount()}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("div[data-href]").forEach(e=>{e.addEventListener("click",function(){window.location=e.getAttribute("data-href")})}),document.querySelectorAll(".moment-timeago").forEach(e=>{e.innerHTML=moment(e.innerHTML).fromNow()}),document.querySelectorAll(".is-dropdown").forEach(e=>{e.addEventListener("click",function(t){t.stopPropagation(),e.parentElement.querySelectorAll(".is-dropdown-target").forEach(e=>{e.classList.toggle("is-active")})})}),baguetteBox.run(".baguetteBox")}),document.addEventListener("DOMContentLoaded",function(){var e=Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0);e.length>0&&e.forEach(function(e){e.addEventListener("click",function(){var t=e.dataset.target,n=document.getElementById(t);e.classList.toggle("is-active"),n.classList.toggle("is-active")})})}),!function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.baguetteBox=t()}(this,function(){"use strict";var t,n,a,d,u,K='',U='',W='',e={},$={captions:!0,buttons:"auto",fullScreen:!1,noScrollbars:!1,bodyClass:"baguetteBox-open",titleTag:!1,async:!1,preload:2,animation:"slideIn",afterShow:null,afterHide:null,onChange:null,overlayBackgroundColor:"rgba(0,0,0,.8)"},l={},h=[],s=0,O=!1,o={},b=!1,V=/.+\.(gif|jpe?g|png|webp)/i,m={},f=[],x=null,B=function(e){-1!==e.target.id.indexOf("baguette-img")&&v()},P=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,j()},A=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,y()},R=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,v()},L=function(e){o.count++,1
',e.captions&&c)&&(l=r("figcaption"),l.id="baguetteBox-figcaption-"+t,l.innerHTML=c,s.appendChild(l)),a.appendChild(s),o=r("img"),o.onload=function(){var o=document.querySelector("#baguette-img-"+t+" .baguetteBox-spinner");s.removeChild(o),!e.async&&n&&n()},o.setAttribute("src",m),o.alt=u&&u.alt||"",e.titleTag&&c&&(o.title=c),s.appendChild(o),e.async&&n&&n()}}function y(){return p(s+1)}function j(){return p(s-1)}function p(t,n){return!O&&0<=t&&t=f.length?(e.animation&&H("right"),!1):(_(s=t,function(){C(s),w(s)}),I(),e.onChange&&e.onChange(s,f.length),!0)}function H(e){n.className="bounce-from-"+e,setTimeout(function(){n.className=""},400)}function I(){var t=100*-s+"%";"fadeIn"===e.animation?(n.style.opacity=0,setTimeout(function(){l.transforms?n.style.transform=n.style.webkitTransform="translate3d("+t+",0,0)":n.style.left=t,n.style.opacity=1},400)):l.transforms?n.style.transform=n.style.webkitTransform="translate3d("+t+",0,0)":n.style.left=t}function C(t){t-s>=e.preload||_(t+1,function(){C(t+1)})}function w(t){s-t>=e.preload||_(t-1,function(){w(t-1)})}function c(e,t,n,s){e.addEventListener?e.addEventListener(t,n,s):e.attachEvent("on"+t,function(e){(e=e||window.event).target=e.target||e.srcElement,n(e)})}function i(e,t,n,s){e.removeEventListener?e.removeEventListener(t,n,s):e.detachEvent("on"+t,n)}function g(e){return document.getElementById(e)}function r(e){return document.createElement(e)}return[].forEach||(Array.prototype.forEach=function(e,t){for(var n=0;n":"<","<":">","=":"="},O=[function(e,t){return{modify:function(n){return n+t.Gaps.value*e.index}}},function(e,t){return{modify:function(e){return e+t.Clones.grow/2}}},function(e,t){return{modify:function(n){if(0<=e.settings.focusAt){var s=t.Peek.value;return o(s)?n-s.before:n-s}return n}}},function(e,t){return{modify:function(n){var i=t.Gaps.value,a=t.Sizes.width,s=e.settings.focusAt,o=t.Sizes.slideWidth;return"center"===s?n-(a/2-o/2):n-o*s-i*s}}},function(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}],i=["touchstart","mousedown"],x=["touchmove","mousemove"],w=["touchend","touchcancel","mouseup","mouseleave"],_=["mousedown","mousemove","mouseup","mouseleave"];function j(e){return o(e)?(t=e,Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e[n],e},{})):{};var t}return f={Html:function(t){var s={mount:function(){this.root=t.selector,this.track=this.root.querySelector(A),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.cloneSlide)})}};return e(s,"root",{get:function(){return s._r},set:function(e){d(e)&&(e=document.querySelector(e)),b(e)&&(s._r=e)}}),e(s,"track",{get:function(){return s._t},set:function(e){b(e)&&(s._t=e)}}),e(s,"wrapper",{get:function(){return s.track.children[0]}}),s},Translate:function(e,t,n){var s={set:function(n){var s,o,i=(s=e,o=t,{mutate:function(e){for(var t=0;t")?(t.Transition.after(function(){n.emit("translate.jump"),s.set(0)}),s.set(a*i+r*i)):s.set(o.movement)}),n.on("destroy",function(){s.remove()}),s},Transition:function(t,n,s){var i=!1,o={compose:function(e){var n=t.settings;return i?e+" 0ms "+n.animationTimingFunc:e+" "+this.duration+"ms "+n.animationTimingFunc},set:function(){var e=0"))&&(t._o=!1,o.emit("run.offset",t.move)),o.emit("run.after",t.move),n.enable()}))},calculate:function(){var s=this.move,i=this.length,e=s.steps,r=s.direction,a="number"==typeof t(e)&&0!==t(e);switch(r){case">":">"===e?n.index=i:this.isEnd()?(n.isType("slider")&&!n.settings.rewind||(this._o=!0,n.index=0),o.emit("run.end",s)):a?n.index+=Math.min(i-n.index,-t(e)):n.index++;break;case"<":"<"===e?n.index=0:this.isStart()?(n.isType("slider")&&!n.settings.rewind||(this._o=!0,n.index=i),o.emit("run.start",s)):a?n.index-=Math.min(n.index,t(e)):n.index--;break;case"=":n.index=e}},isStart:function(){return 0===n.index},isEnd:function(){return n.index===this.length},isOffset:function(e){return this._o&&this.move.direction===e}};return e(i,"move",{get:function(){return this._m},set:function(e){this._m={direction:e.substr(0,1),steps:e.substr(1)?e.substr(1):0}}}),e(i,"length",{get:function(){var e=n.settings,o=s.Html.slides.length;return n.isType("slider")&&e.bound?o-1-(t(e.perView)-1)+t(e.focusAt):o-1}}),e(i,"offset",{get:function(){return this._o}}),i},Swipe:function(e,n,o){var a=new s,r=0,d=0,h=0,u=!1,c={mount:function(){this.bindSwipeStart()},start:function(n){if(!u&&!e.disabled){this.disable();var s=this.touches(n);r=null,d=t(s.pageX),h=t(s.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),o.emit("swipe.start")}},move:function(s){if(!e.disabled){var i=e.settings,a=this.touches(s),c=t(a.pageX)-d,u=t(a.pageY)-h,m=Math.abs(c<<2),l=Math.abs(u<<2),f=Math.sqrt(m+l),p=Math.sqrt(l);if(180*(r=Math.asin(p/f))/Math.PI"+i))):n.Move.make(),n.Html.root.classList.remove(a.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),o.emit("swipe.end")}},bindSwipeStart:function(){var t=e.settings;t.swipeThreshold&&a.on(i[0],n.Html.wrapper,this.start.bind(this)),t.dragThreshold&&a.on(i[1],n.Html.wrapper,this.start.bind(this))},unbindSwipeStart:function(){a.off(i[0],n.Html.wrapper),a.off(i[1],n.Html.wrapper)},bindSwipeMove:function(){a.on(x,n.Html.wrapper,l(this.move.bind(this),e.settings.throttle))},unbindSwipeMove:function(){a.off(x,n.Html.wrapper)},bindSwipeEnd:function(){a.on(w,n.Html.wrapper,this.end.bind(this))},unbindSwipeEnd:function(){a.off(w,n.Html.wrapper)},touches:function(e){return-1<_.indexOf(e.type)?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return-1<_.indexOf(t.type)?n.dragThreshold:n.swipeThreshold},enable:function(){return u=!1,n.Transition.enable(),this},disable:function(){return u=!0,n.Transition.disable(),this}};return o.on("build.after",function(){n.Html.root.classList.add(e.settings.classes.swipeable)}),o.on("destroy",function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),a.destroy()}),c},Images:function(e,t,n){var o=new s,i={mount:function(){this.bind()},bind:function(){o.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){o.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",function(){i.unbind(),o.destroy()}),i},Anchors:function(t,n,o){var r=new s,a=!1,c=!1,i={mount:function(){this._a=n.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",n.Html.wrapper,this.click)},unbind:function(){r.off("click",n.Html.wrapper)},click:function(e){e.stopPropagation(),c&&e.preventDefault()},detach:function(){if(c=!0,!a){for(var e=0;e")),37===e.keyCode&&t.Run.make(t.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){i.unbind()}),n.on("update",function(){i.mount()}),n.on("destroy",function(){o.destroy()}),i},Autoplay:function(n,o,i){var r=new s,a={mount:function(){this.start(),n.settings.hoverpause&&this.bind()},start:function(){var e=this;n.settings.autoplay&&g(this._i)&&(this._i=setInterval(function(){e.stop(),o.Run.make(">"),e.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",o.Html.root,function(){e.stop()}),r.on("mouseout",o.Html.root,function(){e.start()})},unbind:function(){r.off(["mouseover","mouseout"],o.Html.root)}};return e(a,"time",{get:function(){var e=o.Html.slides[n.index].getAttribute("data-glide-autoplay");return t(e||n.settings.autoplay)}}),i.on(["destroy","update"],function(){a.unbind()}),i.on(["run.before","pause","destroy","swipe.start","update"],function(){a.stop()}),i.on(["run.after","play","swipe.end"],function(){a.start()}),i.on("update",function(){a.mount()}),i.on("destroy",function(){r.destroy()}),a},Breakpoints:function(e,t,o){var c=new s,a=e.settings,i=a.breakpoints,i=j(i),d=n({},a),r={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: "+t+"px)").matches)return e[t];return d}};return n(a,r.match(i)),c.on("resize",window,l(function(){n(a,r.match(i))},e.settings.throttle)),o.on("update",function(){i=j(i),d=n({},a)}),o.on("destroy",function(){c.off("resize",window)}),r}},function(){function t(){return a(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,m),r(t,[{key:"mount",value:function(){var e=0parseInt(n.split("Firefox/")[1],10);return t.Highcharts?t.Highcharts.error(16,!0):{product:"Highcharts",version:"6.1.0",deg2rad:2*Math.PI/360,doc:s,hasBidiBug:c,hasTouch:s&&void 0!==s.documentElement.ontouchstart,isMS:r,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:o,isChrome:i,isSafari:!i&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:a,win:t,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();return function(e){e.timers=[];var s=e.charts,n=e.doc,t=e.win;e.error=function(n,s){if(n=e.isNumber(n)?"Highcharts error #"+n+": www.highcharts.com/errors/"+n:n,s)throw Error(n);t.console&&console.log(n)},e.Fx=function(e,t,n){this.options=t,this.elem=e,this.prop=n},e.Fx.prototype={dSetter:function(){var s,i=this.paths[0],t=this.paths[1],n=[],o=this.now,e=i.length;if(1===o)n=this.toD;else if(e===t.length&&1>o)for(;e--;)s=parseFloat(i[e]),n[e]=isNaN(s)?t[e]:o*parseFloat(t[e]-s)+s;else n=t;this.elem.attr("d",n,null,!0)},update:function(){var e=this.elem,t=this.prop,n=this.now,s=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,s&&s.call(e,n,this)},run:function(n,s,o){var r=this,a=r.options,i=function(e){return!i.stopped&&r.step(e)},c=t.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(var t=0;t=r+this.startTime?(this.now=this.end,this.pos=1,this.update(),s=c[this.prop]=!0,e.objectEach(c,function(e){!0!==e&&(s=!1)}),s&&a&&a.call(o),t=!1):(this.pos=n.easing((i-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t},initPath:function(t,n,s){function f(e){var t,n;for(o=e.length;o--;)t="M"===e[o]||"L"===e[o],n=/[a-zA-Z]/.test(e[o+3]),t&&n&&e.splice(o+1,0,e[o+1],e[o+2],e[o+1],e[o+2])}function g(e,t){for(;e.lengthe&&-(1/0)=s&&(n=[1/s])));for(o=0;o=t||!i&&r<=(n[o]+(n[o+1]||n[o]))/2);o++);return a=e.correctFloat(a*s,-Math.round(Math.log(.001)/Math.LN10))},e.stableSort=function(e,t){var n,s,o=e.length;for(n=0;nn&&(n=e[t]);return n},e.destroyObjectProperties=function(t,n){e.objectEach(t,function(e,s){e&&e!==n&&e.destroy&&e.destroy(),delete t[s]})},e.discardElement=function(t){var n=e.garbageBin;n||(n=e.createElement("div")),t&&n.appendChild(t),n.innerHTML=""},e.correctFloat=function(e,t){return parseFloat(e.toPrecision(t||14))},e.setAnimation=function(t,n){n.renderer.globalAnimation=e.pick(t,n.options.chart.animation,!0)},e.animObject=function(t){return e.isObject(t)?e.merge(t):{duration:t?500:0}},e.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},e.numberFormat=function(t,n,s,o){t=+t||0,n=+n;var a,c,l=e.defaultOptions.lang,r=(t.toString().split(".")[1]||"").split("e")[0].length,i=t.toString().split("e");return-1===n?n=Math.min(r,20):e.isNumber(n)?n&&i[1]&&0>i[1]&&(a=n+ +i[1],0<=a?(i[0]=(+i[0]).toExponential(a).split("e")[0],n=a):(i[0]=i[0].split(".")[0]||0,t=20>n?(i[0]*Math.pow(10,i[1])).toFixed(n):0,i[1]=0)):n=2,c=(Math.abs(i[1]?i[0]:t)+Math.pow(10,-Math.max(n,r)-1)).toFixed(n),r=String(e.pInt(c)),a=3t?"-":"")+(a?r.substr(0,a)+o:""),t+=r.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+o),n&&(t+=s+c.slice(-n)),i[1]&&0!==+t&&(t+="e"+i[1]),t},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},e.getStyle=function(n,s,o){return"width"===s?Math.min(n.offsetWidth,n.scrollWidth)-e.getStyle(n,"padding-left")-e.getStyle(n,"padding-right"):"height"===s?Math.min(n.offsetHeight,n.scrollHeight)-e.getStyle(n,"padding-top")-e.getStyle(n,"padding-bottom"):(t.getComputedStyle||e.error(27,!0),(n=t.getComputedStyle(n,void 0))&&(n=n.getPropertyValue(s),e.pick(o,"opacity"!==s)&&(n=e.pInt(n))),n)},e.inArray=function(t,n,s){return(e.indexOfPolyfill||Array.prototype.indexOf).call(n,t,s)},e.grep=function(t,n){return(e.filterPolyfill||Array.prototype.filter).call(t,n)},e.find=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,s=e.length;for(n=0;n>16,(t&65280)>>8,t&255,1]:4===s&&(n=[(t&3840)>>4|(t&3840)>>8,(t&240)>>4|t&240,(t&15)<<4|t&15,1])),!n)for(i=this.parsers.length;i--&&!n;)a=this.parsers[i],(s=a.regex.exec(t))&&(n=a.parse(s));this.rgba=n||[]},get:function(e){var o,a=this.input,t=this.rgba;return this.stops?(o=i(a),o.stops=[].concat(o.stops),n(this.stops,function(t,n){o.stops[n]=[o.stops[n][0],t.get(e)]})):o=t&&s(t[0])?"rgb"===e||!e&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===e?t[3]:"rgba("+t.join(",")+")":a,o},brighten:function(e){var o,i=this.rgba;if(this.stops)n(this.stops,function(t){t.brighten(e)});else if(s(e)&&0!==e)for(o=0;3>o;o++)i[o]+=t(255*e),0>i[o]&&(i[o]=0),255o.width)&&(o={width:0,height:0})}else o=this.htmlGetBBox();if(c.isSVG&&(e=o.width,c=o.height,d&&"11px"===d.fontSize&&17===Math.round(c)&&(o.height=c=14),s&&(o.width=Math.abs(c*Math.sin(u))+Math.abs(e*Math.cos(u)),o.height=Math.abs(c*Math.cos(u))+Math.abs(e*Math.sin(u)))),a&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,this.textStr=e,this.added&&this.renderer.buildText(this))},fillSetter:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)},visibilitySetter:function(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e},zIndexSetter:function(e,n){var s,a,d,o=this.renderer,i=this.parentGroup,r=(i||o).element||o.box,l=this.element,o=r===o.box,c=this.added;if(t(e)&&(l.zIndex=e,e=+e,this[n]===e&&(c=!1),this[n]=e),c){(e=this.zIndex)&&i&&(i.handleZ=!0),n=r.childNodes;for(s=n.length-1;0<=s&&!a;s--)i=n[s],c=i.zIndex,d=!t(c),i!==l&&(0>e&&d&&!o&&!s?(r.insertBefore(l,n[s]),a=!0):(u(c)<=e||d&&(!t(e)||0<=e))&&(r.insertBefore(l,n[s+1]||null),a=!0));a||(r.insertBefore(l,n[o?3:0]||null),a=!0)}return a},_defaultSetter:function(e,t,n){n.setAttribute(t,e)}}),s.prototype.yGetter=s.prototype.xGetter,s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.rotationSetter=s.prototype.verticalAlignSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.matrixSetter=function(e,t){this[t]=e,this.doTransform=!0},s.prototype["stroke-widthSetter"]=s.prototype.strokeSetter=function(e,t,n){this[t]=e,this.stroke&&this["stroke-width"]?(s.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},b=e.SVGRenderer=function(){this.init.apply(this,arguments)},i(b.prototype,{Element:s,SVG_NS:g,init:function(e,t,n,s,i,r){var c,l;s=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(s)),l=s.element,e.appendChild(l),o(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&o(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=s,this.alignedObjects=[],this.url=(O||N)&&a.getElementsByTagName("base").length?f.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([(')])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 6.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=i,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),O&&e.getBoundingClientRect&&(t=function(){d(e,{left:0,top:0}),c=e.getBoundingClientRect(),d(e,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})},t(),this.unSubPixelFix=p(f,"resize",t))},getStyle:function(e){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},setStyle:function(e){this.boxWrapper.css(this.getStyle(e))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),T(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:S,getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},getSpanWidth:function(e){return e.getBBox(!0).width},applyEllipsis:function(e,t,n,s){var c,d,u=e.rotation,o=n,r=0,i=n.length,l=function(e){t.removeChild(t.firstChild),e&&t.appendChild(a.createTextNode(e))};if(e.rotation=0,o=this.getSpanWidth(e,t),d=o>s){for(;r<=i;)c=Math.ceil((r+i)/2),o=n.substring(0,c)+"\u2026",l(o),o=this.getSpanWidth(e,t),r===i?r=i+1:o>s?i=c-1:r=c;0===i&&l("")}return e.rotation=u,d},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(e){var m,_,i=e.element,h=this,F=h.forExport,s=n(e.textStr,"").toString(),M=-1!==s.indexOf("<"),x=i.childNodes,j=o(i,"x"),t=e.styles,l=e.textWidth,w=t&&t.lineHeight,f=t&&t.textOutline,p=t&&"ellipsis"===t.textOverflow,O=t&&"nowrap"===t.whiteSpace,E=t&&t.fontSize,A=x.length,t=l&&!e.added&&this.box,S=function(e){var t=/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:E||h.style.fontSize||12;return w?u(w):h.fontMetrics(t,e.getAttribute("style")?e:i).h},v=function(e,t){return c(h.escapes,function(n,s){t&&-1!==y(n,t)||(e=e.toString().replace(new RegExp(n,"g"),s))}),e},b=function(e,t){var n=e.indexOf("<");if(e=e.substring(n,e.indexOf(">")-n),n=e.indexOf(t+"="),-1!==n&&(n=n+t.length+1,t=e.charAt(n),'"'===t||"'"===t))return e=e.substring(n+1),e.substring(0,e.indexOf(t))},C=[s,p,O,w,f,E,l].join();if(C!==e.textCache){for(e.textCache=C;A--;)i.removeChild(x[A]);M||f||p||l||-1!==s.indexOf(" ")?(t&&t.appendChild(i),s=M?s.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[s],s=z(s,function(e){return""!==e}),r(s,function(t,n){var s,c=0;t=t.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),s=t.split("|||"),r(s,function(t){if((""!==t||1===s.length)&&(u={},r=a.createElementNS(h.SVG_NS,"tspan"),(f=b(t,"class"))&&o(r,"class",f),(f=b(t,"style"))&&(f=f.replace(/(;| |^)color([ :])/,"$1fill$2"),o(r,"style",f)),(y=b(t,"href"))&&!F&&(o(r,"onclick",'location.href="'+y+'"'),o(r,"class","highcharts-anchor"),d(r,{cursor:"pointer"})),t=v(t.replace(/<[a-zA-Z/](.|\n)*?>/g,"")||" ")," "!==t)){if(r.appendChild(a.createTextNode(t)),c?u.dx=0:n&&null!==j&&(u.x=j),o(r,u),i.appendChild(r),!c&&_&&(!k&&F&&d(r,{display:"block"}),o(r,"dy",S(r))),l){u=t.replace(/([^\^])-/g,"$1- ").split(" "),y=1l,void 0===m&&(m=t),t&&1!==u.length?(r.removeChild(r.firstChild),w.unshift(u.pop())):(u=w,w=[],u.length&&!O&&(r=a.createElementNS(g,"tspan"),o(r,{dy:C,x:j}),f&&o(r,"style",f),i.appendChild(r)),x>l&&(l=x)),u.length&&r.appendChild(a.createTextNode(u.join(" ").replace(/- /g,"-")));e.rotation=E}c++}}),_=_||i.childNodes.length}),m&&e.attr("title",v(e.textStr,["<",">"])),t&&t.removeChild(i),f&&e.applyTextOutline&&e.applyTextOutline(f)):i.appendChild(a.createTextNode(v(s)))}},getContrast:function(e){return e=F(e).rgba,510Math.abs(a.end-a.start-2*Math.PI));var u=Math.cos(l),h=Math.sin(l),m=Math.cos(c),c=Math.sin(c);return a=.001>a.end-l-Math.PI?0:1,r=["M",e+r*u,s+d*h,"A",r,d,0,a,1,e+r*m,s+d*c],t(o)&&r.push(i?"M":"L",e+o*m,s+o*c,"A",o,o,0,a,0,e+o*u,s+o*h),r.push(i?"":"Z"),r},callout:function(e,t,n,s,o){var c,i=Math.min(o&&o.r||0,n,s),r=i+6,a=o&&o.anchorX;return o=o&&o.anchorY,c=["M",e+i,t,"L",e+n-i,t,"C",e+n,t,e+n,t,e+n,t+i,"L",e+n,t+s-i,"C",e+n,t+s,e+n,t+s,e+n-i,t+s,"L",e+i,t+s,"C",e,t+s,e,t+s,e,t+s-i,"L",e,t+i,"C",e,t,e,t,e+i,t],a&&a>n?o>t+r&&oa?o>t+r&&os&&a>e+r&&ao&&a>e+r&&ae?e+3:Math.round(1.2*e),{h:t,b:Math.round(.8*t),f:e}},rotCorr:function(e,t,n){var s=e;return t&&n&&(s=Math.max(s*Math.cos(t*j),4)),{x:-e/3*Math.sin(t*j),y:s}},label:function(n,o,a,c,d,u,h,m,f){var v,b,_,w,O,C,E,k,F,z,N,L,R,P,y=this,p=y.g("button"!==f&&"label"),g=p.text=y.text("",0,0,h).attr({zIndex:1}),M=0,j=3,S=0,T={},D=/^url\((.*?)\)$/.test(c),A=D;return f&&p.addClass("highcharts-"+f),A=D,N=function(){return(R||0)%2/2},E=function(){var e=g.element.style,n={};b=(void 0===w||void 0===L||O)&&t(g.textStr)&&g.getBBox(),p.width=(w||b.width||0)+2*j+S,p.height=(L||b.height||0)+2*j,z=j+y.fontMetrics(e&&e.fontSize,g).b,A&&(v||(p.box=v=y.symbols[c]||D?y.symbol(c):y.rect(),v.addClass(("button"===f?"":"highcharts-label-box")+(f?" highcharts-"+f+"-box":"")),v.add(p),e=N(),n.x=e,n.y=(m?-z:0)+e),n.width=Math.round(p.width),n.height=Math.round(p.height),v.attr(i(n,T)),T={})},C=function(){var e=S+j,n=m?0:z;t(w)&&b&&("center"===O||"right"===O)&&(e+={center:.5,right:1}[O]*(w-b.width)),(e!==g.x||n!==g.y)&&(g.attr("x",e),void 0!==n&&g.attr("y",n)),g.x=e,g.y=n},_=function(e,t){v?v.attr(e,t):T[e]=t},p.onAdd=function(){g.add(p),p.attr({text:n||0===n?n:"",x:o,y:a}),v&&t(d)&&p.attr({anchorX:d,anchorY:u})},p.widthSetter=function(t){w=e.isNumber(t)?t:null},p.heightSetter=function(e){L=e},p["text-alignSetter"]=function(e){O=e},p.paddingSetter=function(e){t(e)&&e!==j&&(j=p.padding=e,C())},p.paddingLeftSetter=function(e){t(e)&&e!==S&&(S=e,C())},p.alignSetter=function(e){e={left:0,center:.5,right:1}[e],e!==M&&(M=e,b&&p.attr({x:k}))},p.textSetter=function(e){void 0!==e&&g.textSetter(e),E(),C()},p["stroke-widthSetter"]=function(e,t){e&&(A=!0),R=this["stroke-width"]=e,_(t,e)},p.strokeSetter=p.fillSetter=p.rSetter=function(e,t){"r"!==t&&("fill"===t&&e&&(A=!0),p[t]=e),_(t,e)},p.anchorXSetter=function(e,t){d=p.anchorX=e,_(t,Math.round(e)-N()-k)},p.anchorYSetter=function(e,t){u=p.anchorY=e,_(t,e-F)},p.xSetter=function(e){p.x=e,M&&(e-=M*((w||b.width)+2*j),p["forceAnimate:x"]=!0),k=Math.round(e),p.attr("translateX",k)},p.ySetter=function(e){F=p.y=Math.round(e),p.attr("translateY",F)},P=p.css,i(p,{css:function(e){if(e){var t={};e=l(e),r(p.textProps,function(n){void 0!==e[n]&&(t[n]=e[n],delete e[n])}),g.css(t),"width"in t&&E()}return P.call(p,e)},getBBox:function(){return{width:b.width+2*j,height:b.height+2*j,x:b.x-j,y:b.y-j}},shadow:function(e){return e&&(E(),v&&v.shadow(e)),p},destroy:function(){x(p.element,"mouseenter"),x(p.element,"mouseleave"),g&&(g=g.destroy()),v&&(v=v.destroy()),s.prototype.destroy.call(p),p=y=E=C=_=null}})}}),e.Renderer=b}(t),function(e){var c=e.attr,r=e.createElement,t=e.css,i=e.defined,n=e.each,s=e.extend,o=e.isFirefox,l=e.isMS,d=e.isWebKit,u=e.pick,h=e.pInt,m=e.SVGRenderer,a=e.win,f=e.wrap;s(e.SVGElement.prototype,{htmlCss:function(e){var n=this.element;return(n=e&&"SPAN"===n.tagName&&e.width)&&(delete e.width,this.textWidth=n,this.htmlUpdateTransform()),e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden"),this.styles=s(this.styles,e),t(this.element,e),this},htmlGetBBox:function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},htmlUpdateTransform:function(){if(this.added){{var l=this.renderer,e=this.element,f=this.translateX||0,u=this.translateY||0,g=this.x||0,p=this.y||0,c=this.textAlign||"left",d={left:0,center:.5,right:1}[c],s=this.styles,r=s&&s.whiteSpace;if(t(e,{marginLeft:f,marginTop:u}),this.shadows&&n(this.shadows,function(e){t(e,{marginLeft:f+1,marginTop:u+1})}),this.inverted&&n(e.childNodes,function(t){l.invertChild(t,e)}),"SPAN"===e.tagName){var o,s=this.rotation,a=this.textWidth&&h(this.textWidth),m=[s,c,e.innerHTML,this.textWidth,this.textAlign].join();(o=a!==this.oldTextWidth)&&!(o=a>this.oldTextWidth)&&((o=this.textPxLength)||(t(e,{width:"",whiteSpace:r||"nowrap"}),o=e.offsetWidth),o=o>a),o&&/[ -]/.test(e.textContent||e.innerText)&&(t(e,{width:a+"px",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=a),m!==this.cTT&&(r=l.fontMetrics(e.style.fontSize).b,i(s)&&s!==(this.oldRotation||0)&&this.setSpanRotation(s,d,r),this.getSpanCorrection(!i(s)&&this.textPxLength||e.offsetWidth,r,d,s,c)),t(e,{left:g+(this.xCorr||0)+"px",top:p+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=s}}}else this.alignOnAdd=!0},setSpanRotation:function(e,n,s){var i={},a=this.renderer.getTransformKey();i[a]=i.transform="rotate("+e+"deg)",i[a+(o?"Origin":"-origin")]=i.transformOrigin=100*n+"% "+s+"px",t(this.element,i)},getSpanCorrection:function(e,t,n){this.xCorr=-e*n,this.yCorr=-t}}),s(m.prototype,{getTransformKey:function(){return l&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":d?"-webkit-transform":o?"MozTransform":a.opera?"-o-transform":""},html:function(e,t,o){var i=this.createElement("span"),a=i.element,l=i.renderer,d=l.isSVG,h=function(e,t){n(["opacity","visibility"],function(n){f(e,n+"Setter",function(e,n,s,o){e.call(this,n,s,o),t[s]=n})}),e.addedSetters=!0};return i.textSetter=function(e){e!==a.innerHTML&&delete this.bBox,this.textStr=e,a.innerHTML=u(e,""),i.doTransform=!0},d&&h(i,i.element.style),i.xSetter=i.ySetter=i.alignSetter=i.rotationSetter=function(e,t){"align"===t&&(t="textAlign"),i[t]=e,i.doTransform=!0},i.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},i.attr({text:e,x:Math.round(t),y:Math.round(o)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),a.style.whiteSpace="nowrap",i.css=i.htmlCss,d&&(i.add=function(e){var t,d=l.box.parentNode,o=[];if(this.parentGroup=e){if(t=e.div,!t){for(;e;)o.push(e),e=e.parentGroup;n(o.reverse(),function(e){function l(t,s){e[s]=t,"translateX"===s?n.left=t+"px":n.top=t+"px",e.doTransform=!0}var n,a=c(e.element,"class");a&&(a={className:a}),t=e.div=e.div||r("div",a,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",display:e.display,opacity:e.opacity,pointerEvents:e.styles&&e.styles.pointerEvents},t||d),n=t.style,s(e,{classSetter:function(e){return function(t){this.element.setAttribute("class",t),e.className=t}}(t),on:function(){return o[0].div&&i.on.apply({element:o[0].div},arguments),e},translateXSetter:l,translateYSetter:l}),e.addedSetters||h(e,n)})}}else t=d;return t.appendChild(a),i.added=!0,i.alignOnAdd&&i.htmlUpdateTransform(),i}),i}})}(t),function(e){var o=e.defined,i=e.each,a=e.extend,r=e.merge,n=e.pick,t=e.timeUnits,s=e.win;e.Time=function(e){this.update(e,!1)},e.Time.prototype={defaultOptions:{},update:function(t){var o=n(t&&t.useUTC,!0),i=this;this.options=t=r(!0,this.options||{},t),this.Date=t.Date||s.Date,this.timezoneOffset=(this.useUTC=o)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(o&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(e,t){var n=t.getTime(),s=n-i.getTimezoneOffset(t);return t.setTime(s),e=t["getUTC"+e](),t.setTime(n),e},this.set=function(t,n,s){var o;-1!==e.inArray(t,["Milliseconds","Seconds","Minutes"])?n["set"+t](s):(o=i.getTimezoneOffset(n),o=n.getTime()-o,n.setTime(o),n["setUTC"+t](s),t=i.getTimezoneOffset(n),o=n.getTime()+t,n.setTime(o))}):o?(this.get=function(e,t){return t["getUTC"+e]()},this.set=function(e,t,n){return t["setUTC"+e](n)}):(this.get=function(e,t){return t["get"+e]()},this.set=function(e,t,n){return t["set"+e](n)})},makeTime:function(t,s,o,i,a,r){var c,l,d;return this.useUTC?(c=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(c),c+=l,d=this.getTimezoneOffset(c),l!==d?c+=d-l:l-36e5!==this.getTimezoneOffset(c-36e5)||e.isSafari||(c-=36e5)):c=new this.Date(t,s,n(o,1),n(i,0),n(a,0),n(r,0)).getTime(),c},timezoneOffsetFunction:function(){var o=this,t=this.options,n=s.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e).getTimezoneOffset()};if(t.timezone){if(n)return function(e){return 6e4*-n.tz(e,t.timezone).utcOffset()};e.error(25)}return this.useUTC&&t.getTimezoneOffset?function(e){return 6e4*t.getTimezoneOffset(e)}:function(){return 6e4*(o.timezoneOffset||0)}},dateFormat:function(t,n,s){if(!e.defined(n)||isNaN(n))return e.defaultOptions.lang.invalidDate||"";t=e.pick(t,"%Y-%m-%d %H:%M:%S");var d=this,o=new this.Date(n),a=this.get("Hours",o),r=this.get("Day",o),u=this.get("Date",o),l=this.get("Month",o),h=this.get("FullYear",o),c=e.defaultOptions.lang,m=c.weekdays,f=c.shortWeekdays,i=e.pad,o=e.extend({a:f?f[r]:m[r].substr(0,3),A:m[r],d:i(u),e:i(u,2," "),w:r,b:c.shortMonths[l],B:c.months[l],m:i(l+1),y:h.toString().substr(2,2),Y:h,H:i(a),k:a,I:i(a%12||12),l:a%12||12,M:i(d.get("Minutes",o)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:i(o.getSeconds()),L:i(Math.round(n%1e3),3)},e.dateFormats);return e.objectEach(o,function(e,s){for(;-1!==t.indexOf("%"+s);)t=t.replace("%"+s,"function"==typeof e?e.call(d,n):e)}),s?t.substr(0,1).toUpperCase()+t.substr(1):t},getTimeTicks:function(e,s,r,c){var m,p,g,b,l=this,f=[],v={},d=new l.Date(s),u=e.unitRange,h=e.count||1;if(o(s)){l.set("Milliseconds",d,u>=t.second?0:h*Math.floor(l.get("Milliseconds",d)/h)),u>=t.second&&l.set("Seconds",d,u>=t.minute?0:h*Math.floor(l.get("Seconds",d)/h)),u>=t.minute&&l.set("Minutes",d,u>=t.hour?0:h*Math.floor(l.get("Minutes",d)/h)),u>=t.hour&&l.set("Hours",d,u>=t.day?0:h*Math.floor(l.get("Hours",d)/h)),u>=t.day&&l.set("Date",d,u>=t.month?1:h*Math.floor(l.get("Date",d)/h)),u>=t.month&&(l.set("Month",d,u>=t.year?0:h*Math.floor(l.get("Month",d)/h)),m=l.get("FullYear",d)),u>=t.year&&l.set("FullYear",d,m-m%h),u===t.week&&l.set("Date",d,l.get("Date",d)-l.get("Day",d)+n(c,1)),m=l.get("FullYear",d),c=l.get("Month",d),g=l.get("Date",d),b=l.get("Hours",d),s=d.getTime(),l.variableTimezone&&(p=r-s>4*t.month||l.getTimezoneOffset(s)!==l.getTimezoneOffset(r)),d=d.getTime();for(s=1;df.length&&i(f,function(e){0===e%18e5&&"000000000"===l.dateFormat("%H%M%S%L",e)&&(v[e]="day")})}return f.info=a(e,{higherRanks:v,totalRange:u*h}),f}}}(t),function(e){var n=e.color,t=e.merge;e.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:e.Time.prototype.defaultOptions,chart:{borderRadius:0,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},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",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:e.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:e.isTouchDevice?25:10,backgroundColor:n("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},e.setOptions=function(n){return e.defaultOptions=t(!0,e.defaultOptions,n),e.time.update(t(e.defaultOptions.global,e.defaultOptions.time),!1),e.defaultOptions},e.getOptions=function(){return e.defaultOptions},e.defaultPlotOptions=e.defaultOptions.plotOptions,e.time=new e.Time(t(e.defaultOptions.global,e.defaultOptions.time)),e.dateFormat=function(t,n,s){return e.time.dateFormat(t,n,s)}}(t),function(e){var a=e.correctFloat,n=e.defined,r=e.destroyObjectProperties,o=e.fireEvent,i=e.isNumber,c=e.merge,t=e.pick,s=e.deg2rad;e.Tick=function(e,t,n,s){this.axis=e,this.pos=t,this.type=n||"",this.isNewLabel=this.isNew=!0,n||s||this.addLabel()},e.Tick.prototype={addLabel:function(){var f,e=this.axis,r=e.options,u=e.chart,s=e.categories,l=e.names,o=this.pos,d=r.labels,i=e.tickPositions,h=o===i[0],m=o===i[i.length-1],l=s?t(s[o],l[o],o):o,s=this.label,i=i.info;e.isDatetimeAxis&&i&&(f=r.dateTimeLabelFormats[i.higherRanks[o]||i.unitName]),this.isFirst=h,this.isLast=m,r=e.labelFormatter.call({axis:e,chart:u,isFirst:h,isLast:m,dateTimeLabelFormat:f,value:e.isLog?a(e.lin2log(l)):l,pos:o}),n(s)?s&&s.attr({text:r}):((this.label=s=n(r)&&d.enabled?u.renderer.text(r,0,0,d.useHTML).css(c(d.style)).add(e.labelGroup):null)&&(s.textPxLength=s.getBBox().width),this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(e){var l,n=this.axis,v=n.options.labels,r=e.x,h=n.chart.chartWidth,c=n.chart.spacing,f=t(n.labelLeft,Math.min(n.pos,c[3])),c=t(n.labelRight,Math.max(n.isRadial?0:n.pos+n.len,h-c[1])),m=this.label,u=this.rotation,i={left:0,center:.5,right:1}[n.labelAlign||m.attr("align")],a=m.getBBox().width,d=n.getSlotWidth(),o=d,g=1,p={};u||!1===v.overflow?0>u&&r-i*ac&&(l=Math.round((h-r)/Math.cos(u*s))):(h=r+(1-i)*a,r-i*ac&&(o=c-e.x+o*i,g=-1),o=Math.min(d,o),oo||n.autoRotation&&(m.styles||{}).width)&&(l=o),l&&(p.width=l,(v.style||{}).textOverflow||(p.textOverflow="ellipsis"),m.css(p))},getPosition:function(t,n,s,i){var a=this.axis,r=a.chart,c=i&&r.oldChartHeight||r.chartHeight;return t={x:t?e.correctFloat(a.translate(n+s,null,null,i)+a.transB):a.left+a.offset+(a.opposite?(i&&r.oldChartWidth||r.chartWidth)-a.right-a.left:0),y:t?c-a.bottom+a.offset-(a.opposite?a.height:0):e.correctFloat(c-a.translate(n+s,null,null,i)-a.transB)},o(this,"afterGetPosition",{pos:t}),t},getLabelPosition:function(e,t,i,a,r,c,l,d){var u=this.axis,g=u.transA,v=u.reversed,h=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},p=r.y,b=a||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),m={};return n(p)||(p=0===u.side?i.rotation?-8:-i.getBBox().height:2===u.side?f.y+8:Math.cos(i.rotation*s)*(f.y-i.getBBox(!1,0).height/2)),e=e+r.x+b+f.x-(c&&a?c*g*(v?-1:1):0),t=t+p-(c&&!a?c*g*(v?1:-1):0),h&&(i=l/(d||1)%h,u.opposite&&(i=h-i-1),t+=u.labelOffset/h*i),m.x=e,m.y=Math.round(t),o(this,"afterGetLabelPosition",{pos:m}),m},getMarkPath:function(e,t,n,s,o,i){return i.crispLine(["M",e,t,"L",e+(o?0:-n),t+(o?n:0)],s)},renderGridLine:function(e,t,n){var i=this.axis,s=i.options,a=this.gridLine,o={},l=this.pos,r=this.type,d=i.tickmarkOffset,u=i.chart.renderer,c=r?r+"Grid":"grid",h=s[c+"LineWidth"],m=s[c+"LineColor"],s=s[c+"LineDashStyle"];a||(o.stroke=m,o["stroke-width"]=h,s&&(o.dashstyle=s),r||(o.zIndex=1),e&&(o.opacity=0),this.gridLine=a=u.path().attr(o).addClass("highcharts-"+(r?r+"-":"")+"grid-line").add(i.gridGroup)),!e&&a&&(e=i.getPlotLinePath(l+d,a.strokeWidth()*n,e,!0))&&a[this.isNew?"attr":"animate"]({d:e,opacity:t})},renderMark:function(e,n,s){var h,o=this.axis,r=o.options,d=o.chart.renderer,i=this.type,l=i?i+"Tick":"tick",c=o.tickSize(l),a=this.mark,u=!a,m=e.x;e=e.y,h=t(r[l+"Width"],!i&&o.isXAxis?1:0),r=r[l+"Color"],c&&(o.opposite&&(c[0]=-c[0]),u&&(this.mark=a=d.path().addClass("highcharts-"+(i?i+"-":"")+"tick").add(o.axisGroup),a.attr({stroke:r,"stroke-width":h})),a[u?"attr":"animate"]({d:this.getMarkPath(m,e,c[0],a.strokeWidth()*s,o.horiz,d),opacity:n}))},renderLabel:function(e,n,s,o){var a=this.axis,h=a.horiz,l=a.options,r=this.label,c=l.labels,d=c.step,a=a.tickmarkOffset,u=!0,m=e.x;e=e.y,r&&i(m)&&(r.xy=e=this.getLabelPosition(m,e,r,h,c,a,o,d),this.isFirst&&!this.isLast&&!t(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!t(l.showLastLabel,1)?u=!1:!h||c.step||c.rotation||n||0===s||this.handleOverflow(e),d&&o%d&&(u=!1),u&&i(e.y)?(e.opacity=s,r[this.isNewLabel?"attr":"animate"](e),this.isNewLabel=!1):(r.attr("y",-9999),this.isNewLabel=!0))},render:function(n,s,o){var i=this.axis,r=i.horiz,a=this.getPosition(r,this.pos,i.tickmarkOffset,s),c=a.x,l=a.y,i=r&&c===i.pos+i.len||!r&&l===i.pos?-1:1;o=t(o,1),this.isActive=!0,this.renderGridLine(s,o,i),this.renderMark(a,o,i),this.renderLabel(a,s,o,n),this.isNew=!1,e.fireEvent(this,"afterRender")},destroy:function(){r(this,this.axis)}}}(t),n=function(e){var y=e.addEvent,S=e.animObject,l=e.arrayMax,d=e.arrayMin,A=e.color,a=e.correctFloat,m=e.defaultOptions,n=e.defined,x=e.deg2rad,f=e.destroyObjectProperties,s=e.each,O=e.extend,i=e.fireEvent,_=e.format,v=e.getMagnitude,j=e.grep,u=e.inArray,b=e.isArray,o=e.isNumber,p=e.isString,h=e.merge,w=e.normalizeTickInterval,r=e.objectEach,t=e.pick,C=e.removeEvent,E=e.splat,k=e.syncTimeout,c=e.Tick,g=function(){this.init.apply(this,arguments)};return e.extend(g.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,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,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return e.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",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},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(e,s){var a,l,c=s.isX,o=this;o.chart=e,o.horiz=e.inverted&&!o.isZAxis?!c:c,o.isXAxis=c,o.coll=o.coll||(c?"xAxis":"yAxis"),i(this,"init",{userOptions:s}),o.opposite=s.opposite,o.side=s.side||(o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(s),a=this.options,l=a.type,o.labelFormatter=a.labels.formatter||o.defaultLabelFormatter,o.userOptions=s,o.minPixelPadding=0,o.reversed=a.reversed,o.visible=!1!==a.visible,o.zoomEnabled=!1!==a.zoomEnabled,o.hasNames="category"===l||!0===a.categories,o.categories=a.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.isLog="logarithmic"===l,o.isDatetimeAxis="datetime"===l,o.positiveValuesOnly=o.isLog&&!o.allowNegativeLog,o.isLinked=n(a.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=a.minRange||a.maxZoom,o.range=a.range,o.offset=a.offset||0,o.stacks={},o.oldStacks={},o.stacksTouched=0,o.max=null,o.min=null,o.crosshair=t(a.crosshair,E(e.options.tooltip.crosshairs)[c?0:1],!1),s=o.options.events,-1===u(o,e.axes)&&(c?e.axes.splice(e.xAxis.length,0,o):e.axes.push(o),e[o.coll].push(o)),o.series=o.series||[],e.inverted&&!o.isZAxis&&c&&void 0===o.reversed&&(o.reversed=!0),r(s,function(e,t){y(o,t,e)}),o.lin2log=a.linearToLogConverter||o.lin2log,o.isLog&&(o.val2lin=o.log2lin,o.lin2val=o.lin2log),i(this,"afterInit")},setOptions:function(e){this.options=h(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],h(m[this.coll],e)),i(this,"afterSetOptions",{userOptions:e})},defaultLabelFormatter:function(){var s,n=this.axis,t=this.value,o=n.chart.time,d=n.categories,c=this.dateTimeLabelFormat,a=m.lang,r=a.numericSymbols,a=a.numericSymbolMagnitude||1e3,i=r&&r.length,l=n.options.labels.format,n=n.isLog?Math.abs(t):n.tickInterval;if(l)s=_(l,this,o);else if(d)s=t;else if(c)s=o.dateFormat(c,t);else if(i&&1e3<=n)for(;i--&&void 0===s;)o=Math.pow(a,i+1),n>=o&&0===10*t%o&&null!==r[i]&&0!==t&&(s=e.numberFormat(t/o,-1)+r[i]);return void 0===s&&(s=1e4<=Math.abs(t)?e.numberFormat(t,-1):e.numberFormat(t,-1,void 0,"")),s},getSeriesExtremes:function(){var e=this,a=e.chart;i(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),s(e.series,function(s){if(s.visible||!a.options.chart.ignoreHiddenSeries){var r,i=s.options,c=i.threshold;e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=c&&(c=null),e.isXAxis?(i=s.xData,i.length&&(s=d(i),r=l(i),o(s)||s instanceof Date||(i=j(i,o),s=d(i),r=l(i)),i.length&&(e.dataMin=Math.min(t(e.dataMin,i[0],s),s),e.dataMax=Math.max(t(e.dataMax,i[0],r),r)))):(s.getExtremes(),r=s.dataMax,s=s.dataMin,n(s)&&n(r)&&(e.dataMin=Math.min(t(e.dataMin,s),s),e.dataMax=Math.max(t(e.dataMax,r),r)),n(c)&&(e.threshold=c),!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),i(this,"afterGetSeriesExtremes")},translate:function(e,t,n,s,i,a){var u,r=this.linkedParent||this,c=1,d=0,l=s?r.oldTransA:r.transA;return s=s?r.oldMin:r.min,u=r.minPixelPadding,i=(r.isOrdinal||r.isBroken||r.isLog&&i)&&r.lin2val,l||(l=r.transA),n&&(c*=-1,d=r.len),r.reversed&&(c*=-1,d-=c*(r.sector||r.len)),t?(e=(e*c+d-u)/l+s,i&&(e=r.lin2val(e))):(i&&(e=r.val2lin(e)),e=o(s)?c*(e-s)*l+d+c*u+(o(a)?l*a:0):void 0),e},toPixels:function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(e,n,s,i,a){var l,h,c=this.chart,d=this.left,u=this.top,m=s&&c.oldChartHeight||c.chartHeight,p=s&&c.oldChartWidth||c.chartWidth,r=this.transB,f=function(e,t,n){return(en)&&(i?e=Math.min(Math.max(t,e),n):h=!0),e};return a=t(a,this.translate(e,null,null,s)),a=Math.min(Math.max(-1e5,a),1e5),e=s=Math.round(a+r),r=l=Math.round(m-a-r),o(a)?this.horiz?(r=u,l=m-this.bottom,e=s=f(e,d,d+this.width)):(e=d,s=p-this.right,r=l=f(r,u,u+this.height)):(h=!0,i=!1),h&&!i?null:c.renderer.crispLine(["M",e,r,"L",s,l],n||1)},getLinearTickPositions:function(e,t,n){var o,i,r,s=a(Math.floor(t/e)*e);if(n=a(Math.ceil(n/e)*e),o=[],a(s+e)===s&&(r=20),this.single)return[t];for(t=s;t<=n;){if(o.push(t),t=a(t+e,r),t===i)break;i=t}return o},getMinorTickInterval:function(){var e=this.options;return!0===e.minorTicks?t(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},getMinorTickPositions:function(){var e=this,n=e.options,c=e.tickPositions,i=e.minorTickInterval,t=[],o=e.pointRangePadding||0,a=e.min-o,o=e.max+o,r=o-a;if(r&&r/i=this.minRange,a=this.minRange,i=(a-o+e)/2,i=[e-i,t(r.min,e-i)],m&&(i[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),e=l(i),o=[e+a,t(r.max,e+a)],m&&(o[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),o=d(o),o-e=d?(O=d,g=0):c.dataMax<=d&&(x=d,b=0)),c.min=t(f,O,c.dataMin),c.max=t(m,x,c.dataMax)),E&&(c.positiveValuesOnly&&!r&&0>=Math.min(c.min,t(c.dataMin,c.min))&&e.error(10,1),c.min=a(c.log2lin(c.min),15),c.max=a(c.log2lin(c.max),15)),c.range&&n(c.max)&&(c.userMin=c.min=f=Math.max(c.dataMin,c.minFromRange()),c.userMax=m=c.max,c.range=null),i(c,"foundExtremes"),c.beforePadding&&c.beforePadding(),c.adjustForMinRange(),!(y||c.axisPointRange||c.usePercentage||p)&&n(c.min)&&n(c.max)&&(u=c.max-c.min)&&(!n(f)&&g&&(c.min-=u*g),!n(m)&&b&&(c.max+=u*b)),o(l.softMin)&&!o(c.userMin)&&(c.min=Math.min(c.min,l.softMin)),o(l.softMax)&&!o(c.userMax)&&(c.max=Math.max(c.max,l.softMax)),o(l.floor)&&(c.min=Math.max(c.min,l.floor)),o(l.ceiling)&&(c.max=Math.min(c.max,l.ceiling)),_&&n(c.dataMin)&&(d=d||0,!n(f)&&c.min=d?c.min=d:!n(m)&&c.max>d&&c.dataMax<=d&&(c.max=d)),c.tickInterval=c.min===c.max||void 0===c.min||void 0===c.max?1:p&&!h&&j===c.linkedParent.options.tickPixelInterval?h=c.linkedParent.tickInterval:t(h,this.tickAmount?(c.max-c.min)/Math.max(this.tickAmount-1,1):void 0,y?1:(c.max-c.min)*j/Math.max(c.len,j)),k&&!r&&s(c.series,function(e){e.processData(c.min!==c.oldMin||c.max!==c.oldMax)}),c.setAxisTranslation(!0),c.beforeSetTickPositions&&c.beforeSetTickPositions(),c.postProcessTickInterval&&(c.tickInterval=c.postProcessTickInterval(c.tickInterval)),c.pointRange&&!h&&(c.tickInterval=Math.max(c.pointRange,c.tickInterval)),r=t(l.minTickInterval,c.isDatetimeAxis&&c.closestPointRange),!h&&c.tickIntervalc.tickInterval&&1e3c.max)),!!this.tickAmount)),this.tickAmount||(c.tickInterval=c.unsquish()),this.setTickPositions()},setTickPositions:function(){var e,t=this.options,o=t.tickPositions,e=this.getMinorTickInterval(),s=t.tickPositioner,a=t.startOnTick,r=t.endOnTick;this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e,this.single=this.min===this.max&&n(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=e=o&&o.slice(),!e&&(e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.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,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=e=s),this.paddedTicks=e.slice(0),this.trimTicks(e,a,r),this.isLinked||(this.single&&2>e.length&&(this.min-=.5,this.max+=.5),o||s||this.adjustTickAmount()),i(this,"afterSetTickPositions")},trimTicks:function(e,t,s){var o=e[0],i=e[e.length-1],a=this.minPointOffset||0;if(!this.isLinked){if(t&&-(1/0)!==o)this.min=o;else for(;this.min-a>e[0];)e.shift();if(s)this.max=i;else for(;this.max+ae&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var s=this.tickInterval,e=this.tickPositions,o=this.tickAmount,i=this.finalTickAmt,r=e&&e.length,c=t(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(ro&&(this.tickInterval*=2,this.setTickPositions());if(n(i)){for(s=o=e.length;s--;)(3===i&&1===s%2||2>=i&&0o&&(e=o)),n(r)&&(so&&(s=o))),this.displayBtn=void 0!==e||void 0!==s,this.setExtremes(e,s,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var n=this.chart,s=this.options,o=s.offsets||[0,0,0,0],i=this.horiz,a=this.width=Math.round(e.relativeLength(t(s.width,n.plotWidth-o[3]+o[1]),n.plotWidth)),r=this.height=Math.round(e.relativeLength(t(s.height,n.plotHeight-o[0]+o[2]),n.plotHeight)),c=this.top=Math.round(e.relativeLength(t(s.top,n.plotTop+o[0]),n.plotHeight,n.plotTop)),s=this.left=Math.round(e.relativeLength(t(s.left,n.plotLeft+o[3]),n.plotWidth,n.plotLeft));this.bottom=n.chartHeight-r-c,this.right=n.chartWidth-a-s,this.len=Math.max(i?a:r,0),this.pos=i?s:c},getExtremes:function(){var e=this.isLog;return{min:e?a(this.lin2log(this.min)):this.min,max:e?a(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(e){var t=this.isLog,n=t?this.lin2log(this.min):this.min,t=t?this.lin2log(this.max):this.max;return null===e||-(1/0)===e?e=n:1/0===e?e=t:n>e?e=n:te?"right":195e?"left":"center"},tickSize:function(e){var s=this.options,n=s[e+"Length"],o=t(s[e+"Width"],"tick"===e&&this.isXAxis?1:0);if(o&&n)return"inside"===s[e+"Position"]&&(n=-n),[n,o]},labelMetrics:function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},unsquish:function(){var c,l,u,e=this.options.labels,p=this.horiz,i=this.tickInterval,r=i,d=this.len/(((this.categories?1:0)+this.max-this.min)/i),o=e.rotation,h=this.labelMetrics(),m=Number.MAX_VALUE,f=function(e){return e/=d||1,e=1=e)&&(c=f(Math.abs(h.h/Math.sin(x*e))),t=c+Math.abs(e/360),t(e.step||0)&&!e.rotation&&(this.staggerLines||1)*this.len/o||!n&&(e.style&&parseInt(e.style.width,10)||s&&s-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var e,r,h,d=this.chart,g=d.renderer,a=this.tickPositions,m=this.ticks,t=this.options.labels,f=this.horiz,l=this.getSlotWidth(),i=Math.max(1,Math.round(l-2*(t.padding||5))),o={},c=this.labelMetrics(),u=t.style&&t.style.textOverflow,n=0;if(p(t.rotation)||(o.rotation=t.rotation||0),s(a,function(e){(e=m[e])&&e.label&&e.label.textPxLength>n&&(n=e.label.textPxLength)}),this.maxLabelLength=n,this.autoRotation)n>i&&n>c.h?o.rotation=this.labelRotation:this.labelRotation=0;else if(l&&(r=i,!u))for(h="clip",i=a.length;!f&&i--;)(e=a[i],e=m[e].label)&&(e.styles&&"ellipsis"===e.styles.textOverflow?e.css({textOverflow:"clip"}):e.textPxLength>l&&e.css({width:l+"px"}),e.getBBox().height>this.len/a.length-(c.h-c.f)&&(e.specificTextOverflow="ellipsis"));o.rotation&&(r=n>.5*d.chartHeight?.33*d.chartHeight:d.chartHeight,u||(h="ellipsis")),(this.labelAlign=t.align||this.autoLabelAlign(this.labelRotation))&&(o.align=this.labelAlign),s(a,function(e){var n=(e=m[e])&&e.label,s={};n&&(n.attr(o),!r||t.style&&t.style.width||!(r=this.min&&e<=this.max)&&(n[e]||(n[e]=new c(this,e)),i&&n[e].isNew&&n[e].render(t,!0,.1),n[e].render(t))},render:function(){var f,g,t=this,p=t.chart,a=t.options,_=t.isLog,O=t.isLinked,h=t.tickPositions,d=t.axisTitle,m=t.ticks,v=t.minorTicks,n=t.alternateBands,j=a.stackLabels,b=a.alternateGridColor,l=t.tickmarkOffset,u=t.axisLine,y=t.showAxis,w=S(p.renderer.globalAnimation);t.labelEdge.length=0,t.overlap=!1,s([m,v,n],function(e){r(e,function(e){e.isActive=!1})}),(t.hasData()||O)&&(t.minorTickInterval&&!t.categories&&s(t.getMinorTickPositions(),function(e){t.renderMinorTick(e)}),h.length&&(s(h,function(e,n){t.renderTick(e,n)}),l&&(0===t.min||t.single)&&(m[-1]||(m[-1]=new c(t,-1,null,!0)),m[-1].render(-1))),b&&s(h,function(s,o){f=void 0!==h[o+1]?h[o+1]+l:t.max-l,0===o%2&&st&&(!r||d<=a)&&void 0!==d&&u.push(d),d>a&&(f=!0),d=m;else t=this.lin2log(t),a=this.lin2log(a),e=r?this.getMinorTickInterval():l.tickInterval,e=i("auto"===e?null:e,this._minorAutoInterval,l.tickPixelInterval/(r?5:1)*(a-t)/((r?c/this.tickPositions.length:c)||1)),e=o(e,null,n(e)),u=s(this.getLinearTickPositions(e,t,a),this.log2lin),r||(this._minorAutoInterval=e/5);return r||(this.tickInterval=e),u},t.prototype.log2lin=function(e){return Math.log(e)/Math.LN10},t.prototype.lin2log=function(e){return Math.pow(10,e)}}(t),function(e,t){var s=e.arrayMax,o=e.arrayMin,n=e.defined,a=e.destroyObjectProperties,r=e.each,i=e.erase,c=e.merge,l=e.pick;e.PlotLineOrBand=function(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)},e.PlotLineOrBand.prototype={render:function(){var r=this,o=r.axis,m=o.horiz,s=r.options,u=s.label,h=r.label,f=s.to,p=s.from,g=s.value,i=n(p)&&n(f),O=n(g),a=r.svgElem,y=!a,t=[],d=s.color,b=l(s.zIndex,0),j=s.events,t={class:"highcharts-plot-"+(i?"band ":"line ")+(s.className||"")},_={},w=o.chart.renderer,v=i?"bands":"lines";if(o.isLog&&(p=o.log2lin(p),f=o.log2lin(f),g=o.log2lin(g)),O?(t={stroke:d,"stroke-width":s.width},s.dashStyle&&(t.dashstyle=s.dashStyle)):i&&(d&&(t.fill=d),s.borderWidth&&(t.stroke=s.borderColor,t["stroke-width"]=s.borderWidth)),_.zIndex=b,v+="-"+b,(d=o.plotLinesAndBandsGroups[v])||(o.plotLinesAndBandsGroups[v]=d=w.g("plot-"+v).attr(_).add()),y&&(r.svgElem=a=w.path().attr(t).add(d)),O)t=o.getPlotLinePath(g,a.strokeWidth());else if(i)t=o.getPlotBandPath(p,f,s);else return;return y&&t&&t.length?(a.attr({d:t}),j&&e.objectEach(j,function(e,t){a.on(t,function(e){j[t].apply(r,[e])})})):a&&(t?(a.show(),a.animate({d:t})):(a.hide(),h&&(r.label=h=h.destroy()))),u&&n(u.text)&&t&&t.length&&0this.max&&t>this.max,s&&n)for(e&&(r=s.toString()===n.toString(),o=0),e=0;el-r?l:l-r);else if(u)i[e]=Math.max(o,s+r+n>t?s:s+r);else return!1},p=function(e,t,n,s){var o;return st-a?o=!1:i[e]=st-n/2?t-n-2:s-n/2,o},u=function(e){var t=l;l=d,d=t,c=e},h=function(){!1!==f.apply(0,l)?!1!==p.apply(0,d)||c||(u(!0),h()):c?i.x=i.y=0:(u(!0),h())};return(o.inverted||1s&&(l=!1),e=(n.series&&n.series.yAxis&&n.series.yAxis.pos)+(n.plotY||0),e-=i.plotTop,r.push({target:n.isHeader?i.plotHeight+c:e,rank:n.isHeader?1:0,size:f.tt.getBBox().height+1,point:n,x:s,tt:m})}}),this.cleanSplit(),e.distribute(r,i.plotHeight+c),n(r,function(e){var n=e.point,s=n.series;e.tt.attr({visibility:void 0===e.pos?"hidden":"inherit",x:l||n.isHeader?e.x:n.plotX+i.plotLeft+t(a.distance,16),y:e.pos+i.plotTop,anchorX:n.isHeader?n.plotX+i.plotLeft:n.plotX+s.xAxis.pos,anchorY:n.isHeader?e.pos+i.plotTop-15:n.plotY+s.yAxis.pos})})},updatePosition:function(e){var n=this.chart,t=this.getLabel(),t=(this.options.positioner||this.getPosition).call(this,t.width,t.height,e);this.move(Math.round(t.x),Math.round(t.y||0),e.plotX+n.plotLeft,e.plotY+n.plotTop)},getDateFormat:function(e,t,n,s){var i,l,r=this.chart.time,c=r.dateFormat("%m-%d %H:%M:%S.%L",t),a={millisecond:15,second:12,minute:9,hour:6,day:3},d="millisecond";for(i in o){if(e===o.week&&+r.dateFormat("%w",t)===n&&"00:00:00.000"===c.substr(6)){i="week";break}if(o[i]>e){i=d;break}if(a[i]&&c.substr(a[i])!=="01-01 00:00:00.000".substr(a[i]))break;"week"!==i&&(d=i)}return i&&(l=s[i]),l},getXDateFormat:function(e,t,n){t=t.dateTimeLabelFormats;var s=n&&n.closestPointRange;return(s?this.getDateFormat(s,e.x,n.options.startOfWeek,t):t.day)||t.year},tooltipFooterHeaderFormatter:function(e,t){t=t?"footer":"header";var o=e.series,i=o.tooltipOptions,s=i.xDateFormat,a=o.xAxis,d=a&&"datetime"===a.options.type&&l(e.key),r=i[t+"Format"];return d&&!s&&(s=this.getXDateFormat(e,i,a)),d&&s&&n(e.point&&e.point.tooltipDateKeys||["key"],function(e){r=r.replace("{point."+e+"}","{point."+e+":"+s+"}")}),c(r,{point:e,series:o},this.chart.time)},bodyFormatter:function(e){return i(e,function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||"point")+"Format"])})}}}(t),function(e){var i=e.addEvent,g=e.attr,n=e.charts,f=e.color,h=e.css,d=e.defined,t=e.each,o=e.extend,u=e.find,r=e.fireEvent,c=e.isNumber,a=e.isObject,m=e.offset,s=e.pick,p=e.splat,l=e.Tooltip;e.Pointer=function(e,t){this.init(e,t)},e.Pointer.prototype={init:function(e,t){this.options=t,this.chart=e,this.runChartClick=t.chart.events&&!!t.chart.events.click,this.pinchDown=[],this.lastValidTouch={},l&&(e.tooltip=new l(e,t.tooltip),this.followTouchMove=s(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(e){var n=this.chart,o=n.options.chart,t=o.zoomType||"",n=n.inverted;/touch/.test(e.type)&&(t=s(o.pinchType,t)),this.zoomX=e=/x/.test(t),this.zoomY=t=/y/.test(t),this.zoomHor=e&&!n||t&&n,this.zoomVert=t&&!n||e&&n,this.hasZoom=e||t},normalize:function(e,t){var n=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e;return t||(this.chartPosition=t=m(this.chart.container)),o(e,{chartX:Math.round(n.pageX-t.left),chartY:Math.round(n.pageY-t.top)})},getCoordinates:function(e){var n={xAxis:[],yAxis:[]};return t(this.chart.axes,function(t){n[t.isXAxis?"xAxis":"yAxis"].push({axis:t,value:t.toValue(e[t.horiz?"chartX":"chartY"])})}),n},findNearestKDPoint:function(e,n,s){var o;return t(e,function(e){if(t=!(e.noSharedTooltip&&n)&&0>e.options.findNearestPointBy.indexOf("y"),e=e.searchPoint(s,t),(t=a(e,!0))&&!(t=!a(o,!0)))var t=o.distX-e.distX,i=o.dist-e.dist,r=(e.series.group&&e.series.group.zIndex)-(o.series.group&&o.series.group.zIndex),t=0<(0!==t&&n?t:0!==i?i:0!==r?r:o.series.index>e.series.index?-1:1);t&&(o=e)}),o},getPointFromEvent:function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},getChartCoordinatesFromPoint:function(e,t){var n=e.series,i=n.xAxis,n=n.yAxis,a=s(e.clientX,e.plotX),o=e.shapeArgs;if(i&&n)return t?{chartX:i.len+i.pos-a,chartY:n.len+n.pos-e.plotY}:{chartX:a+i.pos,chartY:e.plotY+n.pos};if(o&&o.x&&o.y)return{chartX:o.x,chartY:o.y}},getHoverData:function(n,o,i,r,c,l,d){var h,m=[],f=d&&d.isBoosting;return r=!!r&&!!n,d=o&&!o.stickyTracking?[o]:e.grep(i,function(e){return e.visible&&!(!c&&e.directTouch)&&s(e.options.enableMouseTracking,!0)&&e.stickyTracking}),o=(h=r?n:this.findNearestKDPoint(d,c,l))&&h.series,h&&(c&&!o.noSharedTooltip?(d=e.grep(i,function(e){return e.visible&&!(!c&&e.directTouch)&&s(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),t(d,function(e){var t=u(e.points,function(e){return e.x===h.x&&!e.isNull});a(t)&&(f&&(t=e.getPoint(t)),m.push(t))})):m.push(h)),{hoverPoint:h,hoverSeries:o,hoverPoints:m}},runPointActions:function(o,a){var r=this.chart,d=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,h=!!d&&d.shared,c=a||r.hoverPoint,l=c&&c.series||r.hoverSeries,l=this.getHoverData(c,l,r.series,!!a||l&&l.directTouch&&this.isDirectTouch,h,o,{isBoosting:r.isBoosting}),c=l.hoverPoint,u=l.hoverPoints;if(a=(l=l.hoverSeries)&&l.tooltipOptions.followPointer,h=h&&l&&!l.noSharedTooltip,c&&(c!==r.hoverPoint||d&&d.isHidden)){if(t(r.hoverPoints||[],function(t){-1===e.inArray(t,u)&&t.setState()}),t(u||[],function(e){e.setState("hover")}),r.hoverSeries!==l&&l.onMouseOver(),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!c.series)return;c.firePointEvent("mouseOver"),r.hoverPoints=u,r.hoverPoint=c,d&&d.refresh(h?u:c,o)}else a&&d&&!d.isHidden&&(c=d.getAnchor([{}],o),d.updatePosition({plotX:c[0],plotY:c[1]}));this.unDocMouseMove||(this.unDocMouseMove=i(r.container.ownerDocument,"mousemove",function(t){var s=n[e.hoverChartIndex];s&&s.pointer.onDocumentMouseMove(t)})),t(r.axes,function(t){var n=s(t.crosshair.snap,!0),i=n?e.find(u,function(e){return e.series[t.coll]===t}):void 0;i||!n?t.drawCrosshair(o,i):t.hideCrosshair()})},reset:function(e,n){var s=this.chart,c=s.hoverSeries,o=s.hoverPoint,r=s.hoverPoints,i=s.tooltip,a=i&&i.shared?r:o;e&&a&&t(p(a),function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?i&&a&&(i.refresh(a),o&&(o.setState(o.state,!0),t(s.axes,function(e){e.crosshair&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&t(r,function(e){e.setState()}),c&&c.onMouseOut(),i&&i.hide(n),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),t(s.axes,function(e){e.hideCrosshair()}),this.hoverX=s.hoverPoints=s.hoverPoint=null)},scaleGroups:function(e,n){var o,s=this.chart;t(s.series,function(t){o=e||t.getPlotBox(),t.xAxis&&t.xAxis.zoomEnabled&&t.group&&(t.group.attr(o),t.markerGroup&&(t.markerGroup.attr(o),t.markerGroup.clip(n?s.clipRect:null)),t.dataLabelsGroup&&t.dataLabelsGroup.attr(o))}),s.clipRect.attr(n||s.clipBox)},dragStart:function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},drag:function(e){var h,n=this.chart,r=n.options.chart,t=e.chartX,i=e.chartY,m=this.zoomHor,p=this.zoomVert,o=n.plotLeft,a=n.plotTop,d=n.plotWidth,u=n.plotHeight,s=this.selectionMarker,c=this.mouseDownX,l=this.mouseDownY,g=r.panKey&&e[r.panKey+"Key"];s&&s.touch||(to+d&&(t=o+d),ia+u&&(i=a+u),this.hasDragged=Math.sqrt(Math.pow(c-t,2)+Math.pow(l-i,2)),10f.max&&(t=f.max-d,w=!0),w?(c-=.8*(c-a[u][0]),p||(v-=.8*(v-a[u][1])),n()):a[u]=[c,v],y||(i[u]=j-b,i[O]=d),i=y?1/l:l,o[O]=d,o[u]=t,s[y?e?"scaleY":"scaleX":"scale"+_]=l,s["translate"+_]=i*b+(c-i*h)},pinch:function(e){var n=this,c=n.chart,r=n.pinchDown,l=e.touches,d=l.length,u=n.lastValidTouch,m=n.hasZoom,h=n.selectionMarker,f={},g=1===d&&(n.inClass(e.target,"highcharts-tracker")&&c.runTrackerClick||n.runChartClick),p={};1e-6&&al?this.maxItemWidth:e.itemWidth;o&&this.itemX-s+t>l&&(this.itemX=s,this.itemY+=r+this.lastLineHeight+a,this.lastLineHeight=0),this.lastItemY=r+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=t:(this.itemY+=r+i+a,this.lastLineHeight=i),this.offsetWidth=c||Math.max((o?this.itemX-s-(e.checkbox?0:d):t)+s,this.offsetWidth)},getAllItems:function(){var e=[];return t(this.chart.series,function(t){var s=t&&t.options;t&&n(s.showInLegend,!i(s.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItems||("point"===s.legendType?t.data:t)))}),o(this,"afterGetAllItems",{allItems:e}),e},getAlignment:function(){var e=this.options;return e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},adjustMargins:function(e,s){var o=this.chart,r=this.options,c=this.getAlignment();c&&t([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(t,l){t.test(c)&&!i(e[l])&&(o[a[l]]=Math.max(o[a[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*r[l%2?"x":"y"]+n(r.margin,12)+s[l]+(0===l&&void 0!==o.options.title.margin?o.titleOffset+o.options.title.margin:0)))})},render:function(){var o,i,l,d,r=this.chart,n=r.renderer,c=this.group,e=this.box,a=this.options,u=this.padding;this.itemX=u,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,c||(this.group=c=n.g("legend").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(c),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),o=this.getAllItems(),h(o,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),a.reversed&&o.reverse(),this.allItems=o,this.display=d=!!o.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,t(o,this.renderItem,this),t(o,this.layoutItem,this),l=(a.width||this.offsetWidth)+u,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i),i+=u,e||(this.box=e=n.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(c),e.isNew=!0),e.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),0s&&!1!==f.enabled?(this.clipHeight=m=Math.max(s-20-this.titleHeight-d,0),this.currentPage=n(this.currentPage,1),this.fullHeight=e,t(g,function(e,t){var s=e._legendItemPos[1],o=Math.round(e.legendItem.getBBox().height),n=i.length;(!n||s-i[n-1]>m&&(h||s)!==i[n-1])&&(i.push(h||s),n++),e.pageIx=n-1,h&&(g[t-1].pageIx=n-1),t===g.length-1&&s+o-i[n-1]>m&&(i.push(s),e.pageIx=n),s!==h&&(h=s)}),c||(c=o.clipRect=u.clipRect(0,d,9999,0),o.contentGroup.clip(c)),b(m),r||(this.nav=r=u.g().attr({zIndex:1}).add(this.group),this.up=u.symbol("triangle",0,0,p,p).on("click",function(){o.scroll(-1,v)}).add(r),this.pager=u.text("",15,10).addClass("highcharts-legend-navigation").css(f.style).add(r),this.down=u.symbol("triangle-down",0,0,p,p).on("click",function(){o.scroll(1,v)}).add(r)),o.scroll(0),e=s):r&&(b(),this.nav=r.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){o=this.pages,n=o.length,e=this.currentPage+e;var n,o,i=this.clipHeight,s=this.options.navigation,a=this.pager,r=this.padding;e>n&&(e=n),0d&&(s=typeof t[0],"string"===s?n.name=t[0]:"number"===s&&(n.x=t[0]),a++);r=e.value;)e=n[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor,e},destroy:function(){var n,e=this.series.chart,t=e.hoverPoints;e.pointCount--,t&&(this.setState(),r(t,this),t.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(d(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(n in this)this[n]=null},destroyElements:function(){for(var e,n=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],t=6;t--;)e=n[t],this[e]&&(this[e]=this[e].destroy())},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(e){var n=this.series,s=n.tooltipOptions,r=t(s.valueDecimals,""),o=s.valuePrefix||"",i=s.valueSuffix||"";return a(n.pointArrayMap||["y"],function(t){t="{point."+t,(o||i)&&(e=e.replace(RegExp(t+"}","g"),o+t+"}"+i)),e=e.replace(RegExp(t+"}","g"),t+":,."+r+"f}")}),c(e,{point:this,series:this.series},n.chart.time)},firePointEvent:function(e,t,n){var s=this,i=this.series.options;(i.point.events[e]||s.options&&s.options.events&&s.options.events[e])&&this.importEvents(),"click"===e&&i.allowPointSelect&&(n=function(e){s.select&&s.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),o(this,e,t,n)},visible:!0}}(t),function(e){var r=e.addEvent,h=e.animObject,O=e.arrayMax,j=e.arrayMin,l=e.correctFloat,a=e.defaultOptions,p=e.defaultPlotOptions,s=e.defined,n=e.each,u=e.erase,b=e.extend,i=e.fireEvent,v=e.grep,f=e.isArray,o=e.isNumber,g=e.isString,m=e.merge,c=e.objectEach,t=e.pick,y=e.removeEvent,_=e.splat,w=e.SVGElement,d=e.syncTimeout,x=e.win;e.Series=e.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?"":e.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:e.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(e,s){var a,d,o=this,l=e.series;o.chart=e,o.options=s=o.setOptions(s),o.linkedSeries=[],o.bindAxes(),b(o,{name:s.name,state:"",visible:!1!==s.visible,selected:!0===s.selected}),a=s.events,c(a,function(e,t){r(o,t,e)}),(a&&a.click||s.point&&s.point.events&&s.point.events.click||s.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),n(o.parallelArrays,function(e){o[e+"Data"]=[]}),o.setData(s.data,!1),o.isCartesian&&(e.hasCartesianSeries=!0),l.length&&(d=l[l.length-1]),o._i=t(d&&d._i,-1)+1,e.orderSeries(this.insert(l)),i(this,"afterInit")},insert:function(e){var n,s=this.options.index;if(o(s)){for(n=e.length;n--;)if(s>=t(e[n].options.index,e[n]._i)){e.splice(n+1,0,this);break}-1===n&&e.unshift(this),n+=1}else e.push(this);return t(n,e.length-1)},bindAxes:function(){var o,t=this,s=t.options,i=t.chart;n(t.axisTypes||[],function(a){n(i[a],function(e){o=e.options,(s[a]===o.index||void 0!==s[a]&&s[a]===o.id||void 0===s[a]&&0===o.index)&&(t.insert(e.series),t[a]=e,e.isDirty=!0)}),t[a]||t.optionalAxis===a||e.error(18,!0)})},updateParallelArrays:function(e,t){var s=e.series,i=arguments,a=o(t)?function(n){var o="y"===n&&s.toYData?s.toYData(e):e[n];s[n+"Data"][t]=o}:function(e){Array.prototype[t].apply(s[e+"Data"],Array.prototype.slice.call(i,2))};n(s.parallelArrays,a)},autoIncrement:function(){var o,e=this.options,s=this.xIncrement,i=e.pointIntervalUnit,n=this.chart.time,s=t(s,e.pointStart,0);return this.pointInterval=o=t(this.pointInterval,e.pointInterval,1),i&&(e=new n.Date(s),"day"===i?n.set("Date",e,n.get("Date",e)+o):"month"===i?n.set("Month",e,n.get("Month",e)+o):"year"===i&&n.set("FullYear",e,n.get("FullYear",e)+o),o=e.getTime()-s),this.xIncrement=s+o,s},setOptions:function(e){var n=this.chart,c=n.options,o=c.plotOptions,r=(n.userOptions||{}).plotOptions||{},l=o[this.type];return this.userOptions=e,n=m(l,o.series,e),this.tooltipOptions=m(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,c.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,e.tooltip),this.stickyTracking=t(e.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!!(this.tooltipOptions.shared&&!this.noSharedTooltip)||n.stickyTracking),null===l.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,e=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||e.push({value:n[this.zoneAxis+"Threshold"]||n.threshold||0,className:"highcharts-negative",color:n.negativeColor,fillColor:n.negativeFillColor}),e.length&&s(e[e.length-1].value)&&e.push({color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:n}),n},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(e,n,o){var i,a=this.chart,c=this.userOptions,r=e+"Index",l=e+"Counter",d=o?o.length:t(a.options.chart[e+"Count"],a[e+"Count"]);n||(i=t(c[r],c["_"+r]),s(i)||(a.series.length||(a[l]=0),c["_"+r]=i=a[l]%d,a[l]+=1),o&&(n=o[i])),void 0!==i&&(this[r]=i),this[e]=n},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||p[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:e.LegendSymbolMixin.drawLineMarker,updateData:function(t){var i,c,l,a=this.options,s=this.points,r=[],d=this.requireSorting;if(n(t,function(t){var n=e.defined(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t).x;o(n)&&(n=e.inArray(n,this.xData,l),-1===n?r.push(t):t!==a.data[n]?(s[n].update(t,!1,null,!1),s[n].touched=!0,d&&(l=n)):s[n]&&(s[n].touched=!0),c=!0)},this),c)for(t=s.length;t--;)i=s[t],i.touched||i.remove(!1),i.touched=!1;else if(t.length===s.length)n(t,function(e,t){s[t].update&&e!==a.data[t]&&s[t].update(e,!1,null,!1)});else return!1;return n(r,function(e){this.addPoint(e,!1)},this),!0},setData:function(s,i,a,r){var d,w,c=this,u=c.points,v=u&&u.length||0,b=c.options,j=c.chart,l=null,m=c.xAxis,y=b.turboThreshold,p=this.xData,h=this.yData,_=(d=c.pointArrayMap)&&d.length;if(s=s||[],d=s.length,i=t(i,!0),!1!==r&&d&&v&&!c.cropped&&!c.hasGroupedData&&c.visible&&(w=this.updateData(s)),!w){if(c.xIncrement=null,c.colorCounter=0,n(this.parallelArrays,function(e){c[e+"Data"].length=0}),y&&d>y){for(a=0;null===l&&as||this.forceCrop)&&(n[o-1]d?(n=[],u=[]):(n[0]d)&&(a=this.cropData(this.xData,this.yData,l,d),n=a.xData,u=a.yData,a=a.start,h=!0));for(s=n.length||1;--s;)o=g?r(n[s])-r(n[s-1]):n[s]-n[s-1],0o&&f&&(e.error(15),f=!1);this.cropped=h,this.cropStart=a,this.processedXData=n,this.processedYData=u,this.closestPointRange=c},cropData:function(e,n,s,o,i){var a,l=e.length,r=0,c=l;i=t(i,this.cropShoulder,1);for(a=0;a=s){r=Math.max(0,a-i);break}for(s=a;so){c=s+i;break}return{xData:e.slice(r,c),yData:n.slice(r,c),start:r,end:c}},generatePoints:function(){var e,n,s,l,o=this.options,a=o.data,t=this.data,r=this.processedXData,m=this.processedYData,u=this.pointClass,c=r.length,d=this.cropStart||0,i=this.hasGroupedData,o=o.keys,h=[];t||i||(t=[],t.length=a.length,t=this.data=t),o&&i&&(this.options.keys=!1);for(e=0;e=h&&(c[n-d]||i)<=m,s&&i)if(s=t.length)for(;s--;)"number"==typeof t[s]&&(r[l++]=t[s]);else r[l++]=t;this.dataMin=j(r),this.dataMax=O(r)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var a,u,h,p,v,b,r=this.options,O=r.stacking,f=this.xAxis,y=f.categories,d=this.yAxis,w=this.points,E=w.length,C=!!this.modifyValue,c=r.pointPlacement,x="between"===c||o(c),g=r.threshold,_=r.startFromThreshold?g:0,j=Number.MAX_VALUE;"between"===c&&(c=.5),o(c)&&(c*=t(r.pointRange||f.pointRange));for(r=0;r=n&&(e.isNull=!0),e.plotX=u=l(Math.min(Math.max(-1e5,f.translate(m,0,0,0,1,c,"flags"===this.type)),1e5)),O&&this.visible&&!e.isNull&&p&&p[m]&&(v=this.getStackIndicator(v,m,this.index),h=p[m],n=h.points[v.key],a=n[0],n=n[1],a===_&&v.key===p[m].base&&(a=t(o(g)&&g,d.min)),d.positiveValuesOnly&&0>=a&&(a=null),e.total=e.stackTotal=h.total,e.percentage=h.total&&e.y/h.total*100,e.stackY=n,h.setOffset(this.pointXOffset||0,this.barW||0)),e.yBottom=s(a)?Math.min(Math.max(-1e5,d.translate(a,0,1,0,1)),1e5):null,C&&(n=this.modifyValue(n,e)),e.plotY=a="number"==typeof n&&1/0!==n?Math.min(Math.max(-1e5,d.translate(n,0,1,0,1)),1e5):void 0,e.isInside=void 0!==a&&0<=a&&a<=d.len&&0<=u&&u<=f.len,e.clientX=x?l(f.translate(m,0,0,0,1,c)):u,e.negative=e.y<(g||0),e.category=y&&void 0!==y[e.x]?y[e.x]:e.x,e.isNull||(void 0!==b&&(j=Math.min(j,Math.abs(u-b))),b=u),e.zone=this.zones.length&&e.getZone()}this.closestPointRangePx=j,i(this,"afterTranslate")},getValidPoints:function(e,t){var n=this.chart;return v(e||this.points||[],function(e){return!(t&&!n.isInsidePlot(e.plotX,e.plotY,n.inverted))&&!e.isNull})},setClip:function(e){var t=this.chart,a=this.options,c=t.renderer,o=t.inverted,r=this.clipBox,i=r||t.clipBox,n=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,i.height,a.xAxis,a.yAxis].join(),s=t[n],l=t[n+"m"];s||(e&&(i.width=0,o&&(i.x=t.plotSizeX),t[n+"m"]=l=c.clipRect(o?t.plotSizeX+99:-99,o?-t.plotLeft:-t.plotTop,99,o?t.chartWidth:t.chartHeight)),t[n]=s=c.clipRect(i),s.count={length:0}),e&&!s.count[this.index]&&(s.count[this.index]=!0,s.count.length+=1),!1!==a.clip&&(this.group.clip(e||r?s:t.clipRect),this.markerGroup.clip(l),this.sharedClipKey=n),e||(s.count[this.index]&&(delete s.count[this.index],--s.count.length),0===s.count.length&&n&&t[n]&&(r||(t[n]=t[n].destroy()),t[n+"m"]&&(t[n+"m"]=t[n+"m"].destroy())))},animate:function(e){var n,t=this.chart,s=h(this.options.animation);e?this.setClip(s):(n=this.sharedClipKey,(e=t[n])&&e.animate({width:t.plotSizeX,x:0},s),t[n+"m"]&&t[n+"m"].animate({width:t.plotSizeX+99,x:0},s),this.animate=null)},afterAnimate:function(){this.setClip(),i(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var e,n,s,i,a,r,c,d,l=this.points,h=this.chart,o=this.options.marker,u=this[this.specialGroup]||this.markerGroup,m=t(o.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(r=0;ro&&s.shadow)),i&&(i.startX=t.xMap,i.isArea=t.isArea)})},getZonesGraphs:function(e){return n(this.zones,function(t,n){e.push(["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(t.className||""),t.color||this.color,t.dashStyle||this.options.dashStyle])},this),e},applyZones:function(){var e,i,a,c,l,d,f,p,b,v=this,s=this.chart,y=s.renderer,j=this.zones,r=this.clips||[],u=this.graph,h=this.area,m=Math.max(s.chartWidth,s.chartHeight),o=this[(this.zoneAxis||"y")+"Axis"],g=s.inverted,_=!1;j.length&&(u||h)&&o&&void 0!==o.min&&(p=o.reversed,c=o.horiz,u&&!this.showLine&&u.hide(),h&&h.hide(),l=o.getExtremes(),n(j,function(n,j){a=p?c?s.plotWidth:0:c?0:o.toPixels(l.min),a=Math.min(Math.max(t(i,a),0),m),i=Math.min(Math.max(Math.round(o.toPixels(t(n.value,l.max),!0)),0),m),_&&(a=i=o.toPixels(l.max)),b=Math.abs(a-i),d=Math.min(a,i),f=Math.max(a,i),o.isXAxis?(e={x:g?f:d,y:0,width:b,height:m},c||(e.x=s.plotHeight-e.x)):(e={x:0,y:g?f:d,width:m,height:b},c&&(e.y=s.plotWidth-e.y)),g&&y.isVML&&(e=o.isXAxis?{x:0,y:p?d:f,height:e.width,width:s.chartWidth}:{x:e.y-s.plotLeft-s.spacingBox.x,y:0,width:e.height,height:s.chartHeight}),r[j]?r[j].animate(e):(r[j]=y.clipRect(e),u&&v["zone-graph-"+j].clip(r[j]),h&&v["zone-area-"+j].clip(r[j])),_=n.value>l.max,v.resetZones&&0===i&&(i=void 0)}),this.clips=r)},invertGroups:function(e){function s(){n(["group","markerGroup"],function(n){t[n]&&(o.renderer.isVML&&t[n].attr({width:t.yAxis.len,height:t.xAxis.len}),t[n].width=t.yAxis.len,t[n].height=t.xAxis.len,t[n].invert(e))})}var i,t=this,o=t.chart;t.xAxis&&(i=r(o,"resize",s),r(t,"destroy",i),s(e),t.invertGroups=s)},plotGroup:function(e,t,n,o,i){var a=this[e],r=!a;return r&&(this[e]=a=this.chart.renderer.g().attr({zIndex:o||.1}).add(i)),a.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(s(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(a.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),a.attr({visibility:n})[r?"attr":"animate"](this.getPlotBox()),a},getPlotBox:function(){var t=this.chart,n=this.xAxis,e=this.yAxis;return t.inverted&&(n=e,e=this.xAxis),{translateX:n?n.left:t.plotLeft,translateY:e?e.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var e=this,t=e.chart,n=e.options,s=!!e.animate&&t.renderer.isSVG&&h(n.animation).duration,a=e.visible?"inherit":"hidden",r=n.zIndex,c=e.hasRendered,l=t.seriesGroup,u=t.inverted,o=e.plotGroup("group","series",a,r,l);e.markerGroup=e.plotGroup("markerGroup","markers",a,r,l),s&&e.animate(!0),o.inverted=!!e.isCartesian&&u,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(u),!1===n.clip||e.sharedClipKey||c||o.clip(t.clipRect),s&&e.animate(),c||(e.animationTimeout=d(function(){e.afterAnimate()},s)),e.isDirty=!1,e.hasRendered=!0,i(e,"afterRender")},redraw:function(){var e=this.chart,i=this.isDirty||this.isDirtyData,n=this.group,s=this.xAxis,o=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:t(s&&s.left,e.plotLeft),translateY:t(o&&o.top,e.plotTop)})),this.translate(),this.render(),i&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var n=this.xAxis,s=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?s.len-e.chartX+s.pos:e.chartY-s.pos},t)},buildKDTree:function(){function t(n,s,o){var i,a;if(i=n&&n.length)return a=e.kdAxisArray[s%o],n.sort(function(e,t){return e[a]-t[a]}),i=Math.floor(i/2),{point:n[i],left:t(n.slice(0,i),s+1,o),right:t(n.slice(i+1),s+1,o)}}this.buildingKdTree=!0;var e=this,n=-1h?"left":"right",f=0>h?"right":"left",t[d]&&(d=a(e,t[d],c+1,l),m=d[n]l;)i--;this.updateParallelArrays(a,"splice",i,0,0),this.updateParallelArrays(a,i),r&&a.name&&(r[l]=a.name),h.splice(i,0,e),m&&(this.data.splice(i,0,null),this.processData()),"point"===u.legendType&&this.generatePoints(),s&&(c[0]&&c[0].remove?c[0].remove(!1):(c.shift(),this.updateParallelArrays(a,"shift"),h.shift())),this.isDirtyData=this.isDirty=!0,n&&f.redraw(o)},removePoint:function(e,n,s){var o=this,a=o.data,i=a[e],r=o.points,c=o.chart,l=function(){r&&r.length===a.length&&r.splice(e,1),a.splice(e,1),o.options.data.splice(e,1),o.updateParallelArrays(i||{series:o},"splice",e,1),i&&i.destroy(),o.isDirty=!0,o.isDirtyData=!0,n&&c.redraw()};w(s,c),n=t(n,!0),i?i.firePointEvent("remove",null,l):l()},remove:function(e,n,s){function r(){a.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),t(e,!0)&&o.redraw(n)}var a=this,o=a.chart;!1!==s?i(a,"remove",null,r):r()},update:function(a,l){var p,d=this,h=d.chart,m=d.userOptions,f=d.oldType||d.type,v=a.type||m.type||h.options.chart.type,y=c[f].prototype,g=["group","markerGroup","dataLabelsGroup"],u=["navigatorSeries","baseSeries"],_=d.finishedAnimating&&{animation:!1},w=["data","name","turboThreshold"],b=e.keys(a),j=0e&&a>o?(a=Math.max(e,o),i=2*o-a):as&&i>o?(i=Math.max(s,o),a=2*o-i):i=Math.abs(t)&&.5e.closestPointRange*e.xAxis.transA,d=e.borderWidth=n(c.borderWidth,d?0:1),o=e.yAxis,l=c.threshold,a=e.translatedThreshold=o.getThreshold(l),i=n(c.minPointLength,5),h=e.getColumnMetrics(),m=h.width,u=e.barW=Math.max(m,1+2*d),f=e.pointXOffset=h.offset;r.inverted&&(a-=.5),c.pointPadding&&(u=Math.ceil(u)),s.prototype.translate.apply(e),t(e.points,function(t){var v,h=n(t.yBottom,a),s=999+Math.abs(h),s=Math.min(Math.max(-s,t.plotY),o.len+s),c=t.plotX+f,p=u,g=Math.min(s,h),d=Math.max(s,h)-g;i&&Math.abs(d)i?h-i:a-(v?i:0)),t.barX=c,t.pointWidth=m,t.tooltipPos=r.inverted?[o.len+o.pos-r.plotLeft-s,e.xAxis.len-c-p/2,d]:[c+p/2,s+o.pos-r.plotTop,d],t.shapeType="rect",t.shapeArgs=e.crispCol.apply(e,t.isNull?[c,a,p,0]:[c,g,p,d])})},getSymbol:e.noop,drawLegendSymbol:e.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(e,t){var i,r=this.options,s=this.pointAttrToOptions||{},i=s.stroke||"borderColor",c=s["stroke-width"]||"borderWidth",n=e&&e.color||this.color,l=e&&e[i]||r[i]||this.color||n,d=e&&e[c]||r[c]||this[c]||0,s=r.dashStyle;return e&&this.zones.length&&(n=e.getZone(),n=e.options.color||n&&n.color||this.color),t&&(e=o(r.states[t],e.options.states&&e.options.states[t]||{}),t=e.brightness,n=e.color||void 0!==t&&a(n).brighten(e.brightness).get()||n,l=e[i]||l,d=e[c]||d,s=e.dashStyle||s),i={fill:n,stroke:l,"stroke-width":d},s&&(i.dashstyle=s),i},drawPoints:function(){var s,n=this,i=this.chart,e=n.options,a=i.renderer,r=e.animationLimit||250;t(n.points,function(t){var l=t.graphic,d=l&&i.pointCount\u25cf
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&t.prototype.drawGraph.call(this)}})}(t),function(e){var t=e.deg2rad,n=e.isNumber,s=e.pick,o=e.relativeLength;e.CenteredSeriesMixin={getCenter:function(){var t,r,n=this.options,i=this.chart,a=2*(n.slicedOffset||0),c=i.plotWidth-2*a,i=i.plotHeight-2*a,e=n.center,e=[s(e[0],"50%"),s(e[1],"50%"),n.size||"100%",n.innerSize||0],l=Math.min(c,i);for(t=0;4>t;++t)r=e[t],n=2>t||2===t&&/%$/.test(r),e[t]=o(r,[c,i,l,e[2]][t])+(n?a:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(e,s){return e=n(e)?e:0,s=n(s)&&s>e&&360>s-e?s:e+360,{start:t*(e+-90),end:t*(s+-90)}}}}(t),function(e){var o=e.addEvent,a=e.CenteredSeriesMixin,r=e.defined,n=e.each,c=e.extend,l=a.getStartAndEndRadians,s=e.inArray,i=e.noop,t=e.pick,d=e.Point,u=e.Series,h=e.seriesType,m=e.setAnimation;h("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!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:e.seriesTypes.column.prototype.pointAttribs,animate:function(e){var t=this,o=t.points,s=t.startAngleRad;e||(n(o,function(e){var n=e.graphic,o=e.shapeArgs;n&&(n.attr({r:e.startR||t.center[3]/2,start:s,end:s}),n.animate({r:o.r,start:o.start,end:o.end},t.options.animation))}),t.animate=null)},updateTotals:function(){var e,t,n=0,s=this.points,o=s.length,i=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?s-=2*Math.PI:s<-Math.PI/2&&(s+=2*Math.PI),n.slicedTranslation={translateX:Math.round(Math.cos(s)*u),translateY:Math.round(Math.sin(s)*u)},i=Math.cos(s)*e[2]/2,c=Math.sin(s)*e[2]/2,n.tooltipPos=[e[0]+.7*i,e[1]+.7*c],n.half=s<-Math.PI/2||s>Math.PI/2?1:0,n.angle=s,a=Math.min(v,n.labelDistance/5),n.labelPos=[e[0]+i+Math.cos(s)*n.labelDistance,e[1]+c+Math.sin(s)*n.labelDistance,e[0]+i+Math.cos(s)*a,e[1]+c+Math.sin(s)*a,e[0]+i,e[1]+c,0>n.labelDistance?"center":n.half?"right":"left",s]},drawGraph:null,drawPoints:function(){var t,s,i,a,e=this,o=e.chart.renderer,r=e.options.shadow;r&&!e.shadowGroup&&(e.shadowGroup=o.g("shadow").add(e.group)),n(e.points,function(n){if(t=n.graphic,n.isNull)t&&(n.graphic=t.destroy());else{a=n.shapeArgs,s=n.getTranslate();var l=n.shadowGroup;r&&!l&&(l=n.shadowGroup=o.g("shadow").add(e.shadowGroup)),l&&l.attr(s),i=e.pointAttribs(n,n.selected&&"select"),t?t.setRadialReference(e.center).attr(i).animate(c(a,s)):(n.graphic=t=o[n.shapeType](a).setRadialReference(e.center).attr(s).add(e.group),n.visible||t.attr({visibility:"hidden"}),t.attr(i).attr({"stroke-linejoin":"round"}).shadow(r,l)),t.addClass(n.getClassName())}})},searchPoint:i,sortByAngle:function(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})},drawLegendSymbol:e.LegendSymbolMixin.drawRectangle,getCenter:a.getCenter,getSymbol:i},{init:function(){d.prototype.init.apply(this,arguments);var n,e=this;return e.name=t(e.name,"Slice"),n=function(t){e.slice("select"===t.type)},o(e,"select",n),o(e,"unselect",n),e},isValid:function(){return e.isNumber(this.y,!0)&&0<=this.y},setVisible:function(e,o){var i=this,a=i.series,r=a.chart,c=a.options.ignoreHiddenPoint;o=t(o,c),e!==i.visible&&(i.visible=i.options.visible=e=void 0===e?!i.visible:e,a.options.data[s(i,a.data)]=i.options,n(["graphic","dataLabel","connector","shadowGroup"],function(t){i[t]&&i[t][e?"show":"hide"](!0)}),i.legendItem&&r.legend.colorizeItem(i,e),e||"hover"!==i.state||i.setState(""),c&&(a.isDirty=!0),o&&r.redraw())},slice:function(e,n,o){var i=this.series;m(o,i.chart),t(n,!0),this.sliced=this.options.sliced=r(e)?e:!this.sliced,i.options.data[s(this,i.data)]=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(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:this.shapeArgs.r-1,start:t.start,end:t.end})}})}(t),function(e){var p=e.addEvent,h=e.arrayMax,o=e.defined,n=e.each,r=e.extend,d=e.format,f=e.map,l=e.merge,m=e.noop,t=e.pick,u=e.relativeLength,i=e.Series,s=e.seriesTypes,c=e.some,a=e.stableSort;e.distribute=function(s,o,i){function h(e,t){return e.target-t.target}var r,d=!0,l=s,m=[],u=0,p=l.reducedLen||o;for(r=s.length;r--;)u+=s[r].size;if(u>p){a(s,function(e,t){return(t.rank||0)-(e.rank||0)});for(u=r=0;u<=p;)u+=s[r].size,r++;m=s.splice(r-1,s.length)}a(s,h);for(s=f(s,function(e){return{size:e.size,targets:[e.target],align:t(e.align,.5)}});d;){for(r=s.length;r--;)d=s[r],u=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=Math.min(Math.max(0,u-d.size*d.align),o-d.size);r=s.length;for(d=!1;r--;)0s[r].pos&&(s[r-1].size+=s[r].size,s[r-1].targets=s[r-1].targets.concat(s[r].targets),s[r-1].align=.5,s[r-1].pos+s[r-1].size>o&&(s[r-1].pos=o-s[r-1].size),s.splice(r,1),d=!0)}l.push.apply(l,m),r=0,c(s,function(t){var s=0;if(c(t.targets,function(){if(l[r].pos=t.pos+s,Math.abs(l[r].pos-l[r].target)>i)return n(l.slice(0,r+1),function(e){delete e.pos}),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&e.distribute(l,o,i),!0;s+=l[r].size,r++}))return!0}),a(l,h)},i.prototype.drawDataLabels=function(){function j(e,t){var n=t.filter;return!n||(t=n.operator,e=e[n.property],n=n.value,">"===t&&e>n||"<"===t&&e="===t&&e>=n||"<="===t&&e<=n||"=="===t&&e==n||"==="===t&&e===n)}var a,c,u,h,i=this,g=i.chart,r=i.options,s=r.dataLabels,b=i.points,m=i.hasRendered||0,v=t(s.defer,!!r.animation),f=g.renderer;(s.enabled||i._hasPointLabels)&&(i.dlProcessOptions&&i.dlProcessOptions(s),u=i.plotGroup("dataLabelsGroup","data-labels",v&&!m?"hidden":"visible",s.zIndex||6),v&&(u.attr({opacity:+m}),m||p(i,"afterAnimate",function(){i.visible&&u.show(!0),u[r.animation?"animate":"attr"]({opacity:1},{duration:200})})),h=s,n(b,function(n){var p,v,b,y,m=n.dataLabel,_=n.connector,w=!m;c=n.dlOptions||n.options&&n.options.dataLabels,(b=t(c&&c.enabled,h.enabled)&&!n.isNull)&&(b=!0===j(n,c||s)),b&&(s=l(h,c),v=n.getLabelConfig(),p=s[n.formatPrefix+"Format"]||s.format,a=o(p)?d(p,v,g.time):(s[n.formatPrefix+"Formatter"]||s.formatter).call(v,s),p=s.style,v=s.rotation,p.color=t(s.color,p.color,i.color,"#000000"),"contrast"===p.color&&(n.contrastColor=f.getContrast(n.color||i.color),p.color=s.inside||0>t(n.labelDistance,s.distance)||r.stacking?n.contrastColor:"#000000"),r.cursor&&(p.cursor=r.cursor),y={fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.borderWidth,r:s.borderRadius||0,rotation:v,padding:s.padding,zIndex:1},e.objectEach(y,function(e,t){void 0===e&&delete y[t]})),!m||b&&o(a)?b&&o(a)&&(m?y.text=a:(m=n.dataLabel=v?f.text(a,0,-9999).addClass("highcharts-data-label"):f.label(a,0,-9999,s.shape,null,null,s.useHTML,null,"data-label"),m.addClass(" highcharts-data-label-color-"+n.colorIndex+" "+(s.className||"")+(s.useHTML?"highcharts-tracker":""))),m.attr(y),m.css(p).shadow(s.shadow),m.added||m.add(u),i.alignDataLabel(n,m,s,null,w)):(n.dataLabel=m=m.destroy(),_&&(n.connector=_.destroy()))})),e.fireEvent(this,"afterDrawDataLabels")},i.prototype.alignDataLabel=function(e,n,s,o,i){var h,l=this.chart,u=l.inverted,a=t(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),d=t(e.plotY,-9999),c=n.getBBox(),m=s.rotation,f=s.align,p=this.visible&&(e.series.forceDL||l.isInsidePlot(a,Math.round(d),u)||o&&l.isInsidePlot(a,u?o.x+1:o.y+o.height-1,u)),g="justify"===t(s.overflow,"justify");p&&(h=s.style.fontSize,h=l.renderer.fontMetrics(h,n).b,o=r({x:u?this.yAxis.len-d:a,y:Math.round(u?this.xAxis.len-a:d),width:0,height:0},o),r(s,{width:c.width,height:c.height}),m?(g=!1,a=l.renderer.rotCorr(h,m),a={x:o.x+s.x+o.width/2+a.x,y:o.y+s.y+{top:0,middle:.5,bottom:1}[s.verticalAlign]*o.height},n[i?"attr":"animate"](a).attr({align:f}),d=(m+720)%360,d=180d,"left"===f?a.y-=d?c.height:0:"center"===f?(a.x-=c.width/2,a.y-=c.height/2):"right"===f&&(a.x-=c.width,a.y-=d?0:c.height),n.placed=!0,n.alignAttr=a):(n.align(s,null,o),a=n.alignAttr),g?e.isLabelJustified=this.justifyDataLabel(n,s,a,c,o,i):t(s.crop,!0)&&(p=l.isInsidePlot(a.x,a.y)&&l.isInsidePlot(a.x+c.width,a.y+c.height)),s.shape&&!m)&&n[i?"attr":"animate"]({anchorX:u?l.plotWidth-e.plotY:e.plotX,anchorY:u?l.plotHeight-e.plotX:e.plotY}),p||(n.attr({y:-9999}),n.placed=!1)},i.prototype.justifyDataLabel=function(e,t,n,s,o,i){var r,c=this.chart,d=t.align,u=t.verticalAlign,l=e.box?0:e.padding||0,a=n.x+l;return 0>a&&("right"===d?t.align="left":t.x=-a,r=!0),a=n.x+s.width-l,a>c.plotWidth&&("left"===d?t.align="right":t.x=c.plotWidth-a,r=!0),a=n.y+l,0>a&&("bottom"===u?t.verticalAlign="top":t.y=-a,r=!0),a=n.y+s.height-l,a>c.plotHeight&&("top"===u?t.verticalAlign="bottom":t.y=c.plotHeight-a,r=!0),r&&(e.placed=!i,e.align(t,null,o)),r},s.pie&&(s.pie.prototype.drawDataLabels=function(){var a,r,d,u,m,g,v,j,y,w,s=this,S=s.data,f=s.chart,l=s.options.dataLabels,p=t(l.connectorPadding,10),x=t(l.connectorWidth,1),A=f.plotWidth,k=f.plotHeight,E=Math.round(f.chartWidth/3),O=s.center,b=O[2]/2,_=O[1],C=[[],[]],c=[0,0,0,0];s.visible&&(l.enabled||s._hasPointLabels)&&(n(S,function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.dataLabel.shortened=!1)}),i.prototype.drawDataLabels.apply(s),n(S,function(e){e.dataLabel&&e.visible&&(C[e.half].push(e),e.dataLabel._pos=null,!o(l.style.width)&&!o(e.options.dataLabels&&e.options.dataLabels.style&&e.options.dataLabels.style.width)&&e.dataLabel.getBBox().width>E&&(e.dataLabel.css({width:.7*E}),e.dataLabel.shortened=!0))}),n(C,function(i,u){var h,x,E,S=i.length,C=[];if(S)for(s.sortByAngle(i,u-.5),0a.bottom-2?h:r,u,a),d._attr={visibility:v,align:g[6]},d._pos={x:m+l.x+({left:p,right:-p}[g[6]]||0),y:r+l.y-10},g.x=m,g.y=r,t(l.crop,!0)&&(j=d.getBBox().width,h=null,m-jA-p&&0===u&&(h=Math.round(m+j-A+p),c[1]=Math.max(h,c[1])),0>r-y/2?c[0]=Math.max(Math.round(-r+y/2),c[0]):r+y/2>k&&(c[2]=Math.max(Math.round(r+y/2-k),c[2])),d.sideOverflow=h)}),0===h(c)||this.verifyDataLabelOverflow(c))&&(this.placeDataLabels(),x&&n(this.points,function(e){var t;u=e.connector,(d=e.dataLabel)&&d._pos&&e.visible&&0t(this.translatedThreshold,d.yAxis.len)),h=t(s.inside,!!this.options.stacking);r&&(o=l(r),0>o.y&&(o.height+=o.y,o.y=0),r=o.y+o.height-d.yAxis.len,0e+n||o+at+s||i+rthis.pointCount))},pan:function(e,n){var i,s=this,o=s.hoverPoints;o&&t(o,function(e){e.setState()}),t("xy"===n?[1,0]:[1],function(t){t=s[t?"xAxis":"yAxis"][0];var d=t.horiz,u=e[d?"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",a=s[d],l=(t.pointRange||0)/2,n=t.reversed&&!s.inverted||!t.reversed&&s.inverted?-1:1,r=t.getExtremes(),o=t.toValue(a-u,!0)+l*n,n=t.toValue(a+t.len-u,!0)-l*n,c=n=t(s.minWidth,0)&&this.chartHeight>=t(s.minHeight,0)}).call(this)&&n.push(e._id)},n.prototype.currentOptions=function(t){function n(t,s,c,l){var d;e.objectEach(t,function(e,t){if(!l&&-10)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+s}function s(e,t,n,s){var o=s;"string"==typeof s&&(o=function(){return this[s]()}),e&&(X[e]=o),t&&(X[t[0]]=function(){return M(o.apply(this,arguments),t[1],t[2])}),n&&(X[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function _n(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ce(e,t){return e.isValid()?(t=Ft(t,e.localeData()),nt[t]=nt[t]||function(e){var n,s,t=e.match(it);for(n=0,s=t.length;n=0&&Oe.test(e);)e=e.replace(Oe,s),Oe.lastIndex=0,n-=1;return e}function n(e,t,n){Pe[e]=k(t)?t:function(e){return e&&n?n:t}}function tn(e,t){return u(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(function(e){return U(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\][]*)\]|\\(.)/g,function(e,t,n,s,o){return t||n||s||o}))}(e))}function U(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),B(t)&&(s=function(e,n){n[t]=i(e)}),n=0;n=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function re(e,t,n){var s=7+t-n;return-((7+J(e,0,s).getUTCDay()-t)%7)+s-1}function vt(e,t,n,s,o){var a,r,i=1+7*(t-1)+(7+n-s)%7+re(e,s,o);return i<=0?r=se(a=e-1)+i:i>se(e)?(a=e+1,r=i-se(e)):(a=e,r=i),{year:a,dayOfYear:r}}function Z(e,t,n){var o,i,a=re(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?o=s+W(i=e.year()-1,t,n):s>W(e.year(),t,n)?(o=s-W(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function W(e,t,n){var s=re(e,t,n),o=re(e+1,t,n);return(se(e)-s+o)/7}function Ye(){function o(e,t){return t.length-e.length}var e,i,a,r,c,l=[],n=[],s=[],t=[];for(e=0;e<7;e++)i=E([2e3,1]).day(e),a=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),c=this.weekdays(i,""),l.push(a),n.push(r),s.push(c),t.push(a),t.push(r),t.push(c);for(l.sort(o),n.sort(o),s.sort(o),t.sort(o),e=0;e<7;e++)n[e]=U(n[e]),s[e]=U(s[e]),t[e]=U(t[e]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function qe(){return this.hours()%12||12}function Gt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Zt(e,t){return t._meridiemParse}function Ht(e){return e&&e.toLowerCase().replace("_","-")}function Qe(e){var t=null;if(!f[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=xe._abbr,require("./locale/"+e),K(t)}catch{}return f[e]}function K(e,t){var n;return e&&(n=g(t)?P(e):We(e,t))&&(xe=n),xe._abbr}function We(e,t){if(null!==t){var n=ot;if(t.abbr=e,null!=f[e])Yt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=f[e]._config;else if(null!=t.parentLocale){if(null==f[t.parentLocale])return ae[t.parentLocale]||(ae[t.parentLocale]=[]),ae[t.parentLocale].push({name:e,config:t}),null;n=f[t.parentLocale]._config}return f[e]=new Ae(Jt(n,t)),ae[e]&&ae[e].forEach(function(e){We(e.name,e.config)}),K(e),f[e]}return delete f[e],null}function P(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xe;if(!C(e)){if(t=Qe(e))return t;e=[e]}return function(e){for(var t,n,o,i,s=0;s0;){if(i=Qe(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&St(o,n,!0)>=t-1)break;t--}s++}return null}(e)}function Ze(e){var n,t=e._a;return t&&-2===o(e).overflow&&(n=t[F]<0||t[F]>11?F:t[S]<1||t[S]>de(t[O],t[F])?S:t[m]<0||t[m]>24||24===t[m]&&(0!==t[w]||0!==t[T]||0!==t[V])?m:t[w]<0||t[w]>59?w:t[T]<0||t[T]>59?T:t[V]<0||t[V]>999?V:-1,o(e)._overflowDayOfYear&&(nS)&&(n=S),o(e)._overflowWeeks&&-1===n&&(n=yn),o(e)._overflowWeekday&&-1===n&&(n=jn),o(e).overflow=n),e}function Y(e,t,n){return e??t??n}function Xe(e){var n,s,i,a,c,r=[];if(!e._d){for(i=function(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[S]&&null==e._a[F]&&function(e){if(null!=(t=e._w).GG||null!=t.W||null!=t.E)s=1,a=4,r=Y(t.GG,e._a[O],Z(d(),1,4).year),i=Y(t.W,1),((n=Y(t.E,1))<1||n>7)&&(c=!0);else{s=e._locale._week.dow,a=e._locale._week.doy;var t,n,s,i,a,r,c,l,u=Z(d(),s,a);r=Y(t.gg,e._a[O],u.year),i=Y(t.w,u.week),null!=t.d?((n=t.d)<0||n>6)&&(c=!0):null!=t.e?(n=t.e+s,(t.e<0||t.e>6)&&(c=!0)):n=s}i<1||i>W(r,s,a)?o(e)._overflowWeeks=!0:c!=null?o(e)._overflowWeekday=!0:(l=vt(r,i,n,s,a),e._a[O]=l.year,e._dayOfYear=l.dayOfYear)}(e),null!=e._dayOfYear&&(a=Y(e._a[O],i[O]),(e._dayOfYear>se(a)||0===e._dayOfYear)&&(o(e)._overflowDayOfYear=!0),s=J(a,0,e._dayOfYear),e._a[F]=s.getUTCMonth(),e._a[S]=s.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=r[n]=i[n];for(;n<7;n++)e._a[n]=r[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[m]&&0===e._a[w]&&0===e._a[T]&&0===e._a[V]&&(e._nextDay=!0,e._a[m]=0),e._d=(e._useUTC?J:function(e,t,n,s,o,i,a){var r=new Date(e,t,n,s,o,i,a);return e<100&&e>=0&&isFinite(r.getFullYear())&&r.setFullYear(e),r}).apply(null,r),c=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[m]=24),e._w&&void 0!==e._w.d&&e._w.d!==c&&(o(e).weekdayMismatch=!0)}}function rt(e){var t,s,i,a,r,c,l=e._i,n=sn.exec(l)||$n.exec(l);if(n){for(o(e).iso=!0,t=0,s=Ce.length;t0&&o(e).unusedInput.push(c),n=n.slice(n.indexOf(s)+s.length),l+=s.length),X[i]?(s?o(e).empty=!1:o(e).unusedTokens.push(i),on(i,s,e)):e._strict&&!s&&o(e).unusedTokens.push(i);o(e).charsLeftOver=d-l,n.length>0&&o(e).unusedInput.push(n),e._a[m]<=12&&!0===o(e).bigHour&&e._a[m]>0&&(o(e).bigHour=void 0),o(e).parsedDateParts=e._a.slice(0),o(e).meridiem=e._meridiem,e._a[m]=function(e,t,n){var s;return n==null?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[m],e._meridiem),Xe(e),Ze(e)}else yt(e);else rt(e)}function wt(e){var n=e._i,s=e._f;return e._locale=e._locale||P(e._l),null===n||void 0===s&&""===n?ge({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),H(n)?new ne(Ze(n)):(he(n)?e._d=n:C(s)?function(e){var t,n,s,i,a;if(0===e._f.length)return o(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;si&&(t=i),function(e,t,n,s,o){var a=vt(e,t,n,s,o),i=J(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,s,o))}function vn(e,t){t[V]=i(1e3*("0."+e))}function Ot(e){return e}function ve(e,t,n,s){var o=P(),i=E().set(s,t);return o[n](i,e)}function _t(e,t,n){if(B(e)&&(t=e,e=void 0),e=e||"",t!=null)return ve(e,t,n,"month");var s,o=[];for(s=0;s<12;s++)o[s]=ve(e,s,n,"month");return o}function Ve(e,t,n,s){"boolean"==typeof e?(B(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,B(t)&&(n=t,t=void 0),t=t||"");var o,i,r=P(),a=e?r._week.dow:0;if(n!=null)return ve(t,(n+a)%7,s,"day");i=[];for(o=0;o<7;o++)i[o]=ve(t,(o+a)%7,s,"day");return i}function jt(e,t,n,s){var o=x(t,n);return e._milliseconds+=s*o._milliseconds,e._days+=s*o._days,e._months+=s*o._months,e._bubble()}function st(e){return e<0?Math.floor(e):Math.ceil(e)}function bt(e){return 4800*e/146097}function Ke(e){return 146097*e/4800}function N(e){return function(){return this.as(e)}}function $(e){return function(){return this.isValid()?this._data[e]:NaN}}function G(e){return(e>0)-(e<0)||+e}function ue(){if(!this.isValid())return this.localeData().invalidDate();var o,t=Ge(this._milliseconds)/1e3,h=Ge(this._days),r=Ge(this._months),p=y((o=y(t/60))/60);t%=60,o%=60;var d=y(r/12),l=r%=12,c=h,n=p,a=o,i=t?t.toFixed(3).replace(/\.?0+$/,""):"",e=this.asSeconds();if(!e)return"P0D";var m=e<0?"-":"",u=G(this._months)!==G(e)?"-":"",f=G(this._days)!==G(e)?"-":"",s=G(this._milliseconds)!==G(e)?"-":"";return m+"P"+(d?u+d+"Y":"")+(l?u+l+"M":"")+(c?f+c+"D":"")+(n||a||i?"T":"")+(n?s+n+"H":"")+(a?s+a+"M":"")+(i?s+i+"S":"")}var Vn=Array.prototype.some?Array.prototype.some:function(e){for(var n=Object(this),s=n.length>>>0,t=0;t68?1900:2e3)},Me=q("FullYear",!0),h=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:ge()}),ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];Xt("Z",":"),Xt("ZZ",""),n("Z",be),n("ZZ",be),c(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Se(be,e)}),qt=/([+-]|\d\d)/gi,t.updateOffset=function(){},Kt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,x.fn=ye.prototype,x.invalid=function(){return x(NaN)},$t=Lt(1,"add"),Vt=Lt(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Le=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),s(0,["gg",2],0,function(){return this.weekYear()%100}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100}),je("gggg","weekYear"),je("ggggg","weekYear"),je("GGGG","isoWeekYear"),je("GGGGG","isoWeekYear"),v("weekYear","gg"),v("isoWeekYear","GG"),p("weekYear",1),p("isoWeekYear",1),n("G",pe),n("g",pe),n("GG",l,b),n("gg",l,b),n("GGGG",Ue,tt),n("gggg",Ue,tt),n("GGGGG",fe,le),n("ggggg",fe,le),Q(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=i(e)}),Q(["gg","GG"],function(e,n,s,o){n[o]=t.parseTwoDigitYear(e)}),s("Q",0,"Qo","quarter"),v("quarter","Q"),p("quarter",7),n("Q",lt),c("Q",function(e,t){t[F]=3*(i(e)-1)}),s("D",["DD",2],"Do","date"),v("date","D"),p("date",9),n("D",l),n("DD",l,b),n("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),c(["D","DD"],S),c("Do",function(e,t){t[S]=i(e.match(l)[0])}),He=q("Date",!0),s("DDD",["DDDD",3],"DDDo","dayOfYear"),v("dayOfYear","DDD"),p("dayOfYear",4),n("DDD",me),n("DDDD",ut),c(["DDD","DDDD"],function(e,t,n){n._dayOfYear=i(e)}),s("m",["mm",2],0,"minute"),v("minute","m"),p("minute",14),n("m",l),n("mm",l,b),c(["m","mm"],w),Nt=q("Minutes",!1),s("s",["ss",2],0,"second"),v("second","s"),p("second",15),n("s",l),n("ss",l,b),c(["s","ss"],T),Dt=q("Seconds",!1),s("S",0,0,function(){return~~(this.millisecond()/100)}),s(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond()}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),v("millisecond","ms"),p("millisecond",16),n("S",me,lt),n("SS",me,b),n("SSS",me,ut);for(R="SSSS";R.length<=9;R+="S")n(R,Bn);for(R="S";R.length<=9;R+="S")c(R,vn);Mt=q("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName"),e=ne.prototype,e.add=$t,e.calendar=function(e,n){var o=e||d(),i=ke(o,this).startOf("day"),s=t.calendarFormat(this,i)||"sameElse",a=n&&(k(n[s])?n[s].call(this,o):n[s]);return this.format(a||this.localeData().calendar(s,this,d(o)))},e.clone=function(){return new ne(this)},e.diff=function(e,t,n){var s,o,i;if(!this.isValid())return NaN;if(!(s=ke(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=j(t)){case"year":o=ze(this,s)/12;break;case"month":o=ze(this,s);break;case"quarter":o=ze(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-i)/864e5;break;case"week":o=(this-s-i)/6048e5;break;default:o=this-s}return n?o:y(o)},e.endOf=function(e){return void 0===(e=j(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},e.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=ce(this,e);return this.localeData().postformat(n)},e.from=function(e,t){return this.isValid()&&(H(e)&&e.isValid()||d(e).isValid())?x({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},e.fromNow=function(e){return this.from(d(),e)},e.to=function(e,t){return this.isValid()&&(H(e)&&e.isValid()||d(e).isValid())?x({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},e.toNow=function(e){return this.to(d(),e)},e.get=function(e){return e=j(e),k(this[e])?this[e]():this},e.invalidAt=function(){return o(this).overflow},e.isAfter=function(e,t){var n=H(e)?e:d(e);return!!this.isValid()&&!!n.isValid()&&("millisecond"===(t=j(g(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?ce(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",ce(t,"Z")):ce(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},e.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";e="moment",t="",this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var e,t,n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+o)},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},e.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},e.year=Me,e.isLeapYear=function(){return we(this.year())},e.weekYear=function(e){return Et.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},e.isoWeekYear=function(e){return Et.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},e.quarter=e.quarters=function(e){return e==null?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},e.month=ct,e.daysInMonth=function(){return de(this.year(),this.month())},e.week=e.weeks=function(e){var t=this.localeData().week(this);return e==null?t:this.add(7*(e-t),"d")},e.isoWeek=e.isoWeeks=function(e){var t=Z(this,1,4).week;return e==null?t:this.add(7*(e-t),"d")},e.weeksInYear=function(){var e=this.localeData()._week;return W(this.year(),e.dow,e.doy)},e.isoWeeksInYear=function(){return W(this.year(),1,4)},e.date=He,e.day=e.days=function(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},e.weekday=function(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")},e.isoWeekday=function(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},e.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")},e.hour=e.hours=nn,e.minute=e.minutes=Nt,e.second=e.seconds=Dt,e.millisecond=e.milliseconds=Mt,e.utcOffset=function(e,n,s){var o,i=this._offset||0;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if("string"==typeof e){if(null===(e=Se(be,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&n&&(o=Ee(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?Tt(this,x(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ee(this)},e.utc=function(e){return this.utcOffset(0,e)},e.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ee(this),"m")),this},e.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Se(Cn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this},e.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?d(e).utcOffset():0,(this.utcOffset()-e)%60==0)},e.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},e.isLocal=function(){return!!this.isValid()&&!this._isUTC},e.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},e.isUtc=en,e.isUTC=en,e.zoneAbbr=function(){return this._isUTC?"UTC":""},e.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},e.dates=_("dates accessor is deprecated. Use date instead.",He),e.months=_("months accessor is deprecated. Use month instead",ct),e.years=_("years accessor is deprecated. Use year instead",Me),e.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return e!=null?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),e.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var t,e={};return Ie(e,this),(e=wt(e))._a?(t=e._isUTC?E(e._a):d(e._a),this._isDSTShifted=this.isValid()&&St(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}),r=Ae.prototype,r.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return k(s)?s.call(t,n):s},r.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},r.invalidDate=function(){return this._invalidDate},r.ordinal=function(e){return this._ordinal.replace("%d",e)},r.preparse=Ot,r.postformat=Ot,r.relativeTime=function(e,t,n,s){var o=this._relativeTime[n];return k(o)?o(e,t,n,s):o.replace(/%d/i,e)},r.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},r.set=function(e){var t,n;for(t in e)k(n=e[t])?this[t]=n:this["_"+t]=n;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},r.months=function(e,t){return e?C(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pt).test(t)?"format":"standalone"][e.month()]:C(this._months)?this._months:this._months.standalone},r.monthsShort=function(e,t){return e?C(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pt.test(t)?"format":"standalone"][e.month()]:C(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},r.monthsParse=function(e,t,n){var s,o,i;if(this._monthsParseExact)return function(e,t,n){var s,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)a=E([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(s=h.call(this._shortMonthsParse,i))?s:null:-1!==(s=h.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=h.call(this._shortMonthsParse,i))?s:-1!==(s=h.call(this._longMonthsParse,i))?s:null:-1!==(s=h.call(this._longMonthsParse,i))?s:-1!==(s=h.call(this._shortMonthsParse,i))?s:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(o=E([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},r.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||at.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=gn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},r.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||at.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=xn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},r.week=function(e){return Z(e,this._week.dow,this._week.doy).week},r.firstDayOfYear=function(){return this._week.doy},r.firstDayOfWeek=function(){return this._week.dow},r.weekdays=function(e,t){return e?C(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:C(this._weekdays)?this._weekdays:this._weekdays.standalone},r.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},r.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},r.weekdaysParse=function(e,t,n){var s,o,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=E([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=h.call(this._weekdaysParse,o))?s:null:"ddd"===t?-1!==(s=h.call(this._shortWeekdaysParse,o))?s:null:-1!==(s=h.call(this._minWeekdaysParse,o))?s:null:"dddd"===t?-1!==(s=h.call(this._weekdaysParse,o))?s:-1!==(s=h.call(this._shortWeekdaysParse,o))?s:-1!==(s=h.call(this._minWeekdaysParse,o))?s:null:"ddd"===t?-1!==(s=h.call(this._shortWeekdaysParse,o))?s:-1!==(s=h.call(this._weekdaysParse,o))?s:-1!==(s=h.call(this._minWeekdaysParse,o))?s:null:-1!==(s=h.call(this._minWeekdaysParse,o))?s:-1!==(s=h.call(this._weekdaysParse,o))?s:-1!==(s=h.call(this._shortWeekdaysParse,o))?s:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(o=E([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},r.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=mn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},r.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},r.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=un),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},r.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},r.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},K("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===i(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",K),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",P);var z=Math.abs,En=N("ms"),kn=N("s"),An=N("m"),Sn=N("h"),Mn=N("d"),Fn=N("w"),Tn=N("M"),zn=N("y"),Dn=$("milliseconds"),Nn=$("seconds"),Ln=$("minutes"),Rn=$("hours"),Pn=$("days"),Hn=$("months"),In=$("years"),D=Math.round,A={ss:44,s:45,m:45,h:22,d:26,M:11},Ge=Math.abs,a=ye.prototype;return a.isValid=function(){return this._isValid},a.abs=function(){var e=this._data;return this._milliseconds=z(this._milliseconds),this._days=z(this._days),this._months=z(this._months),e.milliseconds=z(e.milliseconds),e.seconds=z(e.seconds),e.minutes=z(e.minutes),e.hours=z(e.hours),e.months=z(e.months),e.years=z(e.years),this},a.add=function(e,t){return jt(this,e,t,1)},a.subtract=function(e,t){return jt(this,e,t,-1)},a.as=function(e){if(!this.isValid())return NaN;var t,s,n=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+n/864e5,s=this._months+bt(t),"month"===e?s:s/12;switch(t=this._days+Math.round(Ke(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},a.asMilliseconds=En,a.asSeconds=kn,a.asMinutes=An,a.asHours=Sn,a.asDays=Mn,a.asWeeks=Fn,a.asMonths=Tn,a.asYears=zn,a.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*i(this._months/12):NaN},a._bubble=function(){var o,i,a,r,c,s=this._milliseconds,e=this._days,t=this._months,n=this._data;return s>=0&&e>=0&&t>=0||s<=0&&e<=0&&t<=0||(s+=864e5*st(Ke(t)+e),e=0,t=0),n.milliseconds=s%1e3,o=y(s/1e3),n.seconds=o%60,i=y(o/60),n.minutes=i%60,a=y(i/60),n.hours=a%24,e+=y(a/24),r=y(bt(e)),t+=r,e-=st(Ke(r)),c=y(t/12),t%=12,n.days=e,n.months=t,n.years=c,this},a.clone=function(){return x(this)},a.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},a.milliseconds=Dn,a.seconds=Nn,a.minutes=Ln,a.hours=Rn,a.days=Pn,a.weeks=function(){return y(this.days()/7)},a.months=Hn,a.years=In,a.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var s=x(e).abs(),o=D(s.as("s")),a=D(s.as("m")),r=D(s.as("h")),c=D(s.as("d")),l=D(s.as("M")),d=D(s.as("y")),i=o<=A.ss&&["s",o]||o0,i[4]=n,function(e,t,n,s,o){return o.relativeTime(t||1,!!n,e,s)}.apply(null,i)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},a.toISOString=ue,a.toString=ue,a.toJSON=ue,a.locale=At,a.localeData=kt,a.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ue),a.lang=Le,s("X",0,0,"unix"),s("x",0,0,"valueOf"),n("x",pe),n("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),c("x",function(e,t,n){n._d=new Date(i(e))}),t.version="2.20.1",function(e){ft=e}(d),t.fn=e,t.min=function(){return Bt("isBefore",[].slice.call(arguments,0))},t.max=function(){return Bt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=E,t.unix=function(e){return d(1e3*e)},t.months=function(e,t){return _t(e,t,"months")},t.isDate=he,t.locale=K,t.invalid=ge,t.duration=x,t.isMoment=H,t.weekdays=function(e,t,n){return Ve(e,t,n,"weekdays")},t.parseZone=function(){return d.apply(null,arguments).parseZone()},t.localeData=P,t.isDuration=Ne,t.monthsShort=function(e,t){return _t(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return Ve(e,t,n,"weekdaysMin")},t.defineLocale=We,t.updateLocale=function(e,t){if(t!=null){var n,s,o=ot;null!=(s=Qe(e))&&(o=s._config),(n=new Ae(t=Jt(o,t))).parentLocale=f[e],f[e]=n,K(e)}else null!=f[e]&&(null!=f[e].parentLocale?f[e]=f[e].parentLocale:null!=f[e]&&delete f[e]);return f[e]},t.locales=function(){return Wn(f)},t.weekdaysShort=function(e,t,n){return Ve(e,t,n,"weekdaysShort")},t.normalizeUnits=j,t.relativeTimeRounding=function(e){return void 0===e?D:"function"==typeof e&&(D=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==A[e]&&(void 0===t?A[e]:(A[e]=t,"s"===e&&(A.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=e,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})