@railzai/railz-visualizations
Version:
Railz.ai Visualizations
6 lines • 427 kB
JavaScript
/*!
* Accounting Data as a Service™ is the solution that makes sense of your business customers' financial data.
* Built with Stencil
* Copyright (c) FIS.
*/
import{c as t,b as i}from"./p-ce5b13e7.js";var n=t((function(t){(function(i,n){t.exports?(n["default"]=n,t.exports=i.document?n(i):n):(i.Highcharts&&i.Highcharts.error(16,!0),i.Highcharts=n(i))})("undefined"!==typeof window?window:i,(function(t){function i(t,i,n,s){t.hasOwnProperty(i)||(t[i]=s.apply(null,n))}var n={};i(n,"Core/Globals.js",[],(function(){var i="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},n;(function(t){t.SVG_NS="http://www.w3.org/2000/svg";t.product="Highcharts";t.version="9.3.3";t.win=i;t.doc=t.win.document;t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect;t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"";t.isChrome=-1!==t.userAgent.indexOf("Chrome");t.isFirefox=-1!==t.userAgent.indexOf("Firefox");t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera;t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari");t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent);t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit");t.deg2rad=2*Math.PI/360;t.hasBidiBug=t.isFirefox&&4>parseInt(t.userAgent.split("Firefox/")[1],10);t.hasTouch=!!t.win.TouchEvent;t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];t.noop=function(){};t.supportsPassiveEvents=function(){var i=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){i=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return i}();t.charts=[];t.dateFormats={};t.seriesTypes={};t.symbolSizes={};t.chartCount=0})(n||(n={}));return n}));i(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function i(n,s,e,r){var h=s?"Highcharts error":"Highcharts warning";32===n&&(n=h+": Deprecated member");var o=u(n),a=o?h+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if("undefined"!==typeof r){var c="";o&&(a+="?");m(r,(function(t,i){c+="\n - "+i+": "+t;o&&(a+=encodeURI(i)+"="+encodeURI(t))}));a+=c}y(t,"displayError",{chart:e,code:n,message:a,params:r},(function(){if(s)throw Error(a);M.console&&-1===i.messages.indexOf(a)&&console.warn(a)}));i.messages.push(a)}function n(t,i){var s={};m(t,(function(e,r){if(h(t[r],!0)&&!t.nodeType&&i[r])e=n(t[r],i[r]),Object.keys(e).length&&(s[r]=e);else if(h(t[r])||t[r]!==i[r])s[r]=t[r]}));return s}function s(t,i){return parseInt(t,i||10)}function e(t){return"string"===typeof t}function r(t){t=Object.prototype.toString.call(t);return"[object Array]"===t||"[object Array Iterator]"===t}function h(t,i){return!!t&&"object"===typeof t&&(!i||!r(t))}function o(t){return h(t)&&"number"===typeof t.nodeType}function a(t){var i=t&&t.constructor;return!(!h(t,!0)||o(t)||!i||!i.name||"Object"===i.name)}function u(t){return"number"===typeof t&&!isNaN(t)&&Infinity>t&&-Infinity<t}function c(t){return"undefined"!==typeof t&&null!==t}function f(t,i,n){var s;e(i)?c(n)?t.setAttribute(i,n):t&&t.getAttribute&&((s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name"))):m(i,(function(i,n){c(i)?t.setAttribute(n,i):t.removeAttribute(n)}));return s}function l(t,i){var n;t||(t={});for(n in i)t[n]=i[n];return t}function d(){for(var t=arguments,i=t.length,n=0;n<i;n++){var s=t[n];if("undefined"!==typeof s&&null!==s)return s}}function v(i,n){t.isMS&&!t.svg&&n&&"undefined"!==typeof n.opacity&&(n.filter="alpha(opacity="+100*n.opacity+")");l(i.style,n)}function p(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function g(n,e,r){var h=t.getStyle||g;if("width"===e)return e=Math.min(n.offsetWidth,n.scrollWidth),r=n.getBoundingClientRect&&n.getBoundingClientRect().width,r<e&&r>=e-1&&(e=Math.floor(r)),Math.max(0,e-(h(n,"padding-left",!0)||0)-(h(n,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(h(n,"padding-top",!0)||0)-(h(n,"padding-bottom",!0)||0));M.getComputedStyle||i(27,!0);if(n=M.getComputedStyle(n,void 0)){var o=n.getPropertyValue(e);d(r,"opacity"!==e)&&(o=s(o))}return o}function m(t,i,n){for(var s in t)Object.hasOwnProperty.call(t,s)&&i.call(n||t[s],t[s],s,t)}function b(i,n,s){function e(n,s){var e=i.removeEventListener||t.removeEventListenerPolyfill;e&&e.call(i,n,s,!1)}function r(t){var s;if(i.nodeName){if(n){var r={};r[n]=!0}else r=t;m(r,(function(i,n){if(t[n])for(s=t[n].length;s--;)e(n,t[n][s].fn)}))}}var h="function"===typeof i&&i.prototype||i;if(Object.hasOwnProperty.call(h,"hcEvents")){var o=h.hcEvents;n?(h=o[n]||[],s?(o[n]=h.filter((function(t){return s!==t.fn})),e(n,s)):(r(o),o[n]=[])):(r(o),delete h.hcEvents)}}function y(i,n,s,e){s=s||{};if(w.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==t)){var r=w.createEvent("Events");r.initEvent(n,!0,!0);s=l(r,s);i.dispatchEvent?i.dispatchEvent(s):i.fireEvent(n,s)}else if(i.hcEvents){s.target||l(s,{preventDefault:function(){s.defaultPrevented=!0},target:i,type:n});r=[];for(var h=i,o=!1;h.hcEvents;)Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents[n]&&(r.length&&(o=!0),r.unshift.apply(r,h.hcEvents[n])),h=Object.getPrototypeOf(h);o&&r.sort((function(t,i){return t.order-i.order}));r.forEach((function(t){!1===t.fn.call(i,s)&&s.preventDefault()}))}e&&!s.defaultPrevented&&e.call(i,s)}var x=t.charts,w=t.doc,M=t.win;(i||(i={})).messages=[];Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var S=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var n,s=t.length;for(n=0;n<s;n++)if(i(t[n],n))return t[n]};m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(n,s){t[s]=function(t){var e;i(32,!1,void 0,(e={},e["Highcharts."+s]="use Array."+n,e));return Array.prototype[n].apply(t,[].slice.call(arguments,1))}}));var k,A=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(k?"":t)+i++}}();M.jQuery&&(M.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new(t[e(i[0])?i.shift():"Chart"])(this[0],i[0],i[1]),this):x[f(this[0],"data-highcharts-chart")]});S={addEvent:function(i,n,s,e){void 0===e&&(e={});var r="function"===typeof i&&i.prototype||i;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});r=r.hcEvents;t.Point&&i instanceof t.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var h=i.addEventListener||t.addEventListenerPolyfill;h&&h.call(i,n,s,t.supportsPassiveEvents?{passive:void 0===e.passive?-1!==n.indexOf("touch"):e.passive,capture:!1}:!1);r[n]||(r[n]=[]);r[n].push({fn:s,order:"number"===typeof e.order?e.order:Infinity});r[n].sort((function(t,i){return t.order-i.order}));return function(){b(i,n,s)}},arrayMax:function(t){for(var i=t.length,n=t[0];i--;)t[i]>n&&(n=t[i]);return n},arrayMin:function(t){for(var i=t.length,n=t[0];i--;)t[i]<n&&(n=t[i]);return n},attr:f,clamp:function(t,i,n){return t>i?t<n?t:n:i},cleanRecursively:n,clearTimeout:function(t){c(t)&&clearTimeout(t)},correctFloat:p,createElement:function(t,i,n,s,e){t=w.createElement(t);i&&l(t,i);e&&v(t,{padding:"0",border:"none",margin:"0"});n&&v(t,n);s&&s.appendChild(t);return t},css:v,defined:c,destroyObjectProperties:function(t,i){m(t,(function(n,s){n&&n!==i&&n.destroy&&n.destroy();delete t[s]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var n=t.length;n--;)if(t[n]===i){t.splice(n,1);break}},error:i,extend:l,extendClass:function(t,i){var n=function(){};n.prototype=new t;l(n.prototype,i);return n},find:S,fireEvent:y,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:function(t,i){for(t=t.split(".");t.length&&c(i);){var n=t.shift();if("undefined"===typeof n||"__proto__"===n)return;i=i[n];if(!c(i)||"function"===typeof i||"number"===typeof i.nodeType||i===M)return}return i},getStyle:g,inArray:function(t,n,s){i(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return n.indexOf(t,s)},isArray:r,isClass:a,isDOMElement:o,isFunction:function(t){return"function"===typeof t},isNumber:u,isObject:h,isString:e,keys:function(t){i(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(t)},merge:function(){var t,i=arguments,n={},s=function(t,i){"object"!==typeof t&&(t={});m(i,(function(n,e){"__proto__"!==e&&"constructor"!==e&&(!h(n,!0)||a(n)||o(n)?t[e]=i[e]:t[e]=s(t[e]||{},n))}));return t};!0===i[0]&&(n=i[1],i=Array.prototype.slice.call(i,2));var e=i.length;for(t=0;t<e;t++)n=s(n,i[t]);return n},normalizeTickInterval:function(t,i,n,s,e){var r=t;n=d(n,1);var h=t/n;i||(i=e?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===n?i=i.filter((function(t){return 0===t%1})):.1>=n&&(i=[1/n])));for(s=0;s<i.length&&!(r=i[s],e&&r*n>=t||!e&&h<=(i[s]+(i[s+1]||i[s]))/2);s++);return r=p(r*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var i=w.documentElement;t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:t.top+(M.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(M.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,n){return Array((i||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:d,pInt:s,relativeLength:function(t,i,n){return/%$/.test(t)?i*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:b,splat:function(t){return r(t)?t:[t]},stableSort:function(t,i){var n=t.length,s,e;for(e=0;e<n;e++)t[e].safeI=e;t.sort((function(t,n){s=i(t,n);return 0===s?t.safeI-n.safeI:s}));for(e=0;e<n;e++)delete t[e].safeI},syncTimeout:function(t,i,n){if(0<i)return setTimeout(t,i,n);t.call(0,n);return-1},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:A,useSerialIds:function(t){return k=d(t,k)},wrap:function(t,i,n){var s=t[i];t[i]=function(){var t=Array.prototype.slice.call(arguments),i=arguments,e=this;e.proceed=function(){s.apply(e,arguments.length?arguments:i)};t.unshift(s);t=n.apply(this,t);e.proceed=null;return t}}};return S}));i(n,"Core/Chart/ChartDefaults.js",[],(function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}));i(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,i){var n=i.isNumber,s=i.merge,e=i.pInt;i=function(){function i(n){this.rgba=[NaN,NaN,NaN,NaN];this.input=n;var s=t.Color;if(s&&s!==i)return new s(n);if(!(this instanceof i))return new i(n);this.init(n)}i.parse=function(t){return t?new i(t):i.None};i.prototype.init=function(t){var n;if("object"===typeof t&&"undefined"!==typeof t.stops)this.stops=t.stops.map((function(t){return new i(t[1])}));else if("string"===typeof t){this.input=t=i.names[t.toLowerCase()]||t;if("#"===t.charAt(0)){var s=t.length;var e=parseInt(t.substr(1),16);7===s?n=[(e&16711680)>>16,(e&65280)>>8,e&255,1]:4===s&&(n=[(e&3840)>>4|(e&3840)>>8,(e&240)>>4|e&240,(e&15)<<4|e&15,1])}if(!n)for(e=i.parsers.length;e--&&!n;){var r=i.parsers[e];(s=r.regex.exec(t))&&(n=r.parse(s))}}n&&(this.rgba=n)};i.prototype.get=function(t){var i=this.input,e=this.rgba;if("object"===typeof i&&"undefined"!==typeof this.stops){var r=s(i);r.stops=[].slice.call(r.stops);this.stops.forEach((function(i,n){r.stops[n]=[r.stops[n][0],i.get(t)]}));return r}return e&&n(e[0])?"rgb"===t||!t&&1===e[3]?"rgb("+e[0]+","+e[1]+","+e[2]+")":"a"===t?""+e[3]:"rgba("+e.join(",")+")":i};i.prototype.brighten=function(t){var i=this.rgba;if(this.stops)this.stops.forEach((function(i){i.brighten(t)}));else if(n(t)&&0!==t)for(var s=0;3>s;s++)i[s]+=e(255*t),0>i[s]&&(i[s]=0),255<i[s]&&(i[s]=255);return this};i.prototype.setOpacity=function(t){this.rgba[3]=t;return this};i.prototype.tweenTo=function(t,i){var s=this.rgba,e=t.rgba;if(!n(s[0])||!n(e[0]))return t.input||"none";t=1!==e[3]||1!==s[3];return(t?"rgba(":"rgb(")+Math.round(e[0]+(s[0]-e[0])*(1-i))+","+Math.round(e[1]+(s[1]-e[1])*(1-i))+","+Math.round(e[2]+(s[2]-e[2])*(1-i))+(t?","+(e[3]+(s[3]-e[3])*(1-i)):"")+")"};i.names={white:"#ffffff",black:"#000000"};i.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[e(t[1]),e(t[2]),e(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[e(t[1]),e(t[2]),e(t[3]),1]}}];i.None=new i("");return i}();return i}));i(n,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}));i(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,i){var n=t.win,s=i.defined,e=i.error,r=i.extend,h=i.isObject,o=i.merge,a=i.objectEach,u=i.pad,c=i.pick,f=i.splat,l=i.timeUnits,d=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,v=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;i=function(){function i(t){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=n.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(t)}i.prototype.get=function(t,i){if(this.variableTimezone||this.timezoneOffset){var n=i.getTime(),s=n-this.getTimezoneOffset(i);i.setTime(s);t=i["getUTC"+t]();i.setTime(n);return t}return this.useUTC?i["getUTC"+t]():i["get"+t]()};i.prototype.set=function(t,i,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0===this.getTimezoneOffset(i)%36e5)return i["setUTC"+t](n);var s=this.getTimezoneOffset(i);s=i.getTime()-s;i.setTime(s);i["setUTC"+t](n);t=this.getTimezoneOffset(i);s=i.getTime()+t;return i.setTime(s)}return this.useUTC||d&&"FullYear"===t?i["setUTC"+t](n):i["set"+t](n)};i.prototype.update=function(t){var i=c(t&&t.useUTC,!0);this.options=t=o(!0,this.options||{},t);this.Date=t.Date||n.Date||Date;this.timezoneOffset=(this.useUTC=i)&&t.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=i&&!(!t.getTimezoneOffset&&!t.timezone)};i.prototype.makeTime=function(t,i,n,s,e,r){if(this.useUTC){var h=this.Date.UTC.apply(0,arguments);var o=this.getTimezoneOffset(h);h+=o;var a=this.getTimezoneOffset(h);o!==a?h+=a-o:o-36e5!==this.getTimezoneOffset(h-36e5)||v||(h-=36e5)}else h=new this.Date(t,i,c(n,1),c(s,0),c(e,0),c(r,0)).getTime();return h};i.prototype.timezoneOffsetFunction=function(){var t=this,i=this.options,s=i.getTimezoneOffset,r=i.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(i.timezone){if(r)return function(t){return 6e4*-r.tz(t,i.timezone).utcOffset()};e(25)}return this.useUTC&&s?function(t){return 6e4*s(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}};i.prototype.dateFormat=function(i,n,e){if(!s(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";i=c(i,"%Y-%m-%d %H:%M:%S");var h=this,o=new this.Date(n),f=this.get("Hours",o),l=this.get("Day",o),d=this.get("Date",o),v=this.get("Month",o),p=this.get("FullYear",o),g=t.defaultOptions.lang,m=g&&g.weekdays,b=g&&g.shortWeekdays;o=r({a:b?b[l]:m[l].substr(0,3),A:m[l],d:u(d),e:u(d,2," "),w:l,b:g.shortMonths[v],B:g.months[v],m:u(v+1),o:v+1,y:p.toString().substr(2,2),Y:p,H:u(f),k:f,I:u(f%12||12),l:f%12||12,M:u(this.get("Minutes",o)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:u(o.getSeconds()),L:u(Math.floor(n%1e3),3)},t.dateFormats);a(o,(function(t,s){for(;-1!==i.indexOf("%"+s);)i=i.replace("%"+s,"function"===typeof t?t.call(h,n):t)}));return e?i.substr(0,1).toUpperCase()+i.substr(1):i};i.prototype.resolveDTLFormat=function(t){return h(t,!0)?t:(t=f(t),{main:t[0],from:t[1],to:t[2]})};i.prototype.getTimeTicks=function(t,i,n,e){var h=this,o=[],a={},u=new h.Date(i),f=t.unitRange,d=t.count||1,v;e=c(e,1);if(s(i)){h.set("Milliseconds",u,f>=l.second?0:d*Math.floor(h.get("Milliseconds",u)/d));f>=l.second&&h.set("Seconds",u,f>=l.minute?0:d*Math.floor(h.get("Seconds",u)/d));f>=l.minute&&h.set("Minutes",u,f>=l.hour?0:d*Math.floor(h.get("Minutes",u)/d));f>=l.hour&&h.set("Hours",u,f>=l.day?0:d*Math.floor(h.get("Hours",u)/d));f>=l.day&&h.set("Date",u,f>=l.month?1:Math.max(1,d*Math.floor(h.get("Date",u)/d)));if(f>=l.month){h.set("Month",u,f>=l.year?0:d*Math.floor(h.get("Month",u)/d));var p=h.get("FullYear",u)}f>=l.year&&h.set("FullYear",u,p-p%d);f===l.week&&(p=h.get("Day",u),h.set("Date",u,h.get("Date",u)-p+e+(p<e?-7:0)));p=h.get("FullYear",u);e=h.get("Month",u);var g=h.get("Date",u),m=h.get("Hours",u);i=u.getTime();!h.variableTimezone&&h.useUTC||!s(n)||(v=n-i>4*l.month||h.getTimezoneOffset(i)!==h.getTimezoneOffset(n));i=u.getTime();for(u=1;i<n;)o.push(i),i=f===l.year?h.makeTime(p+u*d,0):f===l.month?h.makeTime(p,e+u*d):!v||f!==l.day&&f!==l.week?v&&f===l.hour&&1<d?h.makeTime(p,e,g,m+u*d):i+f*d:h.makeTime(p,e,g+u*d*(f===l.day?1:7)),u++;o.push(i);f<=l.hour&&1e4>o.length&&o.forEach((function(t){0===t%18e5&&"000000000"===h.dateFormat("%H%M%S%L",t)&&(a[t]="day")}))}o.info=r(t,{higherRanks:a,totalRange:f*d});return o};i.prototype.getDateFormat=function(t,i,n,s){var e=this.dateFormat("%m-%d %H:%M:%S.%L",i),r={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(o in l){if(t===l.week&&+this.dateFormat("%w",i)===n&&"00:00:00.000"===e.substr(6)){var o="week";break}if(l[o]>t){o=h;break}if(r[o]&&e.substr(r[o])!=="01-01 00:00:00.000".substr(r[o]))break;"week"!==o&&(h=o)}if(o)var a=this.resolveDTLFormat(s[o]).main;return a};return i}();return i}));i(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,i,n,s,e,r){i=i.parse;var h=r.merge,o={colors:s.colors,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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.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:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};o.chart.styledMode=!1;var a=new e(h(o.global,o.time));t={defaultOptions:o,defaultTime:a,getOptions:function(){return o},setOptions:function(t){h(!0,o,t);if(t.time||t.global)n.time?n.time.update(h(o.global,o.time,t.global,t.time)):n.time=a;return o}};return t}));i(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,i,n){var s=t.parse,e=i.win,r=n.isNumber,h=n.objectEach;return function(){function t(t,i,n){this.pos=NaN;this.options=i;this.elem=t;this.prop=n}t.prototype.dSetter=function(){var t=this.paths,i=t&&t[0];t=t&&t[1];var n=this.now||0,s=[];if(1!==n&&i&&t)if(i.length===t.length&&1>n)for(var e=0;e<t.length;e++){for(var h=i[e],o=t[e],a=[],u=0;u<o.length;u++){var c=h[u],f=o[u];r(c)&&r(f)&&("A"!==o[0]||4!==u&&5!==u)?a[u]=c+n*(f-c):a[u]=f}s.push(a)}else s=t;else s=this.toD||[];this.elem.attr("d",s,void 0,!0)};t.prototype.update=function(){var t=this.elem,i=this.prop,n=this.now,s=this.options.step;if(this[i+"Setter"])this[i+"Setter"]();else t.attr?t.element&&t.attr(i,n,null,!0):t.style[i]=n+this.unit;s&&s.call(t,n,this)};t.prototype.run=function(i,n,s){var r=this,h=r.options,o=function(t){return o.stopped?!1:r.step(t)},a=e.requestAnimationFrame||function(t){setTimeout(t,13)},u=function(){for(var i=0;i<t.timers.length;i++)t.timers[i]()||t.timers.splice(i--,1);t.timers.length&&a(u)};i!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=i,this.end=n,this.unit=s,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&1===t.timers.push(o)&&a(u)):(delete h.curAnim[this.prop],h.complete&&0===Object.keys(h.curAnim).length&&h.complete.call(this.elem))};t.prototype.step=function(t){var i=+new Date,n=this.options,s=this.elem,e=n.complete,r=n.duration,o=n.curAnim;if(s.attr&&!s.element)t=!1;else if(t||i>=r+this.startTime){this.now=this.end;this.pos=1;this.update();var a=o[this.prop]=!0;h(o,(function(t){!0!==t&&(a=!1)}));a&&e&&e.call(s);t=!1}else this.pos=n.easing((i-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t};t.prototype.initPath=function(t,i,n){function s(t,i){for(;t.length<l;){var n=t[0],s=i[l-t.length];s&&"M"===n[0]&&(t[0]="C"===s[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]);t.unshift(n);a&&(n=t.pop(),t.push(t[t.length-1],n))}}function e(t,i){for(;t.length<l;)if(i=t[Math.floor(t.length/u)-1].slice(),"C"===i[0]&&(i[1]=i[5],i[2]=i[6]),a){var n=t[Math.floor(t.length/u)].slice();t.splice(t.length/2,0,i,n)}else t.push(i)}var h=t.startX,o=t.endX;n=n.slice();var a=t.isArea,u=a?2:1;i=i&&i.slice();if(!i)return[n,n];if(h&&o&&o.length){for(t=0;t<h.length;t++)if(h[t]===o[0]){var c=t;break}else if(h[0]===o[o.length-h.length+t]){c=t;var f=!0;break}else if(h[h.length-1]===o[o.length-h.length+t]){c=h.length-t;break}"undefined"===typeof c&&(i=[])}if(i.length&&r(c)){var l=n.length+c*u;f?(s(i,n),e(n,i)):(s(n,i),e(i,n))}return[i,n]};t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)};t.prototype.strokeSetter=function(){this.elem.attr(this.prop,s(this.start).tweenTo(s(this.end),this.pos),void 0,!0)};t.timers=[];return t}()}));i(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],(function(t,i){function n(t){return a(t)?u({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function s(i,n){for(var s=t.timers.length;s--;)t.timers[s].elem!==i||n&&n!==t.timers[s].prop||(t.timers[s].stopped=!0)}var e=i.defined,r=i.getStyle,h=i.isArray,o=i.isNumber,a=i.isObject,u=i.merge,c=i.objectEach,f=i.pick;return{animate:function(i,n,e){var f,l="",d,v;if(!a(e)){var p=arguments;e={duration:p[2],easing:p[3],complete:p[4]}}o(e.duration)||(e.duration=400);e.easing="function"===typeof e.easing?e.easing:Math[e.easing]||Math.easeInOutSine;e.curAnim=u(n);c(n,(function(o,a){s(i,a);v=new t(i,e,a);d=void 0;"d"===a&&h(n.d)?(v.paths=v.initPath(i,i.pathArray,n.d),v.toD=n.d,f=0,d=1):i.attr?f=i.attr(a):(f=parseFloat(r(i,a))||0,"opacity"!==a&&(l="px"));d||(d=o);"string"===typeof d&&d.match("px")&&(d=d.replace(/px/g,""));v.run(f,d,l)}))},animObject:n,getDeferredAnimation:function(t,i,s){var r=n(i),h=0,o=0;(s?[s]:t.series).forEach((function(t){t=n(t.options.animation);h=i&&e(i.defer)?r.defer:Math.max(h,t.duration+t.defer);o=Math.min(r.duration,t.duration)}));t.renderer.forExport&&(h=0);return{defer:Math.max(0,h-o),duration:Math.min(h,o)}},setAnimation:function(t,i){i.renderer.globalAnimation=f(t,i.options.chart.animation,!0)},stop:s}}));i(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,i){var n=t.SVG_NS,s=i.attr,e=i.createElement,r=i.error,h=i.isFunction,o=i.isString,a=i.objectEach,u=i.splat,c=(i=t.win.trustedTypes)&&h(i.createPolicy)&&i.createPolicy("highcharts",{createHTML:function(t){return t}}),f=c?c.createHTML(""):"";try{var l=!!(new DOMParser).parseFromString(f,"text/html")}catch(t){l=!1}h=function(){function i(t){this.nodes="string"===typeof t?this.parseMarkup(t):t}i.filterUserAttributes=function(t){a(t,(function(n,s){var e=!0;-1===i.allowedAttributes.indexOf(s)&&(e=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(s)&&(e=o(n)&&i.allowedReferences.some((function(t){return 0===n.indexOf(t)})));e||(r("Highcharts warning: Invalid attribute '"+s+"' in config"),delete t[s])}));return t};i.setElementHTML=function(t,n){t.innerHTML=i.emptyHTML;n&&new i(n).addToDOM(t)};i.prototype.addToDOM=function(e){function h(e,o){var c;u(e).forEach((function(e){var u=e.tagName,f=e.textContent?t.doc.createTextNode(e.textContent):void 0;if(u)if("#text"===u)var l=f;else if(-1!==i.allowedTags.indexOf(u)){u=t.doc.createElementNS("svg"===u?n:o.namespaceURI||n,u);var d=e.attributes||{};a(e,(function(t,i){"tagName"!==i&&"attributes"!==i&&"children"!==i&&"textContent"!==i&&(d[i]=t)}));s(u,i.filterUserAttributes(d));f&&u.appendChild(f);h(e.children||[],u);l=u}else r("Highcharts warning: Invalid tagName "+u+" in config");l&&o.appendChild(l);c=l}));return c}return h(this.nodes,e)};i.prototype.parseMarkup=function(t){var i=[];t=t.trim();if(l)t=(new DOMParser).parseFromString(c?c.createHTML(t):t,"text/html");else{var n=e("div");n.innerHTML=t;t={body:n}}var s=function(t,i){var n=t.nodeName.toLowerCase(),e={tagName:n};"#text"===n&&(e.textContent=t.textContent||"");if(n=t.attributes){var r={};[].forEach.call(n,(function(t){r[t.name]=t.value}));e.attributes=r}if(t.childNodes.length){var h=[];[].forEach.call(t.childNodes,(function(t){s(t,h)}));h.length&&(e.children=h)}i.push(e)};[].forEach.call(t.body.childNodes,(function(t){return s(t,i)}));return i};i.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");i.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");i.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");i.emptyHTML=f;return i}();return h}));i(n,"Core/FormatUtilities.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,i){function n(t,i,n,e){t=+t||0;i=+i;var r=s.lang,u=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),f=i;if(-1===i)i=Math.min(u,20);else if(!h(i))i=2;else if(i&&c[1]&&0>c[1]){var l=i+ +c[1];0<=l?(c[0]=(+c[0]).toExponential(l).split("e")[0],i=l):(c[0]=c[0].split(".")[0]||0,t=20>i?(c[0]*Math.pow(10,c[1])).toFixed(i):0,c[1]=0)}l=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(i,u)-1)).toFixed(i);u=String(a(l));var d=3<u.length?u.length%3:0;n=o(n,r.decimalPoint);e=o(e,r.thousandsSep);t=(0>t?"-":"")+(d?u.substr(0,d)+e:"");t=0>+c[1]&&!f?"0":t+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+e);i&&(t+=n+l.slice(-i));c[1]&&0!==+t&&(t+="e"+c[1]);return t}var s=t.defaultOptions,e=t.defaultTime,r=i.getNestedProperty,h=i.isNumber,o=i.pick,a=i.pInt;return{dateFormat:function(t,i,n){return e.dateFormat(t,i,n)},format:function(t,i,h){var o="{",a=!1,u=/f$/,c=/\.([0-9])/,f=s.lang,l=h&&h.time||e;h=h&&h.numberFormatter||n;for(var d=[];t;){var v=t.indexOf(o);if(-1===v)break;var p=t.slice(0,v);if(a){p=p.split(":");o=r(p.shift()||"",i);if(p.length&&"number"===typeof o)if(p=p.join(":"),u.test(p)){var g=parseInt((p.match(c)||["","-1"])[1],10);null!==o&&(o=h(o,g,f.decimalPoint,-1<p.indexOf(",")?f.thousandsSep:""))}else o=l.dateFormat(p,o);d.push(o)}else d.push(p);t=t.slice(v+1);o=(a=!a)?"}":"{"}d.push(t);return d.join("")},numberFormat:n}}));i(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],(function(t){var i=t.clamp,n=t.pick,s=t.stableSort,e;(function(t){function e(t,r,h){var o=t,a=o.reducedLen||r,u=function(t,i){return(i.rank||0)-(t.rank||0)},c=function(t,i){return t.target-i.target},f,l=!0,d=[],v=0;for(f=t.length;f--;)v+=t[f].size;if(v>a){s(t,u);for(v=f=0;v<=a;)v+=t[f].size,f++;d=t.splice(f-1,t.length)}s(t,c);for(t=t.map((function(t){return{size:t.size,targets:[t.target],align:n(t.align,.5)}}));l;){for(f=t.length;f--;)a=t[f],u=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=i(u-a.size*a.align,0,r-a.size);f=t.length;for(l=!1;f--;)0<f&&t[f-1].pos+t[f-1].size>t[f].pos&&(t[f-1].size+=t[f].size,t[f-1].targets=t[f-1].targets.concat(t[f].targets),t[f-1].align=.5,t[f-1].pos+t[f-1].size>r&&(t[f-1].pos=r-t[f-1].size),t.splice(f,1),l=!0)}o.push.apply(o,d);f=0;t.some((function(t){var i=0;return(t.targets||[]).some((function(){o[f].pos=t.pos+i;if("undefined"!==typeof h&&Math.abs(o[f].pos-o[f].target)>h)return o.slice(0,f+1).forEach((function(t){return delete t.pos})),o.reducedLen=(o.reducedLen||r)-.1*r,o.reducedLen>.1*r&&e(o,r,h),!0;i+=o[f].size;f++;return!1}))}));s(o,c);return o}t.distribute=e})(e||(e={}));return e}));i(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,i,n,s,e){var r=t.animate,h=t.animObject,o=t.stop,a=s.deg2rad,u=s.doc,c=s.noop,f=s.svg,l=s.SVG_NS,d=s.win,v=e.addEvent,p=e.attr,g=e.createElement,m=e.css,b=e.defined,y=e.erase,x=e.extend,w=e.fireEvent,M=e.isArray,S=e.isFunction,k=e.isNumber,A=e.isString,C=e.merge,T=e.objectEach,L=e.pick,P=e.pInt,j=e.syncTimeout,O=e.uniqueKey;t=function(){function t(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=l;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}t.prototype._defaultGetter=function(t){t=L(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t));return t};t.prototype._defaultSetter=function(t,i,n){n.setAttribute(i,t)};t.prototype.add=function(t){var i=this.renderer,n=this.element;t&&(this.parentGroup=t);this.parentInverted=t&&t.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&i.buildText(this);this.added=!0;if(!t||t.handleZ||this.zIndex)var s=this.zIndexSetter();s||(t?t.element:i.box).appendChild(n);if(this.onAdd)this.onAdd();return this};t.prototype.addClass=function(t,i){var n=i?"":this.attr("class")||"";t=(t||"").split(/ /g).reduce((function(t,i){-1===n.indexOf(i)&&t.push(i);return t}),n?[n]:[]).join(" ");t!==n&&this.attr("class",t);return this};t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};t.prototype.align=function(t,i,n){var s={},e=this.renderer,r=e.alignedObjects,h,o,a;if(t){if(this.alignOptions=t,this.alignByTranslate=i,!n||A(n))this.alignTo=h=n||"renderer",y(r,this),r.push(this),n=void 0}else t=this.alignOptions,i=this.alignByTranslate,h=this.alignTo;n=L(n,e[h],"scrollablePlotBox"===h?e.plotBox:void 0,e);h=t.align;var u=t.verticalAlign;e=(n.x||0)+(t.x||0);r=(n.y||0)+(t.y||0);"right"===h?o=1:"center"===h&&(o=2);o&&(e+=(n.width-(t.width||0))/o);s[i?"translateX":"x"]=Math.round(e);"bottom"===u?a=1:"middle"===u&&(a=2);a&&(r+=(n.height-(t.height||0))/a);s[i?"translateY":"y"]=Math.round(r);this[this.placed?"animate":"attr"](s);this.placed=!0;this.alignAttr=s;return this};t.prototype.alignSetter=function(t){var i={left:"start",center:"middle",right:"end"};i[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",i[t]))};t.prototype.animate=function(t,i,n){var s=this,e=h(L(i,this.renderer.globalAnimation,!0));i=e.defer;L(u.hidden,u.msHidden,u.webkitHidden,!1)&&(e.duration=0);0!==e.duration?(n&&(e.complete=n),j((function(){s.element&&r(s,t,e)}),i)):(this.attr(t,void 0,n),T(t,(function(t,i){e.step&&e.step.call(this,t,{prop:i,pos:1,elem:this})}),this));return this};t.prototype.applyTextOutline=function(t){var i=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(i.style.fill)));var n=t.split(" ");t=n[n.length-1];if((n=n[0])&&"none"!==n&&s.svg){this.fakeTS=!0;this.ySetter=this.xSetter;n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,i,n){return 2*Number(i)+n}));this.removeTextOutline();var e=u.createElementNS(l,"tspan");p(e,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"});[].forEach.call(i.childNodes,(function(t){var i=t.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return i.removeAttribute(t)}));e.appendChild(i)}));var r=u.createElementNS(l,"tspan");r.textContent="";["x","y"].forEach((function(t){var n=i.getAttribute(t);n&&r.setAttribute(t,n)}));e.appendChild(r);i.insertBefore(e,i.firstChild)}};t.prototype.attr=function(t,i,n,s){var e=this.element,r=this.symbolCustomAttribs,h,a=this,u,c;if("string"===typeof t&&"undefined"!==typeof i){var f=t;t={};t[f]=i}"string"===typeof t?a=(this[t+"Getter"]||this._defaultGetter).call(this,t,e):(T(t,(function(i,n){u=!1;s||o(this,n);this.symbolName&&-1!==r.indexOf(n)&&(h||(this.symbolAttr(t),h=!0),u=!0);!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0);u||(c=this[n+"Setter"]||this._defaultSetter,c.call(this,i,n,e),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,i,c))}),this),this.afterSetters());n&&n.call(this);return a};t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")};t.prototype.crisp=function(t,i){i=i||t.strokeWidth||0;var n=Math.round(i)%2/2;t.x=Math.floor(t.x||this.x||0)+n;t.y=Math.floor(t.y||this.y||0)+n;t.width=Math.floor((t.width||this.width||0)-2*n);t.height=Math.floor((t.height||this.height||0)-2*n);b(t.strokeWidth)&&(t.strokeWidth=i);return t};t.prototype.complexColor=function(t,i,s){var e=this.renderer,r,h,o,a,u,c,f,l,d,v,p=[],g;w(this.renderer,"complexColor",{args:arguments},(function(){t.radialGradient?h="radialGradient":t.linearGradient&&(h="linearGradient");if(h){o=t[h];u=e.gradients;c=t.stops;d=s.radialReference;M(o)&&(t[h]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===h&&d&&!b(o.gradientUnits)&&(a=o,o=C(o,e.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"}));T(o,(function(t,i){"id"!==i&&p.push(i,t)}));T(c,(function(t){p.push(t)}));p=p.join(",");if(u[p])v=u[p].attr("id");else{o.id=v=O();var m=u[p]=e.createElement(h).attr(o).add(e.defs);m.radAttr=a;m.stops=[];c.forEach((function(t){0===t[1].indexOf("rgba")?(r=n.parse(t[1]),f=r.get("rgb"),l=r.get("a")):(f=t[1],l=1);t=e.createElement("stop").attr({offset:t[0],"stop-color":f,"stop-opacity":l}).add(m);m.stops.push(t)}))}g="url("+e.url+"#"+v+")";s.setAttribute(i,g);s.gradient=p;t.toString=function(){return g}}}))};t.prototype.css=function(t){var i=this.styles,n={},s=this.element,e=["textOutline","textOverflow","width"],r="",h=!i;t&&t.color&&(t.fill=t.color);i&&T(t,(function(t,s){i&&i[s]!==t&&(n[s]=t,h=!0)}));if(h){i&&(t=x(i,n));if(t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===s.nodeName.toLowerCase()&&t.width)var o=this.textWidth=P(t.width);this.styles=t;o&&!f&&this.renderer.forExport&&delete t.width;if(s.namespaceURI===this.SVG_NS){var a=function(t,i){return"-"+i.toLowerCase()};T(t,(function(t,i){-1===e.indexOf(i)&&(r+=i.replace(/([A-Z])/g,a)+":"+t+";")}));r&&p(s,"style",r)}else m(s,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this};t.prototype.dashstyleSetter=function(t){var i=this["stroke-width"];"inherit"===i&&(i=1);if(t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+P(n[t])*L(i,NaN);t=n.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",t)}};t.prototype.destroy=function(){var t=this,i=t.element||{},n=t.renderer,s=i.ownerSVGElement,e=n.isSVG&&"SPAN"===i.nodeName&&t.parentGroup||void 0;i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null;o(t);if(t.clipPath&&s){var r=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(r.element.id)&&t.removeAttribute("clip-path")}));t.clipPath=r.destroy()}if(t.stops){for(s=0;s<t.stops.length;s++)t.stops[s].destroy();t.stops.length=0;t.stops=void 0}t.safeRemoveChild(i);for(n.styledMode||t.destroyShadows();e&&e.div&&0===e.div.childNodes.length;)i=e.parentGroup,t.safeRemoveChild(e.div),delete e.div,e=i;t.alignTo&&y(n.alignedObjects,t);T(t,(function(i,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy();delete t[n]}))};t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this);this.shadows=void 0};t.prototype.destroyTextPath=function(t,i){var n=t.getElementsByTagName("text")[0];if(n){if(n.removeAttribute("dx"),n.removeAttribute("dy"),i.element.setAttribute("id",""),this.textPathWrapper&&n.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)n.appendChild(t[0]);n.removeChild(this.textPathWrapper.element)}}else if(t.getAttribute("dx")||t.getAttribute("dy"))t.removeAttribute("dx"),t.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};t.prototype.dSetter=function(t,i,n){M(t)&&("string"===typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,i,n){return i&&i.join?(n?t+" ":"")+i.join(" "):(i||"").toString()}),""));/(NaN| {2}|^$)/.test(t)&&(t="M 0 0");this[i]!==t&&(n.setAttribute(i,t),this[i]=t)};t.prototype.fadeOut=function(t){var i=this;i.animate({opacity:0},{duration:L(t,150),complete:function(){i.attr({y:-9999}).hide()}})};t.prototype.fillSetter=function(t,i,n){"string"===typeof t?n.setAttribute(i,t):t&&this.complexColor(t,i,n)};t.prototype.getBBox=function(i,n){var s=this.renderer,e=this.element,r=this.styles,h=this.textStr,o=s.cache,u=s.cacheKeys,c=e.namespaceURI===this.SVG_NS;n=L(n,this.rotation,0);var f=s.styledMode?e&&t.prototype.getStyle.call(e,"font-size"):r&&r.fontSize,l;if(b(h)){var d=h.toString();-1===d.indexOf("<")&&(d=d.replace(/[0-9]/g,"0"));d+=["",n,f,this.textWidth,r&&r.textOverflow,r&&r.fontWeight].join()}d&&!i&&(l=o[d]);if(!l){if(c||s.forExport){try{var v=this.fakeTS&&function(t){var i=e.querySelector(".highcharts-text-outline");i&&m(i,{display:t})};S(v)&&v("none");l=e.getBBox?x({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight};S(v)&&v("")}catch(t){}if(!l||0>l.width)l={width:0,height:0}}else l=this.htmlGetBBox();s.isSVG&&(i=l.width,s=l.height,c&&(l.height=s={"11px,17":14,"13px,20":16}[(f||"")+","+Math.round(s)]||s),n&&(c=n*a,l.width=Math.abs(s*Math.sin(c))+Math.abs(i*Math.cos(c)),l.height=Math.abs(s*Math.cos(c))+Math.abs(i*Math.sin(c))));if(d&&(""===h||0<l.height)){for(;250<u.length;)delete o[u.shift()];o[d]||u.push(d);o[d]=l}}return l};t.prototype.getStyle=function(t){return d.getComputedStyle(this.element||this,"").getPropertyValue(t)};t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)};t.prototype.hide=function(t){t?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};t.prototype.init=function(t,i){this.element="span"===i?g(i):u.createElementNS(this.SVG_NS,i);this.renderer=t;w(this,"afterInit")};t.prototype.invert=function(t){this.inverted=t;this.updateTransform();return this};t.prototype.on=function(t,i){var n=this.onEvents;if(n[t])n[t]();n[t]=v(this.element,t,i);return this};t.prototype.opacitySetter=function(t,i,n){this.opacity=t=Number(Number(t).toFixed(3));n.setAttribute(i,t)};t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(A(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())};t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)};t.prototype.safeRemoveChild=function(t){var i=t.parentNode;i&&i.removeChild(t)};t.prototype.setRadialReference=function(t){var i=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=t;i&&i.radAttr&&i.animate(this.renderer.getRadialAttr(t,i.radAttr));return this};t.prototype.setTextPath=function(t,n){var s=this.element,e=this.text?this.text.element:s,r={textAnchor:"text-anchor"},h=!1,o=this.textPathWrapper,a=!o;n=C(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var u=i.filterUserAttributes(n.attributes);if(t&&n&&n.enabled){o&&null===o.element.parentNode?(a=!0,o=o.destroy()):o&&this.removeTextOutline.call(o.parentGroup);this.options&&this.options.padding&&(u.dx=-this.options.padding);o||(this.textPathWrapper=o=this.renderer.createElement("textPath"),h=!0);var f=o.element;(n=t.element.getAttribute("id"))||t.element.setAttribute("id",n=O());if(a)for(e.setAttribute("y",0),k(u.dx)&&e.setAttribute("x",-u.dx),t=[].slice.call(e.childNodes),a=0;a<t.length;a++){var l=t[a];l.nodeType!==d.Node.TEXT_NODE&&"tspan"!==l.nodeName||f.appendChild(l)}h&&o&&o.add({element:e});f.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n);b(u.dy)&&(f.parentNode.setAttribute("dy",u.dy),delete u.dy);b(u.dx)&&(f.parentNode.setAttribute("dx",u.dx),delete u.dx);T(u,(function(t,i){f.setAttribute(r[i]||i,t)}));s.removeAttribute("transform");this.removeTextOutline.call(o);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=c}else o&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(s,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};t.prototype.shadow=function(t,i,n){var s=[],e=this.element,r=this.oldShadowOptions,h={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},o=!1,a;!0===t?a=h:"object"===typeof t&&(a=x(h,t));a&&(a&&r&&T(a,(function(t,i){t!==r[i]&&(o=!0)})),o&&this.destroyShadows(),this.oldShadowOptions=a);if(!a)this.destroyShadows();else if(!this.shadows){var u=a.opacity/a.width;var c=this.parentInverted?"translate("+a.offsetY+", "+a.offsetX+")":"translate("+a.offsetX+", "+a.offsetY+")";for(h=1;h<=a.width;h++){var f=e.cloneNode(!1);var l=2*a.width+1-2*h;p(f,{stroke:t.color||"#000000","stroke-opacity":u*h,"stroke-width":l,transform:c,fill:"none"});f.setAttribute("class",(f.getAttribute("class")||"")+" highcharts-shadow");n&&(p(f,"height",Math.max(p(f,"height")-l,0)),f.cutHeight=l);i?i.element.appendChild(f):e.parentNode&&e.parentNode.insertBefore(f,e);s.push(f)}this.shadows=s}return this};t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})};t.prototype.strokeSetter=function(i,n,s){this[n]=i;this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",s),s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===i&&this.hasStroke?(s.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(s.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),i=0;if(t.indexOf("px")===t.length-2)i=P(t);else if(""!==t){var n=u.createElementNS(l,"rect");p(n,{width:t,"stroke-width":0});this.element.parentNode.appendChild(n);i=n.getBBox().width;n.parentNode.removeChild(n)}return i};t.prototype.symbolAttr=function(t){var i=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(n){i[n]=L(t[n],i[n])}));i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})};t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))};t.prototype.titleSetter=function(t){var i=this.element,n=i.getElementsByTagName("title")[0]||u.createElementNS(this.SVG_NS,"title");i.insertBefore?i.insertBefore(n,i.firstChild):i.appendChild(n);n.textContent=String(L(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};t.prototype.toFront=function(){var t=this.element;t.parentNode.appendChild(t);return this};t.prototype.translate=function(t,i){return this.attr({translateX:t,translateY:i})};t.prototype.updateShadows=function(t,i,n){var s=this.shadows;if(s)for(var e=s.length;e--;)n.call(s[e],"height"===t?Math.max(i-(s[e].cutHeight||0),0):"d"===t?this.d:i,t,s[e])};t.prototype.updateTransform=function(){var t=this.scaleX,i=this.scaleY,n=this.inverted,s=this.rotation,e=this.matrix,r=this.element,h=this.translateX||0,o=this.translateY||0;n&&(h+=this.width,o+=this.height);h=["translate("+h+","+o+")"];b(e)&&h.push("matrix("+e.join(",")+")");n?h.push("rotate(90) scale(-1,1)"):s&&h.push("rotate("+s+" "+L(this.rotationOriginX,r.getAttribute("x"),0)+" "+L(this.rotationOriginY,r.getAttribute("y")||0)+")");(b(t)||b(i))&&h.push("scale("+L(t,1)+" "+L(i,1)+")");h.length&&r.setAttribute("transform",h.join(" "))};t.prototype.visibilitySetter=function(t,i,n){"inherit"===t?n.removeAttribute(i):this[i]!==t&&n.setAttribute(i,t);this[i]=t};t.prototype.xGetter=function(t){"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy"));return this._defaultGetter(t)};t.prototype.zIndexSetter=function(t,i){var n=this.renderer,s=this.parentGroup,e=(s||n).element||n.box,r=this.element;n=e===n.box;var h=!1;var o=this.added;var a;b(t)?(r.setAttribute("data-z-index",t),t=+t,this[i]===t&&(o=!1)):b(this[i])&&r.removeAttribute("data-z-index");this[i]=t;if(o){(t=this.zIndex)&&s&&(s.handleZ=!0);i=e.childNodes;for(a=i.length-1;0<=a&&!h;a--){s=i[a];o=s.getAttribute("data-z-index");var u=!b(o);if(s!==r)if(0>t&&u&&!n&&!a)e.insertBefore(r,i[a]),h=!0;else if(P(o)<=t||u&&(!b(t)||0<=t))e.insertBefore(r,i[a+1]||null),h=!0}h||(e.insertBefore(r,i[n?3:0]||null),h=!0)}return h};return t}();t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter;t.prototype.yGetter=t.prototype.xGetter;t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,i){this[i]=t;this.doTransform=!0};return t}));i(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var i;(function(i){i.rendererTypes={};var n;i.getRendererType=function(t){void 0===t&&(t=n);return i.rendererTypes[t]||i.rendererTypes[n]};i.registerRendererType=function(s,e,r){i.rendererTypes[s]=e;if(!n||r)n=s,t.Renderer=e}})(i||(i={}));return i}));i(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,i){var n=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])};return t(i,n)};return function(i,n){function s(){this.constructor=i}t(i,n);i.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),s=i.defined,e=i.extend,r=i.isNumber,h=i.merge,o=i.pick,a=i.removeEvent;return function(i){function u(t,n,s,e,r,h,o,a,c,f){var l=i.call(this)||this;l.paddingLeftSetter=l.paddingSetter;l.paddingRightSetter=l.paddingSetter;l.init(t,"g");l.textStr=n;l.x=s;l.y=e;l.anchorX=h;l.anchorY=o;l.baseline=c;l.className=f;l.addClass("button"===f?"highcharts-no-tooltip":"highcharts-label");f&&l.addClass("highcharts-"+f);l.text=t.text(void 0,0,0,a).attr({zIndex:1});var d;"string"===typeof r&&((d=/^url\((.*?)\)$/.test(r))||l.renderer.symbols[r])&&(l.symbolKey=r);l.bBox=u.emptyBBox;l.padding=3;l.baselineOffset=0;l.needsBox=t.styledMode||d;l.deferredAttr={};l.alignFactor=0;return l}n(u,i);u.prototype.alignSetter=function(t){t={left:0,center:.5,right:1}[t];t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))};u.prototype.anchorXSetter=function(t,i){this.anchorX=t;this.boxAttr(i,Math.round(t)-this.getCrispAdjust()-thi