/* Highcharts Editor v0.3.0 Copyright (c) 2016-2017, Highsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ function parseCSV(e,t){var i=(highed.isStr,highed.isArray,highed.isNum),o=e||"",n=[],d={delimiter:t},a={",":!0,";":!0,"\t":!0},h={",":0,";":0,"\t":0};return rows=(o||"").replace(/\r\n/g,"\n").split("\n"),d.delimiter||(rows.some(function(e,t){if(t>10)return!0;for(var o,n,d,l=!1,s="",r=0;rh[";"]&&h[","]>h["\t"]&&(d.delimiter=","),h["\t"]>=h[";"]&&h["\t"]>=h[","]&&(d.delimiter="\t")),rows.forEach(function(e,t){function o(){g=(g||"").replace(/\,/g,""),g.length||(g=null),i(g)&&(g=parseFloat(g)),s.push(g),g=""}var a,h,l,s=[],r=!1,c=0,g="";for(c=0;c ',icons:{line:' ',area:' ',bar:' ',column:' ',more:' ', pie:' ',polar:' ',"scatter and bubble":' ',stock:' '}},download:function(e,t,i){var o=highed.dom.cr("a");i=i||"application/octet-stream",o.download=e||"unkown",o.href="data:"+i+","+encodeURIComponent(t),highed.dom.ap(document.body,o),o.click(),document.body.removeChild(o)},clearObj:function(e){Object.keys(e).forEach(function(t){delete e[t]})},ajax:function(e){function t(){try{n.send(JSON.stringify(i.data))}catch(e){n.send(i.data||!0)}}var i=highed.merge({url:!1,type:"GET",dataType:"json",success:!1,error:!1,data:{},autoFire:!0,headers:{}},e),o={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},n=new XMLHttpRequest,d=highed.events();return!!i.url&&(n.open(i.type,i.url,!0),n.setRequestHeader("Content-Type",o[i.dataType]||o.text),Object.keys(i.headers).forEach(function(e){n.setRequestHeader(e,i.headers[e])}),n.onreadystatechange=function(){if(d.emit("ReadyStateChange",n.readyState,n.status),4===n.readyState&&200===n.status)if("json"===i.dataType)try{var e=JSON.parse(n.responseText);highed.isFn(i.success)&&i.success(e),d.emit("OK",e)}catch(e){console.log("parse error",e),highed.isFn(i.error)&&i.error(e.toString(),n.responseText),d.emit("Error",e.toString(),n.status)}else highed.isFn(i.success)&&i.success(n.responseText),d.emit("OK",n.responseText);else 4===n.readyState&&(d.emit("Error",n.status,n.statusText),highed.isFn(i.error)&&i.error(n.status,n.statusText))},i.autoFire&&t(),{on:d.on,fire:t,request:n})},uuid:function(){var e,t=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(t+=window.performance.now()),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?i:3&i|8).toString(16)})},arrToObj:function(e){var t={};return!highed.isArr(e)&&!highed.isBasic(e)||e===!1?e:(highed.isStr(e)&&(e=e.split(" ")),e.forEach(function(e){t[e]=!0}),t)},uncamelize:function(e){var t="";if(!e)return e;if(e.length<0||!e)return e;for(var i=0;it?t:i},hexToRgb:function(e){if(!e||highed.isObj(e))return{r:0,g:0,b:0};if(0===e.indexOf("rgba"))return e=e.substr(5).replace(")","").split(","),{r:parseInt(e[0],10),g:parseInt(e[1],10),b:parseInt(e[2],10),a:parseInt(e[3],10)};4===e.length&&(e+=e[e.length-1],e+=e[e.length-1],e+=e[e.length-1]);var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}},invertHexColor:function(e){var t=highed.hexToRgb(e),i=0;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,i=t.r<<16,i|=t.g<<8,i|=t.b,"#"+i},getContrastedColor:function(e){var t=highed.hexToRgb(e),i=(t.r+t.g+t.b)/3;return i>150?"#000":"#FFF"},toBool:function(e){return"true"===e||e===!0||"on"===e},setAttr:function(e,t,i,o){var n=e;if(n){if(highed.isArr(e))return void e.forEach(function(e){highed.setAttr(e,t,i,o)});t=t.replace(/\-\-/g,".").replace(/\-/g,".").split("."),t.forEach(function(e,d){if(d===t.length-1)n[e]=i;else if("undefined"==typeof n[e])n=n[e]={};else if(n=n[e],highed.isArr(n)){if(o>n.length-1)for(var a=n.length;a<=o;a++)n.push({});o>=0&&(n=n[o])}})}},getAttr:function(e,t,i){var o=e,n=void 0;return o?highed.isArr(e)?(e.forEach(function(e){n=highed.getAttr(e,t)}),n):(t=t.replace(/\-\-/g,".").replace(/\-/g,".").split("."),t.forEach(function(e,d){d===t.length-1?"undefined"!=typeof o&&(n=o[e]):"undefined"==typeof o[e]?o=o[e]={}:(o=o[e],highed.isArr(o)&&i>=0&&i-1},merge:function(e,t,i,o){if(!e||!t)return e||t;if(!i||0!==Object.keys(t).length)return Object.keys(t).forEach(function(n){if(o&&o[n]);else if(highed.isNull(t[n])||highed.isBasic(t[n]))e[n]=t[n];else if(highed.isArr(t[n])){if(highed.isEmptyObjectArray(t[n]))return;e[n]=[],t[n].forEach(function(t){highed.isNull(t)||highed.isBasic(t)?e[n].push(t):e[n].push(highed.merge(highed.isArr(t)?[]:{},t))})}else if(t[n].tagName&&t[n].appendChild&&t[n].removeChild&&t[n].style)e[n]=t[n];else{if(i&&0===Object.keys(t[n]).length)return;e[n]=e[n]||{},highed.merge(e[n],t[n])}}),e},isNull:function(e){return"undefined"==typeof e||null===e},isStr:function(e){return"string"==typeof e||e instanceof String},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isFn:function(e){return e&&"function"==typeof e||e instanceof Function},isArr:function(e){return!highed.isNull(e)&&e.constructor.toString().indexOf("Array")>-1},isBool:function(e){return e===!0||e===!1},isBasic:function(e){return!highed.isArr(e)&&(highed.isStr(e)||highed.isNum(e)||highed.isBool(e)||highed.isFn(e))},parseCSV:function(e,t){var i,o=(highed.isStr,highed.isArray,highed.isNum),n=e||"",d=[],a={delimiter:t},h={",":!0,";":!0,"\t":!0},l={",":0,";":0,"\t":0};return i=(n||"").replace(/\r\n/g,"\n").split("\n"),a.delimiter||(i.some(function(e,t){if(t>10)return!0;for(var i,n,d,a=!1,s="",r=0;rl[";"]&&l[","]>l["\t"]&&(a.delimiter=","),l["\t"]>=l[";"]&&l["\t"]>=l[","]&&(a.delimiter="\t")),i.forEach(function(e,t){function i(){g.length||(g=null),o(g)&&(g=parseFloat(g)),s.push(g),g=""}var n,h,l,s=[],r=!1,c=0,g="";for(c=0;cnull) the width is calculated from the offset width of the containing element.","option.text.chart.height":"Chart height","option.tooltip.chart.height":"An explicit height for the chart. By default (when null) the height is calculated from the offset height of the containing element, or 400 pixels if the containing element's height is 0.","option.text.chart.zoomType":"Allow zooming","option.tooltip.chart.zoomType":"Decides in what dimensions the user can zoom by dragging the mouse. Can be one of x, y or xy.","option.text.plotOptions.series.states.inactive.opacity":"Series Dimming","option.tooltip.plotOptions.series.states.inactive.opacity":"Opacity of series elements (dataLabels, line, area).","option.text.chart.polar":"Polar (radar) projection","option.tooltip.chart.polar":"When true, cartesian charts like line, spline, area and column are transformed into the polar coordinate system. Requires highcharts-more.js.","option.text.chart.style":"Font family","option.tooltip.chart.style":"The font to use throughout the chart","option.text.title.style":"Main title style","option.tooltip.title.style":"Styling for the main chart title","option.text.subtitle.style":"Subtitle style","option.tooltip.subtitle.style":"Styling for the chart's subtitle, normally displayed with smaller fonts below the main title","option.text.colors":"Colors","option.tooltip.colors":"Default colors for the data series, or for individual points in a pie series or a column series with individual colors. Colors will be picked in succession. If a color is explicitly set for each series in the Data series view, that color will take precedence.","option.text.chart.backgroundColor":"Background color","option.tooltip.chart.backgroundColor":"Background color for the full chart area","option.text.chart.borderWidth":"Border width","option.tooltip.chart.borderWidth":"The pixel width of the outer chart border.","option.text.chart.borderRadius":"Border corner radius","option.tooltip.chart.borderRadius":"The corner radius of the outer chart border.","option.text.chart.borderColor":"Border color","option.tooltip.chart.borderColor":"The color of the outer chart border.","option.text.chart.plotBackgroundColor":"Background color","option.tooltip.chart.plotBackgroundColor":"Background color for the plot area, the area inside the axes","option.text.chart.plotBackgroundImage":"Background image URL","option.tooltip.chart.plotBackgroundImage":"The online URL for an image to use as the plot area background","option.text.chart.plotBorderWidth":"Border width","option.tooltip.chart.plotBorderWidth":"The pixel width of the plot area border.","option.text.chart.plotBorderColor":"Border color","option.tooltip.chart.plotBorderColor":"The color of the inner chart or plot area border.","option.text.chart.inverted":"Inverted axes","option.tooltip.chart.inverted":'

Whether to invert the axes so that the x axis is vertical and y axis is horizontal. When true, the x axis is reversed by default. If a bar series is present in the chart, it will be inverted automatically.

\r\n\r\n

Inverting the chart doesn\'t have an effect if there are no cartesian series in the chart, or if the chart is polar.

',"option.text.xAxis.title.style":"X axis title","option.tooltip.xAxis.title.style":"Styling and text for the X axis title","option.text.xAxis.title.text":"Text","option.tooltip.xAxis.title.text":"The actual text of the axis title. It can contain basic HTML text markup like <b>, <i> and spans with style.","option.text.xAxis.type":"Type","option.tooltip.xAxis.type":"The type of axis","option.text.xAxis.opposite":"Opposite side of chart","option.tooltip.xAxis.opposite":"Whether to display the axis on the opposite side of the normal. The normal is on the left side for vertical axes and bottom for horizontal, so the opposite sides will be right and top respectively. This is typically used with dual or multiple axes.","option.text.xAxis.margin":"Margin","option.tooltip.xaxis.margin":"If there are multiple axes on the same side of the chart, the pixel margin between the axes.","option.text.xAxis.reversed":"Reversed direction","option.tooltip.xAxis.reversed":"Whether to reverse the axis so that the highest number is closest to the origin. If the chart is inverted, the x axis is reversed by default.","option.text.xAxis.labels.format":"Axis labels format","option.tooltip.xAxis.labels.format":"

A format string for the axis labels. The value is available through a variable {value}.

Units can be added for example like {value} USD.

Formatting can be added after a colon inside the variable, for example USD {value:.2f} to display two decimals, or {value:%Y-%m-%d} for a certain time format.","option.text.yAxis.title.style":"Y axis title style","option.tooltip.yAxis.title.style":"Styling and text for the X axis title","option.text.yAxis.type":"Type","option.tooltip.yAxis.type":"The type of axis","option.text.yAxis.opposite":"Opposite side of chart","option.tooltip.yAxis.opposite":"Whether to display the axis on the opposite side of the normal. The normal is on the left side for vertical axes and bottom for horizontal, so the opposite sides will be right and top respectively. This is typically used with dual or multiple axes.","option.text.yAxis.reversed":"Reversed direction","option.tooltip.yAxis.reversed":"Whether to reverse the axis so that the highest number is closest to the origin. If the chart is inverted, the x axis is reversed by default.","option.text.yAxis.labels.format":"Axis labels format","option.tooltip.yAxis.labels.format":"

A format string for the axis labels. The value is available through a variable {value}.

Units can be added for example like {value} USD.

Formatting can be added after a colon inside the variable, for example USD {value:.2f} to display two decimals, or {value:%Y-%m-%d} for a certain time format.","option.text.series.type":"Series type","option.tooltip.series.type":"The type of series","option.text.series.color":"Color","option.tooltip.series.color":'The main color of the series. If no color is given here, the color is pulled from the array of default colors as given in the "Appearance" section.',"option.text.series.negativeColor":"Negative color","option.tooltip.series.negativeColor":"The negative color of the series below the threshold. Threshold is default zero, this can be changed in the advanced settings.","option.text.series.colorByPoint":"Color by point","option.tooltip.series.colorByPoint":'Use one color per point. Colors can be changed in the "Appearance" section.',"option.text.series.dashStyle":"Dash style","option.tooltip.series.dashStyle":"A name for the dash style to use for the graph. Applies only to series type having a graph, like line, spline, area and scatter in case it has a lineWidth. The value for the dashStyle include:\r\n\t\t

    \r\n\t\t \t
  • Solid
  • \r\n\t\t \t
  • ShortDash
  • \r\n\t\t \t
  • ShortDot
  • \r\n\t\t \t
  • ShortDashDot
  • \r\n\t\t \t
  • ShortDashDotDot
  • \r\n\t\t \t
  • Dot
  • \r\n\t\t \t
  • Dash
  • \r\n\t\t \t
  • LongDash
  • \r\n\t\t \t
  • DashDot
  • \r\n\t\t \t
  • LongDashDot
  • \r\n\t\t \t
  • LongDashDotDot
  • \r\n\t\t
","option.text.series.marker.enabled":"Enable point markers","option.tooltip.series.marker.enabled":"Enable or disable the point marker. If null, the markers are hidden when the data is dense, and shown for more widespread data points.","option.text.series.marker.symbol":"Marker symbol","option.tooltip.series.marker.symbol":'

A predefined shape or symbol for the marker. When null, the symbol is pulled from options.symbols. Other possible values are "circle", "square", "diamond", "triangle" and "triangle-down".

\r\n\r\n

Additionally, the URL to a graphic can be given on this form: "url(graphic.png)". Note that for the image to be applied to exported charts, its URL needs to be accessible by the export server.

\r\n\r\n

Custom callbacks for symbol path generation can also be added to Highcharts.SVGRenderer.prototype.symbols. The callback is then used by its method name, as shown in the demo.

',"option.text.plotOptions.series.dataLabels.enabled":"Enable data labels for all series","option.tooltip.plotOptions.series.dataLabels.enabled":"Show small labels next to each data value (point, column, pie slice etc)","option.text.plotOptions.series.dataLabels.style":"Text style","option.tooltip.plotOptions.series.dataLabels.style":"Styles for the label.","option.text.legend.enabled":"Enable legend","option.tooltip.legend.enabled":"Enable or disable the legend.","option.text.legend.layout":"Item layout","option.text.legend.labelFormat":"Label Format","option.tooltip.legend.labelFormat":"A format string for each legend label","option.tooltip.legend.layout":'The layout of the legend items. Can be one of "horizontal" or "vertical".',"option.text.legend.align":"Horizontal alignment","option.tooltip.legend.align":"

The horizontal alignment of the legend box within the chart area. Valid values are left, center and right.

\r\n\r\n

In the case that the legend is aligned in a corner position, the layout option will determine whether to place it above/below or on the side of the plot area.

","option.text.legend.x":"Horizontal offset","option.tooltip.legend.x":"The pixel offset of the legend relative to its alignment","option.text.legend.verticalAlign":"Vertical alignment","option.tooltip.legend.verticalAlign":"

The vertical alignment of the legend box. Can be one of top, middle or bottom. Vertical position can be further determined by the y option.

\r\n\r\n

In the case that the legend is aligned in a corner position, the layout option will determine whether to place it above/below or on the side of the plot area.

","option.text.legend.y":"Vertical offset","option.tooltip.legend.y":"The pixel offset of the legend relative to its alignment","option.text.legend.floating":"Float on top of plot area","option.tooltip.legend.floating":"When the legend is floating, the plot area ignores it and is allowed to be placed below it.","option.text.legend.itemStyle":"Text style","option.tooltip.legend.itemStyle":"CSS styles for each legend item. Only a subset of CSS is supported, notably those options related to text.","option.text.legend.itemHiddenStyle":"Text style hidden","option.tooltip.legend.itemHiddenStyle":"CSS styles for each legend item when the corresponding series or point is hidden. Only a subset of CSS is supported, notably those options related to text. Properties are inherited from style unless overridden here.","option.text.legend.backgroundColor":"Background color","option.tooltip.legend.backgroundColor":"The background color of the legend.","option.text.legend.borderWidth":"Border width","option.tooltip.legend.borderWidth":"The width of the drawn border around the legend.","option.text.legend.borderRadius":"Border corner radius","option.tooltip.legend.borderRadius":"The border corner radius of the legend.","option.text.legend.borderColor":"Border color","option.tooltip.legend.borderColor":"The color of the drawn border around the legend.","option.text.tooltip.enabled":"Enable tooltip","option.tooltip.tooltip.enabled":"Enable or disable the tooltip. The tooltip is the information box that appears on mouse-over or touch on a point.","option.text.tooltip.shared":"Shared between series","option.tooltip.tooltip.shared":"When the tooltip is shared, the entire plot area will capture mouse movement or touch events. Tooltip texts for series types with ordered data (not pie, scatter, flags etc) will be shown in a single bubble. This is recommended for single series charts and for tablet/mobile optimized charts.","option.text.tooltip.backgroundColor":"Background color","option.tooltip.tooltip.backgroundColor":"The background color of the tooltip","option.text.tooltip.valueSuffix":"Value Suffix","option.tooltip.tooltip.valueSuffix":"A string to append to each series y value","option.text.tooltip.borderWidth":"Border width","option.tooltip.tooltip.borderWidth":'

The pixel width of the tooltip border.

\r\n\r\n

In styled mode, the stroke width is set in the .highcharts-tooltip-box class.

',"option.text.tooltip.borderRadius":"Border corner radius","option.tooltip.tooltip.borderRadius":"The radius of the rounded border corners.","option.text.tooltip.borderColor":"Border color","option.tooltip.tooltip.borderColor":"The border color of the tooltip. If no color is given, the corresponding series color is used.","option.text.exporting.enabled":"Enable exporting","option.tooltip.exporting.enabled":"Enable the context button on the top right of the chart, allowing end users to download image exports.","option.text.exporting.sourceWidth":"Exported width","option.tooltip.exporting.sourceWidth":"The width of the original chart when exported. The pixel width of the exported image is then multiplied by the Scaling factor.","option.text.exporting.scale":"Scaling factor","option.tooltip.exporting.scale":"The export scale. Note that this is overridden if width is set.","option.text.exporting.offlineExporting":"Offline Exporting","option.tooltip.exporting.offlineExporting":"The offline-exporting module allows for image export of charts without sending data to an external server","option.text.lang.decimalPoint":"Decimal point","option.tooltip.lang.decimalPoint":"The decimal point used for all numbers","option.text.lang.thousandsSep":"Thousands separator","option.tooltip.lang.thousandsSep":"The thousands separator used for all numbers","option.text.lang.contextButtonTitle":"Context button title","option.tooltip.lang.contextButtonTitle":"Exporting module menu. The tooltip title for the context menu holding print and export menu items.","option.text.lang.printChart":"Print chart","option.tooltip.lang.printChart":"Exporting module only. The text for the menu item to print the chart.","option.text.lang.downloadPNG":"Download PNG","option.tooltip.lang.downloadPNG":"Exporting module only. The text for the PNG download menu item.","option.text.lang.downloadJPEG":"Download JPEG","option.tooltip.lang.downloadJPEG":"Exporting module only. The text for the JPEG download menu item.","option.text.lang.downloadPDF":"Download PDF","option.tooltip.lang.downloadPDF":"Exporting module only. The text for the PDF download menu item.","option.text.lang.downloadSVG":"Download SVG","option.tooltip.lang.downloadSVG":"Exporting module only. The text for the SVG download menu item.","option.text.lang.resetZoom":"Reset zoom button","option.tooltip.lang.resetZoom":"The text for the label appearing when a chart is zoomed.","option.text.credits.enabled":"Enable credits","option.tooltip.credits.enabled":"Whether to show the credits text","option.text.credits.text":"Credits text","option.tooltip.credits.text":"The text for the credits label","option.text.credits.href":"Link","option.tooltip.credits.href":"The URL for the credits label"}}),highed.dom={isVisible:function(e){var t=window.getComputedStyle(e);return"none"!==t.display},ap:function(e){var t=Array.prototype.slice.call(arguments);return t.splice(0,1),e=highed.dom.get(e),highed.isNull(e)||"undefined"==typeof e.appendChild?highed.log(1,"target is not a valid DOM node (highed.dom.ap)"):t.forEach(function(t){highed.isArr(t)?t.forEach(function(t){highed.dom.ap(e,t)}):"undefined"!=typeof t&&"undefined"!=typeof t.appendChild?e.appendChild(t):t!==!1&&highed.log(1,"child is not valid (highed.dom.ap)")}),e},options:function(e,t,i){if(highed.isNull(t));else if(highed.isArr(t))t.forEach(function(t){highed.dom.ap(e,highed.dom.cr("option","",t,t))}),i&&(e.selectedIndex=i);else if(highed.isStr(t))try{highed.dom.options(e,JSON.parse(t))}catch(e){highed.log(e+" in highed.options (json parser)")}else Object.keys(t).forEach(function(i){highed.dom.ap(e,highed.dom.cr("option","",t[i],i))})},showOnHover:function(e,t){return highed.isArr(t)?void t.forEach(function(t){highed.dom.showOnHover(e,t)}):(highed.dom.on(e,"mouseover",function(){highed.dom.style(t,{opacity:1,"pointer-events":"auto"})}),void highed.dom.on(e,"mouseout",function(){highed.dom.style(t,{opacity:0,"pointer-events":"none"})}))},cr:function(e,t,i,o){var n=!1;return"undefined"!=typeof e?(n=document.createElement(e),"undefined"!=typeof t&&(n.className=t),"undefined"!=typeof i&&"object"!=typeof i&&(n.innerHTML=i),"undefined"!=typeof o&&(n.id=o)):highed.log(1,"no node type supplied (highed.dom.cr"),n},style:function(e,t){return highed.isArr(e)?(e.forEach(function(e){highed.dom.style(e,t)}),e):!(!e||!e.style)&&(Object.keys(t).forEach(function(i){e.style[i]=t[i]}),e)},on:function(e,t,i,o){function n(){if(highed.isFn(i))return i.apply(o,arguments)}var d=[];return e?highed.isArr(t)?(t.forEach(function(t){d.push(highed.dom.on(e,t,i,o))}),function(){d.forEach(function(e){e()})}):(e===document.body&&"resize"===t,e&&e.forEach&&e.forEach(function(e){d.push(highed.dom.on(e,t,i))}),d.length>0?function(){d.forEach(function(e){e()})}:(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n,!1),function(){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)})):function(){}},nodefault:function(e){return e.cancelBubble=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1},val:function(e,t){if("SELECT"!==e.tagName)return"INPUT"===e.tagName?"checkbox"===e.type?(highed.isNull(t)||(e.checked=highed.toBool(t)),e.checked):(highed.isNull(t)||(e.value=t),e.value):(highed.isNull(t)||(e.innerHTML=t),e.innerText);if(e.selectedIndex>=0){if(!highed.isNull(t))for(var i=0;i0?i.subtree[e].meta.validFor[a.meta.name]=!i.meta.excludes[e]:i.subtree[e].meta.validFor[a.meta.name]=1}):n&&0===n.indexOf("plotOptions")||void 0===i.meta.ns?(i.meta.validFor||(i.meta.validFor={}),i.meta.validFor[i.meta.name]=1,void 0===i.meta.ns?highed.merge(i.subtree,a.subtree,!1,i.meta.excludes):Object.keys(a.subtree||{}).forEach(function(e){i.subtree[e]=i.subtree[e]||highed.merge({},a.subtree[e]),i.subtree[e].meta.validFor=i.subtree[e].meta.validFor||{},i.meta.excludes&&Object.keys(i.meta.excludes).length>0?i.subtree[e].meta.validFor[a.meta.name]=!i.meta.excludes[e]:i.subtree[e].meta.validFor[a.meta.name]=1})):highed.merge(i.subtree,a.subtree,!1,i.meta.excludes))}function t(t,i,o){void 0===o&&i.meta.ns&&"plotOptions"===i.meta.ns&&(o="plotOptions"),i.meta.extends&&i.meta.extends.length>0&&(i.meta.extends=i.meta.extends.replace("{","").replace("}",""),"series"===o&&(i.meta.extends+=",plotOptions.line"),i.meta.extends.split(",").forEach(function(n){n&&n.length>0&&e(t,i,n.trim(),o)}))}function i(e,i){function o(i,n){var d=i.subtree=i.subtree||{};return i.meta=i.meta||{},i.meta.default=i.meta.default,i.meta.ns=n,i.children=[],t(e,i,(n?n+".":"")+i.meta.name),i.meta.hasSubTree=!1,i.children=[],Object.keys(d).forEach(function(e){Object.keys(d[e].subtree).length>0&&(i.meta.hasSubTree=!0),i.children.push(o(d[e],(n?n+".":"")+(i.meta.name||"")))}),i.children.sort(function(e,t){return e.meta.name.localeCompare(t.meta.name)}),0===i.children.length&&(i.meta.leafNode=!0),i}var d;return i&&n?e:d=o(e)}function o(e){function t(e){if(e&&0!==e.length){var i=e.pop();0===Object.keys(i).length?t(e):Object.keys(i||{}).forEach(function(e){var t=i[e];"_"===e[0]?delete i[e]:!t||highed.isBasic(t)||highed.isArr(t)||0!==Object.keys(t).length?highed.isArr(t)&&0===t.length?delete i[e]:highed.isArr(t)&&(t=t.map(function(e){return o(e)})):delete i[e]}),t(e)}}function i(e,o){o=o||[],e&&(o&&0===Object.keys(e).length?t(o.concat([e])):Object.keys(e).forEach(function(n){var d=e[n];"_"===n[0]?t(o.concat([e])):highed.isBasic(d)||highed.isArr(d)||i(d,o.concat([e]))}))}return i(e),e}var n=!1;highed.transform={advanced:i,remBlanks:o}}(),function(){var e={};highed.samples={add:function(t){var i=highed.merge({title:"Untitled Sample",description:"Untitled Sample",dataset:[],suitableSeries:!1,products:!1},t);return!(!i.id||e[i.id])&&(e[i.id]=i,!0)},each:function(t,i,o){highed.isFn(t)&&Object.keys(e).forEach(function(i){t(e[i])})},get:function(t){return e[t]||!1}}}(),function(){var e={};highed.validators={add:function(t,i){return!(!t||e[t]||!highed.isFn(i))&&(e[t]=i,!0)},validate:function(t,i){return!e[t]||e[t](i)}}}(),function(){var e=!1,t=highed.option("cloudAPIURL");highed.cloud={},highed.cloud.isLoggedIn=function(){return e!==!1},highed.cloud.login=function(i,o,n){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"login",type:"post",data:{username:i,password:o},success:function(t){return t&&t.token&&(e=t.token),highed.isFn(n)&&n("undefined"==typeof t.token,t)},error:function(e){return highed.isFn(n)&&n(e)}})},highed.cloud.getTeams=function(i){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"teams",type:"get",headers:{"X-Auth-Token":e},success:function(e){return e.error?highed.snackBar(e.message):highed.isFn(i)&&i(e)}})},highed.cloud.getCharts=function(i,o,n){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"team/"+i+"/charts/?page="+n,type:"get",headers:{"X-Auth-Token":e},success:function(e){return e.error?highed.snackBar(e.message):highed.isFn(o)&&o(e.data,e)}})},highed.cloud.getChart=function(i,o,n){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"team/"+i+"/chart/"+o,type:"get", headers:{"X-Auth-Token":e},success:function(e){return e.error?highed.snackBar(e.message):highed.isFn(n)&&n(e)}})},highed.cloud.saveExistingChart=function(i,o,n,d){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"team/"+i+"/chart/"+o,type:"post",headers:{"X-Auth-Token":e},data:{data:n},success:function(e){return e.error?highed.snackbar(e.message):highed.isFn(d)&&d(e)}})},highed.cloud.saveNewChart=function(i,o,n,d){t=highed.option("cloudAPIURL"),highed.ajax({url:t+"team/"+i+"/chart",type:"post",headers:{"X-Auth-Token":e},data:{name:o,data:n},success:function(e){return e.error?highed.snackbar(e.message):highed.isFn(d)&&d(e)}})}}(),function(){var e=highed.events();highed.on=e.on,highed.emit=e.emit}(),function(){highed.showDimmer=function(e,t,i,o){function n(){highed.dom.style(d,{opacity:0,"pointer-events":"none"}),highed.isFn(a)&&(a(),a=!1),window.setTimeout(function(){d.parentNode&&d.parentNode.removeChild(d)},300)}var d=highed.dom.cr("div","highed-dimmer"),a=!1;return highed.dom.ap(document.body,d),highed.dom.style(d,{opacity:.4,"pointer-events":"auto","z-index":9999+(o||0)}),i&&highed.dom.style(d,{opacity:0}),a=highed.dom.on(d,"click",function(i){highed.isFn(e)&&e(),t&&n()}),n}}(),highed.OverlayModal=function(e,t){function i(e,t){h.minWidth=e,h.minHeight=t}function o(){if(!s){if(highed.dom.style(d,{width:h.width+(h.width.toString().indexOf("%")>0?"":"px"),height:h.height+(h.height.toString().indexOf("%")>0?"":"px"),opacity:1,left:"50%",top:"50%",transform:"translate(-50%, -50%)","pointer-events":"auto","min-width":h.minWidth+"px","min-height":h.minHeight+"px","z-index":h.zIndex}),highed.dom.style(document.body,{"overflow-x":"hidden","overflow-y":"hidden"}),h.showCloseIcon){const e=highed.dom.cr("span","highed-overlaymodal-close",'');highed.dom.on(e,"click",function(){n()}),highed.dom.ap(d,e)}l=highed.showDimmer(n,!0,!1,h.zIndex-1e4),window.setTimeout(function(){a.emit("Show")},300),s=!0}}function n(e){s&&(highed.dom.style(d,{width:"0px",height:"0px",opacity:0,left:"-20000px","pointer-events":"none"}),highed.dom.style(document.body,{"overflow-x":"","overflow-y":""}),highed.isFn(l)&&l(),s=!1,e||a.emit("Hide"))}var d=highed.dom.cr("div","highed-overlay-modal "),a=highed.events(),h=highed.merge({width:200,height:200,minWidth:10,minHeight:10,showOnInit:!0,zIndex:1e4,showCloseIcon:!1,cancelButton:!1},t),l=!1,s=!1;return h.class&&(d.classList+=h.class),highed.ready(function(){highed.dom.ap(document.body,d)}),n(!0),{on:a.on,show:o,hide:n,resize:i,body:d}},highed.HSplitter=function(e,t){function i(e){var t;a.allowResize&&highed.dom.isVisible(s)&&(t=highed.dom.size(h),e=e||highed.dom.pos(g).x,highed.dom.style(l,{width:e+"px"}),highed.dom.style(s,{width:t.w-e+"px"}),highed.dom.style(g,{display:""}))}function o(t,o){var d,r,c=highed.dom.size(e);highed.dom.isVisible(s)?n():(highed.dom.style(l,{width:"100%"}),highed.dom.style(g,{display:"none"})),a.responsive&&(d=window.getComputedStyle(l),"none"===d.float?(highed.dom.style(s,{width:"100%"}),highed.dom.style(g,{display:"none"})):n()),highed.dom.style([l,s,h,g],{height:(o||c.h)+"px"}),a.rightMax&&highed.dom.style(s,{"max-width":a.rightMax+"px"}),a.leftMax&&highed.dom.style(l,{"max-width":a.leftMax+"px"}),r=highed.dom.size(l),r.w===a.leftMax&&highed.dom.style(s,{width:c.w-a.leftMax-1+"px"}),i()}function n(){highed.dom.style(l,{width:a.leftWidth+"%"}),highed.dom.style(s,{width:(a.rightWidth?a.rightWidth:100-a.leftWidth)+"%"})}var d,a=highed.merge({leftWidth:40,noOverflow:!1,leftClasses:"",rightClasses:"",allowResize:!1,responsive:!1,leftMax:!1,rightMax:!1},t),h=highed.dom.cr("div","highed-hsplitter"),l=highed.dom.cr("div","highed-scrollbar panel left "+a.leftClasses),s=highed.dom.cr("div","highed-scrollbar panel right "+a.rightClasses),r=highed.dom.cr("div","highed-scrollbar highed-hsplitter-body "+a.leftClasses),c=highed.dom.cr("div","highed-scrollbar highed-hsplitter-body "+a.rightClasses),g=highed.dom.cr("div","highed-hsplitter-resize-bar");return a.responsive&&(l.className+=" highed-hsplitter-body-responsive"),e=highed.dom.get(e),highed.dom.ap(highed.dom.get(e),highed.dom.ap(h,highed.dom.ap(l,r),highed.dom.ap(s,c))),n(),a.noOverflow&&highed.dom.style([h,l,s],{"overflow-y":"hidden"}),a.allowResize&&(highed.dom.ap(h,g),highed.dom.style(g,{left:a.leftWidth+"%"}),d=highed.Movable(g,"x").on("Moving",function(e){i(e)})),{resize:o,left:r,right:c}},highed.VSplitter=function(e,t){function i(t,i){var h=highed.dom.size(e);return highed.dom.style(n,{height:"100%"}),t||i?(highed.dom.style(n,{width:(t||h.w)+"px",height:(i||h.h)+"px"}),void(o.topHeight.toString().indexOf("px")>0?(highed.dom.style(d,{height:o.topHeight}),highed.dom.style(a,{height:(i||h.h)-parseInt(o.topHeight,10)+"px"})):(highed.dom.style(d,{height:o.topHeight+"%"}),highed.dom.style(a,{height:100-o.topHeight+"%"})))):(highed.dom.style(d,{height:"string"==typeof o.topHeight?o.topHeight:o.topHeight+"%"}),void(a&&highed.dom.style(a,{width:"100%",height:"string"==typeof o.topHeight?"calc(100% - "+o.topHeight+")":100-o.topHeight+"%"})))}var o=highed.merge({topHeight:40,noOverflow:!1},t),n=highed.dom.cr("div","highed-vsplitter"),d=highed.dom.cr("div","panel top highed-scrollbar"),a=highed.dom.cr("div","panel bottom highed-scrollbar"),h=highed.dom.cr("div","highed-vsplitter-body highed-scrollbar"),l=highed.dom.cr("div","highed-vsplitter-body highed-scrollbar");return highed.dom.ap(highed.dom.get(e),highed.dom.ap(n,highed.dom.ap(d,h),highed.dom.ap(a,l))),o.noOverflow&&highed.dom.style([n,d,a],{"overflow-y":"hidden"}),e=highed.dom.get(e),{resize:i,top:h,bottom:l}},highed.TabControl=function(e,t,i,o){function n(){x.build(y.map(function(e){return{title:e.title,click:e.focus,selected:e.selected}}))}function d(t,i){var n=highed.dom.size(e),d=0;if(!o){highed.dom.size(u)}highed.dom.style(g,{height:(i||n.h)+"px"}),highed.dom.style(p,{height:(i||n.h)+"px"}),b&&b.focus(),y.forEach(function(e){d+=highed.dom.size(e.node).w||0}),o||(d>u.scrollWidth?highed.dom.style(f,{display:"block"}):highed.dom.style(f,{display:"none"}))}function a(){y.some(function(e){if(e.visible())return e.focus(),!0})}function h(e){y[e]&&y[e].visible()&&y[e].focus()}function l(){highed.dom.style(g,{display:"none"})}function s(){highed.dom.style(g,{display:"block"})}function r(){var e=y.filter(function(e){return e.visible()}).length;o||(e<2?highed.dom.style(u,{display:"none"}):highed.dom.style(u,{display:""}))}function c(e){function n(){f=!1,highed.dom.style(s,{display:"none"}),r()}function d(){f=!0,highed.dom.style(s,{display:""}),r()}function a(e,t){highed.dom.style(g,{width:e+"px",height:t+"px"})}function h(){var e=highed.dom.size(s),t=highed.dom.pos(s);f&&(b&&(b.node.className="tab",b.selected=!1,highed.dom.style(b.body,{opacity:0,display:"none"})),!e||!t||!e.w,highed.dom.style(m,{width:e.w+"px",left:t.x+"px"}),s.className="tab tab-selected",highed.dom.style(c,{opacity:1,display:"block"}),b=x,b.selected=!0,l.emit("Focus"),v.emit("Focus",x))}var l=highed.events(),s=highed.dom.cr("div","tab",e.title),c=highed.dom.cr("div","tab-body"),f=!0,x={selected:!1};return i&&(c.className+=" tab-body-padded"),o||highed.dom.ap(u,s),highed.dom.ap(p,c),highed.dom.on(s,"click",function(){h(),highed.emit("UIAction","TabControlNavigation",e.title)}),x={on:l.on,focus:h,node:s,body:c,hide:n,show:d,resize:a,title:e.title,visible:function(){return f}},b||h(),t&&highed.dom.style(c,{overflow:"hidden"}),y.push(x),a(),r(),x}var g=highed.dom.cr("div","highed-tab-control"),u=highed.dom.cr("div",o?"":"tabs"),p=highed.dom.cr("div","body"),m=highed.dom.cr("div","indicator"),f=highed.dom.cr("div",o?"":"highed-tab-control-more fa fa-chevron-right"),v=highed.events(),b=!1,y=[],x=highed.ContextMenu();return highed.dom.on(f,"click",function(e){n(),x.show(e.clientX,e.clientY)}),highed.isNull(e)||highed.ready(function(){highed.dom.ap(e,highed.dom.ap(g,highed.dom.ap(u,f,m),p)),d(),r()}),{container:g,on:v.on,createTab:c,resize:d,select:h,selectFirst:a,show:s,hide:l,barSize:function(){return highed.dom.size(u)}}},highed.InspectorField=function(e,t,i,o,n,d,a){function h(e,t){e=e||o,highed.isFn(e)&&e(t)}function l(){if(i.attributes&&i.attributes.length||!i.defaults)e="json",i.defaults=i.defaults||{};else if(i.attributes=[],i.defaults)try{i.defaults=JSON.parse(i.defaults),Object.keys(i.defaults).forEach(function(e){var t,o="string",n=i.defaults[e],d=e.toUpperCase();highed.isNum(n)&&(o="number"),n.length&&"#"===n[0]&&(d.indexOf("BACKGROUND")>=0||d.indexOf("COLOR")>=0)&&(o="color"),i.attributes.push({id:e,title:e,dataType:o,defaults:i.defaults[e],tooltip:"",values:t})})}catch(e){return void highed.log(3,"property",i.id,"skipped, no way to deduce the object members")}}var s=function(e,t){var o=highed.dom.cr("div","highed-field-reset fa fa-undo");return"null"===e&&(e=null),highed.dom.on(o,"click",function(){highed.isFn(t)&&t(i.defaults||e)}),o},r={string:function(e,o){var n=highed.dom.cr("input","highed-field-input","",d);s(i.defaults||e||t,function(t){n.value=e=t,h(o,t)});return highed.dom.on(n,"change",function(e){h(o,n.value),e.cancelBubble=!0}),"string"==typeof(e||t||"")&&(e||t||"").indexOf("\\u")>-1?n.value=decodeURIComponent(JSON.parse('"'+(e||t).replace(/\"/g,'\\"')+'"')):n.value=e||t,i.warning&&i.warning.length>0&&a&&i.warning.indexOf(a)>-1&&(n.disabled=!0),highed.dom.ap(highed.dom.cr("div","highed-field-container"),n)},header:function(e,t){return highed.dom.ap(highed.dom.cr("div","highed-field-container"),highed.dom.cr("div","highed-field-header",i.header))},number:function(e,o){var n=highed.dom.cr("input","highed-field-input","",d);s(i.defaults||e||t,function(t){n.value=e=t,h(o,parseFloat(t))});return n.type="number",highed.isNull(i.custom)||(n.step=i.custom.step,n.min=i.custom.minValue,n.max=i.custom.maxValue),highed.dom.on(n,"change",function(){h(o,parseFloat(n.value))}),n.value=e||t,i.warning&&i.warning.length>0&&a&&i.warning.indexOf(a)>-1&&(n.disabled=!0),highed.dom.ap(highed.dom.cr("div","highed-field-container"),n)},range:function(e,o){var n=highed.Slider(!1,{min:i.custom.minValue,max:i.custom.maxValue,step:i.custom.step,value:e||t,resetTo:i.defaults});return n.on("Change",function(e){h(o,e)}),n.container},boolean:function(e,o){var n=highed.dom.cr("input","","",d);s(i.defaults||e||t,function(t){n.checked=e=highed.toBool(t),h(o,e)});return n.type="checkbox",n.checked=highed.toBool(e||t),highed.dom.on(n,"change",function(){h(o,n.checked)}),i.warning&&i.warning.length>0&&a&&i.warning.indexOf(a)>-1&&(n.disabled=!0),highed.dom.ap(highed.dom.cr("div","highed-field-container"),n)},color:function(e,o){function n(e,t){e&&"null"!==e&&"undefined"!==e&&"undefined"!=typeof e?l.innerHTML="":(l.innerHTML="auto",e="#FFFFFF"),highed.dom.style(l,{background:e,color:highed.getContrastedColor(e)})}function a(){try{e=JSON.parse(e)}catch(e){}highed.isArr(e)&&(e="#FFF")}var l=highed.dom.cr("div","highed-field-colorpicker","",d),s=highed.dom.cr("div","highed-field-reset fa fa-undo"),r=e||t||i.defaults;return"null"===r&&(r=null),a(),highed.dom.on(l,"click",function(i){highed.pickColor(i.clientX,i.clientY,e||t,function(t){highed.isArr(e)&&(e="#FFFFFF"),e=t,n(t),h(o,t)})}),highed.dom.on(s,"click",function(){e=r,a(),n(e),h(o,e)}),n(e||t),highed.dom.ap(highed.dom.cr("div","highed-field-container"),l)},font:function(e,t){return r.cssobject(e,t)},configset:function(e,t){return r.string(e,t)},json:function(e,o){function n(){document.body&&c&&(document.getElementById(d)?c.refresh():setTimeout(n,10))}function a(e){try{e=JSON.parse(e),h(o,e),r.innerHTML="",highed.dom.style(r,{display:"none",opacity:0})}catch(e){r.innerHTML="Syntax error: "+e,highed.dom.style(r,{display:"block",opacity:1})}}var l=highed.dom.cr("textarea","highed-field-input","",d),r=highed.dom.cr("div","highed-field-error"),c=!1,g=function(e){c?c.setValue(JSON.stringify(e,void 0,"\t")):l.value=JSON.stringify(e,void 0,"\t")},u=(s(i.defaults||e||t,function(t){e=t,g(t),h(o,t)}),highed.dom.ap(highed.dom.cr("div","highed-field-container","",d+"_container"),l,r));if("undefined"!=typeof window.CodeMirror){c=CodeMirror.fromTextArea(l,{lineNumbers:!0,mode:"application/json",theme:highed.option("codeMirrorTheme")}),g(e||t||i.defaults);var p=null;c.on("change",function(){clearTimeout(p),p=setTimeout(function(){a(c.getValue())},1e3)}),n()}else g(e||t||i.defaults),highed.dom.on(l,"change",function(){a(l.value)});return u},cssobject:function(e,n){var d=highed.FontPicker(n||o,e||t);s(i.defaults||e||t,function(t){e=t,d.set(e),h(n,t)});return highed.dom.ap(highed.dom.cr("div","highed-field-container"),d.container)},options:function(e,o){var n=highed.DropDown();s(i.defaults,function(t){e=t,n.selectById(e),h(o,t)});if(highed.isStr(i.values))try{i.values=JSON.parse(i.values)}catch(e){i.values=i.values.split(" ")}return n.addItems(i.values),n.addItem({title:"auto",id:i.defaults}),n.selectById(e||t||i.defaults),n.on("Change",function(e){h(o,e.id())}),highed.dom.ap(highed.dom.cr("div","highed-field-container"),n.container)},object:function(e,o){var n=highed.dom.cr("table","highed-customizer-table","",d);highed.isNull(e||t);if(e=e||t||{},highed.isStr(e))try{e=JSON.parse(e)}catch(e){}return i&&highed.isArr(i.attributes)&&i.attributes.forEach(function(t){e[t.name||t.id]=e[t.name||t.id]||t.defaults||(t.dataType.indexOf("object")>=0?{}:""),t.title=highed.uncamelize(t.title),highed.dom.ap(n,highed.InspectorField(t.dataType,e[t.name||t.id]||t.defaults,t,function(i){e[t.name||t.id]=i,h(o,e)}))}),n},function:function(e,o){function n(e){highed.isFn(e)&&(e=e.toString()),g?(g.setValue(e),g.refresh()):c.value=e}function a(e){var t=[],i=e.indexOf("("),n=e.substr(i+1).indexOf(")"),d="",a=0,l=!1;try{t=e.substr(i+1,n-1).trim().split(","),t=t.filter(function(e){return e&&e.length>0&&e.indexOf("/*")===-1});for(var s=0;s=0&&(e=e.indexOf("object")>=0?"object":e.split("|")[0]),highed.isNull(i.custom)||highed.isNull(i.custom.minValue)||highed.isNull(i.custom.maxValue)||highed.isNull(i.custom.step)||(e="range"),e&&0===e.indexOf("array")&&(i.subType=e.substr(6,e.length-7),e="array","object"===i.subType&&l()),"object"===e&&l(),i.tooltip||i.tooltipText||(n=!0),highed.onPhone()?highed.dom.on(c,"click",function(){var e=highed.Tooltip(0,0,i.tooltip||i.tooltipText,!0);highed.dom.on([c],"mouseout",e)}):highed.dom.on([c],"mouseover",function(e){var t=highed.Tooltip(e.clientX+20,e.clientY,i.tooltip||i.tooltipText);highed.dom.on([c],"mouseout",t)}),n&&(highed.dom.style(c,{display:"none"}),u.colSpan=2),m.className+=" highed-customize-type-"+e;const f=highed.dom.cr("div","highed-customizer-table-parent","",d+"_container");return highed.dom.style(f,{width:(i.width||100)+"%"}),"header"===e?highed.dom.ap(highed.dom.ap(f,highed.dom.ap(u,r[e]?r[e]():r.string()))):"boolean"===e?(p.className="highed-customize-field-boolean",highed.dom.ap(highed.dom.ap(f,highed.dom.ap(u,highed.dom.ap(r[e]?r[e]():r.string(),highed.dom.ap(p,highed.dom.cr("span","highed-customize-field-label",i.title),!n&&highed.dom.ap(g,c))))))):highed.dom.ap(highed.dom.ap(f,highed.dom.ap(p,highed.dom.cr("span","highed-customize-field-label",i.title),!n&&highed.dom.ap(g,c)),highed.dom.ap(u,r[e]?r[e]():r.string())))},highed.List=function(e,t,i,o){function n(t,i,n){function d(e){var t=!1;return!(Object.keys(k.availableSettings||{}).length>0)||(highed.isArr(e)?e.forEach(function(e){d(e)&&(t=!0)}):highed.isArr(e.options)?e.options.forEach(function(e){d(e)&&(t=!0)}):(k.availableSettings[e.id]||k.availableSettings[e.pid])&&(t=!0),t)}function a(e,t,i){var o=y,n=o.id,d=highed.meta.optionsExtended.options[n];return!!o&&(d.forEach(function(o){h(o,!1,!1,e,t,i)}),void(highlighted=!1))}function h(t,i,l,s,r,g){var u,p,m,f,v,b=!0;if(l=n.options.getCustomized(),highed.isArr(t.options)){if(i=highed.dom.cr("div","highed-customizer-table"),warningContainer=highed.dom.cr("div","highed-customize-warning-container"),warning=highed.dom.cr("div","highed-customize-warning","You need to be on a paid plan for this to work in production"),b=d(t),t.warning&&t.warning.length>0&&o&&t.warning.indexOf(o)>-1&&highed.dom.ap(i,highed.dom.ap(warningContainer,warning)),!b)return;if(m=highed.dom.cr("div","highed-customize-group"+(t.dropdown?" highed-list-general-drop-down":" highed-list-normal"),null,"highed-list-header-"+highed.L(t.text)),f=highed.dom.cr("div","highed-customize-master-dropdown"),nodeHeading=highed.dom.cr("div","highed-customizer-table-heading"+(t.dropdown?" highed-list-general-drop-down-header":""),highed.L(t.text)),t.dropdown&&(C[highed.L(t.text)]=m,highed.dom.on(nodeHeading,"click",function(e){e.target!==this&&(Object.keys(C).forEach(function(e){C[e]!==m&&C[e].classList.remove("active")}),m.classList.contains("active")?m.classList.remove("active"):m.className+=" active")})),highed.dom.ap(c,highed.dom.ap(m,nodeHeading,f,i)),t.filteredBy&&(g=highed.getAttr(l,t.filteredBy,s)),t.controlledBy&&(u=highed.DropDown(),highed.dom.style(f,{display:"block"}),highed.isStr(t.controlledBy.options))){if(p=highed.getAttr(l,t.controlledBy.options,s),!highed.isArr(p))return;if(0===p.length)return void highed.dom.ap(e,highed.dom.cr("i","","No data to display.."));u.addItems(p.map(function(e,i){return(t.controlledBy.optionsTitle?e[t.controlledBy.optionsTitle]:"#"+(i+1))||"#"+(i+1)})),u.selectByIndex(s||0),u.on("Change",function(e){s=e.index(),i.innerHTML="",t.options.forEach(function(e){t.filteredBy&&(g=highed.getAttr(l,t.filteredBy,s)),h(e,i,l,s,t.filteredBy,g)})}),highed.dom.ap(f,u.container),s=s||0}t.options.forEach(function(e){h(e,i,l,s,t.filteredBy,g)})}else if("undefined"!=typeof t.id){if(g&&t.subType&&t.subType.length&&!highed.arrToObj(t.subType)[g])return;if(Object.keys(k.availableSettings||{}).length>0&&!k.availableSettings[t.id]&&!k.availableSettings[t.pid])return;"undefined"!=typeof t.dataIndex&&(s=t.dataIndex),v=highed.getAttr(l,t.id,s),highed.dom.ap(i,highed.InspectorField(t.values?"options":t.dataType,"undefined"!=typeof v?v:g&&t.subTypeDefaults[g]?t.subTypeDefaults[g]:t.defaults,{title:highed.L("option.text."+t.pid),tooltip:highed.L("option.tooltip."+t.pid),values:t.values,custom:t.custom,defaults:t.defaults,width:t.width||100,attributes:t.attributes||[],warning:t.warning||[],header:highed.L(t.pid)},function(e){t.header||(t.plugins&&t.plugins.length>0&&x.emit("TogglePlugins",t.id,e),t.noChange||x.emit("PropertyChange",t.id,e,s),highed.emit("UIAction","SimplePropSet",highed.L("option.text."+t.pid),e),t.id===r&&(c.innerHTML="",a(s,r,e)))},!1,t.id,o))}}function l(e){y&&(y.selected=!1,y.node.className="item",y.nodeArrow.innerHTML='',highed.dom.style(y.nodeChildren,{display:"none"})),C={},r.innerHTML='',c.innerHTML="";var i=highed.meta.optionsExtended.options[t.id];if((i||[]).forEach(function(e){h(e)}),highed.dom.style(c,{display:"block"}),y=g,y.selected=!0,s.className="item item-selected",x.emit("Select",t.id),v.innerHTML=''+t.title,highed.isFn(t.click))return t.click(e)}var s=highed.dom.cr("a","item",t.title),r=highed.dom.cr("span","item-arrow",''),c=highed.dom.cr("span","highed-list-suboptions",""),g={};return highed.dom.style(c,{display:"none"}),highed.dom.ap(s,r),(i||[]).forEach(function(e){h(e)}),t.annotations||highed.dom.on(s,"click",t.onClick||l),highed.dom.ap(f,s,c),g={id:t.id,title:t.title,node:s,nodeArrow:r,nodeChildren:c,select:l,selected:!1},w.push(g),y||l(),g}function d(e){highed.isArr(e)&&e.forEach(function(e){n(e)})}function a(){f.innerHTML=""}function h(){var i=highed.dom.size(e);highed.dom.size(f);t&&i.h<50&&0!==i.h&&i.h?(highed.dom.style(v,{display:"block"}),highed.dom.style(f,{display:"none"})):t&&(highed.dom.style(v,{display:"none"}),highed.dom.style(f,{display:""}))}function l(){highed.dom.style(f,{})}function s(){}function r(){w.length>0&&w[0].select()}function c(e){w.some(function(t){if(e===t.title)return!!t.selected||(t.select(),!0)})}function g(e){return!!C[e].classList.contains("active")||(Object.keys(C).forEach(function(t){C[t]!==C[e]&&C[t].classList.remove("active")}),void(C[e].classList.contains("active")||(C[e].className+=" active")))}function u(){y&&y.select()}function p(){return w.length}function m(){return y}var f=highed.dom.cr("div","highed-list"),v=highed.dom.cr("div","highed-list-compact","compact"),b=highed.ContextMenu(),y=!1,x=highed.events(),w=[],C={},k=i;return highed.dom.on(v,"click",function(e){b.build(w.map(function(e){return{title:e.title,click:e.select,selected:e.selected}})),b.show(e.clientX,e.clientY)}),highed.dom.ap(e,f,v),{on:x.on,addItem:n,addItems:d,clear:a,resize:h,show:l,hide:s,selectFirst:r,select:c,selectDropdown:g,reselect:u,selected:m,count:p,container:f}},function(){function e(e){highed.dom.style(d,{background:e,color:highed.getContrastedColor(e)})}var t=highed.dom.cr("div","highed-colorpicker highed-colorpicker-responsive"),i=highed.dom.cr("canvas","picker"),o=highed.dom.cr("div","highed-ok-button","Close"),n=i.getContext("2d"),d=highed.dom.cr("input","manual");highed.ready(function(){highed.dom.ap(document.body,t)}),highed.pickColor=function(a,h,l,s){function r(){var e,t,o=Math.floor(f.w/14),d=Math.floor(f.h/19),a=-1;for(i.width=f.w,i.height=f.h,n.fillStyle="#FFF",n.fillRect(0,0,f.w,f.h),t=0;t<19;t++)for(e=0;e<15;e++)n.fillStyle=highed.meta.colors[++a],n.fillRect(e*o,t*d,o,d)}function c(){highed.dom.style(t,{opacity:0,left:"-20000px","pointer-events":"none"}),v(),b(),y(),x()}function g(e,t,i){var o="#"+(e<<16|t<<8|i).toString(16);return 5===o.length?o.replace("#","#00"):6===o.length?o.replace("#","#0"):o}function u(t){var o=t.clientX||t.touches[0].clientX||0,l=t.clientY||t.touches[0].clientY||0,r=highed.dom.pos(i),c=n.getImageData(o-r.x-a,l-r.y-h,1,1).data,u=g(c[0]||0,c[1],c[2]);return d.value=u,e(u),highed.isFn(s)&&s(u),t.cancelBubble=!0,t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!1}var p=highed.dom.size(document.body),m=highed.dom.size(t),f=highed.dom.size(i),v=!1,b=!1,y=!1,x=!1;return a>p.w-m.w&&(a=p.w-m.w-10),h>p.h-m.h&&(h=p.h-m.h-10),highed.dom.style(t,{left:a+"px",top:h+"px",opacity:1,"pointer-events":"auto"}),x=highed.showDimmer(c,!0,!0,5),y=highed.dom.on(o,"click",c),v=highed.dom.on(d,"keyup",function(){highed.isFn(s)&&s(d.value)}),b=highed.dom.on(i,["mousedown","touchstart"],function(e){var t=highed.dom.on(i,["mousemove","touchmove"],u),o=highed.dom.on(document.body,["mouseup","touchend"],function(){t(),o()});u(e)}),d.value=l,e(l),r(),{}},highed.dom.ap(t,i,d,o)}(),highed.Toolbar=function(e,t){function i(e,t){var i=highed.dom.cr("div","icon highed-icon fa "+(e.css||""));highed.dom.on(i,"click",function(t){highed.isFn(e.click)&&e.click(t)}),i.title=e.tooltip||e.title,highed.dom.ap("left"===t?h:l,i)}function o(e,t){var i=highed.dom.cr("div","highed-ok-button highed-toolbar-button",e.title||"");highed.dom.on(i,"click",function(t){highed.isFn(e.click)&&e.click(t)}),i.title=e.tooltip,highed.dom.ap("left"===t?h:l,i)}function n(e){highed.dom.ap("left"===e?h:l,highed.dom.cr("span","separator"))}var d=highed.merge({additionalCSS:[]},t),a=highed.dom.cr("div","highed-toolbar "+d.additionalCSS.join(" ")),h=highed.dom.cr("div","highed-toolbar-left"),l=highed.dom.cr("div","highed-toolbar-right"),s=highed.dom.cr("div","highed-toolbar-center");highed.dom.cr("div","icons");return highed.dom.ap(e,highed.dom.ap(a,h,s,l)),{container:a,addIcon:i,addButton:o,addSeparator:n,left:h,center:s,right:l}},function(){highed.FontPicker=function(e,t){function i(){highed.isFn(e)&&e(t)}function o(e,o){highed.dom.style(r,{background:e}),t.color=e,o||i()}function n(e){if(highed.isStr(e))try{e=JSON.parse(e)}catch(e){return void highed.log(0,"Error in FontPicker::set")}t=highed.merge({fontFamily:"Default",color:"#333",fontSize:"18px",fontWeight:"normal",fontStyle:"normal"},e),l.set("bold"===t.fontWeight),s.set("italic"===t.fontStyle),o(t.color,!0),a.selectById(t.fontFamily),h.selectById(t.fontSize.replace("px",""))}var d=highed.dom.cr("div","highed-font-picker"),a=highed.DropDown(),h=highed.DropDown(null,"highed-font-size"),l=highed.PushButton(!1,"bold"),s=highed.PushButton(!1,"italic"),r=highed.dom.cr("span","font-color"," ");if(highed.isStr(t))try{t=JSON.parse(t)}catch(e){}return a.addItems(highed.meta.fonts),h.addItems([8,10,12,14,16,18,20,22,25,26,28,30,32,34]),n(t),a.on("Change",function(e){return"Default"===e.id()?t.fontFamily='"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif':t.fontFamily=e.id(),i()}),h.on("Change",function(e){return t.fontSize=e.id()+"px",i()}),l.on("Toggle",function(e){t.fontWeight=e?"bold":"normal",i()}),s.on("Toggle",function(e){t.fontStyle=e?"italic":"normal",i()}),highed.dom.on(r,"click",function(e){highed.pickColor(e.clientX,e.clientY,t.color,o)}),highed.dom.ap(d,a.container,h.container,highed.dom.ap(highed.dom.cr("div","highed-font-picker-buttons"),highed.dom.ap(highed.dom.cr("div","highed-font-style"),l.button,s.button),r)),{set:n,container:d}}}(),highed.WizardStepper=function(e,t,i){function o(){var e=v.filter(function(e){return e.visible});f=0,e.forEach(function(t,i){0===i?t.bar.className="bar bar-first":i===e.length-1?t.bar.className="bar bar-last":t.bar.className="bar",t.number=++f,t.bar.className+=" "+("bottom"===s.indicatorPos?"bar-bottom":"bar-top")})}function n(e){function t(){m&&(m.bubble.innerHTML="",highed.dom.style(m.bubble,{height:"",width:"",bottom:"-4px","font-size":"0px"}),highed.dom.style(m.body,{opacity:0,display:"none","pointer-events":"none"}),"top"===s.indicatorPos&&highed.dom.style(m.bubble,{top:"-6px",bottom:""}),m.label.className="label-inactive",u.innerHTML=e.title+" - "+i.number+"/"+f,p.innerHTML=i.number+"/"+f,e.onshow&&e.onshow()),i.bubble.innerHTML=i.number,highed.dom.style(i.bubble,{height:"25px",width:"25px",bottom:"-8px","font-size":"16px"}),highed.dom.style(i.body,{opacity:1,display:"block","pointer-events":"auto"}),"top"===s.indicatorPos&&highed.dom.style(i.bubble,{top:"-10px"}),m=i,m.label.className="label-active",r.emit("Step",i,f,e)}var i={number:++f,node:highed.dom.cr("div","highed-wizstepper-item"),label:highed.dom.cr("div","",e.title,"label"),bubble:highed.dom.cr("div","bubble "+("bottom"===s.indicatorPos?"bubble-bottom":"bubble-top")),bar:highed.dom.cr("div","bar "+("bottom"===s.indicatorPos?"bar-bottom":"bar-top")),body:highed.dom.cr("div","highed-step-body"),visible:!0};return i.title=e.title,i.hide=function(){highed.dom.style(i.node,{display:"none"}),i.visible&&(f--,i.visible=!1,o())},i.show=function(){highed.dom.style(i.node,{display:""}),i.visible||(f++,i.visible=!0,o(),e.onshow&&e.onshow())},i.visible=function(){return visible},highed.dom.on(i.node,"click",t),m||t(),i.activate=t,v.push(i),o(),highed.dom.ap(g,highed.dom.ap(i.node,i.label,i.bar,i.bubble)),highed.dom.ap(c,i.body),r.emit("AddStep",m,f),i}function d(){var e=v.filter(function(e){return e.visible});m&&m.number1&&e[m.number-2].activate()}function h(t,i){var o=highed.dom.size(e);highed.dom.style(c,{height:(i||o.h)+"px"})}function l(){v.some(function(e,t){if(e.visible)return e.activate(),!0})}var s=highed.merge({indicatorPos:"top"},i),r=highed.events(),c=highed.dom.cr("div","highed-wizstepper-body"),g=highed.dom.cr("div","highed-wizstepper-indicators"),u=highed.dom.cr("div","highed-wizstepper-current"),p=highed.dom.cr("div","highed-wizstpper-current-bubble"),m=!1,f=0,v=[],b=highed.ContextMenu();return highed.dom.on(u,"click",function(e){var t=v.filter(function(e){return e.visible});b.build(t.map(function(e){return{title:e.title,click:e.activate,selected:m.title===e.title}})),b.show(e.clientX,e.clientY)}),highed.dom.ap(t,g,highed.dom.ap(u,p)),highed.dom.ap(e,c),{on:r.on,addStep:n,next:d,resize:h,previous:a,selectFirst:l,body:c}},function(){function e(){highed.dom.style(t,{opacity:0,"pointer-events":"none"})}var t=highed.dom.cr("div","highed-scrollbar highed-tooltip highed-tooltip-fixed");highed.ready(function(){highed.dom.ap(document.body,t)}),highed.dom.on(t,"mouseout",e),highed.dom.on(t,"click",e),highed.Tooltip=function(i,o,n,d){var a=highed.dom.size(document.body);return i<0&&(i=0),o<0&&(o=0),i>a.w-200&&(i=a.w-200),highed.dom.style(t,{opacity:1,"pointer-events":"auto",left:i+"px",top:o+"px","max-width":"300px"}),d&&highed.dom.style(t,{opacity:1,"pointer-events":"auto",width:"90%",height:"90%",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),t.innerHTML=n,e},highed.hideAllTooltips=e}(),highed.PushButton=function(e,t,i){function o(){i?d.className+=" highed-pushbutton-active":d.className=d.className.replace(" highed-pushbutton-active","")}function n(e){i=e,o()}var d=highed.dom.cr("span","highed-pushbutton fa fa-"+t),a=highed.events();return highed.dom.on(d,"click",function(){i=!i,o(),a.emit("Toggle",i)}),highed.isNull(e)||e===!1||highed.dom.ap(e,d),o(),{set:n,button:d,on:a.on}},highed.Tree=function(e){function t(e,i,n,d,a){function p(){(!e.meta.types.array&&"undefined"!=typeof r[M]||L)&&(r[M]=L)}function m(){h&&(h.className="parent-title"),h=C,c=M,C.className="parent-title parent-title-selected",l.emit("Select",e,C.innerHTML,e.data,d,!!u[M]&&(e.data[u[M].controller]||u[M].default))}function f(t,i){(i||!L)&&e.children.length&&e.meta.hasSubTree&&(z.className="exp-col-icon fa fa-folder-open-o",highed.dom.style(k,{display:"block"}),L=!0,p()),t||m(),highed.emit("UIAction","AdvancedTreeNavigation",(e.meta.ns?e.meta.ns+".":"")+e.meta.name)}function v(t,i){L&&e.children.length&&e.meta.hasSubTree&&(z.className="exp-col-icon fa fa-folder-o",highed.dom.style(k,{display:"none"}),L=!1,i||p()),t||m()}function b(e){if(L?v():f(),e)return highed.dom.nodefault(e)}function y(i){function a(i,a){var h={meta:{name:e.meta.name,title:e.meta.name+"["+a+"]",hasSubTree:!0,arrayData:n[e.meta.name],isArrayElement:!0,types:{object:1}},data:i,children:highed.merge([],e.children) },l=t(h,k,i,d,a);l&&o(h,l.body,i,d,a)}k.innerHTML="",d&&Object.keys(e.meta.products||{}).length>0&&!e.meta.products[d],e.meta.isArrayElement&&(highed.dom.ap(w,highed.dom.ap(S,T)),highed.dom.on(T,"click",function(t){if(confirm("Really delete the element? This cannot be undone!")){var i=!1;h===w&&(h.className="parent-title",h=!1,c=!1,l.emit("ClearSelection")),k.parentNode.removeChild(k),w.parentNode.removeChild(w),e.meta.arrayData.some(function(t,o){if(t===e.data)return i=o,!0}),e.meta.arrayData.splice(i,1),l.emit("ForceSave",g),highed.snackBar("Removed element "+i+" from "+(e.meta.ns?e.meta.ns+".":"")+e.meta.name)}return highed.dom.nodefault(t)})),e.meta.types.array?(highed.dom.ap(w,highed.dom.ap(S,A)),z.className="exp-col-icon fa fa-th-list",e.data=n[e.meta.name]=n[e.meta.name]||[],highed.isArr(e.data)||(e.data=n[e.meta.name]=[n[e.meta.name]]),highed.dom.on(A,"click",function(){var t={};highed.snackBar("Added new element to "+e.meta.name),e.data.push(t),a(t,e.data.length-1),l.emit("ForceSave",g)}),e.data.forEach(a)):(highed.dom.on(w,"click",function(){f()}),highed.dom.on(z,"click",b),e.meta.hasSubTree||(z.className="exp-col-icon fa fa-sliders"),e.meta.isArrayElement||(e.data=n[e.meta.name]=n[e.meta.name]||{}),r[M]?f(!0,!0):v(!0,!0),M===c&&m())}var x=(e.meta.ns?e.meta.ns+".":"")+(isNaN(a)?"":"["+a+"].")+e.meta.name,w=highed.dom.cr("div","node","",x),C=highed.dom.cr("div","parent-title",highed.uncamelize(e.meta.title||e.meta.name)),k=highed.dom.cr("div","parent-body"),z=highed.dom.cr("div","exp-col-icon fa fa-folder-o"),S=highed.dom.cr("div","right-icons"),T=highed.dom.cr("div","highed-icon fa fa-minus-square-o"),A=highed.dom.cr("div","highed-icon fa fa-plus-square-o"),M=(e.meta.ns?e.meta.ns+".":"")+(a?"["+a+"].":"")+e.meta.name,L=!0;return e.meta.fullname=a?e.meta.name:M,highed.dom.ap(i,highed.dom.ap(w,z,C),k),s[M]=f,y(),{data:e.data,body:k,rebuild:y}}function i(e){var t="";e&&(e=e.replace(/\-\-/g,".").replace(/\-/g,".").split("."),e.forEach(function(e){e=t+e,s[e]&&s[e](),t+=e+"."}))}function o(e,i,n,d,a){e&&(e.meta.types.array||(d&&Object.keys(e.meta.products||{}).length>0&&!e.meta.products[d],highed.isArr(e.children)&&e.children.forEach(function(h){var l,s;if(e.meta.fullname&&u[e.meta.fullname]&&h.meta&&h.meta.validFor){var r=d.series;a&&(r=[r[a]]);var c=!1;if((r||[]).forEach(function(t){s=t[u[e.meta.fullname].controller]||u[e.meta.fullname].default,h.meta.validFor[s]&&(c=!0)}),!c)return}h.meta.leafNode||(l=t(h,i,n,d),l&&o(h,l.body,l.data,d))})))}function n(){return g}function d(e,t){return"undefined"!=typeof u[e]&&u[e].controller===t}var a=highed.dom.cr("div","highed-tree"),h=!1,l=highed.events(),s={},r={},c=!1,g={},u={series:{controller:"type",state:!1,default:"line"},plotOptions:{controller:"type",state:!1,default:"line"}};return highed.dom.ap(e,a),{on:l.on,expandTo:i,getMasterData:n,isFilterController:d,build:function(e,t){g=t,a.innerHTML="",o(e,a,t,t)}}},function(){function e(){d=window.setTimeout(function(){highed.dom.style(t,{bottom:"-68px"})},5e3)}var t=highed.dom.cr("div","highed-snackbar no-print"),i=highed.dom.cr("span","snackbar-title",""),o=highed.dom.cr("span","snackbar-action",""),n=highed.dom.cr("span","highed-snackbar-close fa fa-times-circle",""),d=!1,a=!1;highed.ready(function(){highed.dom.ap(document.body,highed.dom.ap(t,i,o,n))}),highed.dom.on(t,"mouseover",function(){window.clearTimeout(d)}),highed.dom.on(t,"mouseout",function(){e()}),highed.dom.on(n,"click",function(){highed.dom.style(t,{bottom:"-68px"})}),highed.snackBar=function(n,h,l){i.innerHTML=n,window.clearTimeout(d),h&&(o.innerHTML=h.toUpperCase()),a&&a(),highed.dom.style(t,{bottom:"10px"}),highed.dom.style(o,{display:h?"":"none"}),a=highed.dom.on(o,"click",l),e()}}(),highed.ContextMenu=function(e){function t(e){var t,i=highed.dom.cr("div","highed-ctx-item highed-ctx-item-responsive",e.title),n=highed.dom.cr("div","highed-ctx-child-icon fa fa-angle-right");return"-"===e?highed.dom.ap(d,highed.dom.cr("div","highed-ctx-sep")):(highed.dom.on(i,"click",function(){highed.isFn(e.click)&&e.click(),o()}),e.selected&&(i.className+=" highed-ctx-item-selected"),highed.isNull(e.children)||(t=highed.ContextMenu(e.children),highed.dom.on(i,"mouseenter",function(e){t.show(e.clientX,e.clientY)})),void highed.dom.ap(d,highed.dom.ap(i,!!e.icon&&highed.dom.cr("div","ctx-child-licon highed-ctx-child-licon-responsive fa fa-"+e.icon),!!e.children&&n)))}function i(e,t,i){var n=highed.dom.size(document.body),a=highed.dom.size(d);!i&&h||(e>n.w-a.w-20&&(e=n.w-a.w-20),t>n.h-a.h-20&&(t=n.h-a.h-20),highed.dom.style(d,{"pointer-events":"auto",opacity:1,left:e+"px",top:t+"px"}),h=!0,i||(l=highed.showDimmer(o,!0,!0,10)))}function o(){h&&(highed.dom.style(d,{left:"-2000px","pointer-events":"none",opacity:0}),highed.isFn(l)&&l(),h=!1)}function n(e){return d.innerHTML="",highed.dom.ap(d,a),highed.isArr(e)?e.forEach(t):void Object.keys(e).forEach(function(i){var o=e[i];t(highed.merge({title:i},o))})}var d=highed.dom.cr("div","highed-ctx-container-common highed-ctx-container"),a=highed.dom.cr("div","highed-ctx-close-button","Close"),h=!1,l=!1;return e&&n(e),highed.dom.on(a,"click",o),highed.ready(function(){highed.dom.ap(document.body,d)}),{addEntry:t,show:i,hide:o,build:n}},function(){var e=highed.dom.cr("div","highed-dropdown-items highed-dropdown-items-responsive");highed.ready(function(){highed.dom.ap(document.body,e)}),highed.DropDown=function(t,i,o){function n(){e.innerHTML="",C.forEach(function(t){highed.dom.ap(e,t.node),t.node.innerHTML="";const i=highed.dom.cr("span","highed-icon-container");o&&highed.dom.ap(i,highed.dom.style(highed.dom.cr("span"),{"margin-left":"2px",width:"15px",height:"15px",float:"left",display:"inline-block","margin-right":"5px",color:"rgb(66, 200, 192)","background-position":"left middle","background-size":"auto 100%","background-repeat":"no-repeat","background-image":'url("data:image/svg+xml;utf8,'+encodeURIComponent(o[t.id().toLowerCase()])+'")'})),highed.dom.ap(t.node,i,highed.dom.style(highed.dom.cr("span","",t.title()||""),{position:"relative",top:"3px"}))})}function d(){highed.isFn(S)&&(S(),S=!1),k&&(x.innerHTML="",o&&highed.dom.ap(x,highed.dom.style(highed.dom.cr("span"),{"margin-left":"2px",width:"15px",height:"15px",float:"left",display:"inline-block","margin-right":"5px",color:"rgb(66, 200, 192)","background-position":"left middle","background-size":"auto 100%","background-repeat":"no-repeat","background-image":'url("data:image/svg+xml;utf8,'+encodeURIComponent(o[k.id().toLowerCase()])+'")'})),x.innerHTML+=k.title()),highed.dom.style(e,{opacity:0,left:"-20000px","pointer-events":"none"}),z=!1}function a(t){n();var i=highed.dom.pos(y,!0),o=highed.dom.size(y);i&&i.x||(i={x:10,y:10}),o&&o.w||(o={w:200,h:200}),highed.dom.style(e,{opacity:1,"pointer-events":"auto",left:i.x+"px",top:i.y+o.h+4+"px",width:o.w-1+"px","min-height":o.h+"px"}),S=highed.showDimmer(d,!0,!0,500),z=!0}function h(e){return(z=!z)?a(e):(d(),z)}function l(e){if(e&&e.id&&(highed.isBasic(e.id)||(e.id="1234")),highed.isBasic(e)&&(e={id:e,title:e}),C.filter(function(t){return t.id()===e.id}).length>0)return!1;var t=highed.dom.cr("div","highed-dropdown-item"),i=highed.uuid(),o=C.length,n={node:t,index:function(){return o},id:function(){return i},icon:function(){return e.icon},title:function(){return highed.isStr(e)?e:e.title||""},unselect:function(){t.className="highed-dropdown-item"},select:function(i){k&&k.unselect(),t.className="highed-dropdown-item highed-dropdown-item-selected",k=n,x.innerHTML=k.title(),i||b.emit("Change",n),e&&highed.isFn(e.select)&&e.select(n),d()},updateOptions:function(t){e=t},setId:function(e){i=e}};if(!e)return!1;if(highed.isStr(e)||highed.isNum(e))t.innerHTML=e,i=e;else{const a=highed.dom.cr("span","highed-icon-container",e.icon?'':"");highed.dom.style(a,{"margin-right":"5px",color:"rgb(66, 200, 192)"}),highed.dom.ap(t,a,highed.dom.cr("span","",e.title||"")),i=e.id,e.selected&&n.select()}return highed.dom.on(t,"click",function(e){return n.select(),e.cancelBubble=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1}),C.push(n),n}function s(){C=[]}function r(e){highed.isArr(e)&&e.forEach(l)}function c(e,t){C.some(function(i){if(i.id()==e)return i.select(t),!0})}function g(e,t,i){C[e].updateOptions(t),i&&C[e].setId(i)}function u(e,t){e>=0&&er.w-c.w&&(g=r.w-c.w))),"Y"!==t&&"XY"!==t||(u=s.y+((o.clientY||o.touches[0].clientY)-m),i&&(u<0&&(u=0),u>r.h-c.h&&(u=r.h-c.h))),n&&ga.max?a.max:parseInt(e.target.value),c.innerHTML=l,o(),highed.onPhone()||h.emit("Change",l))}),m.on("StartMove",function(){highed.onPhone()&&(c.className="highed-slider-text-indicator highed-slider-text-indicator-popup")}),m.on("EndMove",function(){highed.onPhone()&&(c.className="highed-slider-text-indicator",h.emit("Change",l))}),highed.dom.on(u,"mouseover",function(e){}),highed.dom.on(u,"click",function(){l=a.resetTo,o(),"null"===l&&(l=null),"undefined"===l&&(l=void 0),i(),h.emit("Change",l)}),e&&(e=highed.dom.get(e),highed.dom.ap(e,s)),highed.dom.ap(s,g,p,u,highed.dom.ap(r,c)),n(),{on:h.on,set:d,container:s}},highed.DataTable=function(e,t){function i(e,t){if("text/csv"!==e.type)return highed.snackBar("The file is not a valid CSV file");var i=new FileReader;i.onload=function(e){z(),O({csv:e.target.result},null,!0,t)},i.readAsText(e)}function o(){highed.dom.style(_e,{display:"block"})}function n(){highed.dom.style(_e,{display:"none"})}function d(e){if(window.clearTimeout(wt),!gt&&!ut&&!Ct)return e?ke.emit("Change",L(),V()):void(wt=window.setTimeout(function(){gt||ut||ke.emit("Change",L())},1e3))}function a(e,t,i,o,n,d){pt.length&&(pt=pt.filter(function(e){return e(),!1})),ft&&ft(),ft=n,Oe.value=t,pt.push(highed.dom.on(Oe,"keydown",function(e){if(highed.isFn(o))return o(e)})),pt.push(highed.dom.on(Oe,"keyup",function(e){var t=highed.parseCSV(Oe.value);return t.length>1?void(confirm("You are about to load CSV data. This will overwrite your current data. Continue?")&&(mt=Oe.value,highed.emit("UIAction","PasteCSVAttempt"),O({csv:mt},null,!0,function(){}))):highed.isFn(i)&&i(Oe.value)})),highed.dom.ap(e,Oe),d||Oe.focus()}function h(e){Ht.forEach(function(e){e.element.classList.remove("highlight-right")}),yt.forEach(function(t){t.columns[e].element.className.indexOf("highlight-right")===-1&&(t.columns[e].element.className+=" highlight-right",Ht.push(t.columns[e]))}),xt[e].header.className.indexOf("highlight-right")===-1&&(xt[e].header.className+=" highlight-right",Ht.push({element:xt[e].header})),xt[e].letter.className.indexOf("highlight-right")===-1&&(xt[e].letter.className+=" highlight-right",Ht.push({element:xt[e].letter}),moveToColumn=e)}function l(e,t,i,o){function n(){t>=1?e.columns[t-1].focus():e.number-1>=0&&yt[e.number-1].columns[yt[e.number-1].columns.length-1].focus()}function l(){t0&&yt[e.number-1].columns.length>t&&yt[e.number-1].columns[t].focus()}function u(){e.numbert&&yt[e.number+1].columns[t].focus()}function p(t){return 37===t.keyCode?(n(),highed.dom.nodefault(t)):38===t.keyCode?(g(),highed.dom.nodefault(t)):39===t.keyCode||9===t.keyCode?(l(),highed.dom.nodefault(t)):40===t.keyCode?(u(),highed.dom.nodefault(t)):13===t.keyCode?(e.number===yt.length-1?(ke.emit("ColumnMoving"),S(),yt[e.number+1].columns[0].focus(),ke.emit("ColumnMoved")):u(),highed.dom.nodefault(t)):void 0}function m(){L.innerHTML="",Oe.value="",A=null,d()}function f(e){L.innerHTML=e,Oe.value=e,A=e,d()}function v(t){function i(e){return null===e||""===e}s(),Oe.className="highed-dtable-input",Oe.draggable=!1,highed.dom.on(Oe,"dragstart",function(e){return highed.dom.nodefault(e),!1}),highed.dom.on(Oe,"ondrop",function(e){return highed.dom.nodefault(e),!1}),a(M,A,function(e){var t=A!==e;A=i(e)?null:e,L.innerHTML=A,t&&d()},p,t),highed.dom.style(Be,{top:highed.dom.pos(M).y+highed.dom.size(M).h-3+"px",left:highed.dom.pos(M).x+highed.dom.size(M).w-3+"px",display:"block"}),e.select()}function b(){M.classList.remove("cell-selected")}function y(){M.classList.remove("cell-copy-selected")}function x(){M.className.indexOf("cell-selected")===-1&&(M.className+=" cell-selected",Ft.indexOf(D)===-1&&Ft.push(D))}function w(){Mt[0]=t,Mt[1]=e.number,c(At,Mt)}function C(){M.className.indexOf("cell-copy-selected")===-1&&(M.className+=" cell-copy-selected",Et.indexOf(D)===-1&&Et.push(D))}function k(){e.node.removeChild(M),M.innerHTML="",L.innerHTML=""}function z(){return A}function T(i){t=i||t,highed.dom.ap(e.node,highed.dom.ap(M,L))}var A="undefined"==typeof i||"object"==typeof i||"null"===i?null:i,M=highed.dom.cr("td","highed-dtable-cell"),L=highed.dom.cr("div","highed-dtable-col-val",A),D=(highed.dom.cr("input"),{});return highed.dom.on(M,"mouseup",function(i){if(Ot){Ot=!1;const o=yt[Lt[1]].columns[Lt[0]].value();Et.forEach(function(e){e.setValue(o),e.deselectCopyCell()}),Et=[]}else At[0]===Mt[0]&&At[1]===Mt[1]&&(Vt[0]=t,Vt[1]=e.number,Lt[0]=At[0],Lt[1]=At[1],Dt[1]=Mt[1],Dt[0]=Mt[0],It=[],v(),globalContextMenu.hide())}),highed.dom.on([M,L],"mouseover",function(i){_t&&(Ot?(t===Dt[0]?(Dt[1]=e.number,Dt[0]=Lt[0]):Dt[1]===e.number&&(Dt[1]=Lt[1],Dt[0]=t),r(Lt,Dt)):dragHeaderMode?h(t):w())}),highed.dom.on(M,"mousedown",function(){Vt[0]!==t&&Vt[1]!==e.number&&v(),At[0]=t,Mt[0]=t,At[1]=e.number,Mt[1]=e.number,Lt[0]=At[0],Lt[1]=At[1],Dt[1]=Mt[1],Dt[0]=Mt[0]}),yt.length<=500&&T(),D={focus:v,value:z,destroy:k,addToDOM:T,selectCell:x,deleteContents:m,deselectCell:b,deselectCopyCell:y,element:M,setValue:f,rowNumber:e.number,colNumber:t,selectCellToCopy:C,updateColNumber:function(e){t=e,D.colNumber=e}}}function s(){Ft.forEach(function(e){e.deselectCell()}),Ft=[],Mt[0]=null,Mt[1]=null,At[0]=null,At[1]=null}function r(e,t){Et=Et.filter(function(i){return i.rowNumber>t[1]||i.colNumber>t[0]||i.rowNumbert[0]&&(i=t[0],d=e),o=e[1]>t[1]?t:e,n=e[1]t[1]||i.colNumber>t[0]||i.rowNumbert[0]&&(i=t[0],d=e),o=e[1]>t[1]?t:e,n=e[1]=0&&e0&&e=0&&e0&&yt[0].columns[0].focus(),b(),d(),ke.emit("ColumnMoved")}}var n,l=highed.dom.cr("col"),r=(xt.length,highed.dom.cr("span","highed-dtable-top-bar-col")),g=highed.dom.cr("span","highed-dtable-top-bar-letter"),u=highed.dom.cr("div","","undefined"==typeof e||"null"===e?null:e),p=highed.dom.cr("div","highed-dtable-resize-handle"),m=highed.dom.cr("div","highed-dtable-top-bar-col-options fa fa-chevron-down"),f={col:l,header:r,headerTitle:u,colNumber:xt.length,letter:g,test:!0},v=highed.Movable(p,"X",!1,!1,{x:20,y:0},!0),x=highed.ContextMenu([{title:highed.L("dgSortAsc"),icon:"sort-amount-asc",click:function(){k(f.colNumber,"asc")}},{title:highed.L("dgSortDec"),icon:"sort-amount-desc",click:function(){k(f.colNumber,"desc")}},"-",{title:highed.L("dgSortAscMonth"),icon:"sort-amount-asc",click:function(){k(f.colNumber,"asc",!0)}},{title:highed.L("dgSortDecMonth"),icon:"sort-amount-desc",click:function(){k(f.colNumber,"desc",!0)}},"-",{title:highed.L("dgDelCol"),icon:"trash",click:function(){confirm(highed.L("dgDelColConfirm"))&&A(f.colNumber)}},"-",{title:highed.L("dgInsColBefore"),icon:"plus",click:function(){ke.emit("ColumnMoving"),T(f.colNumber),ke.emit("ColumnMoved")}},{title:highed.L("dgInsColAfter"),icon:"plus",click:function(){ke.emit("ColumnMoving"),T(f.colNumber+1),ke.emit("ColumnMoved")}}]),w=highed.dom.cr("span","highed-dtable-cell-value",St);g.value=highed.getLetterIndex(St),f.setLetter=function(e){w.innerHTML=e,g.value=highed.getLetterIndex(e)},f.hideColumns=function(){l.classList.contains("cell-hide")||(l.classList.add("cell-hide"),r.classList.add("cell-hide"),g.classList.add("cell-hide"))},f.showColumns=function(){l.classList.contains("cell-hide")&&(l.classList.remove("cell-hide"),r.classList.remove("cell-hide"),g.classList.remove("cell-hide"))},highed.dom.on(g,"mouseover",function(e){_t&&e.target!==m&&e.target!==p&&(dragHeaderMode?(Te.className.indexOf("active")===-1&&(Te.className+=" active",highed.dom.style(Te,{width:140*((It[0]0&&e.target.value>=It[0]&&e.target.value<=It[1]?dragHeaderMode=!0:e.target!==m&&e.target!==p&&(It=[],It[0]=e.target.value,It[1]=e.target.value,At[0]=e.target.value,Mt[0]=e.target.value,At[1]=0,Mt[1]=yt.length-1,c(At,Mt))}),highed.dom.on(ze,"mouseover",function(e){dragHeaderMode&&highed.dom.style(Te,{left:e.clientX-highed.dom.size(Te).w/2+"px"})}),highed.dom.on(ze,"mouseup",function(e){dragHeaderMode&&(o(),It=[],dragHeaderMode=!1,Te.classList.remove("active"),Ht.forEach(function(e){e.element.classList.remove("highlight-right")}),Ht=[],moveToColumn=null),globalContextMenu.hide()}),highed.dom.on(r,"mouseover",function(e){_t&&dragHeaderMode&&h(f.colNumber)}),St=y(St),f.addToDOM=function(){highed.dom.ap(Ve,l),highed.dom.ap(He,highed.dom.ap(g,w,m,p)),highed.dom.ap(Pe,highed.dom.ap(r,u))},f.destroy=function(){Ve.removeChild(l),Pe.removeChild(r),He.removeChild(g),xt=xt.filter(function(e){return e!==f})},f.addToDOM(),l.width=140,highed.dom.style([l,r,g],{width:l.width+"px","max-width":l.width+"px"}),v.on("StartMove",function(e){n=e,r.classList.contains("no-transition")||(r.classList+=" no-transition",g.classList+=" no-transition",l.classList+=" no-transition"),yt.length>0&&yt[0].columns[0].focus(),highed.dom.style(Be,{display:"none"}),highed.dom.style(document.body,{cursor:"ew-resize"})}),v.on("Moving",function(e){l.width=e,highed.dom.style(Be,{display:"none"}),highed.dom.style([l,r,g],{width:e+"px","max-width":e+"px"}),p.className="highed-dtable-resize-handle highed-dtable-resize-handle-moving"}),v.on("EndMove",function(e){highed.dom.style(document.body,{cursor:""}),r.classList.contains("no-transition")&&(r.classList.remove("no-transition"),g.classList.remove("no-transition"),l.classList.remove("no-transition")),p.className="highed-dtable-resize-handle",yt.length>0&&yt[0].columns[0].focus()}),highed.dom.on(m,"click",function(e){return x.show(e.clientX,e.clientY),highed.dom.nodefault(e)}),highed.dom.on(r,"click",function(t){Oe.className="highed-dtable-input highed-dtable-input-header",highed.dom.style(Be,{display:"none"}),s(),a(r,e,function(t){u.innerHTML=e=t,d()},function(e){13===e.keyCode&&(Oe.className="highed-dtable-input",r.removeChild(Oe))})}),yt.forEach(function(e){t?e.insertCol(t):e.addCol(null,Tt),Tt=y(Tt)}),isNaN(t)?xt.push(f):xt.splice(t,0,f),d()}function w(){highed.dom.style(Ue,{opacity:1})}function C(){highed.dom.style(Ue,{opacity:0})}function k(e,t,i){Le.innerHTML="",t=(t||"").toUpperCase(),yt.sort(function(o,n){var d=o.columns[e].value(),a=n.columns[e].value();return highed.isNum(d)&&highed.isNum(a)||i?(i?(d=kt[d.toUpperCase().substr(0,3)]||13,a=kt[a.toUpperCase().substr(0,3)]||13):(d=parseFloat(d),a=parseFloat(a)),"ASC"===t?d-a:ad?1:0):"ASC"===t?d?d.localeCompare(a):a:a?d?a.localeCompare(d):a:d?d.localeCompare(a):void 0}),u(),yt.length>0&&yt[0].columns[e].focus(),d()}function z(e){yt=yt.filter(function(e){return e.destroy(),!1}),xt=xt.filter(function(e){return!1}),Le.innerHTML="",Fe.innerHTML="",Pe.innerHTML="",He.innerHTML="",Ve.innerHTML="",St="A",highed.dom.style(De,{display:""}),ke.emit("ClearData",!0),d(e),w()}function S(e,t){var i=g(t);return xt.forEach(function(){i.addCol()}),e||d(),yt.length>1&&C(),i}function T(e){null===e&&(e=xt.length),e<=0&&(e=0),e>=xt.length&&(e=xt.length),x(highed.L("dgNewCol"),e),b()}function A(e){e>=0&&e-1||e.extraColumns.indexOf(t)>-1||e.labelColumn===t})}function V(e,t,i){function o(t,i){e&&!highed.isNum(t)&&highed.isStr(t)&&(t='"'+t.replace(/\"/g,'"')+'"'),highed.isNum(t)&&(t=parseFloat(t)),highed.isStr(t)&&NaN!==Date.parse(t),i.push(t)}var n=[];return t&&n.push(L(e,i)),Pt=[],yt.forEach(function(e){var t=[],d=!1;e.columns.forEach(function(e,n){if(!i||D(i,n)){var a=e.value();a&&(d=!0),Pt.indexOf(n)===-1&&(Pt.push(n),a||(d=!0,a=void 0)),o(a,t)}}),d&&n.push(t)}),n}function F(e){var t={categories:[],series:[]};return xt.forEach(function(e,i){i>0&&t.series.push({name:e.headerTitle.innerHTML.length?e.headerTitle.innerHTML:null,data:[]})}),yt.forEach(function(e,i){e.columns.forEach(function(e,i){var o=e.value();return i?(i--,o&&highed.isNum(o)&&(o=parseFloat(o)),o&&highed.isStr(o)&&NaN!==Date.parse(o),void t.series[i].data.push(o)):(o&&highed.isStr(o)&&NaN!==Date.parse(o),void t.categories.push(o))})}),t}function E(e,t,i){return e=e||",",V(t,!0,i).map(function(t){return t.join(e)}).join("\n")}function I(e,t){var i={};z(),e.length>1&&C(),e.some(function(e,t){var o=e.length;return i[o]="undefined"==typeof i[o]?0:i[o],++i[o],t>20}),Object.keys(i).length>4&&o(),highed.dom.style(Re,{opacity:1}),highed.dom.style(Ee,{opacity:0}),setTimeout(function(){if(e[0]&&e.lengthBt?e[0].length:Bt;e.forEach(function(e){if(e.lengthBt?n[0].length:Bt;n.forEach(function(e){if(e.lengthBt&&ke.emit("AssignDataForFileUpload",n[0].length),o&&o()})}Ct=!1,t||d(!0)}function B(e,t,i,o,n,d,a,h){$e.value=e,et.value=t||"",tt.value=h||"",it.value=i||0,ot.value=(o===Number.MAX_VALUE?"":o)||"",nt.value=n||0,dt.value=(d===Number.MAX_VALUE?"":d)||"",gt=!0,ut=!1,highed.dom.style(Je,{display:"block"}),highed.dom.style(ze,{display:"none"}),highed.dom.style(We,{display:"none"}),a||ke.emit("LoadGSheet",{googleSpreadsheetKey:$e.value,googleSpreadsheetWorksheet:et.value||!1,dataRefreshRate:tt.value||!1,enablePolling:0!==parseInt(tt.value),startRow:it.value||0,endRow:ot.value||void 0,startColumn:nt.value||0,endColumn:dt.value||void 0})}function G(){highed.dom.style(ze,{border:"1px solid #aa5555"})}function _(){highed.dom.style(ze,{border:"initial"})}function N(e){bt.addImportTab(e)}function j(){vt.hide()}function R(e){vt.show(),isNaN(e)||bt.selectTab(e),ke.emit("initExporter",bt.exporter),bt.resize()}function U(e){(e||yt.length<=1||confirm("This will clear your existing data. Continue?"))&&(z(!0),ke.emit("ClearSeries"),Xe.value="",Ke.value="",Ze.selectByIndex(0),highed.dom.style(Je,{display:"none"}),highed.dom.style(ze,{display:"none"}),highed.dom.style(We,{display:"block"}),vt.hide(),gt=!1,ut=!0)}function W(e){(e||yt.length<=1||confirm("This will clear your existing data. Continue?"))&&(z(!0),ke.emit("ClearSeries"),$e.value="",et.value="",tt.value="",highed.dom.style(Je,{display:"block"}),highed.dom.style(ze,{display:"none"}),highed.dom.style(We,{display:"none"}),vt.hide(),gt=!0,ut=!1)}function J(){Xe.value&&!confirm("Are you sure you want to remove your live data?")||(ke.emit("LoadLiveData",{url:""}),highed.dom.style(Je,{display:"none"}),highed.dom.style(ze,{display:"block"}),highed.dom.style(We,{display:"none"}),ut=!1,v())}function Y(){$e.value&&!confirm("Are you sure you want to detach the current spreadsheet?")||(ke.emit("LoadGSheet",{googleSpreadsheetKey:"",googleSpreadsheetWorksheet:!1}),highed.dom.style(Je,{display:"none"}),highed.dom.style(ze,{display:"block"}),highed.dom.style(We,{display:"none"}),gt=!1,v(),highed.emit("UIAction","DetachGoogleSheet"))}function q(){var e=X(highed.parseCSV(E())).map(function(e){return e.join(";")}).join("\n");Z(),O({csv:e},null,!0)}function X(e){var t,i,o,n,d;if(e)for(d=[],i=e.length,t=0;t0&&yt[0].columns[0].focus()}function Q(e,t){var i=e[0];if(e.length>0)for(;i<=e[e.length-1];)xt[i]&&(highed.dom.style(xt[i].letter,{"background-color":t.light,"border-left":"1px double "+t.dark,"border-top":"1px double "+t.dark,"border-bottom":"1px double "+t.dark,"border-right":"1px double "+t.dark}),highed.dom.style(xt[i].header,{"background-color":t.light,"border-left":"1px double "+t.dark,"border-right":"1px double "+t.dark,"border-bottom":"1px double "+t.dark})),i++}function $(e,t){e.length>0&&yt.forEach(function(i){for(var o=e[0];o<=e[e.length-1];)i.columns[o]&&highed.dom.style(i.columns[o].element,{"background-color":t.light}),o++})}function ee(e,t){e.forEach(function(i,o){yt.forEach(function(n){n.columns[i]&&highed.dom.style(n.columns[i].element,{"border-right":o===e.length-1?"1px double "+t.dark:"", "border-left":0===o?"1px double "+t.dark:""})})})}function te(e){e&&e.length>0&&yt.forEach(function(t){var i=e[0];if(e.length>0)for(;i<=e[e.length-1];)t.columns[i]&&highed.dom.style(t.columns[i].element,{"background-color":""}),i++})}function ie(e){if(e&&e.length>0){var t=e[0];if(e.length>0)for(;t<=e[e.length-1];)xt[t]&&highed.dom.style([xt[t].letter,xt[t].header],{"background-color":"",border:""}),t++}}function oe(e){(e||[]).forEach(function(e){(yt||[]).forEach(function(t){t.columns[e]&&highed.dom.style(t.columns[e].element,{"border-right":"","border-left":""})})})}function ne(e){oe(e),ie(e),te(e)}function de(e,t){ee(e,t),$(e,t),Q(e,t)}function ae(e,t,i,o){ne(e),de(t,i.colors)}function he(e,t,i,o){ne(t)}function le(e,t){var i=!1;xt.forEach(function(o,n){!e.indexOf(n)===-1?t?o.hideColumns():o.showColumns():(o.showColumns(),!i&&yt[0]&&(yt[0].columns[n].focus(),i=!0))})}function se(){return yt[0]&&yt[0].columns?yt[0].columns.length:2}function re(e){return!yt.some(function(t){return null!==t.columns[e].value()})}function ce(){return Pt}function ge(){return!gt&&!ut}function ue(e,t,i){var o,n=highed.dom.cr("table","highed-createchartwizard-table"),t=t,d=t;return e.forEach(function(e){d>=t&&(o=highed.dom.cr("tr",i),highed.dom.ap(n,o),d=0),d+=e.colspan,e.element={},e.type&&"select"===e.type?(e.element.dropdown=highed.DropDown(null,"highed-wizard-dropdown-container"),e.element.dropdown.addItems([{id:"columnsURL",title:"JSON (Column Ordered)"},{id:"rowsURL",title:"JSON (Row Ordered)"},{id:"csvURL",title:"CSV"}]),e.element.dropdown.selectByIndex(0),e.element.dropdown.on("Change",function(e){ct=e.id()}),e.element.input=e.element.dropdown.container):e.element.input=highed.dom.cr("input","highed-imp-input-stretch"),e.placeholder&&(e.element.input.placeholder=e.placeholder),e.element.label=highed.dom.cr("span","",e.label);const a=highed.dom.ap(highed.dom.cr("td","highed-modal-label"),e.element.label),h=highed.dom.ap(highed.dom.cr("td",""),e.element.input);a.colSpan=1,h.colSpan=e.colspan-1,highed.dom.ap(o,a,h)}),n}function pe(){return cancel=highed.dom.cr("button","highed-ok-button highed-import-button grey","Cancel"),highed.dom.on(cancel,"click",function(){we.hide()}),cancel}function me(e){const t=highed.dom.cr("div","highed-modal-container"),i=[{label:"URL",placeholder:"Spreadsheet ID",colspan:2,linkedTo:Xe},{label:"Refresh Time in Seconds",placeholder:"Refresh time (leave blank for no refresh)",colspan:2,linkedTo:Ke},{label:"Type",colspan:2,linkedTo:Ze,type:"select"}],o=ue(i,2,"highed-live-data"),n=highed.dom.cr("button","highed-ok-button highed-import-button negative","Import Data"),d=pe();return highed.dom.on(n,"click",function(){U(!0),we.hide(),i.forEach(function(e){e.type&&"select"===e.type?e.linkedTo.selectByIndex(e.element.dropdown.getSelectedItem().index()):e.linkedTo.value=e.element.input.value}),st.click(),e()}),highed.dom.ap(t,highed.dom.cr("div","highed-modal-title highed-help-toolbar","Import Live Data"),highed.dom.ap(highed.dom.cr("div"),highed.dom.cr("div","highed-modal-text","Live data needs a url to your JSON data to reference."),highed.dom.cr("div","highed-modal-text","This means that the published chart always loads the latest version of your data.")),highed.dom.ap(highed.dom.cr("div","highed-table-container"),o),highed.dom.ap(highed.dom.cr("div","highed-button-container"),n,d)),t}function fe(e){const t=highed.dom.cr("div","highed-modal-container");return inputs=[{label:"Google Spreadsheet ID",placeholder:"Spreadsheet ID",colspan:4,linkedTo:$e},{label:"Worksheet",placeholder:"Worksheet (leave blank for first)",colspan:4,linkedTo:et},{label:"Refresh Time in Seconds",placeholder:"Refresh time (leave blank for no refresh)",colspan:4,linkedTo:tt},{label:"Start Row",colspan:2,linkedTo:it},{label:"End Row",colspan:2,linkedTo:ot},{label:"Start Column",colspan:2,linkedTo:nt},{label:"End Column",colspan:2,linkedTo:dt}],Ae=ue(inputs,4),connectSheet=highed.dom.cr("button","highed-ok-button highed-import-button negative","Connect Sheet"),cancel=pe(),highed.dom.on(connectSheet,"click",function(){W(!0),we.hide(),inputs.forEach(function(e){e.linkedTo.value=e.element.input.value}),lt.click(),e()}),highed.dom.ap(t,highed.dom.cr("div","highed-modal-title highed-help-toolbar","Connect Google Sheet"),highed.dom.ap(highed.dom.cr("div"),highed.dom.cr("div","highed-modal-text","When using Google Spreadsheet, Highcharts references the sheet directly."),highed.dom.cr("div","highed-modal-text","This means that the published chart always loads the latest version of the sheet."),highed.dom.cr("div","highed-modal-text","For more information on how to set up your spreadsheet, visit the documentation.")),highed.dom.ap(highed.dom.cr("div","highed-table-container"),Ae),highed.dom.ap(highed.dom.cr("div","highed-button-container"),connectSheet,cancel)),t}function ve(e){const t=highed.dom.cr("div","highed-modal-container");return importData=highed.dom.cr("button","highed-ok-button highed-import-button negative","Import Data"),input=highed.dom.cr("textarea","highed-table-input"),cancel=pe(),highed.dom.on(importData,"click",function(){bt.emitCSVImport(input.value),we.hide(),e()}),highed.dom.ap(t,highed.dom.cr("div","highed-modal-title highed-help-toolbar","Cut And Paste Data"),highed.dom.ap(highed.dom.cr("div"),highed.dom.cr("div","highed-modal-text","Paste CSV into the below box, or upload a file. Click Import to import your data.")),highed.dom.ap(highed.dom.cr("div"),input),highed.dom.ap(highed.dom.cr("div","highed-button-container"),importData,cancel)),t}function be(e,t){const i=highed.dom.cr("div","highed-modal-container"),o=highed.dom.cr("div","highed-modal-buttons-container");return highed.samples.each(function(i){var n=i.dataset.join("\n"),d=highed.dom.cr("button","highed-box-size highed-imp-button",i.title);highed.dom.style(d,{width:"99%"}),highed.dom.on(d,"click",function(){t(!0),we.hide(),bt.emitCSVImport(n,function(){t(!1),e&&e()})}),highed.dom.ap(o,d,highed.dom.cr("br"))}),highed.dom.ap(i,o),i}function ye(e,t){var o=highed.dom.cr("div","highed-table-dropzone-container"),n=highed.dom.cr("button","highed-ok-button highed-import-button","Select File"),d=highed.dom.cr("div"),a=highed.dom.cr("div","highed-table-modal"),h=fe(e),l=me(e),s=be(e,t);cutAndPasteContainer=ve(e);var r=[{title:"Connect Google Sheet",linkedTo:h},{title:"Import Live Data",linkedTo:l,height:321},{title:"Cut and Paste Data",linkedTo:cutAndPasteContainer,height:448,width:518},{title:"Load Sample Data",linkedTo:s}];return r.forEach(function(e){const t=highed.dom.cr("button","highed-ok-button highed-import-button",e.title);highed.dom.on(t,"click",function(){we.resize(e.width||530,e.height||530),a.innerHTML="",highed.dom.ap(a,e.linkedTo),we.show()}),highed.dom.ap(d,t)}),highed.dom.on(n,"click",function(){highed.readLocalFile({type:"text",accept:".csv",success:function(t){highed.snackBar("File uploaded"),bt.emitCSVImport(t.data),e()}})}),we=highed.OverlayModal(!1,{minWidth:530,minHeight:530,showCloseIcon:!0}),highed.dom.ap(we.body,a),o.ondragover=function(e){e.preventDefault()},o.ondrop=function(t){t.preventDefault();var o,n,d=t.dataTransfer;if(d.items)for(n=0;n Loading'),Ue=highed.dom.cr("div","highed-dtable-drop-zone highed-transition"),We=highed.dom.cr("div","highed-box-size highed-dtable-gsheet-frame"),Je=highed.dom.cr("div","highed-box-size highed-dtable-gsheet-frame"),Ye=highed.dom.cr("div","highed-box-size highed-prettyscroll highed-dtable-gsheet"),qe=highed.dom.cr("div","highed-box-size highed-prettyscroll highed-dtable-gsheet"),Xe=highed.dom.cr("input","highed-imp-input-stretch"),Ke=highed.dom.cr("input","highed-imp-input-stretch"),Ze=highed.DropDown(),Qe=(highed.dom.cr("div","highed-customize-group"),highed.dom.cr("div","highed-customize-master-dropdown")),$e=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),et=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),tt=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),it=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),ot=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),nt=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),dt=highed.dom.cr("input","highed-box-size highed-dtable-gsheet-id"),at=highed.dom.cr("button","highed-import-button green padded","Detach Sheet From Chart"),ht=highed.dom.cr("button","switch-column-button highed-template-tooltip",' Switch Rows/Columns'),lt=highed.dom.cr("button","highed-import-button green padded","Load Spreadsheet"),st=highed.dom.cr("button","highed-import-button green padded","Load Live Data"),rt=highed.dom.cr("button","highed-import-button green padded","Cancel"),ct=0,gt=!1,ut=!1,pt=[],mt=!1,ft=!1,vt=highed.OverlayModal(!1,{minWidth:600,minHeight:600}),bt=highed.DataImporter(vt.body,Ce.importer),yt=[],xt=[],wt=!1,Ct=!1,kt={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12},zt=0,St="A",Tt="A",At=[],Mt=[],Lt=[],Dt=[],Vt=[null,null],Ft=[],Et=[],It=[],Ht=[],Pt=[],Ot=!1;moveToColumn=null,dragHeaderMode=!1,globalContextMenu=highed.ContextMenu([{title:"Insert Row Above",icon:"plus",click:function(){ke.emit("ColumnMoving"),m(At[1]),highed.emit("UIAction","AddRowBeforeHighlight"),ke.emit("ColumnMoved")}},{title:"Insert Row Below",icon:"plus",click:function(){ke.emit("ColumnMoving"),f(Mt[1]),highed.emit("UIAction","AddRowAfterHighlight"),ke.emit("ColumnMoved")}},"-",{title:"Remove Row",icon:"trash",click:function(){highed.emit("UIAction","BtnDeleteRow"),confirm(highed.L("dgDeleteRow"))&&(highed.emit("UIAction","DeleteRowConfirm"),yt.forEach(function(e,t){e.number===At[1]&&(e.destroy(),d())}),u())}},{title:highed.L("dgDelCol"),icon:"trash",click:function(){confirm(highed.L("dgDelColConfirm"))&&(ke.emit("ColumnMoving"),A(At[0]),b(),ke.emit("ColumnMoved"))}},"-",{title:highed.L("dgInsColBefore"),icon:"plus",click:function(){ke.emit("ColumnMoving"),T(At[0]),ke.emit("ColumnMoved")}},{title:highed.L("dgInsColAfter"),icon:"plus",click:function(){ke.emit("ColumnMoving"),T(At[0]+1),ke.emit("ColumnMoved")}}]);const Bt=9,Gt=20;highed.dom.ap(Ee,ht),highed.dom.on(Oe,"click",function(e){return highed.dom.nodefault(e)}),highed.dom.style(Ke,{padding:"8px"});var _t=!1;return document.body.onmousedown=function(){_t=!0},document.body.onmouseup=function(){_t=!1},document.addEventListener("keydown",function(e){8!==e.keyCode&&46!==e.keyCode||Ft.forEach(function(e){e.deleteContents()})},!1),document.addEventListener("contextmenu",function(e){if(e.path&&e.path.indexOf(ze)>-1)return globalContextMenu.show(e.clientX,e.clientY,!0),highed.dom.nodefault(e)},!1),highed.dom.on(document.querySelector("body"),"click",function(){globalContextMenu.hide()}),highed.dom.on(Be,"mousedown",function(e){Ot=!0,s()}),highed.dom.ap(Se,Be),Se.ondrop=function(e){e.preventDefault();var t,o,n=e.dataTransfer;if(n.items)for(o=0;o
","Usually this is caused by commas as thousand separators,","or something similar. Please choose which delimiter you want to use,","and click the Rerun button.

"].join(" ")),e,highed.dom.style(i,{marginRight:"5px"}),o),highed.dom.on(o,"click",Ge.hide),highed.dom.on(i,"click",function(){Ge.hide(),n(),O({csv:mt,delimiter:d},null,!0)})}),Ue.innerHTML='Drop CSV files here.
You can also paste CSV or Excel data into any cell',Ae.cellPadding=0,Ae.cellSpacing=0,highed.dom.on(Se,"scroll",function(e){Fe.style.top=-Se.scrollTop+"px",Ie.style.left=-Se.scrollLeft+40+"px"}),e=highed.dom.get(e),highed.dom.ap(e,Je,We,highed.dom.ap(ze,highed.dom.ap(Se,highed.dom.ap(Ae,Ve,Me,Le),De,Ue,Te),Ee,Fe,highed.dom.ap(Ie,He,Pe)),highed.dom.ap(_e,highed.dom.cr("div","highed-dtable-weird-data-body",["Uh-oh! It looks like our data importer may have had some issues","processing your data.","Usually this means that we were unable to deduce how the columns","are separated."].join(" ")),Ne,je),Re),$e.placeholder="Spreadsheet ID",et.placeholder="Worksheet (leave blank for first)",tt.placeholder="Refresh Time (leave blank for no refresh)",highed.dom.ap(Je,highed.dom.ap(Ye,highed.dom.cr("div","highed-dtable-gsheet-heading","Link Google Spreadsheet"),highed.dom.ap(highed.dom.cr("div","highed-dtable-gsheet-inner"),highed.dom.cr("div","highed-dtable-gsheet-label","Google Spreadsheet ID"),highed.dom.ap(highed.dom.cr("div"),$e),highed.dom.ap(highed.dom.cr("table","highed-stretch"),highed.dom.ap(highed.dom.cr("tr"),highed.dom.cr("td","highed-dtable-gsheet-label","Worksheet"),highed.dom.cr("td","highed-dtable-gsheet-label","Refresh Time (Seconds)")),highed.dom.ap(highed.dom.cr("tr"),highed.dom.ap(highed.dom.cr("td","",""),et),highed.dom.ap(highed.dom.cr("td","",""),tt)),highed.dom.ap(highed.dom.cr("tr"),highed.dom.cr("td","highed-dtable-gsheet-label","Start Row"),highed.dom.cr("td","highed-dtable-gsheet-label","End Row")),highed.dom.ap(highed.dom.cr("tr"),highed.dom.ap(highed.dom.cr("td","",""),it),highed.dom.ap(highed.dom.cr("td","",""),ot)),highed.dom.ap(highed.dom.cr("tr"),highed.dom.cr("td","highed-dtable-gsheet-label","Start Column"),highed.dom.cr("td","highed-dtable-gsheet-label","End Column")),highed.dom.ap(highed.dom.cr("tr"),highed.dom.ap(highed.dom.cr("td","",""),nt),highed.dom.ap(highed.dom.cr("td","",""),dt))),highed.dom.ap(highed.dom.cr("div","highed-gsheet-btn-container"),lt,at),highed.dom.cr("div","highed-gsheet-text",["When using Google Spreadsheet, Highcharts references the sheet directly.

","This means that the published chart always loads the latest version of the sheet.

","For more information on how to set up your spreadsheet, visit",'the documentation.'].join(" "))))),Ze.addItems([{id:"columnsURL",title:"JSON (Column Ordered)"},{id:"rowsURL",title:"JSON (Row Ordered)"},{id:"csvURL",title:"CSV"}]),Ze.on("Change",function(e){ct=e.id()}),highed.dom.ap(Qe,Ze.container),highed.dom.style(Qe,{display:"block"}),highed.dom.ap(We,highed.dom.ap(qe,highed.dom.cr("div","highed-dtable-gsheet-heading","Live Data"),highed.dom.ap(highed.dom.cr("div","highed-dtable-gsheet-inner"),highed.dom.cr("div","highed-dtable-gsheet-label","URL"),highed.dom.ap(highed.dom.cr("div"),Xe),highed.dom.ap(highed.dom.cr("table","highed-stretch"),highed.dom.ap(highed.dom.cr("tr"),highed.dom.cr("td","highed-dtable-gsheet-label","Chart Refresh Time (Seconds)"),highed.dom.cr("td","highed-dtable-gsheet-label","Data Type")),highed.dom.ap(highed.dom.cr("tr"),highed.dom.ap(highed.dom.cr("td","",""),Ke),highed.dom.ap(highed.dom.cr("td","",""),Qe))),highed.dom.ap(highed.dom.cr("div","highed-gsheet-btn-container"),st,rt),highed.dom.cr("div","highed-gsheet-text",["Live data needs a url to your JSON data to reference.

","This means that the published chart always loads the latest version of your data.

"].join(" "))))),highed.ready(function(){v()}),{toolbar:xe,sortRows:k,clear:z,addRow:S,insCol:T,delCol:A,loadCSV:O,getRawCSV:K,toData:V,toCSV:E,toDataSeries:F,getHeaderTextArr:L,addImportTab:N,hideImportModal:j,showImportModal:R,initGSheet:B,on:ke.on,resize:M,loadLiveDataFromURL:P,loadLiveDataPanel:H,isInCSVMode:ge,highlightCells:ae,removeAllCellsHighlight:he,toggleUnwantedCells:le,getColumnLength:se,getDataFieldsUsed:ce,createSimpleDataTable:ye,areColumnsEmpty:re,clearData:Z,showDataTableError:G,hideDataTableError:_,selectSwitchRowsColumns:q}},highed.DataPage=function(e,t,i,o,n){function d(){highed.onPhone()?highed.dom.ap(iconsContainer,R):highed.dom.ap(iconsContainer,N,dataClearBtn,R,dataExportBtn),highed.dom.ap(E,highed.dom.ap(D,highed.dom.ap(V,F),iconsContainer),I),highed.dom.ap(O,E),highed.dom.ap(I,P),B.resize(),highed.onPhone()&&highed.dom.style(O,{top:"47px",position:"relative"}),highed.dom.ap(e,highed.dom.ap(L,O)),j.init(B.getColumnLength()),l(),T()}function a(e){var t;return function(i){t&&clearTimeout(t),t=setTimeout(e,100,i)}}function h(){isVisible&&(T(),setTimeout(function(){l()},100))}function l(){function e(){var e=highed.dom.size(O),i=(highed.dom.size(D),{w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y});highed.dom.style(E,{width:"100%",height:i.h-16+"px"}),B.resize(),highed.onPhone()||j.resize(t,highed.dom.pos(o,!0).y-highed.dom.pos(O,!0).y)}var t=n.widths.desktop;highed.onTablet()&&n.widths.tablet?t=n.widths.tablet:highed.onPhone()&&n.widths.phone&&(t=n.widths.phone),n.iconOnly||(highed.dom.style(O,{width:"100%",opacity:1}),highed.onPhone()||highed.dom.style(L,{width:highed.dom.pos(j.getElement(),!0).x-highed.dom.pos(P,!0).x+14+"px"}),A.emit("BeforeResize",t),setTimeout(e,300),highed.emit("UIAction","ToolboxNavigation",n.title))}function s(){highed.dom.style(L,{display:"block"}),j.show(),isVisible=!0,T(),h()}function r(){highed.dom.style(L,{display:"none"}),j.hide(),isVisible=!1}function c(){}function g(e){B.addImportTab(e)}function u(){B.hideImportModal()}function p(e,t,o){if(B.isInCSVMode()){x();var n=[];if(j.setAssignDataFields(e,B.getColumnLength(),null,null,!0),t){const d=j.getAllOptions().length;for(var a=0;a-1&&(l[i.linkedTo]=n.indexOf(i.rawValue[0])):("label"===i.linkedTo&&(d=!0),n.indexOf(i.rawValue[0])>-1&&(l[i.linkedTo]=n.indexOf(i.rawValue[0]))))}),t.push(l)}if(t.length>0){if(d){const s={dataLabels:{enabled:!0,format:"{point.label}"}};if(o.plotOptions){const r=o.plotOptions.series;highed.merge(r,s),i.options.setAll(o)}else i.options.setAll(highed.merge({plotOptions:{series:s}},o))}o.data&&(o.data.seriesMapping=t,i.options.setAll(o))}}function C(e){if(e){for(var t=[],o=0;oData',dataClearBtn.innerHTML+=' Data',G.value=1,highed.dom.on(_,"click",function(e){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0);for(var t=0;t0)return!0}).map(function(t){return e[t].rawValue[0]});B.toggleUnwantedCells(i,t)}),j.on("AssignDataChanged",function(){x();const e=B.toCSV(";",!0,j.getAllMergedLabelAndData());i.data.csv({csv:e},null,!1,function(){w(j.getAllOptions())}),j.getFieldsToHighlight(B.highlightCells),i.data.setAssignDataFields(j.getAssignDataFields())}),j.on("RedrawGrid",function(e){C(e)}),j.on("ChangeData",function(e){const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());i.data.setAssignDataFields(j.getAssignDataFields()),i.data.csv({csv:t},null,!1,function(){w(e)})}),B.on("DisableAssignDataPanel",function(){j.disable()}),B.on("EnableAssignDataPanel",function(){j.enable()}),B.on("ColumnMoving",function(){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0)}),B.on("ColumnMoved",function(){j.getFieldsToHighlight(B.highlightCells,!0)}),B.on("InitLoaded",function(){j.getFieldsToHighlight(B.highlightCells,!0)}),B.on("initExporter",function(e){e.init(i.export.json(),i.export.html(),i.export.svg(),i)}),B.on("AssignDataForFileUpload",function(e){e||(e=B.getColumnLength()),j.setColumnLength(e),e-=2;var t=i.options.getCustomized(),o=t.series[t.series.length-1].type;blacklist.includes(o)||j.addSeries(e,o)}),B.on("AssignDataChanged",function(e,t){return chartOptions=i.toProject().options,chartOptions.data&&chartOptions.data.seriesMapping&&(chartOptions.data.seriesMapping=null,i.options.setAll(chartOptions)),i.data.setAssignDataFields(j.getAssignDataFields()),i.data.csv({csv:B.toCSV(";",!0,t)})}),B.on("LoadLiveData",function(e){const t={};t[e.type]=e.url,e.interval&&e.interval>0&&(t.enablePolling=!0,t.dataRefreshRate=e.interval),i.data.live(t)}),B.on("LoadGSheet",function(e){j.disable(),i.data.gsheet(e)}),B.on("Change",function(e,t){i.data.setDataTableCSV(B.toCSV(";",!0)),i.data.csv({csv:B.toCSV(";",!0,j.getAllMergedLabelAndData())},null,!0,function(){w(j.getAllOptions())})}),B.on("ClearData",function(){i.data.clear()}),B.on("ClearSeriesForImport",function(){var e=i.options.getCustomized();e.series=[],j.restart()}),B.on("ClearSeries",function(){var e=i.options.getCustomized();e.series=[]}),i.on("ProviderGSheet",function(e){j.disable(),B.initGSheet(e.id||e.googleSpreadsheetKey,e.worksheet||e.googleSpreadsheetWorksheet,e.startRow,e.endRow,e.startColumn,e.endColumn,!0,e.dataRefreshRate)}),i.on("ProviderLiveData",function(e){j.disable(),B.loadLiveDataPanel(e)}),i.on("SetResizeData",function(){}),{on:A.on,destroy:c,addImportTab:g,hideImportModal:u,chart:i,resize:h,data:{on:B.on,showLiveStatus:function(){},hideLiveStatus:function(){}},hide:r,show:s,dataTable:B,isVisible:function(){return isVisible},init:d,setChartTitle:f,getChartTitle:y,getIcons:m,changeAssignDataTemplate:p,createSimpleDataTable:z,loadProject:k,showDataTableError:v,hideDataTableError:b,selectSwitchRowsColumns:S}},highed.SimpleDataPage=function(e,t,i,o,n,d){function a(){highed.onPhone()?highed.dom.ap(iconsContainer,R):highed.dom.ap(iconsContainer,N,dataClearBtn,R,dataExportBtn),highed.dom.ap(E,highed.dom.ap(D,highed.dom.ap(V,F),iconsContainer),I),highed.dom.ap(O,E),highed.dom.ap(I,P),B.resize(),highed.onPhone()&&highed.dom.style(O,{top:"47px",position:"relative"}),highed.dom.ap(e,highed.dom.ap(L,O)),j.init(B.getColumnLength()),s()}function h(e){var t;return function(i){t&&clearTimeout(t),t=setTimeout(e,100,i)}}function l(){isVisible&&setTimeout(function(){s()},100)}function s(){function e(){var e=highed.dom.size(O),i=(highed.dom.size(D),{w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y});highed.dom.style(E,{width:"100%",height:i.h-16+"px"}),B.resize(),highed.onPhone()||j.resize(t,highed.dom.pos(n,!0).y-highed.dom.pos(O,!0).y)}var t=100;highed.onPhone()||highed.dom.style(L,{width:"100%"}),A.emit("BeforeResize",t),setTimeout(e,300),highed.emit("UIAction","ToolboxNavigation",d.title)}function r(){highed.dom.style(L,{display:"block"}),j.show(),isVisible=!0,l()}function c(){highed.dom.style(L,{display:"none"}),j.hide(),isVisible=!1}function g(){}function u(e){B.addImportTab(e)}function p(){B.hideImportModal()}function m(e,t,i){if(B.isInCSVMode()){w();var n=[];if(j.setAssignDataFields(e,B.getColumnLength(),null,null,!0),t){const d=j.getAllOptions().length;for(var a=0;a-1&&(l[i.linkedTo]=n.indexOf(i.rawValue[0])):("label"===i.linkedTo&&(d=!0), n.indexOf(i.rawValue[0])>-1&&(l[i.linkedTo]=n.indexOf(i.rawValue[0]))))}),t.push(l)}if(t.length>0){if(d){const s={dataLabels:{enabled:!0,format:"{point.label}"}};if(i.plotOptions){const r=i.plotOptions.series;highed.merge(r,s),o.options.setAll(i)}else o.options.setAll(highed.merge({plotOptions:{series:s}},i))}i.data&&(i.data.seriesMapping=t,o.options.setAll(i))}}function k(e){if(e){for(var t=[],i=0;iData',dataClearBtn.innerHTML+=' Data',G.value=1,highed.dom.on(_,"click",function(e){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0);for(var t=0;t0)return!0}).map(function(t){return e[t].rawValue[0]});B.toggleUnwantedCells(i,t)}),j.on("AssignDataChanged",function(){w();const e=B.toCSV(";",!0,j.getAllMergedLabelAndData());o.data.csv({csv:e},null,!1,function(){C(j.getAllOptions())}),j.getFieldsToHighlight(B.highlightCells),o.data.setAssignDataFields(j.getAssignDataFields())}),j.on("RedrawGrid",function(e){k(e)}),j.on("ChangeData",function(e){const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());o.data.setAssignDataFields(j.getAssignDataFields()),o.data.csv({csv:t},null,!1,function(){C(e)})}),B.on("DisableAssignDataPanel",function(){j.disable()}),B.on("EnableAssignDataPanel",function(){j.enable()}),B.on("ColumnMoving",function(){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0)}),B.on("ColumnMoved",function(){j.getFieldsToHighlight(B.highlightCells,!0)}),B.on("InitLoaded",function(){j.getFieldsToHighlight(B.highlightCells,!0)}),B.on("initExporter",function(e){e.init(o.export.json(),o.export.html(),o.export.svg(),o)}),B.on("AssignDataForFileUpload",function(e){e||(e=B.getColumnLength()),j.setColumnLength(e),e-=2;var t=o.options.getCustomized(),i=t.series[t.series.length-1].type;blacklist.includes(i)||j.addSeries(e,i)}),B.on("AssignDataChanged",function(e,t){return chartOptions=o.toProject().options,chartOptions.data&&chartOptions.data.seriesMapping&&(chartOptions.data.seriesMapping=null,o.options.setAll(chartOptions)),o.data.setAssignDataFields(j.getAssignDataFields()),o.data.csv({csv:B.toCSV(";",!0,t)})}),B.on("LoadLiveData",function(e){const t={};t[e.type]=e.url,e.interval&&e.interval>0&&(t.enablePolling=!0,t.dataRefreshRate=e.interval),o.data.live(t)}),B.on("LoadGSheet",function(e){j.disable(),o.data.gsheet(e)}),B.on("Change",function(e,t){o.data.setDataTableCSV(B.toCSV(";",!0)),o.data.csv({csv:B.toCSV(";",!0,j.getAllMergedLabelAndData())},null,!0,function(){C(j.getAllOptions())})}),B.on("ClearData",function(){o.data.clear()}),B.on("ClearSeriesForImport",function(){var e=o.options.getCustomized();e.series=[],j.restart()}),B.on("ClearSeries",function(){var e=o.options.getCustomized();e.series=[]}),o.on("ProviderGSheet",function(e){j.disable(),B.initGSheet(e.id||e.googleSpreadsheetKey,e.worksheet||e.googleSpreadsheetWorksheet,e.startRow,e.endRow,e.startColumn,e.endColumn,!0,e.dataRefreshRate)}),o.on("ProviderLiveData",function(e){j.disable(),B.loadLiveDataPanel(e)}),o.on("SetResizeData",function(){}),{on:A.on,destroy:g,addImportTab:u,hideImportModal:p,chart:o,resize:l,data:{on:B.on,showLiveStatus:function(){},hideLiveStatus:function(){}},hide:c,show:r,dataTable:B,isVisible:function(){return isVisible},init:a,setChartTitle:v,getChartTitle:x,getIcons:f,changeAssignDataTemplate:m,createSimpleDataTable:S,loadProject:z,showDataTableError:b,hideDataTableError:y,selectSwitchRowsColumns:T}},highed.CreateChartPage=function(e,t,i){function o(i,o,s){var c=1;toolbox=highed.Toolbox(x),f.forEach(function(e,i){if(!e.permission||t.indexOf(e.permission)!==-1){var o=toolbox.addEntry({title:e.title,number:c,onClick:l,hideTitle:e.hideTitle});highed.isFn(e.create)&&e.create(o.body),A.push(o),c++}}),A[0].expand(),n(),d(i),a(o),h(),highed.dom.ap(y,x),highed.dom.ap(w,y),highed.dom.ap(e,highed.dom.ap(v,w)),r()}function n(){var e=highed.dom.cr("input","highed-imp-input"),i=highed.dom.cr("input","highed-imp-input"),o=highed.dom.cr("button","highed-ok-button highed-import-button negative","Next"),n=highed.dom.cr("span","highed-toolbox-skip-all","Skip All");e.placeholder="Enter chart title",i.placeholder="Enter chart subtitle",e.value="",i.value="",highed.dom.on(o,"click",function(){t&&t.indexOf("templates")===-1?A[1].expand():A[2].expand(),m.emit("SimpleCreateChangeTitle",{title:e.value,subtitle:i.value})}),highed.dom.on(n,"click",function(){m.emit("SimpleCreateChartDone",!0)}),highed.dom.ap(z,highed.dom.cr("table"),highed.dom.ap(highed.dom.cr("tr","highed-toolbox-input-container"),highed.dom.cr("td","highed-toolbox-label","Chart Title"),highed.dom.ap(highed.dom.cr("td"),e)),highed.dom.ap(highed.dom.cr("tr","highed-toolbox-input-container"),highed.dom.cr("td","highed-toolbox-label","Subtitle"),highed.dom.ap(highed.dom.cr("td"),i)),highed.dom.ap(highed.dom.cr("tr"),highed.dom.cr("td"),highed.dom.ap(highed.dom.cr("td","highed-toolbox-button-container"),n,o)))}function d(e){var i=highed.dom.cr("button","highed-ok-button highed-import-button negative","No thanks, I will enter my data manually"),o=highed.dom.cr("span","highed-wizard-loader",''),n=e.createSimpleDataTable(function(){t&&t.indexOf("templates")===-1?A[2].expand():t&&t.indexOf("customize")===-1?m.emit("SimpleCreateChartDone",!0):A[3].expand()},function(e){e?o.classList+=" active":o.classList.remove("active")});highed.dom.on(i,"click",function(){t&&t.indexOf("templates")===-1?A[2].expand():t&&t.indexOf("customize")===-1?m.emit("SimpleCreateChartDone",!0):A[3].expand()}),highed.dom.ap(T,highed.dom.ap(n,highed.dom.ap(highed.dom.cr("div","highed-toolbox-button-container"),o,i)))}function a(e){var t=highed.dom.cr("button","highed-ok-button highed-import-button negative","Choose A Template Later"),i=highed.dom.ap(highed.dom.cr("div","highed-toolbox-skip-all"),highed.dom.cr("span","","Skip All"));loader=highed.dom.cr("span","highed-wizard-loader ",''),templatesContainer=e.createMostPopularTemplates(function(){setTimeout(function(){A[1].expand()},200)},function(e){e?loader.classList+=" active":loader.classList.remove("active")}),highed.dom.on(i,"click",function(){m.emit("SimpleCreateChartDone",!0)}),highed.dom.on(t,"click",function(){A[1].expand()}),highed.dom.ap(S,highed.dom.ap(highed.dom.cr("div","highed-toolbox-template-body"),highed.dom.ap(highed.dom.cr("div","highed-toolbox-text"),highed.dom.cr("div","highed-toolbox-template-text","Pick a basic starter template. You can change it later."),highed.dom.cr("div","highed-toolbox-template-text","If you're not sure, just hit Choose A Template Later.")),highed.dom.ap(highed.dom.cr("div","highed-toolbox-extras"),t,highed.dom.ap(i,loader))),templatesContainer)}function h(){var e=highed.dom.cr("button","highed-ok-button highed-import-button negative","Customize Your Chart");highed.dom.on(e,"click",function(){m.emit("SimpleCreateChartDone")}),highed.dom.ap(k,highed.dom.cr("div","highed-toolbox-customize-header","You're Done!"),highed.dom.ap(highed.dom.cr("div","highed-toolbox-button-container"),e))}function l(e){A.forEach(function(t,i){i+1<=e?t.disselect():t.removeCompleted()})}function s(){C&&r()}function r(){function e(){var e=highed.dom.size(w),t=(highed.dom.size(b),{w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(w,!0).y});highed.dom.style(y,{width:t.w+"px",height:t.h-16+"px"})}var t=i.widths.desktop;highed.onTablet()&&i.widths.tablet?t=i.widths.tablet:highed.onPhone()&&i.widths.phone&&(t=i.widths.phone),highed.dom.style(w,{width:"100%",opacity:1}),highed.dom.style(v,{width:t+"%"}),m.emit("BeforeResize",t),setTimeout(e,300),highed.emit("UIAction","ToolboxNavigation",i.title)}function c(){highed.dom.style(v,{display:"block"}),C=!0}function g(){highed.dom.style(v,{display:"none"}),C=!1}function u(){}function p(){return null}var m=highed.events(),f=[{id:1,title:"Choose Template",permission:"templates",create:function(e){highed.dom.ap(e,S)}},{id:2,title:"Title Your Chart",create:function(e){highed.dom.ap(e,z)}},{id:3,title:"Import Data",create:function(e){highed.dom.ap(e,T)}},{id:4,title:"Customize",permission:"customize",hideTitle:!0,create:function(e){highed.dom.ap(e,k)}}],v=highed.dom.cr("div","highed-transition highed-toolbox wizard highed-box-size "),b=highed.dom.cr("div","highed-toolbox-body-title"),y=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),x=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents test-test"),w=highed.dom.cr("div","highed-toolbox-body highed-box-size highed-transition"),C=(highed.dom.cr("div","highed-toolbox-createchart-list"),!1),k=highed.dom.cr("div","highed-toolbox-customise"),z=highed.dom.cr("div","highed-toolbox-title"),S=highed.dom.cr("div","highed-toolbox-template"),T=highed.dom.cr("div","highed-toolbox-data"),A=[];return highed.dom.on(window,"resize",s),{on:m.on,destroy:u,hide:g,show:c,isVisible:function(){return C},init:o,getIcons:p}},highed.TemplatePage=function(e,t,i,o,n){function d(){v=highed.dom.cr("div","highed-toolbox-body-title"),b="highed-box-size highed-toolbox-bar-icon fa "+n.icon,S.innerHTML="",x=highed.ChartTemplateSelector(S,i),y=highed.HelpModal(n.help||[]),x.on("Select",function(e){w.emit("TemplateChanged",e)}),x.on("LoadDataSet",function(e){"csv"===e.type&&(highed.isArr(e.dataset)?i.data.csv(e.dataset.join("\n")):i.data.csv(e.dataset),i.options.set("subtitle-text",""),i.options.set("title-text",e.title))}),k.innerHTML="",highed.dom.ap(z,S),highed.dom.ap(k,z),highed.dom.ap(T,k),highed.dom.ap(e,highed.dom.ap(C,T)),x.resize(),g(),p()}function a(e,t){x.selectSeriesTemplate(e,t)}function h(e,t,i,o,n){const d=highed.dom.cr("div","highed-template-header",t),a=highed.dom.cr("div","highed-templates-container");highed.dom.ap(e,highed.dom.ap(highed.dom.cr("div","highed-toolbox-template-container"),d,a)),i.id&&(i=highed.templates.getAllInCat(i.id)),Object.keys(i).forEach(function(e){const t=highed.dom.cr("div","highed-template-container"),d=highed.dom.cr("div","highed-chart-template-thumbnail"),h=i[e];highed.meta.images&&highed.meta.images[h.thumbnail]?highed.dom.style(d,{"background-image":'url("data:image/svg+xml;utf8,'+highed.meta.images[h.thumbnail]+'")'}):highed.dom.style(d,{"background-image":"url("+highed.option("thumbnailURL")+h.thumbnail+")"}),highed.dom.on(t,"click",function(){o(!0),setTimeout(function(){h.header=h.parent,w.emit("TemplateChanged",highed.merge({},h),!0,function(){o(!1),n()})},1e3)}),highed.dom.ap(a,highed.dom.ap(t,d,highed.dom.cr("div","highed-template-title",h.title)))})}function l(e,t){const i=highed.templates.getCatArray(),o=highed.dom.cr("div","highed-toolbox-templates-container"),n=highed.templates.getMostPopular();return h(o,"Most Popular",n,t,e),Object.keys(i).forEach(function(n){const d=i[n];h(o,d.id,d,t,e)}),o}function s(){return null}function r(){A&&(g(),setTimeout(function(){f((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(T,!0).y-16)}))}function c(e){var t;return function(i){t&&clearTimeout(t),t=setTimeout(e,100,i)}}function g(){function t(){var e=highed.dom.size(T),t=highed.dom.size(v),o={w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(T,!0).y};return highed.dom.style(k,{width:"100%",height:o.h-16+"px"}),highed.dom.style(z,{width:o.w+"px",height:o.h-16-47+"px"}),x.resize(i,o.h-17-t.h),o}var i=n.widths.desktop;if(highed.onTablet()&&n.widths.tablet?i=n.widths.tablet:highed.onPhone()&&n.widths.phone&&(i=n.widths.phone),highed.dom.style(T,{width:"100%",opacity:1}),!highed.onPhone()){const d=highed.dom.size(e).w,a=.32;var h=window.getComputedStyle(o),l=window.getComputedStyle(C),s=parseFloat(h.marginLeft)+parseFloat(h.marginRight),r=parseFloat(l.marginLeft)+parseFloat(l.marginRight);highed.dom.style(C,{width:d*a-(s+r+35)-3+"px"})}w.emit("BeforeResize",i),setTimeout(t,300),highed.emit("UIAction","ToolboxNavigation",n.title)}function u(){highed.dom.style(C,{display:"block"}),g(),setTimeout(function(){f((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(T,!0).y-16)},200),A=!0}function p(){highed.dom.style(C,{display:"none"}),A=!1}function m(){}function f(e){highed.dom.style(o,{width:"68%",height:e+"px"}),setTimeout(i.resize,200)}var v,b,y,x,w=highed.events(),C=(highed.merge({defaultChartOptions:{},useHeader:!0,features:["data","templates","customize","customcode","advanced","export"],importer:{},dataGrid:{},customizer:{},toolbarIcons:[]},t),highed.dom.cr("div","highed-transition highed-toolbox highed-box-size")),k=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),z=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents highed-toolbox-defaultpage highed-toolbox-templatepage"),S=(highed.dom.cr("div","highed-toolbox-help highed-icon fa fa-question-circle"),highed.dom.cr("div",b),highed.dom.cr("div","highed-box-size highed-fill")),T=highed.dom.cr("div","highed-toolbox-body highed-box-size highed-transition"),A=(highed.dom.cr("div","highed-toolbox-icons"),!1);return highed.onPhone()||highed.dom.on(window,"resize",c(function(e){r()})),i.on("ChartChange",function(e){w.emit("ChartChangedLately",e)}),i.on("SetResizeData",function(){}),{on:w.on,destroy:m,chart:i,getIcons:s,resize:r,hide:p,show:u,createMostPopularTemplates:l,isVisible:function(){return A},init:d,selectSeriesTemplate:a}},highed.CustomizePage=function(e,t,i,o,n,d,a){function h(e){e&&"null"!==e&&"undefined"!==e&&"undefined"!=typeof e?box.innerHTML="":(box.innerHTML="auto",e="#FFFFFF"),highed.dom.style(box,{background:e,color:highed.getContrastedColor(e)})}function l(){return navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Mac")!=-1&&navigator.userAgent.indexOf("Chrome")==-1}function s(){z=n.width,k=highed.dom.cr("div","highed-customize-title"),S="highed-box-size highed-toolbox-bar-icon fa "+n.icon,P.innerHTML="",A=highed.ChartCustomizer(P,t,i,a),T=highed.HelpModal(n.help||[]),A.on("PropertyChange",i.options.set),A.on("PropertySetChange",i.options.setAll),A.on("TogglePlugins",i.options.togglePlugins),A.on("AdvancedBuilt",function(){var e=highed.dom.size(O),t={w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y};R.resize(z,t.h-highed.dom.size(o).h-15),R.setOptions(A.getAdvancedOptions())}),A.on("AnnotationsClicked",function(){i.options.togglePlugins("annotations",1)}),A.on("AdvanceClicked",function(){z=66,highed.onTablet()&&(z=64),I=28,highed.dom.style(backIcon,{display:"inline-block"}),p(),C(300),setTimeout(i.resize,1e3),R.show()}),highed.dom.ap(U,chartSizeText,stretchToFitIcon,tabletIcon,W,resWidth,resHeight),V.innerHTML="",B.innerHTML="",highed.onPhone()||N.forEach(function(e,t){e.noPermission||(e.element=highed.dom.cr("span","highed-toolbox-custom-code-icon highed-template-tooltip "+(0===t?" active":""),''+e.tooltip+""),highed.dom.on(e.element,"click",function(){N.forEach(function(e){e.noPermission||e.element.classList.remove("active")}),e.element.classList.add("active"),e.onClick()}),highed.dom.ap(B,e.element))});var d=highed.dom.cr("span","highed-template-tooltip annotation-buttons "+(l()?" usingsafari ":""),'Annotations');highed.dom.on(d,"click",function(){M.classList.contains("active")?M.classList.remove("active"):M.classList.add("active")}),M||(M=highed.dom.cr("div","highed-transition highed-annotation-container"),highed.dom.ap(M,d),_.forEach(function(e){var t=highed.dom.cr("span","highed-template-tooltip annotation-buttons "+(l()?" usingsafari ":""),''+e.tooltip+"");e.onClick||!e.draggable?highed.dom.on(t,"click",function(){if(e.onClick)e.onClick();else{var t=!(e.element.className.indexOf("active")>-1);_.forEach(function(e){e.element.classList.remove("active")}),i.setIsAnnotating(t),t&&(i.options.togglePlugins("annotations",1),i.setAnnotationType(e.value),e.element.className+=" active")}}):highed.dom.on(t,"mousedown",function(o){function n(e,i){highed.dom.style(G,{left:e-(t.offsetWidth/2-10)+"px",top:i-(t.offsetHeight/2-10)+"px"})}function d(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),n(e.pageX,e.pageY)}G=highed.dom.cr("div","highed-active-annotation fa fa-"+e.icon),highed.dom.ap(document.body,G),n(o.pageX,o.pageY),document.addEventListener("mousemove",d),highed.dom.on(G,"mouseup",function(t){t=i.options.all().pointer.normalize(t),document.removeEventListener("mousemove",d),G.onmouseup=null,G.remove(),G=null,i.options.togglePlugins("annotations",1),i.setAnnotationType(e.value),i.addAnnotation(t)})}),e.element=t,highed.dom.ap(M,t)})),highed.dom.ap(B,M),highed.dom.ap(F,E),highed.dom.ap(O,F),highed.dom.ap(E,P),highed.dom.ap(e,highed.dom.ap(D,O)),p(),f()}function r(){return U}function c(e){var t;return function(i){t&&clearTimeout(t),t=setTimeout(e,100,i)}}function g(e){z=n.widths.desktop,highed.onTablet()&&n.widths.tablet?z=n.widths.tablet:highed.onPhone()&&n.widths.phone&&(z=n.widths.phone),I=68,p(),setTimeout(function(){e&&e(),C((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y-16)},200)}function u(){j&&(p(),setTimeout(function(){C((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y-16)},500))}function p(){function t(){var e=highed.dom.size(O),t=highed.dom.size(V),i={w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y};return highed.dom.style(F,{width:"100%",height:i.h-16+"px"}),A.resize(i.w,i.h-17-t.h),i}var i=z;if(highed.dom.style(O,{width:"100%",opacity:1}),!highed.onPhone()){const d=highed.dom.size(e).w,a=(100-I)/100;var h=window.getComputedStyle(o),l=window.getComputedStyle(D),s=parseFloat(h.marginLeft)+parseFloat(h.marginRight),r=parseFloat(l.marginLeft)+parseFloat(l.marginRight);highed.dom.style(D,{width:d*a-(s+r+35)-3+"px"})}L.emit("BeforeResize",i),setTimeout(t,300),highed.emit("UIAction","ToolboxNavigation",n.title)}function m(){highed.dom.style(D,{display:"block"}),p(),C((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y-16),j=!0,highed.dom.style(U,{display:"block"}),H&&setTimeout(function(){document.getElementById("highed-list-header-Appearance").classList.contains("active")||document.getElementById("highed-list-header-Appearance").children[0].click()},300)}function f(){A.showSimpleEditor(),z=n.widths.desktop,highed.onTablet()&&n.widths.tablet?z=n.widths.tablet:highed.onPhone()&&n.widths.phone&&(z=n.widths.phone),I=68,highed.dom.style(backIcon,{display:"none"}),R.hide(),p(),highed.dom.style(D,{display:"none"}),j=!1,R.hide(),U&&highed.dom.style(U,{display:"none"}),highed.onPhone()||N.forEach(function(e,t){e.noPermission||(e.element&&e.element.classList.remove("active"),0===t&&(e.element.classList+=" active"))}),resHeight.value="",resWidth.value=""}function v(e,t,i){A.focus(e,t,i)}function b(e){H=e}function y(){}function x(e,t){if(e&&0!==e.length||t&&0!==t.length){var n=highed.dom.size(o);fixedSize={w:e,h:t},e="auto"===e?n.w:e||n.w-100,t="auto"===t?n.h:t||n.h-100,highed.dom.style(d,{width:e+"px",height:t+"px"}),i.resize(e,t)}else fixedSize=!1,resHeight.value="",resWidth.value="",C()}function w(){return B}function C(e){highed.dom.style(o,{width:I+"%",height:e+"px"||"100%"}),setTimeout(i.resize,200)}var k,z,S,T,A,M,L=highed.events(),D=highed.dom.cr("div","highed-transition highed-toolbox highed-box-size"),V=highed.dom.cr("div","highed-toolbox-body-title"),F=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),E=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents test"),I=(highed.dom.cr("div","highed-toolbox-help highed-icon fa fa-question-circle"),68),H=!0,P=(highed.dom.cr("div",S),highed.dom.cr("div","highed-box-size highed-fill")),O=highed.dom.cr("div","highed-toolbox-body highed-box-size highed-transition"),B=highed.dom.cr("div","highed-icons-container"),G=null,_=[{tooltip:"Add Circle",icon:"circle",value:"circle",draggable:!0},{tooltip:"Add Square",icon:"stop",value:"rect",draggable:!0},{tooltip:"Add Annotations",icon:"comment",value:"label",draggable:!0},{tooltip:"Move",icon:"arrows",value:"drag"},{tooltip:"Remove",icon:"trash",value:"delete"},{tooltip:"Close",icon:"times",onClick:function(){_.forEach(function(e){e.element.classList.remove("active")}),i.setIsAnnotating(!1),M.classList.remove("active")}}],N=[{tooltip:"Basic",onClick:function(){g(A.showSimpleEditor)},icon:"cog"},{tooltip:"Advanced",noPermission:t.noAdvanced,onClick:function(){A.showAdvancedEditor()},icon:"cogs"},{tooltip:"Custom Code",noPermission:t.noCustomCode,onClick:function(){g(A.showCustomCode)},icon:"code"},{tooltip:"Preview Options",noPermission:t.noPreview,onClick:function(){g(A.showPreviewOptions)},icon:"eye"}],j=!1,R=highed.SearchAdvancedOptions(e),U=highed.dom.cr("span","highed-resolution-settings"),W=highed.dom.cr("span","",'');tabletIcon=highed.dom.cr("span","",''),tabletIcon=highed.dom.cr("span","",''),stretchToFitIcon=highed.dom.cr("span","",''),chartSizeText=highed.dom.cr("span","text","Chart Size:"),resWidth=highed.dom.cr("input","highed-res-number"),resHeight=highed.dom.cr("input","highed-res-number"),resolutions=[{iconElement:W,width:414,height:736},{iconElement:tabletIcon,width:1024,height:768}],overlayAddTextModal=highed.OverlayModal(!1,{showOnInit:!1,width:300,height:350,class:" highed-annotations-modal"}),activeColor="rgba(0, 0, 0, 0.75)",addTextModalContainer=highed.dom.cr("div","highed-add-text-popup"),addTextModalInput=highed.dom.cr("textarea","highed-imp-input-stretch"),colorDropdownParent=highed.dom.cr("div"),typeDropdownParent=highed.dom.cr("div"),addTextModalHeader=highed.dom.cr("div","highed-modal-header","Add Annotation"),addTextModalColorSelect=highed.DropDown(colorDropdownParent),addTextModalTypeOptions=[{text:"Callout",icon:"comment-o",value:"callout"},{text:"Connector",icon:"external-link",value:"connector"},{text:"Circle",icon:"circle-o",value:"circle"}],addTextModalTypeValue="callout",addTextModalColorValue="#000000",addTextModalColorContainer=highed.dom.cr("div","highed-modal-color-container"),addTextModalColorInput=highed.dom.cr("input","highed-color-input"),box=highed.dom.cr("div","highed-field-colorpicker",""),addTextModalBtnContainer=highed.dom.cr("div","highed-modal-button-container"),addTextModalSubmit=highed.dom.cr("button","highed-ok-button highed-import-button mini","Save"),addTextModalCancel=highed.dom.cr("button","highed-ok-button highed-import-button grey negative mini","Cancel"),addLabelX=null,addLabelY=null,resWidth.placeholder="W",resHeight.placeholder="H",addTextModalColorSelect.addItems([{title:"Black",id:"black",select:function(){activeColor="rgba(0, 0, 0, 0.75)"}},{title:"Red",id:"red",select:function(){activeColor="rgba(255, 0, 0, 0.75)"}},{title:"Blue",id:"blue",select:function(){activeColor="rgba(0, 0, 255, 0.75)"}}]),addTextModalColorSelect.selectByIndex(0),addTextModalColorInput.value=addTextModalColorValue,highed.dom.on(addTextModalCancel,"click",function(){overlayAddTextModal.hide()}),highed.dom.style(box,{background:addTextModalColorValue,color:highed.getContrastedColor(addTextModalColorValue)}),addTextModalTypeOptions.forEach(function(e){var t=highed.dom.cr("div","highed-annotation-modal-container "+(addTextModalTypeValue===e.value?" active":"")),i=highed.dom.cr("div","highed-modal-icon fa fa-"+e.icon),o=highed.dom.cr("div","highed-modal-text",e.text);e.element=t,highed.dom.on(t,"click",function(){addTextModalTypeOptions.forEach(function(e){e.element.classList.contains("active")&&e.element.classList.remove("active")}),e.element.classList+=" active",addTextModalTypeValue=e.value}),highed.dom.ap(typeDropdownParent,highed.dom.ap(t,i,o))}),addTextModalInput.placeholder="Write annotation here";var J=null;return highed.dom.on(addTextModalColorInput,"change",function(e){clearTimeout(J),J=setTimeout(function(){addTextModalColorValue=addTextModalColorInput.value,h(addTextModalColorValue)},500)}),highed.dom.on(box,"click",function(e){highed.pickColor(e.clientX,e.clientY,addTextModalColorValue,function(e){highed.isArr(addTextModalColorValue)&&(addTextModalColorValue="#000000"),addTextModalColorValue=e,addTextModalColorInput.value=addTextModalColorValue,h(e)})}),highed.dom.ap(overlayAddTextModal.body,highed.dom.ap(addTextModalContainer,addTextModalHeader,addTextModalInput,highed.dom.cr("div","highed-add-text-label","Type:"),typeDropdownParent,highed.dom.cr("div","highed-add-text-label","Color:"),highed.dom.ap(addTextModalColorContainer,box,addTextModalColorInput),highed.dom.ap(addTextModalBtnContainer,addTextModalSubmit,addTextModalCancel))),highed.dom.on(addTextModalSubmit,"click",function(){overlayAddTextModal.hide(),i.addAnnotationLabel(addLabelX,addLabelY,addTextModalInput.value.replace("\n","
"),addTextModalColorValue,addTextModalTypeValue),addTextModalInput.value=""}),highed.onPhone()||highed.dom.on(window,"resize",c(function(e){u()})),resolutions.forEach(function(e){highed.dom.on(e.iconElement,"click",function(){x(e.width,e.height),resWidth.value=e.width,resHeight.value=e.height})}),highed.dom.on(stretchToFitIcon,"click",function(){resWidth.value="",resHeight.value="",highed.dom.style(d,{width:"100%",height:"100%"}),setTimeout(i.resize,300)}),backIcon=highed.dom.cr("div","highed-back-icon",''),highed.dom.style(backIcon,{display:"none"}),highed.dom.on(backIcon,"click",function(){z=n.widths.desktop,highed.onTablet()&&n.widths.tablet?z=n.widths.tablet:highed.onPhone()&&n.widths.phone&&(z=n.widths.phone),I=68,highed.dom.style(backIcon,{display:"none"}),R.hide(),p(),C((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(O,!0).y-16),setTimeout(A.showSimpleEditor,200)}),highed.dom.on([resWidth,resHeight],"change",function(){x(parseInt(resWidth.value,10),parseInt(resHeight.value,10))}),i.on("ShowTextDialog",function(e,t,i){addLabelX=t,addLabelY=i,addTextModalInput.focus(),overlayAddTextModal.show()}),i.on("ChartChange",function(e){L.emit("ChartChangedLately",e)}),i.on("SetResizeData",function(){}),{on:L.on,destroy:y,hide:f,show:m,resize:u,isVisible:function(){return j},init:s,getIcons:w,selectOption:v,getResolutionContainer:r,setTabBehaviour:b}},highed.Toolbox=function(e,t){function i(e){function t(){var e=highed.dom.size(l),t=highed.dom.size(f),i={w:e.w,h:e.h-t.h-55};return i}function i(){var e=highed.dom.size(h),i=p.width;s&&r===w||p.iconOnly||(r&&r.disselect(),m.emit("BeforeExpand"),l.innerHTML="",highed.dom.ap(l,v),highed.dom.style(l,{height:e.h-55+"px",opacity:1}),highed.dom.style(a,{width:i+"%"}),d.emit("BeforeResize",i),s=!0,setTimeout(function(){var e=t().h;d.emit("Expanded",w,i),m.emit("Expanded",i,e-20)},300),p.iconOnly?r=!1:(x.className=y+" active",r=w),highed.emit("UIAction","ToolboxNavigation",p.title))}function o(){var e=highed.dom.size(h).w;s&&(highed.dom.style(l,{width:"0px",opacity:.1}),highed.dom.style(a,{width:e+"%"}),d.emit("BeforeResize",e),n(),s=!1,r=!1)}function n(){x.className=y+" completed"}function c(){setTimeout(function(){x.classList.remove("completed")},50)}function g(){clearTimeout(u),u=setTimeout(function(){if(highed.dom.style(l,{height:""}),s){var e=t().h;m.emit("Expanded",highed.dom.size(h),e-20)}},100)}var u,p=highed.merge({number:0,title:"Title Missing"},e),m=highed.events(),f=highed.dom.cr("div","highed-toolbox-body-title wizard",p.hideTitle?"":p.title),v=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),b=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents highed-createchart-body-container"),y="highed-toolbox-list-item-container",x=highed.dom.cr("div",y),w={},C=highed.dom.cr("div","highed-toolbox-list-circle",p.number); return highed.dom.on(C,"click",function(){p.onClick(p.number),i()}),highed.dom.ap(x,C,highed.dom.cr("div","highed-toolbox-list-title",p.title)),highed.dom.on(x,"click",function(){m.emit("Click")}),highed.dom.ap(h,x),highed.dom.ap(v,f,b),highed.dom.on(window,"resize",g),w={on:m.on,expand:i,collapse:o,body:b,removeCompleted:c,disselect:n}}function o(){var e=highed.dom.size(l),t=highed.dom.size(h);return e.w+t.w}function n(){h.innerHTML="",l.innerHTML=""}var d=highed.events(),a=highed.dom.cr("div","highed-transition highed-toolbox highed-wizard highed-box-size"),h=highed.dom.cr("div","highed-toolbox-bar highed-box-size highed-wizard-title-container"),l=highed.dom.cr("div","highed-toolbox-body highed-toolbox-body-no-border highed-box-size highed-transition highed-wizard-body"),s=!1,r=!1;highed.merge({animate:!0},t);return highed.dom.ap(e,highed.dom.ap(a,h,l)),{clear:n,on:d.on,addEntry:i,width:o}},highed.OptionsPanel=function(e,t){function i(e){l=e}function o(e,t){var i=highed.dom.cr("a","highed-optionspanel-button "+("data"===t?"active":""),e.text+' ');(e.onClick||[]).forEach(function(t){highed.dom.on(i,"click",function(){Object.keys(g).forEach(function(e){g[e].classList.remove("active")}),u=e,i.classList.add("active"),t(l,e)})}),g[t]=i,highed.dom.ap(c,i)}function n(){c.innerHTML="",highed.dom.ap(c,highed.dom.cr("div","highed-optionspanel-header","Workspace View:"))}function d(){return l}function a(){return g}function h(){return u}var l,s=highed.events(),r=highed.dom.cr("div","highed-transition highed-optionspanel highed-box-size"),c=highed.dom.cr("div","highed-box-size highed-transition"),g={},u=null;return highed.dom.ap(e,highed.dom.ap(r,highed.dom.ap(c,highed.dom.cr("div","","Workspace View:")))),{on:s.on,addOption:o,setDefault:i,getPrev:d,clearOptions:n,getOptions:a,getCurrentOption:h}},highed.AssignDataPanel=function(e,t,i){function o(t){j=t,highed.dom.ap(K,$),F(),highed.dom.ap(e,highed.dom.ap(q,X,K)),J||Y.emit("AssignDataChanged",_[R])}function n(){Object.keys(_[R]).forEach(function(e){_[R][e].previousValue=null,_[R][e].value=_[R][e].default})}function d(){var e=[];return _.forEach(function(t){var i={};Object.keys(t).forEach(function(e){""!==t[e].value&&null!==t[e].value&&(i[e]=t[e].value)}),e.push(highed.merge({},i))}),e}function a(){G.labels.colors={light:"rgba(66, 200, 192, 0.2)",dark:"rgb(66, 200, 192)"},G.values.colors={light:"rgba(145, 151, 229, 0.2)",dark:"rgb(145, 151, 229)"},G.label.colors={light:"rgba(229, 145, 145, 0.2)",dark:"rgb(229, 145, 145)"},R=0,j=0,U=1,_=[],y(),Object.keys(G).forEach(function(e){G[e].colors=null}),F()}function h(){var e={},t=[],i=[];return Object.keys(_[R]).forEach(function(o){if("labels"===o)e.labelColumn=highed.getLetterIndex(_[R][o].value.charAt(0));else if(_[R][o].isData){const n=_[R][o];i.push(n.rawValue[0]),e.dataColumns=i,e.dataColumns.sort()}else{const d=_[R][o];""!==d.value&&t.push(highed.getLetterIndex(d.value))}}),e.extraColumns=t.sort(),e}function l(){var e=[];return _.forEach(function(t,i){var o={},n=[],d=[];Object.keys(t).forEach(function(e){if("labels"===e)o.labelColumn=highed.getLetterIndex(_[i][e].value.charAt(0));else if(_[i][e].isData){const t=_[i][e];d.push(t.rawValue[0]),o.dataColumns=d,o.dataColumns.sort()}else{const a=_[i][e];""!==a.value&&n.push(highed.getLetterIndex(a.value))}}),o.extraColumns=n.sort(),e.push(highed.merge({},o))}),e}function s(e){return e.charCodeAt()-65}function r(e){return String.fromCharCode(e+65)}function c(){return R}function g(e,t,i){e.value=e.value.toUpperCase();var o=[],n=[],d=[];(t||e.previousValue!==e.value&&(""!==e.value||null!==e.previousValue))&&(d=[e.value.charAt(0)],e.previousValue&&(n=[e.previousValue]),e.mandatory||""!==e.value||(d=[]),o=h(),e.previousValue=e.value.toUpperCase(),e.rawValue=d.map(function(e){return highed.getLetterIndex(e)}),i(n.map(function(e){return highed.getLetterIndex(e)}),e.rawValue,e,o))}function u(e,t,i){_[R]&&(Object.keys(_[R]).forEach(function(i){var o=_[R][i];g(o,t,e)}),J||i||Y.emit("ChangeData",_))}function p(){const e=Math.floor(156*Math.random()+202),t=Math.floor(100*Math.random()),i=60,o=.5;return{light:"hsla("+e+", "+t+"%, 80%, "+o+")",dark:"hsl("+e+", "+t+"%, "+i+"%)"}}function m(e,t){if(e+1<_.length)_=_.slice(0,e+1),Y.emit("RemoveSeries",e+1),he.sliceList(e+1),F();else for(var i=_.length-1;i-1?"-":",",i=e.split(t).sort();return i.forEach(function(e,t){i[t]=s(e)}),i}function S(e){return e.charAt(0).toUpperCase()+e.slice(1)}function T(e){Object.keys(e).forEach(function(t){highed.isNull(e[t])&&delete e[t]})}function A(e,t,i){return e.config?e.config.chart.type:e.options&&e.options.series&&e.options.series[t]&&e.options.series[t].type?e.options.series[t].type:e.template&&e.template.chart&&e.template.chart.type?e.template.chart.type:e.options&&e.options.chart&&e.options.chart.type?e.options.chart.type:e.theme&&e.theme.options.chart&&e.theme.options.chart.type?e.theme.options.chart.type:i&&i.chart&&i.chart.type?i.chart.type:"line"}function M(e,t,i,o,n,d,a){if(e&&!J){j=t;var h=A(e,0,a),l=null;if(he.updateByIndex(o||R,{title:"Series "+((o||R)+1)+" - "+S(h)}),he.selectByIndex(R),chartTypeOptions=highed.meta.charttype[h.toLowerCase()],_[o||R]&&_[o||R].values&&(l=_[o||R].values),_[o||R]=null,_[o||R]=highed.merge({},G),isNaN(d)||_[o||R].values&&(_[o||R].values.value=r(d),_[o||R].values.rawValue=[d]),l&&_[o||R]&&_[o||R].values&&highed.merge(_[o||R].values,l),highed.merge(_[o||R],highed.meta.charttype[h]),T(_[o||R]),i){if(e.settings&&e.settings.dataProvider&&e.settings.dataProvider.assignDataFields){const c=e.settings.dataProvider.assignDataFields;c.forEach(function(t,i){const o=A(e,i);_[i]||y(o),Object.keys(t).forEach(function(e){_[i][e]&&(_[i][e].value=t[e],_[i][e].rawValue=[s(t[e])])})})}else{var g=t-1;e&&e.options&&e.options.series&&(g=e.options.series.length);for(var u=1;uU&&(U=s(e.value.toUpperCase())),W&&Y.emit("ToggleHideCells",_[R],W),void(J||Y.emit("AssignDataChanged",_[R],e,s(detailValue.toUpperCase()),i)))});var a=e.colors||p();e.colors=a,o.value=e.value;const h=highed.dom.cr("div","highed-assigndatapanel-color");highed.dom.style(h,{"background-color":e.colors.light,border:"1px solid "+e.colors.dark});var l=highed.dom.ap(highed.dom.cr("div","highed-assigndatapanel-data-option"),h,highed.dom.ap(highed.dom.cr("p","",e.name+":"),highed.dom.cr("span","highed-assigndatapanel-data-mandatory",e.mandatory?"*":"")),n,highed.dom.cr("div","highed-assigndatapanel-data-desc",e.desc));highed.dom.ap(oe,l)}function F(){oe.innerHTML="",_[R]&&Object.keys(_[R]).forEach(function(e){var t=_[R][e];V(t,e)})}function E(){W?(W=!1,ae.innerHTML=''):(W=!0,ae.innerHTML=''),Y.emit("ToggleHideCells",_[R],W)}function I(){W&&Y.emit("ToggleHideCells",_[R],W)}function H(){return J}function P(e){y(e,!0),Y.emit("AssignDataChanged")}function O(){return q}function B(e){j=e}var G={labels:{name:"Categories",desc:"Choose a column for the category types. Can be names or a date.",default:"A",value:"A",rawValue:[0],previousValue:null,linkedTo:"x",mandatory:!0,colors:{light:"rgba(66, 200, 192, 0.2)",dark:"rgb(66, 200, 192)"}},values:{name:"Values",desc:"Enter column with the values you want to chart.",default:"B",linkedTo:"y",isData:!0,value:"B",rawValue:[1],previousValue:null,mandatory:!0,colors:{light:"rgba(145, 151, 229, 0.2)",dark:"rgb(145, 151, 229)"}},label:{name:"Label",desc:"The name of the point as shown in the legend, tooltip, data label etc.",default:"",value:"",rawValue:null,previousValue:null,mandatory:!1,linkedTo:"label",colors:{light:"rgba(229, 145, 145, 0.2)",dark:"rgb(229, 145, 145)"},noNulls:!0}},_=[],N=!1,j=0,R=0,U=1,W=!1,J=!1,Y=highed.events(),q=highed.dom.cr("div","highed-transition highed-assigndatapanel highed-box-size "+i),X=highed.dom.cr("div","highed-assigndatapanel-bar highed-box-size "+i),K=highed.dom.cr("div","highed-assigndatapanel-body highed-box-size highed-transition "+i),Z=highed.dom.cr("span","",''),Q=highed.dom.ap(highed.dom.cr("div","highed-assigndatapanel-header-container"),highed.dom.ap(highed.dom.cr("h3","highed-assigndatapanel-header","Assign columns for this chart"),Z)),$=highed.dom.cr("div","highed-assigndatapanel-data-options"),ee=highed.dom.cr("div","highed-assigndatapanel-select-container"),te=highed.dom.cr("div","highed-assigndatapanel-change-series-type"),ie=highed.dom.cr("a","highed-assigndatapanel-change-series-type-link","Click here to change series template type"),oe=highed.dom.cr("div","highed-assigndatapanel-inputs-container"),ne=highed.dom.cr("button","highed-assigndatapanel-add-series",''),de=highed.dom.cr("button","highed-assigndatapanel-add-series",''),ae=highed.dom.cr("button","highed-assigndatapanel-add-series",''),he=highed.DropDown(ee," highed-assigndatapanel-series-dropdown"),le=highed.dom.cr("div","highed-assigndatapanel-hide");return highed.dom.style(le,{display:"none"}),y(),Object.keys(G).forEach(function(e){G[e].colors=null}),highed.dom.ap(ee,ne,de,ae),highed.dom.ap(te,ie),highed.dom.on(ie,"click",function(){Y.emit("GoToTemplatePage")}),highed.dom.on(ae,"click",function(){E()}),highed.dom.on(de,"click",function(){if(0===R)return void highed.snackBar("Cannot delete this series");if(confirm("Are you sure you want to delete this series?")){_.splice(R,1),he.deleteByIndex(R);const e=he.selectAll();Y.emit("DeleteSeries",R),setTimeout(function(){Y.emit("AssignDataChanged")},1e3);for(var t=R;t<_.length;t++)he.updateByIndex(t,{title:"Series "+(t+1)+" -"+e[t].title().split("-")[1]},t);he.selectByIndex(R-1),highed.snackBar("Series "+(R+2)+" Deleted")}}),highed.dom.on(ne,"click",function(){Y.emit("GetLastType")}),he.on("Change",function(e){R!==e.id()&&(R=e.id(),F(),W&&Y.emit("ToggleHideCells",_[R],W),J||(Y.emit("RedrawGrid",!0),Y.emit("SeriesChanged",R)))}),highed.dom.on(Z,"click",function(){const e=N?"48px":"initial",t=N?"hidden":"auto";highed.dom.style(q,{height:e,overflow:t}),N=!N}),he.addItems([{id:0,title:"Series "+_.length+" - Line"}]),he.selectById(0),highed.dom.ap(K,Q),highed.dom.ap($,ee,te,oe),highed.dom.ap(K,le),{on:Y.on,hide:x,show:k,getOptions:f,resetValues:n,resize:b,getFieldsToHighlight:u,getMergedLabelAndData:h,getAllMergedLabelAndData:l,setAssignDataFields:M,getAssignDataFields:d,getAllOptions:v,getActiveSerie:c,addNewSerie:P,addSeries:m,setColumnLength:B,checkToggleCells:I,init:o,enable:C,disable:w,getStatus:H,getElement:O,restart:a}},highed.DefaultPage=function(e,t,i,o){function n(){p=t.widths.desktop,highed.onTablet()&&t.widths.tablet?p=t.widths.tablet:highed.onPhone()&&t.widths.phone&&(p=t.widths.phone),u=highed.dom.cr("div","highed-customize-title"),m="highed-box-size highed-toolbox-bar-icon fa "+t.icon,b.innerHTML="",t.create&&highed.isFn(t.create)&&t.create(x,i,C),highed.dom.ap(y,x),highed.dom.ap(k,y),highed.dom.ap(e,highed.dom.ap(v,k)),l(),r()}function d(e){var t;return function(i){t&&clearTimeout(t),t=setTimeout(e,100,i)}}function a(){z&&(l(),setTimeout(function(){g((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(k,!0).y-16)},1e3))}function h(){return C}function l(){function i(){var e=highed.dom.size(k),t=(highed.dom.size(b),{w:e.w,h:(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(k,!0).y});return highed.dom.style(y,{width:"100%",height:t.h-16+"px"}),highed.dom.style(x,{width:t.w+"px",height:t.h-16+"px"}),t}var n=p;if(highed.dom.style(k,{width:"100%",opacity:1}),!highed.onPhone()){const d=highed.dom.size(e).w,a=.32;var h=window.getComputedStyle(o),l=window.getComputedStyle(v),s=parseFloat(h.marginLeft)+parseFloat(h.marginRight),r=parseFloat(l.marginLeft)+parseFloat(l.marginRight);highed.dom.style(v,{width:d*a-(s+r+35)-3+"px"})}f.emit("BeforeResize",n),setTimeout(i,300),highed.emit("UIAction","ToolboxNavigation",t.title)}function s(){highed.dom.style(v,{display:"block"}),l(),setTimeout(function(){g((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-highed.dom.pos(k,!0).y-16)},200),z=!0}function r(){p=t.widths.desktop,highed.onTablet()&&t.widths.tablet?p=t.widths.tablet:highed.onPhone()&&t.widths.phone&&(p=t.widths.phone),w="68%",highed.dom.style(backIcon,{display:"none"}),l(),highed.dom.style(v,{display:"none"}),z=!1}function c(){}function g(e){highed.dom.style(o,{width:w,height:e+"px"||"100%"}),setTimeout(i.resize,200)}var u,p,m,f=highed.events(),v=highed.dom.cr("div","highed-transition highed-toolbox highed-box-size"),b=highed.dom.cr("div","highed-toolbox-body-title"),y=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),x=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents highed-toolbox-defaultpage"),w="68%",C=(highed.dom.cr("div",m),highed.dom.cr("div","highed-icons-container")),k=highed.dom.cr("div","highed-toolbox-body highed-box-size highed-transition"),z=!1;return highed.onPhone()||highed.dom.on(window,"resize",d(function(e){a()})),i.on("ChartChange",function(e){f.emit("ChartChangedLately",e)}),{on:f.on,destroy:c,chart:i,hide:r,show:s,resize:a,isVisible:function(){return z},init:n,getIcons:h}},highed.SearchAdvancedOptions=function(e,t){function i(e,t){highed.dom.style(m,{height:t-5+"px"})}function o(e){g=e}function n(e,t){var i=0;return t.forEach(function(t){e.indexOf(t)>-1&&i++}),i}function d(e,t,i){if(t&&t.meta.fullname&&u[t.meta.fullname]&&e.meta&&e.meta.validFor){var o=g.series,a=!1;if(o.forEach(function(i){fstate=i[u[t.meta.fullname].controller]||u[t.meta.fullname].default,e.meta.validFor[fstate]&&(a=!0)}),!a)return}if(highed.isArr(e))e.forEach(function(e){d(e,t,i)});else{if("function"===Object.keys(e.meta.types)[0]||e.meta.products&&Object.keys(e.meta.products)>0)return;var h=n(highed.uncamelize(e.meta.name).toLowerCase(),i);h+=n(highed.uncamelize(e.meta.ns).toLowerCase(),i),e.meta.description&&(h+=n(highed.uncamelize(e.meta.description).toLowerCase(),i)),h>0&&z.push({name:highed.uncamelize(e.meta.name),rawName:e.meta.name,parents:e.meta.ns.split(".").map(function(e){return highed.uncamelize(e)}),rawParent:null===t?e.meta.name:t.meta.ns+t.meta.name,foundCount:h,ns:e.meta.ns}),e.children&&e.children.length>0&&d(e.children,e,i)}}function a(){highed.dom.style(m,{display:"none"})}function h(){highed.dom.style(m,{display:"block"})}function l(e){return e.substr(0,1).toLowerCase()+e.substr(1)}function s(e){e.classList+=" active-highlight",setTimeout(function(){e&&e.classList.remove("active-highlight")},2e3)}function r(){x.innerHTML="",z.sort(function(e,t){return e.foundCount50)){const i=highed.dom.cr("div","highed-searchadvancedoptions-result-container"),o=highed.dom.cr("div","highed-searchadvancedoptions-result-title",e.name),n=highed.dom.cr("div","highed-searchadvancedoptions-result-parents",e.parents.join(' '));highed.dom.on(i,"click",function(){const t=e.parents,i=500;for(var o="",n=0;n Loading');highed.dom.style(k,{opacity:0});var z=[];return highed.dom.on(C,"keyup",function(e){highed.dom.style(k,{opacity:1}),clearTimeout(c),c=setTimeout(function(){const e=highed.meta.optionsAdvanced.children,t=C.value.toLowerCase().split(" ");z=[],e.forEach(function(e){d(e,null,t)}),r()},500)}),highed.dom.ap(v,b),highed.dom.ap(w,C),highed.dom.ap(v,y,w,x),highed.dom.ap(v,k),highed.dom.ap(e,highed.dom.ap(m,f,v)),{on:p.on,hide:a,show:h,resize:i,setOptions:o}},highed.HelpModal=function(e){var t=!1,i=highed.dom.cr("div","highed-help-nav"),o=highed.dom.cr("div"),n=highed.dom.cr("div","highed-help-counter"),d=highed.OverlayModal(!1,{width:600,height:600});return e.forEach(function(d,a){function h(){t&&(t.className="highed-icon fa fa-circle-o"),o.innerHTML="",g.className="highed-icon fa fa-circle",highed.dom.ap(o,l),t=g,n.innerHTML=a+1+"/"+e.length}var l=highed.dom.cr("div"),s=highed.dom.cr("div","highed-modal-title highed-help-toolbar",d.title),r=highed.dom.cr("div","highed-help-gif"),c=highed.dom.cr("div","highed-scrollbar highed-help-desc"),g=highed.dom.cr("span","highed-icon fa fa-circle-o");highed.isArr(d.description)&&(d.description=d.description.join(" ")),c.innerHTML=d.description,d.gif?(d.gif=highed.option("helpImgPath")+d.gif,highed.dom.style(r,{"background-image":'url("'+d.gif+'")'})):highed.dom.style(r,{display:"none"}),highed.dom.on(g,"click",h),highed.dom.ap(l,s,r,c),highed.dom.ap(i,g),0===a&&h()}),e.length<2&&highed.dom.style([i,n],{display:"none"}),highed.dom.ap(d.body,o,i,n),{show:d.show}},highed.meta.optionsExtended={options:{"option.cat.chart":[{text:"option.subcat.dimension",dropdown:!0,group:1,options:[{id:"chart--width",custom:{minValue:50,maxValue:5e3,step:10},pid:"chart.width",dataType:"number",context:"General",defaults:"null",parent:"chart"},{id:"chart--height",custom:{minValue:50,maxValue:5e3,step:10},pid:"chart.height",dataType:"number",context:"General",defaults:"null",parent:"chart"}]},{text:"option.subcat.title",dropdown:!0,group:1,options:[{id:"title--text",pid:"title.text",dataType:"string",context:"General",defaults:"Chart title",parent:"title",width:50},{id:"subtitle--text",pid:"subtitle.text",dataType:"string",context:"General",parent:"subtitle",width:50},{id:"title--style",dataType:"font",pid:"title.style",context:"General",defaults:'{ "color": "#333333", "fontSize": "18px" }',parent:"title"},{id:"subtitle--style",dataType:"font",pid:"subtitle.style",context:"General",defaults:'{ "color": "#666666", "fontSize": "12px" }',parent:"subtitle"}]},{text:"option.subcat.appearance",dropdown:!0,options:[{header:!0,pid:"option.subcat.chartarea",width:100,id:"chartarea-header",dataType:"header"},{id:"chart--backgroundColor",pid:"chart.backgroundColor",dataType:"color",context:"General",defaults:"#FFFFFF",parent:"chart",width:50},{id:"chart--borderColor",pid:"chart.borderColor",dataType:"color",context:"General",defaults:"#335cad",parent:"chart",width:50},{id:"chart--borderWidth",custom:{minValue:0},pid:"chart.borderWidth",dataType:"number",context:"General",defaults:"0",parent:"chart",width:50},{id:"chart--borderRadius",custom:{minValue:0},pid:"chart.borderRadius",dataType:"number",context:"General",defaults:"0",parent:"chart",width:50},{header:!0,pid:"option.subcat.plotarea",width:100,id:"plotarea-header",dataType:"header"},{id:"chart--plotBackgroundColor",pid:"chart.plotBackgroundColor",dataType:"color",context:"General",parent:"chart",width:38},{id:"chart--plotBorderWidth",pid:"chart.plotBorderWidth",dataType:"number",context:"General",defaults:"0",parent:"chart",width:31},{id:"chart--plotBorderColor",pid:"chart.plotBorderColor",dataType:"color",context:"General",defaults:"#cccccc",parent:"chart",width:31},{id:"chart--plotBackgroundImage",pid:"chart.plotBackgroundImage",dataType:"string",context:"General",parent:"chart"},{id:"colors",pid:"colors",dataType:"array",context:"General",defaults:'[ "#7cb5ec" , "#434348" , "#90ed7d" , "#f7a35c" , "#8085e9" , "#f15c80" , "#e4d354" , "#2b908f" , "#f45b5b" , "#91e8e1"]'}]},{text:"option.subcat.tooltip",dropdown:!0,options:[{id:"tooltip--enabled",pid:"tooltip.enabled",dataType:"boolean",context:"General",defaults:"true",parent:"tooltip",width:50},{id:"tooltip--shared",pid:"tooltip.shared",dataType:"boolean",context:"General",defaults:"false",parent:"tooltip",width:50},{id:"tooltip--backgroundColor",pid:"tooltip.backgroundColor",dataType:"color",context:"General",defaults:"rgba(247,247,247,0.85)",parent:"tooltip",width:50},{id:"tooltip--borderWidth",custom:{minValue:0},pid:"tooltip.borderWidth",dataType:"number",context:"General",defaults:"1",parent:"tooltip",width:50},{id:"tooltip--borderRadius",custom:{minValue:0},pid:"tooltip.borderRadius",dataType:"number",context:"General",defaults:"3",parent:"tooltip",width:50},{id:"tooltip--borderColor",pid:"tooltip.borderColor",dataType:"color",context:"General",defaults:"null",parent:"tooltip",width:50},{id:"tooltip--valueSuffix",pid:"tooltip.valueSuffix",dataType:"string",context:"General",defaults:"",parent:"tooltip",width:98}]},{text:"option.subcat.interaction",dropdown:!0,group:2,options:[{id:"chart--zoomType",pid:"chart.zoomType",dataType:"string",context:"General",parent:"chart",values:'[null, "x", "y", "xy"]'},{id:"chart--polar",pid:"chart.polar",dataType:"boolean",context:"General",defaults:"false",parent:"chart"},{id:"plotOptions--series--states--inactive--opacity",pid:"plotOptions.series.states.inactive.opacity",dataType:"number",context:"General",defaults:"0.2",parent:"chart"}]},{text:"option.subcat.credit",dropdown:!0,group:2,warning:[1],options:[{id:"credits--enabled",pid:"credits.enabled",dataType:"boolean",context:"General",defaults:"true",parent:"credits",warning:[1]},{id:"credits--text",pid:"credits.text",dataType:"string",context:"General",defaults:"Highcharts.com",parent:"credits",warning:[1]},{id:"credits--href",pid:"credits.href",dataType:"string",context:"General",defaults:"http://www.highcharts.com",parent:"credits",warning:[1]}]}],"option.cat.axes":[{text:"option.subcat.xaxis",dropdown:!0,options:[{id:"xAxis-title--style",dataType:"font",dataIndex:0,pid:"xAxis.title.style",context:"General",defaults:'{ "color": "#666666" }',parent:"xAxis-title"},{id:"xAxis-title--text",dataIndex:0,pid:"xAxis.title.text",dataType:"string",context:"General",parent:"xAxis-title",width:50},{id:"xAxis-labels--format",dataIndex:0,pid:"xAxis.labels.format",dataType:"string",context:"General",defaults:"{value}",parent:"xAxis-labels",width:50},{id:"xAxis--type",dataIndex:0,pid:"xAxis.type",dataType:"string",context:"General",defaults:"linear",parent:"xAxis",values:'["linear", "logarithmic", "datetime", "category"]'},{id:"xAxis--opposite",dataIndex:0,pid:"xAxis.opposite",dataType:"boolean",context:"General",defaults:"false",parent:"xAxis",width:50},{id:"xAxis--reversed",dataIndex:0,pid:"xAxis.reversed",dataType:"boolean",context:"General",defaults:"false",parent:"xAxis",width:50}]},{text:"option.subcat.yaxis",dropdown:!0,options:[{id:"yAxis-title--style",dataType:"font",dataIndex:0,pid:"yAxis.title.style",context:"General",defaults:'{ "color": "#666666" }',parent:"yAxis-title"},{id:"yAxis-title--text",dataIndex:0,pid:"yAxis.title.text",dataType:"string",context:"General",defaults:"Values",parent:"yAxis-title",width:50},{id:"yAxis--type",dataIndex:0,pid:"yAxis.type",dataType:"string",context:"General",defaults:"linear",parent:"yAxis",values:'["linear", "logarithmic", "datetime", "category"]',width:50},{id:"yAxis-labels--format",dataIndex:0,pid:"yAxis.labels.format",dataType:"string",context:"General",defaults:"{value}",parent:"yAxis-labels",width:100},{id:"yAxis--opposite",dataIndex:0,pid:"yAxis.opposite",dataType:"boolean",context:"General",defaults:"false",parent:"yAxis",width:50},{id:"yAxis--reversed",dataIndex:0,pid:"yAxis.reversed",dataType:"boolean",context:"General",defaults:"false",parent:"yAxis",width:50}]}],"option.cat.series":[{id:"series",array:!0,text:"option.cat.series",controlledBy:{title:"Select Series",options:"series",optionsTitle:"name"},filteredBy:"series--type",options:[{id:"series--type",pid:"series.type",dataType:"string",context:"General",parent:"series",values:'[null, "line", "spline", "column", "area", "areaspline", "pie", "arearange", "areasplinerange", "boxplot", "bubble", "columnrange", "errorbar", "funnel", "gauge", "scatter", "waterfall"]',subType:["treemap","scatter","line","gauge","heatmap","spline","funnel","areaspline","area","bar","bubble","areasplinerange","boxplot","pie","arearange","column","waterfall","columnrange","pyramid","polygon","solidgauge","errorbar"],subTypeDefaults:{},width:50},{id:"series--dashStyle",pid:"series.dashStyle",dataType:"string",context:"General",defaults:"Solid",parent:"series",values:'["Solid", "ShortDash", "ShortDot", "ShortDashDot", "ShortDashDotDot", "Dot", "Dash" ,"LongDash", "DashDot", "LongDashDot", "LongDashDotDot"]',subType:["areasplinerange","polygon","areaspline","spline","scatter","area","bubble","arearange","waterfall","line"],subTypeDefaults:{polygon:"Solid",areaspline:"Solid",spline:"Solid",scatter:"Solid",area:"Solid",bubble:"Solid",arearange:"Solid",waterfall:"Dot",line:"Solid"},width:50},{id:"series--color",pid:"series.color",dataType:"color",context:"General",defaults:"null",parent:"series",subType:["boxplot","column","waterfall","columnrange","heatmap","area","scatter","bar","treemap","arearange","bubble","errorbar","spline","polygon","line","gauge","areaspline","areasplinerange"],subTypeDefaults:{heatmap:"null",treemap:"null",errorbar:"#000000"},width:18},{id:"series--negativeColor",pid:"series.negativeColor",dataType:"color",context:"General",defaults:"null",parent:"series",subType:["gauge","arearange","areasplinerange","line","errorbar","boxplot","areaspline","spline","bar","scatter","polygon","bubble","area","column"],subTypeDefaults:{arearange:"null",areasplinerange:"null",line:"null",errorbar:"null",boxplot:"null",areaspline:"null",spline:"null",bar:"null",scatter:"null",polygon:"null",bubble:"null",area:"null",column:"null"},width:33},{id:"series-marker--symbol",pid:"series.marker.symbol",dataType:"string",context:"General",parent:"series-marker",values:'[null, "circle", "square", "diamond", "triangle", "triangle-down"]',subType:["bubble","polygon","line","scatter","spline","area","areaspline"],subTypeDefaults:{},width:49},{id:"series--colorByPoint",pid:"series.colorByPoint",dataType:"boolean",context:"General",defaults:"false",parent:"series",subType:["treemap","heatmap","column","errorbar","columnrange","boxplot","bar","waterfall"],subTypeDefaults:{heatmap:"false",column:"false",errorbar:"false",columnrange:"false",boxplot:"false",bar:"false",waterfall:"false"},width:50},{id:"series-marker--enabled",pid:"series.marker.enabled",dataType:"boolean",context:"General",defaults:"null",parent:"series-marker",subType:["bubble","area","scatter","areaspline","spline","polygon","line"],subTypeDefaults:{area:"null",scatter:"null",areaspline:"null",spline:"null",polygon:"null",line:"null"},width:50}]}],"option.cat.export":[{text:"option.cat.exporting",dropdown:!0,options:[{id:"exporting--enabled",pid:"exporting.enabled",dataType:"boolean",context:"General",defaults:"true",parent:"exporting",width:50},{id:"exporting--offlineExporting",pid:"exporting.offlineExporting",dataType:"boolean",context:"General",defaults:"false",parent:"exporting",width:50,plugins:["modules/offline-exporting.js"],noChange:!0},{id:"exporting--sourceWidth",custom:{minValue:10,maxValue:2e3,step:10},pid:"exporting.sourceWidth",dataType:"number",context:"General",parent:"exporting",values:""},{id:"exporting--scale",custom:{minValue:1,maxValue:4},pid:"exporting.scale",dataType:"number",context:"General",defaults:"2",parent:"exporting",values:""}]}],"option.cat.legend":[{text:"option.subcat.general",dropdown:!0,group:1,options:[{id:"legend--enabled",pid:"legend.enabled",dataType:"boolean",context:"General",defaults:"true",parent:"legend"},{id:"legend--layout",pid:"legend.layout",dataType:"string",context:"General",defaults:"horizontal",width:50,parent:"legend",values:'["horizontal", "vertical"]'},{id:"legend--labelFormat",pid:"legend.labelFormat",dataType:"string",context:"General",defaults:"{name}",width:50,parent:"legend"}]},{text:"option.subcat.placement",dropdown:!0,group:1,options:[{id:"legend--align",pid:"legend.align",dataType:"string",context:"General",defaults:"center",parent:"legend",values:'["left", "center", "right"]',width:50},{id:"legend--verticalAlign",pid:"legend.verticalAlign",dataType:"string",context:"General",defaults:"bottom",parent:"legend",values:'["top", "middle", "bottom"]',width:50},{id:"legend--floating",pid:"legend.floating",dataType:"boolean",context:"General",defaults:"false",parent:"legend"}]},{text:"option.subcat.legendappearance",dropdown:!0,options:[{id:"legend--itemStyle",dataType:"font",pid:"legend.itemStyle",context:"General",defaults:'{ "color": "#333333", "cursor": "pointer", "fontSize": "12px", "fontWeight": "bold" }',parent:"legend"},{id:"legend--backgroundColor",pid:"legend.backgroundColor",dataType:"color",context:"General",parent:"legend",width:50},{id:"legend--borderColor",pid:"legend.borderColor",dataType:"color",context:"General",defaults:"#999999",parent:"legend",width:50},{id:"legend--borderWidth",pid:"legend.borderWidth",dataType:"number",context:"General", defaults:"0",parent:"legend",width:50},{id:"legend--borderRadius",pid:"legend.borderRadius",dataType:"number",context:"General",defaults:"0",parent:"legend",width:50}]}],"option.cat.localization":[{text:"option.subcat.numberformat",dropdown:!0,group:1,options:[{id:"lang--decimalPoint",pid:"lang.decimalPoint",dataType:"string",context:"General",defaults:".",parent:"lang",width:50},{id:"lang--thousandsSep",pid:"lang.thousandsSep",dataType:"string",context:"General",defaults:" ",parent:"lang",width:50}]},{text:"option.subcat.zoombutton",dropdown:!0,group:1,options:[{id:"lang--resetZoom",pid:"lang.resetZoom",dataType:"string",context:"General",defaults:"Reset zoom",parent:"lang"}]},{text:"option.subcat.exportbutton",dropdown:!0,options:[{id:"lang--contextButtonTitle",pid:"lang.contextButtonTitle",dataType:"string",context:"General",defaults:"Chart context menu",parent:"lang",values:"",width:50},{id:"lang--printChart",pid:"lang.printChart",dataType:"string",context:"General",defaults:"Print chart",parent:"lang",values:"",width:50},{id:"lang--downloadPNG",pid:"lang.downloadPNG",dataType:"string",context:"General",defaults:"Download PNG image",parent:"lang",width:50},{id:"lang--downloadJPEG",pid:"lang.downloadJPEG",dataType:"string",context:"General",defaults:"Download JPEG image",parent:"lang",width:50},{id:"lang--downloadPDF",pid:"lang.downloadPDF",dataType:"string",context:"General",defaults:"Download PDF document",parent:"lang",width:50},{id:"lang--downloadSVG",pid:"lang.downloadSVG",dataType:"string",context:"General",defaults:"Download SVG vector image",parent:"lang",width:50}]}]}},highed.meta.charttype={arearange:{low:{name:"Low",desc:"The low or minimum value for each data point.",default:"B",value:"B",mandatory:!0,linkedTo:"low",rawValue:[1]},values:null,high:{name:"High",desc:"The high or maximum value for each data point.",default:"C",value:"C",isData:!0,mandatory:!0,linkedTo:"high",rawValue:[2]}},boxplot:{low:{name:"Low",desc:"The low value for each data point, signifying the lowest value in the sample set. The bottom whisker is drawn here.",default:"B",value:"B",isData:!0,mandatory:!0,linkedTo:"low",rawValue:[1]},values:null,high:{name:"High",desc:"The rank for this points data label in case of collision. If two data labels are about to overlap, only the one with the highest labelrank will be drawn.",default:"C",value:"C",isData:!0,mandatory:!0,linkedTo:"high",rawValue:[2]},median:{name:"Median",desc:"The median for each data point. This is drawn as a line through the middle area of the box.",default:"D",value:"D",mandatory:!0,isData:!0,linkedTo:"median",rawValue:[3]},q1:{name:"Q1",desc:"The lower quartile for each data point. This is the bottom of the box.",default:"E",value:"E",mandatory:!0,multipleValues:!1,isData:!0,previousValue:null,linkedTo:"q1",rawValue:[4]},q3:{name:"Q3",desc:"The higher quartile for each data point. This is the top of the box.",default:"F",value:"F",mandatory:!0,isData:!0,linkedTo:"q3",rawValue:[4]}},candlestick:{values:null,close:{name:"Close",desc:"The closing value of each data point.",default:"B",value:"B",mandatory:!0,linkedTo:"close",isData:!0,rawValue:[1]},open:{name:"Open",desc:"The opening value of each data point.",default:"C",value:"C",mandatory:!0,isData:!0,linkedTo:"open",rawValue:[2]},low:{name:"Low",desc:"The low or minimum value for each data point.",default:"D",value:"D",multipleValues:!1,previousValue:null,mandatory:!0,isData:!0,linkedTo:"low",rawValue:[3]},high:{name:"High",desc:"The high or maximum value for each data point.",default:"E",value:"E",mandatory:!0,isData:!0,linkedTo:"high",rawValue:[4]}},bubble:{values:null,y:{name:"Y",desc:"Y Position",default:"B",value:"B",mandatory:!0,isData:!0,linkedTo:"y",rawValue:[1]},z:{name:"Z",desc:"Z Position.",default:"C",value:"C",mandatory:!0,isData:!0,linkedTo:"z",rawValue:[2]}},columnrange:{values:null,low:{name:"Low",desc:"The low or minimum value for each data point.",default:"B",value:"B",mandatory:!0,isData:!0,linkedTo:"low",rawValue:[1]},high:{name:"High",desc:"The high or maximum value for each data point.",default:"C",value:"C",mandatory:!0,isData:!0,linkedTo:"high",rawValue:[2]}}},highed.meta.colors=["#F44336","#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C","#FF8A80","#FF5252","#FF1744","#D50000","#E91E63","#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457","#880E4F","#FF80AB","#FF4081","#F50057","#C51162","#9C27B0","#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C","#EA80FC","#E040FB","#D500F9","#AA00FF","#673AB7","#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0","#311B92","#B388FF","#7C4DFF","#651FFF","#6200EA","#3F51B5","#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E","#8C9EFF","#536DFE","#3D5AFE","#304FFE","#2196F3","#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0","#0D47A1","#82B1FF","#448AFF","#2979FF","#2962FF","#03A9F4","#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B","#80D8FF","#40C4FF","#00B0FF","#0091EA","#00BCD4","#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F","#006064","#84FFFF","#18FFFF","#00E5FF","#00B8D4","#009688","#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40","#A7FFEB","#64FFDA","#1DE9B6","#00BFA5","#4CAF50","#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32","#1B5E20","#B9F6CA","#69F0AE","#00E676","#00C853","#8BC34A","#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E","#CCFF90","#B2FF59","#76FF03","#64DD17","#CDDC39","#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24","#827717","#F4FF81","#EEFF41","#C6FF00","#AEEA00","#FFEB3B","#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17","#FFFF8D","#FFFF00","#FFEA00","#FFD600","#FFC107","#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00","#FF6F00","#FFE57F","#FFD740","#FFC400","#FFAB00","#FF9800","#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100","#FFD180","#FFAB40","#FF9100","#FF6D00","#FF5722","#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315","#BF360C","#FF9E80","#FF6E40","#FF3D00","#DD2C00","#795548","#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E","#3E2723","#3E2723","#3E2723","#3E2723","#3E2723","#9E9E9E","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#212121","#212121","#212121","#212121","#607D8B","#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F","#37474F","#37474F","#37474F","#263238"],highed.meta.fonts=["Default","Courier","Arial","Verdana","Georgia","Palatino Linotype","Times New Roman","Comic Sans MS","Impact","Lucida Sans Unicode","Tahoma","Lucida Console","Courier New","Monaco","Monospace"],highed.highchartsErrors={10:{title:"Can't plot zero or subzero values on a logarithmic axis",text:'This error occurs in the following situations:
  • If a zero or subzero data value is added to a logarithmic axis
  • If the minimum of a logarithimic axis is set to 0 or less
  • If the threshold is set to 0 or less
As of Highcharts 5.0.8 it is possible to bypass this error message by setting Axis.prototype.allowNegativeLog totrue and add custom conversion functions. View live demo.'},11:{title:"Can't link axes of different type",text:"This error occurs if you are using the linkedTo option to link two axes of different types, for example a logarithmic axis to a linear axis."},12:{title:"Highcharts expects point configuration to be numbers or arrays in turbo mode",text:"This error occurs if the series data option contains object configurations and the number of points exceeds the turboThreshold. It can be fixed by either setting the turboThreshold option to a higher value"},13:{title:"Rendering div not found",text:"Highcharts cannot find a parent to render to"},14:{title:"String value sent to series.data, expected Number",text:"Highcharts expects there to be a number in the column you just entered. Please change this to a number to continue"},15:{title:"Highcharts expects data to be sorted",text:'The data passed to your chart needs to be sorted. If you\'re using the datagrid, you can sort your data by clicking the arrow in the x-axis column header, and selecting "Sort Ascending".'},16:{title:"Highcharts already defined in the page",text:"Highcharts has already been defined in the page. Keep in mind that all features of Highcharts are included in Highstock"},17:{title:"The requested series type does not exist",text:"This error happens when you are setting chart.type or series.type to a series type that isnt defined in Highcharts."},18:{title:"The requested axis does not exist",text:"Make sure that your only references existing axis in the series properties."},19:{title:"Too many ticks",text:"This error happens when you try to apply too many ticks to an axis, specifically when you add more ticks than the axis pixel length."},20:{title:"Can't add object point configuration to a long data series",text:"In Highstock, if you try to add a point using the object literal configuration syntax, it works only when the number of data points is below the series turboThreshold. Instead of the object syntax, use the Array syntax."},21:{title:"Can't find Proj4js library",text:"Using latitude/longitude functionality in Highmaps requires the Proj4js library to be loaded."},22:{title:"Map does not support latitude/longitude",text:"The loaded map does not support latitude/longitude functionality. This is only supported with maps from the official Highmaps map collection from version 1.1.0 onwards. If you are using a custom map, consider using the Proj4js library to convert between projections."},23:{title:"Unsupported color format used for color interpolation",text:"Highcharts supports three color formats primarily: hex (#FFFFFF), rgb (rgba(255,255,255) and rgba (rgba(255,255,255,1)."},24:{title:"Cannot run Point.update on a grouped point",text:"This happens in Highstock when a point is grouped by data grouping, so there is no reference to the raw points."},25:{title:"Can't find Moment.js library",text:"Using the global.timezone option requires the Moment.js library to be loaded."},26:{title:"WebGL not supported, and no fallback module included",text:"This happens when your browser does not support WebGL, and the canvas fallback module (boost-canvas.js) has not been included OR if the fallback module was included after the boost module."},27:{title:"This browser does not support SVG.",text:"This happens in old IE when the oldie.js module is not loaded."}},highed.ChartTemplateSelector=function(e,t){function i(e,t){var i,o=highed.samples.get(t);o&&(i=sampleBtn=highed.dom.cr("div","highed-ok-button",o.title),highed.dom.on(i,"click",function(){confirm("You are about to load the "+o.title+" sample set. This will purge any existing data in the chart. Continue?")&&s.emit("LoadDataSet",o)}),highed.dom.ap(e,i))}function o(e){var t=highed.dom.cr("h3","",e.id),o=highed.dom.cr("div"),n=highed.dom.cr("div");o.innerHTML=highed.isArr(e.description)?e.description.join("

"):e.description||"",e.samples&&e.samples.length>0&&(highed.dom.ap(n,highed.dom.cr("h4","","Sample Data Sets")),e.samples.forEach(function(e){i(n,e)})),highed.dom.ap(t,o,n)}function n(e,n,d){var a=0;c.innerHTML="",g.innerHTML="",d&&o(d),highed.dom.ap(c),Object.keys(e).forEach(function(o){var d=e[o],h=highed.dom.cr("div","highed-chart-template-container highed-template-tooltip"),l=(highed.dom.cr("div","highed-chart-template-body"),highed.dom.cr("div","highed-chart-template-thumbnail")),r=highed.dom.cr("div","highed-tooltip-text",d.title),g=highed.dom.cr("div","highed-chart-template-description"),m=highed.dom.cr("div","highed-chart-template-samples");d.validator&&!highed.validators.validate(d.validator,t||!1)||(a++,(highed.isArr(d.sampleSets)?d.sampleSets:(d.sampleSets||"").split(".")).forEach(function(e,t){0===t&&highed.dom.ap(m,highed.dom.cr("h4","","Sample Data Sets")),i(m,e)}),g.innerHTML=highed.isArr(d.description)?d.description.join("

"):d.description,u&&u.id===n+o+d.title&&(h.className="highed-chart-template-container highed-chart-template-preview-selected highed-template-tooltip",u.node=h),highed.meta.images&&highed.meta.images[d.thumbnail]?highed.dom.style(l,{"background-image":'url("data:image/svg+xml;utf8,'+highed.meta.images[d.thumbnail]+'")'}):highed.dom.style(l,{"background-image":"url("+highed.option("thumbnailURL")+d.thumbnail+")"}),highed.dom.on(h,"click",function(){if(u&&(u.node.className="highed-chart-template-container highed-template-tooltip"),h.className="highed-chart-template-container highed-chart-template-preview-selected highed-template-tooltip",u={id:n+o+d.title,node:h},"Map"===d.constructor){var e=0;(d.config.series||[]).forEach(function(t){function i(){e++,e===d.config.series.length&&s.emit("Select",d)}t.mapData&&highed.isStr(t.mapData)?highed.include("https://code.highcharts.com/mapdata/"+t.mapData+".js",function(){t.mapData=Highcharts.maps[t.mapData],i()}):i()})}else d.header=p.getSelectedItem().title(),s.emit("Select",highed.merge({},d));highed.emit("UIAction","TemplateChoose",d.title)}),highed.dom.ap(c,highed.dom.ap(h,l,r)))}),0===a&&highed.dom.ap(c,highed.dom.ap(highed.dom.cr("div","highed-chart-template-404"),highed.dom.cr("h4","","None of the templates in this category fits your dataset."),highed.dom.cr("div","",d?d.nofits||"":"")))}function d(e,t){}function a(){p.addItems(highed.templates.getCatArray()),p.selectByIndex(0)}function h(e,t){const i=t;var o,d;if(i&&!i[e])o="Line",d="Line chart";else{if(!i||!i[e])return;o=i[e].templateHeader,d=i[e].templateTitle}p.selectById(o);var a=highed.templates.getAllInCat(o);u={id:o+d+d},a&&n(a,o,highed.templates.getCatInfo(o))}var l,s=highed.events(),r=highed.dom.cr("div","highed-chart-templates"),c=highed.dom.cr("div","highed-chart-template-type-container"),g=highed.dom.cr("div","highed-chart-template-cat-desc"),u=!1,p=highed.DropDown(r,null,{area:highed.resources.icons.area,line:highed.resources.icons.line,bar:highed.resources.icons.bar,column:highed.resources.icons.column,more:highed.resources.icons.more,pie:highed.resources.icons.pie,polar:highed.resources.icons.polar,stock:highed.resources.icons.stock,"scatter and bubble":highed.resources.icons["scatter and bubble"]});return highed.dom.ap(e,highed.dom.ap(r,c)),p.on("Change",function(e){l=e.id();var t=highed.templates.getAllInCat(l);highed.emit("UIAction","TemplateCatChoose",l),t&&n(t,l,highed.templates.getCatInfo(l))}),a(),{on:s.on,resize:d,rebuild:a,selectSeriesTemplate:h}},highed.DefaultContextMenu=function(e){var t=highed.events(),i=highed.ContextMenu([{title:highed.getLocalizedStr("previewChart"),icon:"bar-chart",click:function(){e.expand()}},"-",{title:highed.getLocalizedStr("newChart"),icon:"file-o",click:function(){window.confirm(highed.getLocalizedStr("confirmNewChart"))&&(e.new(),t.emit("NewChart"))}},"-",{title:highed.getLocalizedStr("saveProject"),icon:"floppy-o",click:function(){highed.download("chart.json",e.toProjectStr())}},{title:highed.getLocalizedStr("loadProject"),icon:"folder-open-o",click:function(){highed.readLocalFile({type:"text",accept:".json",success:function(t){try{t=JSON.parse(t.data)}catch(e){return highed.snackBar("Error loading JSON: "+e)}e.loadProject(t)}})}},"-",{title:"Save to Cloud",icon:"upload",click:function(){highed.cloud.save(e)}},{title:highed.getLocalizedStr("loadCloud"),icon:"cloud",click:function(){highed.cloud.showUI(e)}},"-",{title:highed.getLocalizedStr("exportPNG"),icon:"file-image-o",click:function(){e.data.export({})}},{title:highed.getLocalizedStr("exportJPEG"),icon:"file-image-o",click:function(){e.data.export({type:"image/jpeg"})}},{title:highed.getLocalizedStr("exportSVG"),icon:"file-image-o",click:function(){e.data.export({type:"image/svg+xml"})}},{title:highed.getLocalizedStr("exportPDF"),icon:"file-pdf-o",click:function(){e.data.export({type:"application/pdf"})}},"-",{title:highed.getLocalizedStr("help"),icon:"question-circle",click:function(){window.open(highed.option("helpURL"))}}]);return{on:t.on,show:i.show}},highed.ChartCustomizer=function(e,t,i,o){function n(){var e;i&&(e=i.getCustomCode()||"",N?N.setValue(e):j.value=e)}function d(){function e(){highed.emit("UIAction","CustomCodeUpdate"),_.innerHTML="",i&&(i.on("LoadCustomCode",function(e){var t;i&&(t=i.getCustomCode()||"",N?N.setValue(t):j.value=t)}),i.on("UpdateCustomCode",function(){i.setCustomCode(N?N.getValue():j.value,function(e){_.innerHTML=e})}),i.setCustomCode(N?N.getValue():j.value,function(e){_.innerHTML=e}))}highed.dom.ap(G.top,j),highed.dom.ap(G.bottom,_);var t=null;"undefined"!=typeof window.CodeMirror?(N=CodeMirror.fromTextArea(j,{lineNumbers:!0,mode:"application/javascript",theme:highed.option("codeMirrorTheme")}),N.setSize("100%","100%"),N.on("change",function(){clearTimeout(t),t=setTimeout(function(){e()},500)})):highed.dom.on(j,"change",function(){clearTimeout(t),t=setTimeout(function(){e()},500)})}function a(e,t){var i,o;z.resize(e,t),i=z.barSize(),F.resize(e,t-i.h),o=highed.dom.size(F.container),highed.dom.style(E,{minHeight:o.h+"px"}),G.resize(e,t),N&&N.refresh()}function h(e,t,o){O=t||{},B=highed.merge({},e||{}),F.reselect(),i=o||i,G.resize(),n()}function l(e){var t=!1;return!(Object.keys(w.availableSettings||{}).length>0)||(highed.isArr(e)?e.forEach(function(e){l(e)&&(t=!0)}):highed.isArr(e.options)?e.options.forEach(function(e){l(e)&&(t=!0)}):(w.availableSettings[e.id]||w.availableSettings[e.pid])&&(t=!0),t)}function s(){w.noAdvanced||(highed.dom.style(k,{opacity:1}),w.noAdvanced||highed.isNull(highed.meta.optionsAdvanced)?T.hide():setTimeout(function(){highed.meta.optionsAdvanced=highed.transform.advanced(highed.meta.optionsAdvanced,!0);const e=i.options.all().series;x=highed.merge({},i.options.full),e&&e.length>0&&(e.forEach(function(e,t){x.series&&x.series[t]&&highed.merge(x.series[t],{type:e.type||"line"})}),P.build(highed.meta.optionsAdvanced,x),highed.dom.style(k,{opacity:0}),C.emit("AdvancedBuilt"))},10))}function r(){Object.keys(highed.meta.optionsExtended.options).forEach(function(e){l(highed.meta.optionsExtended.options[e])&&F.addItem({id:e,title:highed.L(e)},highed.meta.optionsExtended.options[e],i)})}function c(e,t,i){if(e){highed.dom.pos(e);S.selected||S.focus(),e.focus();var o=highed.dom.cr("div","highed-attention");highed.dom.style(o,{width:"10px",height:"10px",left:t-5+"px",top:i-5+"px",borderRadius:"50%"}),highed.dom.ap(document.body,o);var n=Highcharts.offset(e),d=e.style.backgroundColor;highed.dom.style(o,{width:e.clientWidth+"px",height:e.clientHeight+"px",borderRadius:0,left:n.left+"px",top:n.top+"px"}),window.setTimeout(function(){highed.dom.style(e,{backgroundColor:window.getComputedStyle(o).backgroundColor,transition:"1s ease background-color"}),o.parentNode.removeChild(o),o=null,window.setTimeout(function(){highed.dom.style(e,{backgroundColor:d})},250)},350)}}function g(e,t,i){if(e.indexOf("-")>=0){var o=I.left.querySelector("#"+e.substr(0,e.indexOf("-")));c(S.body.querySelector("#"+e),t,i),c(I.right.querySelector("#"+e)),o&&o.scrollIntoView({block:"end"})}}function u(e,t,i){F.select(e.tab),F.selectDropdown(e.dropdown),P.expandTo(e.id),g(e.id,t,i)}function p(e,t,i,n,d){var a=highed.dom.cr("table","highed-customizer-table"),h=0;H.innerHTML="",w.noAdvanced||(e.children.forEach(function(e){if(e.meta.leafNode&&"function"!==Object.keys(e.meta.types)[0])return!(d&&e.meta.validFor&&!e.meta.validFor[d])&&void(n&&e.meta.products&&Object.keys(e.meta.products)>0&&!e.meta.products[n]||(h++,e.values=e.meta.enumValues,highed.dom.ap(a,highed.InspectorField(e.values?"options":Object.keys(e.meta.types)[0]||"string","undefined"!=typeof i[e.meta.name]?i[e.meta.name]:e.meta.default,{title:highed.uncamelize(e.meta.name),tooltip:e.meta.description,values:e.meta.enumValues,defaults:e.meta.default,custom:{},attributes:e.attributes||[]},function(t){"string"==typeof t&&(t=t.replace("","<\\/script>")),highed.emit("UIAction","AdvancedPropSet",(e.meta.ns?e.meta.ns+".":"")+highed.uncamelize(e.meta.name),t),i[e.meta.name]=t,C.emit("PropertySetChange",P.getMasterData()),P.isFilterController(e.meta.ns,e.meta.name)&&s()},!1,e.meta.name,o))))}),highed.dom.ap(H,highed.dom.ap(highed.dom.cr("div","highed-customize-group highed-customize-advanced"),highed.dom.cr("div","highed-customizer-table-heading",t),a)))}function m(){A.focus()}function f(){S.focus()}function v(){M.focus()}function b(){C.emit("AdvanceClicked"),T.focus()}function y(){return x}var x,w=highed.merge({noAdvanced:!1,noCustomCode:!1,noPreview:!1,availableSettings:[]},t),C=highed.events(),k=highed.dom.cr("div","highed-customizer-adv-loader",' Loading'),z=highed.TabControl(e,!1,null,!0),S=z.createTab({title:highed.getLocalizedStr("customizeSimple")}),T=z.createTab({title:highed.getLocalizedStr("customizeAdvanced")}),A=z.createTab({title:highed.getLocalizedStr("customizeCustomCode")}),M=z.createTab({title:highed.getLocalizedStr("customizePreview")}),L=highed.dom.cr("textarea","highed-custom-code highed-box-size highed-stretch"),D=!1,V=highed.dom.cr("div","highed-box-simple-container"),F=highed.List(V,!0,w,o),E=highed.dom.cr("div"),I=highed.HSplitter(T.body,{leftWidth:30}),H=I.right,P=highed.Tree(I.left),O={},B={},G=highed.VSplitter(A.body,{topHeight:90}),_=highed.dom.cr("pre","highed-custom-debug"),N=!1,j=highed.dom.cr("textarea","highed-custom-code highed-box-size highed-stretch"),R=!1;return highed.onPhone()&&(w.noAdvanced=!0,w.noCustomCode=!0,w.noPreview=!0),E.className+=" highed-customizer-body",w.availableSettings=highed.arrToObj(w.availableSettings),highed.dom.ap(S.body,V),highed.dom.ap(e,k),highed.dom.ap(M.body,L),T.on("Focus",function(){s()}),M.on("Focus",function(){var e=i.options.getPreview();D||"undefined"==typeof window.CodeMirror||(D=CodeMirror.fromTextArea(L,{lineNumbers:!0,mode:"application/javascript",theme:highed.option("codeMirrorTheme"),readOnly:!0}),D.setSize("100%","100%")),D?D.setValue(e):(L.readonly=!0,L.value=e)}),F.on("PropertyChange",function(e,t,i){C.emit("PropertyChange",e,t,i)}),F.on("TogglePlugins",function(e,t){C.emit("TogglePlugins",e,t)}),F.on("Select",function(e){var t=highed.meta.optionsExtended.options[e];E.innerHTML="",t.forEach(function(e){}),R=!1,highed.emit("UIAction","SimplePropCatChoose",e)}),P.on("ForceSave",function(e){C.emit("PropertySetChange",e)}),P.on("ClearSelection",function(){H.innerHTML=""}),P.on("Select",p),P.on("DataUpdate",function(e,t){C.emit("PropertyChange",e,t)}),P.on("Dirty",function(){h(O,B)}),z.on("Focus",function(){h(O,B)}),r(),d(),w.noCustomCode&&A.hide(),w.noAdvanced&&T.hide(),w.noPreview&&M.hide(),{on:C.on,resize:a,init:h,focus:u,reselect:F.reselect,highlightField:g,showCustomCode:m,showSimpleEditor:f,showAdvancedEditor:b,showPreviewOptions:v,getAdvancedOptions:y}},highed.WizardBar=function(e,t,i){function o(e,t){e.number>1?highed.dom.style(h,{opacity:1,"pointer-events":"auto",visibility:"visible"}):highed.dom.style(h,{opacity:0,"pointer-events":"none",visibility:"hidden"}),e.numberThe JSON is the data passed to the chart constructor, and may contain any of the valid options.'),V,E,F),highed.dom.on(H,"click",function(){m.emit("ExportComma")}),highed.dom.on(P,"click",function(){m.emit("ExportSemiColon")}),highed.dom.on(I,"click",function(){m.emit("ImportGoogleSpreadsheet")}),highed.dom.on(z,"click",function(){h()}),highed.dom.on(S,"click",function(){m.emit("ImportLiveData",{})}),highed.dom.on(k,"keyup",function(e){(13===e.keyCode||(e.metaKey||e.ctrlKey)&&"z"===e.key)&&h(k.value)}),highed.dom.on(T,"click",function(){highed.readLocalFile({type:"text",accept:".csv",success:function(e){k.value=e.data,highed.snackBar("File uploaded"),h()}})}),highed.dom.on(F,"click",function(){s(V.value)}),highed.dom.on(E,"click",function(){highed.readLocalFile({type:"text",accept:".json",success:function(e){V.value=e.data,s(e.data)}})}),a(),d(),n(),A.value=",",D.type="checkbox",L.value=".",D.checked=!0,r(),{on:m.on,loadCSV:l,resize:r,show:c,hide:g,addImportTab:u,exporter:G,selectTab:p,emitCSVImport:h}}}(),function(){var e={};highed.plugins.export={install:function(t,i){highed.isNull(e[t])?(e[t]=highed.merge({description:"",options:{},title:!1,downloadOutput:!1},i),e[t].dependencies&&highed.include(e[t].dependencies)):highed.log(1,"tried to register an export plugin which already exists:",t)}},highed.Exporter=function(t,i){function o(){l.options.html||r.hide(),l.options.json||c.hide(),l.options.svg||g.hide(),l.options.plugins||u.hide(),0===Object.keys(l.plugins)&&u.hide(),s.selectFirst()}function n(){k||(k=!0,Object.keys(e).forEach(function(t){function i(){function e(){highed.isFn(o.export)&&C&&o.export.apply(S[t],[h,C,function(e,i,n){return e?highed.snackBar("Export error: "+e):(o.downloadOutput&&highed.download(n,i),void highed.snackBar((o.title||t)+" export complete"))},a])}var i=highed.dom.cr("div","highed-plugin-details"),n=highed.dom.cr("button","highed-imp-button",o.exportTitle||"Export"),d=highed.dom.cr("table","highed-customizer-table"),a=highed.dom.cr("div"),h=S[t].options;Object.keys(o.options||{}).forEach(function(e){h[e]=o.options[e].default,highed.dom.ap(d,highed.InspectorField(o.options[e].type,o.options[e].default,{title:o.options[e].label },function(i){h[e]=i,highed.isFn(o.show)&&o.show.apply(S[t],[C])},!0))}),highed.dom.on(n,"click",e),highed.dom.ap(p.right,i),highed.dom.style(i,{display:"none"}),highed.dom.ap(i,highed.dom.cr("div","highed-customizer-table-heading",o.title||t),highed.dom.cr("div","highed-imp-help",o.description),!!Object.keys(o.options||{}).length&&d,a,!!o.export&&n),highed.isFn(o.create)&&o.create.apply(S[t],[C,a]),T[t]={export:e,show:function(){A&&A.hide(),highed.dom.style(i,{display:""}),o.show.apply(S[t],[C]),A=T[t]},hide:function(){highed.dom.style(i,{display:"none"})}}}var o=e[t];return S[t]={options:{}},!!l.plugins[t]&&(i(),void m.addItem({id:t,title:o.title||t,click:T[t].show}))}))}function d(e,t,i,o){var d="_export";d=e.title&&e.title.text?e.title.text.replace(/\s/g,"_")+d:"untitled"+d,y.value=JSON.stringify(e),f.href="data:application/octet-stream,"+encodeURIComponent(y.value),x.value=t,v.href="data:application/octet-stream,"+encodeURIComponent(t),w.value=i,b.href="data:application/octet-stream,"+encodeURIComponent(i),f.download=d+".json",v.download=d+".html",b.download=d+".svg",highed.dom.on(f,"click",function(){highed.events("UIAction","BtnDownloadJSON")}),highed.dom.on(v,"click",function(){highed.events("UIAction","BtnDownloadHTML")}),highed.dom.on(b,"click",function(){highed.events("UIAction","BtnDownloadSVG")}),C=o,n(),A&&A.show(),z=!0}function a(e,t){var i;s.resize(e,t),i=s.barSize(),p.resize(e,t-i.h-20),m.resize(e,t-i.h)}function h(e,t){highed.dom.on(e,"click",function(){e.focus(),e.select(),highed.emit("UIAction","Copy"+t)})}var l=highed.merge({options:"svg html json plugins",plugins:"beautify-js beautify-json"},i),s=highed.TabControl(t,!1,!0),r=s.createTab({title:"HTML"}),c=s.createTab({title:"JSON"}),g=s.createTab({title:"SVG"}),u=s.createTab({title:"Plugins"}),p=highed.HSplitter(u.body,{leftWidth:30}),m=highed.List(p.left),f=highed.dom.cr("a","highed-imp-button highed-imp-pasted-button","Download"),v=highed.dom.cr("a","highed-imp-button highed-imp-pasted-button","Download"),b=highed.dom.cr("a","highed-imp-button highed-imp-pasted-button","Download"),y=highed.dom.cr("textarea","highed-imp-pastearea highed-scrollbar"),x=highed.dom.cr("textarea","highed-imp-pastearea highed-scrollbar"),w=highed.dom.cr("textarea","highed-imp-pastearea highed-scrollbar"),C=!1,k=!1,z=!1,S={},T={},A=!1;return l.options=highed.arrToObj(l.options),l.plugins=highed.arrToObj(l.plugins),highed.dom.ap(r.body,highed.dom.ap(highed.dom.cr("div","highed-imp-spacer"),x),v),highed.dom.ap(c.body,highed.dom.ap(highed.dom.cr("div","highed-imp-spacer"),y),f),highed.dom.ap(g.body,highed.dom.ap(highed.dom.cr("div","highed-imp-spacer"),w),b),a(),o(),h(y,"JSON"),h(x,"HTML"),h(w,"SVG"),{init:d,resize:a,buildPluginUI:n}}}(),highed.ChartPreview=function(e,t){function i(){Object.keys(Le).forEach(function(t){highed.dom.on(e.querySelector(t),"click",function(e){if(!De)return oe.emit("RequestEdit",Le[t],e.clientX,e.clientY),e.cancelBubble=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1})})}function o(e,t){return JSON.stringify(e,function(e,t){return highed.isFn(t)?t.toString():t},t)}function n(e){return!!highed.isFn(e)&&e(we!==!1?we:h())}function d(){oe.emit("ChartChange",de),window.clearTimeout(xe),xe=window.setTimeout(function(){oe.emit("ChartChangeLately",de)},200)}function a(e,t,i,o){var n={id:"shape_"+ne.annotations.length,type:t,point:{x:i,y:o,xAxis:0,yAxis:0},x:0,y:0};"circle"===t?n.r=10:"rect"===t&&(n.width=20,n.height=20,n.x=-10,n.y=-10);var d=e.addAnnotation({id:"shape_"+ne.annotations.length,shapes:[n],type:t}),d=e.addAnnotation({id:"shape_"+ne.annotations.length,shapes:[n],type:t});ne.annotations.push({id:"shape_"+ne.annotations.length,shapes:[d.options.shapes[0]]})}function h(t,o,n){function d(e,t){Highcharts.wrap(Highcharts.Annotation.prototype,e,function(e,i){e.apply(this,Array.prototype.slice.call(arguments,1));var o=this[t][this[t].length-1];o.element.addEventListener("click",function(e){if(highed.dom.nodefault(e),De&&"delete"===Ve){var t=ne.annotations.findIndex(function(e){return e.id===o.options.id});we.removeAnnotation(o.options.id),ne.annotations.splice(t,1)}}),o.element.addEventListener("mousedown",function(e){!we.activeAnnotation&&De&&"drag"===Ve&&("shapes"===t?(we.activeAnnotationOptions=highed.merge({},o.options),"rect"===o.type&&(we.activeAnnotationOptions.width=20,we.activeAnnotationOptions.height=20)):we.activeAnnotationOptions={id:o.options.id,text:o.options.text,point:{x:o.options.point.x,y:o.options.point.y,xAxis:0,yAxis:0},backgroundColor:o.options.backgroundColor,shape:o.options.shape,borderWidth:o.options.borderWidth,x:0,y:0},o.id=o.options.id,we.activeAnnotation=o,we.annotationType=t)})})}var h;if(t=t||de,Me=highed.isArr(Me)?Me:["Chart"],n&&highed.setAttr(t,"plotOptions--series--animation",!1),"undefined"==typeof window.Highcharts)return void highed.snackBar("Highcharts.JS must be included to use the editor");if(we&&we.annotations){for(var l=we.annotations||[],h=l.length-1;h>-1;--h)l[h].options&&we.removeAnnotation(l[h].options.id);we.annotations.length=0}try{const s=Me.some(function(e){return"StockChart"===e})?"StockChart":"Chart";we=new Highcharts[s](o||e,t),we&&we.options&&(highed.clearObj(le),highed.merge(le,we.options)),i(),we&&we.reflow,Highcharts.error=function(e,t){if(t)throw e;setTimeout(function(){oe.emit("Error",{code:e,url:e?"https://www.highcharts.com/errors/"+e:"",warning:!0})},200)},d("initLabel","labels"),d("initShape","shapes"),Highcharts.addEvent(document,"mousemove",function(e){if(we.isInsidePlot(e.chartX-we.plotLeft,e.chartY-we.plotTop)&&we.activeAnnotationOptions&&De&&"drag"===Ve){var t=we.pointer.normalize(e),i=we.activeAnnotationOptions,o=we.activeAnnotation;i.point.x=we.xAxis[0].toValue(t.chartX),i.point.y=we.yAxis[0].toValue(t.chartY),o&&o.id&&we.removeAnnotation(o.id);var n;n="shapes"===we.annotationType?we.addAnnotation({id:i.id,shapes:[i]}):we.addAnnotation({id:i.id,labels:[i]}),n.id=i.id,we.activeAnnotation=n}}),Highcharts.addEvent(document,"mouseup",function(e){we.activeAnnotation&&De&&"drag"===Ve&&(we.removeAnnotation(we.activeAnnotationOptions.id),"shapes"===we.annotationType?(we.activeAnnotation=we.addAnnotation({id:we.activeAnnotationOptions.id,shapes:[we.activeAnnotationOptions]}),ne.annotations.some(function(e){if(e.shapes&&e.shapes[0].id===we.activeAnnotationOptions.id)return e.shapes[0].point.x=we.activeAnnotation.options.shapes[0].point.x,e.shapes[0].point.y=we.activeAnnotation.options.shapes[0].point.y,!0})):(we.activeAnnotation=we.addAnnotation({id:we.activeAnnotationOptions.id,labels:[we.activeAnnotationOptions]}),ne.annotations.some(function(e){if(e.labels&&e.labels[0].id===we.activeAnnotationOptions.id)return e.labels[0].point.x=we.activeAnnotation.options.labels[0].point.x,e.labels[0].point.y=we.activeAnnotation.options.labels[0].point.y,!0})),we.activeAnnotation=null,we.activeAnnotationOptions=null,we.annotationType=null)}),Highcharts.addEvent(we,"click",function(e){De&&(ne.annotations||(ne.annotations=[]),"label"===Ve?oe.emit("ShowTextDialog",this,e.xAxis[0].value,e.yAxis[0].value):"delete"===Ve||"drag"===Ve||a(this,Ve,e.xAxis[0].value,e.yAxis[0].value))}),Highcharts.addEvent(we,"afterPrint",function(){oe.emit("RequestResize")}),oe.emit("ChartRecreated")}catch(t){oe.emit("Error",{code:t,url:t?"https://www.highcharts.com/errors/"+t:""}),highed.emit("UIAction","UnsuccessfulChartGeneration"),(o||e).innerHTML="",we=!1}return we}function l(e,t){n(function(i){if(i&&i.reflow)try{e&&t?(i.setSize(e,t,!0),i.options.chart.width=null,i.options.chart.height=null):(i.setSize(void 0,void 0,!1),i.reflow())}catch(e){}})}function s(e,t){return se=!1,t||(c(),h(de),d(),oe.emit("SetResizeData")),!0}function r(e,t){return highed.isStr(e)?r(JSON.parse(e)):(ce={},!highed.isBasic(e)&&!highed.isArr(e)&&(0!==Object.keys(e).length&&(e&&e.options&&e.id?(ce={id:e.id,name:e.name||e.id},se=highed.merge({},e.options),re=e.customCode||""):(ce={id:highed.uuid(),name:"Untitled Theme"},se=highed.merge({},e)),t||(oe.emit("UpdateCustomCode"),c(),h(de),d(),oe.emit("SetResizeData")),!0)))}function c(e){ne&&!highed.isArr(ne.yAxis)&&ne.yAxis&&(ne.yAxis=[ne.yAxis||{}]),ne&&!highed.isArr(ne.xAxis)&&ne.xAxis&&(ne.xAxis=[ne.xAxis||{}]),he=he||[];var t={};highed.clearObj(de),highed.merge(de,ie.defaultChartOptions),se&&Object.keys(se).length&&highed.merge(de,highed.merge(highed.merge({},se))),he.forEach(function(e){e&&(e.yAxis&&!highed.isArr(e.yAxis)&&(e.yAxis=[e.yAxis]),e.xAxis&&!highed.isArr(e.xAxis)&&(e.xAxis=[e.xAxis]),t=highed.merge(t,e))}),highed.merge(de,highed.merge(highed.merge({},t),ne)),!de.yAxis&&ne.yAxis&&(de.yAxis=ne.yAxis),!de.xAxis&&ne.xAxis&&(de.xAxis=ne.xAxis),de.yAxis&&t.yAxis&&de.yAxis.forEach(function(e,i){i"};if(highed.emit("UIAction","LoadProject"),ve=!1,be=!1,ye=!1,highed.isStr(e))try{return y(JSON.parse(e))}catch(e){highed.snackBar("Invalid project")}if(e){if(he=[{}],e.template&&(he=highed.isArr(e.template)?e.template:[e.template]),ne={},e.options&&(ne=e.options),ne.lang&&Highcharts.setOptions({lang:ne.lang}),"undefined"!=typeof e.theme&&r(e.theme,!0),ne&&ne.series&&(ne.series=highed.isArr(ne.series)?ne.series:[ne.series],ne.series.forEach(function(e){"undefined"!=typeof e._colorIndex&&delete e._colorIndex})),X(e.customCode,function(e){highed.snackBar("Error in custom code: "+e)},!0),oe.emit("LoadCustomCode"),Me=["Chart"],e.settings&&e.settings.templateView&&"stock"===e.settings.templateView.activeSection&&(Me=["StockChart"]),e.settings&&e.settings.template&&(Se=e.settings.template),e.settings&&e.settings.plugins&&(ue=e.settings.plugins),e.settings&&highed.isStr(e.settings.constructor)&&(Me=[e.settings.constructor]),e.settings&&highed.isArr(e.settings.constructor)&&(Me=e.settings.constructor),e.settings&&e.settings.dataProvider)if(e.settings.dataProvider.seriesMapping&&highed.merge(ne,{data:{seriesMapping:e.settings.dataProvider.seriesMapping}}),e.settings.dataProvider.assignDataFields&&(ze=e.settings.dataProvider.assignDataFields),e.settings.dataProvider.googleSpreadsheet){var o=e.settings.dataProvider,n=o.googleSpreadsheet;ne.data&&(n.startRow=o.startRow||ne.data.startRow,n.endRow=o.endRow||ne.data.endRow,n.startColumn=o.startColumn||ne.data.startColumn,n.endColumn=o.endColumn||ne.data.endColumn,o.dataRefreshRate&&o.dataRefreshRate>0&&(n.dataRefreshRate=o.dataRefreshRate||ne.data.dataRefreshRate,n.enablePolling=!0)),oe.emit("ProviderGSheet",e.settings.dataProvider.googleSpreadsheet),w(n),t=!0}else if(e.settings.dataProvider.liveData){var o=e.settings.dataProvider;o.liveData;x(o.liveData)}else e.settings.dataProvider.csv&&(Object.keys(i).forEach(function(t){e.settings.dataProvider.csv=e.settings.dataProvider.csv.replace(new RegExp(t,"g"),i[t])}),t=!0);c(),t||h(de),d(),oe.emit("LoadProject",e,de)}}function x(e){ye=e,ve=!1,be=!1,highed.merge(ne,{data:ye}),oe.emit("ProviderLiveData",e),c(),h(de),v(),d(),n(function(e){var t=Highcharts.addEvent(e,"load",function(){f(),t()})})}function w(e){var t;ve=!1,be=e,be.googleSpreadsheetKey=be.googleSpreadsheetKey||be.id,be.googleSpreadsheetWorksheet=be.googleSpreadsheetWorksheet||be.worksheet,e&&0===(e.googleSpreadsheetKey||"").indexOf("http")&&(t=e.googleSpreadsheetKey,t=t.substr(t.indexOf("/d/")+3),t=t.substr(0,t.indexOf("/")),e.googleSpreadsheetKey=t),highed.merge(ne,{data:be}),c(),h(de),v(),d(),n(function(e){var t=Highcharts.addEvent(e,"load",function(){f(),t()})})}function C(e){return e}function k(){var e=!1,t=be,i=ye,o=!1,n=!1;return(we&&we.options&&we.options.data&&we.options.data.csv||null!==ke)&&(e=ke||(we.options.data?we.options.data.csv:""),we.options.data&&we.options.data.seriesMapping&&(n=we.options.data.seriesMapping)),we&&we.options&&we.options.data&&we.options.data.googleSpreadsheetKey&&(t={googleSpreadsheetKey:we.options.data.googleSpreadsheetKey,googleSpreadsheetWorksheet:we.options.data.googleSpreadsheetWorksheet},ze=!1),we&&we.options&&we.options.data&&we.options.data.url&&(i={url:we.options.data.url,interval:we.options.data.interval,type:we.options.data.type},ze=!1),ce&&ce.id&&se&&(o={id:ce.id,name:ce.name,options:se||{},customCode:re||""}),we&&we.options&&we.options.annotations&&(ue.annotations=1),{template:he,options:C(ne),customCode:highed.isFn(me)?fe:"",theme:o,settings:{constructor:Me,template:Se,plugins:ue,dataProvider:{csv:!t&&!i&&(e||ve),googleSpreadsheet:t,liveData:i,assignDataFields:ze,seriesMapping:n}}}}function z(){return Se}function S(e){ve=!1,be=!1,ye=!1,ne&&ne.data&&(ne.data={}),ne.series&&(ne.series=highed.isArr(ne.series)?ne.series:[ne.series],ne.series.forEach(function(e){e.data&&delete e.data})),e||(c(),h(de),d())}function T(e){return o(k(),e)}function A(e){ve=!1,n(function(t){if(highed.isStr(e))try{A(JSON.parse(e))}catch(e){highed.snackBar("invalid json: "+e)}else highed.isBasic(e)?highed.snackBar("the data is not valid json"):(he=[{}],highed.clearObj(ne),highed.merge(ne,highed.merge({},e)),highed.isNull(e.series)||(ne.series=e.series),c(),h(ne),v(),d())})}function M(e){ke=e}function L(e){ze=e}function D(e,t){t?ue[e]=1:delete ue[e]}function V(e){function t(){oe.emit("AttrChange",{id:"chart.width"})}function i(){oe.emit("AttrChange",{id:"chart.height"})}var o=!1,n=!1;e&&e.chart&&("undefined"!=typeof e.chart.width&&(ne.chart&&"undefined"!=typeof ne.chart?ne.chart.width!==e.chart.width&&(n=!0):n=!0),"undefined"!=typeof e.chart.height&&(ne.chart&&"undefined"!=typeof ne.chart?ne.chart.height!==e.chart.height&&(o=!0):o=!0)),ne=highed.transform.remBlanks(highed.merge({},e,!1)),ne&&ne.lang&&Highcharts.setOptions({lang:ne.lang}),e&&e.global,e&&e.data&&e.data.googleSpreadsheetKey&&oe.emit("LoadedGoogleSpreadsheet"),c(),h(de,!1,!0),d(),o&&i(),n&&t()}function F(e){n(function(t){Object.keys(e||{}).forEach(function(t){highed.setAttr(ne,t,e[t])}),c(),h(de),d()})}function E(e){highed.isArr(e)&&(ne.series=ne.series||[],e.length= 0 || (scripts[i].getAttribute("src") === "http://code.highcharts.com/highcharts.js" && src === "https://code.highcharts.com/stock/highstock.js")) {',"return true;","}","}","}","return false;","}","function check() {","if (loaded === files.length) {","for (var i = 0; i < window.HighchartsEditor.ondone.length; i++) {","try {","window.HighchartsEditor.ondone[i]();","} catch(e) {","console.error(e);","}","}","window.HighchartsEditor.hasLoaded = true;","}","}","function include(script) {","function next() {","++loaded;","if (loaded < files.length) {","include(files[loaded]);","}","check();","}","if (isScriptAlreadyIncluded(script)) {","return next();","}",'var sc=document.createElement("script");',"sc.src = script;",'sc.type="text/javascript";',"sc.onload=function() { next(); };","document.head.appendChild(sc);","}","function each(a, fn){",'if (typeof a.forEach !== "undefined"){a.forEach(fn);}',"else{","for (var i = 0; i < a.length; i++){","if (fn) {fn(a[i]);}","}","}","}",'var inc = {},incl=[]; each(document.querySelectorAll("script"), function(t) {inc[t.src.substr(0, t.src.indexOf("?"))] = 1; ',"});"]);const d=Me.some(function(e){return"StockChart"===e})?"StockChart":"Chart";return"\n"+["(function(){ ",n.join("")," function cl() {",'if(typeof window["Highcharts"] !== "undefined"){',ne.lang?"Highcharts.setOptions({lang:"+JSON.stringify(ne.lang)+"});":"","var options=",o(H(!0)),";",highed.isFn(me)?fe:"","new Highcharts."+d+'("',e,'", options);',"}","}","})();"].join("")+"\n"})}function G(){var e=H(!0);return highed.isFn(me)&&fe&&me(e),o(e," ")}function _(e){return n(function(t){var i="highcharts-"+highed.uuid();return"\n"+['
',e?O():"","
"].join("")+""})}function N(){n(function(t){Ae||(highed.dom.style(ie.expandTo,{width:"100%",display:"block"}),Ce=highed.dom.size(e),h(t.options,ie.expandTo),Ae=!0,Te.className="highed-icon highed-chart-preview-expand fa fa-times-circle")})}function j(){n(function(t){Ce&&Ae&&(highed.dom.style(ie.expandTo,{width:"0px",display:"none"}),Te.className="highed-icon highed-chart-preview-expand fa fa-external-link-square",h(t.options,e),Ae=!1)})}function R(){highed.cloud.flush(),he=[],highed.clearObj(ne),highed.clearObj(ae),me=!1,c(),h(de),d(),oe.emit("New")}function U(e){n(function(t){t.exportChart(e,de)})}function W(t){e=t,h()}function J(){return Me.some(function(e){return"StockChart"===e})?"StockChart":"Chart"}function Y(){return{id:ce.id,name:ce.name,options:se}}function q(){return fe&&fe.length?fe:pe}function X(e,t,i){e||(me=!1,fe="");try{me=new Function("options",["if (options.yAxis && options.yAxis.length === 1) options.yAxis = options.yAxis[0];","if (options.xAxis && options.xAxis.length === 1) options.xAxis = options.xAxis[0];","if (options.zAxis && options.zAxis.length === 1) options.zAxis = options.zAxis[0];","if (!options.series || options.series.length === 0) return;",'var encodedUrl = "";',re].join("")+e),fe=e}catch(i){return me=!1,fe=e,highed.isFn(t)&&t(i)}i||(c(),(!ne.data||ne&&ne.data&&!ne.data.googleSpreadsheetKey)&&h(de),d())}function K(e){De=e}function Z(e){Ve=e}function Q(e,t,i,o,n){if(we){ne.annotations||(ne.annotations=[]);var d=we.addAnnotation({id:"label_"+ne.annotations.length,labels:[{id:"label_"+ne.annotations.length,text:i,point:{x:e,y:t,xAxis:0,yAxis:0},backgroundColor:o,shape:n,borderWidth:"connector"!==n?0:1,x:0,y:"circle"===n?0:-16}]});ne.annotations.push({id:"label_"+ne.annotations.length,labels:[d.options.labels[0]]})}}function $(e,t,i,o,n){Q(e,t,i,o,n)}function ee(e,t){ne.series[e]||(ne.series[e]={data:[],turboThreshold:0,_colorIndex:e,_symbolIndex:0,compare:void 0}),t&&(ne.series[e].type=t),c(),h()}function te(e){var t=we.xAxis[0].toValue(e.chartX),i=we.yAxis[0].toValue(e.chartY);we.isInsidePlot(e.chartX-we.plotLeft,e.chartY-we.plotTop)&&(ne.annotations||(ne.annotations=[]),"label"===Ve?oe.emit("ShowTextDialog",we,t,i):"delete"===Ve||a(we,Ve,t,i))}var ie=highed.merge({defaultChartOptions:{title:{text:"Chart Title"},subtitle:{text:""},exporting:{}},expandTo:e},t),oe=highed.events(),ne={},de={},ae={},he=[],le={},se={},re="",ce={},ge={},ue={},pe=["/*","// Sample of extending options:","Highcharts.merge(true, options, {"," chart: {",' backgroundColor: "#bada55"'," },"," plotOptions: {"," series: {",' cursor: "pointer",'," events: {"," click: function(event) {",' alert(this.name + " clicked\\n" +',' "Alt: " + event.altKey + "\\n" +',' "Control: " + event.ctrlKey + "\\n" +',' "Shift: " + event.shiftKey + "\\n");'," }"," }"," }"," }","});","*/"].join("\n"),me="",fe="",ve=!1,be=!1,ye=!1,xe=!1,we=!1,Ce=!1,ke=null,ze=null,Se={},Te=highed.dom.cr("div","highed-icon highed-chart-preview-expand fa fa-external-link-square"),Ae=!1,Me=["Chart"],Le={"g.highcharts-legend":{tab:"Legend",dropdown:"General",id:"legend--enabled"},"text.highcharts-title":{tab:"Chart",dropdown:"Title",id:"title--text"},"text.highcharts-subtitle":{tab:"Chart",dropdown:"Title",id:"subtitle--text"},".highcharts-yaxis-labels":{tab:"Axes",dropdown:"Y Axis",id:"yAxis-labels--format"},".highcharts-xaxis-labels":{tab:"Axes",dropdown:"X Axis",id:"xAxis-labels--format"},".highcharts-xaxis .highcharts-axis-title":{tab:"Axes",dropdown:"X Axis",id:"xAxis-title--text"},".highcharts-yaxis .highcharts-axis-title":{tab:"Axes",dropdown:"Y Axis",id:"yAxis-title--text"},"rect.highcharts-background":{tab:"Chart",dropdown:"Appearance",id:"chart--backgroundColor"},".highcharts-series":{tab:"Data series",id:"series"},"g.highcharts-tooltip":{tab:"Chart",dropdown:"Tooltip",id:"tooltip--enabled"}},De=!1,Ve=!1;return c(),h(),highed.dom.on(Te,"click",function(){return Ae?j():N()}),ge={assignTheme:r,clearTheme:s,getTheme:Y,getConstructor:J,on:oe.on,expand:N,collapse:j,new:R,changeParent:W,getHighchartsInstance:n,loadTemplate:m,loadTemplateForSerie:p,loadSeries:E,resize:l,setCustomCode:X,getCustomCode:q,toProject:k,toProjectStr:T,loadProject:y,toString:P,setIsAnnotating:K,setAnnotationType:Z,addAnnotationLabel:$,addAnnotation:te,options:{set:I,setAll:V,customized:ne,getCustomized:function(){return ne},full:de,flat:ae,chart:le,getPreview:G,all:function(){return we},addBlankSeries:ee,togglePlugins:D,getTemplateSettings:z},data:{csv:b,json:A,settings:F,export:U,gsheet:w,clear:S,live:x,setDataTableCSV:M,setAssignDataFields:L,deleteSerie:u,deleteSeries:g},export:{html:_,json:H,svg:O,js:B}}},function(){var e=highed.OverlayModal(!1,{showOnInit:!1,zIndex:11e3,width:300,height:400});highed.dom.ap(e.body,highed.dom.cr("span","","License info goes here")),highed.licenseInfo={show:e.show}}(),function(){function e(i){i&&(highed.isArr(i)?i.forEach(e):i.options?highed.isArr(i.options)?i.options.forEach(e):Object.keys(i.options).forEach(function(t){e(i.options[t])}):i.id&&(t[i.id]=i))}var t={};e(highed.meta.optionsExtended),highed.SimpleCustomizer=function(e,i){function o(e){l.innerHTML="",s.availableSettings.forEach(function(i){var o=highed.merge({text:i.replace(/\-/g," "),id:i,tooltipText:!1,dataType:"string",defaults:!1,custom:{},values:!1},t[i]);highed.dom.ap(l,highed.InspectorField(o.values?"options":o.dataType,highed.getAttr(e,o.id,0)||o.defaults,{title:o.text,tooltip:o.tooltipText,values:o.values,custom:o.custom,defaults:o.defaults,attributes:o.attributes||[]},function(e){a.emit("PropertyChange",o.id,e,0)},!1,o.id))})}function n(e){e&&(highed.dom.style(e,{border:"2px solid #33aa33"}),e.focus(),e.scrollIntoView(!0),window.setTimeout(function(){highed.dom.style(e,{border:""})},2e3))}function d(e,t,i){var o=e.id;o.indexOf("-")>=0&&n(l.querySelector("#"+o))}var a=highed.events(),h=highed.dom.cr("div","highed-simple-customizer"),l=highed.dom.cr("table","highed-customizer-table"),s=highed.merge({availableSettings:["title--text","subtitle--text","colors","chart--backgroundColor","yAxis-title--style","yAxis--type","yAxis--opposite","yAxis--reversed","yAxis-labels--format"]},i);return highed.ready(function(){highed.dom.ap(e,highed.dom.ap(h,highed.dom.cr("div","highed-customizer-table-heading","Edit Chart"),l))}),{focus:d,on:a.on,build:o}}}(),function(){function e(e){function t(){i.clear(),highed.cloud.getTeams(function(e){e.forEach(function(e){i.addItem({id:e.id,title:e.name})}),i.selectByIndex(0)})}var i=highed.DropDown(e);return{refresh:t,dropdown:i}}function t(e){var t=highed.dom.cr("div","highed-cloud-chart"),i=highed.dom.cr("div","highed-cloud-thumbnail");highed.dom.ap(s,highed.dom.ap(t,i,highed.dom.cr("div","highed-cloud-chart-title",e.name))),highed.dom.style(i,{"background-image":"url("+e.thumbnail_url+"?t="+(new Date).getTime()+")"}),highed.dom.on(i,"click",function(){a&&highed.cloud.getChart(e.team_owner,e.id,function(t){try{a.loadProject(JSON.parse(t.data)),d=e.id,n=e.team_owner,h.hide()}catch(e){highed.snackbar(e)}})})}function i(e,o){s.innerHTML="Loading Charts",highed.cloud.getCharts(o,function(n,d){if(s.innerHTML="",c.innerHTML="",d.pageCount>1)for(var a=1;a<=d.pageCount;a++)!function(t){var n=highed.dom.cr("span","highed-cloud-paging-item",a);t===e&&(n.className+=" selected"),highed.dom.on(n,"click",function(){i(t,o)}),highed.dom.ap(c,n)}(a);n.forEach(t)},e)}function o(){var e=highed.dom.cr("div","highed-cloud-login-container"),t=highed.dom.cr("input","highed-cloud-input"),i=highed.dom.cr("input","highed-cloud-input"),o=highed.dom.cr("button","highed-ok-button","LOGIN"),n=highed.dom.cr("div","highed-cloud-login-error"),d=!1,a=highed.OverlayModal(!1,{height:300,width:250,zIndex:10001});return t.name="cloud-username",i.name="cloud-password",t.placeholder="E-Mail",i.placeholder="Your password",i.type="password",highed.dom.ap(a.body,highed.dom.ap(e,highed.dom.cr("h3","","Login to Highcharts Cloud"),n,t,i,o,highed.dom.cr("div","highed-cloud-login-notice","Requires a Highcharts Cloud account"))),highed.dom.on(o,"click",function(){o.disabled=!0,highed.dom.style(n,{display:"none"}),highed.cloud.login(t.value,i.value,function(e,t){o.disabled=!1,e||!t||"undefined"==typeof t.token?(n.innerHTML="Error: Check username/password ("+(e||t.message)+")",highed.dom.style(n,{display:"block"})):(a.hide(),highed.isFn(d)&&d())})}),function(e){d=e||function(){},highed.cloud.isLoggedIn()?d():a.show()}}var n,d,a=!1,h=highed.OverlayModal(document.body,{showOnInit:!1,width:"90%",height:"90%",zIndex:10001}),l=highed.dom.cr("div"),s=highed.dom.cr("div","highed-cloud-chart-container"),r=e(l),c=highed.dom.cr("div","highed-cloud-paging"),g=highed.OverlayModal(document.body,{showOnInt:!1,width:400,height:300,zIndex:10001}),u=highed.dom.cr("div"),p=e(u),m=highed.dom.cr("input","highed-field-input"),f=highed.dom.cr("button","highed-ok-button","Save to cloud"),v=!1;highed.dom.ap(g.body,highed.dom.cr("h2","highed-titlebar","Save to Cloud"),highed.dom.cr("div","","Team"),u,highed.dom.cr("br"),highed.dom.cr("div","","Chart Name"),m,f),highed.dom.on(f,"click",function(){f.disabled=!0,f.innerHTML="SAVING TO CLOUD...",highed.cloud.saveNewChart(n,m.value,JSON.stringify(a.toProject()),function(e){f.disabled=!1,!e.error&&e?(d=e,g.hide(),f.innerHTML="SAVE TO CLOUD",highed.snackBar("SAVED TO CLOUD")):highed.snackBar("Error saving to cloud")})}),p.dropdown.on("Change",function(e){n=e.id()}),highed.dom.ap(h.body,highed.dom.cr("h2","highed-titlebar","Load project from Highcharts Cloud"),highed.dom.ap(l,s,c)),r.dropdown.on("Change",function(e){i(!1,e.id())}),highed.cloud.flush=function(){d=!1,n=!1},highed.cloud.save=function(e){highed.cloud.loginForm(function(){m.value="",m.focus(),a=e||a,d&&n?highed.cloud.saveExistingChart(n,d,JSON.stringify(a.toProject()),function(){highed.snackbar("CHART SAVED TO CLOUD")}):(g.show(),p.refresh())})},highed.cloud.showUI=function(e){highed.cloud.loginForm(function(){a=e,h.show(),r.refresh()})},highed.cloud.loginForm=function(e){v||(v=o()),v(e)}}(),highed.DrawerEditor=function(e,t,i){function o(){function e(e,i){if(e&&e.icon&&e.nav){"data"===i?(e.nav.page=W,W.init(),e.nav.onClick.push(function(){highed.dom.style([B,N,G],{width:"100%",height:"100%"})})):"templates"===i?(e.nav.page=J,J.init()):"customize"===i?(e.nav.page=U,U.init(),highed.dom.ap(H,U.getResolutionContainer())):(x=highed.DefaultPage(D.bottom,e,j,B),x.init(),e.nav.page=x);var o=function(t,i){t.hide(),i.page.show(),P.setDefault(i.page),titleHeader.innerHTML=i.text,helpModal=e.help?highed.HelpModal(e.help||[]):null,highed.dom.style(helpIcon,{display:helpModal?"inline":"none"}),iconContainer.innerHTML="",i.page.getIcons()&&highed.dom.ap(iconContainer,i.page.getIcons()),highed.dom.style(iconContainer,{display:i.page.getIcons()?"inline":"none"})};"customize"==i?e.nav.onClick=[o]:e.nav.onClick.push(o),P.addOption(e.nav,i),t[i]=i}}var t={};P.clearOptions(),C.features=highed.isArr(C.features)?C.features:C.features.split(" "), s(),C.features.forEach(function(t){e(V[t]||customOptions[t]||!1,t)}),toolboxEntries=t}function n(){helpModal.show()}function d(){toolbarButtons.forEach(function(e){"-"===e?O.addSeparator():O.addIcon(e)})}function a(){createChartPage.init(W,J,U),highed.dom.style([F,_,I],{opacity:0}),P.getPrev().hide(),createChartPage.show(),highed.dom.style([G,titleContainer],{opacity:"0"}),highed.onPhone()&&highed.dom.style(titleContainer,{display:"none"}),createChartPage.on("SimpleCreateChartDone",function(e){if(createChartPage.hide(),highed.dom.style([G,titleContainer],{opacity:"1"}),highed.dom.style([F,_,I],{opacity:1}),highed.onPhone()&&highed.dom.style(titleContainer,{display:"block"}),e)W.show(),P.setDefault(W),W.resize();else{const t=P.getOptions().customize;t&&(U.setTabBehaviour(!0),t.click())}}),createChartPage.on("SimpleCreateChangeTitle",function(e){j.options.set("title--text",e.title),j.options.set("subtitle--text",e.subtitle),p(e.title)})}function h(e){highed.dom.size(D.bottom);return M=e,highed.dom.style(B,{width:"28%",height:"37%"}),L?void setTimeout(function(){l(L.w,L.h)},400):void j.resize()}function l(e,t){if(e&&0!==e.length||t&&0!==t.length){var i=highed.dom.size(B);L={w:e,h:t},e=e||i.w-100,t=t||i.h-100,j.resize()}else L=!1,resHeight.value="",resWidth.value="",h(M)}function s(){D.resize(),P.getPrev().resize()}function r(e){C.features=e,o()}function c(e,t){customOptions[e]=t,o()}function g(e){const t=highed.dom.cr("button","highed-import-button green action-btn","Action "),i=highed.dom.cr("button","highed-import-button green action-btn","Action ");highed.dom.on(t,"click",function(){highed.dom.style(E,{overflow:""===E.style.overflow||"hidden"===E.style.overflow?"unset":"hidden"})}),highed.dom.on(i,"click",function(){highed.dom.style(I,{overflow:""===I.style.overflow||"hidden"===I.style.overflow?"unset":"hidden"})}),highed.dom.ap(E,t),highed.dom.ap(I,i),e.forEach(function(e,t){const i=highed.dom.cr("button","highed-import-button green highed-sm-dropdown-button"+(t?"":" highed-btn-dropdown-first"),e.text);highed.dom.on(i,"click",e.onClick);const o=highed.dom.cr("button","highed-import-button green highed-sm-dropdown-button"+(t?"":" highed-btn-dropdown-first"),e.text);highed.dom.on(o,"click",e.onClick),highed.dom.ap(E,i),highed.dom.ap(I,o)})}function u(){}function p(e){W.setChartTitle(e)}function m(e){W.addImportTab(e)}function f(){}function v(e,t,i,o){if(i){if(R)return;highed.dom.style(T,{display:"inline-block"}),k.classList.contains("highed-warningbar")||(k.classList+=" highed-warningbar")}else highed.dom.style(T,{display:"none"}),k.classList.remove("highed-warningbar");highed.dom.style(k,{opacity:1,"pointer-events":"auto"}),S.innerHTML=e,A.innerHTML=t,14===o&&W.showDataTableError()}function b(){highed.dom.style(k,{opacity:0,"pointer-events":"none"}),W.hideDataTableError()}function y(){resWidth.disabled=resHeight.disabled="disabled",j.getHighchartsInstance(function(e){var t,i;e&&e.options&&e.options.chart?(t=e.options.chart.width,i=e.options.chart.height||400):i=400,resWidth.value=t,resHeight.value=i,l(t,i)})}var x,w=highed.events(),C=highed.merge({defaultChartOptions:{},useHeader:!0,features:["data","templates","customize","customcode","advanced","export"],importer:{},dataGrid:{},customizer:{},toolbarIcons:[]},t),k=highed.dom.cr("div","highed-errorbar highed-box-size highed-transition"),z=highed.dom.cr("div","highed-errorbar-headline"),S=highed.dom.cr("div","highed-errorbar-headline-text","This is an error!"),T=highed.dom.cr("div","highed-errorbar-close",''),A=highed.dom.cr("div","highed-errorbar-body highed-scrollbar","Oh noes! something is very wrong!"),M=!1,L=!1,D=highed.VSplitter(e,{topHeight:C.useHeader?"60px":"0px",noOverflow:!0}),V={data:{icon:"fa-table",title:"Data",widths:{desktop:66,tablet:64,phone:100},nav:{icon:"table",text:"Data",onClick:[]},help:[{title:"Manually Add/Edit Data",gif:"dataImport.gif",description:["Click a cell to edit its contents.

