var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function dataservice() { var apiRootPath = $("#apiRoot").val() + "api/"; return { Get: get, Post: post, Delete: deleteCall, UploadFile: uploadFile }; function get(actionMethod, params) { var url = getCompleteUrl(actionMethod, params); return $.ajax({ url: url, type: "GET", dataType: 'json' }).done(function (response) { return callbackSuccess(response); }).fail(function (error) { return callbackError(error); }); } function post(actionMethod, data) { var url = getCompleteUrl(actionMethod, []); return $.ajax({ url: url, type: "POST", data: JSON.stringify(data), contentType: "application/json", dataType: "json" }).done(function (response) { return callbackSuccess(response); }).fail(function (error) { return callbackError(error); }); } function deleteCall(actionMethod, data) { var url = getCompleteUrl(actionMethod, []); return $.ajax({ url: url, type: "DELETE", data: JSON.stringify(data), contentType: "application/json", dataType: "json" }).done(function (response) { return callbackSuccess(response); }).fail(function (error) { return callbackError(error); }); } function uploadFile(actionMethod, file) { var url = getCompleteUrl(actionMethod, []); var formData = new FormData(); if (file) formData.append("file", file); return $.ajax({ url: url, type: "POST", data: formData, contentType: false, processData: false }).done(function (response) { return callbackSuccess(response); }).fail(function (error) { return callbackError(error); }); } function callbackSuccess(res) { if (res.ReturnCode === 1) { return res; } else { return callbackError(res.Text); } } function callbackError(error) { console.log({ ReturnCode: -1, Text: error }); } function getCompleteUrl(method, params) { var paramString = ""; for (var i = 0; i < params.length; i++) { paramString += "/" + params[i]; } return apiRootPath + method + paramString; } } function urlservice() { return { UrlParam: urlParam }; function urlParam(name) { var results = new RegExp('[\?&]' + name + '=([^]*)').exec(window.location.href); if (results == null) { return null; } else { return decodeURI(results[1]) || 0; } } } /* CanvasJS HTML5 & JavaScript Charts - v3.7.1 GA - https://canvasjs.com/ Copyright 2022 fenopix --------------------- License Information -------------------- CanvasJS is a commercial product which requires purchase of license. Without a commercial license you can use it for evaluation purposes for upto 30 days. Please refer to the following link for further details. https://canvasjs.com/license/ */ /*tslint:disable*/ /*eslint-disable*/ /*jshint ignore:start*/ (function () { function pa(h, n) { h.prototype = cb(n.prototype);h.prototype.constructor = h;h.base = n.prototype; }function cb(h) { function n() {}n.prototype = h;return new n(); }function Wa(h, n, Q) { "millisecond" === Q ? h.setMilliseconds(h.getMilliseconds() + 1 * n) : "second" === Q ? h.setSeconds(h.getSeconds() + 1 * n) : "minute" === Q ? h.setMinutes(h.getMinutes() + 1 * n) : "hour" === Q ? h.setHours(h.getHours() + 1 * n) : "day" === Q ? h.setDate(h.getDate() + 1 * n) : "week" === Q ? h.setDate(h.getDate() + 7 * n) : "month" === Q ? h.setMonth(h.getMonth() + 1 * n) : "year" === Q && h.setFullYear(h.getFullYear() + 1 * n);return h; }function ca(h, n) { var Q = !1;0 > h && (Q = !0, h *= -1);h = "" + h;for (n = n ? n : 1; h.length < n;) { h = "0" + h; }return Q ? "-" + h : h; }function Fa(h) { if (!h) return h;h = h.replace(/^\s\s*/, "");for (var n = /\s/, Q = h.length; n.test(h.charAt(--Q));) {}return h.slice(0, Q + 1); }function Ba(h) { h.roundRect = function (h, Q, q, v, qa, E, z, w) { z && (this.fillStyle = z);w && (this.strokeStyle = w);"undefined" === typeof qa && (qa = 5);this.lineWidth = E;this.beginPath();this.moveTo(h + qa, Q);this.lineTo(h + q - qa, Q);this.quadraticCurveTo(h + q, Q, h + q, Q + qa);this.lineTo(h + q, Q + v - qa);this.quadraticCurveTo(h + q, Q + v, h + q - qa, Q + v);this.lineTo(h + qa, Q + v);this.quadraticCurveTo(h, Q + v, h, Q + v - qa);this.lineTo(h, Q + qa);this.quadraticCurveTo(h, Q, h + qa, Q);this.closePath();z && this.fill();w && 0 < E && this.stroke(); }; }function Qa(h, n) { return h - n; }function V(h) { var n = ((h & 16711680) >> 16).toString(16), Q = ((h & 65280) >> 8).toString(16);h = ((h & 255) >> 0).toString(16);n = 2 > n.length ? "0" + n : n;Q = 2 > Q.length ? "0" + Q : Q;h = 2 > h.length ? "0" + h : h;return "#" + n + Q + h; }function db(h, n) { var Q = this.length >>> 0, q = Number(n) || 0, q = 0 > q ? Math.ceil(q) : Math.floor(q);for (0 > q && (q += Q); q < Q; q++) { if (q in this && this[q] === h) return q; }return -1; }function q(h) { return null === h || "undefined" === typeof h; }function Ca(h) { h.indexOf || (h.indexOf = db);return h; }function eb(h) { if (Ga.fSDec) h[la("`eeDwdouMhrudods")](la("e`u`@ohl`uhnoHuds`uhnoDoe"), function () { Ga._fTWm && Ga._fTWm(h); }); }function Xa(h, n, Q) { Q = Q || "normal";var q = h + "_" + n + "_" + Q, v = Ya[q];if (isNaN(v)) { try { if (!ra) { var qa = document.body;ra = document.createElement("span");ra.innerHTML = "";var E = document.createTextNode("Mpgyi"); ra.appendChild(E);qa.appendChild(ra); }ra.style.display = "";W(ra, { position: "absolute", left: "0px", top: "-20000px", padding: "0px", margin: "0px", border: "none", whiteSpace: "pre", lineHeight: "normal", fontFamily: h, fontSize: n + "px", fontWeight: Q });v = Math.round(ra.offsetHeight);ra.style.display = "none"; } catch (z) { v = Math.ceil(1.1 * n); }v = Math.max(v, n);Ya[q] = v; }return v; }function I(h, n) { var Q = [];if (Q = { solid: [], shortDash: [3, 1], shortDot: [1, 1], shortDashDot: [3, 1, 1, 1], shortDashDotDot: [3, 1, 1, 1, 1, 1], dot: [1, 2], dash: [4, 2], dashDot: [4, 2, 1, 2], longDash: [8, 2], longDashDot: [8, 2, 1, 2], longDashDotDot: [8, 2, 1, 2, 1, 2] }[h || "solid"]) for (var q = 0; q < Q.length; q++) { Q[q] *= n; } else Q = [];return Q; }function M(h, n, Q, v, Z) { v = v || [];Z = q(Z) ? fb ? { passive: !1, capture: !1 } : !1 : Z;v.push([h, n, Q, Z]);return h.addEventListener ? (h.addEventListener(n, Q, Z), Q) : h.attachEvent ? (v = function v(n) { n = n || window.event;n.preventDefault = n.preventDefault || function () { n.returnValue = !1; };n.stopPropagation = n.stopPropagation || function () { n.cancelBubble = !0; };Q.call(h, n); }, h.attachEvent("on" + n, v), v) : !1; }function gb(h) { if (h._menuButton) h.exportEnabled ? (W(h._menuButton, { backgroundColor: h.toolbar.itemBackgroundColor, color: h.toolbar.fontColor }), La(h._menuButton), h._menuButton.title = h._cultureInfo.menuText) : va(h._menuButton);else if (h.exportEnabled && v) { var n = !1;h._menuButton = document.createElement("button");wa(h, h._menuButton, "menu");h._toolBar.appendChild(h._menuButton);M(h._menuButton, "touchstart", function (h) { n = !0; }, h.allDOMEventHandlers);M(h._menuButton, "click", function () { "none" !== h._dropdownMenu.style.display || h._dropDownCloseTime && 500 >= new Date().getTime() - h._dropDownCloseTime.getTime() || (h._dropdownMenu.style.display = "block", h._menuButton.blur(), h._dropdownMenu.focus()); }, h.allDOMEventHandlers, !0);M(h._menuButton, "mousemove", function () { n || (W(h._menuButton, { backgroundColor: h.toolbar.itemBackgroundColorOnHover, color: h.toolbar.fontColorOnHover }), 0 >= navigator.userAgent.search("MSIE") && W(h._menuButton.childNodes[0], { WebkitFilter: "invert(100%)", filter: "invert(100%)" })); }, h.allDOMEventHandlers, !0);M(h._menuButton, "mouseout", function () { n || (W(h._menuButton, { backgroundColor: h.toolbar.itemBackgroundColor, color: h.toolbar.fontColor }), 0 >= navigator.userAgent.search("MSIE") && W(h._menuButton.childNodes[0], { WebkitFilter: "invert(0%)", filter: "invert(0%)" })); }, h.allDOMEventHandlers, !0); }if (h.exportEnabled && h._dropdownMenu) { W(h._dropdownMenu, { backgroundColor: h.toolbar.itemBackgroundColor, color: h.toolbar.fontColor });for (var q = h._dropdownMenu.childNodes, ea = [h._cultureInfo.printText, h._cultureInfo.saveJPGText, h._cultureInfo.savePNGText], Z = 0; Z < q.length; Z++) { W(q[Z], { backgroundColor: h.toolbar.itemBackgroundColor, color: h.toolbar.fontColor }), q[Z].innerHTML = ea[Z]; } } else !h._dropdownMenu && h.exportEnabled && v && (n = !1, h._dropdownMenu = document.createElement("div"), h._dropdownMenu.setAttribute("tabindex", -1), q = -1 !== h.theme.indexOf("dark") ? "black" : "#888888", W(h._dropdownMenu, { position: "absolute", zIndex: 1, userSelect: "none", MozUserSeelct: "none", WebkitUserSelect: "none", msUserSelect: "none", cursor: "pointer", right: "0px", top: "25px", minWidth: "120px", outline: 0, fontSize: "14px", fontFamily: "Arial, Helvetica, sans-serif", padding: "5px 0px 5px 0px", textAlign: "left", lineHeight: "10px", backgroundColor: h.toolbar.itemBackgroundColor, boxShadow: "2px 2px 10px" + q }), h._dropdownMenu.style.display = "none", h._toolBar.appendChild(h._dropdownMenu), M(h._dropdownMenu, "blur", function () { va(h._dropdownMenu);h._dropDownCloseTime = new Date(); }, h.allDOMEventHandlers, !0), q = document.createElement("div"), W(q, { padding: "12px 8px 12px 8px" }), q.innerHTML = h._cultureInfo.printText, q.style.backgroundColor = h.toolbar.itemBackgroundColor, q.style.color = h.toolbar.fontColor, h._dropdownMenu.appendChild(q), M(q, "touchstart", function (h) { n = !0; }, h.allDOMEventHandlers), M(q, "mousemove", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColorOnHover, this.style.color = h.toolbar.fontColorOnHover); }, h.allDOMEventHandlers, !0), M(q, "mouseout", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColor, this.style.color = h.toolbar.fontColor); }, h.allDOMEventHandlers, !0), M(q, "click", function () { h.print(); va(h._dropdownMenu); }, h.allDOMEventHandlers, !0), q = document.createElement("div"), W(q, { padding: "12px 8px 12px 8px" }), q.innerHTML = h._cultureInfo.saveJPGText, q.style.backgroundColor = h.toolbar.itemBackgroundColor, q.style.color = h.toolbar.fontColor, h._dropdownMenu.appendChild(q), M(q, "touchstart", function (h) { n = !0; }, h.allDOMEventHandlers), M(q, "mousemove", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColorOnHover, this.style.color = h.toolbar.fontColorOnHover); }, h.allDOMEventHandlers, !0), M(q, "mouseout", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColor, this.style.color = h.toolbar.fontColor); }, h.allDOMEventHandlers, !0), M(q, "click", function () { h.exportChart({ format: "jpeg", fileName: h.exportFileName });va(h._dropdownMenu); }, h.allDOMEventHandlers, !0), q = document.createElement("div"), W(q, { padding: "12px 8px 12px 8px" }), q.innerHTML = h._cultureInfo.savePNGText, q.style.backgroundColor = h.toolbar.itemBackgroundColor, q.style.color = h.toolbar.fontColor, h._dropdownMenu.appendChild(q), M(q, "touchstart", function (h) { n = !0; }, h.allDOMEventHandlers), M(q, "mousemove", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColorOnHover, this.style.color = h.toolbar.fontColorOnHover); }, h.allDOMEventHandlers, !0), M(q, "mouseout", function () { n || (this.style.backgroundColor = h.toolbar.itemBackgroundColor, this.style.color = h.toolbar.fontColor); }, h.allDOMEventHandlers, !0), M(q, "click", function () { h.exportChart({ format: "png", fileName: h.exportFileName });va(h._dropdownMenu); }, h.allDOMEventHandlers, !0)); }function Za(h, n, q) { h *= ma;n *= ma;h = q.getImageData(h, n, 2, 2).data;n = !0;for (q = 0; 4 > q; q++) { if (h[q] !== h[q + 4] | h[q] !== h[q + 8] | h[q] !== h[q + 12]) { n = !1;break; } }return n ? h[0] << 16 | h[1] << 8 | h[2] : 0; }function na(h, n, q) { return h in n ? n[h] : q[h]; }function Ma(h, n, q) { if (v && $a) { var ea = h.getContext("2d");Na = ea.webkitBackingStorePixelRatio || ea.mozBackingStorePixelRatio || ea.msBackingStorePixelRatio || ea.oBackingStorePixelRatio || ea.backingStorePixelRatio || 1;ma = Ra / Na;h.width = n * ma;h.height = q * ma;Ra !== Na && (h.style.width = n + "px", h.style.height = q + "px", ea.scale(ma, ma)); } else h.width = n, h.height = q; }function hb(h) { if (!ib) { var n = !1, q = !1;"undefined" === typeof ta.Chart.creditHref ? (h.creditHref = la("iuuqr;..b`ow`rkr/bnl."), h.creditText = la("B`ow`rKR/bnl")) : (n = h.updateOption("creditText"), q = h.updateOption("creditHref"));if (h.creditHref && h.creditText) { h._creditLink || (h._creditLink = document.createElement("a"), h._creditLink.setAttribute("class", "canvasjs-chart-credit"), h._creditLink.setAttribute("title", "JavaScript Charts"), W(h._creditLink, { outline: "none", margin: "0px", position: "absolute", right: "2px", top: h.height - 14 + "px", color: "dimgrey", textDecoration: "none", fontSize: "11px", fontFamily: "Calibri, Lucida Grande, Lucida Sans Unicode, Arial, sans-serif" }), h._creditLink.setAttribute("tabIndex", -1), h._creditLink.setAttribute("target", "_blank"));if (0 === h.renderCount || n || q) h._creditLink.setAttribute("href", h.creditHref), h._creditLink.innerHTML = h.creditText;h._creditLink && h.creditHref && h.creditText ? (h._creditLink.parentElement || h._canvasJSContainer.appendChild(h._creditLink), h._creditLink.style.top = h.height - 14 + "px") : h._creditLink.parentElement && h._canvasJSContainer.removeChild(h._creditLink); } } }function ua(h, n) { Ha && (this.canvasCount |= 0, window.console.log(++this.canvasCount));var q = document.createElement("canvas");q.setAttribute("class", "canvasjs-chart-canvas");Ma(q, h, n);v || "undefined" === typeof G_vmlCanvasManager || G_vmlCanvasManager.initElement(q);return q; }function W(h, n) { for (var q in n) { h.style[q] = n[q]; } }function wa(h, n, q) { n.getAttribute("state") || (n.style.backgroundColor = h.toolbar.itemBackgroundColor, n.style.color = h.toolbar.fontColor, n.style.border = "none", W(n, { WebkitUserSelect: "none", MozUserSelect: "none", msUserSelect: "none", userSelect: "none" }));n.getAttribute("state") !== q && (n.setAttribute("state", q), n.setAttribute("type", "button"), W(n, { padding: "5px 12px", cursor: "pointer", "float": "left", width: "40px", height: "25px", outline: "0px", verticalAlign: "baseline", lineHeight: "0" }), n.setAttribute("title", h._cultureInfo[q + "Text"]), n.innerHTML = "", W(n.childNodes[0], { height: "95%", pointerEvents: "none" })); }function La() { for (var h = null, n = 0; n < arguments.length; n++) { h = arguments[n], h.style && (h.style.display = "inline"); } }function va() { for (var h = null, n = 0; n < arguments.length; n++) { (h = arguments[n]) && h.style && (h.style.display = "none"); } }function Sa(h, n, q, v, Z) { if (null === h || "undefined" === typeof h) return "undefined" === typeof q ? n : q;h = parseFloat(h.toString()) * (0 <= h.toString().indexOf("%") ? n / 100 : 1);"undefined" !== typeof v && (h = Math.min(v, h), "undefined" !== typeof Z && (h = Math.max(Z, h)));return !isNaN(h) && h <= n && 0 <= h ? h : "undefined" === typeof q ? n : q; }function J(h, n, v, ea, Z) { this._defaultsKey = h;this._themeOptionsKey = n;this._index = ea;this.parent = Z;this._eventListeners = [];h = {};this.theme && q(this.parent) && q(n) && q(ea) ? h = q(this.predefinedThemes[this.theme]) ? this.predefinedThemes.light1 : this.predefinedThemes[this.theme] : this.parent && this.parent.themeOptions && this.parent.themeOptions[n] && (null === ea ? h = this.parent.themeOptions[n] : 0 < this.parent.themeOptions[n].length && (ea = Math.min(this.parent.themeOptions[n].length - 1, ea), h = this.parent.themeOptions[n][ea]));this.themeOptions = h;this.options = v ? v : { _isPlaceholder: !0 };this.setOptions(this.options, h); }function Da(h, n, q, v, Z) { "undefined" === typeof Z && (Z = 0);this._padding = Z;this._x1 = h;this._y1 = n;this._x2 = q;this._y2 = v;this._rightOccupied = this._leftOccupied = this._bottomOccupied = this._topOccupied = this._padding; }function ia(h, n) { ia.base.constructor.call(this, "TextBlock", null, n, null, null);this.ctx = h;this._isDirty = !0;this._wrappedText = null;this._initialize(); }function Ta(h, n) { Ta.base.constructor.call(this, "Toolbar", "toolbar", n, null, h);this.chart = h;this.canvas = h.canvas;this.ctx = this.chart.ctx;this.optionsName = "toolbar"; }function ya(h, n) { ya.base.constructor.call(this, "Title", "title", n, null, h);this.chart = h;this.canvas = h.canvas;this.ctx = this.chart.ctx;this.optionsName = "title";if (q(this.options.margin) && h.options.subtitles) for (var v = h.options.subtitles, ea = 0; ea < v.length; ea++) { if ((q(v[ea].horizontalAlign) && "center" === this.horizontalAlign || v[ea].horizontalAlign === this.horizontalAlign) && (q(v[ea].verticalAlign) && "top" === this.verticalAlign || v[ea].verticalAlign === this.verticalAlign) && !v[ea].dockInsidePlotArea === !this.dockInsidePlotArea) { this.margin = 0;break; } }"undefined" === typeof this.options.fontSize && (this.fontSize = this.chart.getAutoFontSize(this.fontSize));this.height = this.width = null;this.bounds = { x1: null, y1: null, x2: null, y2: null }; }function Ia(h, n, q) { Ia.base.constructor.call(this, "Subtitle", "subtitles", n, q, h);this.chart = h;this.canvas = h.canvas;this.ctx = this.chart.ctx;this.optionsName = "subtitles";this.isOptionsInArray = !0;"undefined" === typeof this.options.fontSize && (this.fontSize = this.chart.getAutoFontSize(this.fontSize));this.height = this.width = null;this.bounds = { x1: null, y1: null, x2: null, y2: null }; }function Ua() { this.pool = []; }function Ja(h) { var n;h && Ka[h] && (n = Ka[h]);Ja.base.constructor.call(this, "CultureInfo", null, n, null, null); }var Ha = !1, Ga = {}, v = !!document.createElement("canvas").getContext, ta = { Chart: { width: 500, height: 400, zoomEnabled: !1, zoomType: "x", backgroundColor: "white", theme: "light1", animationEnabled: !1, animationDuration: 1200, dataPointWidth: null, dataPointMinWidth: null, dataPointMaxWidth: null, colorSet: "colorSet1", culture: "en", creditHref: "", creditText: "CanvasJS", interactivityEnabled: !0, exportEnabled: !1, exportFileName: "Chart", rangeChanging: null, rangeChanged: null, publicProperties: { title: "readWrite", subtitles: "readWrite", toolbar: "readWrite", toolTip: "readWrite", legend: "readWrite", axisX: "readWrite", axisY: "readWrite", axisX2: "readWrite", axisY2: "readWrite", data: "readWrite", options: "readWrite", bounds: "readOnly", container: "readOnly", selectedColorSet: "readOnly" } }, Title: { padding: 0, text: null, verticalAlign: "top", horizontalAlign: "center", fontSize: 20, fontFamily: "Calibri", fontWeight: "normal", fontColor: "black", fontStyle: "normal", borderThickness: 0, borderColor: "black", cornerRadius: 0, backgroundColor: v ? "transparent" : null, margin: 5, wrap: !0, maxWidth: null, dockInsidePlotArea: !1, publicProperties: { options: "readWrite", bounds: "readOnly", chart: "readOnly" } }, Subtitle: { padding: 0, text: null, verticalAlign: "top", horizontalAlign: "center", fontSize: 14, fontFamily: "Calibri", fontWeight: "normal", fontColor: "black", fontStyle: "normal", borderThickness: 0, borderColor: "black", cornerRadius: 0, backgroundColor: null, margin: 2, wrap: !0, maxWidth: null, dockInsidePlotArea: !1, publicProperties: { options: "readWrite", bounds: "readOnly", chart: "readOnly" } }, Toolbar: { itemBackgroundColor: "white", itemBackgroundColorOnHover: "#2196f3", buttonBorderColor: "#2196f3", buttonBorderThickness: 1, fontColor: "black", fontColorOnHover: "white", publicProperties: { options: "readWrite", chart: "readOnly" } }, Legend: { name: null, verticalAlign: "center", horizontalAlign: "right", fontSize: 14, fontFamily: "calibri", fontWeight: "normal", fontColor: "black", fontStyle: "normal", cursor: null, itemmouseover: null, itemmouseout: null, itemmousemove: null, itemclick: null, dockInsidePlotArea: !1, reversed: !1, backgroundColor: v ? "transparent" : null, borderColor: v ? "transparent" : null, borderThickness: 0, cornerRadius: 0, maxWidth: null, maxHeight: null, markerMargin: null, itemMaxWidth: null, itemWidth: null, itemWrap: !0, itemTextFormatter: null, publicProperties: { options: "readWrite", bounds: "readOnly", chart: "readOnly" } }, ToolTip: { enabled: !0, shared: !1, animationEnabled: !0, content: null, contentFormatter: null, reversed: !1, backgroundColor: v ? "rgba(255,255,255,.9)" : "rgb(255,255,255)", borderColor: null, borderThickness: 2, cornerRadius: 5, fontSize: 14, fontColor: "black", fontFamily: "Calibri, Arial, Georgia, serif;", fontWeight: "normal", fontStyle: "italic", updated: null, hidden: null, publicProperties: { options: "readWrite", chart: "readOnly" } }, Axis: { minimum: null, maximum: null, viewportMinimum: null, viewportMaximum: null, interval: null, intervalType: null, reversed: !1, logarithmic: !1, logarithmBase: 10, title: null, titleFontColor: "black", titleFontSize: 20, titleFontFamily: "arial", titleFontWeight: "normal", titleFontStyle: "normal", titleWrap: !0, titleMaxWidth: null, titleBackgroundColor: v ? "transparent" : null, titleBorderColor: v ? "transparent" : null, titleBorderThickness: 0, titleCornerRadius: 0, labelAngle: 0, labelFontFamily: "arial", labelFontColor: "black", labelFontSize: 12, labelFontWeight: "normal", labelFontStyle: "normal", labelAutoFit: !0, labelWrap: !0, labelMaxWidth: null, labelFormatter: null, labelBackgroundColor: v ? "transparent" : null, labelBorderColor: v ? "transparent" : null, labelBorderThickness: 0, labelCornerRadius: 0, labelPlacement: "outside", labelTextAlign: "left", prefix: "", suffix: "", includeZero: !1, tickLength: 5, tickColor: "black", tickThickness: 1, tickPlacement: "outside", lineColor: "black", lineThickness: 1, lineDashType: "solid", gridColor: "#A0A0A0", gridThickness: 0, gridDashType: "solid", interlacedColor: v ? "transparent" : null, valueFormatString: null, margin: 2, publicProperties: { options: "readWrite", stripLines: "readWrite", scaleBreaks: "readWrite", crosshair: "readWrite", bounds: "readOnly", chart: "readOnly" } }, StripLine: { value: null, startValue: null, endValue: null, color: "orange", opacity: null, thickness: 2, lineDashType: "solid", label: "", labelPlacement: "inside", labelAlign: "far", labelWrap: !0, labelMaxWidth: null, labelBackgroundColor: null, labelBorderColor: v ? "transparent" : null, labelBorderThickness: 0, labelCornerRadius: 0, labelFontFamily: "arial", labelFontColor: "orange", labelFontSize: 12, labelFontWeight: "normal", labelFontStyle: "normal", labelFormatter: null, showOnTop: !1, publicProperties: { options: "readWrite", axis: "readOnly", bounds: "readOnly", chart: "readOnly" } }, ScaleBreaks: { autoCalculate: !1, collapsibleThreshold: "25%", maxNumberOfAutoBreaks: 2, spacing: 8, type: "straight", color: "#FFFFFF", fillOpacity: 0.9, lineThickness: 2, lineColor: "#E16E6E", lineDashType: "solid", publicProperties: { options: "readWrite", customBreaks: "readWrite", axis: "readOnly", autoBreaks: "readOnly", bounds: "readOnly", chart: "readOnly" } }, Break: { startValue: null, endValue: null, spacing: 8, type: "straight", color: "#FFFFFF", fillOpacity: 0.9, lineThickness: 2, lineColor: "#E16E6E", lineDashType: "solid", publicProperties: { options: "readWrite", scaleBreaks: "readOnly", bounds: "readOnly", chart: "readOnly" } }, Crosshair: { enabled: !1, snapToDataPoint: !1, color: "grey", opacity: null, thickness: 2, lineDashType: "solid", label: "", labelWrap: !0, labelMaxWidth: null, labelBackgroundColor: v ? "grey" : null, labelBorderColor: v ? "grey" : null, labelBorderThickness: 0, labelCornerRadius: 0, labelFontFamily: v ? "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" : "calibri", labelFontSize: 12, labelFontColor: "#fff", labelFontWeight: "normal", labelFontStyle: "normal", labelFormatter: null, valueFormatString: null, updated: null, hidden: null, publicProperties: { options: "readWrite", axis: "readOnly", bounds: "readOnly", chart: "readOnly" } }, DataSeries: { name: null, dataPoints: null, label: "", bevelEnabled: !1, highlightEnabled: !0, cursor: "default", indexLabel: "", indexLabelPlacement: "auto", indexLabelOrientation: "horizontal", indexLabelTextAlign: "left", indexLabelFontColor: "black", indexLabelFontSize: 12, indexLabelFontStyle: "normal", indexLabelFontFamily: "Arial", indexLabelFontWeight: "normal", indexLabelBackgroundColor: null, indexLabelLineColor: "gray", indexLabelLineThickness: 1, indexLabelLineDashType: "solid", indexLabelMaxWidth: null, indexLabelWrap: !0, indexLabelFormatter: null, lineThickness: 2, lineDashType: "solid", connectNullData: !1, nullDataLineDashType: "dash", color: null, lineColor: null, risingColor: "white", fallingColor: "red", fillOpacity: null, startAngle: 0, radius: null, innerRadius: null, neckHeight: null, neckWidth: null, reversed: !1, valueRepresents: null, linkedDataSeriesIndex: null, whiskerThickness: 2, whiskerDashType: "solid", whiskerColor: null, whiskerLength: null, stemThickness: 2, stemColor: null, stemDashType: "solid", upperBoxColor: "white", lowerBoxColor: "white", type: "column", xValueType: "number", axisXType: "primary", axisYType: "primary", axisXIndex: 0, axisYIndex: 0, xValueFormatString: null, yValueFormatString: null, zValueFormatString: null, percentFormatString: null, showInLegend: null, legendMarkerType: null, legendMarkerColor: null, legendText: null, legendMarkerBorderColor: v ? "transparent" : null, legendMarkerBorderThickness: 0, markerType: "circle", markerColor: null, markerSize: null, markerBorderColor: v ? "transparent" : null, markerBorderThickness: 0, mouseover: null, mouseout: null, mousemove: null, click: null, toolTipContent: null, visible: !0, publicProperties: { options: "readWrite", axisX: "readWrite", axisY: "readWrite", chart: "readOnly" } }, TextBlock: { x: 0, y: 0, width: null, height: null, maxWidth: null, maxHeight: null, padding: 0, angle: 0, text: "", horizontalAlign: "center", textAlign: "left", fontSize: 12, fontFamily: "calibri", fontWeight: "normal", fontColor: "black", fontStyle: "normal", borderThickness: 0, borderColor: "black", cornerRadius: 0, backgroundColor: null, textBaseline: "top" }, CultureInfo: { decimalSeparator: ".", digitGroupSeparator: ",", zoomText: "Zoom", panText: "Pan", resetText: "Reset", menuText: "More Options", saveJPGText: "Save as JPEG", savePNGText: "Save as PNG", printText: "Print", days: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), shortDays: "Sun Mon Tue Wed Thu Fri Sat".split(" "), 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(" ") } }, Ka = { en: {} }, z = v ? "Trebuchet MS, Helvetica, sans-serif" : "Arial", Ea = v ? "Impact, Charcoal, sans-serif" : "Arial", za = { colorSet1: "#4F81BC #C0504E #9BBB58 #23BFAA #8064A1 #4AACC5 #F79647 #7F6084 #77A033 #33558B #E59566".split(" "), colorSet2: "#6D78AD #51CDA0 #DF7970 #4C9CA0 #AE7D99 #C9D45C #5592AD #DF874D #52BCA8 #8E7AA3 #E3CB64 #C77B85 #C39762 #8DD17E #B57952 #FCC26C".split(" "), colorSet3: "#8CA1BC #36845C #017E82 #8CB9D0 #708C98 #94838D #F08891 #0366A7 #008276 #EE7757 #E5BA3A #F2990B #03557B #782970".split(" ") }, K, ba, T, X, fa;ba = "#333333";T = "#000000";K = "#666666";fa = X = "#000000";var da = 20, w = 14, Va = { colorSet: "colorSet1", backgroundColor: "#FFFFFF", title: { fontFamily: Ea, fontSize: 32, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }, subtitles: [{ fontFamily: Ea, fontSize: w, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }], data: [{ indexLabelFontFamily: z, indexLabelFontSize: w, indexLabelFontColor: ba, indexLabelFontWeight: "normal", indexLabelLineThickness: 1 }], axisX: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: ba, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisX2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: ba, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisY: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: ba, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisY2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: ba, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], legend: { fontFamily: z, fontSize: 14, fontColor: ba, fontWeight: "bold", verticalAlign: "bottom", horizontalAlign: "center" }, toolTip: { fontFamily: z, fontSize: 14, fontStyle: "normal", cornerRadius: 0, borderThickness: 1 }, toolbar: { itemBackgroundColor: "white", itemBackgroundColorOnHover: "#2196f3", buttonBorderColor: "#2196f3", buttonBorderThickness: 1, fontColor: "black", fontColorOnHover: "white" } };T = ba = "#F5F5F5";K = "#FFFFFF";X = "#40BAF1";fa = "#F5F5F5";var da = 20, w = 14, ab = { colorSet: "colorSet2", title: { fontFamily: z, fontSize: 33, fontColor: "#3A3A3A", fontWeight: "bold", verticalAlign: "top", margin: 5 }, subtitles: [{ fontFamily: z, fontSize: w, fontColor: "#3A3A3A", fontWeight: "normal", verticalAlign: "top", margin: 5 }], data: [{ indexLabelFontFamily: z, indexLabelFontSize: w, indexLabelFontColor: "#666666", indexLabelFontWeight: "normal", indexLabelLineThickness: 1 }], axisX: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: "#666666", titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: "#666666", labelFontWeight: "normal", lineThickness: 1, lineColor: "#BBBBBB", tickThickness: 1, tickColor: "#BBBBBB", gridThickness: 1, gridColor: "#BBBBBB", stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FFA500", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FFA500", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: "black", color: "black", thickness: 1, lineDashType: "dot" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisX2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: "#666666", titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: "#666666", labelFontWeight: "normal", lineThickness: 1, lineColor: "#BBBBBB", tickColor: "#BBBBBB", tickThickness: 1, gridThickness: 1, gridColor: "#BBBBBB", stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FFA500", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FFA500", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: "black", color: "black", thickness: 1, lineDashType: "dot" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisY: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: "#666666", titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: "#666666", labelFontWeight: "normal", lineThickness: 0, lineColor: "#BBBBBB", tickColor: "#BBBBBB", tickThickness: 1, gridThickness: 1, gridColor: "#BBBBBB", stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FFA500", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FFA500", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: "black", color: "black", thickness: 1, lineDashType: "dot" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], axisY2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: "#666666", titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: "#666666", labelFontWeight: "normal", lineThickness: 0, lineColor: "#BBBBBB", tickColor: "#BBBBBB", tickThickness: 1, gridThickness: 1, gridColor: "#BBBBBB", stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FFA500", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FFA500", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#EEEEEE", labelFontWeight: "normal", labelBackgroundColor: "black", color: "black", thickness: 1, lineDashType: "dot" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#BBBBBB", lineThickness: 1, lineDashType: "solid" } }], legend: { fontFamily: z, fontSize: 14, fontColor: "#3A3A3A", fontWeight: "bold", verticalAlign: "bottom", horizontalAlign: "center" }, toolTip: { fontFamily: z, fontSize: 14, fontStyle: "normal", cornerRadius: 0, borderThickness: 1 }, toolbar: { itemBackgroundColor: "white", itemBackgroundColorOnHover: "#2196f3", buttonBorderColor: "#2196f3", buttonBorderThickness: 1, fontColor: "black", fontColorOnHover: "white" } };T = ba = "#F5F5F5";K = "#FFFFFF";X = "#40BAF1";fa = "#F5F5F5";da = 20;w = 14;Ea = { colorSet: "colorSet12", backgroundColor: "#2A2A2A", title: { fontFamily: Ea, fontSize: 32, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }, subtitles: [{ fontFamily: Ea, fontSize: w, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }], toolbar: { itemBackgroundColor: "#666666", itemBackgroundColorOnHover: "#FF7372", buttonBorderColor: "#FF7372", buttonBorderThickness: 1, fontColor: "#F5F5F5", fontColorOnHover: "#F5F5F5" }, data: [{ indexLabelFontFamily: z, indexLabelFontSize: w, indexLabelFontColor: T, indexLabelFontWeight: "normal", indexLabelLineThickness: 1 }], axisX: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisX2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisY: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisY2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], legend: { fontFamily: z, fontSize: 14, fontColor: ba, fontWeight: "bold", verticalAlign: "bottom", horizontalAlign: "center" }, toolTip: { fontFamily: z, fontSize: 14, fontStyle: "normal", cornerRadius: 0, borderThickness: 1, fontColor: T, backgroundColor: "rgba(0, 0, 0, .7)" } };K = "#FFFFFF";T = ba = "#FAFAFA";X = "#40BAF1";fa = "#F5F5F5";var da = 20, w = 14, bb = { light1: Va, light2: ab, dark1: Ea, dark2: { colorSet: "colorSet2", backgroundColor: "#32373A", title: { fontFamily: z, fontSize: 32, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }, subtitles: [{ fontFamily: z, fontSize: w, fontColor: ba, fontWeight: "normal", verticalAlign: "top", margin: 5 }], toolbar: { itemBackgroundColor: "#666666", itemBackgroundColorOnHover: "#FF7372", buttonBorderColor: "#FF7372", buttonBorderThickness: 1, fontColor: "#F5F5F5", fontColorOnHover: "#F5F5F5" }, data: [{ indexLabelFontFamily: z, indexLabelFontSize: w, indexLabelFontColor: T, indexLabelFontWeight: "normal", indexLabelLineThickness: 1 }], axisX: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisX2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 1, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 0, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisY: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 0, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], axisY2: [{ titleFontFamily: z, titleFontSize: da, titleFontColor: T, titleFontWeight: "normal", labelFontFamily: z, labelFontSize: w, labelFontColor: T, labelFontWeight: "normal", lineThickness: 0, lineColor: K, tickThickness: 1, tickColor: K, gridThickness: 1, gridColor: K, stripLines: [{ labelFontFamily: z, labelFontSize: w, labelFontColor: "#FF7300", labelFontWeight: "normal", labelBackgroundColor: null, color: "#FF7300", thickness: 1 }], crosshair: { labelFontFamily: z, labelFontSize: w, labelFontColor: "#000000", labelFontWeight: "normal", labelBackgroundColor: fa, color: X, thickness: 1, lineDashType: "dash" }, scaleBreaks: { type: "zigzag", spacing: "2%", lineColor: "#777777", lineThickness: 1, lineDashType: "solid", color: "#111111" } }], legend: { fontFamily: z, fontSize: 14, fontColor: ba, fontWeight: "bold", verticalAlign: "bottom", horizontalAlign: "center" }, toolTip: { fontFamily: z, fontSize: 14, fontStyle: "normal", cornerRadius: 0, borderThickness: 1, fontColor: T, backgroundColor: "rgba(0, 0, 0, .7)" } }, theme1: Va, theme2: ab, theme3: Va }, U = { numberDuration: 1, yearDuration: 314496E5, monthDuration: 2592E6, weekDuration: 6048E5, dayDuration: 864E5, hourDuration: 36E5, minuteDuration: 6E4, secondDuration: 1E3, millisecondDuration: 1, dayOfWeekFromInt: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ") }, fb = function () { var h = !1;try { var n = Object.defineProperty && Object.defineProperty({}, "passive", { get: function get() { h = !0;return !1; } });window.addEventListener && (window.addEventListener("test", null, n), window.removeEventListener("test", null, n)); } catch (q) { h = !1; }return h; }(), Ya = {}, ra = null, kb = function kb() { this.ctx.clearRect(0, 0, this.width, this.height);this.backgroundColor && (this.ctx.fillStyle = this.backgroundColor, this.ctx.fillRect(0, 0, this.width, this.height)); }, xa = function xa(h) { h.width = 1;h.height = 1;h.getContext("2d") && h.getContext("2d").clearRect(0, 0, 1, 1); }, lb = function lb(h, n, q) { n = Math.min(this.width, this.height);return Math.max("theme4" === this.theme ? 0 : 300 <= n ? 12 : 11, Math.round(n * (h / 400))); }, Aa = function () { var h = /D{1,4}|M{1,4}|Y{1,4}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|f{1,3}|t{1,2}|T{1,2}|K|z{1,3}|"[^"]*"|'[^']*'/g, n = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), q = "Sun Mon Tue Wed Thu Fri Sat".split(" "), v = "January February March April May June July August September October November December".split(" "), Z = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), z = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g, E = /[^-+\dA-Z]/g;return function (w, I, N) { var K = N ? N.days : n, V = N ? N.months : v, M = N ? N.shortDays : q, U = N ? N.shortMonths : Z;N = "";var W = !1;w = w && w.getTime ? w : w ? new Date(w) : new Date();if (isNaN(w)) throw SyntaxError("invalid date");"UTC:" === I.slice(0, 4) && (I = I.slice(4), W = !0);N = W ? "getUTC" : "get";var J = w[N + "Date"](), P = w[N + "Day"](), Y = w[N + "Month"](), a = w[N + "FullYear"](), d = w[N + "Hours"](), c = w[N + "Minutes"](), b = w[N + "Seconds"](), e = w[N + "Milliseconds"](), f = W ? 0 : w.getTimezoneOffset();return N = I.replace(h, function (l) { switch (l) {case "D": return J; case "DD": return ca(J, 2);case "DDD": return M[P];case "DDDD": return K[P];case "M": return Y + 1;case "MM": return ca(Y + 1, 2);case "MMM": return U[Y];case "MMMM": return V[Y];case "Y": return parseInt(String(a).slice(-2));case "YY": return ca(String(a).slice(-2), 2);case "YYY": return ca(String(a).slice(-3), 3);case "YYYY": return ca(a, 4);case "h": return d % 12 || 12;case "hh": return ca(d % 12 || 12, 2);case "H": return d;case "HH": return ca(d, 2);case "m": return c;case "mm": return ca(c, 2);case "s": return b;case "ss": return ca(b, 2);case "f": return ca(String(e), 3).slice(0, 1);case "ff": return ca(String(e), 3).slice(0, 2);case "fff": return ca(String(e), 3).slice(0, 3);case "t": return 12 > d ? "a" : "p";case "tt": return 12 > d ? "am" : "pm";case "T": return 12 > d ? "A" : "P";case "TT": return 12 > d ? "AM" : "PM";case "K": return W ? "UTC" : (String(w).match(z) || [""]).pop().replace(E, "");case "z": return (0 < f ? "-" : "+") + Math.floor(Math.abs(f) / 60);case "zz": return (0 < f ? "-" : "+") + ca(Math.floor(Math.abs(f) / 60), 2);case "zzz": return (0 < f ? "-" : "+") + ca(Math.floor(Math.abs(f) / 60), 2) + ca(Math.abs(f) % 60, 2);default: return l.slice(1, l.length - 1);} }); }; }(), ga = function ga(h, n, q) { if (null === h) return "";if (!isFinite(h)) return h;h = Number(h);var v = 0 > h ? !0 : !1;v && (h *= -1);var z = q ? q.decimalSeparator : ".", w = q ? q.digitGroupSeparator : ",", E = "";n = String(n);var E = 1, I = q = "", K = -1, N = [], V = [], M = 0, U = 0, W = 0, J = !1, T = 0, I = n.match(/"[^"]*"|'[^']*'|[eE][+-]*[0]+|[,]+[.]|\u2030|./g);n = null;for (var P = 0; I && P < I.length; P++) { if (n = I[P], "." === n && 0 > K) K = P;else { if ("%" === n) E *= 100;else if ("\u2030" === n) { E *= 1E3;continue; } else if ("," === n[0] && "." === n[n.length - 1]) { E /= Math.pow(1E3, n.length - 1);K = P + n.length - 1;continue; } else "E" !== n[0] && "e" !== n[0] || "0" !== n[n.length - 1] || (J = !0);0 > K ? (N.push(n), "#" === n || "0" === n ? M++ : "," === n && W++) : (V.push(n), "#" !== n && "0" !== n || U++); } }J && (n = Math.floor(h), I = -Math.floor(Math.log(h) / Math.LN10 + 1), T = 0 === h ? 0 : 0 === n ? -(M + I) : String(n).length - M, E /= Math.pow(10, T));0 > K && (K = P);E = (h * E).toFixed(U);n = E.split(".");E = (n[0] + "").split("");h = (n[1] + "").split("");E && "0" === E[0] && E.shift();for (J = I = P = U = K = 0; 0 < N.length;) { if (n = N.pop(), "#" === n || "0" === n) { if (K++, K === M) { var Y = E, E = [];if ("0" === n) for (n = M - U - (Y ? Y.length : 0); 0 < n;) { Y.unshift("0"), n--; }for (; 0 < Y.length;) { q = Y.pop() + q, J++, 0 === J % I && P === W && 0 < Y.length && (q = w + q); } } else 0 < E.length ? (q = E.pop() + q, U++, J++) : "0" === n && (q = "0" + q, U++, J++), 0 === J % I && P === W && 0 < E.length && (q = w + q); } else "E" !== n[0] && "e" !== n[0] || "0" !== n[n.length - 1] || !/[eE][+-]*[0]+/.test(n) ? "," === n ? (P++, I = J, J = 0, 0 < E.length && (q = w + q)) : q = 1 < n.length && ('"' === n[0] && '"' === n[n.length - 1] || "'" === n[0] && "'" === n[n.length - 1]) ? n.slice(1, n.length - 1) + q : n + q : (n = 0 > T ? n.replace("+", "").replace("-", "") : n.replace("-", ""), q += n.replace(/[0]+/, function (a) { return ca(T, a.length); })); }w = "";for (N = !1; 0 < V.length;) { n = V.shift(), "#" === n || "0" === n ? 0 < h.length && 0 !== Number(h.join("")) ? (w += h.shift(), N = !0) : "0" === n && (w += "0", N = !0) : 1 < n.length && ('"' === n[0] && '"' === n[n.length - 1] || "'" === n[0] && "'" === n[n.length - 1]) ? w += n.slice(1, n.length - 1) : "E" !== n[0] && "e" !== n[0] || "0" !== n[n.length - 1] || !/[eE][+-]*[0]+/.test(n) ? w += n : (n = 0 > T ? n.replace("+", "").replace("-", "") : n.replace("-", ""), w += n.replace(/[0]+/, function (a) { return ca(T, a.length); })); }q += (N ? z : "") + w;return v ? "-" + q : q; }, Oa = function Oa(h) { var n = 0, q = 0;h = h || window.event;h.offsetX || 0 === h.offsetX ? (n = h.offsetX, q = h.offsetY) : h.layerX || 0 == h.layerX ? (n = h.layerX, q = h.layerY) : (n = h.pageX - h.target.offsetLeft, q = h.pageY - h.target.offsetTop);return { x: n, y: q }; }, $a = !0, Ra = window.devicePixelRatio || 1, Na = 1, ma = $a ? Ra / Na : 1, $ = function $(h, n, q, v, w, z, E, I, K, N, V, U, M) { "undefined" === typeof M && (M = 1);E = E || 0;I = I || "black";var J = 15 < v - n && 15 < w - q ? 8 : 0.35 * Math.min(v - n, w - q);h.beginPath();h.moveTo(n, q);h.save();h.fillStyle = z;h.globalAlpha = M;h.fillRect(n, q, v - n, w - q);h.globalAlpha = 1;0 < E && (M = 0 === E % 2 ? 0 : 0.5, h.beginPath(), h.lineWidth = E, h.strokeStyle = I, h.moveTo(n, q), h.rect(n - M, q - M, v - n + 2 * M, w - q + 2 * M), h.stroke());h.restore();!0 === K && (h.save(), h.beginPath(), h.moveTo(n, q), h.lineTo(n + J, q + J), h.lineTo(v - J, q + J), h.lineTo(v, q), h.closePath(), E = h.createLinearGradient((v + n) / 2, q + J, (v + n) / 2, q), E.addColorStop(0, z), E.addColorStop(1, "rgba(255, 255, 255, .4)"), h.fillStyle = E, h.fill(), h.restore());!0 === N && (h.save(), h.beginPath(), h.moveTo(n, w), h.lineTo(n + J, w - J), h.lineTo(v - J, w - J), h.lineTo(v, w), h.closePath(), E = h.createLinearGradient((v + n) / 2, w - J, (v + n) / 2, w), E.addColorStop(0, z), E.addColorStop(1, "rgba(255, 255, 255, .4)"), h.fillStyle = E, h.fill(), h.restore());!0 === V && (h.save(), h.beginPath(), h.moveTo(n, q), h.lineTo(n + J, q + J), h.lineTo(n + J, w - J), h.lineTo(n, w), h.closePath(), E = h.createLinearGradient(n + J, (w + q) / 2, n, (w + q) / 2), E.addColorStop(0, z), E.addColorStop(1, "rgba(255, 255, 255, 0.1)"), h.fillStyle = E, h.fill(), h.restore());!0 === U && (h.save(), h.beginPath(), h.moveTo(v, q), h.lineTo(v - J, q + J), h.lineTo(v - J, w - J), h.lineTo(v, w), E = h.createLinearGradient(v - J, (w + q) / 2, v, (w + q) / 2), E.addColorStop(0, z), E.addColorStop(1, "rgba(255, 255, 255, 0.1)"), h.fillStyle = E, E.addColorStop(0, z), E.addColorStop(1, "rgba(255, 255, 255, 0.1)"), h.fillStyle = E, h.fill(), h.closePath(), h.restore()); }, la = function la(h) { for (var n = "", q = 0; q < h.length; q++) { n += String.fromCharCode(Math.ceil(h.length / 57 / 5) ^ h.charCodeAt(q)); }return n; }, ib = window && window[la("mnb`uhno")] && window[la("mnb`uhno")].href && window[la("mnb`uhno")].href.indexOf && (-1 !== window[la("mnb`uhno")].href.indexOf(la("b`ow`rkr/bnl")) || -1 !== window[la("mnb`uhno")].href.indexOf(la("gdonqhy/bnl")) || -1 !== window[la("mnb`uhno")].href.indexOf(la("gheemd"))) && -1 === window[la("mnb`uhno")].href.indexOf(la("gheemd")), jb = { reset: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAeCAYAAABJ/8wUAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAPjSURBVFhHxVdJaFNRFP1J/jwkP5MxsbaC1WJEglSxOFAXIsFpVRE3ggi1K90obioRRBA33XXnQnciirhQcMCdorgQxBkXWlREkFKsWkv5npvckp/XnzRpKh64kLw733fffe9L/wrL0+mVUdO8uTSZ3MBL/we2qg4rkuSpodCELstXE46ziVkLQ6FQcGOmeSSq6wd4aV50d3drWjj8kQKZJTUc9kxFGenv79dZrDksTSTWWJp2QYtEPiErysyzdX0LsxsCQR8keX8gs6RHIk8ysdgKFg2G53mhuOPsshTlBjKaFo1g7SqLNoShKLdFXT8huQ/paLSbxatYnc2mHMM4hr18Vi8TIvCmXF3vYrW6cF23gGTOk0M1wA4RKvOmq6vLZRVJipvmSWT6tZ6CSEYkco5V50VPT4+D7RwOqi6RiSZm0fJ+vggSqkeoypdsNmuyelNwbXsbgvkWYMtzDWNvWaijoyOBqE+hVK8abcssUeXQ/YfKyi0gFYv1Ipgfoj34fYGTJLOYJA0ODirok32GLN8XhUWCwSes1hIwBg6LydJ/tEeRRapAdUp+wSAiZchtZZWWgAZ+JNpD8peYXQVK9UwUxNpzOK8pq97kURZhYTCKBwPD7h2zK+js7Myi7D8Fod+0TkMI8+EMAngLGc/WtBFWawkFHFnoj/t9KLgGmF0B3QfkxC+EarxkdhnFYlFLY06USqUwL7UMjICHfh/wOc2sCqhpxGbCkLvL7EUDbF73+6DkmVWB6zi7xUDQSLeYvWjAILvm9zEnkJhlbRcDQZcv6Kg2AipyT/Axw6wKlqVSqxDdjF8Izfod13qURdrG/nxehY+xGh+h0CSzKygGvSNQIcc097BI24jb9hax6kj2E7OrMFX1il+ICEf2NrPbhiXLl+fYl+U7zK4iYdsDcyLGf+ofFlkwcN+s10KhmpuYhhtm0hCLVIFL0MDsqNlDIqy9x2CLs1jL6OvrI7vPRbtohXG6eFmsFnHDGAp6n9AgyuVySRZrGvROxRgIfLXhzjrNYnNBUxNX/dMgRWT1mt4XLDovaApD53E9W3ilNX5M55LJHpRtIsgAvciR4WWcgK2Dvb1YqgXevmF8z2zEBTcKG39EfSKsT9EbhVUaI2FZO+oZIqImxol6j66/hcAu4sSN4vc1ZPoKeoE6RGhYL2YYA+ymOSSi0Z0wWntbtkGUWCvfSDXIxONraZ/FY90KUfNTpfC5spnNLgxoYNnR9RO4F8ofXEHOgogCQE99w+fF2Xw+b7O59rEOsyRqGEfpVoaDMQQ1CZrG46bcM6AZ0C/wPqNfHliqejyTySxh9TqQpL+xmbIlkB9SlAAAAABJRU5ErkJggg==" }, pan: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAICSURBVEhLxZbPahNRGMUn/5MpuAiBEAIufQGfzr5E40YptBXajYzudCEuGqS+gGlrFwquDGRTutBdYfydzJ3LzeQmJGZue+Dw/Z17Mnfmu5Pof9Hr9Z61Wq0bWZMKj263O6xWq99wU9lOpzPMKgEhEcRucNOcioOK+0RzBhNvt9tPV4nmVF19+OWhVqt9xXgFXZq+8lCv119UKpUJ7iX2FmvFTKz8RH34YdBsNk8wVtjE4fGYwm8wrrDi3WBG5oKXZGRSS9hGuNFojLTe2lFz5xThWZIktayyiE2FdT3rzXBXz7krKiL8c17wAKFDjCus2AvW+YGZ9y2JF0VFRuMPfI//rsCE/C+s26s4gQu9ul7r4NteKx7H8XOC724xNNGbaNu++IrBqbOV7Tj3FgMRvc/YKOr3+3sE47wgEt/Bl/gaK5cHbNU11vYSXylfpK7XOvjuumPp4Wcoipu30Qsez2uMXYz4lfI+mOmwothY+SLiXJy7mKVpWs3Si0CoOMfeI9Od43Wic+jO+ZVv+crsm9QSNhUW9LXSeoPBYLXopthGuFQgdIxxhY+UDwlt1x5CZ1hX+NTUdt/OIvjKaDSmuOJfaIVNPKX+W18j/PLA2/kR44p5Sd8HbHngT/yTfNRWUXX14ZcL3wmX0+TLf8YO7CGT8yFE5zB3/gney25/OETRP9CtPDFe5jShAAAAAElFTkSuQmCC" }, zoom: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALWSURBVEhLvZZLaBNRFIabyftBIgEfqCCBoCC6MYqiXYiIj4U76U4X7sUHbhQhUBfixhZEUBDB16YuFERaUaQLK7ooCOJj4UKtYEFU0EptShO/A9Ph3js3k8lo/eHnP7n3nP/M3LlzMz1hkUwmNziOcyKRSFyFt+LxeD/c2Wq1Ym7Kv0M2m11Os1OxWGycn1OwZXCGuXfwIhezkd9/jRgNT2L4ldhs1pbkX5OLJe4euVxuGQaPCa3mnUjtJx7BDuKusJTCV6jVVGHTMuYRjxma7yIOhTgFY6jNaAKew2xPKpVay9ganmkvj+M448/MfJdT5K5Gg4HJacRngPFgqVRaRNwW1B4i7yehWfsEDdz1K+A01AoxPIqGAiuwGfkOTY8+1A6u7AyiFTB2Hu0KPIrdiOnzHLWDybeImvy+Wq2mZa5bUHsD0Zpz+KxHdWQymV6kAb1ElqeORgJLvgnRdj1+R1AfzkIvSUjxVjQSarVakrueIPT8+H1F5jSUy+WXiJrUYBVWyVxU4PEU8TzhfaijUqnMIWrjaY492eWRwdKOIqrnIxnXwLLeRLwk2GQzrEMjg0avEbXxkIxr4OoOImpj2QwyFgms1koa/SZUG8s+0iGnEhNfCNXEhzIXBVz0McTzEvJ+70P9oNFtxEzei3aFYrFYxmuSUPWSv9Yi9IMm2xE1We56Mp1OV4nDwqFmBDV9gk9AEh4gZtFHNt8W4kAUCoXF5MorY9Z/kDni9nDv7hc0i2fhgLvTtX8a99PoMPPagTFPxofRzmDJ9yM+AyEmTfgGysYbQcfhDzPPJDmX0c7gDg4gs9BqFIWhm/Nct5H8gtBq1I7UfIbtvmIuoaGQcp+fdpbbSM43eEH5wrwLbXmhm/fU63VHXjcuok7hEByFY/AeHGC8L5/PL3HT5xGH1uYwfPOICGo+CBcU0vwO1BqzUqILDl/z/9VYIMfpddiAc47jDP8BsUpb13wOLRwAAAAASUVORK5CYII=" }, menu: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAeCAYAAABE4bxTAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADoSURBVFhH7dc9CsJAFATgRxIIBCwCqZKATX5sbawsY2MvWOtF9AB6AU8gguAJbD2AnZ2VXQT/Ko2TYGCL2OYtYQc+BuYA+1hCtnCVwMm27SGaXpDJIAiCvCkVR05hGOZNN3HkFMdx3nQRR06+76/R1IcFLJlNQEWlmWlBTwJtKLKHynehZqnjOGM0PYWRVXk61C37p7xlZ3Hk5HneCk1dmMH811xGoKLSzDiQwIBZB4ocoPJdqNkDt2yKlueWRVGUtzy3rPwo3sWRU3nLjuLI6OO67oZM00wMw3hrmpZx0XU9syxrR0T0BeMpb9dneSR2AAAAAElFTkSuQmCC" } }; J.prototype.setOptions = function (h, n) { if (ta[this._defaultsKey]) { var q = ta[this._defaultsKey], v;for (v in q) { "publicProperties" !== v && q.hasOwnProperty(v) && (this[v] = h && v in h ? h[v] : n && v in n ? n[v] : q[v]); } } else Ha && window.console && console.log("defaults not set"); };J.prototype.get = function (h) { var n = ta[this._defaultsKey];if ("options" === h) return this.options && this.options._isPlaceholder ? null : this.options;if (n.hasOwnProperty(h) || n.publicProperties && n.publicProperties.hasOwnProperty(h)) return this[h];window.console && window.console.log('Property "' + h + "\" doesn't exist. Please check for typo."); };J.prototype.set = function (h, n, q) { q = "undefined" === typeof q ? !0 : q;var v = ta[this._defaultsKey];if ("options" === h) this.createUserOptions(n);else if (v.hasOwnProperty(h) || v.publicProperties && v.publicProperties.hasOwnProperty(h) && "readWrite" === v.publicProperties[h]) this.options._isPlaceholder && this.createUserOptions(), this.options[h] = n;else { window.console && (v.publicProperties && v.publicProperties.hasOwnProperty(h) && "readOnly" === v.publicProperties[h] ? window.console.log('Property "' + h + '" is read-only.') : window.console.log('Property "' + h + "\" doesn't exist. Please check for typo."));return; }q && (this.stockChart || this.chart || this).render(); };J.prototype.addTo = function (h, q, v, w) { w = "undefined" === typeof w ? !0 : w;var z = ta[this._defaultsKey];z.hasOwnProperty(h) || z.publicProperties && z.publicProperties.hasOwnProperty(h) && "readWrite" === z.publicProperties[h] ? (this.options._isPlaceholder && this.createUserOptions(), "undefined" === typeof this.options[h] && (this.options[h] = []), h = this.options[h], v = "undefined" === typeof v || null === v ? h.length : v, h.splice(v, 0, q), w && (this.stockChart || this.chart || this).render()) : window.console && (z.publicProperties && z.publicProperties.hasOwnProperty(h) && "readOnly" === z.publicProperties[h] ? window.console.log('Property "' + h + '" is read-only.') : window.console.log('Property "' + h + "\" doesn't exist. Please check for typo.")); };J.prototype.createUserOptions = function (h) { if ("undefined" !== typeof h || this.options._isPlaceholder) if (this.parent.options._isPlaceholder && this.parent.createUserOptions(), this.isOptionsInArray) { this.parent.options[this.optionsName] || (this.parent.options[this.optionsName] = []);var q = this.parent.options[this.optionsName], v = q.length;this.options._isPlaceholder || (Ca(q), v = q.indexOf(this.options));this.options = "undefined" === typeof h ? {} : h;q[v] = this.options; } else this.options = "undefined" === typeof h ? {} : h, h = this.parent.options, this.optionsName ? q = this.optionsName : (q = this._defaultsKey) && 0 !== q.length ? (v = q.charAt(0).toLowerCase(), 1 < q.length && (v = v.concat(q.slice(1))), q = v) : q = void 0, h[q] = this.options; };J.prototype.remove = function (h) { h = "undefined" === typeof h ? !0 : h;if (this.isOptionsInArray) { var q = this.parent.options[this.optionsName];Ca(q);var v = q.indexOf(this.options);0 <= v && q.splice(v, 1); } else delete this.parent.options[this.optionsName];h && (this.stockChart || this.chart || this).render(); };J.prototype.updateOption = function (h) { !ta[this._defaultsKey] && Ha && window.console && console.log("defaults not set");var n = ta[this._defaultsKey], v = {}, w = this[h], z = this._themeOptionsKey, I = this._index;this.theme && q(this.parent) && q(z) && q(I) ? v = q(this.predefinedThemes[this.theme]) ? this.predefinedThemes.light1 : this.predefinedThemes[this.theme] : this.parent && this.parent.themeOptions && this.parent.themeOptions[z] && (null === I ? v = this.parent.themeOptions[z] : 0 < this.parent.themeOptions[z].length && (v = Math.min(this.parent.themeOptions[z].length - 1, I), v = this.parent.themeOptions[z][v]));this.themeOptions = v;h in n && (w = h in this.options ? this.options[h] : v && h in v ? v[h] : n[h]);if (w === this[h]) return !1;this[h] = w;return !0; };J.prototype.trackChanges = function (h) { if (!this.sessionVariables) throw "Session Variable Store not set";this.sessionVariables[h] = this.options[h]; };J.prototype.isBeingTracked = function (h) { this.options._oldOptions || (this.options._oldOptions = {});return this.options._oldOptions[h] ? !0 : !1; };J.prototype.hasOptionChanged = function (h) { if (!this.sessionVariables) throw "Session Variable Store not set";return this.sessionVariables[h] !== this.options[h]; };J.prototype.addEventListener = function (h, q, v) { h && q && (this._eventListeners[h] = this._eventListeners[h] || [], this._eventListeners[h].push({ context: v || this, eventHandler: q })); };J.prototype.removeEventListener = function (h, q) { if (h && q && this._eventListeners[h]) for (var v = this._eventListeners[h], w = 0; w < v.length; w++) { if (v[w].eventHandler === q) { v[w].splice(w, 1);break; } } };J.prototype.removeAllEventListeners = function () { this._eventListeners = []; };J.prototype.dispatchEvent = function (h, q, v) { if (h && this._eventListeners[h]) { q = q || {};for (var w = this._eventListeners[h], z = 0; z < w.length; z++) { w[z].eventHandler.call(w[z].context, q); } }"function" === typeof this[h] && this[h].call(v || this.chart, q); };Da.prototype.registerSpace = function (h, q) { "top" === h ? this._topOccupied += q.height : "bottom" === h ? this._bottomOccupied += q.height : "left" === h ? this._leftOccupied += q.width : "right" === h && (this._rightOccupied += q.width); };Da.prototype.unRegisterSpace = function (h, q) { "top" === h ? this._topOccupied -= q.height : "bottom" === h ? this._bottomOccupied -= q.height : "left" === h ? this._leftOccupied -= q.width : "right" === h && (this._rightOccupied -= q.width); };Da.prototype.getFreeSpace = function () { return { x1: this._x1 + this._leftOccupied, y1: this._y1 + this._topOccupied, x2: this._x2 - this._rightOccupied, y2: this._y2 - this._bottomOccupied, width: this._x2 - this._x1 - this._rightOccupied - this._leftOccupied, height: this._y2 - this._y1 - this._bottomOccupied - this._topOccupied }; };Da.prototype.reset = function () { this._rightOccupied = this._leftOccupied = this._bottomOccupied = this._topOccupied = this._padding; };pa(ia, J);ia.prototype._initialize = function () { q(this.padding) || "object" !== _typeof(this.padding) ? this.topPadding = this.rightPadding = this.bottomPadding = this.leftPadding = Number(this.padding) | 0 : (this.topPadding = q(this.padding.top) ? 0 : Number(this.padding.top) | 0, this.rightPadding = q(this.padding.right) ? 0 : Number(this.padding.right) | 0, this.bottomPadding = q(this.padding.bottom) ? 0 : Number(this.padding.bottom) | 0, this.leftPadding = q(this.padding.left) ? 0 : Number(this.padding.left) | 0); };ia.prototype.render = function (h) { if (0 !== this.fontSize) { h && this.ctx.save();var q = this.ctx.font;this.ctx.textBaseline = this.textBaseline;var v = 0;this._isDirty && this.measureText(this.ctx);this.ctx.translate(this.x, this.y + v);"middle" === this.textBaseline && (v = -this._lineHeight / 2);this.ctx.font = this._getFontString();this.ctx.rotate(Math.PI / 180 * this.angle);var w = 0, z = this.topPadding, I = null;this.ctx.roundRect || Ba(this.ctx);(0 < this.borderThickness && this.borderColor || this.backgroundColor) && this.ctx.roundRect(0, v, this.width, this.height, this.cornerRadius, this.borderThickness, this.backgroundColor, this.borderColor);this.ctx.fillStyle = this.fontColor;for (v = 0; v < this._wrappedText.lines.length; v++) { I = this._wrappedText.lines[v];if ("right" === this.horizontalAlign || "right" === this.textAlign) w = this.width - I.width - this.rightPadding;else if ("left" === this.horizontalAlign || "left" === this.textAlign) w = this.leftPadding;else if ("center" === this.horizontalAlign || "center" === this.textAlign) w = (this.width - (this.leftPadding + this.rightPadding)) / 2 - I.width / 2 + this.leftPadding;this.ctx.fillText(I.text, w, z);z += I.height; }this.ctx.font = q;h && this.ctx.restore(); } };ia.prototype.setText = function (h) { this.text = h;this._isDirty = !0;this._wrappedText = null; };ia.prototype.measureText = function () { this._lineHeight = Xa(this.fontFamily, this.fontSize, this.fontWeight);if (null === this.maxWidth) throw "Please set maxWidth and height for TextBlock";this._wrapText(this.ctx);this._isDirty = !1;return { width: this.width, height: this.height }; };ia.prototype._getLineWithWidth = function (h, q, v) { h = String(h);if (!h) return { text: "", width: 0 };var w = v = 0, z = h.length - 1, I = Infinity;for (this.ctx.font = this._getFontString(); w <= z;) { var I = Math.floor((w + z) / 2), E = h.substr(0, I + 1);v = this.ctx.measureText(E).width; if (v < q) w = I + 1;else if (v > q) z = I - 1;else break; }v > q && 1 < E.length && (E = E.substr(0, E.length - 1), v = this.ctx.measureText(E).width);q = !0;if (E.length === h.length || " " === h[E.length]) q = !1;q && (h = E.split(" "), 1 < h.length && h.pop(), E = h.join(" "), v = this.ctx.measureText(E).width);return { text: E, width: v }; };ia.prototype._wrapText = function () { var h = new String(Fa(String(this.text))), q = [], v = this.ctx.font, w = 0, z = 0;this.ctx.font = this._getFontString();if (0 === this.frontSize) z = w = 0;else for (; 0 < h.length;) { var I = this.maxHeight - (this.topPadding + this.bottomPadding), E = this._getLineWithWidth(h, this.maxWidth - (this.leftPadding + this.rightPadding), !1);E.height = this._lineHeight;q.push(E);var J = z, z = Math.max(z, E.width), w = w + E.height, h = Fa(h.slice(E.text.length, h.length));I && w > I && (E = q.pop(), w -= E.height, z = J); }this._wrappedText = { lines: q, width: z, height: w };this.width = z + (this.leftPadding + this.rightPadding);this.height = w + (this.topPadding + this.bottomPadding);this.ctx.font = v; };ia.prototype._getFontString = function () { var h;h = "" + (this.fontStyle ? this.fontStyle + " " : "");h += this.fontWeight ? this.fontWeight + " " : "";h += this.fontSize ? this.fontSize + "px " : "";var q = this.fontFamily ? this.fontFamily + "" : "";!v && q && (q = q.split(",")[0], "'" !== q[0] && '"' !== q[0] && (q = "'" + q + "'"));return h += q; };pa(Ta, J);pa(ya, J);ya.prototype.setLayout = function () { if (this.text) { var h = this.dockInsidePlotArea ? this.chart.plotArea : this.chart, n = h.layoutManager.getFreeSpace(), v = n.x1, w = n.y1, z = 0, I = 0, E = this.chart._menuButton && this.chart.exportEnabled && "top" === this.verticalAlign ? 22 : 0, J, K;"top" === this.verticalAlign || "bottom" === this.verticalAlign ? (null === this.maxWidth && (this.maxWidth = n.width - 4 - E * ("center" === this.horizontalAlign ? 2 : 1)), I = 0.5 * n.height - this.margin - 2, z = 0) : "center" === this.verticalAlign && ("left" === this.horizontalAlign || "right" === this.horizontalAlign ? (null === this.maxWidth && (this.maxWidth = n.height - 4), I = 0.5 * n.width - this.margin - 2) : "center" === this.horizontalAlign && (null === this.maxWidth && (this.maxWidth = n.width - 4), I = 0.5 * n.height - 4));var N;q(this.padding) || "number" !== typeof this.padding ? q(this.padding) || "object" !== _typeof(this.padding) || (N = this.padding.top ? this.padding.top : this.padding.bottom ? this.padding.bottom : 0, N += this.padding.bottom ? this.padding.bottom : this.padding.top ? this.padding.top : 0) : N = 2 * this.padding;this.wrap || (I = Math.min(I, 1.5 * this.fontSize + N));I = new ia(this.ctx, { fontSize: this.fontSize, fontFamily: this.fontFamily, fontColor: this.fontColor, fontStyle: this.fontStyle, fontWeight: this.fontWeight, horizontalAlign: this.horizontalAlign, verticalAlign: this.verticalAlign, borderColor: this.borderColor, borderThickness: this.borderThickness, backgroundColor: this.backgroundColor, maxWidth: this.maxWidth, maxHeight: I, cornerRadius: this.cornerRadius, text: this.text, padding: this.padding, textBaseline: "top" });N = I.measureText();"top" === this.verticalAlign || "bottom" === this.verticalAlign ? ("top" === this.verticalAlign ? (w = n.y1 + 2, K = "top") : "bottom" === this.verticalAlign && (w = n.y2 - 2 - N.height, K = "bottom"), "left" === this.horizontalAlign ? v = n.x1 + 2 : "center" === this.horizontalAlign ? v = n.x1 + n.width / 2 - N.width / 2 : "right" === this.horizontalAlign && (v = n.x2 - 2 - N.width - E), J = this.horizontalAlign, this.width = N.width, this.height = N.height) : "center" === this.verticalAlign && ("left" === this.horizontalAlign ? (v = n.x1 + 2, w = n.y2 - 2 - (this.maxWidth / 2 - N.width / 2), z = -90, K = "left", this.width = N.height, this.height = N.width) : "right" === this.horizontalAlign ? (v = n.x2 - 2, w = n.y1 + 2 + (this.maxWidth / 2 - N.width / 2), z = 90, K = "right", this.width = N.height, this.height = N.width) : "center" === this.horizontalAlign && (w = h.y1 + (h.height / 2 - N.height / 2), v = h.x1 + (h.width / 2 - N.width / 2), K = "center", this.width = N.width, this.height = N.height), J = "center");I.x = v;I.y = w;I.angle = z;I.horizontalAlign = J;this._textBlock = I;h.layoutManager.registerSpace(K, { width: this.width + ("left" === K || "right" === K ? this.margin + 2 : 0), height: this.height + ("top" === K || "bottom" === K ? this.margin + 2 : 0) });this.bounds = { x1: v, y1: w, x2: v + this.width, y2: w + this.height };this.ctx.textBaseline = "top"; } };ya.prototype.render = function () { this._textBlock && this._textBlock.render(!0); };pa(Ia, J);Ia.prototype.setLayout = ya.prototype.setLayout;Ia.prototype.render = ya.prototype.render;Ua.prototype.get = function (h, q) { var v = null;0 < this.pool.length ? (v = this.pool.pop(), Ma(v, h, q)) : v = ua(h, q);return v; };Ua.prototype.release = function (h) { this.pool.push(h); };pa(Ja, J);var Pa = { addTheme: function addTheme(h, q) { bb[h] = q; }, addColorSet: function addColorSet(h, q) { za[h] = q; }, addCultureInfo: function addCultureInfo(h, q) { Ka[h] = q; }, formatNumber: function formatNumber(h, q, v) { v = v || "en";if (Ka[v]) return ga(h, q || "#,##0.##", new Ja(v));throw "Unknown Culture Name"; }, formatDate: function formatDate(h, q, v) { v = v || "en";if (Ka[v]) return Aa(h, q || "DD MMM YYYY", new Ja(v));throw "Unknown Culture Name"; } };"undefined" !== typeof module && "undefined" !== typeof module.exports ? module.exports = Pa : "function" === typeof define && define.amd ? define([], function () { return Pa; }) : (window.CanvasJS && window.console && window.console.log("CanvasJS namespace already exists. If you are loading both chart and stockchart scripts, just load stockchart alone as it includes all chart features."), window.CanvasJS = window.CanvasJS ? window.CanvasJS : Pa);z = Pa.Chart = function () { function h(a, d) { return a.x - d.x; }function n(a, d, c) { d = d || {};q(c) ? (this.predefinedThemes = bb, this.optionsName = this.parent = this.index = null) : (this.parent = c.parent, this.index = c.index, this.predefinedThemes = c.predefinedThemes, this.optionsName = c.optionsName, this.stockChart = c.stockChart, this.panel = a, this.isOptionsInArray = c.isOptionsInArray);this.theme = q(d.theme) || q(this.predefinedThemes[d.theme]) ? "light1" : d.theme;n.base.constructor.call(this, "Chart", this.optionsName, d, this.index, this.parent);var b = this;this._containerId = a;this._objectsInitialized = !1;this.overlaidCanvasCtx = this.ctx = null;this._indexLabels = [];this._panTimerId = 0;this._lastTouchEventType = "";this._lastTouchData = null;this.isAnimating = !1;this.renderCount = 0;this.disableToolTip = this.animatedRender = !1;this.canvasPool = new Ua();this.allDOMEventHandlers = [];this.panEnabled = !1;this._defaultCursor = "default";this.plotArea = { canvas: null, ctx: null, x1: 0, y1: 0, x2: 0, y2: 0, width: 0, height: 0 };this._dataInRenderedOrder = [];(this.container = "string" === typeof this._containerId ? document.getElementById(this._containerId) : this._containerId) ? (this.container.innerHTML = "", d = a = 0, a = this.options.width ? this.width : 0 < this.container.clientWidth ? this.container.clientWidth : this.width, d = this.options.height ? this.height : 0 < this.container.clientHeight ? this.container.clientHeight : this.height, this.width = a, this.height = d, this.x1 = this.y1 = 0, this.x2 = this.width, this.y2 = this.height, this.selectedColorSet = "undefined" !== typeof za[this.colorSet] ? za[this.colorSet] : za.colorSet1, this._canvasJSContainer = document.createElement("div"), this._canvasJSContainer.setAttribute("class", "canvasjs-chart-container"), this._canvasJSContainer.style.position = "relative", this._canvasJSContainer.style.textAlign = "left", this._canvasJSContainer.style.cursor = "auto", this._canvasJSContainer.style.direction = "ltr", v || (this._canvasJSContainer.style.height = "0px"), this.container.appendChild(this._canvasJSContainer), this.canvas = ua(a, d), this._preRenderCanvas = ua(a, d), this.canvas.style.position = "absolute", this.canvas.style.WebkitUserSelect = "none", this.canvas.style.MozUserSelect = "none", this.canvas.style.msUserSelect = "none", this.canvas.style.userSelect = "none", this.canvas.getContext && (this._canvasJSContainer.appendChild(this.canvas), this.ctx = this.canvas.getContext("2d"), this.ctx.textBaseline = "top", Ba(this.ctx), this._preRenderCtx = this._preRenderCanvas.getContext("2d"), this._preRenderCtx.textBaseline = "top", Ba(this._preRenderCtx), v ? this.plotArea.ctx = this.ctx : (this.plotArea.canvas = ua(a, d), this.plotArea.canvas.style.position = "absolute", this.plotArea.canvas.setAttribute("class", "plotAreaCanvas"), this._canvasJSContainer.appendChild(this.plotArea.canvas), this.plotArea.ctx = this.plotArea.canvas.getContext("2d")), this.overlaidCanvas = ua(a, d), this.overlaidCanvas.style.position = "absolute", this.overlaidCanvas.style.webkitTapHighlightColor = "transparent", this.overlaidCanvas.style.WebkitUserSelect = "none", this.overlaidCanvas.style.MozUserSelect = "none", this.overlaidCanvas.style.msUserSelect = "none", this.overlaidCanvas.style.userSelect = "none", this.overlaidCanvas.getContext && (this._canvasJSContainer.appendChild(this.overlaidCanvas), this.overlaidCanvasCtx = this.overlaidCanvas.getContext("2d"), this.overlaidCanvasCtx.textBaseline = "top", Ba(this.overlaidCanvasCtx)), this._eventManager = new fa(this), this.windowResizeHandler = M(window, "resize", function () { b._updateSize() && b.render(); }, this.allDOMEventHandlers), this._toolBar = document.createElement("div"), this._toolBar.setAttribute("class", "canvasjs-chart-toolbar"), W(this._toolBar, { position: "absolute", right: "1px", top: "1px" }), this._canvasJSContainer.appendChild(this._toolBar), this.bounds = { x1: 0, y1: 0, x2: this.width, y2: this.height }, M(this.overlaidCanvas, "click", function (a) { b._mouseEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, "mousemove", function (a) { b._mouseEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, "mouseup", function (a) { b._mouseEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, "mousedown", function (a) { b._mouseEventHandler(a);va(b._dropdownMenu); }, this.allDOMEventHandlers), M(this.overlaidCanvas, "mouseout", function (a) { b._mouseEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, window.navigator.msPointerEnabled ? "MSPointerDown" : "touchstart", function (a) { b._touchEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, window.navigator.msPointerEnabled ? "MSPointerMove" : "touchmove", function (a) { b._touchEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, window.navigator.msPointerEnabled ? "MSPointerUp" : "touchend", function (a) { b._touchEventHandler(a); }, this.allDOMEventHandlers), M(this.overlaidCanvas, window.navigator.msPointerEnabled ? "MSPointerCancel" : "touchcancel", function (a) { b._touchEventHandler(a); }, this.allDOMEventHandlers), this.toolTip = new X(this, this.options.toolTip), this.data = null, this.axisX = [], this.axisX2 = [], this.axisY = [], this.axisY2 = [], this.sessionVariables = { axisX: [], axisX2: [], axisY: [], axisY2: [] })) : window.console && window.console.log('CanvasJS Error: Chart Container with id "' + this._containerId + '" was not found'); }function w(a, d) { for (var c = [], b, e = 0; e < a.length; e++) { if (0 == e) c.push(a[0]);else { var f, l, s;s = e - 1;f = 0 === s ? 0 : s - 1;l = s === a.length - 1 ? s : s + 1;b = Math.abs((a[l].x - a[f].x) / (0 === a[l].x - a[s].x ? 0.01 : a[l].x - a[s].x)) * (d - 1) / 2 + 1;var B = (a[l].x - a[f].x) / b;b = (a[l].y - a[f].y) / b;c[c.length] = a[s].x > a[f].x && 0 < B || a[s].x < a[f].x && 0 > B ? { x: a[s].x + B / 3, y: a[s].y + b / 3 } : { x: a[s].x, y: a[s].y + b / 9 };s = e;f = 0 === s ? 0 : s - 1;l = s === a.length - 1 ? s : s + 1;b = Math.abs((a[l].x - a[f].x) / (0 === a[s].x - a[f].x ? 0.01 : a[s].x - a[f].x)) * (d - 1) / 2 + 1;B = (a[l].x - a[f].x) / b;b = (a[l].y - a[f].y) / b;c[c.length] = a[s].x > a[f].x && 0 < B || a[s].x < a[f].x && 0 > B ? { x: a[s].x - B / 3, y: a[s].y - b / 3 } : { x: a[s].x, y: a[s].y - b / 9 };c[c.length] = a[e]; } }return c; }function z(a, d, c, b, e, f, l, s, B, k) { var m = 0;k ? (l.color = f, s.color = f) : k = 1;m = B ? Math.abs(e - c) : Math.abs(b - d);m = 0 < l.trimLength ? Math.abs(m * l.trimLength / 100) : Math.abs(m - l.length);B ? (c += m / 2, e -= m / 2) : (d += m / 2, b -= m / 2);var m = 1 === Math.round(l.thickness) % 2 ? 0.5 : 0, p = 1 === Math.round(s.thickness) % 2 ? 0.5 : 0;a.save();a.globalAlpha = k;a.strokeStyle = s.color || f;a.lineWidth = s.thickness || 2;a.setLineDash && a.setLineDash(I(s.dashType, s.thickness));a.beginPath();B && 0 < s.thickness ? (a.moveTo(b - l.thickness / 2, Math.round((c + e) / 2) - p), a.lineTo(d + l.thickness / 2, Math.round((c + e) / 2) - p)) : 0 < s.thickness && (a.moveTo(Math.round((d + b) / 2) - p, c + l.thickness / 2), a.lineTo(Math.round((d + b) / 2) - p, e - l.thickness / 2));a.stroke();a.strokeStyle = l.color || f;a.lineWidth = l.thickness || 2;a.setLineDash && a.setLineDash(I(l.dashType, l.thickness));a.beginPath();B && 0 < l.thickness ? (a.moveTo(b - m, c), a.lineTo(b - m, e), a.moveTo(d + m, c), a.lineTo(d + m, e)) : 0 < l.thickness && (a.moveTo(d, c + m), a.lineTo(b, c + m), a.moveTo(d, e - m), a.lineTo(b, e - m));a.stroke();a.restore(); }function K(a, d) { K.base.constructor.call(this, "Legend", "legend", d, null, a);this.chart = a;this.canvas = a.canvas; this.ctx = this.chart.ctx;this.ghostCtx = this.chart._eventManager.ghostCtx;this.items = [];this.optionsName = "legend";this.height = this.width = 0;this.orientation = null;this.dataSeries = [];this.bounds = { x1: null, y1: null, x2: null, y2: null };"undefined" === typeof this.options.fontSize && (this.fontSize = this.chart.getAutoFontSize(this.fontSize));this.lineHeight = Xa(this.fontFamily, this.fontSize, this.fontWeight);this.horizontalSpacing = this.fontSize; }function T(a, d, c, b) { T.base.constructor.call(this, "DataSeries", "data", d, c, a);this.chart = a;this.canvas = a.canvas;this._ctx = a.canvas.ctx;this.index = c;this.noDataPointsInPlotArea = 0;this.id = b;this.chart._eventManager.objectMap[b] = { id: b, objectType: "dataSeries", dataSeriesIndex: c };a = d.dataPoints ? d.dataPoints.length : 0;this.dataPointEOs = [];for (d = 0; d < a; d++) { this.dataPointEOs[d] = {}; }this.dataPointIds = [];this.plotUnit = [];this.axisY = this.axisX = null;this.optionsName = "data";this.isOptionsInArray = !0;null === this.fillOpacity && (this.type.match(/area/i) ? this.fillOpacity = 0.7 : this.fillOpacity = 1);this.axisPlacement = this.getDefaultAxisPlacement();"undefined" === typeof this.options.indexLabelFontSize && (this.indexLabelFontSize = this.chart.getAutoFontSize(this.indexLabelFontSize)); }function E(a, d, c, b, e, f) { E.base.constructor.call(this, "Axis", d, c, b, a);this.chart = a;this.canvas = a.canvas;this.ctx = a.ctx;this.intervalStartPosition = this.maxHeight = this.maxWidth = 0;this.labels = [];this.dataSeries = [];this._stripLineLabels = this._ticks = this._labels = null;this.dataInfo = { min: Infinity, max: -Infinity, viewPortMin: Infinity, viewPortMax: -Infinity, minDiff: Infinity };this.isOptionsInArray = !0;"axisX" === e ? ("left" === f || "bottom" === f ? (this.optionsName = "axisX", q(this.chart.sessionVariables.axisX[b]) && (this.chart.sessionVariables.axisX[b] = {}), this.sessionVariables = this.chart.sessionVariables.axisX[b]) : (this.optionsName = "axisX2", q(this.chart.sessionVariables.axisX2[b]) && (this.chart.sessionVariables.axisX2[b] = {}), this.sessionVariables = this.chart.sessionVariables.axisX2[b]), this.options.interval || (this.intervalType = null)) : "left" === f || "bottom" === f ? (this.optionsName = "axisY", q(this.chart.sessionVariables.axisY[b]) && (this.chart.sessionVariables.axisY[b] = {}), this.sessionVariables = this.chart.sessionVariables.axisY[b]) : (this.optionsName = "axisY2", q(this.chart.sessionVariables.axisY2[b]) && (this.chart.sessionVariables.axisY2[b] = {}), this.sessionVariables = this.chart.sessionVariables.axisY2[b]);"undefined" === typeof this.options.titleFontSize && (this.titleFontSize = this.chart.getAutoFontSize(this.titleFontSize));"undefined" === typeof this.options.labelFontSize && (this.labelFontSize = this.chart.getAutoFontSize(this.labelFontSize));this.type = e;"axisX" !== e || c && "undefined" !== typeof c.gridThickness || (this.gridThickness = 0);this._position = f;this.lineCoordinates = { x1: null, y1: null, x2: null, y2: null, width: null };this.labelAngle = (this.labelAngle % 360 + 360) % 360;90 < this.labelAngle && 270 > this.labelAngle ? this.labelAngle -= 180 : 270 <= this.labelAngle && 360 >= this.labelAngle && (this.labelAngle -= 360);this.options.scaleBreaks && (this.scaleBreaks = new da(this.chart, this.options.scaleBreaks, ++this.chart._eventManager.lastObjectId, this));this.stripLines = [];if (this.options.stripLines && 0 < this.options.stripLines.length) for (a = 0; a < this.options.stripLines.length; a++) { this.stripLines.push(new N(this.chart, this.options.stripLines[a], a, ++this.chart._eventManager.lastObjectId, this)); }this.options.crosshair && (this.crosshair = new ca(this.chart, this.options.crosshair, this));this._titleTextBlock = null;this.hasOptionChanged("viewportMinimum") && null === this.viewportMinimum && (this.options.viewportMinimum = void 0, this.sessionVariables.viewportMinimum = null);this.hasOptionChanged("viewportMinimum") || isNaN(this.sessionVariables.newViewportMinimum) || null === this.sessionVariables.newViewportMinimum ? this.sessionVariables.newViewportMinimum = null : this.viewportMinimum = this.sessionVariables.newViewportMinimum;this.hasOptionChanged("viewportMaximum") && null === this.viewportMaximum && (this.options.viewportMaximum = void 0, this.sessionVariables.viewportMaximum = null);this.hasOptionChanged("viewportMaximum") || isNaN(this.sessionVariables.newViewportMaximum) || null === this.sessionVariables.newViewportMaximum ? this.sessionVariables.newViewportMaximum = null : this.viewportMaximum = this.sessionVariables.newViewportMaximum;null !== this.minimum && null !== this.viewportMinimum && (this.viewportMinimum = Math.max(this.viewportMinimum, this.minimum));null !== this.maximum && null !== this.viewportMaximum && (this.viewportMaximum = Math.min(this.viewportMaximum, this.maximum));this.trackChanges("viewportMinimum");this.trackChanges("viewportMaximum"); }function da(a, d, c, b) { da.base.constructor.call(this, "ScaleBreaks", "scaleBreaks", d, null, b);this.id = c;this.chart = a;this.ctx = this.chart.ctx;this.axis = b;this.optionsName = "scaleBreaks";this.isOptionsInArray = !1;this._appliedBreaks = [];this.customBreaks = [];this.autoBreaks = [];"string" === typeof this.spacing ? (this.spacing = parseFloat(this.spacing), this.spacing = isNaN(this.spacing) ? 8 : (10 < this.spacing ? 10 : this.spacing) + "%") : "number" !== typeof this.spacing && (this.spacing = 8);this.autoCalculate && (this.maxNumberOfAutoBreaks = Math.min(this.maxNumberOfAutoBreaks, 5));if (this.options.customBreaks && 0 < this.options.customBreaks.length) { for (a = 0; a < this.options.customBreaks.length; a++) { this.customBreaks.push(new ba(this.chart, "customBreaks", this.options.customBreaks[a], a, ++this.chart._eventManager.lastObjectId, this)), "number" === typeof this.customBreaks[a].startValue && "number" === typeof this.customBreaks[a].endValue && this.customBreaks[a].endValue !== this.customBreaks[a].startValue && this._appliedBreaks.push(this.customBreaks[a]); }this._appliedBreaks.sort(function (a, b) { return a.startValue - b.startValue; }); for (a = 0; a < this._appliedBreaks.length - 1; a++) { this._appliedBreaks[a].endValue >= this._appliedBreaks[a + 1].startValue && (this._appliedBreaks[a].endValue = Math.max(this._appliedBreaks[a].endValue, this._appliedBreaks[a + 1].endValue), window.console && window.console.log("CanvasJS Error: Breaks " + a + " and " + (a + 1) + " are overlapping."), this._appliedBreaks.splice(a, 2), a--); } } }function ba(a, d, c, b, e, f) { ba.base.constructor.call(this, "Break", d, c, b, f);this.id = e;this.chart = a;this.ctx = this.chart.ctx;this.scaleBreaks = f;this.optionsName = d;this.isOptionsInArray = !0;this.type = c.type ? this.type : f.type;this.fillOpacity = q(c.fillOpacity) ? f.fillOpacity : this.fillOpacity;this.lineThickness = q(c.lineThickness) ? f.lineThickness : this.lineThickness;this.color = c.color ? this.color : f.color;this.lineColor = c.lineColor ? this.lineColor : f.lineColor;this.lineDashType = c.lineDashType ? this.lineDashType : f.lineDashType;!q(this.startValue) && this.startValue.getTime && (this.startValue = this.startValue.getTime());!q(this.endValue) && this.endValue.getTime && (this.endValue = this.endValue.getTime());"number" === typeof this.startValue && "number" === typeof this.endValue && this.endValue < this.startValue && (a = this.startValue, this.startValue = this.endValue, this.endValue = a);this.spacing = "undefined" === typeof c.spacing ? f.spacing : c.spacing;"string" === typeof this.options.spacing ? (this.spacing = parseFloat(this.spacing), this.spacing = isNaN(this.spacing) ? 0 : (10 < this.spacing ? 10 : this.spacing) + "%") : "number" !== typeof this.options.spacing && (this.spacing = f.spacing);this.size = f.parent.logarithmic ? 1 : 0; }function N(a, d, c, b, e) { N.base.constructor.call(this, "StripLine", "stripLines", d, c, e);this.id = b;this.chart = a;this.ctx = this.chart.ctx;this.label = this.label;this.axis = e;this.optionsName = "stripLines";this.isOptionsInArray = !0;this._thicknessType = "pixel";null !== this.startValue && null !== this.endValue && (this.value = e.logarithmic ? Math.sqrt((this.startValue.getTime ? this.startValue.getTime() : this.startValue) * (this.endValue.getTime ? this.endValue.getTime() : this.endValue)) : ((this.startValue.getTime ? this.startValue.getTime() : this.startValue) + (this.endValue.getTime ? this.endValue.getTime() : this.endValue)) / 2, this._thicknessType = null); }function ca(a, d, c) { ca.base.constructor.call(this, "Crosshair", "crosshair", d, null, c);this.chart = a;this.ctx = this.chart.ctx;this.axis = c;this.optionsName = "crosshair";this._thicknessType = "pixel"; }function X(a, d) { X.base.constructor.call(this, "ToolTip", "toolTip", d, null, a);this.chart = a;this.canvas = a.canvas;this.ctx = this.chart.ctx;this.currentDataPointIndex = this.currentSeriesIndex = -1;this._prevY = this._prevX = NaN;this.containerTransitionDuration = 0.1;this.mozContainerTransition = this.getContainerTransition(this.containerTransitionDuration);this.optionsName = "toolTip";this._initialize(); }function fa(a) { this.chart = a;this.lastObjectId = 0;this.objectMap = [];this.rectangularRegionEventSubscriptions = [];this.previousDataPointEventObject = null;this.ghostCanvas = ua(this.chart.width, this.chart.height);this.ghostCtx = this.ghostCanvas.getContext("2d");this.mouseoveredObjectMaps = []; }function la(a) { this.chart = a;this.ctx = this.chart.plotArea.ctx; this.animations = [];this.animationRequestId = null; }pa(n, J);n.prototype.destroy = function () { var a = this.allDOMEventHandlers;this._animator && this._animator.cancelAllAnimations();this._panTimerId && clearTimeout(this._panTimerId);for (var d = 0; d < a.length; d++) { var c = a[d][0], b = a[d][1], e = a[d][2], f = a[d][3], f = f || !1;c.removeEventListener ? c.removeEventListener(b, e, f) : c.detachEvent && c.detachEvent("on" + b, e); }this.allDOMEventHandlers = [];for (this.removeAllEventListeners(); this._canvasJSContainer && this._canvasJSContainer.hasChildNodes();) { this._canvasJSContainer.removeChild(this._canvasJSContainer.lastChild); }for (; this.container && this.container.hasChildNodes();) { this.container.removeChild(this.container.lastChild); }for (; this._dropdownMenu && this._dropdownMenu.hasChildNodes();) { this._dropdownMenu.removeChild(this._dropdownMenu.lastChild); }this.container = this._canvasJSContainer = null;this.toolTip.container = null;this.canvas && xa(this.canvas);this.overlaidCanvas && xa(this.overlaidCanvas);this._preRenderCanvas && xa(this._preRenderCanvas);this._breaksCanvas && xa(this._breaksCanvas);this._eventManager && this._eventManager.ghostCanvas && xa(this._eventManager.ghostCanvas);this._toolBar = this._dropdownMenu = this._menuButton = this._resetButton = this._zoomButton = null; };n.prototype._updateOptions = function () { var a = this;this.updateOption("width");this.updateOption("height");this.updateOption("dataPointWidth");this.updateOption("dataPointMinWidth");this.updateOption("dataPointMaxWidth");this.updateOption("interactivityEnabled");this.updateOption("theme");this.updateOption("colorSet") && (this.selectedColorSet = "undefined" !== typeof za[this.colorSet] ? za[this.colorSet] : za.colorSet1);this.updateOption("backgroundColor");this.backgroundColor || (this.backgroundColor = "rgba(0,0,0,0)");this.updateOption("culture");this._cultureInfo = new Ja(this.options.culture);this.updateOption("animationEnabled");this.animationEnabled = this.animationEnabled && v;this.updateOption("animationDuration");this.updateOption("rangeChanging");this.updateOption("rangeChanged");this.updateOption("exportEnabled");this.updateOption("exportFileName");this.updateOption("zoomType");this.toolbar = new Ta(this, this.options.toolbar);if (this.options.zoomEnabled || this.panEnabled) { if (this._zoomButton) W(this._zoomButton, { borderRight: this.toolbar.buttonBorderThickness + "px solid " + this.toolbar.buttonBorderColor, backgroundColor: a.toolbar.itemBackgroundColor, color: a.toolbar.fontColor }), this._zoomButton.title = this._cultureInfo.zoomText;else { var d = !1;va(this._zoomButton = document.createElement("button"));wa(this, this._zoomButton, "pan");this._zoomButton.title = this._cultureInfo.panText;this._toolBar.appendChild(this._zoomButton); this._zoomButton.style.borderRight = this.toolbar.buttonBorderThickness + "px solid " + this.toolbar.buttonBorderColor;M(this._zoomButton, "touchstart", function (a) { d = !0; }, this.allDOMEventHandlers);M(this._zoomButton, "click", function () { a.zoomEnabled ? (a.zoomEnabled = !1, a.panEnabled = !0, wa(a, a._zoomButton, "zoom")) : (a.zoomEnabled = !0, a.panEnabled = !1, wa(a, a._zoomButton, "pan"));a.render(); }, this.allDOMEventHandlers);M(this._zoomButton, "mousemove", function () { d ? d = !1 : (W(a._zoomButton, { backgroundColor: a.toolbar.itemBackgroundColorOnHover, color: a.toolbar.fontColorOnHover, transition: "0.4s", WebkitTransition: "0.4s" }), 0 >= navigator.userAgent.search("MSIE") && W(a._zoomButton.childNodes[0], { WebkitFilter: "invert(100%)", filter: "invert(100%)" })); }, this.allDOMEventHandlers);M(this._zoomButton, "mouseout", function () { d || (W(a._zoomButton, { backgroundColor: a.toolbar.itemBackgroundColor, color: a.toolbar.fontColor, transition: "0.4s", WebkitTransition: "0.4s" }), 0 >= navigator.userAgent.search("MSIE") && W(a._zoomButton.childNodes[0], { WebkitFilter: "invert(0%)", filter: "invert(0%)" })); }, this.allDOMEventHandlers); }this._resetButton ? (W(this._resetButton, { borderRight: this.toolbar.buttonBorderThickness + "px solid " + this.toolbar.buttonBorderColor, backgroundColor: a.toolbar.itemBackgroundColor, color: a.toolbar.fontColor }), this._resetButton.title = this._cultureInfo.resetText) : (d = !1, va(this._resetButton = document.createElement("button")), wa(this, this._resetButton, "reset"), this._resetButton.style.borderRight = (this.exportEnabled ? this.toolbar.buttonBorderThickness : 0) + "px solid " + this.toolbar.buttonBorderColor, this._toolBar.appendChild(this._resetButton), M(this._resetButton, "touchstart", function (a) { d = !0; }, this.allDOMEventHandlers), M(this._resetButton, "click", function () { a.toolTip.hide();a.toolTip && a.toolTip.enabled && a.toolTip.dispatchEvent("hidden", { chart: a, toolTip: a.toolTip }, a.toolTip);a.zoomEnabled || a.panEnabled ? (a.zoomEnabled = !0, a.panEnabled = !1, wa(a, a._zoomButton, "pan"), a._defaultCursor = "default", a.overlaidCanvas.style.cursor = a._defaultCursor) : (a.zoomEnabled = !1, a.panEnabled = !1);if (a.sessionVariables.axisX) for (var b = 0; b < a.sessionVariables.axisX.length; b++) { a.sessionVariables.axisX[b].newViewportMinimum = null, a.sessionVariables.axisX[b].newViewportMaximum = null; }if (a.sessionVariables.axisX2) for (b = 0; b < a.sessionVariables.axisX2.length; b++) { a.sessionVariables.axisX2[b].newViewportMinimum = null, a.sessionVariables.axisX2[b].newViewportMaximum = null; }if (a.sessionVariables.axisY) for (b = 0; b < a.sessionVariables.axisY.length; b++) { a.sessionVariables.axisY[b].newViewportMinimum = null, a.sessionVariables.axisY[b].newViewportMaximum = null; }if (a.sessionVariables.axisY2) for (b = 0; b < a.sessionVariables.axisY2.length; b++) { a.sessionVariables.axisY2[b].newViewportMinimum = null, a.sessionVariables.axisY2[b].newViewportMaximum = null; }a.resetOverlayedCanvas();0 >= navigator.userAgent.search("MSIE") && W(a._resetButton.childNodes[0], { WebkitFilter: "invert(0%)", filter: "invert(0%)" });va(a._zoomButton, a._resetButton);a.stockChart && (a.stockChart._rangeEventParameter = { stockChart: a.stockChart, source: "chart", index: a.stockChart.charts.indexOf(a), minimum: null, maximum: null });a._dispatchRangeEvent("rangeChanging", "reset");a.stockChart && (a.stockChart._rangeEventParameter.type = "rangeChanging", a.stockChart.dispatchEvent("rangeChanging", a.stockChart._rangeEventParameter, a.stockChart));a.render();a.syncCharts && a.syncCharts(null, null);a._dispatchRangeEvent("rangeChanged", "reset");a.stockChart && (a.stockChart._rangeEventParameter.type = "rangeChanged", a.stockChart.dispatchEvent("rangeChanged", a.stockChart._rangeEventParameter, a.stockChart)); }, this.allDOMEventHandlers), M(this._resetButton, "mousemove", function () { d || (W(a._resetButton, { backgroundColor: a.toolbar.itemBackgroundColorOnHover, color: a.toolbar.fontColorOnHover, transition: "0.4s", WebkitTransition: "0.4s" }), 0 >= navigator.userAgent.search("MSIE") && W(a._resetButton.childNodes[0], { WebkitFilter: "invert(100%)", filter: "invert(100%)" })); }, this.allDOMEventHandlers), M(this._resetButton, "mouseout", function () { d || (W(a._resetButton, { backgroundColor: a.toolbar.itemBackgroundColor, color: a.toolbar.fontColor, transition: "0.4s", WebkitTransition: "0.4s" }), 0 >= navigator.userAgent.search("MSIE") && W(a._resetButton.childNodes[0], { WebkitFilter: "invert(0%)", filter: "invert(0%)" })); }, this.allDOMEventHandlers), this.overlaidCanvas.style.cursor = a._defaultCursor);this.zoomEnabled || this.panEnabled || (this._zoomButton ? (a._zoomButton.getAttribute("state") === a._cultureInfo.zoomText ? (this.panEnabled = !0, this.zoomEnabled = !1) : (this.zoomEnabled = !0, this.panEnabled = !1), La(a._zoomButton, a._resetButton)) : (this.zoomEnabled = !0, this.panEnabled = !1)); } else this.panEnabled = this.zoomEnabled = !1;gb(this);"none" !== this._toolBar.style.display && this._zoomButton && (this.panEnabled ? wa(a, a._zoomButton, "zoom") : wa(a, a._zoomButton, "pan"), a._resetButton.getAttribute("state") !== a._cultureInfo.resetText && wa(a, a._resetButton, "reset"));this.options.toolTip && this.toolTip.options !== this.options.toolTip && (this.toolTip.options = this.options.toolTip);for (var c in this.toolTip.options) { this.toolTip.options.hasOwnProperty(c) && this.toolTip.updateOption(c); } };n.prototype._updateSize = function () { var a;a = [this.canvas, this.overlaidCanvas, this._eventManager.ghostCanvas];var d = 0, c = 0;this.options.width ? d = this.width : this.width = d = 0 < this.container.clientWidth ? this.container.clientWidth : this.width;this.options.height ? c = this.height : this.height = c = 0 < this.container.clientHeight ? this.container.clientHeight : this.height;if (this.canvas.width !== d * ma || this.canvas.height !== c * ma) { for (var b = 0; b < a.length; b++) { Ma(a[b], d, c); }this.bounds = { x1: 0, y1: 0, x2: this.width, y2: this.height, width: this.width, height: this.height };a = !0; } else a = !1;return a; }; n.prototype._initialize = function () { this.isNavigator = q(this.parent) || q(this.parent._defaultsKey) || "Navigator" !== this.parent._defaultsKey ? !1 : !0;this._animator ? this._animator.cancelAllAnimations() : this._animator = new la(this);this.removeAllEventListeners();this.disableToolTip = !1;this._axes = [];this.funnelPyramidClickHandler = this.pieDoughnutClickHandler = null;this._updateOptions();this.animatedRender = v && this.animationEnabled && 0 === this.renderCount;this._updateSize();this.clearCanvas();this.ctx.beginPath(); this.axisX = [];this.axisX2 = [];this.axisY = [];this.axisY2 = [];this._indexLabels = [];this._dataInRenderedOrder = [];this._events = [];this._eventManager && this._eventManager.reset();this.plotInfo = { axisPlacement: null, plotTypes: [] };this.layoutManager = new Da(0, 0, this.width, this.height, this.isNavigator ? 0 : 2);this.plotArea.layoutManager && this.plotArea.layoutManager.reset();this.data = [];this.title = null;this.subtitles = [];var a = 0, d = null;if (this.options.data) { for (var c = 0; c < this.options.data.length; c++) { if (a++, !this.options.data[c].type || 0 <= n._supportedChartTypes.indexOf(this.options.data[c].type)) { var b = new T(this, this.options.data[c], a - 1, ++this._eventManager.lastObjectId);"error" === b.type && (b.linkedDataSeriesIndex = q(this.options.data[c].linkedDataSeriesIndex) ? c - 1 : this.options.data[c].linkedDataSeriesIndex, 0 > b.linkedDataSeriesIndex || b.linkedDataSeriesIndex >= this.options.data.length || "number" !== typeof b.linkedDataSeriesIndex || "error" === this.options.data[b.linkedDataSeriesIndex].type) && (b.linkedDataSeriesIndex = null);null === b.name && (b.name = "DataSeries " + a);null === b.color ? 1 < this.options.data.length ? (b._colorSet = [this.selectedColorSet[b.index % this.selectedColorSet.length]], b.color = this.selectedColorSet[b.index % this.selectedColorSet.length]) : b._colorSet = "line" === b.type || "stepLine" === b.type || "spline" === b.type || "area" === b.type || "stepArea" === b.type || "splineArea" === b.type || "stackedArea" === b.type || "stackedArea100" === b.type || "rangeArea" === b.type || "rangeSplineArea" === b.type || "candlestick" === b.type || "ohlc" === b.type || "waterfall" === b.type || "boxAndWhisker" === b.type ? [this.selectedColorSet[0]] : this.selectedColorSet : b._colorSet = [b.color];null === b.markerSize && (("line" === b.type || "stepLine" === b.type || "spline" === b.type || 0 <= b.type.toLowerCase().indexOf("area")) && b.dataPoints && b.dataPoints.length < this.width / 16 || "scatter" === b.type) && (b.markerSize = 8);"bubble" !== b.type && "scatter" !== b.type || !b.dataPoints || (b.dataPoints.some ? b.dataPoints.some(function (a) { return a.x; }) && b.dataPoints.sort(h) : b.dataPoints.sort(h));this.data.push(b);var e = b.axisPlacement, d = d || e, f;"normal" === e ? "xySwapped" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with bar chart' : "none" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with pie chart' : null === this.plotInfo.axisPlacement && (this.plotInfo.axisPlacement = "normal") : "xySwapped" === e ? "normal" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with line, area, column or pie chart' : "none" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with pie chart' : null === this.plotInfo.axisPlacement && (this.plotInfo.axisPlacement = "xySwapped") : "none" === e ? "normal" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with line, area, column or bar chart' : "xySwapped" === this.plotInfo.axisPlacement ? f = 'You cannot combine "' + b.type + '" with bar chart' : null === this.plotInfo.axisPlacement && (this.plotInfo.axisPlacement = "none") : null === e && "none" === this.plotInfo.axisPlacement && (f = 'You cannot combine "' + b.type + '" with pie chart');if (f && window.console) { window.console.log(f); return; } } }for (c = 0; c < this.data.length; c++) { if ("none" == d && "error" === this.data[c].type && window.console) { window.console.log('You cannot combine "' + b.type + '" with error chart');return; }"error" === this.data[c].type && (this.data[c].axisPlacement = this.plotInfo.axisPlacement = d || "normal", this.data[c]._linkedSeries = null === this.data[c].linkedDataSeriesIndex ? null : this.data[this.data[c].linkedDataSeriesIndex]); } }this._objectsInitialized = !0;this._plotAreaElements = []; };n._supportedChartTypes = Ca("line stepLine spline column area stepArea splineArea bar bubble scatter stackedColumn stackedColumn100 stackedBar stackedBar100 stackedArea stackedArea100 candlestick ohlc boxAndWhisker rangeColumn error rangeBar rangeArea rangeSplineArea pie doughnut funnel pyramid waterfall".split(" ")); n.prototype.setLayout = function () { for (var a = this._plotAreaElements, d = 0; d < this.data.length; d++) { if ("normal" === this.plotInfo.axisPlacement || "xySwapped" === this.plotInfo.axisPlacement) { if (!this.data[d].axisYType || "primary" === this.data[d].axisYType) if (this.options.axisY && 0 < this.options.axisY.length) { if (!this.axisY.length) for (var c = 0; c < this.options.axisY.length; c++) { "normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisY[c] = new E(this, "axisY", this.options.axisY[c], c, "axisY", "left")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisY[c] = new E(this, "axisY", this.options.axisY[c], c, "axisY", "bottom")); }this.data[d].axisY = this.axisY[0 <= this.data[d].axisYIndex && this.data[d].axisYIndex < this.axisY.length ? this.data[d].axisYIndex : 0];this.axisY[0 <= this.data[d].axisYIndex && this.data[d].axisYIndex < this.axisY.length ? this.data[d].axisYIndex : 0].dataSeries.push(this.data[d]); } else this.axisY.length || ("normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisY[0] = new E(this, "axisY", this.options.axisY, 0, "axisY", "left")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisY[0] = new E(this, "axisY", this.options.axisY, 0, "axisY", "bottom"))), this.data[d].axisY = this.axisY[0], this.axisY[0].dataSeries.push(this.data[d]);if ("secondary" === this.data[d].axisYType) if (this.options.axisY2 && 0 < this.options.axisY2.length) { if (!this.axisY2.length) for (c = 0; c < this.options.axisY2.length; c++) { "normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisY2[c] = new E(this, "axisY2", this.options.axisY2[c], c, "axisY", "right")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisY2[c] = new E(this, "axisY2", this.options.axisY2[c], c, "axisY", "top")); }this.data[d].axisY = this.axisY2[0 <= this.data[d].axisYIndex && this.data[d].axisYIndex < this.axisY2.length ? this.data[d].axisYIndex : 0];this.axisY2[0 <= this.data[d].axisYIndex && this.data[d].axisYIndex < this.axisY2.length ? this.data[d].axisYIndex : 0].dataSeries.push(this.data[d]); } else this.axisY2.length || ("normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisY2[0] = new E(this, "axisY2", this.options.axisY2, 0, "axisY", "right")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisY2[0] = new E(this, "axisY2", this.options.axisY2, 0, "axisY", "top"))), this.data[d].axisY = this.axisY2[0], this.axisY2[0].dataSeries.push(this.data[d]);if (!this.data[d].axisXType || "primary" === this.data[d].axisXType) if (this.options.axisX && 0 < this.options.axisX.length) { if (!this.axisX.length) for (c = 0; c < this.options.axisX.length; c++) { "normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisX[c] = new E(this, "axisX", this.options.axisX[c], c, "axisX", "bottom")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisX[c] = new E(this, "axisX", this.options.axisX[c], c, "axisX", "left")); }this.data[d].axisX = this.axisX[0 <= this.data[d].axisXIndex && this.data[d].axisXIndex < this.axisX.length ? this.data[d].axisXIndex : 0];this.axisX[0 <= this.data[d].axisXIndex && this.data[d].axisXIndex < this.axisX.length ? this.data[d].axisXIndex : 0].dataSeries.push(this.data[d]); } else this.axisX.length || ("normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisX[0] = new E(this, "axisX", this.options.axisX, 0, "axisX", "bottom")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisX[0] = new E(this, "axisX", this.options.axisX, 0, "axisX", "left"))), this.data[d].axisX = this.axisX[0], this.axisX[0].dataSeries.push(this.data[d]);if ("secondary" === this.data[d].axisXType) if (this.options.axisX2 && 0 < this.options.axisX2.length) { if (!this.axisX2.length) for (c = 0; c < this.options.axisX2.length; c++) { "normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisX2[c] = new E(this, "axisX2", this.options.axisX2[c], c, "axisX", "top")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisX2[c] = new E(this, "axisX2", this.options.axisX2[c], c, "axisX", "right")); }this.data[d].axisX = this.axisX2[0 <= this.data[d].axisXIndex && this.data[d].axisXIndex < this.axisX2.length ? this.data[d].axisXIndex : 0];this.axisX2[0 <= this.data[d].axisXIndex && this.data[d].axisXIndex < this.axisX2.length ? this.data[d].axisXIndex : 0].dataSeries.push(this.data[d]); } else this.axisX2.length || ("normal" === this.plotInfo.axisPlacement ? this._axes.push(this.axisX2[0] = new E(this, "axisX2", this.options.axisX2, 0, "axisX", "top")) : "xySwapped" === this.plotInfo.axisPlacement && this._axes.push(this.axisX2[0] = new E(this, "axisX2", this.options.axisX2, 0, "axisX", "right"))), this.data[d].axisX = this.axisX2[0], this.axisX2[0].dataSeries.push(this.data[d]); } }if (this.axisY) { for (c = 1; c < this.axisY.length; c++) { "undefined" === typeof this.axisY[c].options.gridThickness && (this.axisY[c].gridThickness = 0); }for (c = 0; c < this.axisY.length - 1; c++) { "undefined" === typeof this.axisY[c].options.margin && (this.axisY[c].margin = 10); } }if (this.axisY2) { for (c = 1; c < this.axisY2.length; c++) { "undefined" === typeof this.axisY2[c].options.gridThickness && (this.axisY2[c].gridThickness = 0); }for (c = 0; c < this.axisY2.length - 1; c++) { "undefined" === typeof this.axisY2[c].options.margin && (this.axisY2[c].margin = 10); } }this.axisY && 0 < this.axisY.length && this.axisY2 && 0 < this.axisY2.length && (0 < this.axisY[0].gridThickness && "undefined" === typeof this.axisY2[0].options.gridThickness ? this.axisY2[0].gridThickness = 0 : 0 < this.axisY2[0].gridThickness && "undefined" === typeof this.axisY[0].options.gridThickness && (this.axisY[0].gridThickness = 0));if (this.axisX) for (c = 0; c < this.axisX.length; c++) { "undefined" === typeof this.axisX[c].options.gridThickness && (this.axisX[c].gridThickness = 0); }if (this.axisX2) for (c = 0; c < this.axisX2.length; c++) { "undefined" === typeof this.axisX2[c].options.gridThickness && (this.axisX2[c].gridThickness = 0); }this.axisX && 0 < this.axisX.length && this.axisX2 && 0 < this.axisX2.length && (0 < this.axisX[0].gridThickness && "undefined" === typeof this.axisX2[0].options.gridThickness ? this.axisX2[0].gridThickness = 0 : 0 < this.axisX2[0].gridThickness && "undefined" === typeof this.axisX[0].options.gridThickness && (this.axisX[0].gridThickness = 0));c = !1;if (0 < this._axes.length && this.options.zoomEnabled && (this.zoomEnabled || this.panEnabled)) for (d = 0; d < this._axes.length; d++) { if (!q(this._axes[d].viewportMinimum) || !q(this._axes[d].viewportMaximum)) { c = !0;break; } }c ? (La(this._zoomButton, this._resetButton), this._toolBar.style.border = this.toolbar.buttonBorderThickness + "px solid " + this.toolbar.buttonBorderColor, this._zoomButton.style.borderRight = this.toolbar.buttonBorderThickness + "px solid " + this.toolbar.buttonBorderColor, this._resetButton.style.borderRight = (this.exportEnabled ? this.toolbar.buttonBorderThickness : 0) + "px solid " + this.toolbar.buttonBorderColor) : (va(this._zoomButton, this._resetButton), this._toolBar.style.border = this.toolbar.buttonBorderThickness + "px solid transparent", this.options.zoomEnabled && (this.zoomEnabled = !0, this.panEnabled = !1));eb(this);this._processData(); this.options.title && (this.title = new ya(this, this.options.title), this.title.dockInsidePlotArea ? a.push(this.title) : this.title.setLayout());if (this.options.subtitles) for (d = 0; d < this.options.subtitles.length; d++) { c = new Ia(this, this.options.subtitles[d], d), this.subtitles.push(c), c.dockInsidePlotArea ? a.push(c) : c.setLayout(); }this.legend = new K(this, this.options.legend);for (d = 0; d < this.data.length; d++) { (this.data[d].showInLegend || "pie" === this.data[d].type || "doughnut" === this.data[d].type || "funnel" === this.data[d].type || "pyramid" === this.data[d].type) && this.legend.dataSeries.push(this.data[d]); }this.legend.dockInsidePlotArea ? a.push(this.legend) : this.legend.setLayout();for (d = 0; d < this._axes.length; d++) { if (this._axes[d].scaleBreaks && this._axes[d].scaleBreaks._appliedBreaks.length) { v ? (this._breaksCanvas = ua(this.width, this.height, !0), this._breaksCanvasCtx = this._breaksCanvas.getContext("2d")) : (this._breaksCanvas = this.canvas, this._breaksCanvasCtx = this.ctx);break; } }this._preRenderCanvas = ua(this.width, this.height);this._preRenderCtx = this._preRenderCanvas.getContext("2d");"normal" !== this.plotInfo.axisPlacement && "xySwapped" !== this.plotInfo.axisPlacement || E.setLayout(this.axisX, this.axisX2, this.axisY, this.axisY2, this.plotInfo.axisPlacement, this.layoutManager.getFreeSpace()); };n.prototype.renderElements = function () { var a = this._plotAreaElements;this.title && !this.title.dockInsidePlotArea && this.title.render();for (var d = 0; d < this.subtitles.length; d++) { this.subtitles[d].dockInsidePlotArea || this.subtitles[d].render(); }this.legend.dockInsidePlotArea || this.legend.render();if ("normal" === this.plotInfo.axisPlacement || "xySwapped" === this.plotInfo.axisPlacement) E.render(this.axisX, this.axisX2, this.axisY, this.axisY2, this.plotInfo.axisPlacement);else if ("none" === this.plotInfo.axisPlacement) this.preparePlotArea();else return;for (d = 0; d < a.length; d++) { a[d].setLayout(), a[d].render(); }var c = [];if (this.animatedRender) { var b = ua(this.width, this.height);b.getContext("2d").drawImage(this.canvas, 0, 0, this.width, this.height); }hb(this);var a = this.ctx.miterLimit, e;this.ctx.miterLimit = 3;v && this._breaksCanvas && (this._preRenderCtx.drawImage(this.canvas, 0, 0, this.width, this.height), this._preRenderCtx.drawImage(this._breaksCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx.globalCompositeOperation = "source-atop", this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), this._preRenderCtx.clearRect(0, 0, this.width, this.height));for (d = 0; d < this.plotInfo.plotTypes.length; d++) { for (var f = this.plotInfo.plotTypes[d], l = 0; l < f.plotUnits.length; l++) { var s = f.plotUnits[l], B = null;s.targetCanvas && xa(s.targetCanvas);s.targetCanvas = null;this.animatedRender && (s.targetCanvas = ua(this.width, this.height), s.targetCanvasCtx = s.targetCanvas.getContext("2d"), e = s.targetCanvasCtx.miterLimit, s.targetCanvasCtx.miterLimit = 3);"line" === s.type ? B = this.renderLine(s) : "stepLine" === s.type ? B = this.renderStepLine(s) : "spline" === s.type ? B = this.renderSpline(s) : "column" === s.type ? B = this.renderColumn(s) : "bar" === s.type ? B = this.renderBar(s) : "area" === s.type ? B = this.renderArea(s) : "stepArea" === s.type ? B = this.renderStepArea(s) : "splineArea" === s.type ? B = this.renderSplineArea(s) : "stackedColumn" === s.type ? B = this.renderStackedColumn(s) : "stackedColumn100" === s.type ? B = this.renderStackedColumn100(s) : "stackedBar" === s.type ? B = this.renderStackedBar(s) : "stackedBar100" === s.type ? B = this.renderStackedBar100(s) : "stackedArea" === s.type ? B = this.renderStackedArea(s) : "stackedArea100" === s.type ? B = this.renderStackedArea100(s) : "bubble" === s.type ? B = B = this.renderBubble(s) : "scatter" === s.type ? B = this.renderScatter(s) : "pie" === s.type ? this.renderPie(s) : "doughnut" === s.type ? this.renderPie(s) : "funnel" === s.type ? B = this.renderFunnel(s) : "pyramid" === s.type ? B = this.renderFunnel(s) : "candlestick" === s.type ? B = this.renderCandlestick(s) : "ohlc" === s.type ? B = this.renderCandlestick(s) : "rangeColumn" === s.type ? B = this.renderRangeColumn(s) : "error" === s.type ? B = this.renderError(s) : "rangeBar" === s.type ? B = this.renderRangeBar(s) : "rangeArea" === s.type ? B = this.renderRangeArea(s) : "rangeSplineArea" === s.type ? B = this.renderRangeSplineArea(s) : "waterfall" === s.type ? B = this.renderWaterfall(s) : "boxAndWhisker" === s.type && (B = this.renderBoxAndWhisker(s));for (var k = 0; k < s.dataSeriesIndexes.length; k++) { this._dataInRenderedOrder.push(this.data[s.dataSeriesIndexes[k]]); }this.animatedRender && (s.targetCanvasCtx.miterLimit = e, B && c.push(B)); } }this.ctx.miterLimit = a;this.animatedRender && this._breaksCanvasCtx && c.push({ source: this._breaksCanvasCtx, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0, startTimePercent: 0.7 });this.animatedRender && 0 < this._indexLabels.length && (e = ua(this.width, this.height).getContext("2d"), c.push(this.renderIndexLabels(e)));var m = this;if (0 < c.length) m.disableToolTip = !0, m._animator.animate(200, m.animationDuration, function (a) { m.ctx.clearRect(0, 0, m.width, m.height);m.ctx.drawImage(b, 0, 0, Math.floor(m.width * ma), Math.floor(m.height * ma), 0, 0, m.width, m.height);for (var e = 0; e < c.length; e++) { B = c[e], 1 > a && "undefined" !== typeof B.startTimePercent ? a >= B.startTimePercent && B.animationCallback(B.easingFunction(a - B.startTimePercent, 0, 1, 1 - B.startTimePercent), B) : B.animationCallback(B.easingFunction(a, 0, 1, 1), B); }m.dispatchEvent("dataAnimationIterationEnd", { chart: m }); }, function () { c = [];for (var a = 0; a < m.plotInfo.plotTypes.length; a++) { for (var e = m.plotInfo.plotTypes[a], d = 0; d < e.plotUnits.length; d++) { var f = e.plotUnits[d];f.targetCanvas && xa(f.targetCanvas);f.targetCanvas = null; } }b = null;m.disableToolTip = !1;m.dispatchEvent("dataAnimationEnd", { chart: m }); });else { if (m._breaksCanvas) if (v) m.plotArea.ctx.drawImage(m._breaksCanvas, 0, 0, this.width, this.height);else for (k = 0; k < m._axes.length; k++) { m._axes[k].createMask(); }0 < m._indexLabels.length && m.renderIndexLabels();m.dispatchEvent("dataAnimationIterationEnd", { chart: m });m.dispatchEvent("dataAnimationEnd", { chart: m }); }this.attachPlotAreaEventHandlers();this.zoomEnabled || this.panEnabled || !this._zoomButton || "none" === this._zoomButton.style.display || va(this._zoomButton, this._resetButton);this.toolTip._updateToolTip();this.renderCount++;Ha && (m = this, setTimeout(function () { var a = document.getElementById("ghostCanvasCopy");a && (Ma(a, m.width, m.height), a.getContext("2d").drawImage(m._eventManager.ghostCanvas, 0, 0)); }, 2E3));this._breaksCanvas && (delete this._breaksCanvas, delete this._breaksCanvasCtx);for (k = 0; k < this._axes.length; k++) { this._axes[k].maskCanvas && (delete this._axes[k].maskCanvas, delete this._axes[k].maskCtx); } };n.prototype.render = function (a) { a && (this.options = a);this._initialize();this.setLayout();this.renderElements();this._preRenderCanvas && xa(this._preRenderCanvas); };n.prototype.attachPlotAreaEventHandlers = function () { this.attachEvent({ context: this, chart: this, mousedown: this._plotAreaMouseDown, mouseup: this._plotAreaMouseUp, mousemove: this._plotAreaMouseMove, cursor: this.panEnabled ? "move" : "default", capture: !0, bounds: this.plotArea }); };n.prototype.categoriseDataSeries = function () { for (var a = "", d = 0; d < this.data.length; d++) { if (a = this.data[d], a.dataPoints && 0 !== a.dataPoints.length && a.visible && 0 <= n._supportedChartTypes.indexOf(a.type)) { for (var c = null, b = !1, e = null, f = !1, l = 0; l < this.plotInfo.plotTypes.length; l++) { if (this.plotInfo.plotTypes[l].type === a.type) { b = !0;c = this.plotInfo.plotTypes[l];break; } }b || (c = { type: a.type, totalDataSeries: 0, plotUnits: [] }, this.plotInfo.plotTypes.push(c));for (l = 0; l < c.plotUnits.length; l++) { if (c.plotUnits[l].axisYType === a.axisYType && c.plotUnits[l].axisXType === a.axisXType && c.plotUnits[l].axisYIndex === a.axisYIndex && c.plotUnits[l].axisXIndex === a.axisXIndex) { f = !0;e = c.plotUnits[l];break; } }f || (e = { type: a.type, previousDataSeriesCount: 0, index: c.plotUnits.length, plotType: c, axisXType: a.axisXType, axisYType: a.axisYType, axisYIndex: a.axisYIndex, axisXIndex: a.axisXIndex, axisY: "primary" === a.axisYType ? this.axisY[0 <= a.axisYIndex && a.axisYIndex < this.axisY.length ? a.axisYIndex : 0] : this.axisY2[0 <= a.axisYIndex && a.axisYIndex < this.axisY2.length ? a.axisYIndex : 0], axisX: "primary" === a.axisXType ? this.axisX[0 <= a.axisXIndex && a.axisXIndex < this.axisX.length ? a.axisXIndex : 0] : this.axisX2[0 <= a.axisXIndex && a.axisXIndex < this.axisX2.length ? a.axisXIndex : 0], dataSeriesIndexes: [], yTotals: [], yAbsTotals: [] }, c.plotUnits.push(e));c.totalDataSeries++;e.dataSeriesIndexes.push(d);a.plotUnit = e; } }for (d = 0; d < this.plotInfo.plotTypes.length; d++) { for (c = this.plotInfo.plotTypes[d], l = a = 0; l < c.plotUnits.length; l++) { c.plotUnits[l].previousDataSeriesCount = a, a += c.plotUnits[l].dataSeriesIndexes.length; } } };n.prototype.assignIdToDataPoints = function () { for (var a = 0; a < this.data.length; a++) { var d = this.data[a];if (d.dataPoints) for (var c = d.dataPoints.length, b = 0; b < c; b++) { d.dataPointIds[b] = ++this._eventManager.lastObjectId; } } };n.prototype._processData = function () { this.assignIdToDataPoints();this.categoriseDataSeries();for (var a = 0; a < this.plotInfo.plotTypes.length; a++) { for (var d = this.plotInfo.plotTypes[a], c = 0; c < d.plotUnits.length; c++) { var b = d.plotUnits[c];"line" === b.type || "stepLine" === b.type || "spline" === b.type || "column" === b.type || "area" === b.type || "stepArea" === b.type || "splineArea" === b.type || "bar" === b.type || "bubble" === b.type || "scatter" === b.type ? this._processMultiseriesPlotUnit(b) : "stackedColumn" === b.type || "stackedBar" === b.type || "stackedArea" === b.type ? this._processStackedPlotUnit(b) : "stackedColumn100" === b.type || "stackedBar100" === b.type || "stackedArea100" === b.type ? this._processStacked100PlotUnit(b) : "candlestick" === b.type || "ohlc" === b.type || "rangeColumn" === b.type || "rangeBar" === b.type || "rangeArea" === b.type || "rangeSplineArea" === b.type || "error" === b.type || "boxAndWhisker" === b.type ? this._processMultiYPlotUnit(b) : "waterfall" === b.type && this._processSpecificPlotUnit(b); } }this.calculateAutoBreaks(); };n.prototype._processMultiseriesPlotUnit = function (a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) for (var d = a.axisY.dataInfo, c = a.axisX.dataInfo, b, e, f = !1, l = 0; l < a.dataSeriesIndexes.length; l++) { var s = this.data[a.dataSeriesIndexes[l]], B = 0, k = !1, m = !1, p;if ("normal" === s.axisPlacement || "xySwapped" === s.axisPlacement) var r = a.axisX.sessionVariables.newViewportMinimum ? a.axisX.sessionVariables.newViewportMinimum : this.options.axisX && this.options.axisX.viewportMinimum ? this.options.axisX.viewportMinimum : this.options.axisX && this.options.axisX.minimum ? this.options.axisX.minimum : a.axisX.logarithmic ? 0 : -Infinity, g = a.axisX.sessionVariables.newViewportMaximum ? a.axisX.sessionVariables.newViewportMaximum : this.options.axisX && this.options.axisX.viewportMaximum ? this.options.axisX.viewportMaximum : this.options.axisX && this.options.axisX.maximum ? this.options.axisX.maximum : Infinity;if (s.dataPoints[B].x && s.dataPoints[B].x.getTime || "dateTime" === s.xValueType) f = !0;for (B = 0; B < s.dataPoints.length; B++) { "undefined" === typeof s.dataPoints[B].x && (s.dataPoints[B].x = B + (a.axisX.logarithmic ? 1 : 0));s.dataPoints[B].x.getTime ? (f = !0, b = s.dataPoints[B].x.getTime()) : b = s.dataPoints[B].x;e = s.dataPoints[B].y;b < c.min && (c.min = b);b > c.max && (c.max = b);e < d.min && "number" === typeof e && (d.min = e); e > d.max && "number" === typeof e && (d.max = e);if (0 < B) { if (a.axisX.logarithmic) { var u = b / s.dataPoints[B - 1].x;1 > u && (u = 1 / u);c.minDiff > u && 1 !== u && (c.minDiff = u); } else u = b - s.dataPoints[B - 1].x, 0 > u && (u *= -1), c.minDiff > u && 0 !== u && (c.minDiff = u);null !== e && null !== s.dataPoints[B - 1].y && (a.axisY.logarithmic ? (u = e / s.dataPoints[B - 1].y, 1 > u && (u = 1 / u), d.minDiff > u && 1 !== u && (d.minDiff = u)) : (u = e - s.dataPoints[B - 1].y, 0 > u && (u *= -1), d.minDiff > u && 0 !== u && (d.minDiff = u))); }if (b < r && !k) null !== e && (p = b);else { if (!k && (k = !0, 0 < B)) { B -= 2;continue; }if (b > g && !m) m = !0;else if (b > g && m) continue;s.dataPoints[B].label && (a.axisX.labels[b] = s.dataPoints[B].label);b < c.viewPortMin && (c.viewPortMin = b);b > c.viewPortMax && (c.viewPortMax = b);null === e ? c.viewPortMin === b && p < b && (c.viewPortMin = p) : (e < d.viewPortMin && "number" === typeof e && (d.viewPortMin = e), e > d.viewPortMax && "number" === typeof e && (d.viewPortMax = e)); } }s.axisX.valueType = s.xValueType = f ? "dateTime" : "number"; } };n.prototype._processStackedPlotUnit = function (a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) { for (var d = a.axisY.dataInfo, c = a.axisX.dataInfo, b, e, f = !1, l = [], s = [], B = Infinity, k = -Infinity, m = 0; m < a.dataSeriesIndexes.length; m++) { var p = this.data[a.dataSeriesIndexes[m]], r = 0, g = !1, u = !1, h;if ("normal" === p.axisPlacement || "xySwapped" === p.axisPlacement) var F = a.axisX.sessionVariables.newViewportMinimum ? a.axisX.sessionVariables.newViewportMinimum : this.options.axisX && this.options.axisX.viewportMinimum ? this.options.axisX.viewportMinimum : this.options.axisX && this.options.axisX.minimum ? this.options.axisX.minimum : -Infinity, t = a.axisX.sessionVariables.newViewportMaximum ? a.axisX.sessionVariables.newViewportMaximum : this.options.axisX && this.options.axisX.viewportMaximum ? this.options.axisX.viewportMaximum : this.options.axisX && this.options.axisX.maximum ? this.options.axisX.maximum : Infinity;if (p.dataPoints[r].x && p.dataPoints[r].x.getTime || "dateTime" === p.xValueType) f = !0;for (r = 0; r < p.dataPoints.length; r++) { "undefined" === typeof p.dataPoints[r].x && (p.dataPoints[r].x = r + (a.axisX.logarithmic ? 1 : 0));p.dataPoints[r].x.getTime ? (f = !0, b = p.dataPoints[r].x.getTime()) : b = p.dataPoints[r].x;e = q(p.dataPoints[r].y) ? 0 : p.dataPoints[r].y;b < c.min && (c.min = b);b > c.max && (c.max = b);if (0 < r) { if (a.axisX.logarithmic) { var x = b / p.dataPoints[r - 1].x;1 > x && (x = 1 / x);c.minDiff > x && 1 !== x && (c.minDiff = x); } else x = b - p.dataPoints[r - 1].x, 0 > x && (x *= -1), c.minDiff > x && 0 !== x && (c.minDiff = x);null !== e && null !== p.dataPoints[r - 1].y && (a.axisY.logarithmic ? 0 < e && (x = e / p.dataPoints[r - 1].y, 1 > x && (x = 1 / x), d.minDiff > x && 1 !== x && (d.minDiff = x)) : (x = e - p.dataPoints[r - 1].y, 0 > x && (x *= -1), d.minDiff > x && 0 !== x && (d.minDiff = x))); }if (b < F && !g) null !== p.dataPoints[r].y && (h = b);else { if (!g && (g = !0, 0 < r)) { r -= 2;continue; }if (b > t && !u) u = !0;else if (b > t && u) continue;p.dataPoints[r].label && (a.axisX.labels[b] = p.dataPoints[r].label);b < c.viewPortMin && (c.viewPortMin = b);b > c.viewPortMax && (c.viewPortMax = b);null === p.dataPoints[r].y ? c.viewPortMin === b && h < b && (c.viewPortMin = h) : (a.yTotals[b] = (a.yTotals[b] ? a.yTotals[b] : 0) + e, a.yAbsTotals[b] = (a.yAbsTotals[b] ? a.yAbsTotals[b] : 0) + Math.abs(e), 0 <= e ? l[b] ? l[b] += e : (l[b] = e, B = Math.min(e, B)) : s[b] ? s[b] += e : (s[b] = e, k = Math.max(e, k))); } }a.axisY.scaleBreaks && a.axisY.scaleBreaks.autoCalculate && 1 <= a.axisY.scaleBreaks.maxNumberOfAutoBreaks && (d.dataPointYPositiveSums ? (d.dataPointYPositiveSums.push.apply(d.dataPointYPositiveSums, l), d.dataPointYNegativeSums.push.apply(d.dataPointYPositiveSums, s)) : (d.dataPointYPositiveSums = l, d.dataPointYNegativeSums = s));p.axisX.valueType = p.xValueType = f ? "dateTime" : "number"; }for (r in l) { l.hasOwnProperty(r) && !isNaN(r) && (a = l[r], a < d.min && (d.min = Math.min(a, B)), a > d.max && (d.max = a), r < c.viewPortMin || r > c.viewPortMax || (a < d.viewPortMin && (d.viewPortMin = Math.min(a, B)), a > d.viewPortMax && (d.viewPortMax = a))); }for (r in s) { s.hasOwnProperty(r) && !isNaN(r) && (a = s[r], a < d.min && (d.min = a), a > d.max && (d.max = Math.max(a, k)), r < c.viewPortMin || r > c.viewPortMax || (a < d.viewPortMin && (d.viewPortMin = a), a > d.viewPortMax && (d.viewPortMax = Math.max(a, k)))); } } };n.prototype._processStacked100PlotUnit = function (a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) { for (var d = a.axisY.dataInfo, c = a.axisX.dataInfo, b, e, f = !1, l = !1, s = !1, B = [], k = 0; k < a.dataSeriesIndexes.length; k++) { var m = this.data[a.dataSeriesIndexes[k]], p = 0, r = !1, g = !1, u;if ("normal" === m.axisPlacement || "xySwapped" === m.axisPlacement) var h = a.axisX.sessionVariables.newViewportMinimum ? a.axisX.sessionVariables.newViewportMinimum : this.options.axisX && this.options.axisX.viewportMinimum ? this.options.axisX.viewportMinimum : this.options.axisX && this.options.axisX.minimum ? this.options.axisX.minimum : -Infinity, F = a.axisX.sessionVariables.newViewportMaximum ? a.axisX.sessionVariables.newViewportMaximum : this.options.axisX && this.options.axisX.viewportMaximum ? this.options.axisX.viewportMaximum : this.options.axisX && this.options.axisX.maximum ? this.options.axisX.maximum : Infinity;if (m.dataPoints[p].x && m.dataPoints[p].x.getTime || "dateTime" === m.xValueType) f = !0;for (p = 0; p < m.dataPoints.length; p++) { "undefined" === typeof m.dataPoints[p].x && (m.dataPoints[p].x = p + (a.axisX.logarithmic ? 1 : 0));m.dataPoints[p].x.getTime ? (f = !0, b = m.dataPoints[p].x.getTime()) : b = m.dataPoints[p].x;e = q(m.dataPoints[p].y) ? null : m.dataPoints[p].y;b < c.min && (c.min = b);b > c.max && (c.max = b);if (0 < p) { if (a.axisX.logarithmic) { var t = b / m.dataPoints[p - 1].x;1 > t && (t = 1 / t);c.minDiff > t && 1 !== t && (c.minDiff = t); } else t = b - m.dataPoints[p - 1].x, 0 > t && (t *= -1), c.minDiff > t && 0 !== t && (c.minDiff = t);q(e) || null === m.dataPoints[p - 1].y || (a.axisY.logarithmic ? 0 < e && (t = e / m.dataPoints[p - 1].y, 1 > t && (t = 1 / t), d.minDiff > t && 1 !== t && (d.minDiff = t)) : (t = e - m.dataPoints[p - 1].y, 0 > t && (t *= -1), d.minDiff > t && 0 !== t && (d.minDiff = t))); }if (b < h && !r) null !== e && (u = b);else { if (!r && (r = !0, 0 < p)) { p -= 2;continue; }if (b > F && !g) g = !0;else if (b > F && g) continue;m.dataPoints[p].label && (a.axisX.labels[b] = m.dataPoints[p].label); b < c.viewPortMin && (c.viewPortMin = b);b > c.viewPortMax && (c.viewPortMax = b);null === e ? c.viewPortMin === b && u < b && (c.viewPortMin = u) : (a.yTotals[b] = (a.yTotals[b] ? a.yTotals[b] : 0) + e, a.yAbsTotals[b] = (a.yAbsTotals[b] ? a.yAbsTotals[b] : 0) + Math.abs(e), 0 <= e ? l = !0 : 0 > e && (s = !0), B[b] = B[b] ? B[b] + Math.abs(e) : Math.abs(e)); } }m.axisX.valueType = m.xValueType = f ? "dateTime" : "number"; }a.axisY.logarithmic ? (d.max = q(d.viewPortMax) ? 99 * Math.pow(a.axisY.logarithmBase, -0.05) : Math.max(d.viewPortMax, 99 * Math.pow(a.axisY.logarithmBase, -0.05)), d.min = q(d.viewPortMin) ? 1 : Math.min(d.viewPortMin, 1)) : l && !s ? (d.max = q(d.viewPortMax) ? 99 : Math.max(d.viewPortMax, 99), d.min = q(d.viewPortMin) ? 1 : Math.min(d.viewPortMin, 1)) : l && s ? (d.max = q(d.viewPortMax) ? 99 : Math.max(d.viewPortMax, 99), d.min = q(d.viewPortMin) ? -99 : Math.min(d.viewPortMin, -99)) : !l && s && (d.max = q(d.viewPortMax) ? -1 : Math.max(d.viewPortMax, -1), d.min = q(d.viewPortMin) ? -99 : Math.min(d.viewPortMin, -99));d.viewPortMin = d.min;d.viewPortMax = d.max;a.dataPointYSums = B; } };n.prototype._processMultiYPlotUnit = function (a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) for (var d = a.axisY.dataInfo, c = a.axisX.dataInfo, b, e, f, l, s = !1, B = 0; B < a.dataSeriesIndexes.length; B++) { var k = this.data[a.dataSeriesIndexes[B]], m = 0, p = !1, r = !1, g, u, h;if ("normal" === k.axisPlacement || "xySwapped" === k.axisPlacement) var q = a.axisX.sessionVariables.newViewportMinimum ? a.axisX.sessionVariables.newViewportMinimum : this.options.axisX && this.options.axisX.viewportMinimum ? this.options.axisX.viewportMinimum : this.options.axisX && this.options.axisX.minimum ? this.options.axisX.minimum : a.axisX.logarithmic ? 0 : -Infinity, t = a.axisX.sessionVariables.newViewportMaximum ? a.axisX.sessionVariables.newViewportMaximum : this.options.axisX && this.options.axisX.viewportMaximum ? this.options.axisX.viewportMaximum : this.options.axisX && this.options.axisX.maximum ? this.options.axisX.maximum : Infinity;if (k.dataPoints[m].x && k.dataPoints[m].x.getTime || "dateTime" === k.xValueType) s = !0;for (m = 0; m < k.dataPoints.length; m++) { "undefined" === typeof k.dataPoints[m].x && (k.dataPoints[m].x = m + (a.axisX.logarithmic ? 1 : 0));k.dataPoints[m].x.getTime ? (s = !0, b = k.dataPoints[m].x.getTime()) : b = k.dataPoints[m].x;if ((e = k.dataPoints[m].y) && e.length) { f = Math.min.apply(null, e);l = Math.max.apply(null, e);u = !0;for (var x = 0; x < e.length; x++) { null === e.k && (u = !1); }u && (p || (h = g), g = b); }b < c.min && (c.min = b);b > c.max && (c.max = b);f < d.min && (d.min = f);l > d.max && (d.max = l);0 < m && (a.axisX.logarithmic ? (u = b / k.dataPoints[m - 1].x, 1 > u && (u = 1 / u), c.minDiff > u && 1 !== u && (c.minDiff = u)) : (u = b - k.dataPoints[m - 1].x, 0 > u && (u *= -1), c.minDiff > u && 0 !== u && (c.minDiff = u)), e && null !== e[0] && k.dataPoints[m - 1].y && null !== k.dataPoints[m - 1].y[0] && (a.axisY.logarithmic ? (u = e[0] / k.dataPoints[m - 1].y[0], 1 > u && (u = 1 / u), d.minDiff > u && 1 !== u && (d.minDiff = u)) : (u = e[0] - k.dataPoints[m - 1].y[0], 0 > u && (u *= -1), d.minDiff > u && 0 !== u && (d.minDiff = u))));if (!(b < q) || p) { if (!p && (p = !0, 0 < m)) { m -= 2;g = h;continue; }if (b > t && !r) r = !0;else if (b > t && r) continue;k.dataPoints[m].label && (a.axisX.labels[b] = k.dataPoints[m].label);b < c.viewPortMin && (c.viewPortMin = b);b > c.viewPortMax && (c.viewPortMax = b);if (c.viewPortMin === b && e) for (x = 0; x < e.length; x++) { if (null === e[x] && g < b) { c.viewPortMin = g;break; } }null === e ? c.viewPortMin === b && g < b && (c.viewPortMin = g) : (f < d.viewPortMin && (d.viewPortMin = f), l > d.viewPortMax && (d.viewPortMax = l)); } }k.axisX.valueType = k.xValueType = s ? "dateTime" : "number"; } };n.prototype._processSpecificPlotUnit = function (a) { if ("waterfall" === a.type && a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) for (var d = a.axisY.dataInfo, c = a.axisX.dataInfo, b, e, f = !1, l = 0; l < a.dataSeriesIndexes.length; l++) { var s = this.data[a.dataSeriesIndexes[l]], B = 0, k = !1, m = !1, p = b = 0;if ("normal" === s.axisPlacement || "xySwapped" === s.axisPlacement) var r = a.axisX.sessionVariables.newViewportMinimum ? a.axisX.sessionVariables.newViewportMinimum : this.options.axisX && this.options.axisX.viewportMinimum ? this.options.axisX.viewportMinimum : this.options.axisX && this.options.axisX.minimum ? this.options.axisX.minimum : a.axisX.logarithmic ? 0 : -Infinity, g = a.axisX.sessionVariables.newViewportMaximum ? a.axisX.sessionVariables.newViewportMaximum : this.options.axisX && this.options.axisX.viewportMaximum ? this.options.axisX.viewportMaximum : this.options.axisX && this.options.axisX.maximum ? this.options.axisX.maximum : Infinity;if (s.dataPoints[B].x && s.dataPoints[B].x.getTime || "dateTime" === s.xValueType) f = !0;for (B = 0; B < s.dataPoints.length; B++) { "undefined" !== typeof s.dataPoints[B].isCumulativeSum && !0 === s.dataPoints[B].isCumulativeSum ? (s.dataPointEOs[B].cumulativeSumYStartValue = 0, s.dataPointEOs[B].cumulativeSum = 0 === B ? 0 : s.dataPointEOs[B - 1].cumulativeSum, s.dataPoints[B].y = 0 === B ? 0 : s.dataPointEOs[B - 1].cumulativeSum) : "undefined" !== typeof s.dataPoints[B].isIntermediateSum && !0 === s.dataPoints[B].isIntermediateSum ? (s.dataPointEOs[B].cumulativeSumYStartValue = p, s.dataPointEOs[B].cumulativeSum = 0 === B ? 0 : s.dataPointEOs[B - 1].cumulativeSum, s.dataPoints[B].y = 0 === B ? 0 : b, p = 0 === B ? 0 : s.dataPointEOs[B - 1].cumulativeSum, b = 0) : (e = "number" !== typeof s.dataPoints[B].y ? 0 : s.dataPoints[B].y, s.dataPointEOs[B].cumulativeSumYStartValue = 0 === B ? 0 : s.dataPointEOs[B - 1].cumulativeSum, s.dataPointEOs[B].cumulativeSum = 0 === B ? e : s.dataPointEOs[B - 1].cumulativeSum + e, b += e); }for (B = 0; B < s.dataPoints.length; B++) { if ("undefined" === typeof s.dataPoints[B].x && (s.dataPoints[B].x = B + (a.axisX.logarithmic ? 1 : 0)), s.dataPoints[B].x.getTime ? (f = !0, b = s.dataPoints[B].x.getTime()) : b = s.dataPoints[B].x, e = s.dataPoints[B].y, b < c.min && (c.min = b), b > c.max && (c.max = b), s.dataPointEOs[B].cumulativeSum < d.min && (d.min = s.dataPointEOs[B].cumulativeSum), s.dataPointEOs[B].cumulativeSum > d.max && (d.max = s.dataPointEOs[B].cumulativeSum), 0 < B && (a.axisX.logarithmic ? (p = b / s.dataPoints[B - 1].x, 1 > p && (p = 1 / p), c.minDiff > p && 1 !== p && (c.minDiff = p)) : (p = b - s.dataPoints[B - 1].x, 0 > p && (p *= -1), c.minDiff > p && 0 !== p && (c.minDiff = p)), null !== e && null !== s.dataPoints[B - 1].y && (a.axisY.logarithmic ? (e = s.dataPointEOs[B].cumulativeSum / s.dataPointEOs[B - 1].cumulativeSum, 1 > e && (e = 1 / e), d.minDiff > e && 1 !== e && (d.minDiff = e)) : (e = s.dataPointEOs[B].cumulativeSum - s.dataPointEOs[B - 1].cumulativeSum, 0 > e && (e *= -1), d.minDiff > e && 0 !== e && (d.minDiff = e)))), !(b < r) || k) { if (!k && (k = !0, 0 < B)) { B -= 2;continue; }if (b > g && !m) m = !0;else if (b > g && m) continue;s.dataPoints[B].label && (a.axisX.labels[b] = s.dataPoints[B].label);b < c.viewPortMin && (c.viewPortMin = b);b > c.viewPortMax && (c.viewPortMax = b);0 < B && (s.dataPointEOs[B - 1].cumulativeSum < d.viewPortMin && (d.viewPortMin = s.dataPointEOs[B - 1].cumulativeSum), s.dataPointEOs[B - 1].cumulativeSum > d.viewPortMax && (d.viewPortMax = s.dataPointEOs[B - 1].cumulativeSum));s.dataPointEOs[B].cumulativeSum < d.viewPortMin && (d.viewPortMin = s.dataPointEOs[B].cumulativeSum);s.dataPointEOs[B].cumulativeSum > d.viewPortMax && (d.viewPortMax = s.dataPointEOs[B].cumulativeSum); } }s.axisX.valueType = s.xValueType = f ? "dateTime" : "number"; } }; n.prototype.calculateAutoBreaks = function () { function a(a, b, c, e) { if (e) return c = Math.pow(Math.min(c * a / b, b / a), 0.2), 1 >= c && (c = Math.pow(1 > a ? 1 / a : Math.min(b / a, a), 0.25)), { startValue: a * c, endValue: b / c };c = 0.2 * Math.min(c - b + a, b - a);0 >= c && (c = 0.25 * Math.min(b - a, Math.abs(a)));return { startValue: a + c, endValue: b - c }; }function d(a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length)) { var b = a.axisX.scaleBreaks && a.axisX.scaleBreaks.autoCalculate && 1 <= a.axisX.scaleBreaks.maxNumberOfAutoBreaks, c = a.axisY.scaleBreaks && a.axisY.scaleBreaks.autoCalculate && 1 <= a.axisY.scaleBreaks.maxNumberOfAutoBreaks;if (b || c) for (var d = a.axisY.dataInfo, f = a.axisX.dataInfo, g, l = f.min, k = f.max, m = d.min, p = d.max, f = f._dataRanges, d = d._dataRanges, r, s = 0, B = 0; B < a.dataSeriesIndexes.length; B++) { var h = e.data[a.dataSeriesIndexes[B]];if (!(4 > h.dataPoints.length)) for (s = 0; s < h.dataPoints.length; s++) { if (b && (r = (k + 1 - l) * Math.max(parseFloat(a.axisX.scaleBreaks.collapsibleThreshold) || 10, 10) / 100, g = h.dataPoints[s].x.getTime ? h.dataPoints[s].x.getTime() : h.dataPoints[s].x, r = Math.floor((g - l) / r), g < f[r].min && (f[r].min = g), g > f[r].max && (f[r].max = g)), c) { var v = (p + 1 - m) * Math.max(parseFloat(a.axisY.scaleBreaks.collapsibleThreshold) || 10, 10) / 100;if ((g = "waterfall" === a.type ? h.dataPointEOs[s].cumulativeSum : h.dataPoints[s].y) && g.length) for (var n = 0; n < g.length; n++) { r = Math.floor((g[n] - m) / v), g[n] < d[r].min && (d[r].min = g[n]), g[n] > d[r].max && (d[r].max = g[n]); } else q(g) || (r = Math.floor((g - m) / v), g < d[r].min && (d[r].min = g), g > d[r].max && (d[r].max = g)); } } } } }function c(a) { if (a.dataSeriesIndexes && !(1 > a.dataSeriesIndexes.length) && a.axisX.scaleBreaks && a.axisX.scaleBreaks.autoCalculate && 1 <= a.axisX.scaleBreaks.maxNumberOfAutoBreaks) for (var b = a.axisX.dataInfo, c = b.min, d = b.max, f = b._dataRanges, g, l = 0, k = 0; k < a.dataSeriesIndexes.length; k++) { var m = e.data[a.dataSeriesIndexes[k]];if (!(4 > m.dataPoints.length)) for (l = 0; l < m.dataPoints.length; l++) { g = (d + 1 - c) * Math.max(parseFloat(a.axisX.scaleBreaks.collapsibleThreshold) || 10, 10) / 100, b = m.dataPoints[l].x.getTime ? m.dataPoints[l].x.getTime() : m.dataPoints[l].x, g = Math.floor((b - c) / g), b < f[g].min && (f[g].min = b), b > f[g].max && (f[g].max = b); } } }for (var b, e = this, f = !1, l = 0; l < this._axes.length; l++) { if (this._axes[l].scaleBreaks && this._axes[l].scaleBreaks.autoCalculate && 1 <= this._axes[l].scaleBreaks.maxNumberOfAutoBreaks) { f = !0;this._axes[l].dataInfo._dataRanges = [];for (var s = 0; s < 100 / Math.max(parseFloat(this._axes[l].scaleBreaks.collapsibleThreshold) || 10, 10); s++) { this._axes[l].dataInfo._dataRanges.push({ min: Infinity, max: -Infinity }); } } }if (f) { for (l = 0; l < this.plotInfo.plotTypes.length; l++) { for (f = this.plotInfo.plotTypes[l], s = 0; s < f.plotUnits.length; s++) { b = f.plotUnits[s], "line" === b.type || "stepLine" === b.type || "spline" === b.type || "column" === b.type || "area" === b.type || "stepArea" === b.type || "splineArea" === b.type || "bar" === b.type || "bubble" === b.type || "scatter" === b.type || "candlestick" === b.type || "ohlc" === b.type || "rangeColumn" === b.type || "rangeBar" === b.type || "rangeArea" === b.type || "rangeSplineArea" === b.type || "waterfall" === b.type || "error" === b.type || "boxAndWhisker" === b.type ? d(b) : 0 <= b.type.indexOf("stacked") && c(b); } }for (l = 0; l < this._axes.length; l++) { if (this._axes[l].dataInfo._dataRanges) { var B = this._axes[l].dataInfo.min;b = (this._axes[l].dataInfo.max + 1 - B) * Math.max(parseFloat(this._axes[l].scaleBreaks.collapsibleThreshold) || 10, 10) / 100;var k = this._axes[l].dataInfo._dataRanges, m, p, f = [];if (this._axes[l].dataInfo.dataPointYPositiveSums) { var r = this._axes[l].dataInfo.dataPointYPositiveSums;m = k;for (s in r) { if (r.hasOwnProperty(s) && !isNaN(s) && (p = r[s], !q(p))) { var g = Math.floor((p - B) / b);p < m[g].min && (m[g].min = p);p > m[g].max && (m[g].max = p); } }delete this._axes[l].dataInfo.dataPointYPositiveSums; }if (this._axes[l].dataInfo.dataPointYNegativeSums) { r = this._axes[l].dataInfo.dataPointYNegativeSums;m = k;for (s in r) { r.hasOwnProperty(s) && !isNaN(s) && (p = -1 * r[s], q(p) || (g = Math.floor((p - B) / b), p < m[g].min && (m[g].min = p), p > m[g].max && (m[g].max = p))); }delete this._axes[l].dataInfo.dataPointYNegativeSums; }for (s = 0; s < k.length - 1; s++) { if (m = k[s].max, isFinite(m)) for (; s < k.length - 1;) { if (B = k[s + 1].min, isFinite(B)) { p = B - m;p > b && f.push({ diff: p, start: m, end: B });break; } else s++; } }if (this._axes[l].scaleBreaks.customBreaks) for (s = 0; s < this._axes[l].scaleBreaks.customBreaks.length; s++) { for (b = 0; b < f.length; b++) { if (this._axes[l].scaleBreaks.customBreaks[s].startValue <= f[b].start && f[b].start <= this._axes[l].scaleBreaks.customBreaks[s].endValue || this._axes[l].scaleBreaks.customBreaks[s].startValue <= f[b].start && f[b].start <= this._axes[l].scaleBreaks.customBreaks[s].endValue || f[b].start <= this._axes[l].scaleBreaks.customBreaks[s].startValue && this._axes[l].scaleBreaks.customBreaks[s].startValue <= f[b].end || f[b].start <= this._axes[l].scaleBreaks.customBreaks[s].endValue && this._axes[l].scaleBreaks.customBreaks[s].endValue <= f[b].end) f.splice(b, 1), b--; } }f.sort(function (a, b) { return b.diff - a.diff; });for (s = 0; s < Math.min(f.length, this._axes[l].scaleBreaks.maxNumberOfAutoBreaks); s++) { b = a(f[s].start, f[s].end, this._axes[l].logarithmic ? this._axes[l].dataInfo.max / this._axes[l].dataInfo.min : this._axes[l].dataInfo.max - this._axes[l].dataInfo.min, this._axes[l].logarithmic), this._axes[l].scaleBreaks.autoBreaks.push(new ba(this, "autoBreaks", b, s, ++this._eventManager.lastObjectId, this._axes[l].scaleBreaks)), this._axes[l].scaleBreaks._appliedBreaks.push(this._axes[l].scaleBreaks.autoBreaks[this._axes[l].scaleBreaks.autoBreaks.length - 1]); }this._axes[l].scaleBreaks._appliedBreaks.sort(function (a, b) { return a.startValue - b.startValue; }); } } } };n.prototype.renderCrosshairs = function (a) { for (var d = 0; d < this.axisX.length; d++) { this.axisX[d] != a && this.axisX[d].crosshair && this.axisX[d].crosshair.enabled && !this.axisX[d].crosshair._hidden && this.axisX[d].showCrosshair(this.axisX[d].crosshair._updatedValue); }for (d = 0; d < this.axisX2.length; d++) { this.axisX2[d] != a && this.axisX2[d].crosshair && this.axisX2[d].crosshair.enabled && !this.axisX2[d].crosshair._hidden && this.axisX2[d].showCrosshair(this.axisX2[d].crosshair._updatedValue); }for (d = 0; d < this.axisY.length; d++) { this.axisY[d] != a && this.axisY[d].crosshair && this.axisY[d].crosshair.enabled && !this.axisY[d].crosshair._hidden && this.axisY[d].showCrosshair(this.axisY[d].crosshair._updatedValue); }for (d = 0; d < this.axisY2.length; d++) { this.axisY2[d] != a && this.axisY2[d].crosshair && this.axisY2[d].crosshair.enabled && !this.axisY2[d].crosshair._hidden && this.axisY2[d].showCrosshair(this.axisY2[d].crosshair._updatedValue); } };n.prototype.getDataPointAtXY = function (a, d, c) { c = c || !1;for (var b = [], e = this._dataInRenderedOrder.length - 1; 0 <= e; e--) { var f = null;(f = this._dataInRenderedOrder[e].getDataPointAtXY(a, d, c)) && b.push(f); }a = null;d = !1;for (c = 0; c < b.length; c++) { if ("line" === b[c].dataSeries.type || "stepLine" === b[c].dataSeries.type || "area" === b[c].dataSeries.type || "stepArea" === b[c].dataSeries.type) if (e = na("markerSize", b[c].dataPoint, b[c].dataSeries) || 8, b[c].distance <= e / 2) { d = !0;break; } }for (c = 0; c < b.length; c++) { d && "line" !== b[c].dataSeries.type && "stepLine" !== b[c].dataSeries.type && "area" !== b[c].dataSeries.type && "stepArea" !== b[c].dataSeries.type || (a ? b[c].distance <= a.distance && (a = b[c]) : a = b[c]); }return a; };n.prototype.getObjectAtXY = function (a, d, c) { var b = null;if (c = this.getDataPointAtXY(a, d, c || !1)) b = c.dataSeries.dataPointIds[c.dataPointIndex];else if (v) b = Za(a, d, this._eventManager.ghostCtx);else for (c = 0; c < this.legend.items.length; c++) { var e = this.legend.items[c];a >= e.x1 && a <= e.x2 && d >= e.y1 && d <= e.y2 && (b = e.id); }return b; };n.prototype.getAutoFontSize = lb;n.prototype.resetOverlayedCanvas = function () { this.overlaidCanvasCtx.clearRect(0, 0, this.width, this.height); };n.prototype.clearCanvas = kb;n.prototype.attachEvent = function (a) { this._events.push(a); };n.prototype._touchEventHandler = function (a) { if (a.changedTouches && this.interactivityEnabled) { var d = [], c = a.changedTouches, b = c ? c[0] : a, e = null;switch (a.type) {case "touchstart":case "MSPointerDown": d = ["mousemove", "mousedown"];this._lastTouchData = Oa(b);this._lastTouchData.time = new Date();break;case "touchmove":case "MSPointerMove": d = ["mousemove"];break; case "touchend":case "MSPointerUp": var f = this._lastTouchData && this._lastTouchData.time ? new Date() - this._lastTouchData.time : 0, d = "touchstart" === this._lastTouchEventType || "MSPointerDown" === this._lastTouchEventType || 300 > f ? ["mouseup", "click"] : ["mouseup"];break;default: return;}if (!(c && 1 < c.length)) { e = Oa(b);e.time = new Date();try { var l = e.y - this._lastTouchData.y, f = e.time - this._lastTouchData.time;if (1 < Math.abs(l) && this._lastTouchData.scroll || 5 < Math.abs(l) && 250 > f) this._lastTouchData.scroll = !0; } catch (s) {}this._lastTouchEventType = a.type;if (this._lastTouchData.scroll && this.zoomEnabled) this.isDrag && this.resetOverlayedCanvas(), this.isDrag = !1;else for (c = 0; c < d.length; c++) { if (e = d[c], l = document.createEvent("MouseEvent"), l.initMouseEvent(e, !0, !0, window, 1, b.screenX, b.screenY, b.clientX, b.clientY, !1, !1, !1, !1, 0, null), b.target.dispatchEvent(l), !q(this._lastTouchData.scroll) && !this._lastTouchData.scroll || !this._lastTouchData.scroll && 250 < f || "click" === e) a.preventManipulation && a.preventManipulation(), a.preventDefault && a.cancelable && a.preventDefault(); } } } }; n.prototype._dispatchRangeEvent = function (a, d) { var c = { chart: this };c.type = a;c.trigger = d;var b = [];this.axisX && 0 < this.axisX.length && b.push("axisX");this.axisX2 && 0 < this.axisX2.length && b.push("axisX2");this.axisY && 0 < this.axisY.length && b.push("axisY");this.axisY2 && 0 < this.axisY2.length && b.push("axisY2");for (var e = 0; e < b.length; e++) { if (q(c[b[e]]) && (c[b[e]] = []), "axisY" === b[e]) for (var f = 0; f < this.axisY.length; f++) { c[b[e]].push({ viewportMinimum: this[b[e]][f].sessionVariables.newViewportMinimum, viewportMaximum: this[b[e]][f].sessionVariables.newViewportMaximum }); } else if ("axisY2" === b[e]) for (f = 0; f < this.axisY2.length; f++) { c[b[e]].push({ viewportMinimum: this[b[e]][f].sessionVariables.newViewportMinimum, viewportMaximum: this[b[e]][f].sessionVariables.newViewportMaximum }); } else if ("axisX" === b[e]) for (f = 0; f < this.axisX.length; f++) { c[b[e]].push({ viewportMinimum: this[b[e]][f].sessionVariables.newViewportMinimum, viewportMaximum: this[b[e]][f].sessionVariables.newViewportMaximum }); } else if ("axisX2" === b[e]) for (f = 0; f < this.axisX2.length; f++) { c[b[e]].push({ viewportMinimum: this[b[e]][f].sessionVariables.newViewportMinimum, viewportMaximum: this[b[e]][f].sessionVariables.newViewportMaximum }); } }this.dispatchEvent(a, c, this); };n.prototype._mouseEventHandler = function (a) { "undefined" === typeof a.target && a.srcElement && (a.target = a.srcElement);var d = Oa(a), c = a.type, b, e;a.which ? e = 3 == a.which : a.button && (e = 2 == a.button);n.capturedEventParam && (b = n.capturedEventParam, "mouseup" === c && (n.capturedEventParam = null, b.chart.overlaidCanvas.releaseCapture ? b.chart.overlaidCanvas.releaseCapture() : document.documentElement.removeEventListener("mouseup", b.chart._mouseEventHandler, !1)), b.hasOwnProperty(c) && ("mouseup" !== c || b.chart.overlaidCanvas.releaseCapture ? a.target !== b.chart.overlaidCanvas && v || b[c].call(b.context, d.x, d.y) : a.target !== b.chart.overlaidCanvas && (b.chart.isDrag = !1)));if (this.interactivityEnabled) if (this._ignoreNextEvent) this._ignoreNextEvent = !1;else if (a.preventManipulation && a.preventManipulation(), a.preventDefault && a.preventDefault(), Ha && window.console && (window.console.log(c + " --\x3e x: " + d.x + "; y:" + d.y), e && window.console.log(a.which), "mouseup" === c && window.console.log("mouseup")), !e) { if (!n.capturedEventParam && this._events) { for (var f = 0; f < this._events.length; f++) { if (this._events[f].hasOwnProperty(c)) if (b = this._events[f], e = b.bounds, d.x >= e.x1 && d.x <= e.x2 && d.y >= e.y1 && d.y <= e.y2) { b[c].call(b.context, d.x, d.y);"mousedown" === c && !0 === b.capture ? (n.capturedEventParam = b, this.overlaidCanvas.setCapture ? this.overlaidCanvas.setCapture() : document.documentElement.addEventListener("mouseup", this._mouseEventHandler, !1)) : "mouseup" === c && (b.chart.overlaidCanvas.releaseCapture ? b.chart.overlaidCanvas.releaseCapture() : document.documentElement.removeEventListener("mouseup", this._mouseEventHandler, !1));break; } else b = null; }a.target.style.cursor = b && b.cursor ? b.cursor : this._defaultCursor; }c = this.plotArea;if (d.x < c.x1 || d.x > c.x2 || d.y < c.y1 || d.y > c.y2) { this.toolTip && this.toolTip.enabled ? (this.toolTip.hide(), this.toolTip.dispatchEvent("hidden", { chart: this, toolTip: this.toolTip }, this.toolTip)) : this.resetOverlayedCanvas();for (f = 0; f < this.axisX.length; f++) { this.axisX[f].crosshair && this.axisX[f].crosshair.enabled && (this.axisX[f].crosshair.hide(), this.axisX[f].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisX[f].options }, this.axisX[f].crosshair)); }for (f = 0; f < this.axisX2.length; f++) { this.axisX2[f].crosshair && this.axisX2[f].crosshair.enabled && (this.axisX2[f].crosshair.hide(), this.axisX2[f].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisX2[f].options }, this.axisX2[f].crosshair)); }for (f = 0; f < this.axisY.length; f++) { this.axisY[f].crosshair && this.axisY[f].crosshair.enabled && (this.axisY[f].crosshair.hide(), this.axisY[f].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisY[f].options }, this.axisY[f].crosshair)); }for (f = 0; f < this.axisY2.length; f++) { this.axisY2[f].crosshair && this.axisY2[f].crosshair.enabled && (this.axisY2[f].crosshair.hide(), this.axisY2[f].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisY2[f].options }, this.axisY2[f].crosshair)); } }this.isDrag && this.zoomEnabled || !this._eventManager || this._eventManager.mouseEventHandler(a); } };n.prototype._plotAreaMouseDown = function (a, d) { this.isDrag = !0;this.dragStartPoint = { x: a, y: d }; };n.prototype._plotAreaMouseUp = function (a, d) { if (("normal" === this.plotInfo.axisPlacement || "xySwapped" === this.plotInfo.axisPlacement) && this.isDrag) { var c = d - this.dragStartPoint.y, b = a - this.dragStartPoint.x, e = 0 <= this.zoomType.indexOf("x"), f = 0 <= this.zoomType.indexOf("y"), l = !1;this.resetOverlayedCanvas();if ("xySwapped" === this.plotInfo.axisPlacement) var s = f, f = e, e = s;if (this.panEnabled || this.zoomEnabled) { if (this.panEnabled) for (e = f = 0; e < this._axes.length; e++) { c = this._axes[e], c.logarithmic ? c.viewportMinimum < c.minimum ? (f = c.minimum / c.viewportMinimum, c.sessionVariables.newViewportMinimum = c.viewportMinimum * f, c.sessionVariables.newViewportMaximum = c.viewportMaximum * f, l = !0) : c.viewportMaximum > c.maximum && (f = c.viewportMaximum / c.maximum, c.sessionVariables.newViewportMinimum = c.viewportMinimum / f, c.sessionVariables.newViewportMaximum = c.viewportMaximum / f, l = !0) : c.viewportMinimum < c.minimum ? (f = c.minimum - c.viewportMinimum, c.sessionVariables.newViewportMinimum = c.viewportMinimum + f, c.sessionVariables.newViewportMaximum = c.viewportMaximum + f, l = !0) : c.viewportMaximum > c.maximum && (f = c.viewportMaximum - c.maximum, c.sessionVariables.newViewportMinimum = c.viewportMinimum - f, c.sessionVariables.newViewportMaximum = c.viewportMaximum - f, l = !0); } else if ((!e || 2 < Math.abs(b)) && (!f || 2 < Math.abs(c)) && this.zoomEnabled) { if (!this.dragStartPoint) return;c = e ? this.dragStartPoint.x : this.plotArea.x1;b = f ? this.dragStartPoint.y : this.plotArea.y1;e = e ? a : this.plotArea.x2;f = f ? d : this.plotArea.y2;2 < Math.abs(c - e) && 2 < Math.abs(b - f) && this._zoomPanToSelectedRegion(c, b, e, f) && (l = !0); }l && (this._ignoreNextEvent = !0, this._dispatchRangeEvent("rangeChanging", "zoom"), this.stockChart && this.stockChart.navigator && this.stockChart.navigator.enabled && (this.stockChart._rangeEventParameter || (this.stockChart._rangeEventParameter = { stockChart: this.stockChart, source: "chart", index: this.stockChart.charts.indexOf(this), minimum: this.stockChart.sessionVariables._axisXMin, maximum: this.stockChart.sessionVariables._axisXMax }), this.stockChart._rangeEventParameter.type = "rangeChanging", this.stockChart.dispatchEvent("rangeChanging", this.stockChart._rangeEventParameter, this.stockChart)), this.render(), this._dispatchRangeEvent("rangeChanged", "zoom"), this.stockChart && this.stockChart.navigator && this.stockChart.navigator.enabled && (this.stockChart._rangeEventParameter.type = "rangeChanged", this.stockChart.dispatchEvent("rangeChanged", this.stockChart._rangeEventParameter, this.stockChart)), l && this.zoomEnabled && "none" === this._zoomButton.style.display && (La(this._zoomButton, this._resetButton), wa(this, this._zoomButton, "pan"), wa(this, this._resetButton, "reset"))); } }this.isDrag = !1;if ("none" !== this.plotInfo.axisPlacement) { this.resetOverlayedCanvas();if (this.axisX && 0 < this.axisX.length) for (l = 0; l < this.axisX.length; l++) { this.axisX[l].crosshair && this.axisX[l].crosshair.enabled && this.axisX[l].renderCrosshair(a, d); }if (this.axisX2 && 0 < this.axisX2.length) for (l = 0; l < this.axisX2.length; l++) { this.axisX2[l].crosshair && this.axisX2[l].crosshair.enabled && this.axisX2[l].renderCrosshair(a, d); }if (this.axisY && 0 < this.axisY.length) for (l = 0; l < this.axisY.length; l++) { this.axisY[l].crosshair && this.axisY[l].crosshair.enabled && this.axisY[l].renderCrosshair(a, d); }if (this.axisY2 && 0 < this.axisY2.length) for (l = 0; l < this.axisY2.length; l++) { this.axisY2[l].crosshair && this.axisY2[l].crosshair.enabled && this.axisY2[l].renderCrosshair(a, d); }if (this.axisX && 0 < this.axisX.length) for (l = 0; l < this.axisX.length; l++) { this.axisX[l].crosshair && this.axisX[l].crosshair.enabled && this.axisX[l].crosshair.renderLabel(); }if (this.axisX2 && 0 < this.axisX2.length) for (l = 0; l < this.axisX2.length; l++) { this.axisX2[l].crosshair && this.axisX2[l].crosshair.enabled && this.axisX2[l].crosshair.renderLabel(); }if (this.axisY && 0 < this.axisY.length) for (l = 0; l < this.axisY.length; l++) { this.axisY[l].crosshair && this.axisY[l].crosshair.enabled && this.axisY[l].crosshair.renderLabel(); }if (this.axisY2 && 0 < this.axisY2.length) for (l = 0; l < this.axisY2.length; l++) { this.axisY2[l].crosshair && this.axisY2[l].crosshair.enabled && this.axisY2[l].crosshair.renderLabel(); } } };n.prototype._plotAreaMouseMove = function (a, d) { if (this.isDrag && "none" !== this.plotInfo.axisPlacement) { var c = 0, b = 0, e = c = null, e = 0 <= this.zoomType.indexOf("x"), f = 0 <= this.zoomType.indexOf("y"), l = this;"xySwapped" === this.plotInfo.axisPlacement && (c = f, f = e, e = c);c = this.dragStartPoint.x - a;b = this.dragStartPoint.y - d;if (2 < Math.abs(c) && 8 > Math.abs(c) && (this.panEnabled || this.zoomEnabled)) { this.toolTip.hide();this.toolTip && this.toolTip.enabled && this.toolTip.dispatchEvent("hidden", { chart: this, toolTip: this.toolTip }, this.toolTip);for (var s = 0; s < this.axisX.length; s++) { this.axisX[s].crosshair && this.axisX[s].crosshair.enabled && (this.axisX[s].crosshair.hide(), this.axisX[s].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisX[s].options }, this.axisX[s].crosshair)); }for (s = 0; s < this.axisX2.length; s++) { this.axisX2[s].crosshair && this.axisX2[s].crosshair.enabled && (this.axisX2[s].crosshair.hide(), this.axisX2[s].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisX2[s].options }, this.axisX2[s].crosshair)); }for (s = 0; s < this.axisY.length; s++) { this.axisY[s].crosshair && this.axisY[s].crosshair.enabled && (this.axisY[s].crosshair.hide(), this.axisY[s].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisY[s].options }, this.axisY[s].crosshair)); }for (s = 0; s < this.axisY2.length; s++) { this.axisY2[s].crosshair && this.axisY2[s].crosshair.enabled && (this.axisY2[s].crosshair.hide(), this.axisY2[s].crosshair.dispatchEvent("hidden", { chart: this, axis: this.axisY2[s].options }, this.axisY2[s].crosshair)); } } else this.panEnabled || this.zoomEnabled || this.toolTip.mouseMoveHandler(a, d);if ((!e || 2 < Math.abs(c) || !f || 2 < Math.abs(b)) && (this.panEnabled || this.zoomEnabled)) if (this.panEnabled) e = { x1: e ? this.plotArea.x1 + c : this.plotArea.x1, y1: f ? this.plotArea.y1 + b : this.plotArea.y1, x2: e ? this.plotArea.x2 + c : this.plotArea.x2, y2: f ? this.plotArea.y2 + b : this.plotArea.y2 }, clearTimeout(l._panTimerId), l._panTimerId = setTimeout(function (b, c, e, f) { return function () { l._zoomPanToSelectedRegion(b, c, e, f, !0) && (l._dispatchRangeEvent("rangeChanging", "pan"), l.stockChart && l.stockChart.navigator && l.stockChart.navigator.enabled && (l.stockChart._rangeEventParameter.type = "rangeChanging", l.stockChart.dispatchEvent("rangeChanging", l.stockChart._rangeEventParameter, l.stockChart)), l.render(), l._dispatchRangeEvent("rangeChanged", "pan"), l.stockChart && l.stockChart.navigator && l.stockChart.navigator.enabled && (l.stockChart._rangeEventParameter.type = "rangeChanged", l.stockChart.dispatchEvent("rangeChanged", l.stockChart._rangeEventParameter, l.stockChart)), l.dragStartPoint.x = a, l.dragStartPoint.y = d); }; }(e.x1, e.y1, e.x2, e.y2), 0);else if (this.zoomEnabled) { this.resetOverlayedCanvas();c = this.overlaidCanvasCtx.globalAlpha;this.overlaidCanvasCtx.fillStyle = "#A89896";var b = e ? this.dragStartPoint.x : this.plotArea.x1, s = f ? this.dragStartPoint.y : this.plotArea.y1, B = e ? a - this.dragStartPoint.x : this.plotArea.x2 - this.plotArea.x1, k = f ? d - this.dragStartPoint.y : this.plotArea.y2 - this.plotArea.y1;this.validateRegion(b, s, e ? a : this.plotArea.x2 - this.plotArea.x1, f ? d : this.plotArea.y2 - this.plotArea.y1, "xy" !== this.zoomType).isValid && (this.resetOverlayedCanvas(), this.overlaidCanvasCtx.fillStyle = "#99B2B5");this.overlaidCanvasCtx.globalAlpha = 0.7;this.overlaidCanvasCtx.fillRect(b, s, B, k);this.overlaidCanvasCtx.globalAlpha = c; } } else if (this.toolTip.mouseMoveHandler(a, d), "none" !== this.plotInfo.axisPlacement) { if (this.axisX && 0 < this.axisX.length) for (e = 0; e < this.axisX.length; e++) { this.axisX[e].crosshair && this.axisX[e].crosshair.enabled && this.axisX[e].renderCrosshair(a, d); }if (this.axisX2 && 0 < this.axisX2.length) for (e = 0; e < this.axisX2.length; e++) { this.axisX2[e].crosshair && this.axisX2[e].crosshair.enabled && this.axisX2[e].renderCrosshair(a, d); }if (this.axisY && 0 < this.axisY.length) for (e = 0; e < this.axisY.length; e++) { this.axisY[e].crosshair && this.axisY[e].crosshair.enabled && this.axisY[e].renderCrosshair(a, d); }if (this.axisY2 && 0 < this.axisY2.length) for (e = 0; e < this.axisY2.length; e++) { this.axisY2[e].crosshair && this.axisY2[e].crosshair.enabled && this.axisY2[e].renderCrosshair(a, d); }if (this.axisX && 0 < this.axisX.length) for (e = 0; e < this.axisX.length; e++) { this.axisX[e].crosshair && this.axisX[e].crosshair.enabled && this.axisX[e].crosshair.renderLabel(); }if (this.axisX2 && 0 < this.axisX2.length) for (e = 0; e < this.axisX2.length; e++) { this.axisX2[e].crosshair && this.axisX2[e].crosshair.enabled && this.axisX2[e].crosshair.renderLabel(); }if (this.axisY && 0 < this.axisY.length) for (e = 0; e < this.axisY.length; e++) { this.axisY[e].crosshair && this.axisY[e].crosshair.enabled && this.axisY[e].crosshair.renderLabel(); }if (this.axisY2 && 0 < this.axisY2.length) for (e = 0; e < this.axisY2.length; e++) { this.axisY2[e].crosshair && this.axisY2[e].crosshair.enabled && this.axisY2[e].crosshair.renderLabel(); } } };n.prototype._zoomPanToSelectedRegion = function (a, d, c, b, e) { a = this.validateRegion(a, d, c, b, e);d = a.axesWithValidRange;c = a.axesRanges;if (a.isValid) for (b = 0; b < d.length; b++) { e = c[b], d[b].setViewPortRange(e.val1, e.val2), this.syncCharts && "y" != this.zoomType && this.syncCharts(e.val1, e.val2), this.stockChart && (this.stockChart._rangeEventParameter = { stockChart: this.stockChart, source: "chart", index: this.stockChart.charts.indexOf(this), minimum: e.val1, maximum: e.val2 }); }return a.isValid; };n.prototype.validateRegion = function (a, d, c, b, e) { e = e || !1;for (var f = 0 <= this.zoomType.indexOf("x"), l = 0 <= this.zoomType.indexOf("y"), s = !1, B = [], k = [], m = [], p = 0; p < this._axes.length; p++) { ("axisX" === this._axes[p].type && f || "axisY" === this._axes[p].type && l) && k.push(this._axes[p]); }for (l = 0; l < k.length; l++) { var p = k[l], f = !1, r = p.convertPixelToValue({ x: a, y: d }), g = p.convertPixelToValue({ x: c, y: b });if (r > g) var u = g, g = r, r = u;if (p.scaleBreaks) for (u = 0; !f && u < p.scaleBreaks._appliedBreaks.length; u++) { f = p.scaleBreaks._appliedBreaks[u].startValue <= r && p.scaleBreaks._appliedBreaks[u].endValue >= g; }if (isFinite(p.dataInfo.minDiff)) if (u = p.getApparentDifference(r, g, null, !0), !(f || !(this.panEnabled && p.scaleBreaks && p.scaleBreaks._appliedBreaks.length) && (p.logarithmic && u < Math.pow(p.dataInfo.minDiff, 3) || !p.logarithmic && u < 3 * Math.abs(p.dataInfo.minDiff)) || r < p.minimum || g > p.maximum)) B.push(p), m.push({ val1: r, val2: g }), s = !0;else if (!e) { s = !1;break; } }return { isValid: s, axesWithValidRange: B, axesRanges: m }; };n.prototype.preparePlotArea = function () { var a = this.plotArea;!v && (0 < a.x1 || 0 < a.y1) && a.ctx.translate(a.x1, a.y1);if ((this.axisX[0] || this.axisX2[0]) && (this.axisY[0] || this.axisY2[0])) { var d = this.axisX[0] ? this.axisX[0].lineCoordinates : this.axisX2[0].lineCoordinates; if (this.axisY && 0 < this.axisY.length && this.axisY[0]) { var c = this.axisY[0];a.x1 = d.x1 < d.x2 ? d.x1 : c.lineCoordinates.x1;a.y1 = d.y1 < c.lineCoordinates.y1 ? d.y1 : c.lineCoordinates.y1;a.x2 = d.x2 > c.lineCoordinates.x2 ? d.x2 : c.lineCoordinates.x2;a.y2 = d.y2 > d.y1 ? d.y2 : c.lineCoordinates.y2;a.width = a.x2 - a.x1;a.height = a.y2 - a.y1; }this.axisY2 && 0 < this.axisY2.length && this.axisY2[0] && (c = this.axisY2[0], a.x1 = d.x1 < d.x2 ? d.x1 : c.lineCoordinates.x1, a.y1 = d.y1 < c.lineCoordinates.y1 ? d.y1 : c.lineCoordinates.y1, a.x2 = d.x2 > c.lineCoordinates.x2 ? d.x2 : c.lineCoordinates.x2, a.y2 = d.y2 > d.y1 ? d.y2 : c.lineCoordinates.y2, a.width = a.x2 - a.x1, a.height = a.y2 - a.y1); } else d = this.layoutManager.getFreeSpace(), a.x1 = d.x1, a.x2 = d.x2, a.y1 = d.y1, a.y2 = d.y2, a.width = d.width, a.height = d.height;v || (a.canvas.width = a.width, a.canvas.height = a.height, a.canvas.style.left = a.x1 + "px", a.canvas.style.top = a.y1 + "px", (0 < a.x1 || 0 < a.y1) && a.ctx.translate(-a.x1, -a.y1));a.layoutManager = new Da(a.x1, a.y1, a.x2, a.y2, 2); };n.prototype.renderIndexLabels = function (a) { var d = a || this.plotArea.ctx, c = this.plotArea, b = 0, e = 0, f = 0, l = f = e = 0, s = 0, B = b = 0, k = 0;for (a = 0; a < this._indexLabels.length; a++) { var m = this._indexLabels[a], p = m.chartType.toLowerCase(), r, g, l = na("indexLabelFontColor", m.dataPoint, m.dataSeries), u = na("indexLabelFontSize", m.dataPoint, m.dataSeries), s = na("indexLabelFontFamily", m.dataPoint, m.dataSeries), B = na("indexLabelFontStyle", m.dataPoint, m.dataSeries), k = na("indexLabelFontWeight", m.dataPoint, m.dataSeries), h = na("indexLabelBackgroundColor", m.dataPoint, m.dataSeries);r = na("indexLabelMaxWidth", m.dataPoint, m.dataSeries); g = na("indexLabelWrap", m.dataPoint, m.dataSeries);var F = na("indexLabelLineDashType", m.dataPoint, m.dataSeries), t = na("indexLabelLineColor", m.dataPoint, m.dataSeries), x = q(m.dataPoint.indexLabelLineThickness) ? q(m.dataSeries.options.indexLabelLineThickness) ? 0 : m.dataSeries.options.indexLabelLineThickness : m.dataPoint.indexLabelLineThickness, b = 0 < x ? Math.min(10, ("normal" === this.plotInfo.axisPlacement ? this.plotArea.height : this.plotArea.width) << 0) : 0, n = { percent: null, total: null }, C = null;if (0 <= m.dataSeries.type.indexOf("stacked") || "pie" === m.dataSeries.type || "doughnut" === m.dataSeries.type) n = this.getPercentAndTotal(m.dataSeries, m.dataPoint);if (m.dataSeries.indexLabelFormatter || m.dataPoint.indexLabelFormatter) C = { chart: this, dataSeries: m.dataSeries, dataPoint: m.dataPoint, index: m.indexKeyword, total: n.total, percent: n.percent };var D = m.dataPoint.indexLabelFormatter ? m.dataPoint.indexLabelFormatter(C) : m.dataPoint.indexLabel ? this.replaceKeywordsWithValue(m.dataPoint.indexLabel, m.dataPoint, m.dataSeries, null, m.indexKeyword) : m.dataSeries.indexLabelFormatter ? m.dataSeries.indexLabelFormatter(C) : m.dataSeries.indexLabel ? this.replaceKeywordsWithValue(m.dataSeries.indexLabel, m.dataPoint, m.dataSeries, null, m.indexKeyword) : null;if (null !== D && "" !== D) { var n = na("indexLabelPlacement", m.dataPoint, m.dataSeries), C = na("indexLabelOrientation", m.dataPoint, m.dataSeries), A = na("indexLabelTextAlign", m.dataPoint, m.dataSeries), w = m.direction, e = m.dataSeries.axisX, f = m.dataSeries.axisY, z = !1, h = new ia(d, { x: 0, y: 0, maxWidth: r ? r : 0.5 * this.width, maxHeight: g ? 5 * u : 1.5 * u, angle: "horizontal" === C ? 0 : -90, text: D, padding: 0, backgroundColor: h, textAlign: A, fontSize: u, fontFamily: s, fontWeight: k, fontColor: l, fontStyle: B, textBaseline: "middle" });h.measureText();m.dataSeries.indexLabelMaxWidth = h.maxWidth;if ("stackedarea100" === p) { if (m.point.x < c.x1 || m.point.x > c.x2 || m.point.y < c.y1 - 1 || m.point.y > c.y2 + 1) continue; } else if ("rangearea" === p || "rangesplinearea" === p) { if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum || Math.max.apply(null, m.dataPoint.y) < f.viewportMinimum || Math.min.apply(null, m.dataPoint.y) > f.viewportMaximum) continue; } else if (0 <= p.indexOf("line") || 0 <= p.indexOf("area") || 0 <= p.indexOf("bubble") || 0 <= p.indexOf("scatter")) { if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum || m.dataPoint.y < f.viewportMinimum || m.dataPoint.y > f.viewportMaximum) continue; } else if (0 <= p.indexOf("column") || "waterfall" === p || "error" === p && !m.axisSwapped) { if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum || m.bounds.y1 > c.y2 || m.bounds.y2 < c.y1) continue; } else if (0 <= p.indexOf("bar") || "error" === p) { if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum || m.bounds.x1 > c.x2 || m.bounds.x2 < c.x1) continue; } else if ("candlestick" === p || "ohlc" === p) { if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum || Math.max.apply(null, m.dataPoint.y) < f.viewportMinimum || Math.min.apply(null, m.dataPoint.y) > f.viewportMaximum) continue; } else if (m.dataPoint.x < e.viewportMinimum || m.dataPoint.x > e.viewportMaximum) continue;l = s = 2;"horizontal" === C ? (B = h.width, k = h.height) : (k = h.width, B = h.height);if ("normal" === this.plotInfo.axisPlacement) { if (0 <= p.indexOf("line") || 0 <= p.indexOf("area")) n = "auto", s = 4;else if (0 <= p.indexOf("stacked")) "auto" === n && (n = "inside");else if ("bubble" === p || "scatter" === p) n = "inside";r = m.point.x - ("horizontal" === C ? B / 2 : B / 2 - u / 2);"inside" !== n ? (e = c.y1, f = c.y2, 0 < w ? (g = m.point.y + ("horizontal" === C ? u / 2 : 0) - k - s - b, g < e && (g = "auto" === n ? Math.max(m.point.y, e) + u / 2 + s : e + u / 2 + s, z = g + k > m.point.y)) : (g = m.point.y + u / 2 + s + b, g > f - k && (g = "auto" === n ? Math.min(m.point.y, f) + u / 2 - k - s : f + u / 2 - k, z = g < m.point.y))) : (e = Math.max(m.bounds.y1, c.y1), f = Math.min(m.bounds.y2, c.y2 - k + u / 2), b = 0 <= p.indexOf("range") || "error" === p ? 0 < w ? Math.max(m.bounds.y1, c.y1) + u / 2 + s : Math.min(m.bounds.y2, c.y2) + u / 2 - k + s : (Math.max(m.bounds.y1, c.y1) + Math.min(m.bounds.y2, c.y2)) / 2 - k / 2 + u / 2 + ("horizontal" === C ? s : 0), 0 < w ? (g = Math.max(m.point.y, b), g < e && ("bubble" === p || "scatter" === p) && (g = Math.max(m.point.y - k - s, c.y1 + s))) : (g = Math.min(m.point.y, b), g > f - k - s && ("bubble" === p || "scatter" === p) && (g = Math.min(m.point.y + s, c.y2 - k - s))), g = Math.min(g, f)); } else 0 <= p.indexOf("line") || 0 <= p.indexOf("area") || 0 <= p.indexOf("scatter") ? (n = "auto", l = 4) : 0 <= p.indexOf("stacked") ? "auto" === n && (n = "inside") : "bubble" === p && (n = "inside"), g = m.point.y + u / 2 - k / 2 + s, "inside" !== n ? (e = c.x1, f = c.x2, 0 > w ? (r = m.point.x - ("horizontal" === C ? B : B - u / 2) - l - b, r < e && (r = "auto" === n ? Math.max(m.point.x, e) + l : e + l, z = r + B > m.point.x)) : (r = m.point.x + ("horizontal" === C ? 0 : u / 2) + l + b, r > f - B - l - b && (r = "auto" === n ? Math.min(m.point.x, f) - ("horizontal" === C ? B : B / 2) - l : f - B - l, z = r < m.point.x))) : (e = Math.max(m.bounds.x1, c.x1), Math.min(m.bounds.x2, c.x2), b = 0 <= p.indexOf("range") || "error" === p ? 0 > w ? Math.max(m.bounds.x1, c.x1) + u / 2 + l : Math.min(m.bounds.x2, c.x2) - B / 2 - l + ("horizontal" === C ? 0 : u / 2) : (Math.max(m.bounds.x1, c.x1) + Math.min(m.bounds.x2, c.x2)) / 2 + ("horizontal" === C ? 0 : u / 2), r = 0 > w ? Math.max(m.point.x, b) - ("horizontal" === C ? B / 2 : 0) : Math.min(m.point.x, b) - B / 2, r = Math.max(r, e));"vertical" === C && (g += k - u / 2);h.x = r;h.y = g;h.render(!0);x && "inside" !== n && (0 > p.indexOf("bar") && ("error" !== p || !m.axisSwapped) && m.point.x > c.x1 && m.point.x < c.x2 || !z) && (0 > p.indexOf("column") && ("error" !== p || m.axisSwapped) && m.point.y > c.y1 && m.point.y < c.y2 || !z) && (d.lineWidth = x, d.strokeStyle = t ? t : "gray", d.setLineDash && d.setLineDash(I(F, x)), d.beginPath(), d.moveTo(m.point.x, m.point.y), 0 <= p.indexOf("bar") || "error" === p && m.axisSwapped ? d.lineTo(r + (0 < m.direction ? -l : B + l) + ("vertical" === C ? -u / 2 : 0), g + ("vertical" === C ? -k / 2 : k / 2 - u / 2) - s) : 0 <= p.indexOf("column") || "error" === p && !m.axisSwapped ? d.lineTo(r + B / 2 - ("horizontal" === C ? 0 : u / 2), g + ("vertical" === C ? (g - k < m.point.y ? 0 : -k) + s : (g - u / 2 < m.point.y ? k : 0) - u / 2)) : d.lineTo(r + B / 2 - ("horizontal" === C ? 0 : u / 2), g + ("vertical" === C ? g - k < m.point.y ? 0 : -k : (g - u / 2 < m.point.y ? k : 0) - u / 2)), d.stroke()); } }d = { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0, startTimePercent: 0.7 };for (a = 0; a < this._indexLabels.length; a++) { m = this._indexLabels[a], h = na("indexLabelBackgroundColor", m.dataPoint, m.dataSeries), m.dataSeries.indexLabelBackgroundColor = q(h) ? v ? "transparent" : null : h; }return d; };n.prototype.renderLine = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = this._eventManager.ghostCtx;c.save();var e = this.plotArea;c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();for (var f = [], l, s = 0; s < a.dataSeriesIndexes.length; s++) { var B = a.dataSeriesIndexes[s], k = this.data[B];c.lineWidth = k.lineThickness;var m = k.dataPoints, p = "solid";if (c.setLineDash) { var r = I(k.nullDataLineDashType, k.lineThickness), p = k.lineDashType, g = I(p, k.lineThickness);c.setLineDash(g); }var u = k.id;this._eventManager.objectMap[u] = { objectType: "dataSeries", dataSeriesIndex: B };u = V(u);b.strokeStyle = u;b.lineWidth = 0 < k.lineThickness ? Math.max(k.lineThickness, 4) : 0;var u = k._colorSet, h = u = k.lineColor = k.options.lineColor ? k.options.lineColor : u[0];c.strokeStyle = u;var q = !0, t = 0, x, n;c.beginPath();if (0 < m.length) { for (var C = !1, t = 0; t < m.length; t++) { if (x = m[t].x.getTime ? m[t].x.getTime() : m[t].x, !(x < a.axisX.dataInfo.viewPortMin || x > a.axisX.dataInfo.viewPortMax && (!k.connectNullData || !C))) if ("number" !== typeof m[t].y) 0 < t && !(k.connectNullData || C || q) && (c.stroke(), v && b.stroke()), C = !0;else { x = a.axisX.convertValueToPixel(x);n = a.axisY.convertValueToPixel(m[t].y);var D = k.dataPointIds[t];this._eventManager.objectMap[D] = { id: D, objectType: "dataPoint", dataSeriesIndex: B, dataPointIndex: t, x1: x, y1: n };q || C ? (!q && k.connectNullData ? (c.setLineDash && (k.options.nullDataLineDashType || p === k.lineDashType && k.lineDashType !== k.nullDataLineDashType) && (c.stroke(), c.beginPath(), c.moveTo(l.x, l.y), p = k.nullDataLineDashType, c.setLineDash(r)), c.lineTo(x, n), v && b.lineTo(x, n)) : (c.beginPath(), c.moveTo(x, n), v && (b.beginPath(), b.moveTo(x, n))), C = q = !1) : (c.lineTo(x, n), v && b.lineTo(x, n), 0 == t % 500 && (c.stroke(), c.beginPath(), c.moveTo(x, n), v && (b.stroke(), b.beginPath(), b.moveTo(x, n))));l = { x: x, y: n };t < m.length - 1 && (h !== (m[t].lineColor || u) || p !== (m[t].lineDashType || k.lineDashType)) && (c.stroke(), c.beginPath(), c.moveTo(x, n), h = m[t].lineColor || u, c.strokeStyle = h, c.setLineDash && (m[t].lineDashType ? (p = m[t].lineDashType, c.setLineDash(I(p, k.lineThickness))) : (p = k.lineDashType, c.setLineDash(g))));if (0 < m[t].markerSize || 0 < k.markerSize) { var A = k.getMarkerProperties(t, x, n, c);f.push(A);D = V(D);v && f.push({ x: x, y: n, ctx: b, type: A.type, size: A.size, color: D, borderColor: D, borderThickness: A.borderThickness }); }(m[t].indexLabel || k.indexLabel || m[t].indexLabelFormatter || k.indexLabelFormatter) && this._indexLabels.push({ chartType: "line", dataPoint: m[t], dataSeries: k, point: { x: x, y: n }, direction: 0 > m[t].y === a.axisY.reversed ? 1 : -1, color: u }); } }c.stroke();v && b.stroke(); } }Y.drawMarkers(f);v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), b.beginPath());c.restore();c.beginPath();return { source: d, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderStepLine = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = this._eventManager.ghostCtx;c.save();var e = this.plotArea;c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();for (var f = [], l, s = 0; s < a.dataSeriesIndexes.length; s++) { var B = a.dataSeriesIndexes[s], k = this.data[B];c.lineWidth = k.lineThickness;var m = k.dataPoints, p = "solid";if (c.setLineDash) { var r = I(k.nullDataLineDashType, k.lineThickness), p = k.lineDashType, g = I(p, k.lineThickness);c.setLineDash(g); }var u = k.id;this._eventManager.objectMap[u] = { objectType: "dataSeries", dataSeriesIndex: B };u = V(u);b.strokeStyle = u;b.lineWidth = 0 < k.lineThickness ? Math.max(k.lineThickness, 4) : 0;var u = k._colorSet, h = u = k.lineColor = k.options.lineColor ? k.options.lineColor : u[0];c.strokeStyle = u;var q = !0, t = 0, x, n;c.beginPath();if (0 < m.length) { for (var C = !1, t = 0; t < m.length; t++) { if (x = m[t].getTime ? m[t].x.getTime() : m[t].x, !(x < a.axisX.dataInfo.viewPortMin || x > a.axisX.dataInfo.viewPortMax && (!k.connectNullData || !C))) if ("number" !== typeof m[t].y) 0 < t && !(k.connectNullData || C || q) && (c.stroke(), v && b.stroke()), C = !0;else { var D = n;x = a.axisX.convertValueToPixel(x);n = a.axisY.convertValueToPixel(m[t].y);var A = k.dataPointIds[t];this._eventManager.objectMap[A] = { id: A, objectType: "dataPoint", dataSeriesIndex: B, dataPointIndex: t, x1: x, y1: n };q || C ? (!q && k.connectNullData ? (c.setLineDash && (k.options.nullDataLineDashType || p === k.lineDashType && k.lineDashType !== k.nullDataLineDashType) && (c.stroke(), c.beginPath(), c.moveTo(l.x, l.y), p = k.nullDataLineDashType, c.setLineDash(r)), c.lineTo(x, D), c.lineTo(x, n), v && (b.lineTo(x, D), b.lineTo(x, n))) : (c.beginPath(), c.moveTo(x, n), v && (b.beginPath(), b.moveTo(x, n))), C = q = !1) : (c.lineTo(x, D), v && b.lineTo(x, D), c.lineTo(x, n), v && b.lineTo(x, n), 0 == t % 500 && (c.stroke(), c.beginPath(), c.moveTo(x, n), v && (b.stroke(), b.beginPath(), b.moveTo(x, n))));l = { x: x, y: n };t < m.length - 1 && (h !== (m[t].lineColor || u) || p !== (m[t].lineDashType || k.lineDashType)) && (c.stroke(), c.beginPath(), c.moveTo(x, n), h = m[t].lineColor || u, c.strokeStyle = h, c.setLineDash && (m[t].lineDashType ? (p = m[t].lineDashType, c.setLineDash(I(p, k.lineThickness))) : (p = k.lineDashType, c.setLineDash(g))));if (0 < m[t].markerSize || 0 < k.markerSize) D = k.getMarkerProperties(t, x, n, c), f.push(D), A = V(A), v && f.push({ x: x, y: n, ctx: b, type: D.type, size: D.size, color: A, borderColor: A, borderThickness: D.borderThickness });(m[t].indexLabel || k.indexLabel || m[t].indexLabelFormatter || k.indexLabelFormatter) && this._indexLabels.push({ chartType: "stepLine", dataPoint: m[t], dataSeries: k, point: { x: x, y: n }, direction: 0 > m[t].y === a.axisY.reversed ? 1 : -1, color: u }); } }c.stroke(); v && b.stroke(); } }Y.drawMarkers(f);v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), b.beginPath());c.restore();c.beginPath();return { source: d, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderSpline = function (a) { function d(a) { a = w(a, 2);if (0 < a.length) { b.beginPath();v && e.beginPath();b.moveTo(a[0].x, a[0].y);a[0].newStrokeStyle && (b.strokeStyle = a[0].newStrokeStyle);a[0].newLineDashArray && b.setLineDash(a[0].newLineDashArray);v && e.moveTo(a[0].x, a[0].y);for (var c = 0; c < a.length - 3; c += 3) { if (b.bezierCurveTo(a[c + 1].x, a[c + 1].y, a[c + 2].x, a[c + 2].y, a[c + 3].x, a[c + 3].y), v && e.bezierCurveTo(a[c + 1].x, a[c + 1].y, a[c + 2].x, a[c + 2].y, a[c + 3].x, a[c + 3].y), 0 < c && 0 === c % 3E3 || a[c + 3].newStrokeStyle || a[c + 3].newLineDashArray) b.stroke(), b.beginPath(), b.moveTo(a[c + 3].x, a[c + 3].y), a[c + 3].newStrokeStyle && (b.strokeStyle = a[c + 3].newStrokeStyle), a[c + 3].newLineDashArray && b.setLineDash(a[c + 3].newLineDashArray), v && (e.stroke(), e.beginPath(), e.moveTo(a[c + 3].x, a[c + 3].y)); }b.stroke();v && e.stroke(); } }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = this._eventManager.ghostCtx;b.save(); var f = this.plotArea;b.beginPath();b.rect(f.x1, f.y1, f.width, f.height);b.clip();for (var l = [], s = 0; s < a.dataSeriesIndexes.length; s++) { var B = a.dataSeriesIndexes[s], k = this.data[B];b.lineWidth = k.lineThickness;var m = k.dataPoints, p = "solid";if (b.setLineDash) { var r = I(k.nullDataLineDashType, k.lineThickness), p = k.lineDashType, g = I(p, k.lineThickness);b.setLineDash(g); }var u = k.id;this._eventManager.objectMap[u] = { objectType: "dataSeries", dataSeriesIndex: B };u = V(u);e.strokeStyle = u;e.lineWidth = 0 < k.lineThickness ? Math.max(k.lineThickness, 4) : 0;var u = k._colorSet, h = u = k.lineColor = k.options.lineColor ? k.options.lineColor : u[0];b.strokeStyle = u;var q = 0, t, n, y = [];b.beginPath();if (0 < m.length) for (n = !1, q = 0; q < m.length; q++) { if (t = m[q].getTime ? m[q].x.getTime() : m[q].x, !(t < a.axisX.dataInfo.viewPortMin || t > a.axisX.dataInfo.viewPortMax && (!k.connectNullData || !n))) if ("number" !== typeof m[q].y) 0 < q && !n && (k.connectNullData ? b.setLineDash && 0 < y.length && (k.options.nullDataLineDashType || !m[q - 1].lineDashType) && (y[y.length - 1].newLineDashArray = r, p = k.nullDataLineDashType) : (d(y), y = [])), n = !0;else { t = a.axisX.convertValueToPixel(t);n = a.axisY.convertValueToPixel(m[q].y);var C = k.dataPointIds[q];this._eventManager.objectMap[C] = { id: C, objectType: "dataPoint", dataSeriesIndex: B, dataPointIndex: q, x1: t, y1: n };y[y.length] = { x: t, y: n };q < m.length - 1 && (h !== (m[q].lineColor || u) || p !== (m[q].lineDashType || k.lineDashType)) && (h = m[q].lineColor || u, y[y.length - 1].newStrokeStyle = h, b.setLineDash && (m[q].lineDashType ? (p = m[q].lineDashType, y[y.length - 1].newLineDashArray = I(p, k.lineThickness)) : (p = k.lineDashType, y[y.length - 1].newLineDashArray = g)));if (0 < m[q].markerSize || 0 < k.markerSize) { var D = k.getMarkerProperties(q, t, n, b);l.push(D);C = V(C);v && l.push({ x: t, y: n, ctx: e, type: D.type, size: D.size, color: C, borderColor: C, borderThickness: D.borderThickness }); }(m[q].indexLabel || k.indexLabel || m[q].indexLabelFormatter || k.indexLabelFormatter) && this._indexLabels.push({ chartType: "spline", dataPoint: m[q], dataSeries: k, point: { x: t, y: n }, direction: 0 > m[q].y === a.axisY.reversed ? 1 : -1, color: u });n = !1; } }d(y); }Y.drawMarkers(l);v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(f.x1, f.y1, f.width, f.height), e.beginPath());b.restore();b.beginPath();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderColumn = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = 0, l, s, B, k = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), f = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1, m = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : Math.min(0.15 * this.width, 0.9 * (this.plotArea.width / a.plotType.totalDataSeries)) << 0, p = a.axisX.dataInfo.minDiff;isFinite(p) || (p = 0.3 * Math.abs(a.axisX.range));p = this.dataPointWidth = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.width * (a.axisX.logarithmic ? Math.log(p) / Math.log(a.axisX.range) : Math.abs(p) / Math.abs(a.axisX.range)) / a.plotType.totalDataSeries) << 0;this.dataPointMaxWidth && f > m && (f = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, m));!this.dataPointMaxWidth && this.dataPointMinWidth && m < f && (m = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, f));p < f && (p = f);p > m && (p = m);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (m = 0; m < a.dataSeriesIndexes.length; m++) { var r = a.dataSeriesIndexes[m], g = this.data[r], u = g.dataPoints;if (0 < u.length) for (var h = 5 < p && g.bevelEnabled ? !0 : !1, f = 0; f < u.length; f++) { if (u[f].getTime ? B = u[f].x.getTime() : B = u[f].x, !(B < a.axisX.dataInfo.viewPortMin || B > a.axisX.dataInfo.viewPortMax) && "number" === typeof u[f].y) { l = a.axisX.convertValueToPixel(B);s = a.axisY.convertValueToPixel(u[f].y);l = a.axisX.reversed ? l + a.plotType.totalDataSeries * p / 2 - (a.previousDataSeriesCount + m) * p << 0 : l - a.plotType.totalDataSeries * p / 2 + (a.previousDataSeriesCount + m) * p << 0;var q = a.axisX.reversed ? l - p << 0 : l + p << 0, t;0 <= u[f].y ? t = k : (t = s, s = k);s > t && (b = s, s = t, t = b);b = u[f].color ? u[f].color : g._colorSet[f % g._colorSet.length];$(c, a.axisX.reversed ? q : l, s, a.axisX.reversed ? l : q, t, b, 0, null, h && (a.axisY.reversed ? 0 > u[f].y : 0 <= u[f].y), (a.axisY.reversed ? 0 <= u[f].y : 0 > u[f].y) && h, !1, !1, g.fillOpacity);b = g.dataPointIds[f];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: r, dataPointIndex: f, x1: l, y1: s, x2: q, y2: t };b = V(b);v && $(this._eventManager.ghostCtx, a.axisX.reversed ? q : l, s, a.axisX.reversed ? l : q, t, b, 0, null, !1, !1, !1, !1);(u[f].indexLabel || g.indexLabel || u[f].indexLabelFormatter || g.indexLabelFormatter) && this._indexLabels.push({ chartType: "column", dataPoint: u[f], dataSeries: g, point: { x: l + (q - l) / 2, y: 0 > u[f].y === a.axisY.reversed ? s : t }, direction: 0 > u[f].y === a.axisY.reversed ? 1 : -1, bounds: { x1: l, y1: Math.min(s, t), x2: q, y2: Math.max(s, t) }, color: b }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.yScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: k < a.axisY.bounds.y1 ? a.axisY.bounds.y1 : k > a.axisY.bounds.y2 ? a.axisY.bounds.y2 : k }; } };n.prototype.renderStackedColumn = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = [], l = [], s = [], B = [], k = 0, m, p, r = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), k = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;m = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.15 * this.width << 0;var g = a.axisX.dataInfo.minDiff;isFinite(g) || (g = 0.3 * Math.abs(a.axisX.range));g = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.width * (a.axisX.logarithmic ? Math.log(g) / Math.log(a.axisX.range) : Math.abs(g) / Math.abs(a.axisX.range)) / a.plotType.plotUnits.length) << 0;this.dataPointMaxWidth && k > m && (k = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, m));!this.dataPointMaxWidth && this.dataPointMinWidth && m < k && (m = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, k));g < k && (g = k);g > m && (g = m);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var u = 0; u < a.dataSeriesIndexes.length; u++) { var h = a.dataSeriesIndexes[u], q = this.data[h], t = q.dataPoints;if (0 < t.length) { var n = 5 < g && q.bevelEnabled ? !0 : !1;c.strokeStyle = "#4572A7 ";for (k = 0; k < t.length; k++) { if (b = t[k].x.getTime ? t[k].x.getTime() : t[k].x, !(b < a.axisX.dataInfo.viewPortMin || b > a.axisX.dataInfo.viewPortMax) && "number" === typeof t[k].y) { m = a.axisX.convertValueToPixel(b);var y = m - a.plotType.plotUnits.length * g / 2 + a.index * g << 0, C = y + g << 0, D;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 < t[k].y) s[b] = t[k].y + (s[b] ? s[b] : 0), 0 < s[b] && (p = a.axisY.convertValueToPixel(s[b]), D = "undefined" !== typeof f[b] ? f[b] : r, f[b] = p);else if (a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 >= t[k].y) B[b] = t[k].y + (B[b] ? B[b] : 0), D = a.axisY.convertValueToPixel(B[b]), p = "undefined" !== typeof l[b] ? l[b] : r, l[b] = D;else if (p = a.axisY.convertValueToPixel(t[k].y), 0 <= t[k].y) { var A = "undefined" !== typeof f[b] ? f[b] : 0;p -= A;D = r - A;f[b] = A + (D - p); } else A = l[b] ? l[b] : 0, D = p + A, p = r + A, l[b] = A + (D - p);b = t[k].color ? t[k].color : q._colorSet[k % q._colorSet.length];$(c, y, a.axisY.reversed ? D : p, C, a.axisY.reversed ? p : D, b, 0, null, n && (a.axisY.reversed ? 0 > t[k].y : 0 <= t[k].y), (a.axisY.reversed ? 0 <= t[k].y : 0 > t[k].y) && n, !1, !1, q.fillOpacity);b = q.dataPointIds[k];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: k, x1: y, y1: p, x2: C, y2: D };b = V(b);v && $(this._eventManager.ghostCtx, y, p, C, D, b, 0, null, !1, !1, !1, !1);(t[k].indexLabel || q.indexLabel || t[k].indexLabelFormatter || q.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedColumn", dataPoint: t[k], dataSeries: q, point: { x: m, y: 0 <= t[k].y ? p : D }, direction: 0 > t[k].y === a.axisY.reversed ? 1 : -1, bounds: { x1: y, y1: Math.min(p, D), x2: C, y2: Math.max(p, D) }, color: b }); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.yScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: r < a.axisY.bounds.y1 ? a.axisY.bounds.y1 : r > a.axisY.bounds.y2 ? a.axisY.bounds.y2 : r }; } };n.prototype.renderStackedColumn100 = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = [], l = [], s = [], B = [], k = 0, m, p, r = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), k = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;m = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.15 * this.width << 0;var g = a.axisX.dataInfo.minDiff;isFinite(g) || (g = 0.3 * Math.abs(a.axisX.range));g = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.width * (a.axisX.logarithmic ? Math.log(g) / Math.log(a.axisX.range) : Math.abs(g) / Math.abs(a.axisX.range)) / a.plotType.plotUnits.length) << 0;this.dataPointMaxWidth && k > m && (k = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, m));!this.dataPointMaxWidth && this.dataPointMinWidth && m < k && (m = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, k));g < k && (g = k);g > m && (g = m);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height); c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var u = 0; u < a.dataSeriesIndexes.length; u++) { var h = a.dataSeriesIndexes[u], q = this.data[h], t = q.dataPoints;if (0 < t.length) for (var n = 5 < g && q.bevelEnabled ? !0 : !1, k = 0; k < t.length; k++) { if (b = t[k].x.getTime ? t[k].x.getTime() : t[k].x, !(b < a.axisX.dataInfo.viewPortMin || b > a.axisX.dataInfo.viewPortMax) && "number" === typeof t[k].y) { m = a.axisX.convertValueToPixel(b);p = 0 !== a.dataPointYSums[b] ? 100 * (t[k].y / a.dataPointYSums[b]) : 0;var y = m - a.plotType.plotUnits.length * g / 2 + a.index * g << 0, C = y + g << 0, D;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 < t[k].y) { s[b] = p + ("undefined" !== typeof s[b] ? s[b] : 0);if (0 >= s[b]) continue;p = a.axisY.convertValueToPixel(s[b]);D = f[b] ? f[b] : r;f[b] = p; } else if (a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 >= t[k].y) B[b] = p + ("undefined" !== typeof B[b] ? B[b] : 0), D = a.axisY.convertValueToPixel(B[b]), p = l[b] ? l[b] : r, l[b] = D;else if (p = a.axisY.convertValueToPixel(p), 0 <= t[k].y) { var A = "undefined" !== typeof f[b] ? f[b] : 0;p -= A;D = r - A;a.dataSeriesIndexes.length - 1 === u && 1 >= Math.abs(e.y1 - p) && (p = e.y1);f[b] = A + (D - p); } else A = "undefined" !== typeof l[b] ? l[b] : 0, D = p + A, p = r + A, a.dataSeriesIndexes.length - 1 === u && 1 >= Math.abs(e.y2 - D) && (D = e.y2), l[b] = A + (D - p);b = t[k].color ? t[k].color : q._colorSet[k % q._colorSet.length];$(c, y, a.axisY.reversed ? D : p, C, a.axisY.reversed ? p : D, b, 0, null, n && (a.axisY.reversed ? 0 > t[k].y : 0 <= t[k].y), (a.axisY.reversed ? 0 <= t[k].y : 0 > t[k].y) && n, !1, !1, q.fillOpacity);b = q.dataPointIds[k];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: k, x1: y, y1: p, x2: C, y2: D };b = V(b);v && $(this._eventManager.ghostCtx, y, p, C, D, b, 0, null, !1, !1, !1, !1);(t[k].indexLabel || q.indexLabel || t[k].indexLabelFormatter || q.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedColumn100", dataPoint: t[k], dataSeries: q, point: { x: m, y: 0 <= t[k].y ? p : D }, direction: 0 > t[k].y === a.axisY.reversed ? 1 : -1, bounds: { x1: y, y1: Math.min(p, D), x2: C, y2: Math.max(p, D) }, color: b }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.yScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: r < a.axisY.bounds.y1 ? a.axisY.bounds.y1 : r > a.axisY.bounds.y2 ? a.axisY.bounds.y2 : r }; } };n.prototype.renderBar = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = 0, l, s, B, k = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), f = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1, m = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : Math.min(0.15 * this.height, 0.9 * (this.plotArea.height / a.plotType.totalDataSeries)) << 0, p = a.axisX.dataInfo.minDiff;isFinite(p) || (p = 0.3 * Math.abs(a.axisX.range));p = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.height * (a.axisX.logarithmic ? Math.log(p) / Math.log(a.axisX.range) : Math.abs(p) / Math.abs(a.axisX.range)) / a.plotType.totalDataSeries) << 0;this.dataPointMaxWidth && f > m && (f = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, m));!this.dataPointMaxWidth && this.dataPointMinWidth && m < f && (m = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, f));p < f && (p = f);p > m && (p = m);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (m = 0; m < a.dataSeriesIndexes.length; m++) { var r = a.dataSeriesIndexes[m], g = this.data[r], u = g.dataPoints;if (0 < u.length) { var h = 5 < p && g.bevelEnabled ? !0 : !1;c.strokeStyle = "#4572A7 ";for (f = 0; f < u.length; f++) { if (u[f].getTime ? B = u[f].x.getTime() : B = u[f].x, !(B < a.axisX.dataInfo.viewPortMin || B > a.axisX.dataInfo.viewPortMax) && "number" === typeof u[f].y) { s = a.axisX.convertValueToPixel(B);l = a.axisY.convertValueToPixel(u[f].y);s = a.axisX.reversed ? s + a.plotType.totalDataSeries * p / 2 - (a.previousDataSeriesCount + m) * p << 0 : s - a.plotType.totalDataSeries * p / 2 + (a.previousDataSeriesCount + m) * p << 0;var q = a.axisX.reversed ? s - p << 0 : s + p << 0, t;0 <= u[f].y ? t = k : (t = l, l = k);b = u[f].color ? u[f].color : g._colorSet[f % g._colorSet.length];$(c, a.axisY.reversed ? l : t, a.axisX.reversed ? q : s, a.axisY.reversed ? t : l, a.axisX.reversed ? s : q, b, 0, null, h, !1, !1, !1, g.fillOpacity);b = g.dataPointIds[f];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: r, dataPointIndex: f, x1: t, y1: s, x2: l, y2: q };b = V(b);v && $(this._eventManager.ghostCtx, t, a.axisX.reversed ? q : s, l, a.axisX.reversed ? s : q, b, 0, null, !1, !1, !1, !1);(u[f].indexLabel || g.indexLabel || u[f].indexLabelFormatter || g.indexLabelFormatter) && this._indexLabels.push({ chartType: "bar", dataPoint: u[f], dataSeries: g, point: { x: 0 <= u[f].y ? l : t, y: s + (q - s) / 2 }, direction: 0 > u[f].y === a.axisY.reversed ? 1 : -1, bounds: { x1: Math.min(t, l), y1: s, x2: Math.max(t, l), y2: q }, color: b }); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.xScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: k < a.axisY.bounds.x1 ? a.axisY.bounds.x1 : k > a.axisY.bounds.x2 ? a.axisY.bounds.x2 : k }; } };n.prototype.renderStackedBar = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = [], l = [], s = [], B = [], k = 0, m, p, r = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), k = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;p = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.15 * this.height << 0;var g = a.axisX.dataInfo.minDiff;isFinite(g) || (g = 0.3 * Math.abs(a.axisX.range));g = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.height * (a.axisX.logarithmic ? Math.log(g) / Math.log(a.axisX.range) : Math.abs(g) / Math.abs(a.axisX.range)) / a.plotType.plotUnits.length) << 0;this.dataPointMaxWidth && k > p && (k = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, p));!this.dataPointMaxWidth && this.dataPointMinWidth && p < k && (p = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, k));g < k && (g = k);g > p && (g = p);c.save();v && this._eventManager.ghostCtx.save();c.beginPath(); c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var u = 0; u < a.dataSeriesIndexes.length; u++) { var h = a.dataSeriesIndexes[u], q = this.data[h], t = q.dataPoints;if (0 < t.length) { var n = 5 < g && q.bevelEnabled ? !0 : !1;c.strokeStyle = "#4572A7 ";for (k = 0; k < t.length; k++) { if (b = t[k].x.getTime ? t[k].x.getTime() : t[k].x, !(b < a.axisX.dataInfo.viewPortMin || b > a.axisX.dataInfo.viewPortMax) && "number" === typeof t[k].y) { p = a.axisX.convertValueToPixel(b);var y = p - a.plotType.plotUnits.length * g / 2 + a.index * g << 0, C = y + g << 0, D;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 < t[k].y) s[b] = t[k].y + (s[b] ? s[b] : 0), 0 < s[b] && (D = f[b] ? f[b] : r, f[b] = m = a.axisY.convertValueToPixel(s[b]));else if (a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 >= t[k].y) B[b] = t[k].y + (B[b] ? B[b] : 0), m = l[b] ? l[b] : r, l[b] = D = a.axisY.convertValueToPixel(B[b]);else if (m = a.axisY.convertValueToPixel(t[k].y), 0 <= t[k].y) { var A = f[b] ? f[b] : 0;D = r + A;m += A;f[b] = A + (m - D); } else A = l[b] ? l[b] : 0, D = m - A, m = r - A, l[b] = A + (m - D);b = t[k].color ? t[k].color : q._colorSet[k % q._colorSet.length];$(c, a.axisY.reversed ? m : D, y, a.axisY.reversed ? D : m, C, b, 0, null, n, !1, !1, !1, q.fillOpacity);b = q.dataPointIds[k];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: k, x1: D, y1: y, x2: m, y2: C };b = V(b);v && $(this._eventManager.ghostCtx, D, y, m, C, b, 0, null, !1, !1, !1, !1);(t[k].indexLabel || q.indexLabel || t[k].indexLabelFormatter || q.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedBar", dataPoint: t[k], dataSeries: q, point: { x: 0 <= t[k].y ? m : D, y: p }, direction: 0 > t[k].y === a.axisY.reversed ? 1 : -1, bounds: { x1: Math.min(D, m), y1: y, x2: Math.max(D, m), y2: C }, color: b }); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.xScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: r < a.axisY.bounds.x1 ? a.axisY.bounds.x1 : r > a.axisY.bounds.x2 ? a.axisY.bounds.x2 : r }; } };n.prototype.renderStackedBar100 = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = [], l = [], s = [], B = [], k = 0, m, p, r = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), k = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;p = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.15 * this.height << 0;var g = a.axisX.dataInfo.minDiff;isFinite(g) || (g = 0.3 * Math.abs(a.axisX.range));g = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.height * (a.axisX.logarithmic ? Math.log(g) / Math.log(a.axisX.range) : Math.abs(g) / Math.abs(a.axisX.range)) / a.plotType.plotUnits.length) << 0;this.dataPointMaxWidth && k > p && (k = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, p));!this.dataPointMaxWidth && this.dataPointMinWidth && p < k && (p = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, k));g < k && (g = k);g > p && (g = p);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var u = 0; u < a.dataSeriesIndexes.length; u++) { var h = a.dataSeriesIndexes[u], q = this.data[h], t = q.dataPoints;if (0 < t.length) { var n = 5 < g && q.bevelEnabled ? !0 : !1;c.strokeStyle = "#4572A7 ";for (k = 0; k < t.length; k++) { if (b = t[k].x.getTime ? t[k].x.getTime() : t[k].x, !(b < a.axisX.dataInfo.viewPortMin || b > a.axisX.dataInfo.viewPortMax) && "number" === typeof t[k].y) { p = a.axisX.convertValueToPixel(b);var y;y = 0 !== a.dataPointYSums[b] ? 100 * (t[k].y / a.dataPointYSums[b]) : 0;var C = p - a.plotType.plotUnits.length * g / 2 + a.index * g << 0, D = C + g << 0;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 < t[k].y) { s[b] = y + (s[b] ? s[b] : 0);if (0 >= s[b]) continue;y = f[b] ? f[b] : r;f[b] = m = a.axisY.convertValueToPixel(s[b]); } else if (a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length && 0 >= t[k].y) B[b] = y + (B[b] ? B[b] : 0), m = l[b] ? l[b] : r, l[b] = y = a.axisY.convertValueToPixel(B[b]);else if (m = a.axisY.convertValueToPixel(y), 0 <= t[k].y) { var A = f[b] ? f[b] : 0;y = r + A;m += A;a.dataSeriesIndexes.length - 1 === u && 1 >= Math.abs(e.x2 - m) && (m = e.x2);f[b] = A + (m - y); } else A = l[b] ? l[b] : 0, y = m - A, m = r - A, a.dataSeriesIndexes.length - 1 === u && 1 >= Math.abs(e.x1 - y) && (y = e.x1), l[b] = A + (m - y);b = t[k].color ? t[k].color : q._colorSet[k % q._colorSet.length];$(c, a.axisY.reversed ? m : y, C, a.axisY.reversed ? y : m, D, b, 0, null, n, !1, !1, !1, q.fillOpacity);b = q.dataPointIds[k];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: k, x1: y, y1: C, x2: m, y2: D };b = V(b);v && $(this._eventManager.ghostCtx, y, C, m, D, b, 0, null, !1, !1, !1, !1);(t[k].indexLabel || q.indexLabel || t[k].indexLabelFormatter || q.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedBar100", dataPoint: t[k], dataSeries: q, point: { x: 0 <= t[k].y ? m : y, y: p }, direction: 0 > t[k].y === a.axisY.reversed ? 1 : -1, bounds: { x1: Math.min(y, m), y1: C, x2: Math.max(y, m), y2: D }, color: b }); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.xScaleAnimation, easingFunction: P.easing.easeOutQuart, animationBase: r < a.axisY.bounds.x1 ? a.axisY.bounds.x1 : r > a.axisY.bounds.x2 ? a.axisY.bounds.x2 : r }; } };n.prototype.renderArea = function (a) { var d, c;function b() { D && (0 < g.lineThickness && f.stroke(), a.axisY.logarithmic || 0 >= a.axisY.viewportMinimum && 0 <= a.axisY.viewportMaximum ? C = y : 0 > a.axisY.viewportMaximum ? C = s.y1 : 0 < a.axisY.viewportMinimum && (C = y), f.lineTo(q, C), f.lineTo(D.x, C), f.closePath(), f.globalAlpha = g.fillOpacity, f.fill(), f.globalAlpha = 1, v && (l.lineTo(q, C), l.lineTo(D.x, C), l.closePath(), l.fill()), f.beginPath(), f.moveTo(q, t), l.beginPath(), l.moveTo(q, t), D = { x: q, y: t }); }var e = a.targetCanvasCtx || this.plotArea.ctx, f = v ? this._preRenderCtx : e;if (!(0 >= a.dataSeriesIndexes.length)) { var l = this._eventManager.ghostCtx, s = a.axisY.lineCoordinates, B = [], k = this.plotArea, m;f.save();v && l.save();f.beginPath();f.rect(k.x1, k.y1, k.width, k.height);f.clip();v && (l.beginPath(), l.rect(k.x1, k.y1, k.width, k.height), l.clip());for (var p = 0; p < a.dataSeriesIndexes.length; p++) { var r = a.dataSeriesIndexes[p], g = this.data[r], u = g.dataPoints, B = g.id;this._eventManager.objectMap[B] = { objectType: "dataSeries", dataSeriesIndex: r };B = V(B);l.fillStyle = B;B = [];d = !0;var h = 0, q, t, n, y = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), C, D = null;if (0 < u.length) { var A = g._colorSet[h % g._colorSet.length], w = g.lineColor = g.options.lineColor || A, z = w;f.fillStyle = A;f.strokeStyle = w;f.lineWidth = g.lineThickness;c = "solid";if (f.setLineDash) { var O = I(g.nullDataLineDashType, g.lineThickness);c = g.lineDashType;var S = I(c, g.lineThickness);f.setLineDash(S); }for (var ja = !0; h < u.length; h++) { if (n = u[h].x.getTime ? u[h].x.getTime() : u[h].x, !(n < a.axisX.dataInfo.viewPortMin || n > a.axisX.dataInfo.viewPortMax && (!g.connectNullData || !ja))) if ("number" !== typeof u[h].y) g.connectNullData || ja || d || b(), ja = !0;else { q = a.axisX.convertValueToPixel(n);t = a.axisY.convertValueToPixel(u[h].y);d || ja ? (!d && g.connectNullData ? (f.setLineDash && (g.options.nullDataLineDashType || c === g.lineDashType && g.lineDashType !== g.nullDataLineDashType) && (d = q, c = t, q = m.x, t = m.y, b(), f.moveTo(m.x, m.y), q = d, t = c, D = m, c = g.nullDataLineDashType, f.setLineDash(O)), f.lineTo(q, t), v && l.lineTo(q, t)) : (f.beginPath(), f.moveTo(q, t), v && (l.beginPath(), l.moveTo(q, t)), D = { x: q, y: t }), ja = d = !1) : (f.lineTo(q, t), v && l.lineTo(q, t), 0 == h % 250 && b());m = { x: q, y: t };h < u.length - 1 && (z !== (u[h].lineColor || w) || c !== (u[h].lineDashType || g.lineDashType)) && (b(), z = u[h].lineColor || w, f.strokeStyle = z, f.setLineDash && (u[h].lineDashType ? (c = u[h].lineDashType, f.setLineDash(I(c, g.lineThickness))) : (c = g.lineDashType, f.setLineDash(S))));var aa = g.dataPointIds[h];this._eventManager.objectMap[aa] = { id: aa, objectType: "dataPoint", dataSeriesIndex: r, dataPointIndex: h, x1: q, y1: t };0 !== u[h].markerSize && (0 < u[h].markerSize || 0 < g.markerSize) && (n = g.getMarkerProperties(h, q, t, f), B.push(n), aa = V(aa), v && B.push({ x: q, y: t, ctx: l, type: n.type, size: n.size, color: aa, borderColor: aa, borderThickness: n.borderThickness }));(u[h].indexLabel || g.indexLabel || u[h].indexLabelFormatter || g.indexLabelFormatter) && this._indexLabels.push({ chartType: "area", dataPoint: u[h], dataSeries: g, point: { x: q, y: t }, direction: 0 > u[h].y === a.axisY.reversed ? 1 : -1, color: A }); } }b();Y.drawMarkers(B); } }v && (e.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), f.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && f.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && f.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), f.clearRect(k.x1, k.y1, k.width, k.height), this._eventManager.ghostCtx.restore());f.restore();return { source: e, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderSplineArea = function (a) { function d() { var c = w(n, 2);if (0 < c.length) { if (0 < m.lineThickness) { b.beginPath();b.moveTo(c[0].x, c[0].y);c[0].newStrokeStyle && (b.strokeStyle = c[0].newStrokeStyle);c[0].newLineDashArray && b.setLineDash(c[0].newLineDashArray);for (var d = 0; d < c.length - 3; d += 3) { if (b.bezierCurveTo(c[d + 1].x, c[d + 1].y, c[d + 2].x, c[d + 2].y, c[d + 3].x, c[d + 3].y), v && e.bezierCurveTo(c[d + 1].x, c[d + 1].y, c[d + 2].x, c[d + 2].y, c[d + 3].x, c[d + 3].y), c[d + 3].newStrokeStyle || c[d + 3].newLineDashArray) b.stroke(), b.beginPath(), b.moveTo(c[d + 3].x, c[d + 3].y), c[d + 3].newStrokeStyle && (b.strokeStyle = c[d + 3].newStrokeStyle), c[d + 3].newLineDashArray && b.setLineDash(c[d + 3].newLineDashArray); }b.stroke(); }b.beginPath();b.moveTo(c[0].x, c[0].y);v && (e.beginPath(), e.moveTo(c[0].x, c[0].y));for (d = 0; d < c.length - 3; d += 3) { b.bezierCurveTo(c[d + 1].x, c[d + 1].y, c[d + 2].x, c[d + 2].y, c[d + 3].x, c[d + 3].y), v && e.bezierCurveTo(c[d + 1].x, c[d + 1].y, c[d + 2].x, c[d + 2].y, c[d + 3].x, c[d + 3].y); }a.axisY.logarithmic || 0 >= a.axisY.viewportMinimum && 0 <= a.axisY.viewportMaximum ? q = h : 0 > a.axisY.viewportMaximum ? q = f.y1 : 0 < a.axisY.viewportMinimum && (q = h);t = { x: c[0].x, y: c[0].y };b.lineTo(c[c.length - 1].x, q);b.lineTo(t.x, q);b.closePath();b.globalAlpha = m.fillOpacity;b.fill();b.globalAlpha = 1;v && (e.lineTo(c[c.length - 1].x, q), e.lineTo(t.x, q), e.closePath(), e.fill()); } }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = this._eventManager.ghostCtx, f = a.axisY.lineCoordinates, l = [], s = this.plotArea;b.save();v && e.save();b.beginPath();b.rect(s.x1, s.y1, s.width, s.height);b.clip();v && (e.beginPath(), e.rect(s.x1, s.y1, s.width, s.height), e.clip());for (var B = 0; B < a.dataSeriesIndexes.length; B++) { var k = a.dataSeriesIndexes[B], m = this.data[k], p = m.dataPoints, l = m.id;this._eventManager.objectMap[l] = { objectType: "dataSeries", dataSeriesIndex: k };l = V(l);e.fillStyle = l;var l = [], r = 0, g, u, h = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), q, t = null, n = [];if (0 < p.length) { var y = m._colorSet[r % m._colorSet.length], C = m.lineColor = m.options.lineColor || y, D = C;b.fillStyle = y;b.strokeStyle = C;b.lineWidth = m.lineThickness;var A = "solid"; if (b.setLineDash) { var z = I(m.nullDataLineDashType, m.lineThickness), A = m.lineDashType, E = I(A, m.lineThickness);b.setLineDash(E); }for (u = !1; r < p.length; r++) { if (g = p[r].x.getTime ? p[r].x.getTime() : p[r].x, !(g < a.axisX.dataInfo.viewPortMin || g > a.axisX.dataInfo.viewPortMax && (!m.connectNullData || !u))) if ("number" !== typeof p[r].y) 0 < r && !u && (m.connectNullData ? b.setLineDash && 0 < n.length && (m.options.nullDataLineDashType || !p[r - 1].lineDashType) && (n[n.length - 1].newLineDashArray = z, A = m.nullDataLineDashType) : (d(), n = [])), u = !0;else { g = a.axisX.convertValueToPixel(g);u = a.axisY.convertValueToPixel(p[r].y);var O = m.dataPointIds[r];this._eventManager.objectMap[O] = { id: O, objectType: "dataPoint", dataSeriesIndex: k, dataPointIndex: r, x1: g, y1: u };n[n.length] = { x: g, y: u };r < p.length - 1 && (D !== (p[r].lineColor || C) || A !== (p[r].lineDashType || m.lineDashType)) && (D = p[r].lineColor || C, n[n.length - 1].newStrokeStyle = D, b.setLineDash && (p[r].lineDashType ? (A = p[r].lineDashType, n[n.length - 1].newLineDashArray = I(A, m.lineThickness)) : (A = m.lineDashType, n[n.length - 1].newLineDashArray = E)));if (0 !== p[r].markerSize && (0 < p[r].markerSize || 0 < m.markerSize)) { var S = m.getMarkerProperties(r, g, u, b);l.push(S);O = V(O);v && l.push({ x: g, y: u, ctx: e, type: S.type, size: S.size, color: O, borderColor: O, borderThickness: S.borderThickness }); }(p[r].indexLabel || m.indexLabel || p[r].indexLabelFormatter || m.indexLabelFormatter) && this._indexLabels.push({ chartType: "splineArea", dataPoint: p[r], dataSeries: m, point: { x: g, y: u }, direction: 0 > p[r].y === a.axisY.reversed ? 1 : -1, color: y });u = !1; } }d();Y.drawMarkers(l); } }v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(s.x1, s.y1, s.width, s.height), this._eventManager.ghostCtx.restore());b.restore();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderStepArea = function (a) { var d, c;function b() { D && (0 < g.lineThickness && f.stroke(), a.axisY.logarithmic || 0 >= a.axisY.viewportMinimum && 0 <= a.axisY.viewportMaximum ? C = y : 0 > a.axisY.viewportMaximum ? C = s.y1 : 0 < a.axisY.viewportMinimum && (C = y), f.lineTo(q, C), f.lineTo(D.x, C), f.closePath(), f.globalAlpha = g.fillOpacity, f.fill(), f.globalAlpha = 1, v && (l.lineTo(q, C), l.lineTo(D.x, C), l.closePath(), l.fill()), f.beginPath(), f.moveTo(q, t), l.beginPath(), l.moveTo(q, t), D = { x: q, y: t }); }var e = a.targetCanvasCtx || this.plotArea.ctx, f = v ? this._preRenderCtx : e;if (!(0 >= a.dataSeriesIndexes.length)) { var l = this._eventManager.ghostCtx, s = a.axisY.lineCoordinates, B = [], k = this.plotArea, m;f.save();v && l.save();f.beginPath();f.rect(k.x1, k.y1, k.width, k.height);f.clip();v && (l.beginPath(), l.rect(k.x1, k.y1, k.width, k.height), l.clip());for (var p = 0; p < a.dataSeriesIndexes.length; p++) { var r = a.dataSeriesIndexes[p], g = this.data[r], u = g.dataPoints, B = g.id;this._eventManager.objectMap[B] = { objectType: "dataSeries", dataSeriesIndex: r };B = V(B);l.fillStyle = B;B = [];d = !0;var h = 0, q, t, n, y = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), C, D = null;c = !1;if (0 < u.length) { var A = g._colorSet[h % g._colorSet.length], w = g.lineColor = g.options.lineColor || A, z = w;f.fillStyle = A;f.strokeStyle = w;f.lineWidth = g.lineThickness;var O = "solid";if (f.setLineDash) { var S = I(g.nullDataLineDashType, g.lineThickness), O = g.lineDashType, E = I(O, g.lineThickness);f.setLineDash(E); }for (; h < u.length; h++) { if (n = u[h].x.getTime ? u[h].x.getTime() : u[h].x, !(n < a.axisX.dataInfo.viewPortMin || n > a.axisX.dataInfo.viewPortMax && (!g.connectNullData || !c))) { var aa = t;"number" !== typeof u[h].y ? (g.connectNullData || c || d || b(), c = !0) : (q = a.axisX.convertValueToPixel(n), t = a.axisY.convertValueToPixel(u[h].y), d || c ? (!d && g.connectNullData ? (f.setLineDash && (g.options.nullDataLineDashType || O === g.lineDashType && g.lineDashType !== g.nullDataLineDashType) && (d = q, c = t, q = m.x, t = m.y, b(), f.moveTo(m.x, m.y), q = d, t = c, D = m, O = g.nullDataLineDashType, f.setLineDash(S)), f.lineTo(q, aa), f.lineTo(q, t), v && (l.lineTo(q, aa), l.lineTo(q, t))) : (f.beginPath(), f.moveTo(q, t), v && (l.beginPath(), l.moveTo(q, t)), D = { x: q, y: t }), c = d = !1) : (f.lineTo(q, aa), v && l.lineTo(q, aa), f.lineTo(q, t), v && l.lineTo(q, t), 0 == h % 250 && b()), m = { x: q, y: t }, h < u.length - 1 && (z !== (u[h].lineColor || w) || O !== (u[h].lineDashType || g.lineDashType)) && (b(), z = u[h].lineColor || w, f.strokeStyle = z, f.setLineDash && (u[h].lineDashType ? (O = u[h].lineDashType, f.setLineDash(I(O, g.lineThickness))) : (O = g.lineDashType, f.setLineDash(E)))), n = g.dataPointIds[h], this._eventManager.objectMap[n] = { id: n, objectType: "dataPoint", dataSeriesIndex: r, dataPointIndex: h, x1: q, y1: t }, 0 !== u[h].markerSize && (0 < u[h].markerSize || 0 < g.markerSize) && (aa = g.getMarkerProperties(h, q, t, f), B.push(aa), n = V(n), v && B.push({ x: q, y: t, ctx: l, type: aa.type, size: aa.size, color: n, borderColor: n, borderThickness: aa.borderThickness })), (u[h].indexLabel || g.indexLabel || u[h].indexLabelFormatter || g.indexLabelFormatter) && this._indexLabels.push({ chartType: "stepArea", dataPoint: u[h], dataSeries: g, point: { x: q, y: t }, direction: 0 > u[h].y === a.axisY.reversed ? 1 : -1, color: A })); } }b();Y.drawMarkers(B); } }v && (e.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), f.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && f.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && f.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), f.clearRect(k.x1, k.y1, k.width, k.height), this._eventManager.ghostCtx.restore());f.restore();return { source: e, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderStackedArea = function (a) { function d() { if (!(1 > k.length)) { for (0 < A.lineThickness && b.stroke(); 0 < k.length;) { var a = k.pop();b.lineTo(a.x, a.y);v && n.lineTo(a.x, a.y); }b.closePath();b.globalAlpha = A.fillOpacity;b.fill();b.globalAlpha = 1;b.beginPath();v && (n.closePath(), n.fill(), n.beginPath());k = []; } }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = null, f = null, l = [], s = this.plotArea, h = [], k = [], m = [], p = [], r = 0, g, u, q = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), n = this._eventManager.ghostCtx, t, x, y;v && n.beginPath();b.save();v && n.save();b.beginPath();b.rect(s.x1, s.y1, s.width, s.height);b.clip();v && (n.beginPath(), n.rect(s.x1, s.y1, s.width, s.height), n.clip());for (var e = [], C = 0; C < a.dataSeriesIndexes.length; C++) { var D = a.dataSeriesIndexes[C], A = this.data[D], w = A.dataPoints;A.dataPointIndexes = [];for (r = 0; r < w.length; r++) { D = w[r].x.getTime ? w[r].x.getTime() : w[r].x, A.dataPointIndexes[D] = r, e[D] || (m.push(D), e[D] = !0); }m.sort(Qa); }for (C = 0; C < a.dataSeriesIndexes.length; C++) { D = a.dataSeriesIndexes[C];A = this.data[D];w = A.dataPoints;x = !0;k = [];r = A.id;this._eventManager.objectMap[r] = { objectType: "dataSeries", dataSeriesIndex: D };r = V(r);n.fillStyle = r;if (0 < m.length) { var e = A._colorSet[0], z = A.lineColor = A.options.lineColor || e, O = z;b.fillStyle = e;b.strokeStyle = z;b.lineWidth = A.lineThickness;y = "solid";if (b.setLineDash) { var S = I(A.nullDataLineDashType, A.lineThickness);y = A.lineDashType;var E = I(y, A.lineThickness); b.setLineDash(E); }for (var aa = !0, r = 0; r < m.length; r++) { var f = m[r], ha = null, ha = 0 <= A.dataPointIndexes[f] ? w[A.dataPointIndexes[f]] : { x: f, y: null };if (!(f < a.axisX.dataInfo.viewPortMin || f > a.axisX.dataInfo.viewPortMax && (!A.connectNullData || !aa))) if ("number" !== typeof ha.y) A.connectNullData || aa || x || d(), aa = !0;else { g = a.axisX.convertValueToPixel(f);var oa = h[f] ? h[f] : 0;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length) { p[f] = ha.y + (p[f] ? p[f] : 0);if (0 >= p[f] && a.axisY.logarithmic) continue; u = a.axisY.convertValueToPixel(p[f]); } else u = a.axisY.convertValueToPixel(ha.y), u -= oa;k.push({ x: g, y: q - oa });h[f] = q - u;x || aa ? (!x && A.connectNullData ? (b.setLineDash && (A.options.nullDataLineDashType || y === A.lineDashType && A.lineDashType !== A.nullDataLineDashType) && (x = k.pop(), y = k[k.length - 1], d(), b.moveTo(t.x, t.y), k.push(y), k.push(x), y = A.nullDataLineDashType, b.setLineDash(S)), b.lineTo(g, u), v && n.lineTo(g, u)) : (b.beginPath(), b.moveTo(g, u), v && (n.beginPath(), n.moveTo(g, u))), aa = x = !1) : (b.lineTo(g, u), v && n.lineTo(g, u), 0 == r % 250 && (d(), b.moveTo(g, u), v && n.moveTo(g, u), k.push({ x: g, y: q - oa })));t = { x: g, y: u };r < w.length - 1 && (O !== (w[r].lineColor || z) || y !== (w[r].lineDashType || A.lineDashType)) && (d(), b.beginPath(), b.moveTo(g, u), k.push({ x: g, y: q - oa }), O = w[r].lineColor || z, b.strokeStyle = O, b.setLineDash && (w[r].lineDashType ? (y = w[r].lineDashType, b.setLineDash(I(y, A.lineThickness))) : (y = A.lineDashType, b.setLineDash(E))));if (0 <= A.dataPointIndexes[f]) { var ka = A.dataPointIds[A.dataPointIndexes[f]];this._eventManager.objectMap[ka] = { id: ka, objectType: "dataPoint", dataSeriesIndex: D, dataPointIndex: A.dataPointIndexes[f], x1: g, y1: u }; }0 <= A.dataPointIndexes[f] && 0 !== ha.markerSize && (0 < ha.markerSize || 0 < A.markerSize) && (oa = A.getMarkerProperties(A.dataPointIndexes[f], g, u, b), l.push(oa), f = V(ka), v && l.push({ x: g, y: u, ctx: n, type: oa.type, size: oa.size, color: f, borderColor: f, borderThickness: oa.borderThickness }));(ha.indexLabel || A.indexLabel || ha.indexLabelFormatter || A.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedArea", dataPoint: ha, dataSeries: A, point: { x: g, y: u }, direction: 0 > w[r].y === a.axisY.reversed ? 1 : -1, color: e }); } }d();b.moveTo(g, u);v && n.moveTo(g, u); }delete A.dataPointIndexes; }Y.drawMarkers(l);v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(s.x1, s.y1, s.width, s.height), n.restore());b.restore();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderStackedArea100 = function (a) { function d() { for (0 < A.lineThickness && b.stroke(); 0 < k.length;) { var a = k.pop();b.lineTo(a.x, a.y);v && y.lineTo(a.x, a.y); }b.closePath();b.globalAlpha = A.fillOpacity;b.fill();b.globalAlpha = 1;b.beginPath();v && (y.closePath(), y.fill(), y.beginPath());k = []; }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = null, f = null, l = this.plotArea, s = [], h = [], k = [], m = [], p = [], r = 0, g, u, q, n, t, x = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), y = this._eventManager.ghostCtx;b.save();v && y.save();b.beginPath();b.rect(l.x1, l.y1, l.width, l.height);b.clip();v && (y.beginPath(), y.rect(l.x1, l.y1, l.width, l.height), y.clip());for (var e = [], C = 0; C < a.dataSeriesIndexes.length; C++) { var D = a.dataSeriesIndexes[C], A = this.data[D], w = A.dataPoints;A.dataPointIndexes = [];for (r = 0; r < w.length; r++) { D = w[r].x.getTime ? w[r].x.getTime() : w[r].x, A.dataPointIndexes[D] = r, e[D] || (m.push(D), e[D] = !0); }m.sort(Qa); }for (C = 0; C < a.dataSeriesIndexes.length; C++) { D = a.dataSeriesIndexes[C];A = this.data[D];w = A.dataPoints;n = !0;e = A.id;this._eventManager.objectMap[e] = { objectType: "dataSeries", dataSeriesIndex: D };e = V(e);y.fillStyle = e;k = [];if (0 < m.length) { var e = A._colorSet[r % A._colorSet.length], z = A.lineColor = A.options.lineColor || e, O = z;b.fillStyle = e;b.strokeStyle = z;b.lineWidth = A.lineThickness;t = "solid"; if (b.setLineDash) { var S = I(A.nullDataLineDashType, A.lineThickness);t = A.lineDashType;var E = I(t, A.lineThickness);b.setLineDash(E); }for (var aa = !0, r = 0; r < m.length; r++) { var f = m[r], ha = null, ha = 0 <= A.dataPointIndexes[f] ? w[A.dataPointIndexes[f]] : { x: f, y: null };if (!(f < a.axisX.dataInfo.viewPortMin || f > a.axisX.dataInfo.viewPortMax && (!A.connectNullData || !aa))) if ("number" !== typeof ha.y) A.connectNullData || aa || n || d(), aa = !0;else { var oa;oa = 0 !== a.dataPointYSums[f] ? 100 * (ha.y / a.dataPointYSums[f]) : 0;g = a.axisX.convertValueToPixel(f); var ka = h[f] ? h[f] : 0;if (a.axisY.logarithmic || a.axisY.scaleBreaks && 0 < a.axisY.scaleBreaks._appliedBreaks.length) { p[f] = oa + (p[f] ? p[f] : 0);if (0 >= p[f] && a.axisY.logarithmic) continue;u = a.axisY.convertValueToPixel(p[f]); } else u = a.axisY.convertValueToPixel(oa), u -= ka;k.push({ x: g, y: x - ka });h[f] = x - u;n || aa ? (!n && A.connectNullData ? (b.setLineDash && (A.options.nullDataLineDashType || t === A.lineDashType && A.lineDashType !== A.nullDataLineDashType) && (n = k.pop(), t = k[k.length - 1], d(), b.moveTo(q.x, q.y), k.push(t), k.push(n), t = A.nullDataLineDashType, b.setLineDash(S)), b.lineTo(g, u), v && y.lineTo(g, u)) : (b.beginPath(), b.moveTo(g, u), v && (y.beginPath(), y.moveTo(g, u))), aa = n = !1) : (b.lineTo(g, u), v && y.lineTo(g, u), 0 == r % 250 && (d(), b.moveTo(g, u), v && y.moveTo(g, u), k.push({ x: g, y: x - ka })));q = { x: g, y: u };r < w.length - 1 && (O !== (w[r].lineColor || z) || t !== (w[r].lineDashType || A.lineDashType)) && (d(), b.beginPath(), b.moveTo(g, u), k.push({ x: g, y: x - ka }), O = w[r].lineColor || z, b.strokeStyle = O, b.setLineDash && (w[r].lineDashType ? (t = w[r].lineDashType, b.setLineDash(I(t, A.lineThickness))) : (t = A.lineDashType, b.setLineDash(E))));if (0 <= A.dataPointIndexes[f]) { var G = A.dataPointIds[A.dataPointIndexes[f]];this._eventManager.objectMap[G] = { id: G, objectType: "dataPoint", dataSeriesIndex: D, dataPointIndex: A.dataPointIndexes[f], x1: g, y1: u }; }0 <= A.dataPointIndexes[f] && 0 !== ha.markerSize && (0 < ha.markerSize || 0 < A.markerSize) && (ka = A.getMarkerProperties(r, g, u, b), s.push(ka), f = V(G), v && s.push({ x: g, y: u, ctx: y, type: ka.type, size: ka.size, color: f, borderColor: f, borderThickness: ka.borderThickness }));(ha.indexLabel || A.indexLabel || ha.indexLabelFormatter || A.indexLabelFormatter) && this._indexLabels.push({ chartType: "stackedArea100", dataPoint: ha, dataSeries: A, point: { x: g, y: u }, direction: 0 > w[r].y === a.axisY.reversed ? 1 : -1, color: e }); } }d();b.moveTo(g, u);v && y.moveTo(g, u); }delete A.dataPointIndexes; }Y.drawMarkers(s);v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(l.x1, l.y1, l.width, l.height), y.restore());b.restore();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderBubble = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = this.plotArea, e = 0, f, l;c.save(); v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(b.x1, b.y1, b.width, b.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(b.x1, b.y1, b.width, b.height), this._eventManager.ghostCtx.clip());for (var s = -Infinity, h = Infinity, k = 0; k < a.dataSeriesIndexes.length; k++) { for (var m = a.dataSeriesIndexes[k], p = this.data[m], r = p.dataPoints, g = 0, e = 0; e < r.length; e++) { f = r[e].getTime ? f = r[e].x.getTime() : f = r[e].x, f < a.axisX.dataInfo.viewPortMin || f > a.axisX.dataInfo.viewPortMax || "undefined" === typeof r[e].z || (g = r[e].z, g > s && (s = g), g < h && (h = g)); } }for (var u = 25 * Math.PI, q = Math.max(Math.pow(0.25 * Math.min(b.height, b.width) / 2, 2) * Math.PI, u), k = 0; k < a.dataSeriesIndexes.length; k++) { if (m = a.dataSeriesIndexes[k], p = this.data[m], r = p.dataPoints, 0 < r.length) for (c.strokeStyle = "#4572A7 ", e = 0; e < r.length; e++) { if (f = r[e].getTime ? f = r[e].x.getTime() : f = r[e].x, !(f < a.axisX.dataInfo.viewPortMin || f > a.axisX.dataInfo.viewPortMax) && "number" === typeof r[e].y) { f = a.axisX.convertValueToPixel(f);l = a.axisY.convertValueToPixel(r[e].y); var g = r[e].z, n = 2 * Math.max(Math.sqrt((s === h ? q / 2 : u + (q - u) / (s - h) * (g - h)) / Math.PI) << 0, 1), g = p.getMarkerProperties(e, c);g.size = n;c.globalAlpha = p.fillOpacity;Y.drawMarker(f, l, c, g.type, g.size, g.color, g.borderColor, g.borderThickness);c.globalAlpha = 1;var t = p.dataPointIds[e];this._eventManager.objectMap[t] = { id: t, objectType: "dataPoint", dataSeriesIndex: m, dataPointIndex: e, x1: f, y1: l, size: n };n = V(t);v && Y.drawMarker(f, l, this._eventManager.ghostCtx, g.type, g.size, n, n, g.borderThickness);(r[e].indexLabel || p.indexLabel || r[e].indexLabelFormatter || p.indexLabelFormatter) && this._indexLabels.push({ chartType: "bubble", dataPoint: r[e], dataSeries: p, point: { x: f, y: l }, direction: 1, bounds: { x1: f - g.size / 2, y1: l - g.size / 2, x2: f + g.size / 2, y2: l + g.size / 2 }, color: null }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(b.x1, b.y1, b.width, b.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderScatter = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = this.plotArea, e = 0, f, l;c.save();v && this._eventManager.ghostCtx.save(); c.beginPath();c.rect(b.x1, b.y1, b.width, b.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(b.x1, b.y1, b.width, b.height), this._eventManager.ghostCtx.clip());for (var s = 0; s < a.dataSeriesIndexes.length; s++) { var h = a.dataSeriesIndexes[s], k = this.data[h], m = k.dataPoints;if (0 < m.length) { c.strokeStyle = "#4572A7 ";Math.pow(0.3 * Math.min(b.height, b.width) / 2, 2);for (var p = 0, r = 0, e = 0; e < m.length; e++) { if (f = m[e].getTime ? f = m[e].x.getTime() : f = m[e].x, !(f < a.axisX.dataInfo.viewPortMin || f > a.axisX.dataInfo.viewPortMax) && "number" === typeof m[e].y) { f = a.axisX.convertValueToPixel(f);l = a.axisY.convertValueToPixel(m[e].y);var g = k.getMarkerProperties(e, f, l, c);c.globalAlpha = k.fillOpacity;Y.drawMarker(g.x, g.y, g.ctx, g.type, g.size, g.color, g.borderColor, g.borderThickness);c.globalAlpha = 1;Math.sqrt((p - f) * (p - f) + (r - l) * (r - l)) < Math.min(g.size, 5) && m.length > Math.min(this.plotArea.width, this.plotArea.height) || (p = k.dataPointIds[e], this._eventManager.objectMap[p] = { id: p, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: e, x1: f, y1: l }, p = V(p), v && Y.drawMarker(g.x, g.y, this._eventManager.ghostCtx, g.type, g.size, p, p, g.borderThickness), (m[e].indexLabel || k.indexLabel || m[e].indexLabelFormatter || k.indexLabelFormatter) && this._indexLabels.push({ chartType: "scatter", dataPoint: m[e], dataSeries: k, point: { x: f, y: l }, direction: 1, bounds: { x1: f - g.size / 2, y1: l - g.size / 2, x2: f + g.size / 2, y2: l + g.size / 2 }, color: null }), p = f, r = l); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(b.x1, b.y1, b.width, b.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderCandlestick = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d, b = this._eventManager.ghostCtx;if (!(0 >= a.dataSeriesIndexes.length)) { var e = null, f = null, l = this.plotArea, s = 0, h, k, m, p, r, g, e = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1, f = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.015 * this.width, u = a.axisX.dataInfo.minDiff;isFinite(u) || (u = 0.3 * Math.abs(a.axisX.range));u = this.options.dataPointWidth ? this.dataPointWidth : 0.7 * l.width * (a.axisX.logarithmic ? Math.log(u) / Math.log(a.axisX.range) : Math.abs(u) / Math.abs(a.axisX.range)) << 0;this.dataPointMaxWidth && e > f && (e = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, f));!this.dataPointMaxWidth && this.dataPointMinWidth && f < e && (f = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, e));u < e && (u = e);u > f && (u = f);c.save();v && b.save();c.beginPath();c.rect(l.x1, l.y1, l.width, l.height);c.clip();v && (b.beginPath(), b.rect(l.x1, l.y1, l.width, l.height), b.clip());for (var n = 0; n < a.dataSeriesIndexes.length; n++) { var F = a.dataSeriesIndexes[n], t = this.data[F], x = t.dataPoints;if (0 < x.length) for (var y = 5 < u && t.bevelEnabled ? !0 : !1, s = 0; s < x.length; s++) { if (x[s].getTime ? g = x[s].x.getTime() : g = x[s].x, !(g < a.axisX.dataInfo.viewPortMin || g > a.axisX.dataInfo.viewPortMax) && !q(x[s].y) && x[s].y.length && "number" === typeof x[s].y[0] && "number" === typeof x[s].y[1] && "number" === typeof x[s].y[2] && "number" === typeof x[s].y[3]) { h = a.axisX.convertValueToPixel(g);k = a.axisY.convertValueToPixel(x[s].y[0]); m = a.axisY.convertValueToPixel(x[s].y[1]);p = a.axisY.convertValueToPixel(x[s].y[2]);r = a.axisY.convertValueToPixel(x[s].y[3]);var C = h - u / 2 << 0, D = C + u << 0, f = t.options.fallingColor ? t.fallingColor : t._colorSet[0], e = x[s].color ? x[s].color : t._colorSet[0], A = Math.round(Math.max(1, 0.15 * u)), w = 0 === A % 2 ? 0 : 0.5, z = t.dataPointIds[s];this._eventManager.objectMap[z] = { id: z, objectType: "dataPoint", dataSeriesIndex: F, dataPointIndex: s, x1: C, y1: k, x2: D, y2: m, x3: h, y3: p, x4: h, y4: r, borderThickness: A, color: e };c.strokeStyle = e;c.beginPath(); c.lineWidth = A;b.lineWidth = Math.max(A, 4);"candlestick" === t.type ? (c.moveTo(h - w, m), c.lineTo(h - w, Math.min(k, r)), c.stroke(), c.moveTo(h - w, Math.max(k, r)), c.lineTo(h - w, p), c.stroke(), $(c, C, Math.min(k, r), D, Math.max(k, r), x[s].y[0] <= x[s].y[3] ? t.risingColor : f, A, e, y, y, !1, !1, t.fillOpacity), v && (e = V(z), b.strokeStyle = e, b.moveTo(h - w, m), b.lineTo(h - w, Math.min(k, r)), b.stroke(), b.moveTo(h - w, Math.max(k, r)), b.lineTo(h - w, p), b.stroke(), $(b, C, Math.min(k, r), D, Math.max(k, r), e, 0, null, !1, !1, !1, !1))) : "ohlc" === t.type && (c.moveTo(h - w, m), c.lineTo(h - w, p), c.stroke(), c.beginPath(), c.moveTo(h, k), c.lineTo(C, k), c.stroke(), c.beginPath(), c.moveTo(h, r), c.lineTo(D, r), c.stroke(), v && (e = V(z), b.strokeStyle = e, b.moveTo(h - w, m), b.lineTo(h - w, p), b.stroke(), b.beginPath(), b.moveTo(h, k), b.lineTo(C, k), b.stroke(), b.beginPath(), b.moveTo(h, r), b.lineTo(D, r), b.stroke()));(x[s].indexLabel || t.indexLabel || x[s].indexLabelFormatter || t.indexLabelFormatter) && this._indexLabels.push({ chartType: t.type, dataPoint: x[s], dataSeries: t, point: { x: C + (D - C) / 2, y: a.axisY.reversed ? p : m }, direction: 1, bounds: { x1: C, y1: Math.min(m, p), x2: D, y2: Math.max(m, p) }, color: e }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(l.x1, l.y1, l.width, l.height), b.restore()); c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderBoxAndWhisker = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d, b = this._eventManager.ghostCtx;if (!(0 >= a.dataSeriesIndexes.length)) { var e = null, f = this.plotArea, l = 0, s, h, k, m, p, r, g, e = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1, l = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.015 * this.width, u = a.axisX.dataInfo.minDiff;isFinite(u) || (u = 0.3 * Math.abs(a.axisX.range));u = this.options.dataPointWidth ? this.dataPointWidth : 0.7 * f.width * (a.axisX.logarithmic ? Math.log(u) / Math.log(a.axisX.range) : Math.abs(u) / Math.abs(a.axisX.range)) << 0;this.dataPointMaxWidth && e > l && (e = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, l));!this.dataPointMaxWidth && this.dataPointMinWidth && l < e && (l = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, e));u < e && (u = e);u > l && (u = l);c.save();v && b.save();c.beginPath();c.rect(f.x1, f.y1, f.width, f.height);c.clip();v && (b.beginPath(), b.rect(f.x1, f.y1, f.width, f.height), b.clip());for (var n = !1, n = !!a.axisY.reversed, F = 0; F < a.dataSeriesIndexes.length; F++) { var t = a.dataSeriesIndexes[F], x = this.data[t], y = x.dataPoints;if (0 < y.length) for (var C = 5 < u && x.bevelEnabled ? !0 : !1, l = 0; l < y.length; l++) { if (y[l].getTime ? g = y[l].x.getTime() : g = y[l].x, !(g < a.axisX.dataInfo.viewPortMin || g > a.axisX.dataInfo.viewPortMax) && !q(y[l].y) && y[l].y.length && "number" === typeof y[l].y[0] && "number" === typeof y[l].y[1] && "number" === typeof y[l].y[2] && "number" === typeof y[l].y[3] && "number" === typeof y[l].y[4] && 5 === y[l].y.length) { s = a.axisX.convertValueToPixel(g);h = a.axisY.convertValueToPixel(y[l].y[0]);k = a.axisY.convertValueToPixel(y[l].y[1]);m = a.axisY.convertValueToPixel(y[l].y[2]);p = a.axisY.convertValueToPixel(y[l].y[3]);r = a.axisY.convertValueToPixel(y[l].y[4]);var D = s - u / 2 << 0, A = s + u / 2 << 0, e = y[l].color ? y[l].color : x._colorSet[0], w = Math.round(Math.max(1, 0.15 * u)), z = 0 === w % 2 ? 0 : 0.5, O = y[l].whiskerColor ? y[l].whiskerColor : y[l].color ? x.whiskerColor ? x.whiskerColor : y[l].color : x.whiskerColor ? x.whiskerColor : e, S = "number" === typeof y[l].whiskerThickness ? y[l].whiskerThickness : "number" === typeof x.options.whiskerThickness ? x.whiskerThickness : w, E = y[l].whiskerDashType ? y[l].whiskerDashType : x.whiskerDashType, aa = q(y[l].whiskerLength) ? q(x.options.whiskerLength) ? u : x.whiskerLength : y[l].whiskerLength, aa = "number" === typeof aa ? 0 >= aa ? 0 : aa >= u ? u : aa : "string" === typeof aa ? parseInt(aa) * u / 100 > u ? u : parseInt(aa) * u / 100 : u, ha = 1 === Math.round(S) % 2 ? 0.5 : 0, oa = y[l].stemColor ? y[l].stemColor : y[l].color ? x.stemColor ? x.stemColor : y[l].color : x.stemColor ? x.stemColor : e, ka = "number" === typeof y[l].stemThickness ? y[l].stemThickness : "number" === typeof x.options.stemThickness ? x.stemThickness : w, G = 1 === Math.round(ka) % 2 ? 0.5 : 0, K = y[l].stemDashType ? y[l].stemDashType : x.stemDashType, J = y[l].lineColor ? y[l].lineColor : y[l].color ? x.lineColor ? x.lineColor : y[l].color : x.lineColor ? x.lineColor : e, N = "number" === typeof y[l].lineThickness ? y[l].lineThickness : "number" === typeof x.options.lineThickness ? x.lineThickness : w, Q = y[l].lineDashType ? y[l].lineDashType : x.lineDashType, L = 1 === Math.round(N) % 2 ? 0.5 : 0, M = x.upperBoxColor, T = x.lowerBoxColor, sa = q(x.options.fillOpacity) ? 1 : x.fillOpacity, R = x.dataPointIds[l];this._eventManager.objectMap[R] = { id: R, objectType: "dataPoint", dataSeriesIndex: t, dataPointIndex: l, x1: D, y1: h, x2: A, y2: k, x3: s, y3: m, x4: s, y4: p, y5: r, borderThickness: w, color: e, stemThickness: ka, stemColor: oa, whiskerThickness: S, whiskerLength: aa, whiskerColor: O, lineThickness: N, lineColor: J };c.save();0 < ka && (c.beginPath(), c.strokeStyle = oa, c.lineWidth = ka, c.setLineDash && c.setLineDash(I(K, ka)), c.moveTo(s - G, k), c.lineTo(s - G, h), c.stroke(), c.moveTo(s - G, p), c.lineTo(s - G, m), c.stroke());c.restore();b.lineWidth = Math.max(w, 4);c.beginPath();$(c, D, Math.min(r, k), A, Math.max(k, r), T, 0, e, n ? C : !1, n ? !1 : C, !1, !1, sa);c.beginPath();$(c, D, Math.min(m, r), A, Math.max(r, m), M, 0, e, n ? !1 : C, n ? C : !1, !1, !1, sa);c.beginPath();c.lineWidth = w;c.strokeStyle = e;c.rect(D - z, Math.min(k, m) - z, A - D + 2 * z, Math.max(k, m) - Math.min(k, m) + 2 * z);c.stroke();c.save();0 < N && (c.beginPath(), c.globalAlpha = 1, c.setLineDash && c.setLineDash(I(Q, N)), c.strokeStyle = J, c.lineWidth = N, c.moveTo(D, r - L), c.lineTo(A, r - L), c.stroke());c.restore();c.save();0 < S && (c.beginPath(), c.setLineDash && c.setLineDash(I(E, S)), c.strokeStyle = O, c.lineWidth = S, c.moveTo(s - aa / 2 << 0, p - ha), c.lineTo(s + aa / 2 << 0, p - ha), c.stroke(), c.moveTo(s - aa / 2 << 0, h + ha), c.lineTo(s + aa / 2 << 0, h + ha), c.stroke());c.restore();v && (e = V(R), b.strokeStyle = e, b.lineWidth = ka, 0 < ka && (b.moveTo(s - z - G, k), b.lineTo(s - z - G, Math.max(h, p)), b.stroke(), b.moveTo(s - z - G, Math.min(h, p)), b.lineTo(s - z - G, m), b.stroke()), $(b, D, Math.max(k, m), A, Math.min(k, m), e, 0, null, !1, !1, !1, !1), 0 < S && (b.beginPath(), b.lineWidth = S, b.moveTo(s + aa / 2, p - ha), b.lineTo(s - aa / 2, p - ha), b.stroke(), b.moveTo(s + aa / 2, h + ha), b.lineTo(s - aa / 2, h + ha), b.stroke()));(y[l].indexLabel || x.indexLabel || y[l].indexLabelFormatter || x.indexLabelFormatter) && this._indexLabels.push({ chartType: x.type, dataPoint: y[l], dataSeries: x, point: { x: D + (A - D) / 2, y: a.axisY.reversed ? h : p }, direction: 1, bounds: { x1: D, y1: Math.min(h, p), x2: A, y2: Math.max(h, p) }, color: e }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(f.x1, f.y1, f.width, f.height), b.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderRangeColumn = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = 0, l, s, h, f = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;l = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : 0.03 * this.width;var k = a.axisX.dataInfo.minDiff;isFinite(k) || (k = 0.3 * Math.abs(a.axisX.range));k = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.width * (a.axisX.logarithmic ? Math.log(k) / Math.log(a.axisX.range) : Math.abs(k) / Math.abs(a.axisX.range)) / a.plotType.totalDataSeries) << 0;this.dataPointMaxWidth && f > l && (f = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, l));!this.dataPointMaxWidth && this.dataPointMinWidth && l < f && (l = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, f));k < f && (k = f);k > l && (k = l);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var m = 0; m < a.dataSeriesIndexes.length; m++) { var p = a.dataSeriesIndexes[m], r = this.data[p], g = r.dataPoints;if (0 < g.length) for (var u = 5 < k && r.bevelEnabled ? !0 : !1, f = 0; f < g.length; f++) { if (g[f].getTime ? h = g[f].x.getTime() : h = g[f].x, !(h < a.axisX.dataInfo.viewPortMin || h > a.axisX.dataInfo.viewPortMax) && !q(g[f].y) && g[f].y.length && "number" === typeof g[f].y[0] && "number" === typeof g[f].y[1]) { b = a.axisX.convertValueToPixel(h);l = a.axisY.convertValueToPixel(g[f].y[0]);s = a.axisY.convertValueToPixel(g[f].y[1]);var n = a.axisX.reversed ? b + a.plotType.totalDataSeries * k / 2 - (a.previousDataSeriesCount + m) * k << 0 : b - a.plotType.totalDataSeries * k / 2 + (a.previousDataSeriesCount + m) * k << 0, F = a.axisX.reversed ? n - k << 0 : n + k << 0, b = g[f].color ? g[f].color : r._colorSet[f % r._colorSet.length];if (l > s) { var t = l;l = s;s = t; }t = r.dataPointIds[f];this._eventManager.objectMap[t] = { id: t, objectType: "dataPoint", dataSeriesIndex: p, dataPointIndex: f, x1: n, y1: l, x2: F, y2: s };$(c, a.axisX.reversed ? F : n, l, a.axisX.reversed ? n : F, s, b, 0, b, u, u, !1, !1, r.fillOpacity);b = V(t);v && $(this._eventManager.ghostCtx, a.axisX.reversed ? F : n, l, a.axisX.reversed ? n : F, s, b, 0, null, !1, !1, !1, !1);if (g[f].indexLabel || r.indexLabel || g[f].indexLabelFormatter || r.indexLabelFormatter) this._indexLabels.push({ chartType: "rangeColumn", dataPoint: g[f], dataSeries: r, indexKeyword: 0, point: { x: n + (F - n) / 2, y: g[f].y[1] >= g[f].y[0] ? s : l }, direction: g[f].y[1] >= g[f].y[0] ? -1 : 1, bounds: { x1: n, y1: Math.min(l, s), x2: F, y2: Math.max(l, s) }, color: b }), this._indexLabels.push({ chartType: "rangeColumn", dataPoint: g[f], dataSeries: r, indexKeyword: 1, point: { x: n + (F - n) / 2, y: g[f].y[1] >= g[f].y[0] ? l : s }, direction: g[f].y[1] >= g[f].y[0] ? 1 : -1, bounds: { x1: n, y1: Math.min(l, s), x2: F, y2: Math.max(l, s) }, color: b }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderError = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d, b = a.axisY._position ? "left" === a.axisY._position || "right" === a.axisY._position ? !1 : !0 : !1;if (!(0 >= a.dataSeriesIndexes.length)) { var e = null, f = !1, l = this.plotArea, s = 0, h, k, m, p, r, g, u, n = a.axisX.dataInfo.minDiff;isFinite(n) || (n = 0.3 * Math.abs(a.axisX.range));c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(l.x1, l.y1, l.width, l.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(l.x1, l.y1, l.width, l.height), this._eventManager.ghostCtx.clip());for (var F = 0, t = 0; t < this.data.length; t++) { !this.data[t].type.match(/(bar|column)/ig) || !this.data[t].visible || this.data[t].type.match(/(stacked)/ig) && F || F++; }for (var x = 0; x < a.dataSeriesIndexes.length; x++) { var y = a.dataSeriesIndexes[x], C = this.data[y], D = C.dataPoints, A = q(C._linkedSeries) ? !1 : C._linkedSeries.type.match(/(bar|column)/ig) && C._linkedSeries.visible ? !0 : !1, w = 0;if (A) for (e = C._linkedSeries.id, t = 0; t < e; t++) { !this.data[t].type.match(/(bar|column)/ig) || !this.data[t].visible || this.data[t].type.match(/(stacked)/ig) && w || (this.data[t].type.match(/(range)/ig) && (f = !0), w++); }e = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;s = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : b ? Math.min(0.15 * this.height, 0.9 * (this.plotArea.height / (A ? F : 1))) << 0 : 0.3 * this.width;f && (s = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : b ? Math.min(0.15 * this.height, 0.9 * (this.plotArea.height / (A ? F : 1))) << 0 : 0.03 * this.width);t = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * ((b ? l.height : l.width) * (a.axisX.logarithmic ? Math.log(n) / Math.log(a.axisX.range) : Math.abs(n) / Math.abs(a.axisX.range)) / (A ? F : 1)) << 0;this.dataPointMaxWidth && e > s && (e = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, s));!this.dataPointMaxWidth && this.dataPointMinWidth && s < e && (s = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, e));t < e && (t = e);t > s && (t = s);if (0 < D.length) for (var E = C._colorSet, s = 0; s < D.length; s++) { var e = C.lineColor = C.options.color ? C.options.color : E[0], O = { color: D[s].whiskerColor ? D[s].whiskerColor : D[s].color ? C.whiskerColor ? C.whiskerColor : D[s].color : C.whiskerColor ? C.whiskerColor : e, thickness: q(D[s].whiskerThickness) ? C.whiskerThickness : D[s].whiskerThickness, dashType: D[s].whiskerDashType ? D[s].whiskerDashType : C.whiskerDashType, length: q(D[s].whiskerLength) ? q(C.options.whiskerLength) ? t : C.options.whiskerLength : D[s].whiskerLength, trimLength: q(D[s].whiskerLength) ? q(C.options.whiskerLength) ? 50 : 0 : 0 };O.length = "number" === typeof O.length ? 0 >= O.length ? 0 : O.length >= t ? t : O.length : "string" === typeof O.length ? parseInt(O.length) * t / 100 > t ? t : parseInt(O.length) * t / 100 > t : t;O.thickness = "number" === typeof O.thickness ? 0 > O.thickness ? 0 : Math.round(O.thickness) : 2;var S = { color: D[s].stemColor ? D[s].stemColor : D[s].color ? C.stemColor ? C.stemColor : D[s].color : C.stemColor ? C.stemColor : e, thickness: D[s].stemThickness ? D[s].stemThickness : C.stemThickness, dashType: D[s].stemDashType ? D[s].stemDashType : C.stemDashType };S.thickness = "number" === typeof S.thickness ? 0 > S.thickness ? 0 : Math.round(S.thickness) : 2;D[s].getTime ? u = D[s].x.getTime() : u = D[s].x;if (!(u < a.axisX.dataInfo.viewPortMin || u > a.axisX.dataInfo.viewPortMax) && !q(D[s].y) && D[s].y.length && "number" === typeof D[s].y[0] && "number" === typeof D[s].y[1]) { var ja = a.axisX.convertValueToPixel(u);b ? k = ja : h = ja;ja = a.axisY.convertValueToPixel(D[s].y[0]);b ? m = ja : r = ja;ja = a.axisY.convertValueToPixel(D[s].y[1]);b ? p = ja : g = ja;b ? (r = a.axisX.reversed ? k + (A ? F : 1) * t / 2 - (A ? w - 1 : 0) * t << 0 : k - (A ? F : 1) * t / 2 + (A ? w - 1 : 0) * t << 0, g = a.axisX.reversed ? r - t << 0 : r + t << 0) : (m = a.axisX.reversed ? h + (A ? F : 1) * t / 2 - (A ? w - 1 : 0) * t << 0 : h - (A ? F : 1) * t / 2 + (A ? w - 1 : 0) * t << 0, p = a.axisX.reversed ? m - t << 0 : m + t << 0);!b && r > g && (ja = r, r = g, g = ja);b && m > p && (ja = m, m = p, p = ja);ja = C.dataPointIds[s];this._eventManager.objectMap[ja] = { id: ja, objectType: "dataPoint", dataSeriesIndex: y, dataPointIndex: s, x1: Math.min(m, p), y1: Math.min(r, g), x2: Math.max(p, m), y2: Math.max(g, r), isXYSwapped: b, stemProperties: S, whiskerProperties: O };z(c, Math.min(m, p), Math.min(r, g), Math.max(p, m), Math.max(g, r), e, O, S, b);v && z(this._eventManager.ghostCtx, m, r, p, g, e, O, S, b);if (D[s].indexLabel || C.indexLabel || D[s].indexLabelFormatter || C.indexLabelFormatter) this._indexLabels.push({ chartType: "error", dataPoint: D[s], dataSeries: C, indexKeyword: 0, point: { x: b ? D[s].y[1] >= D[s].y[0] ? m : p : m + (p - m) / 2, y: b ? r + (g - r) / 2 : D[s].y[1] >= D[s].y[0] ? g : r }, direction: D[s].y[1] >= D[s].y[0] ? -1 : 1, bounds: { x1: b ? Math.min(m, p) : m, y1: b ? r : Math.min(r, g), x2: b ? Math.max(m, p) : p, y2: b ? g : Math.max(r, g) }, color: e, axisSwapped: b }), this._indexLabels.push({ chartType: "error", dataPoint: D[s], dataSeries: C, indexKeyword: 1, point: { x: b ? D[s].y[1] >= D[s].y[0] ? p : m : m + (p - m) / 2, y: b ? r + (g - r) / 2 : D[s].y[1] >= D[s].y[0] ? r : g }, direction: D[s].y[1] >= D[s].y[0] ? 1 : -1, bounds: { x1: b ? Math.min(m, p) : m, y1: b ? r : Math.min(r, g), x2: b ? Math.max(m, p) : p, y2: b ? g : Math.max(r, g) }, color: e, axisSwapped: b }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(l.x1, l.y1, l.width, l.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderRangeBar = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = null, e = this.plotArea, f = 0, l, s, h, k, f = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;l = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : Math.min(0.15 * this.height, 0.9 * (this.plotArea.height / a.plotType.totalDataSeries)) << 0;var m = a.axisX.dataInfo.minDiff;isFinite(m) || (m = 0.3 * Math.abs(a.axisX.range));m = this.options.dataPointWidth ? this.dataPointWidth : 0.9 * (e.height * (a.axisX.logarithmic ? Math.log(m) / Math.log(a.axisX.range) : Math.abs(m) / Math.abs(a.axisX.range)) / a.plotType.totalDataSeries) << 0;this.dataPointMaxWidth && f > l && (f = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, l));!this.dataPointMaxWidth && this.dataPointMinWidth && l < f && (l = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, f));m < f && (m = f);m > l && (m = l);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(e.x1, e.y1, e.width, e.height);c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.clip());for (var p = 0; p < a.dataSeriesIndexes.length; p++) { var r = a.dataSeriesIndexes[p], g = this.data[r], u = g.dataPoints;if (0 < u.length) { var n = 5 < m && g.bevelEnabled ? !0 : !1;c.strokeStyle = "#4572A7 ";for (f = 0; f < u.length; f++) { if (u[f].getTime ? k = u[f].x.getTime() : k = u[f].x, !(k < a.axisX.dataInfo.viewPortMin || k > a.axisX.dataInfo.viewPortMax) && !q(u[f].y) && u[f].y.length && "number" === typeof u[f].y[0] && "number" === typeof u[f].y[1]) { l = a.axisY.convertValueToPixel(u[f].y[0]);s = a.axisY.convertValueToPixel(u[f].y[1]); h = a.axisX.convertValueToPixel(k);h = a.axisX.reversed ? h + a.plotType.totalDataSeries * m / 2 - (a.previousDataSeriesCount + p) * m << 0 : h - a.plotType.totalDataSeries * m / 2 + (a.previousDataSeriesCount + p) * m << 0;var F = a.axisX.reversed ? h - m << 0 : h + m << 0;l > s && (b = l, l = s, s = b);b = u[f].color ? u[f].color : g._colorSet[f % g._colorSet.length];$(c, l, a.axisX.reversed ? F : h, s, a.axisX.reversed ? h : F, b, 0, null, n, !1, !1, !1, g.fillOpacity);b = g.dataPointIds[f];this._eventManager.objectMap[b] = { id: b, objectType: "dataPoint", dataSeriesIndex: r, dataPointIndex: f, x1: l, y1: h, x2: s, y2: F };b = V(b);v && $(this._eventManager.ghostCtx, l, a.axisX.reversed ? F : h, s, a.axisX.reversed ? h : F, b, 0, null, !1, !1, !1, !1);if (u[f].indexLabel || g.indexLabel || u[f].indexLabelFormatter || g.indexLabelFormatter) this._indexLabels.push({ chartType: "rangeBar", dataPoint: u[f], dataSeries: g, indexKeyword: 0, point: { x: u[f].y[1] >= u[f].y[0] ? l : s, y: h + (F - h) / 2 }, direction: u[f].y[1] >= u[f].y[0] ? -1 : 1, bounds: { x1: Math.min(l, s), y1: h, x2: Math.max(l, s), y2: F }, color: b }), this._indexLabels.push({ chartType: "rangeBar", dataPoint: u[f], dataSeries: g, indexKeyword: 1, point: { x: u[f].y[1] >= u[f].y[0] ? s : l, y: h + (F - h) / 2 }, direction: u[f].y[1] >= u[f].y[0] ? 1 : -1, bounds: { x1: Math.min(l, s), y1: h, x2: Math.max(l, s), y2: F }, color: b }); } } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(e.x1, e.y1, e.width, e.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };n.prototype.renderRangeArea = function (a) { function d() { if (x) { for (var a = null, c = h.length - 1; 0 <= c; c--) { a = h[c], b.lineTo(a.x, a.y2), e.lineTo(a.x, a.y2); }b.closePath();b.globalAlpha = m.fillOpacity;b.fill();b.globalAlpha = 1;e.fill();if (0 < m.lineThickness) { b.beginPath(); b.moveTo(a.x, a.y2);for (c = 0; c < h.length; c++) { a = h[c], b.lineTo(a.x, a.y2); }b.moveTo(h[0].x, h[0].y1);for (c = 0; c < h.length; c++) { a = h[c], b.lineTo(a.x, a.y1); }b.stroke(); }b.beginPath();b.moveTo(q, n);e.beginPath();e.moveTo(q, n);x = { x: q, y: n };h = [];h.push({ x: q, y1: n, y2: F }); } }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = this._eventManager.ghostCtx, f = [], l = this.plotArea;b.save();v && e.save();b.beginPath();b.rect(l.x1, l.y1, l.width, l.height);b.clip();v && (e.beginPath(), e.rect(l.x1, l.y1, l.width, l.height), e.clip());for (var s = 0; s < a.dataSeriesIndexes.length; s++) { var h = [], k = a.dataSeriesIndexes[s], m = this.data[k], p = m.dataPoints, f = m.id;this._eventManager.objectMap[f] = { objectType: "dataSeries", dataSeriesIndex: k };f = V(f);e.fillStyle = f;var f = [], r = !0, g = 0, q, n, F, t, x = null;if (0 < p.length) { var y = m._colorSet[g % m._colorSet.length], C = m.lineColor = m.options.lineColor || y, D = C;b.fillStyle = y;b.strokeStyle = C;b.lineWidth = m.lineThickness;var A = "solid";if (b.setLineDash) { var w = I(m.nullDataLineDashType, m.lineThickness), A = m.lineDashType, z = I(A, m.lineThickness);b.setLineDash(z); }for (var O = !0; g < p.length; g++) { if (t = p[g].x.getTime ? p[g].x.getTime() : p[g].x, !(t < a.axisX.dataInfo.viewPortMin || t > a.axisX.dataInfo.viewPortMax && (!m.connectNullData || !O))) if (null !== p[g].y && p[g].y.length && "number" === typeof p[g].y[0] && "number" === typeof p[g].y[1]) { q = a.axisX.convertValueToPixel(t);n = a.axisY.convertValueToPixel(p[g].y[0]);F = a.axisY.convertValueToPixel(p[g].y[1]);r || O ? (m.connectNullData && !r ? (b.setLineDash && (m.options.nullDataLineDashType || A === m.lineDashType && m.lineDashType !== m.nullDataLineDashType) && (h[h.length - 1].newLineDashArray = z, A = m.nullDataLineDashType, b.setLineDash(w)), b.lineTo(q, n), v && e.lineTo(q, n), h.push({ x: q, y1: n, y2: F })) : (b.beginPath(), b.moveTo(q, n), x = { x: q, y: n }, h = [], h.push({ x: q, y1: n, y2: F }), v && (e.beginPath(), e.moveTo(q, n))), O = r = !1) : (b.lineTo(q, n), h.push({ x: q, y1: n, y2: F }), v && e.lineTo(q, n), 0 == g % 250 && d());t = m.dataPointIds[g];this._eventManager.objectMap[t] = { id: t, objectType: "dataPoint", dataSeriesIndex: k, dataPointIndex: g, x1: q, y1: n, y2: F };g < p.length - 1 && (D !== (p[g].lineColor || C) || A !== (p[g].lineDashType || m.lineDashType)) && (d(), D = p[g].lineColor || C, h[h.length - 1].newStrokeStyle = D, b.strokeStyle = D, b.setLineDash && (p[g].lineDashType ? (A = p[g].lineDashType, h[h.length - 1].newLineDashArray = I(A, m.lineThickness), b.setLineDash(h[h.length - 1].newLineDashArray)) : (A = m.lineDashType, h[h.length - 1].newLineDashArray = z, b.setLineDash(z))));if (0 !== p[g].markerSize && (0 < p[g].markerSize || 0 < m.markerSize)) { var S = m.getMarkerProperties(g, q, F, b);f.push(S);var E = V(t); v && f.push({ x: q, y: F, ctx: e, type: S.type, size: S.size, color: E, borderColor: E, borderThickness: S.borderThickness });S = m.getMarkerProperties(g, q, n, b);f.push(S);E = V(t);v && f.push({ x: q, y: n, ctx: e, type: S.type, size: S.size, color: E, borderColor: E, borderThickness: S.borderThickness }); }if (p[g].indexLabel || m.indexLabel || p[g].indexLabelFormatter || m.indexLabelFormatter) this._indexLabels.push({ chartType: "rangeArea", dataPoint: p[g], dataSeries: m, indexKeyword: 0, point: { x: q, y: n }, direction: p[g].y[0] > p[g].y[1] === a.axisY.reversed ? -1 : 1, color: y }), this._indexLabels.push({ chartType: "rangeArea", dataPoint: p[g], dataSeries: m, indexKeyword: 1, point: { x: q, y: F }, direction: p[g].y[0] > p[g].y[1] === a.axisY.reversed ? 1 : -1, color: y }); } else O || r || d(), O = !0; }d();Y.drawMarkers(f); } }v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(l.x1, l.y1, l.width, l.height), this._eventManager.ghostCtx.restore());b.restore();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderRangeSplineArea = function (a) { function d(a, c) { var d = w(n, 2);if (0 < d.length) { if (0 < k.lineThickness) { b.strokeStyle = c;b.setLineDash && b.setLineDash(a);b.beginPath();b.moveTo(d[0].x, d[0].y);for (var f = 0; f < d.length - 3; f += 3) { if (d[f].newStrokeStyle || d[f].newLineDashArray) b.stroke(), b.beginPath(), b.moveTo(d[f].x, d[f].y), d[f].newStrokeStyle && (b.strokeStyle = d[f].newStrokeStyle), d[f].newLineDashArray && b.setLineDash(d[f].newLineDashArray);b.bezierCurveTo(d[f + 1].x, d[f + 1].y, d[f + 2].x, d[f + 2].y, d[f + 3].x, d[f + 3].y); } }b.beginPath();b.moveTo(d[0].x, d[0].y);v && (e.beginPath(), e.moveTo(d[0].x, d[0].y));for (f = 0; f < d.length - 3; f += 3) { b.bezierCurveTo(d[f + 1].x, d[f + 1].y, d[f + 2].x, d[f + 2].y, d[f + 3].x, d[f + 3].y), v && e.bezierCurveTo(d[f + 1].x, d[f + 1].y, d[f + 2].x, d[f + 2].y, d[f + 3].x, d[f + 3].y); }d = w(F, 2);b.lineTo(F[F.length - 1].x, F[F.length - 1].y);for (f = d.length - 1; 2 < f; f -= 3) { b.bezierCurveTo(d[f - 1].x, d[f - 1].y, d[f - 2].x, d[f - 2].y, d[f - 3].x, d[f - 3].y), v && e.bezierCurveTo(d[f - 1].x, d[f - 1].y, d[f - 2].x, d[f - 2].y, d[f - 3].x, d[f - 3].y); }b.closePath();b.globalAlpha = k.fillOpacity;b.fill();v && (e.closePath(), e.fill());b.globalAlpha = 1;if (0 < k.lineThickness) { b.strokeStyle = c;b.setLineDash && b.setLineDash(a);b.beginPath();b.moveTo(d[0].x, d[0].y);for (var g = f = 0; f < d.length - 3; f += 3, g++) { if (n[g].newStrokeStyle || n[g].newLineDashArray) b.stroke(), b.beginPath(), b.moveTo(d[f].x, d[f].y), n[g].newStrokeStyle && (b.strokeStyle = n[g].newStrokeStyle), n[g].newLineDashArray && b.setLineDash(n[g].newLineDashArray);b.bezierCurveTo(d[f + 1].x, d[f + 1].y, d[f + 2].x, d[f + 2].y, d[f + 3].x, d[f + 3].y); }d = w(n, 2);b.moveTo(d[0].x, d[0].y);for (g = f = 0; f < d.length - 3; f += 3, g++) { if (n[g].newStrokeStyle || n[g].newLineDashArray) b.stroke(), b.beginPath(), b.moveTo(d[f].x, d[f].y), n[g].newStrokeStyle && (b.strokeStyle = n[g].newStrokeStyle), n[g].newLineDashArray && b.setLineDash(n[g].newLineDashArray);b.bezierCurveTo(d[f + 1].x, d[f + 1].y, d[f + 2].x, d[f + 2].y, d[f + 3].x, d[f + 3].y); }b.stroke(); }b.beginPath(); } }var c = a.targetCanvasCtx || this.plotArea.ctx, b = v ? this._preRenderCtx : c;if (!(0 >= a.dataSeriesIndexes.length)) { var e = this._eventManager.ghostCtx, f = [], l = this.plotArea;b.save();v && e.save();b.beginPath();b.rect(l.x1, l.y1, l.width, l.height);b.clip();v && (e.beginPath(), e.rect(l.x1, l.y1, l.width, l.height), e.clip());for (var s = 0; s < a.dataSeriesIndexes.length; s++) { var h = a.dataSeriesIndexes[s], k = this.data[h], m = k.dataPoints, f = k.id;this._eventManager.objectMap[f] = { objectType: "dataSeries", dataSeriesIndex: h };f = V(f);e.fillStyle = f;var f = [], p = 0, r, g, q, n = [], F = [];if (0 < m.length) { var t = k._colorSet[p % k._colorSet.length], x = k.lineColor = k.options.lineColor || t, y = x;b.fillStyle = t;b.lineWidth = k.lineThickness;var C = "solid", D;if (b.setLineDash) { var A = I(k.nullDataLineDashType, k.lineThickness), C = k.lineDashType;D = I(C, k.lineThickness); }for (g = !1; p < m.length; p++) { if (r = m[p].x.getTime ? m[p].x.getTime() : m[p].x, !(r < a.axisX.dataInfo.viewPortMin || r > a.axisX.dataInfo.viewPortMax && (!k.connectNullData || !g))) if (null !== m[p].y && m[p].y.length && "number" === typeof m[p].y[0] && "number" === typeof m[p].y[1]) { r = a.axisX.convertValueToPixel(r);g = a.axisY.convertValueToPixel(m[p].y[0]);q = a.axisY.convertValueToPixel(m[p].y[1]);var z = k.dataPointIds[p];this._eventManager.objectMap[z] = { id: z, objectType: "dataPoint", dataSeriesIndex: h, dataPointIndex: p, x1: r, y1: g, y2: q };n[n.length] = { x: r, y: g };F[F.length] = { x: r, y: q };p < m.length - 1 && (y !== (m[p].lineColor || x) || C !== (m[p].lineDashType || k.lineDashType)) && (y = m[p].lineColor || x, n[n.length - 1].newStrokeStyle = y, b.setLineDash && (m[p].lineDashType ? (C = m[p].lineDashType, n[n.length - 1].newLineDashArray = I(C, k.lineThickness)) : (C = k.lineDashType, n[n.length - 1].newLineDashArray = D)));if (0 !== m[p].markerSize && (0 < m[p].markerSize || 0 < k.markerSize)) { var E = k.getMarkerProperties(p, r, g, b);f.push(E);var O = V(z);v && f.push({ x: r, y: g, ctx: e, type: E.type, size: E.size, color: O, borderColor: O, borderThickness: E.borderThickness }); E = k.getMarkerProperties(p, r, q, b);f.push(E);O = V(z);v && f.push({ x: r, y: q, ctx: e, type: E.type, size: E.size, color: O, borderColor: O, borderThickness: E.borderThickness }); }if (m[p].indexLabel || k.indexLabel || m[p].indexLabelFormatter || k.indexLabelFormatter) this._indexLabels.push({ chartType: "rangeSplineArea", dataPoint: m[p], dataSeries: k, indexKeyword: 0, point: { x: r, y: g }, direction: m[p].y[0] <= m[p].y[1] ? -1 : 1, color: t }), this._indexLabels.push({ chartType: "rangeSplineArea", dataPoint: m[p], dataSeries: k, indexKeyword: 1, point: { x: r, y: q }, direction: m[p].y[0] <= m[p].y[1] ? 1 : -1, color: t });g = !1; } else 0 < p && !g && (k.connectNullData ? b.setLineDash && 0 < n.length && (k.options.nullDataLineDashType || !m[p - 1].lineDashType) && (n[n.length - 1].newLineDashArray = A, C = k.nullDataLineDashType) : (d(D, x), n = [], F = [])), g = !0; }d(D, x);Y.drawMarkers(f); } }v && (c.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && b.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && b.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), b.clearRect(l.x1, l.y1, l.width, l.height), this._eventManager.ghostCtx.restore());b.restore();return { source: c, dest: this.plotArea.ctx, animationCallback: P.xClipAnimation, easingFunction: P.easing.linear, animationBase: 0 }; } };n.prototype.renderWaterfall = function (a) { var d = a.targetCanvasCtx || this.plotArea.ctx, c = v ? this._preRenderCtx : d;if (!(0 >= a.dataSeriesIndexes.length)) { var b = this._eventManager.ghostCtx, e = null, f = this.plotArea, l = 0, s, h, k, m, p = a.axisY.convertValueToPixel(a.axisY.logarithmic ? a.axisY.viewportMinimum : 0), l = this.options.dataPointMinWidth ? this.dataPointMinWidth : this.options.dataPointWidth ? this.dataPointWidth : 1;h = this.options.dataPointMaxWidth ? this.dataPointMaxWidth : this.options.dataPointWidth ? this.dataPointWidth : Math.min(0.15 * this.width, 0.9 * (this.plotArea.width / a.plotType.totalDataSeries)) << 0;var r = a.axisX.dataInfo.minDiff;isFinite(r) || (r = 0.3 * Math.abs(a.axisX.range));r = this.options.dataPointWidth ? this.dataPointWidth : 0.6 * (f.width * (a.axisX.logarithmic ? Math.log(r) / Math.log(a.axisX.range) : Math.abs(r) / Math.abs(a.axisX.range)) / a.plotType.totalDataSeries) << 0;this.dataPointMaxWidth && l > h && (l = Math.min(this.options.dataPointWidth ? this.dataPointWidth : Infinity, h));!this.dataPointMaxWidth && this.dataPointMinWidth && h < l && (h = Math.max(this.options.dataPointWidth ? this.dataPointWidth : -Infinity, l));r < l && (r = l);r > h && (r = h);c.save();v && this._eventManager.ghostCtx.save();c.beginPath();c.rect(f.x1, f.y1, f.width, f.height); c.clip();v && (this._eventManager.ghostCtx.beginPath(), this._eventManager.ghostCtx.rect(f.x1, f.y1, f.width, f.height), this._eventManager.ghostCtx.clip());for (var g = 0; g < a.dataSeriesIndexes.length; g++) { var q = a.dataSeriesIndexes[g], n = this.data[q], F = n.dataPoints, e = n._colorSet[0];n.risingColor = n.options.risingColor ? n.options.risingColor : e;n.fallingColor = n.options.fallingColor ? n.options.fallingColor : "#e40a0a";var t = "number" === typeof n.options.lineThickness ? Math.round(n.lineThickness) : 1, x = 1 === Math.round(t) % 2 ? -0.5 : 0;if (0 < F.length) for (var y = 5 < r && n.bevelEnabled ? !0 : !1, C = !1, w = null, A = null, l = 0; l < F.length; l++) { if (F[l].getTime ? m = F[l].x.getTime() : m = F[l].x, "number" !== typeof F[l].y) { if (0 < l && !C && n.connectNullData) var z = n.options.nullDataLineDashType || !F[l - 1].lineDashType ? n.nullDataLineDashType : F[l - 1].lineDashType;C = !0; } else { s = a.axisX.convertValueToPixel(m);h = 0 === n.dataPointEOs[l].cumulativeSum ? p : a.axisY.convertValueToPixel(n.dataPointEOs[l].cumulativeSum);k = 0 === n.dataPointEOs[l].cumulativeSumYStartValue ? p : a.axisY.convertValueToPixel(n.dataPointEOs[l].cumulativeSumYStartValue); s = a.axisX.reversed ? s + a.plotType.totalDataSeries * r / 2 - (a.previousDataSeriesCount + g) * r << 0 : s - a.plotType.totalDataSeries * r / 2 + (a.previousDataSeriesCount + g) * r << 0;var E = a.axisX.reversed ? s - r << 0 : s + r << 0;h > k && (e = h, h = k, k = e);a.axisY.reversed && (e = h, h = k, k = e);e = n.dataPointIds[l];this._eventManager.objectMap[e] = { id: e, objectType: "dataPoint", dataSeriesIndex: q, dataPointIndex: l, x1: s, y1: h, x2: E, y2: k };var O = F[l].color ? F[l].color : 0 < F[l].y ? n.risingColor : n.fallingColor;$(c, a.axisX.reversed ? E : s, a.axisY.reversed ? k : h, a.axisX.reversed ? s : E, a.axisY.reversed ? h : k, O, 0, O, y, y, !1, !1, n.fillOpacity);e = V(e);v && $(this._eventManager.ghostCtx, a.axisX.reversed ? E : s, h, a.axisX.reversed ? s : E, k, e, 0, null, !1, !1, !1, !1);var S, O = s;S = "undefined" !== typeof F[l].isIntermediateSum && !0 === F[l].isIntermediateSum || "undefined" !== typeof F[l].isCumulativeSum && !0 === F[l].isCumulativeSum ? 0 < F[l].y ? h : k : 0 < F[l].y ? k : h;0 < l && w && (!C || n.connectNullData) && (C && c.setLineDash && c.setLineDash(I(z, t)), c.beginPath(), c.moveTo(w, A - x), c.lineTo(O, S - x), 0 < t && c.stroke(), v && (b.beginPath(), b.moveTo(w, A - x), b.lineTo(O, S - x), 0 < t && b.stroke()));C = !1;w = E;A = 0 < F[l].y ? h : k;O = F[l].lineDashType ? F[l].lineDashType : n.options.lineDashType ? n.options.lineDashType : "shortDash";c.strokeStyle = F[l].lineColor ? F[l].lineColor : n.options.lineColor ? n.options.lineColor : "#9e9e9e";c.lineWidth = t;c.setLineDash && (O = I(O, t), c.setLineDash(O));(F[l].indexLabel || n.indexLabel || F[l].indexLabelFormatter || n.indexLabelFormatter) && this._indexLabels.push({ chartType: "waterfall", dataPoint: F[l], dataSeries: n, point: { x: s + (E - s) / 2, y: 0 <= F[l].y ? h : k }, direction: 0 > F[l].y === a.axisY.reversed ? 1 : -1, bounds: { x1: s, y1: Math.min(h, k), x2: E, y2: Math.max(h, k) }, color: e }); } } }v && (d.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.globalCompositeOperation = "source-atop", a.axisX.maskCanvas && c.drawImage(a.axisX.maskCanvas, 0, 0, this.width, this.height), a.axisY.maskCanvas && c.drawImage(a.axisY.maskCanvas, 0, 0, this.width, this.height), this._breaksCanvasCtx && this._breaksCanvasCtx.drawImage(this._preRenderCanvas, 0, 0, this.width, this.height), c.clearRect(f.x1, f.y1, f.width, f.height), this._eventManager.ghostCtx.restore());c.restore();return { source: d, dest: this.plotArea.ctx, animationCallback: P.fadeInAnimation, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } };var ra = function ra(a, d, c, b, e, f, l, h, q) { if (!(0 > c)) { "undefined" === typeof h && (h = 1);if (!v) { var k = Number((l % (2 * Math.PI)).toFixed(8));Number((f % (2 * Math.PI)).toFixed(8)) === k && (l -= 1E-4); }a.save();a.globalAlpha = h;"pie" === e ? (a.beginPath(), a.moveTo(d.x, d.y), a.arc(d.x, d.y, c, f, l, !1), a.fillStyle = b, a.strokeStyle = "white", a.lineWidth = 2, a.closePath(), a.fill()) : "doughnut" === e && (a.beginPath(), a.arc(d.x, d.y, c, f, l, !1), 0 <= q && a.arc(d.x, d.y, q * c, l, f, !0), a.closePath(), a.fillStyle = b, a.strokeStyle = "white", a.lineWidth = 2, a.fill());a.globalAlpha = 1;a.restore(); } };n.prototype.renderPie = function (a) { function d() { if (k && m) { for (var a = 0, b = 0, c = 0, d = 0, e = 0; e < m.length; e++) { var f = m[e], l = k.dataPointIds[e];g[e].id = l;g[e].objectType = "dataPoint";g[e].dataPointIndex = e;g[e].dataSeriesIndex = 0;var h = g[e], p = { percent: null, total: null }, s = null, p = n.getPercentAndTotal(k, f);if (k.indexLabelFormatter || f.indexLabelFormatter) s = { chart: n.options, dataSeries: k, dataPoint: f, total: p.total, percent: p.percent };p = f.indexLabelFormatter ? f.indexLabelFormatter(s) : f.indexLabel ? n.replaceKeywordsWithValue(f.indexLabel, f, k, e) : k.indexLabelFormatter ? k.indexLabelFormatter(s) : k.indexLabel ? n.replaceKeywordsWithValue(k.indexLabel, f, k, e) : f.label ? f.label : "";n._eventManager.objectMap[l] = h;h.center = { x: y.x, y: y.y };h.y = f.y;h.radius = A;h.percentInnerRadius = E;h.indexLabelText = p;h.indexLabelPlacement = k.indexLabelPlacement; h.indexLabelLineColor = f.indexLabelLineColor ? f.indexLabelLineColor : k.options.indexLabelLineColor ? k.options.indexLabelLineColor : f.color ? f.color : k._colorSet[e % k._colorSet.length];h.indexLabelLineThickness = q(f.indexLabelLineThickness) ? k.indexLabelLineThickness : f.indexLabelLineThickness;h.indexLabelLineDashType = f.indexLabelLineDashType ? f.indexLabelLineDashType : k.indexLabelLineDashType;h.indexLabelFontColor = f.indexLabelFontColor ? f.indexLabelFontColor : k.indexLabelFontColor;h.indexLabelFontStyle = f.indexLabelFontStyle ? f.indexLabelFontStyle : k.indexLabelFontStyle;h.indexLabelFontWeight = f.indexLabelFontWeight ? f.indexLabelFontWeight : k.indexLabelFontWeight;h.indexLabelFontSize = q(f.indexLabelFontSize) ? k.indexLabelFontSize : f.indexLabelFontSize;h.indexLabelFontFamily = f.indexLabelFontFamily ? f.indexLabelFontFamily : k.indexLabelFontFamily;h.indexLabelBackgroundColor = f.indexLabelBackgroundColor ? f.indexLabelBackgroundColor : k.options.indexLabelBackgroundColor ? k.options.indexLabelBackgroundColor : k.indexLabelBackgroundColor;h.indexLabelMaxWidth = f.indexLabelMaxWidth ? f.indexLabelMaxWidth : k.indexLabelMaxWidth ? k.indexLabelMaxWidth : 0.33 * r.width;h.indexLabelWrap = "undefined" !== typeof f.indexLabelWrap ? f.indexLabelWrap : k.indexLabelWrap;h.indexLabelTextAlign = f.indexLabelTextAlign ? f.indexLabelTextAlign : k.indexLabelTextAlign ? k.indexLabelTextAlign : "left";h.startAngle = 0 === e ? k.startAngle ? k.startAngle / 180 * Math.PI : 0 : g[e - 1].endAngle;h.startAngle = (h.startAngle + 2 * Math.PI) % (2 * Math.PI);h.endAngle = h.startAngle + 2 * Math.PI / C * Math.abs(f.y);f = (h.endAngle + h.startAngle) / 2;f = (f + 2 * Math.PI) % (2 * Math.PI);h.midAngle = f;if (h.midAngle > Math.PI / 2 - t && h.midAngle < Math.PI / 2 + t) { if (0 === a || g[c].midAngle > h.midAngle) c = e;a++; } else if (h.midAngle > 3 * Math.PI / 2 - t && h.midAngle < 3 * Math.PI / 2 + t) { if (0 === b || g[d].midAngle > h.midAngle) d = e;b++; }h.hemisphere = f > Math.PI / 2 && f <= 3 * Math.PI / 2 ? "left" : "right";h.indexLabelTextBlock = new ia(n.plotArea.ctx, { fontSize: h.indexLabelFontSize, fontFamily: h.indexLabelFontFamily, fontColor: h.indexLabelFontColor, fontStyle: h.indexLabelFontStyle, fontWeight: h.indexLabelFontWeight, textAlign: h.indexLabelTextAlign, backgroundColor: h.indexLabelBackgroundColor, maxWidth: h.indexLabelMaxWidth, maxHeight: h.indexLabelWrap ? 5 * h.indexLabelFontSize : 1.5 * h.indexLabelFontSize, text: h.indexLabelText, padding: 0, textBaseline: "top" });h.indexLabelTextBlock.measureText(); }l = f = 0;p = !1;for (e = 0; e < m.length; e++) { h = g[(c + e) % m.length], 1 < a && h.midAngle > Math.PI / 2 - t && h.midAngle < Math.PI / 2 + t && (f <= a / 2 && !p ? (h.hemisphere = "right", f++) : (h.hemisphere = "left", p = !0)); }p = !1;for (e = 0; e < m.length; e++) { h = g[(d + e) % m.length], 1 < b && h.midAngle > 3 * Math.PI / 2 - t && h.midAngle < 3 * Math.PI / 2 + t && (l <= b / 2 && !p ? (h.hemisphere = "left", l++) : (h.hemisphere = "right", p = !0)); } } }function c(a) { var b = n.plotArea.ctx;b.clearRect(r.x1, r.y1, r.width, r.height);b.fillStyle = n.backgroundColor;b.fillRect(r.x1, r.y1, r.width, r.height);for (b = 0; b < m.length; b++) { var c = g[b].startAngle, d = g[b].endAngle;if (d > c) { var e = 0.07 * A * Math.cos(g[b].midAngle), f = 0.07 * A * Math.sin(g[b].midAngle), l = !1;if (m[b].exploded) { if (1E-9 < Math.abs(g[b].center.x - (y.x + e)) || 1E-9 < Math.abs(g[b].center.y - (y.y + f))) g[b].center.x = y.x + e * a, g[b].center.y = y.y + f * a, l = !0; } else if (0 < Math.abs(g[b].center.x - y.x) || 0 < Math.abs(g[b].center.y - y.y)) g[b].center.x = y.x + e * (1 - a), g[b].center.y = y.y + f * (1 - a), l = !0;l && (e = {}, e.dataSeries = k, e.dataPoint = k.dataPoints[b], e.index = b, n.toolTip.highlightObjects([e]));ra(n.plotArea.ctx, g[b].center, g[b].radius, m[b].color ? m[b].color : k._colorSet[b % k._colorSet.length], k.type, c, d, k.fillOpacity, g[b].percentInnerRadius); } }a = n.plotArea.ctx;a.save();a.fillStyle = "black";a.strokeStyle = "grey";a.textBaseline = "middle";a.lineJoin = "round";for (b = b = 0; b < m.length; b++) { c = g[b], c.indexLabelText && (c.indexLabelTextBlock.y -= c.indexLabelTextBlock.height / 2, d = 0, d = "left" === c.hemisphere ? "inside" !== k.indexLabelPlacement ? -(c.indexLabelTextBlock.width + p) : -c.indexLabelTextBlock.width / 2 : "inside" !== k.indexLabelPlacement ? p : -c.indexLabelTextBlock.width / 2, c.indexLabelTextBlock.x += d, c.indexLabelTextBlock.render(!0), c.indexLabelTextBlock.x -= d, c.indexLabelTextBlock.y += c.indexLabelTextBlock.height / 2, "inside" !== c.indexLabelPlacement && 0 < c.indexLabelLineThickness && (d = c.center.x + A * Math.cos(c.midAngle), e = c.center.y + A * Math.sin(c.midAngle), a.strokeStyle = c.indexLabelLineColor, a.lineWidth = c.indexLabelLineThickness, a.setLineDash && a.setLineDash(I(c.indexLabelLineDashType, c.indexLabelLineThickness)), a.beginPath(), a.moveTo(d, e), a.lineTo(c.indexLabelTextBlock.x, c.indexLabelTextBlock.y), a.lineTo(c.indexLabelTextBlock.x + ("left" === c.hemisphere ? -p : p), c.indexLabelTextBlock.y), a.stroke()), a.lineJoin = "miter"); }a.save(); }function b(a, b) { var c = 0, c = a.indexLabelTextBlock.y - a.indexLabelTextBlock.height / 2, d = a.indexLabelTextBlock.y + a.indexLabelTextBlock.height / 2, e = b.indexLabelTextBlock.y - b.indexLabelTextBlock.height / 2, f = b.indexLabelTextBlock.y + b.indexLabelTextBlock.height / 2;return c = b.indexLabelTextBlock.y > a.indexLabelTextBlock.y ? e - d : c - f; }function e(a) { for (var c = null, d = 1; d < m.length; d++) { if (c = (a + d + g.length) % g.length, g[c].hemisphere !== g[a].hemisphere) { c = null;break; } else if (g[c].indexLabelText && c !== a && (0 > b(g[c], g[a]) || ("right" === g[a].hemisphere ? g[c].indexLabelTextBlock.y >= g[a].indexLabelTextBlock.y : g[c].indexLabelTextBlock.y <= g[a].indexLabelTextBlock.y))) break;else c = null; }return c; }function f(a, c, d) { d = (d || 0) + 1;if (1E3 < d) return 0;c = c || 0;var l = 0, k = y.y - 1 * v, h = y.y + 1 * v;if (0 <= a && a < m.length) { var p = g[a];if (0 > c && p.indexLabelTextBlock.y < k || 0 < c && p.indexLabelTextBlock.y > h) return 0;var r = 0, s = 0, s = r = r = 0;0 > c ? p.indexLabelTextBlock.y - p.indexLabelTextBlock.height / 2 > k && p.indexLabelTextBlock.y - p.indexLabelTextBlock.height / 2 + c < k && (c = -(k - (p.indexLabelTextBlock.y - p.indexLabelTextBlock.height / 2 + c))) : p.indexLabelTextBlock.y + p.indexLabelTextBlock.height / 2 < k && p.indexLabelTextBlock.y + p.indexLabelTextBlock.height / 2 + c > h && (c = p.indexLabelTextBlock.y + p.indexLabelTextBlock.height / 2 + c - h);c = p.indexLabelTextBlock.y + c;k = 0;k = "right" === p.hemisphere ? y.x + Math.sqrt(Math.pow(v, 2) - Math.pow(c - y.y, 2)) : y.x - Math.sqrt(Math.pow(v, 2) - Math.pow(c - y.y, 2));s = y.x + A * Math.cos(p.midAngle);r = y.y + A * Math.sin(p.midAngle);r = Math.sqrt(Math.pow(k - s, 2) + Math.pow(c - r, 2));s = Math.acos(A / v);r = Math.acos((v * v + A * A - r * r) / (2 * A * v));c = r < s ? c - p.indexLabelTextBlock.y : 0;k = null;for (h = 1; h < m.length; h++) { if (k = (a - h + g.length) % g.length, g[k].hemisphere !== g[a].hemisphere) { k = null;break; } else if (g[k].indexLabelText && g[k].hemisphere === g[a].hemisphere && k !== a && (0 > b(g[k], g[a]) || ("right" === g[a].hemisphere ? g[k].indexLabelTextBlock.y <= g[a].indexLabelTextBlock.y : g[k].indexLabelTextBlock.y >= g[a].indexLabelTextBlock.y))) break;else k = null; }s = k;r = e(a);h = k = 0;0 > c ? (h = "right" === p.hemisphere ? s : r, l = c, null !== h && (s = -c, c = p.indexLabelTextBlock.y - p.indexLabelTextBlock.height / 2 - (g[h].indexLabelTextBlock.y + g[h].indexLabelTextBlock.height / 2), c - s < u && (k = -s, h = f(h, k, d + 1), +h.toFixed(x) > +k.toFixed(x) && (l = c > u ? -(c - u) : -(s - (h - k)))))) : 0 < c && (h = "right" === p.hemisphere ? r : s, l = c, null !== h && (s = c, c = g[h].indexLabelTextBlock.y - g[h].indexLabelTextBlock.height / 2 - (p.indexLabelTextBlock.y + p.indexLabelTextBlock.height / 2), c - s < u && (k = s, h = f(h, k, d + 1), +h.toFixed(x) < +k.toFixed(x) && (l = c > u ? c - u : s - (k - h)))));l && (d = p.indexLabelTextBlock.y + l, c = 0, c = "right" === p.hemisphere ? y.x + Math.sqrt(Math.pow(v, 2) - Math.pow(d - y.y, 2)) : y.x - Math.sqrt(Math.pow(v, 2) - Math.pow(d - y.y, 2)), p.midAngle > Math.PI / 2 - t && p.midAngle < Math.PI / 2 + t ? (k = (a - 1 + g.length) % g.length, k = g[k], a = g[(a + 1 + g.length) % g.length], "left" === p.hemisphere && "right" === k.hemisphere && c > k.indexLabelTextBlock.x ? c = k.indexLabelTextBlock.x - 15 : "right" === p.hemisphere && "left" === a.hemisphere && c < a.indexLabelTextBlock.x && (c = a.indexLabelTextBlock.x + 15)) : p.midAngle > 3 * Math.PI / 2 - t && p.midAngle < 3 * Math.PI / 2 + t && (k = (a - 1 + g.length) % g.length, k = g[k], a = g[(a + 1 + g.length) % g.length], "right" === p.hemisphere && "left" === k.hemisphere && c < k.indexLabelTextBlock.x ? c = k.indexLabelTextBlock.x + 15 : "left" === p.hemisphere && "right" === a.hemisphere && c > a.indexLabelTextBlock.x && (c = a.indexLabelTextBlock.x - 15)), p.indexLabelTextBlock.y = d, p.indexLabelTextBlock.x = c, p.indexLabelAngle = Math.atan2(p.indexLabelTextBlock.y - y.y, p.indexLabelTextBlock.x - y.x)); }return l; }function l() { var a = n.plotArea.ctx;a.fillStyle = "grey";a.strokeStyle = "grey";a.font = "16px Arial";a.textBaseline = "middle";for (var c = a = 0, d = 0, l = !0, c = 0; 10 > c && (1 > c || 0 < d); c++) { if (k.radius || !k.radius && "undefined" !== typeof k.innerRadius && null !== k.innerRadius && A - d <= z) l = !1;l && (A -= d);d = 0;if ("inside" !== k.indexLabelPlacement) { v = A * F;for (a = 0; a < m.length; a++) { var h = g[a];h.indexLabelTextBlock.x = y.x + v * Math.cos(h.midAngle);h.indexLabelTextBlock.y = y.y + v * Math.sin(h.midAngle);h.indexLabelAngle = h.midAngle;h.radius = A;h.percentInnerRadius = E; }for (var s, q, a = 0; a < m.length; a++) { var h = g[a], t = e(a);if (null !== t) { s = g[a];q = g[t];var w = 0, w = b(s, q) - u;if (0 > w) { for (var C = q = 0, D = 0; D < m.length; D++) { D !== a && g[D].hemisphere === h.hemisphere && (g[D].indexLabelTextBlock.y < h.indexLabelTextBlock.y ? q++ : C++); }q = w / (q + C || 1) * C;var C = -1 * (w - q), I = D = 0;"right" === h.hemisphere ? (D = f(a, q), C = -1 * (w - D), I = f(t, C), +I.toFixed(x) < +C.toFixed(x) && +D.toFixed(x) <= +q.toFixed(x) && f(a, -(C - I))) : (D = f(t, q), C = -1 * (w - D), I = f(a, C), +I.toFixed(x) < +C.toFixed(x) && +D.toFixed(x) <= +q.toFixed(x) && f(t, -(C - I))); } } } } else for (a = 0; a < m.length; a++) { h = g[a], v = "pie" === k.type ? 0.7 * A : 0.8 * A, t = y.x + v * Math.cos(h.midAngle), q = y.y + v * Math.sin(h.midAngle), h.indexLabelTextBlock.x = t, h.indexLabelTextBlock.y = q; }for (a = 0; a < m.length; a++) { if (h = g[a], t = h.indexLabelTextBlock.measureText(), 0 !== t.height && 0 !== t.width) t = t = 0, "right" === h.hemisphere ? (t = r.x2 - (h.indexLabelTextBlock.x + h.indexLabelTextBlock.width + p), t *= -1) : t = r.x1 - (h.indexLabelTextBlock.x - h.indexLabelTextBlock.width - p), 0 < t && (!l && h.indexLabelText && (q = "right" === h.hemisphere ? r.x2 - h.indexLabelTextBlock.x : h.indexLabelTextBlock.x - r.x1, 0.3 * h.indexLabelTextBlock.maxWidth > q ? h.indexLabelText = "" : h.indexLabelTextBlock.maxWidth = 0.85 * q, 0.3 * h.indexLabelTextBlock.maxWidth < q && (h.indexLabelTextBlock.x -= "right" === h.hemisphere ? 2 : -2)), Math.abs(h.indexLabelTextBlock.y - h.indexLabelTextBlock.height / 2 - y.y) < A || Math.abs(h.indexLabelTextBlock.y + h.indexLabelTextBlock.height / 2 - y.y) < A) && (t /= Math.abs(Math.cos(h.indexLabelAngle)), 9 < t && (t *= 0.3), t > d && (d = t)), t = t = 0, 0 < h.indexLabelAngle && h.indexLabelAngle < Math.PI ? (t = r.y2 - (h.indexLabelTextBlock.y + h.indexLabelTextBlock.height / 2 + 5), t *= -1) : t = r.y1 - (h.indexLabelTextBlock.y - h.indexLabelTextBlock.height / 2 - 5), 0 < t && (!l && h.indexLabelText && (q = 0 < h.indexLabelAngle && h.indexLabelAngle < Math.PI ? -1 : 1, 0 === f(a, t * q) && f(a, 2 * q)), Math.abs(h.indexLabelTextBlock.x - y.x) < A && (t /= Math.abs(Math.sin(h.indexLabelAngle)), 9 < t && (t *= 0.3), t > d && (d = t))); }var L = function L(a, b, c) { for (var d = [], e = 0; d.push(g[b]), b !== c; b = (b + 1 + m.length) % m.length) {}d.sort(function (a, b) { return a.y - b.y; });for (b = 0; b < d.length; b++) { if (c = d[b], e < 0.7 * a) e += c.indexLabelTextBlock.height, c.indexLabelTextBlock.text = "", c.indexLabelText = "", c.indexLabelTextBlock.measureText();else break; } };(function () { for (var a = -1, c = -1, d = 0, f = !1, k = 0; k < m.length; k++) { if (f = !1, s = g[k], s.indexLabelText) { var l = e(k);if (null !== l) { var h = g[l];w = 0; w = b(s, h);var r;if (r = 0 > w) { r = s.indexLabelTextBlock.x;var q = s.indexLabelTextBlock.y - s.indexLabelTextBlock.height / 2, n = s.indexLabelTextBlock.y + s.indexLabelTextBlock.height / 2, u = h.indexLabelTextBlock.y - h.indexLabelTextBlock.height / 2, t = h.indexLabelTextBlock.x + h.indexLabelTextBlock.width, B = h.indexLabelTextBlock.y + h.indexLabelTextBlock.height / 2;r = s.indexLabelTextBlock.x + s.indexLabelTextBlock.width < h.indexLabelTextBlock.x - p || r > t + p || q > B + p || n < u - p ? !1 : !0; }r ? (0 > a && (a = k), l !== a && (c = l, d += -w), 0 === k % Math.max(m.length / 10, 3) && (f = !0)) : f = !0;f && 0 < d && 0 <= a && 0 <= c && (L(d, a, c), c = a = -1, d = 0); } } }0 < d && L(d, a, c); })(); } }function h() { n.plotArea.layoutManager.reset();n.title && (n.title.dockInsidePlotArea || "center" === n.title.horizontalAlign && "center" === n.title.verticalAlign) && n.title.render();if (n.subtitles) for (var a = 0; a < n.subtitles.length; a++) { var b = n.subtitles[a];(b.dockInsidePlotArea || "center" === b.horizontalAlign && "center" === b.verticalAlign) && b.render(); }n.legend && (n.legend.dockInsidePlotArea || "center" === n.legend.horizontalAlign && "center" === n.legend.verticalAlign) && (n.legend.setLayout(), n.legend.render()); }var n = this;if (!(0 >= a.dataSeriesIndexes.length)) { var k = this.data[a.dataSeriesIndexes[0]], m = k.dataPoints, p = 10, r = this.plotArea, g = k.dataPointEOs, u = 2, v, F = 1.3, t = 20 / 180 * Math.PI, x = 6, y = { x: (r.x2 + r.x1) / 2, y: (r.y2 + r.y1) / 2 }, C = 0;a = !1;for (var w = 0; w < m.length; w++) { C += Math.abs(m[w].y), !a && "undefined" !== typeof m[w].indexLabel && null !== m[w].indexLabel && 0 < m[w].indexLabel.toString().length && (a = !0), !a && "undefined" !== typeof m[w].label && null !== m[w].label && 0 < m[w].label.toString().length && (a = !0); }if (0 !== C) { a = a || "undefined" !== typeof k.indexLabel && null !== k.indexLabel && 0 < k.indexLabel.toString().length;var A = "inside" !== k.indexLabelPlacement && a ? 0.75 * Math.min(r.width, r.height) / 2 : 0.92 * Math.min(r.width, r.height) / 2;k.radius && (A = Sa(k.radius, A));var z = "undefined" !== typeof k.innerRadius && null !== k.innerRadius ? Sa(k.innerRadius, A) : 0.7 * A;k.radius = A;"doughnut" === k.type && (k.innerRadius = z);var E = Math.min(z / A, (A - 1) / A);this.pieDoughnutClickHandler = function (a) { n.isAnimating || !q(a.dataSeries.explodeOnClick) && !a.dataSeries.explodeOnClick || (a = a.dataPoint, a.exploded = a.exploded ? !1 : !0, 1 < this.dataPoints.length && n._animator.animate(0, 500, function (a) { c(a);h();n.dispatchEvent("dataAnimationIterationEnd", { chart: n });n.dispatchEvent("dataAnimationEnd", { chart: n }); })); };d();l();l();l();l();this.disableToolTip = !0;this._animator.animate(0, this.animatedRender ? this.animationDuration : 0, function (a) { var b = n.plotArea.ctx;b.clearRect(r.x1, r.y1, r.width, r.height);b.fillStyle = n.backgroundColor;b.fillRect(r.x1, r.y1, r.width, r.height);for (var b = g[0].startAngle + 2 * Math.PI * a, c = 0; c < m.length; c++) { var d = 0 === c ? g[c].startAngle : e, e = d + (g[c].endAngle - g[c].startAngle), f = !1;e > b && (e = b, f = !0);var l = m[c].color ? m[c].color : k._colorSet[c % k._colorSet.length];e > d && ra(n.plotArea.ctx, g[c].center, g[c].radius, l, k.type, d, e, k.fillOpacity, g[c].percentInnerRadius);if (f) break; }h();n.dispatchEvent("dataAnimationIterationEnd", { chart: n });1 <= a && n.dispatchEvent("dataAnimationEnd", { chart: n }); }, function () { n.disableToolTip = !1;n._animator.animate(0, n.animatedRender ? 500 : 0, function (a) { c(a);h();n.dispatchEvent("dataAnimationIterationEnd", { chart: n }); });n.dispatchEvent("dataAnimationEnd", { chart: n }); }); } } };var ta = function ta(a, d, c, b) { "undefined" === typeof c && (c = 1);0 >= Math.round(d.y4 - d.y1) || (a.save(), a.globalAlpha = c, a.beginPath(), a.moveTo(Math.round(d.x1), Math.round(d.y1)), a.lineTo(Math.round(d.x2), Math.round(d.y2)), a.lineTo(Math.round(d.x3), Math.round(d.y3)), a.lineTo(Math.round(d.x4), Math.round(d.y4)), "undefined" !== d.x5 && (a.lineTo(Math.round(d.x5), Math.round(d.y5)), a.lineTo(Math.round(d.x6), Math.round(d.y6))), a.closePath(), a.fillStyle = b ? b : d.color, a.fill(), a.globalAplha = 1, a.restore()); };n.prototype.renderFunnel = function (a) { function d() { for (var a = 0, b = [], c = 0; c < x.length; c++) { if ("undefined" === typeof x[c].y) return -1;x[c].y = "number" === typeof x[c].y ? x[c].y : 0;a += Math.abs(x[c].y); }if (0 === a) return -1;for (c = b[0] = 0; c < x.length; c++) { b.push(Math.abs(x[c].y) * z / a); }return b; }function c() { var a = V, b = U, c = L, d = X, e, f;e = J;f = N - M;d = Math.abs((f - e) * (b - a + (d - c)) / 2);c = X - L;e = f - e;f = c * (f - N);f = Math.abs(f); f = d + f;for (var d = [], g = 0, k = 0; k < x.length; k++) { if ("undefined" === typeof x[k].y) return -1;x[k].y = "number" === typeof x[k].y ? x[k].y : 0;g += Math.abs(x[k].y); }if (0 === g) return -1;for (var l = d[0] = 0, h = 0, m, p, b = b - a, l = !1, k = 0; k < x.length; k++) { a = Math.abs(x[k].y) * f / g, l ? m = 0 == Number(c.toFixed(3)) ? 0 : a / c : (p = ba * ba * b * b - 4 * Math.abs(ba) * a, 0 > p ? (p = c, l = (b + p) * (e - h) / 2, a -= l, m = e - h, h += e - h, m += 0 == p ? 0 : a / p, h += a / p, l = !0) : (m = (Math.abs(ba) * b - Math.sqrt(p)) / 2, p = b - 2 * m / Math.abs(ba), h += m, h > e && (h -= m, p = c, l = (b + p) * (e - h) / 2, a -= l, m = e - h, h += e - h, m += a / p, h += a / p, l = !0), b = p)), d.push(m); }return d; }function b() { if (t && x) { for (var a, b, c, d, e, f, k, l, h, m, p, r, s, n, u, B = [], y = [], w = { percent: null, total: null }, C = null, A = 0; A < x.length; A++) { u = R[A], u = "undefined" !== typeof u.x5 ? (u.y2 + u.y4) / 2 : (u.y2 + u.y3) / 2, u = g(u).x2 + 1, B[A] = K - u - T; }u = 0.5 * T;for (var A = 0, D = x.length - 1; A < x.length || 0 <= D; A++, D--) { b = t.reversed ? x[D] : x[A];a = b.color ? b.color : t.reversed ? t._colorSet[(x.length - 1 - A) % t._colorSet.length] : t._colorSet[A % t._colorSet.length];c = b.indexLabelPlacement || t.indexLabelPlacement || "outside";n = b.indexLabelTextAlign || t.indexLabelTextAlign || "left";d = b.indexLabelBackgroundColor || t.indexLabelBackgroundColor || (v ? "transparent" : null);e = b.indexLabelFontColor || t.indexLabelFontColor || "#979797";f = q(b.indexLabelFontSize) ? t.indexLabelFontSize : b.indexLabelFontSize;k = b.indexLabelFontStyle || t.indexLabelFontStyle || "normal";l = b.indexLabelFontFamily || t.indexLabelFontFamily || "arial";h = b.indexLabelFontWeight || t.indexLabelFontWeight || "normal";a = b.indexLabelLineColor || t.options.indexLabelLineColor || a;m = "number" === typeof b.indexLabelLineThickness ? b.indexLabelLineThickness : "number" === typeof t.indexLabelLineThickness ? t.indexLabelLineThickness : 2;p = b.indexLabelLineDashType || t.indexLabelLineDashType || "solid";r = "undefined" !== typeof b.indexLabelWrap ? b.indexLabelWrap : "undefined" !== typeof t.indexLabelWrap ? t.indexLabelWrap : !0;s = t.dataPointIds[A];F._eventManager.objectMap[s] = { id: s, objectType: "dataPoint", dataPointIndex: A, dataSeriesIndex: 0, funnelSection: R[t.reversed ? x.length - 1 - A : A] };"inside" === t.indexLabelPlacement && (B[A] = A !== ca ? t.reversed ? R[A].x2 - R[A].x1 : R[A].x3 - R[A].x4 : R[A].x3 - R[A].x6, 20 > B[A] && (B[A] = A !== ca ? t.reversed ? R[A].x3 - R[A].x4 : R[A].x2 - R[A].x1 : R[A].x2 - R[A].x1, B[A] /= 2));s = b.indexLabelMaxWidth ? b.indexLabelMaxWidth : t.options.indexLabelMaxWidth ? t.indexLabelMaxWidth : B[A];if (s > B[A] || 0 > s) s = B[A];y[A] = "inside" === t.indexLabelPlacement ? R[A].height : !1;w = F.getPercentAndTotal(t, b);if (t.indexLabelFormatter || b.indexLabelFormatter) C = { chart: F.options, dataSeries: t, dataPoint: b, total: w.total, percent: w.percent };b = b.indexLabelFormatter ? b.indexLabelFormatter(C) : b.indexLabel ? F.replaceKeywordsWithValue(b.indexLabel, b, t, A) : t.indexLabelFormatter ? t.indexLabelFormatter(C) : t.indexLabel ? F.replaceKeywordsWithValue(t.indexLabel, b, t, A) : b.label ? b.label : "";0 >= m && (m = 0);1E3 > s && 1E3 - s < u && (s += 1E3 - s);Q.roundRect || Ba(Q);c = new ia(Q, { fontSize: f, fontFamily: l, fontColor: e, fontStyle: k, fontWeight: h, horizontalAlign: c, textAlign: n, backgroundColor: d, maxWidth: s, maxHeight: !1 === y[A] ? r ? 4.28571429 * f : 1.5 * f : y[A], text: b, padding: da });c.measureText();H.push({ textBlock: c, id: t.reversed ? D : A, isDirty: !1, lineColor: a, lineThickness: m, lineDashType: p, height: c.height < c.maxHeight ? c.height : c.maxHeight, width: c.width < c.maxWidth ? c.width : c.maxWidth }); } } }function e() { var a, b, c, d, e, f = [];e = !1;c = 0;for (var g, k = K - U - T / 2, k = t.options.indexLabelMaxWidth ? t.indexLabelMaxWidth > k ? k : t.indexLabelMaxWidth : k, l = H.length - 1; 0 <= l; l--) { g = x[H[l].id];c = H[l];d = c.textBlock;b = (a = r(l) < R.length ? H[r(l)] : null) ? a.textBlock : null;c = c.height;a && d.y + c + da > b.y && (e = !0);c = g.indexLabelMaxWidth || k;if (c > k || 0 > c) c = k;f.push(c); }if (e) for (l = H.length - 1; 0 <= l; l--) { a = R[l], H[l].textBlock.maxWidth = f[f.length - (l + 1)], H[l].textBlock.measureText(), H[l].textBlock.x = K - k, c = H[l].textBlock.height < H[l].textBlock.maxHeight ? H[l].textBlock.height : H[l].textBlock.maxHeight, e = H[l].textBlock.width < H[l].textBlock.maxWidth ? H[l].textBlock.width : H[l].textBlock.maxWidth, H[l].height = c, H[l].width = e, c = "undefined" !== typeof a.x5 ? (a.y2 + a.y4) / 2 : (a.y2 + a.y3) / 2, H[l].textBlock.y = c - H[l].height / 2, t.reversed ? (H[l].textBlock.y + H[l].height > W + C && (H[l].textBlock.y = W + C - H[l].height), H[l].textBlock.y < sa - C && (H[l].textBlock.y = sa - C)) : (H[l].textBlock.y < W - C && (H[l].textBlock.y = W - C), H[l].textBlock.y + H[l].height > sa + C && (H[l].textBlock.y = sa + C - H[l].height)); } }function f() { var a, b, c, d;if ("inside" !== t.indexLabelPlacement) for (var e = 0; e < R.length; e++) { 0 == H[e].textBlock.text.length ? H[e].isDirty = !0 : (a = R[e], c = "undefined" !== typeof a.x5 ? (a.y2 + a.y4) / 2 : (a.y2 + a.y3) / 2, b = t.reversed ? "undefined" !== typeof a.x5 ? c > Y ? g(c).x2 + 1 : (a.x2 + a.x3) / 2 + 1 : (a.x2 + a.x3) / 2 + 1 : "undefined" !== typeof a.x5 ? c < Y ? g(c).x2 + 1 : (a.x4 + a.x3) / 2 + 1 : (a.x2 + a.x3) / 2 + 1, H[e].textBlock.x = b + T, H[e].textBlock.y = c - H[e].height / 2, t.reversed ? (H[e].textBlock.y + H[e].height > W + C && (H[e].textBlock.y = W + C - H[e].height), H[e].textBlock.y < sa - C && (H[e].textBlock.y = sa - C)) : (H[e].textBlock.y < W - C && (H[e].textBlock.y = W - C), H[e].textBlock.y + H[e].height > sa + C && (H[e].textBlock.y = sa + C - H[e].height))); } else for (e = 0; e < R.length; e++) { 0 == H[e].textBlock.text.length ? H[e].isDirty = !0 : (a = R[e], b = a.height, c = H[e].height, d = H[e].width, b >= c ? (b = e != ca ? (a.x4 + a.x3) / 2 - d / 2 : (a.x5 + a.x4) / 2 - d / 2, c = e != ca ? (a.y1 + a.y3) / 2 - c / 2 : (a.y1 + a.y4) / 2 - c / 2, H[e].textBlock.x = b, H[e].textBlock.y = c) : H[e].isDirty = !0); } }function l() { function a(b, c) { var d;if (0 > b || b >= H.length) return 0;var e, f = H[b].textBlock;if (0 > c) { c *= -1;e = p(b);d = h(e, b);if (d >= c) return f.y -= c, c;if (0 == b) return 0 < d && (f.y -= d), d;d += a(e, -(c - d));0 < d && (f.y -= d);return d; }e = r(b);d = h(b, e);if (d >= c) return f.y += c, c;if (b == R.length - 1) return 0 < d && (f.y += d), d;d += a(e, c - d);0 < d && (f.y += d);return d; }function b() { var a, d, e, f, g = 0, l;f = (N - J + 2 * C) / m;l = m;for (var k, h = 1; h < l; h++) { e = h * f;for (var s = H.length - 1; 0 <= s; s--) { !H[s].isDirty && H[s].textBlock.y < e && H[s].textBlock.y + H[s].height > e && (k = r(s), !(k >= H.length - 1) && H[s].textBlock.y + H[s].height + da > H[k].textBlock.y && (H[s].textBlock.y = H[s].textBlock.y + H[s].height - e > e - H[s].textBlock.y ? e + 1 : e - H[s].height - 1)); } }for (k = R.length - 1; 0 < k; k--) { if (!H[k].isDirty) { e = p(k);if (0 > e && (e = 0, H[e].isDirty)) break;if (H[k].textBlock.y < H[e].textBlock.y + H[e].height) { d = d || k;f = k;for (l = 0; H[f].textBlock.y < H[e].textBlock.y + H[e].height + da;) { a = a || H[f].textBlock.y + H[f].height;l += H[f].height;l += da;f = e;if (0 >= f) { f = 0;l += H[f].height;break; }e = p(f);if (0 > e) { f = 0;l += H[f].height; break; } }if (f != k) { g = H[f].textBlock.y;a -= g;a = l - a;g = c(a, d, f);break; } } } }return g; }function c(a, b, d) { var e = [], f = 0, g = 0;for (a = Math.abs(a); d <= b; d++) { e.push(R[d]); }e.sort(function (a, b) { return a.height - b.height; });for (d = 0; d < e.length; d++) { if (b = e[d], f < a) g++, f += H[b.id].height + da, H[b.id].textBlock.text = "", H[b.id].indexLabelText = "", H[b.id].isDirty = !0, H[b.id].textBlock.measureText();else break; }return g; }for (var d, e, f, g, l, k, m = 1, q = 0; q < 2 * m; q++) { for (var n = H.length - 1; 0 <= n && !(0 <= p(n) && p(n), f = H[n], g = f.textBlock, k = (l = r(n) < R.length ? H[r(n)] : null) ? l.textBlock : null, d = +f.height.toFixed(6), e = +g.y.toFixed(6), !f.isDirty && l && e + d + da > +k.y.toFixed(6) && (d = g.y + d + da - k.y, e = a(n, -d), e < d && (0 < e && (d -= e), e = a(r(n), d), e != d))); n--) {}b(); } }function h(a, b) { return (b < R.length ? H[b].textBlock.y : t.reversed ? W + C : sa + C) - (0 > a ? t.reversed ? sa - C : W - C : H[a].textBlock.y + H[a].height + da); }function n(a, b, c) { var d, e, g, l = [], h = C, p = [];-1 !== b && (0 <= Z.indexOf(b) ? (e = Z.indexOf(b), Z.splice(e, 1)) : (Z.push(b), Z = Z.sort(function (a, b) { return a - b; })));if (0 === Z.length) l = fa;else { e = C * (1 != Z.length || 0 != Z[0] && Z[0] != R.length - 1 ? 2 : 1) / k();for (var s = 0; s < R.length; s++) { if (1 == Z.length && 0 == Z[0]) { if (0 === s) { l.push(fa[s]);d = h;continue; } } else 0 === s && (d = -1 * h);l.push(fa[s] + d);if (0 <= Z.indexOf(s) || s < R.length && 0 <= Z.indexOf(s + 1)) d += e; } }g = function () { for (var a = [], b = 0; b < R.length; b++) { a.push(l[b] - R[b].y1); }return a; }();var r = { startTime: new Date().getTime(), duration: c || 500, easingFunction: function easingFunction(a, b, c, d) { return P.easing.easeOutQuart(a, b, c, d); }, changeSection: function changeSection(a) { for (var b, c, d = 0; d < R.length; d++) { b = g[d], c = R[d], b *= a, "undefined" === typeof p[d] && (p[d] = 0), 0 > p && (p *= -1), c.y1 += b - p[d], c.y2 += b - p[d], c.y3 += b - p[d], c.y4 += b - p[d], c.y5 && (c.y5 += b - p[d], c.y6 += b - p[d]), p[d] = b; } } };a._animator.animate(0, c, function (c) { var d = a.plotArea.ctx || a.ctx;ga = !0;d.clearRect(y.x1, y.y1, y.x2 - y.x1, y.y2 - y.y1);d.fillStyle = a.backgroundColor;d.fillRect(y.x1, y.y1, y.width, y.height);r.changeSection(c, b);var e = {};e.dataSeries = t;e.dataPoint = t.reversed ? t.dataPoints[x.length - 1 - b] : t.dataPoints[b];e.index = t.reversed ? x.length - 1 - b : b;a.toolTip.highlightObjects([e]);for (e = 0; e < R.length; e++) { ta(d, R[e], t.fillOpacity); }w(d);O && ("inside" !== t.indexLabelPlacement ? m(d) : f(), u(d));1 <= c && (ga = !1); }, null, P.easing.easeOutQuart); }function k() { for (var a = 0, b = 0; b < R.length - 1; b++) { (0 <= Z.indexOf(b) || 0 <= Z.indexOf(b + 1)) && a++; }return a; }function m(a) { for (var b, c, d, e, f = 0; f < R.length; f++) { e = 1 === H[f].lineThickness % 2 ? 0.5 : 0, c = ((R[f].y2 + R[f].y4) / 2 << 0) + e, b = g(c).x2 - 1, d = H[f].textBlock.x, e = (H[f].textBlock.y + H[f].height / 2 << 0) + e, H[f].isDirty || 0 == H[f].lineThickness || (a.strokeStyle = H[f].lineColor, a.lineWidth = H[f].lineThickness, a.setLineDash && a.setLineDash(I(H[f].lineDashType, H[f].lineThickness)), a.beginPath(), a.moveTo(b, c), a.lineTo(d, e), a.stroke()); } }function p(a) { for (a -= 1; -1 <= a && -1 != a && H[a].isDirty; a--) {}return a; }function r(a) { for (a += 1; a <= R.length && a != R.length && H[a].isDirty; a++) {}return a; }function g(a) { for (var b, c = 0; c < x.length; c++) { if (R[c].y1 < a && R[c].y4 > a) { b = R[c];break; } }return b ? (a = b.y6 ? a > b.y6 ? b.x3 + (b.x4 - b.x3) / (b.y4 - b.y3) * (a - b.y3) : b.x2 + (b.x3 - b.x2) / (b.y3 - b.y2) * (a - b.y2) : b.x2 + (b.x3 - b.x2) / (b.y3 - b.y2) * (a - b.y2), { x1: a, x2: a }) : -1; }function u(a) { for (var b = 0; b < R.length; b++) { H[b].isDirty || (a && (H[b].textBlock.ctx = a), H[b].textBlock.render(!0)); } }function w(a) { F.plotArea.layoutManager.reset();a.roundRect || Ba(a);F.title && (F.title.dockInsidePlotArea || "center" === F.title.horizontalAlign && "center" === F.title.verticalAlign) && (F.title.ctx = a, F.title.render());if (F.subtitles) for (var b = 0; b < F.subtitles.length; b++) { var c = F.subtitles[b];if (c.dockInsidePlotArea || "center" === c.horizontalAlign && "center" === c.verticalAlign) F.subtitles.ctx = a, c.render(); }F.legend && (F.legend.dockInsidePlotArea || "center" === F.legend.horizontalAlign && "center" === F.legend.verticalAlign) && (F.legend.ctx = a, F.legend.setLayout(), F.legend.render());Ga.fNg && Ga.fNg(F); }var F = this;if (!(0 >= a.dataSeriesIndexes.length)) { for (var t = this.data[a.dataSeriesIndexes[0]], x = t.dataPoints, y = this.plotArea, C = 0.025 * y.width, D = 0.01 * y.width, A = 0, z = y.height - 2 * C, E = Math.min(y.width - 2 * D, 2.8 * y.height), O = !1, S = 0; S < x.length; S++) { if (!O && "undefined" !== typeof x[S].indexLabel && null !== x[S].indexLabel && 0 < x[S].indexLabel.toString().length && (O = !0), !O && "undefined" !== typeof x[S].label && null !== x[S].label && 0 < x[S].label.toString().length && (O = !0), !O && "function" === typeof t.indexLabelFormatter || "function" === typeof x[S].indexLabelFormatter) O = !0; }O = O || "undefined" !== typeof t.indexLabel && null !== t.indexLabel && 0 < t.indexLabel.toString().length;"inside" !== t.indexLabelPlacement && O || (D = (y.width - 0.75 * E) / 2);var S = y.x1 + D, K = y.x2 - D, J = y.y1 + C, N = y.y2 - C, Q = a.targetCanvasCtx || this.plotArea.ctx || this.ctx;if (0 != t.length && t.dataPoints && t.visible && 0 !== x.length) { var M, G;a = 75 * E / 100;var T = 30 * (K - a) / 100;"funnel" === t.type ? (M = q(t.options.neckHeight) ? 0.35 * z : t.neckHeight, G = q(t.options.neckWidth) ? 0.25 * a : t.neckWidth, "string" === typeof M && M.match(/%$/) ? (M = parseInt(M), M = M * z / 100) : M = parseInt(M), "string" === typeof G && G.match(/%$/) ? (G = parseInt(G), G = G * a / 100) : G = parseInt(G), M > z ? M = z : 0 >= M && (M = 0), G > a ? G = a - 0.5 : 0 >= G && (G = 0)) : "pyramid" === t.type && (G = M = 0, t.reversed = t.reversed ? !1 : !0);var D = S + a / 2, V = S, U = S + a, W = t.reversed ? N : J, L = D - G / 2, X = D + G / 2, Y = t.reversed ? J + M : N - M, sa = t.reversed ? J : N;a = [];var D = [], R = [], E = [], $ = J, ca, ba = (Y - W) / (L - V), ea = -ba, S = "area" === (t.valueRepresents ? t.valueRepresents : "height") ? c() : d();if (-1 !== S) { if (t.reversed) for (E.push($), G = S.length - 1; 0 < G; G--) { $ += S[G], E.push($); } else for (G = 0; G < S.length; G++) { $ += S[G], E.push($); }if (t.reversed) for (G = 0; G < S.length; G++) { E[G] < Y ? (a.push(L), D.push(X), ca = G) : (a.push((E[G] - W + ba * V) / ba), D.push((E[G] - W + ea * U) / ea)); } else for (G = 0; G < S.length; G++) { E[G] < Y ? (a.push((E[G] - W + ba * V) / ba), D.push((E[G] - W + ea * U) / ea), ca = G) : (a.push(L), D.push(X)); }for (G = 0; G < S.length - 1; G++) { $ = t.reversed ? x[x.length - 1 - G].color ? x[x.length - 1 - G].color : t._colorSet[(x.length - 1 - G) % t._colorSet.length] : x[G].color ? x[G].color : t._colorSet[G % t._colorSet.length], G === ca ? R.push({ x1: a[G], y1: E[G], x2: D[G], y2: E[G], x3: X, y3: Y, x4: D[G + 1], y4: E[G + 1], x5: a[G + 1], y5: E[G + 1], x6: L, y6: Y, id: G, height: E[G + 1] - E[G], color: $ }) : R.push({ x1: a[G], y1: E[G], x2: D[G], y2: E[G], x3: D[G + 1], y3: E[G + 1], x4: a[G + 1], y4: E[G + 1], id: G, height: E[G + 1] - E[G], color: $ }); }var da = 2, H = [], ga = !1, Z = [], fa = [], S = !1;a = a = 0;Ca(Z);for (G = 0; G < x.length; G++) { x[G].exploded && (S = !0, t.reversed ? Z.push(x.length - 1 - G) : Z.push(G)); }Q.clearRect(y.x1, y.y1, y.width, y.height);Q.fillStyle = F.backgroundColor;Q.fillRect(y.x1, y.y1, y.width, y.height);if (O && t.visible && (b(), f(), e(), "inside" !== t.indexLabelPlacement)) { l();for (G = 0; G < x.length; G++) { H[G].isDirty || (a = H[G].textBlock.x + H[G].width, a = (K - a) / 2, 0 == G && (A = a), A > a && (A = a)); }for (G = 0; G < R.length; G++) { R[G].x1 += A, R[G].x2 += A, R[G].x3 += A, R[G].x4 += A, R[G].x5 && (R[G].x5 += A, R[G].x6 += A), H[G].textBlock.x += A; } }for (G = 0; G < R.length; G++) { A = R[G], ta(Q, A, t.fillOpacity), fa.push(A.y1); }w(Q);O && t.visible && ("inside" === t.indexLabelPlacement || F.animationEnabled || m(Q), F.animationEnabled || u());if (!O) for (G = 0; G < x.length; G++) { A = t.dataPointIds[G], a = { id: A, objectType: "dataPoint", dataPointIndex: G, dataSeriesIndex: 0, funnelSection: R[t.reversed ? x.length - 1 - G : G] }, F._eventManager.objectMap[A] = a; }!F.animationEnabled && S ? n(F, -1, 0) : F.animationEnabled && !F.animatedRender && n(F, -1, 0);this.funnelPyramidClickHandler = function (a) { var b = -1;if (!ga && !F.isAnimating && (q(a.dataSeries.explodeOnClick) || a.dataSeries.explodeOnClick) && (b = t.reversed ? x.length - 1 - a.dataPointIndex : a.dataPointIndex, 0 <= b)) { a = b;if ("funnel" === t.type || "pyramid" === t.type) t.reversed ? x[x.length - 1 - a].exploded = x[x.length - 1 - a].exploded ? !1 : !0 : x[a].exploded = x[a].exploded ? !1 : !0;n(F, b, 500); } };return { source: Q, dest: this.plotArea.ctx, animationCallback: function animationCallback(a, b) { P.fadeInAnimation(a, b);1 <= a && (n(F, -1, 500), w(F.plotArea.ctx || F.ctx)); }, easingFunction: P.easing.easeInQuad, animationBase: 0 }; } } } };n.prototype.requestAnimFrame = function () { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (a) { window.setTimeout(a, 1E3 / 60); }; }();n.prototype.cancelRequestAnimFrame = window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || clearTimeout;n.prototype.set = function (a, d, c) { c = "undefined" === typeof c ? !0 : c;"options" === a ? (this.options = d, c && this.render()) : n.base.set.call(this, a, d, c); };n.prototype.exportChart = function (a) { a = "undefined" === typeof a ? {} : a;var d = a.format ? a.format : "png", c = a.fileName ? a.fileName : this.exportFileName;if (a.toDataURL) return this.canvas.toDataURL("image/" + d);var b = this.canvas;if (b && d && c) { c = c + "." + d;a = "image/" + d;var b = b.toDataURL(a), e = !1, f = document.createElement("a");f.download = c;f.href = b;if ("undefined" !== typeof Blob && new Blob()) { for (var l = b.replace(/^data:[a-z\/]*;base64,/, ""), l = atob(l), h = new ArrayBuffer(l.length), h = new Uint8Array(h), q = 0; q < l.length; q++) { h[q] = l.charCodeAt(q); }d = new Blob([h.buffer], { type: "image/" + d });try { window.navigator.msSaveBlob(d, c), e = !0; } catch (k) { f.dataset.downloadurl = [a, f.download, f.href].join(":"), f.href = window.URL.createObjectURL(d); } }if (!e) try { event = document.createEvent("MouseEvents"), event.initMouseEvent("click", !0, !1, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), f.dispatchEvent ? f.dispatchEvent(event) : f.fireEvent && f.fireEvent("onclick"); } catch (m) { d = window.open(), d.document.write("