","The cells can be navigated using the arrow keys.

","Pressing Enter creates a new row, or navigates to the row directly below the current row."]},{title:"Setting headings",gif:"dataImport.gif",description:["The headings are used as the series titles.

","They can be edited by left clicking them.

","Click the arrow symbol in the header to access column properties."]},{title:"Importing Data",gif:"import.gif",description:["To import data, simply drag and drop CSV files onto the table, or paste CSV/Excel data into any cell.

","For more advanced data import, click the IMPORT DATA button."]}],showLiveStatus:!0},templates:{icon:"fa-bar-chart",widths:{desktop:26,tablet:24,phone:100},title:"Templates",nav:{icon:"bar-chart",text:"Templates",onClick:[]},help:[{title:"Templates",description:["Templates are pre-defined bundles of configuration.

","Start by choosing the template category in the list to the left,","then pick a suitable template for your data and use case in the","template list."]}]},customize:{icon:"fa-sliders",title:"Customize Chart",nav:{icon:"pie-chart",text:"Customize",onClick:[]},widths:{desktop:27,tablet:24,phone:100},help:[{title:"Customize",description:["The customize pane lets you customize your chart.

","The customizer has three different sections:
","
  • Simple: A simple customizer with the most used options
  • ","
  • Advanced: All options available in Highcharts/Highstock can be set here
  • ","
  • Custom code: Here, properties can be overridden programatically
  • "]}]}},F=highed.dom.cr("div","highed-optionspanel-body highed-box-size highed-transition"),E=highed.dom.cr("div","highed-optionspanel-buttons highed-optionspanel-cloud highed-box-size highed-transition"),I=highed.dom.cr("div","highed-xs-workspace-buttons highed-optionspanel-xs-cloud highed-box-size highed-transition"),H=highed.dom.cr("div","highed-optionspanel-buttons highed-optionspanel-res highed-box-size highed-transition"),P=highed.OptionsPanel(F),O=highed.Toolbar(D.top),B=highed.dom.cr("div","highed-chart-container highed-transition"),G=highed.dom.cr("div","highed-transition highed-box-size highed-chart-frame highed-scrollbar"),_=highed.dom.cr("div","highed-transition highed-box-size highed-show-chart-xs",''),N=highed.dom.cr("div","highed-box-size highed-chart-frame-body"),j=highed.ChartPreview(N,{defaultChartOptions:C.defaultChartOptions}),R=!1,U=(highed.dom.cr("div","highed-box-size highed-fill"),highed.CustomizePage(D.bottom,highed.merge({importer:C.importer},C.customizer),j,B,V.customize,G,i)),W=highed.DataPage(D.bottom,highed.merge({importer:C.importer},C.dataGrid),j,B,V.data),J=highed.TemplatePage(D.bottom,highed.merge({importer:C.importer},C.dataGrid),j,B,V.templates);return createChartPage=highed.CreateChartPage(D.bottom,C.features,{title:"Create Chart",widths:{desktop:95}}),resPreviewBar=highed.dom.cr("div","highed-res-preview"),resWidth=highed.dom.cr("input","highed-res-number"),resHeight=highed.dom.cr("input","highed-res-number"),exporterContainer=highed.dom.cr("div","highed-box-size highed-fill"),exporter=highed.Exporter(exporterContainer),templatesContainer=highed.dom.cr("div","highed-box-size highed-fill"),templates=highed.ChartTemplateSelector(templatesContainer,j),customizerContainer=highed.dom.cr("div","highed-box-size highed-fill"),customizer=highed.ChartCustomizer(customizerContainer,C.customizer,j),toolbarButtons=[{title:highed.L("newChart"),css:"fa-file",click:function(){window.confirm(highed.getLocalizedStr("confirmNewChart"))&&j.new()}},{title:highed.L("saveProject"),css:"fa-floppy-o",click:function(){var e;j.options.full.title&&(e=j.options.full.title.text),e=(e||"chart").replace(/\s/g,"_"),highed.download(e+".json",j.toProjectStr())}},{title:highed.L("openProject"),css:"fa-folder-open",click:function(){highed.readLocalFile({type:"text",accept:".json",success:function(e){try{e=JSON.parse(e.data)}catch(e){return highed.snackBar("Error loading JSON: "+e)}j.loadProject(e)}})}},"-",{title:highed.L("saveCloud"),css:"fa-cloud-upload",click:function(){highed.cloud.save(j)}},{title:highed.L("loadCloud"),css:"fa-cloud-download",click:function(){highed.cloud.showUI(j)}},"-",{title:"Help",css:"fa-question-circle",click:function(){window.open(highed.option("helpURL"))}}].concat(C.toolbarIcons),customOptions={},helpIcon=highed.dom.cr("div","highed-toolbox-help highed-icon fa fa-question-circle"),titleHeader=highed.dom.cr("h3","","Data"),iconContainer=highed.dom.cr("div",""),titleContainer=highed.dom.ap(highed.dom.cr("div","highed-page-title"),titleHeader,helpIcon,iconContainer),helpModal=highed.HelpModal(V.data.help||[]),highed.dom.on(helpIcon,"click",n),highed.dom.ap(D.bottom,highed.dom.ap(F,H,E)),highed.dom.ap(D.bottom,titleContainer,I),C.useHeader||highed.dom.style(D.top.parentNode,{display:"none"}),highed.dom.on(_,"click",function(){B.classList.contains("active")?B.classList.remove("active"):(setTimeout(function(){j.resize()},200),B.classList+=" active")}),V.import=V.data,P.setDefault(W),W.show(),W.on("GoToTemplatePage",function(){const e=P.getOptions().templates;e&&e.click()}),W.on("SeriesChanged",function(e){(!t&&!t.features||t.features&&t.features.indexOf("templates")>-1)&&J.selectSeriesTemplate(e,j.options.getTemplateSettings())}),j.on("LoadProject",function(e,t){W.loadProject(e,t),J.selectSeriesTemplate(0,e)}),J.on("TemplateChanged",function(e,t,i){W.changeAssignDataTemplate(e,t,i)}),j.on("ChartChange",function(e){w.emit("ChartChangedLately",e)}),templates.on("Select",function(e){j.loadTemplate(e)}),templates.on("LoadDataSet",function(e){"csv"===e.type&&(highed.isArr(e.dataset)?j.data.csv(e.dataset.join("\n")):j.data.csv(e.dataset),j.options.set("subtitle-text",""),j.options.set("title-text",e.title))}),j.on("LoadProject",function(){setTimeout(function(){y()},2e3)}),j.on("RequestEdit",function(e,t,i){const o=P.getOptions().customize;P.getCurrentOption()&&"Customize"===P.getCurrentOption().text||o&&(U.setTabBehaviour(!1),o.click()),setTimeout(function(){U.selectOption(e,t,i)},500)}),j.on("ProviderGSheet",function(e){}),j.on("ProviderLiveData",function(e){}),j.on("Error",function(e){if(e&&e.code&&highed.highchartsErrors[e.code]){var t=highed.highchartsErrors[e.code],i="";return e.url>=0&&(i=''),v((t.title||"There's a problem with your chart")+"!",t.text+i,e.warning,e.code)}v("There's a problem with your chart!",e)}),j.on("ChartRecreated",b),highed.dom.on(window,"resize",s),highed.dom.on(window,"afterprint",function(){setTimeout(function(){const e=P.getCurrentOption()?P.getCurrentOption().page:W;setTimeout(e.resize,10),s()},1100)}),highed.dom.ap(O.left,highed.dom.style(highed.dom.cr("span"),{"margin-left":"2px",width:"200px",height:"60px",float:"left",display:"inline-block","background-position":"left middle","background-size":"auto 100%","background-repeat":"no-repeat","background-image":'url("data:image/svg+xml;utf8,'+encodeURIComponent(highed.resources.logo)+'")'})),highed.dom.on(T,"click",function(){b(),R=!0}),highed.dom.ap(D.bottom,highed.dom.ap(B,highed.dom.ap(G,N)),_,highed.dom.ap(k,highed.dom.ap(z,S,T),A)),highed.dom.on([resWidth,resHeight],"change",function(){l(parseInt(resWidth.value,10),parseInt(resHeight.value,10))}),o(),d(),s(),j.on("AttrChange",function(e){"chart.height"===e.id||"chart.width"===e.id}),j.on("SetResizeData",function(){y()}),{on:w.on,resize:s,destroy:u,getEmbeddableHTML:j.export.html,getEmbeddableJSON:j.export.json,getEmbeddableSVG:j.export.svg,addImportTab:m,hideImportModal:f,setEnabledFeatures:r,addFeature:c,chart:j,toolbar:O,getChartTitle:W.getChartTitle,setChartTitle:p,showCreateChartPage:a,addToWorkspace:g,data:{on:function(){},showLiveStatus:function(){},hideLiveStatus:function(){}},toolbar:O}},highed.Editor=highed.DrawerEditor,function(){function e(e,t){var o=highed.merge({meta:{version:"unknown",author:"unknown",homepage:"unknown"},dependencies:[],options:{}},t);return console.error("Warning: editor plugins are no longer supported."),o.dependencies.forEach(highed.include),highed.isNull(i[e])?void(i[e]=o):highed.log(1,"plugin -",e,"is already installed")}function t(e,t){var d=i[e],a={};if(console.error("Warning: editor plugins are no longer supported."),highed.isNull(d))highed.log(2,"plugin -",e,"is not installed");else{if(o[e])return highed.log(2,"plugin -",e,"is already active");Object.keys(d.options).forEach(function(i){var o=d.options[i];highed.isBasic(o)||highed.isArr(o)?highed.log(2,"plugin -",e,"unexpected type definition for option",i,"expected object"):(a[i]=t[i]||d.options[i].default||"",o.required&&highed.isNull(t[i])&&highed.log(1,"plugin -",e,"option",i,"is required"))}),o[e]={definition:d,options:a},highed.isFn(d.activate)&&o[e].definition.activate(a),n.emit("Use",o[e])}}var i={},o={},n=highed.events(),d={};highed.plugins.editor={install:e,use:t},highed.plugins.step={install:function(e){d[e.title]=e}}}(),highed.SimpleEditor=function(e,t){function i(){d.features.import||m.hide(),!d.features.preview,!d.features.customize}function o(){var e=highed.dom.size(h);s.resize(e.w,e.h),g.resize(!1,e.h-60),u.resize(),c.resize(e.w,e.h-60),p.resize(),m.resize()}function n(){f.build(p.options.customized)}var d=highed.merge({importer:{options:"csv"},features:"import preview customize",availableSettings:["title--text","subtitle--text","colors","chart--backgroundColor","yAxis-title--style","yAxis--type","yAxis--opposite","yAxis--reversed","yAxis-labels--format"],defaultChartOptions:{}},t),a=highed.events(),h=highed.dom.cr("div","highed-container"),l=highed.dom.cr("div","highed-expand-container"),s=highed.VSplitter(h,{topHeight:"60px",noOverflow:!0}),r=highed.Toolbar(s.top,{additionalCSS:["highed-header"]}),c=highed.HSplitter(s.bottom,{leftWidth:30,noOverflow:!1}),g=highed.VSplitter(c.right,{noOverflow:!0}),u=highed.VSplitter(c.left,{topHeight:60}),p=highed.ChartPreview(g.top,{defaultChartOptions:d.defaultChartOptions,expandTo:l}),m=highed.SimpleDataPage(g.bottom,u.bottom,d.importer,p,g.top,{}),f=highed.SimpleCustomizer(u.top,{availableSettings:d.availableSettings}),v=highed.DefaultContextMenu(p);return d.features=highed.arrToObj(d.features.split(" ")),m.init(),f.on("PropertyChange",function(e,t,i){p.options.set(e,t,i),a.emit("Change",p)}),p.on("RequestEdit",function(e,t,i){f.focus(e,t,i)}),p.on("New",n),highed.dom.ap(highed.dom.get(e),h,l),highed.dom.on(window,"resize",o),highed.dom.ap(r.left,highed.dom.style(highed.dom.cr("div","highed-logo"),{"background-image":'url("data:image/svg+xml;utf8,'+encodeURIComponent(' ')+'")'})),r.addIcon({css:"fa-gear",click:function(e){v.show(e.clientX,e.clientY)}}),i(),o(),n(),{resize:o,on:a.on,toolbar:r,chart:p}},highed.ModalEditor=function(e,t,i){function o(t){t=t||e,t&&(highed.isFn(l)&&l(),l=highed.dom.on(highed.dom.get(t),"click",function(){a.show(),h.resize()}))}function n(){highed.isFn(i)&&i(h.chart),a.hide()}var d=highed.merge({type:"full",allowDone:!1},t),a=highed.OverlayModal(!1,{width:"95%",height:"95%",showOnInit:!1}),h="full"===d.type?highed.Editor(a.body,t):highed.SimpleEditor(a.body,t),l=!1,s=highed.dom.cr("button","highed-done-button","Close & Use");return a.on("Show",h.resize),highed.dom.on(s,"click",n),o(e),d.allowDone&&highed.dom.ap(h.toolbar.center,s),h.on("Done",n),h.resize(),{editor:h,show:a.show,hide:a.hide,on:h.on,resize:h.resize,attachToSummoner:o}};