highcharts-editor.min.js 339.6 KB
Newer Older
Five-菜鸟级's avatar
init  
Five-菜鸟级 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
/*

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;r<e.length;r++)if(o=e[r],n=e[r+1],d=e[r-1],'"'===o)if(l){if('"'!==d&&'"'!==n){for(;" "===n;)n=e[++r];if(a[n])return h[n]++,!0;l=!1}}else l=!0;else a[o]?isNaN(Date.parse(s))?!i(s)&&s.length&&(s="",h[o]++):(s="",h[o]++):s+=o}),d.delimiter=";",h[","]>h[";"]&&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<e.length;c++)a=e[c],l=e[c+1],h=e[c-1],'"'===a?r?o():r=!1:r?g+=a:a===d.delimiter?o():g+=a,c===e.length-1&&o();n.push(s)}),n}var highed={schemas:{},meta:{chartTemplates:{},fonts:[]},plugins:{},resources:{logo:'<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" id="Warstwa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"     width="425.197px" height="141.732px" viewBox="0 0 425.197 141.732" enable-background="new 0 0 425.197 141.732"     xml:space="preserve"><g>    <path fill="#383836" d="M138.475,69.712h-17.02v9.77c0,1.037-0.813,1.851-1.849,1.851c-1.037,0-1.85-0.813-1.85-1.851V57.725        c0-1.037,0.813-1.852,1.85-1.852c1.036,0,1.849,0.813,1.849,1.852v8.436h17.02v-8.436c0-1.037,0.814-1.852,1.85-1.852        c1.036,0,1.85,0.813,1.85,1.852v21.754c0,1.037-0.814,1.851-1.85,1.851c-1.036,0-1.85-0.813-1.85-1.851V69.712z"/>    <path fill="#383836" d="M156.973,79.479c0,1.037-0.814,1.851-1.852,1.851s-1.852-0.813-1.852-1.851V57.725        c0-1.037,0.814-1.852,1.852-1.852s1.852,0.813,1.852,1.852V79.479z"/>    <path fill="#383836" d="M184.125,70.378c0-1.036,0.814-1.774,1.852-1.774c1.034,0,1.852,0.813,1.852,1.849v5.847        c0,0.444-0.226,1.109-0.595,1.479c-2.367,2.369-5.549,3.773-9.176,3.773c-7.178,0-12.949-5.771-12.949-12.948        c0-7.181,5.771-12.949,12.949-12.949c3.627,0,6.809,1.405,9.176,3.771c0.738,0.74,0.738,1.852,0,2.592        c-0.741,0.738-1.922,0.813-2.663,0.072c-1.702-1.699-3.923-2.736-6.513-2.736c-5.104,0-9.249,4.144-9.249,9.25        c0,5.104,4.146,9.25,9.249,9.25c2.367,0,4.441-0.813,6.067-2.222V70.378z"/>    <path fill="#383836" d="M218.162,69.712h-17.019v9.77c0,1.037-0.817,1.851-1.852,1.851c-1.037,0-1.849-0.813-1.849-1.851V57.725        c0-1.037,0.812-1.852,1.849-1.852c1.034,0,1.852,0.813,1.852,1.852v8.436h17.019v-8.436c0-1.037,0.813-1.852,1.849-1.852        c1.037,0,1.852,0.813,1.852,1.852v21.754c0,1.037-0.813,1.851-1.852,1.851c-1.033,0-1.849-0.813-1.849-1.851V69.712z"/>    <path fill="#383836" d="M242.948,81.552c-7.182,0-12.949-5.771-12.949-12.948c0-7.181,5.77-12.949,12.949-12.949        c3.627,0,6.809,1.405,9.176,3.771c0.738,0.74,0.738,1.852,0,2.592c-0.741,0.738-1.925,0.813-2.666,0.072        c-1.699-1.699-3.92-2.736-6.51-2.736c-5.106,0-9.249,4.144-9.249,9.25c0,5.104,4.143,9.25,9.249,9.25        c2.59,0,4.884-0.962,6.586-2.664c0.74-0.741,1.849-0.741,2.59,0c0.738,0.738,0.738,1.85,0,2.589        C249.756,80.146,246.574,81.552,242.948,81.552z"/>    <path fill="#383836" d="M281.569,69.712h-17.02v9.77c0,1.037-0.813,1.851-1.852,1.851c-1.034,0-1.85-0.813-1.85-1.851V57.725        c0-1.037,0.813-1.852,1.85-1.852c1.035,0,1.852,0.813,1.852,1.852v8.436h17.02v-8.436c0-1.037,0.813-1.852,1.853-1.852        c1.034,0,1.849,0.813,1.849,1.852v21.754c0,1.037-0.813,1.851-1.849,1.851c-1.037,0-1.853-0.813-1.853-1.851V69.712z"/>    <path fill="#383836" d="M308.758,57.503l10.507,20.646c0.223,0.443,0.445,1.036,0.445,1.554c0,1.036-0.668,1.628-1.702,1.628        c-0.741,0-1.481-0.222-2.001-1.258l-3.253-6.438h-13.547l-3.183,6.438c-0.517,1.036-1.256,1.258-1.994,1.258        c-1.037,0-1.702-0.593-1.702-1.628c0-0.519,0.22-1.109,0.442-1.554l10.506-20.646c0.668-1.405,2.002-1.628,2.74-1.628        C306.76,55.875,308.09,56.096,308.758,57.503z M300.985,70.083h9.988l-4.957-9.99L300.985,70.083z"/>    <path fill="#383836" d="M340.159,56.023c4.441,0,8.064,3.255,8.064,7.694c0,3.923-2.813,6.884-6.511,7.549l6.731,7.104        c0.664,0.666,0.889,1.85,0.146,2.516c-0.736,0.741-2.145,0.521-2.886-0.296l-8.729-9.176h-6.511v8.142        c0,1.034-0.815,1.774-1.854,1.774c-1.033,0-1.85-0.813-1.85-1.851V57.873c0-1.035,0.814-1.85,1.85-1.85H340.159z M330.468,59.575        v8.288h9.691c2.59,0,4.367-1.776,4.367-4.146c0-2.365-1.777-4.144-4.367-4.144L330.468,59.575L330.468,59.575z"/>    <path fill="#383836" d="M365.047,59.575h-9.249c-1.033,0-1.849-0.74-1.849-1.776c0-1.034,0.813-1.773,1.849-1.773h22.201        c1.037,0,1.852,0.74,1.852,1.773c0,1.037-0.813,1.776-1.852,1.776h-9.249V79.48c0,1.037-0.813,1.851-1.849,1.851        c-1.037,0-1.854-0.813-1.854-1.851V59.575z"/>    <path fill="#383836" d="M388.724,66.013c0-9.25,5.698-10.359,9.99-10.359c1.035,0,1.85,0.813,1.85,1.85        c0,1.036-0.813,1.851-1.85,1.851c-3.479,0-6.29,0.738-6.29,6.66v5.18c0,9.25-5.698,10.358-9.989,10.358        c-1.035,0-1.85-0.813-1.85-1.85s0.814-1.85,1.85-1.85c3.479,0,6.289-0.74,6.289-6.66V66.013z"/></g><polygon fill="#8087E8" points="67.981,30.52 56.757,56.73 42.009,91.171 76.301,76.685 94.465,69.013 "/><polygon fill="#30426B" points="73.7,62.25 76.302,76.685 94.466,69.013 "/><polygon fill="#6699A1" points="67.981,30.52 73.7,62.251 94.465,69.013 "/><polygon fill="#78758C" points="73.7,62.25 94.466,69.013 56.758,56.729 42.009,91.171 76.302,76.685 "/><polygon fill="#A3EDBA" points="42.009,91.171 56.757,56.73 26.442,46.855 "/><polygon fill="#6699A1" points="76.302,76.685 79.628,95.13 94.466,69.013 "/><polygon fill="#8087E8" points="67.981,30.52 56.757,56.73 73.7,62.251 "/></svg>',icons:{line:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{fill:#42C8C0;} .st1{display:none;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} </style> <g id="line"> <path class="st0" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st1"> <polygon class="st2" points="18.1,26.2 28.9,33.7 24.8,21.6 35.6,14.3 22.4,14.3 18.1,1.8 13.9,14.3 0.7,14.3 11.5,21.6 7.4,33.7 "/> </g> <g id="bar" class="st1"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st1"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st1"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st1"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st1"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st1"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st1"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st1"> <g class="st3"> <path class="st0" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st1"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',area:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} .st10{fill:#42C8C0;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area"> <g> <path class="st10" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',bar:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{fill:#42C8C0;} .st4{display:inline;} .st5{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st6{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st7{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st8{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st9{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st10{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar"> <g> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st3" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st4"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st4"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st6" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st7" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st7" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st7" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st7" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st7" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st4"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st8" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st9" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st10" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st4"> <path class="st3" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',column:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} .st10{fill:#42C8C0;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns"> <g> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st10" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',more:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} .st10{fill:#42C8C0;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st10" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11"> <path class="st10" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',
pie:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} .st10{fill:#42C8C0;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie"> <g> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st10" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',polar:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st8{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st9{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} .st10{fill:#42C8C0;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st7" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st8" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st9" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st10" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',"scatter and bubble":'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{fill:#42C8C0;} .st7{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st8{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st9{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st10{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter"> <path class="st6" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st7" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st7" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st7" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st7" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st7" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock" class="st0"> <path class="st2" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st8" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st9" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st10" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st6" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> ',stock:'<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve"> <style type="text/css"> .st0{display:none;} .st1{display:inline;fill:#D66544;} .st2{display:inline;fill:#42C8C0;} .st3{display:inline;} .st4{clip-path:url(#SVGID_4_);fill-rule:evenodd;clip-rule:evenodd;fill:#42C8C0;} .st5{clip-path:url(#SVGID_6_);fill:#42C8C0;} .st6{display:inline;fill:none;stroke:#42C8C0;stroke-width:2;stroke-miterlimit:10;} .st7{fill:#42C8C0;} .st8{clip-path:url(#SVGID_8_);fill:#42C8C0;} .st9{display:inline;fill:none;stroke:#FFFFFF;stroke-width:5;} .st10{display:inline;fill:none;stroke:#42C8C0;stroke-width:2.2574;} </style> <g id="line" class="st0"> <path class="st1" d="M12.1,13.1l3.6,4.1L9,27.7l-6.5,0l0.1-3.8L12.1,13.1z M21.4,11.5l2.5,6.8l-3,2.3l-3.1-3.5L21.4,11.5z M10.1,29.2L17,18.5l3.8,4.2l3.9-2.9l3.6,10.1l4.8-5.1l1.2,2.7l1.2-1.1L33.7,22l-4.8,4.9l-3-8.2l1.7-1.4l4.6,4l3.5-7.9l-1.4-0.5 l-2.5,5.8l-4-3.5L25.4,17l-3.4-9.4l-5.2,8l-4.6-5.1L2.4,21.8l0-20.4L0,1.4v34.5h35.7v-2.1l-33.3,0v-4.7H10.1z"/> </g> <g id="popular" class="st0"> <polygon class="st2" points="18.1,27.7 28.9,35.2 24.8,23.1 35.6,15.8 22.4,15.8 18.1,3.3 13.9,15.8 0.7,15.8 11.5,23.1 7.4,35.2 "/> </g> <g id="bar" class="st0"> <g class="st3"> <defs> <rect id="SVGID_1_" x="-2.2" y="-1.2" width="41.2" height="41.2"/> </defs> <clipPath id="SVGID_2_"> <use xlink:href="#SVGID_1_" style="overflow:visible;"/> </clipPath> </g> <path class="st2" d="M27.5,4.5v25.7h4.6V4.5H27.5z M20.6,13v17.1h4.6V13H20.6z M35.7,34.1H2.3V1.6H0.1v34.3h35.6L35.7,34.1 L35.7,34.1z M13.8,7.3v22.8h4.6V7.3H13.8L13.8,7.3z M6.9,18.8v11.4h4.6V18.8H6.9z"/> </g> <g id="columns" class="st0"> <g class="st3"> <defs> <rect id="SVGID_3_" x="1.3" y="1.5" width="33.8" height="33.8"/> </defs> <clipPath id="SVGID_4_"> <use xlink:href="#SVGID_3_" style="overflow:visible;"/> </clipPath> <path class="st4" d="M27,1.5v32.2h6.4V1.5H27z M16.9,12.2h-6.4v21.5h6.4V12.2z M8.6,22.9H2.2v10.8h6.4V22.9z M25.2,8.2h-6.4v25.5 h6.4V8.2z"/> </g> </g> <g id="pie" class="st0"> <g class="st3"> <defs> <rect id="SVGID_5_" x="-4.4" y="-4.8" width="45.6" height="45.6"/> </defs> <clipPath id="SVGID_6_"> <use xlink:href="#SVGID_5_" style="overflow:visible;"/> </clipPath> <path class="st5" d="M32.2,9.1c-1.3-2.3-3.2-4.2-5.5-5.5c-2.3-1.4-4.9-2.1-7.6-2v15.2h15.2C34.3,14.1,33.6,11.4,32.2,9.1L32.2,9.1 z M31,30.1c2.9-2.9,4.5-6.7,4.5-10.8H20.3L31,30.1z M16.5,19.1V4c-2.7,0-5.3,0.7-7.6,2c-2.3,1.3-4.2,3.2-5.6,5.5 c-2.7,4.7-2.7,10.5,0,15.2c1.3,2.3,3.3,4.2,5.6,5.6c4.1,2.4,9.1,2.7,13.5,0.9c1.8-0.8,3.5-1.9,4.9-3.3L16.5,19.1z"/> </g> </g> <g id="scatter" class="st0"> <path class="st2" d="M32.8,18.7c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C32,16.8,32.8,17.6,32.8,18.7z M14,29.6c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C13.1,27.6,14,28.5,14,29.6z M19.2,29.6 c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9C18.3,27.6,19.2,28.5,19.2,29.6z M21.2,23.8 c0,1.1-0.9,1.9-1.9,1.9s-1.9-0.8-1.9-1.9c0-1.1,0.9-1.9,1.9-1.9S21.2,22.8,21.2,23.8z M26.3,22.5c0,1.1-0.9,1.9-1.9,1.9 c-1.1,0-1.9-0.8-1.9-1.9s0.9-1.9,1.9-1.9C25.4,20.6,26.3,21.5,26.3,22.5z M28.3,16.8c0,1.1-0.9,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9 c0-1.1,0.9-1.9,1.9-1.9S28.3,15.7,28.3,16.8z M31.5,11c-1.1,0-1.9,0.8-1.9,1.9c0,1.1,0.9,1.9,1.9,1.9c1.1,0,1.9-0.8,1.9-1.9 C33.5,11.9,32.6,11,31.5,11z M5.6,18.1c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9S5.6,19.1,5.6,18.1z M24.4,7.2 c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C25.3,9.1,24.4,8.2,24.4,7.2z M19.2,7.2c0-1.1,0.9-1.9,1.9-1.9 c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9C20.1,9.1,19.2,8.2,19.2,7.2z M17.3,12.9c0-1.1,0.9-1.9,1.9-1.9s1.9,0.8,1.9,1.9 c0,1.1-0.9,1.9-1.9,1.9S17.3,14,17.3,12.9z M12.1,14.2c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9c0,1.1-0.9,1.9-1.9,1.9 S12.1,15.3,12.1,14.2z M10.1,20c0-1.1,0.9-1.9,1.9-1.9S14,18.9,14,20s-0.9,1.9-1.9,1.9C11,21.9,10.1,21,10.1,20z M6.9,25.7 c1.1,0,1.9-0.8,1.9-1.9c0-1.1-0.9-1.9-1.9-1.9s-1.9,0.8-1.9,1.9C4.9,24.9,5.8,25.7,6.9,25.7z M35.2,5.1l-0.4-0.5L5.1,30.2l0.4,0.5 L35.2,5.1z M35.5,35.8H0.1V1.7h1.9V34h33.4V35.8z"/> </g> <g id="polar" class="st0"> <polygon class="st6" points="26.2,4 9.7,4 1.4,18.4 9.7,32.8 26.2,32.8 34.5,18.4 "/> <polygon class="st6" points="23.7,8.3 12.1,8.3 6.3,18.3 12.1,28.4 23.7,28.4 29.5,18.3 "/> <line class="st6" x1="9.7" y1="4" x2="26.2" y2="32.8"/> <line class="st6" x1="26.2" y1="4" x2="9.7" y2="32.8"/> <line class="st6" x1="1.4" y1="18.4" x2="34.5" y2="18.4"/> </g> <g id="stock"> <path class="st7" d="M33.5,9.7c0-0.3-0.2-0.5-0.5-0.5h0h-7.4c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.3,0.2,0.4l2.1,2.1l-7.9,7.9l-4-4 c-0.2-0.2-0.5-0.2-0.8,0l0,0l-9.9,9.9L8,29.3l7.1-7.1l4,4c0.2,0.2,0.5,0.2,0.8,0l0,0l10.8-10.8l2.1,2.1c0.2,0.2,0.5,0.2,0.8,0 c0.1-0.1,0.2-0.2,0.2-0.4V9.7L33.5,9.7z M35.3,33.2H2.8V1.4H0.2v34.4h35.1V33.2z"/> </g> <g id="combo" class="st0"> <g class="st3"> <defs> <rect id="SVGID_7_" x="-2.6" y="-6" width="50.2" height="50.2"/> </defs> <clipPath id="SVGID_8_"> <use xlink:href="#SVGID_7_" style="overflow:visible;"/> </clipPath> <path class="st8" d="M29.4,6.3v25.1H35V6.3H29.4z M21,14.7v16.8h5.6V14.7H21z M35.6,33.1H3V1.5H0.2v34.5h35.4L35.6,33.1L35.6,33.1 z M12.7,9.1v22.3h5.6V9.1H12.7L12.7,9.1z M4.3,20.3v11.2h5.6V20.3H4.3z"/> </g> <polyline class="st9" points="6.3,26 15.3,16.4 23.8,26 32.3,13.3 "/> <polyline class="st10" points="6.9,25.3 15.3,16.4 23.8,26 31.8,14 "/> </g> <g id="area" class="st0"> <g class="st3"> <path class="st7" d="M23,18.9L12.8,8.7L4.9,18.9v10.2h29.5l-4.5-15.9L23,18.9z M35.3,33.7l-32.9,0V1.8L0,1.8v34h35.3L35.3,33.7z" /> </g> </g> <g id="Layer_11" class="st0"> <path class="st2" d="M5.5,19.1H0.9c0.7,8.2,7.3,14.7,15.6,15.4v-4.6C10.8,29.3,6.2,24.8,5.5,19.1z M30.3,19.1 c-0.6,5.7-5.2,10.2-11,10.8v4.6c8.3-0.7,15-7.2,15.6-15.4L30.3,19.1L30.3,19.1z M0.9,16.4h4.6c0.6-5.7,5.2-10.2,11-10.8V1 C8.2,1.6,1.6,8.2,0.9,16.4z M19.3,1v4.6c5.8,0.6,10.4,5.1,11,10.8H35C34.3,8.2,27.7,1.6,19.3,1z"/> </g> </svg> '}},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;i<e.length;i++)e[i]===e[i].toUpperCase()&&(e[i+1]&&e[i+1]===e[i+1].toUpperCase()||e[i-1]&&e[i-1]===e[i-1].toUpperCase()||(t+=" ")),t+=e[i];return t[0].toUpperCase()+t.substr(1)},clamp:function(e,t,i){return i<e?e:i>t?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<o.length&&(o=o[i]))}),n):n},isEmptyObjectArray:function(e){return highed.isObj(e[0])&&e.some(function(e){return 0===Object.keys(e).length})},isObj:function(e){return e&&e.constructor.toString().indexOf("Object")>-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;r<e.length;r++)if(i=e[r],n=e[r+1],d=e[r-1],'"'===i)if(a){if('"'!==d&&'"'!==n){for(;" "===n;)n=e[++r];if(h[n])return l[n]++,!0;a=!1}}else a=!0;else h[i]?isNaN(Date.parse(s))?!o(s)&&s.length&&(s="",l[i]++):(s="",l[i]++):s+=i}),a.delimiter=";",l[","]>l[";"]&&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;c<e.length;c++)n=e[c],l=e[c+1],h=e[c-1],'"'===n?r?i():r=!1:r?g+=n:n===a.delimiter?i():g+=n,c===e.length-1&&i();d.push(s)}),d},removeNulls:function(e){const t=[];return e.forEach(function(e){var i=[],o=!1;e.forEach(function(e){e&&(o=!0),!highed.isNum(e)&&highed.isStr(e)&&(e=e.replace(/\"/g,'"')),highed.isNum(e)&&(e=parseFloat(e)),highed.isStr(e)&&NaN!==Date.parse(e),i.push(e)}),o&&t.push(i)}),t}};!function(){function e(){a||(document.body?(a=!0,d.forEach(function(e){e()})):window.setTimeout(e,100))}function t(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0);
}(navigator.userAgent||navigator.vendor||window.opera),e}function i(){var e=navigator.userAgent.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)}var o=["error","warn","notice","verbose"],n=0,d=[],a=!1,h={},l=!1,s=!1,r={codeMirrorTheme:"neo",helpURL:"https://www.highcharts.com/products/highcharts-editor",defaultLanguage:"en",includeCDNInExport:!0,stickyChartProperties:{},includeHighcharts:!0,cloudAPIURL:"https://cloud-api.highcharts.com/",helpImgPath:"help/",thumbnailURL:"https://cloud.highcharts.com/static/thumbnails/",autoIncludeDependencies:!0};e(),highed.exposeOption=function(e){},highed.option=function(e,t){if(highed.isBasic(e)){if(r[e])return"undefined"!=typeof t&&(r[e]=t),r[e]}else highed.merge(r,e);return!1},highed.options=function(e){Object.keys(e||{}).forEach(function(t){highed.option(t,e[t])})},highed.serializeEditorOptions=function(){return highed.merge({},r)},highed.ready=function(e){highed.isFn(e)&&(a?e():d.push(e))},highed.log=function(e){var t=Array.prototype.slice.call(arguments);t.splice(0,1),e<=n&&console.log.apply(void 0,[o[e-1]+":"].concat(t))},highed.setLogLevel=function(e){e<=o.length&&(n=e)},highed.include=function(e,t,i){function o(){return n<e.length-1&&highed.include(e[++n],o),highed.isFn(t)&&t()}var n;return highed.isStr(e)?highed.isArr(e)?(n=-1,o()):h[e]?(highed.log(3,"script already included, skipping:",e),t()):(highed.log(3,"including script",e),h[e]=!0,i||e.lastIndexOf(".css")===e.length-4?(n=document.createElement("link"),n.rel="stylesheet",n.type="text/css",n.href=e,n.onload=t):(n=document.createElement("script"),n.src=e,n.onload=t),void document.head.appendChild(n)):highed.isFn(t)&&t()},highed.getLetterIndex=function(e){return e.charCodeAt()-65},highed.onPhone=function(){return l},highed.onTablet=function(){return s},l=t(),s=i(),highed.ready(function(){return!!r.autoIncludeDependencies&&(highed.include("https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"),void highed.include("https://fonts.googleapis.com/css?family=Roboto:400,300,100,700|Source Sans:400,300,100",!1,!0))})}(),function(){var e=highed.option("defaultLanguage"),t={};highed.getLocalizedStr=function(i){if(t[e]){if(t[e][i])return t[e][i]}else if(t.en[i])return t.en[i];return"bad localized string: "+i},highed.L=highed.getLocalizedStr,highed.installLanguage=function(e){e&&e.language&&e.entries&&(t[e.language]=e.entries)},highed.installLanguageFromURL=function(e,t){highed.ajax({url:e,success:function(e){if(e)return highed.installLanguage(e)?t&&t(!1):t&&t(!0)},error:function(e){return t&&t(e)}})},highed.setLang=function(i){return!!t[i]&&(e=i,!0)}}(),highed.installLanguage({language:"en",entries:{confirmNewChart:"Are you sure you want to abandon the current chart and start over?",previewChart:"Preview Chart",newChart:"New Chart",saveProject:"Save Project",loadProject:"Load Project",exportPNG:"Export as PNG",exportJPEG:"Export as JPEG",exportSVG:"Export as SVG",exportPDF:"Export as PDF",loadCloud:"Load From Cloud",saveCloud:"Save To Cloud",help:"Help",licenseInfo:"License Information",stepDone:"Done",stepStart:"Start",stepImport:"Import",stepTemplates:"Templates",stepCustomize:"Customize",stepExport:"Export",stepData:"Data",doneCaption:"Close & Generate Chart",dgDeleteRow:"Really delete the selected rows?",dgWithSelected:"With Selection:",dgImportBtn:"IMPORT",dgExportBtn:"EXPORT DATA",dgNewBtn:"Clear",dgAddRow:"ADD ROW",dgDataImported:"Data imported",dgDataImporting:"Importing data",dgNewCol:"New Column",dgSortAsc:"Sort Ascending",dgSortDec:"Sort Descending",dgSortAscMonth:"Sort as Month Names Ascending",dgSortDecMonth:"Sort as Month Names Decending",dgDelCol:"Delete Column",dgDelColConfirm:"Really delete the column?",dgInsColBefore:"Insert Column Before",dgInsColAfter:"Insert Column After",customizeSimple:"SIMPLE",customizeAdvanced:"ADVANCED",customizeCustomCode:"CUSTOM CODE",customizePreview:"PREVIEW OPTIONS","option.cat.title":"Titles","option.cat.chart":"Chart","option.subcat.dimension":"Dimensions","option.subcat.title":"Title","option.subcat.appearance":"Appearance","option.subcat.tooltip":"Tooltip","option.subcat.credit":"Credits","option.subcat.titles":"Main titles","option.cat.general":"General","option.subcat.size":"Chart size","option.subcat.interaction":"Interaction","option.cat.appearance":"Appearance","option.subcat.fonts":"Fonts","option.subcat.titlestyle":"Title Style","option.subcat.seriescolors":"Series Colors","option.subcat.chartarea":"Chart Area","option.subcat.plotarea":"Plot Area","option.cat.axes":"Axes","option.subcat.axessetup":"Axes Setup","option.subcat.xaxis":"X Axis","option.subcat.yaxis":"Y Axis","option.cat.series":"Data Series","option.cat.labels":"Value Labels","option.subcat.labels":"Value Labels","option.cat.legend":"Legend","option.subcat.general":"General","option.subcat.placement":"Placement","option.subcat.legendappearance":"Appearance","option.cat.tooltip":"Tooltip","option.subcat.colorborder":"Color and Border","option.cat.export":"Export","option.cat.exporting":"Exporting","option.cat.localization":"Localization","option.subcat.numberformat":"Number formatting","option.subcat.exportbutton":"Exporting Menu","option.subcat.zoombutton":"Zoom button","option.cat.credits":"Credits","option.series.label":"Series Labels","option.text.series.label.enabled":"Series label","option.tooltip.series.label.enabled":"Enable or disable the series label. Series labels are placed as close to the series as possible in a natural way, seeking to avoid other series. The goal of this feature is to make the chart more easily readable, like if a human designer placed the labels in the optimal position.","option.text.series.label.style":"Series label style","options.tooltip.series.label.style":"","option.text.title.text":"Chart title","option.tooltip.title.text":"The main chart title.","option.text.subtitle.text":"Chart subtitle","option.tooltip.subtitle.text":"The chart's subtitle, normally displayed with smaller fonts below the main title.","option.text.yAxis.title.text":"Y axis title","option.tooltip.yAxis.title.text":"The Y axis title, normally displayed vertically along the Y axis.","option.text.chart.width":"Chart width","option.tooltip.chart.width":"An explicit width for the chart. By default (when <code>null</code>) 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 <code>null</code>) 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 <code>x</code>, <code>y</code> or <code>xy</code>.","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 <code>highcharts-more.js</code>.","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 <em>Data series</em> 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":'<p>Whether to invert the axes so that the x axis is vertical and y axis is horizontal. When true, the x axis is <a href="#xAxis.reversed">reversed</a> by default. If a bar series is present in the chart, it will be inverted automatically.</p>\r\n\r\n<p>Inverting the chart doesn\'t have an effect if there are no cartesian series in the chart, or if the chart is <a href="#chart.polar">polar</a>.</p>',"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 &lt;b&gt;, &lt;i&gt; 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":"<p>A format string for the axis labels. The value is available through a variable <code>{value}</code>.</p><p><b>Units</b> can be added for example like <code>{value} USD</code>.</p><p><b>Formatting</b> can be added after a colon inside the variable, for example <code>USD {value:.2f}</code> to display two decimals, or <code>{value:%Y-%m-%d}</code> 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":"<p>A format string for the axis labels. The value is available through a variable <code>{value}</code>.</p><p><b>Units</b> can be added for example like <code>{value} USD</code>.</p><p><b>Formatting</b> can be added after a colon inside the variable, for example <code>USD {value:.2f}</code> to display two decimals, or <code>{value:%Y-%m-%d}</code> 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 <code>line</code>, <code>spline</code>, <code>area</code> and <code>scatter</code> in  case it has a <code>lineWidth</code>. The value for the <code>dashStyle</code> include:\r\n\t\t    <ul>\r\n\t\t    \t<li>Solid</li>\r\n\t\t    \t<li>ShortDash</li>\r\n\t\t    \t<li>ShortDot</li>\r\n\t\t    \t<li>ShortDashDot</li>\r\n\t\t    \t<li>ShortDashDotDot</li>\r\n\t\t    \t<li>Dot</li>\r\n\t\t    \t<li>Dash</li>\r\n\t\t    \t<li>LongDash</li>\r\n\t\t    \t<li>DashDot</li>\r\n\t\t    \t<li>LongDashDot</li>\r\n\t\t    \t<li>LongDashDotDot</li>\r\n\t\t    </ul>","option.text.series.marker.enabled":"Enable point markers","option.tooltip.series.marker.enabled":"Enable or disable the point marker. If <code>null</code>, 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":'<p>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".</p>\r\n\r\n<p>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.</p>\r\n\r\n<p>Custom callbacks for symbol path generation can also be added to <code>Highcharts.SVGRenderer.prototype.symbols</code>. The callback is then used by its method name, as shown in the demo.</p>',"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":"<p>The horizontal alignment of the legend box within the chart area. Valid values are <code>left</code>, <code>center</code> and <code>right</code>.</p>\r\n\r\n<p>In the case that the legend is aligned in a corner position, the <code>layout</code> option will determine whether to place it above/below or on the side of the plot area.</p>","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":"<p>The vertical alignment of the legend box. Can be one of <code>top</code>, <code>middle</code> or  <code>bottom</code>. Vertical position can be further determined by the <code>y</code> option.</p>\r\n\r\n<p>In the case that the legend is aligned in a corner position, the <code>layout</code> option will determine whether to place it above/below or on the side of the plot area.</p>","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 <code>style</code> 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":'<p>The pixel width of the tooltip border.</p>\r\n\r\n<p>In <a href="http://www.highcharts.com/docs/chart-design-and-style/style-by-css">styled mode</a>, the stroke width is set in the <code>.highcharts-tooltip-box</code> class.</p>',"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 <em>Scaling factor</em>.","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;i<e.options.length;i++)if(e.options[i].id===t){e.selectedIndex=i;break}return e.options[e.selectedIndex].id}return!1},size:function(e){return{w:e.clientWidth,h:e.clientHeight}},pos:function(e,t){if(t){var i=e.getBoundingClientRect();return{x:i.left+(window.scrollX||0),y:i.top+(window.scrollY||0)}}return{x:e.offsetLeft,y:e.offsetTop}},get:function(e){return e&&e.appendChild?e:document.getElementById(e)||!1}},highed.events=function(){function e(o,n,d){var a=++i;return highed.isArr(n)?n.forEach(function(t){e(o,t,d)}):(t[o]=t[o]||[],t[o].push({id:a,fn:n,context:d}),function(){t[o]=t[o].filter(function(e){return e.id!==a})})}var t={},i=0;return{on:e,emit:function(e){var i=Array.prototype.slice.call(arguments);return i.splice(0,1),"undefined"!=typeof t[e]?(t[e].forEach(function(e){highed.isFn(e.fn)&&e.fn.apply(e.context,i)}),t[e].length):0}}},highed.ready(function(){var e=highed.dom.cr("input"),t=!1;e.type="file",e.accept=".csv",highed.dom.ap(document.body,e),highed.dom.style(e,{display:"none"}),highed.readLocalFile=function(i){var o=highed.merge({type:"text",multiple:!1,accept:".csv"},i);e.accept=o.accept,highed.isFn(t)&&t(),t=highed.dom.on(e,"change",function(){function i(e){var t=new FileReader;return t.onloadstart=function(e){highed.isFn(o.progress)&&o.progress(Math.round(e.loaded/e.total*100))},t.onload=function(i){var n=t.result;if("json"===o.type)try{n=JSON.parse(n)}catch(e){highed.isFn(o.error)&&o.error(e)}highed.isFn(o.success)&&o.success({filename:e.name,size:e.size,data:n})},t}for(var n=0;n<e.files.length;n++)o.type&&"text"!==o.type&&"json"!==o.type?"binary"===o.type?i(e.files[n]).readAsBinaryString(e.files[n]):"b64"===o.type&&i(e.files[n]).readAsDataURL(e.files[n]):i(e.files[n]).readAsText(e.files[n]);t(),e.value=""}),e.multiple=o.multiple,e.click()}}),highed.templates={},function(){var e={},t={};highed.templates.add=function(i,o){var n=highed.merge({title:"",description:"",constructor:"",thumbnail:"",icon:"",sampleSets:[],validator:!1,config:{}},o);return!!highed.isBasic(i)&&(e[i]=e[i]||{description:"",icon:"",sampleData:[],templates:{}},!!n.title.length&&(n.popular&&(n.parent=i,t[i]=n),n.icon&&(e[i].icon=n.icon),e[i].templates[n.title]=n,highed.log(4,"[templateman] - added template",n.title),!0))},highed.templates.each=function(t){highed.isFn(t)&&Object.keys(e).forEach(function(i){Object.keys(e[i].templates).forEach(function(o){t(i,e[i].templates[o])})})},highed.templates.eachInCategory=function(t,i){highed.isFn(i)&&e[t]&&Object.keys(e[t].templates).forEach(function(o){i(e[t].templates[o])})},highed.templates.getAllInCat=function(t){return!!e[t]&&e[t].templates},highed.templates.getCatInfo=function(t){return highed.merge({id:t},e[t]||{})},highed.templates.getMostPopular=function(){return t},highed.templates.getCatArray=function(){return Object.keys(e).map(function(t){return{id:t,title:t,icon:e[t].icon}})},highed.templates.addCategory=function(t,i){e[t]=e[t]||{templates:{}},highed.merge(e[t],i,!1,{templates:1})},highed.templates.eachCategory=function(t){highed.isFn(t)&&Object.keys(e).forEach(function(i){t(i,e[i])})},highed.templates.flush=function(){e={}},highed.templates.addType=function(t,i){"undefined"==typeof e&&(e={}),"undefined"==typeof e[t]&&(e[t]={title:i,templates:{}})},highed.templates.addMultiple=function(e){"undefined"==typeof e&&(e={}),highed.isArr(e)&&e.forEach(function(e){e.type&&e.template&&highed.installTemplate(e.type,e.template)})}}(),function(){function e(e,i,o,n){var d=o.split("."),a=e;d.some(function(e){return a.subtree[e]?void(a=a.subtree[e]):(a=!1,!0)}),i.meta.extends=i.meta.extends.replace(o,""),a&&(t(e,a),n&&0===n.indexOf("series")?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}):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",'<i class="fa fa-times" aria-hidden="true"></i>');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<e.length;s++)"{"===e[s]?(a++,l=!0):"}"===e[s]?(a--,0===a&&(l=!1)):l&&(d+=e[s]);e=new Function(t,d)}catch(e){return void console.log(e)}h(o,e)}function l(){g&&document.body&&(r.parentNode?g.refresh():setTimeout(l,50))}var r=highed.dom.cr("div","highed-field-container highed-field-code-container"),c=highed.dom.cr("textarea","highed-field-code","",d),g=!1;s(i.defaults||e||t,function(t){e=t,n(t),a(t)});return highed.dom.ap(r,c),"undefined"!=typeof window.CodeMirror?(g=CodeMirror.fromTextArea(c,{lineNumbers:!0,mode:"javascript",theme:highed.option("codeMirrorTheme")}),g.on("change",function(){a(g.getValue())}),l()):highed.dom.on(c,"change",function(){a(c.value)}),n(e||t||i.defaults||function(){}),r},array:function(){function e(e,n){function d(e){e&&(l[p].value=e,a())}function a(){highed.isFn(o)&&o(Object.keys(l).map(function(e){return l[e].value}))}var h,g=highed.dom.cr("span","highed-icon fa fa-trash highed-trash-button"),u=highed.dom.cr("div","color-row"),p=++s;highed.isArr(e)&&(e=e[p]),l[p]={id:p,row:u,value:e},h=r[i.subType]?r[i.subType](e||t[p]||i.defaults,d):r.string(e,d),highed.dom.ap(c,highed.dom.ap(u,highed.dom.ap(highed.dom.cr("div"),h),highed.dom.ap(highed.dom.cr("div"),g))),highed.dom.on(g,"click",function(e){return delete l[p],c.removeChild(u),a(),e.cancelBubble=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1}),n||d()}var n=highed.dom.cr("div","","",d),a=highed.dom.cr("span","highed-field-array-add fa fa-plus",""),h=highed.dom.cr("div","highed-inline-blocks"),l={},s=0,c=highed.dom.cr("table","highed-field-table");if(highed.isStr(t))try{t=JSON.parse(t)}catch(e){return n}return!t||highed.isArr(t)||highed.isBasic(t)||(t=Object.keys(t).map(function(e){return t[e]})),highed.dom.ap(n,c),highed.dom.on(a,"click",function(){e()}),highed.isArr(t)&&t.forEach(function(t){e(t,!0)}),highed.dom.ap(n,h,a),n}},c=highed.dom.cr("span","highed-icon highed-field-help fa fa-question-circle"),g=highed.dom.cr("div","highed-customizer-table-help"),u=highed.dom.cr("div","highed-field-table-widget-column"),p=highed.dom.cr("div"),m=highed.dom.cr("span","highed-customize-type");highed.isNull(t)&&(t=""),"cssobject"!==e&&"highcharts.cssobject"!==e||(e="object"),e&&e.indexOf("|")>=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='<i class="fa fa-angle-right" aria-hidden="true"></i>',highed.dom.style(y.nodeChildren,{display:"none"})),C={},r.innerHTML='<i class="fa fa-angle-down" aria-hidden="true"></i>',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='<span class="icon fa fa-th-list"></span>'+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",'<i class="fa fa-angle-right" aria-hidden="true"></i>'),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","&nbsp;");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.number<f&&e[m.number].activate()}function a(){var e=v.filter(function(e){return e.visible});m&&m.number>1&&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?'<i class="fa fa-'+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&&e<C.length&&C[e].select(t)}function p(){return C}function m(e){C.splice(e,1)}function f(e){C=C.slice(0,e)}function v(){return k}var b=highed.events(),y=highed.dom.cr("div","highed-dropdown "+i),x=highed.dom.cr("div","highed-dropdown-body"),w=highed.dom.cr("div","highed-dropdown-arrow fa fa-caret-down"),C=[],k=!1,z=!1,S=!1;return t&&(t=highed.dom.get(t),highed.dom.ap(t,y)),highed.dom.ap(y,x,w),highed.dom.on(y,"click",h),{container:y,selectById:c,selectByIndex:u,selectAll:p,updateByIndex:g,deleteByIndex:m,sliceList:f,addItems:r,getSelectedItem:v,addItem:l,clear:s,on:b.on}}}(),highed.Movable=function(e,t,i,o,n,d){var a=highed.events(),h=!1;return t=(t||"XY").toUpperCase(),e=highed.dom.get(e),e&&highed.dom.on(e,["mousedown","touchstart"],function(l){h=!0;var s=highed.dom.pos(e),r=highed.dom.size(o||e.parentNode),c=highed.dom.size(e),g=s.x,u=s.y,p=0,m=0,f=highed.dom.on(document.body,["mousemove","touchmove"],function(o){return"X"!==t&&"XY"!==t||(g=s.x+((o.clientX||o.touches[0].clientX)-p),i&&(g<0&&(g=0),g>r.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&&g<n.x&&(g=n.x),n&&u<n.y&&(u=n.y),highed.dom.style(e,{left:g-(d?c.w:0)+"px",top:u+"px"}),a.emit("Moving",g,u),o.cancelBubble=!0,o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation(),!1}),v=highed.dom.on(document.body,["mouseup","touchend"],function(e){return v(),f(),h=!1,document.body.className=document.body.className.replace(" highed-nosel",""),a.emit("EndMove",g,u),e.cancelBubble=!0,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1});return document.body.className+=" highed-nosel",p=l.clientX||l.touches[0].clientX,m=l.clientY||l.touches[0].clientY,a.emit("StartMove",s.x,s.y),l.cancelBubble=!0,l.preventDefault(),l.stopPropagation(),l.stopImmediatePropagation(),!1}),{on:a.on}},highed.Slider=function(e,t){function i(){c.innerHTML=l,"null"!==l&&null!==l||(c.innerHTML="auto"),"undefined"!==l&&"undefined"!=typeof l||(c.innerHTML="auto")}function o(){var e=0,t=highed.dom.size(g),i=highed.dom.size(r);e=highed.isNum(l)&&l?(l-a.min)/(a.max-a.min)*(t.w-i.w):0,highed.dom.style(r,{left:e+"px"})}function n(){i(),s.parentNode?o():window.setTimeout(n,10)}function d(e){l=highed.clamp(a.min,a.max,e),c.innerHTML=l,o()}var a=highed.merge({max:100,min:1,step:1,resetTo:0,value:0},t),h=highed.events(),l=a.value||a.resetTo,s=highed.dom.cr("div","highed-slider"),r=highed.dom.cr("div","highed-slider-indicator"),c=highed.dom.cr("div","highed-slider-text-indicator"),g=highed.dom.cr("div","highed-slider-background"),u=highed.dom.cr("div","highed-slider-reset fa fa-undo"),p=highed.dom.cr("input","highed-slider-input"),m=highed.Movable(r,"x",!0,g);return p.type="number",p.value=l,p.max=a.max,p.min=0,m.on("Moving",function(e){var t=highed.dom.size(g),i=highed.dom.size(r);l=a.min+Math.round(e/(t.w-i.w)*(a.max-a.min)),p.value=l,c.innerHTML=l,highed.onPhone()||h.emit("Change",l)}),highed.dom.on(p,"keyup",function(e){e.target.value&&!isNaN(e.target.value)&&(l=parseInt(e.target.value)>a.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(){t<e.columns.length-1?e.columns[t+1].focus():e.number<yt.length-1&&yt[e.number+1].columns[0].focus()}function g(){e.number>0&&yt[e.number-1].columns.length>t&&yt[e.number-1].columns[t].focus()}function u(){e.number<yt.length-1&&yt[e.number+1].columns.length>t&&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.rowNumber<e[1]||i.colNumber<e[0]?(i.deselectCopyCell(),!1):i});var i,o,n,d;for(e[0]<=t[0]?(i=e[0],d=t):e[0]>t[0]&&(i=t[0],d=e),o=e[1]>t[1]?t:e,n=e[1]<t[1]?t:e;i<=d[0];){for(var a=o[1];a<=n[1];a++)yt[a]&&yt[a].columns[i].selectCellToCopy();i++}}function c(e,t){if(0!==e.length&&0!==t.length&&null!==e[0]&&null!==e[1]){Ft=Ft.filter(function(i){return i.rowNumber>t[1]||i.colNumber>t[0]||i.rowNumber<e[1]||i.colNumber<e[0]?(i.deselectCell(),!1):i});var i,o,n,d;for(e[0]<=t[0]?(i=e[0],d=t):e[0]>t[0]&&(i=t[0],d=e),o=e[1]>t[1]?t:e,n=e[1]<t[1]?t:e;i<=d[0];){for(var a=o[1];a<=n[1];a++)yt[a]&&yt[a].columns[i].selectCell();i++}}}function g(e){function t(e,t){u.push(l(y,u.length,e,t))}function i(e){var t=l(y,u.length);u.splice(e,0,t)}function o(){var e=Le.querySelector(".highed-dtable-body-selected-row");e&&(e.className=""),p.className="highed-dtable-body-selected-row",zt=y.rowIndex}function n(){return v}function d(e){f.checked=v=e}function a(){b&&(Fe.removeChild(m),Le.removeChild(p),p.innerHTML=""),yt=yt.filter(function(e){return e!==y}),yt.length<2&&w()}function h(e){b=!0,y.number=e,f.innerHTML=e+1,f.value=e,m.value=e,highed.dom.ap(Le,p),highed.dom.ap(Fe,highed.dom.ap(m,f))}function r(){p.innerHTML="",u.forEach(function(e,t){e.updateColNumber(t),e.addToDOM(t)})}function g(e){e>=0&&e<u.length&&(u[e].destroy(),u.splice(e,1))}var u=[],p=highed.dom.cr("tr"),m=highed.dom.cr("div","highed-dtable-left-bar-row",""),f=highed.dom.cr("div","highed-dtable-row"),v=!1,b=!1,y={};return highed.dom.on(m,"mouseover",function(e){_t&&(Mt[1]=f.value,c(At,Mt))}),highed.dom.on(m,"mousedown",function(e){s(),At[0]=0,Mt[0]=yt[0].columns.length-1,At[1]=e.target.value,Mt[1]=e.target.value,c(At,Mt)}),highed.dom.on(f,"change",function(){v=f.checked}),yt.length<500?h(yt.length):500===yt.length&&highed.dom.style(De,{display:"block"}),y={destroy:a,select:o,columns:u,number:yt.length,addCol:t,isChecked:n,check:d,node:p,addToDOM:h,insertCol:i,rebuildColumns:r,delCol:g,rowIndex:yt.length},e||yt.push(y),M(),y}function u(){yt.forEach(function(e,t){yt.length<500&&e.addToDOM(t),e.rowIndex=t}),d()}function p(){yt.forEach(function(e){e.rebuildColumns()})}function m(e){e>0&&e<yt.length&&(yt.splice(e-0,0,S(!0,!0)),u())}function f(e){e>=0&&e<yt.length&&(yt.splice(e+1,0,S(!0,!0)),u())}function v(){z(),Ct=!0,setTimeout(function(){ke.emit("InitLoaded")},10);for(var e=0;e<Gt;e++){g(!1,St)}Tt="A";for(var t=0;t<Bt;t++)x("Column "+(t+1));highed.dom.ap(Ve,highed.dom.cr("col")),M(),Ct=!1}function b(){Ve.innerHTML="",Pe.innerHTML="",He.innerHTML="";var e="A";xt.forEach(function(t,i){t.colNumber=i,t.setLetter(e),e=y(e),t.addToDOM()}),p(),highed.dom.ap(Ve,highed.dom.cr("col")),M()}function y(e){if("Z"===e||"z"===e)return String.fromCharCode(e.charCodeAt()-25)+String.fromCharCode(e.charCodeAt()-25);var t=e.slice(-1),i=e.slice(0,-1);return"Z"===t||"z"===t?y(i)+String.fromCharCode(t.charCodeAt()-25):i+String.fromCharCode(t.charCodeAt()+1)}function x(e,t){function i(e,t,i,o){var n=e.splice(t,i),d=[o,0].concat(n);Array.prototype.splice.apply(e,d)}function o(){if(null!==moveToColumn){ke.emit("ColumnMoving");const e=It[0],t=(It[0]<It[1]?It[1]-It[0]:It[0]-It[1])+1,o=It[0]<It[1]?It[1]-It[0]:It[0]-It[1];i(xt,e,t,moveToColumn<It[0]?moveToColumn+1:moveToColumn-o),yt.forEach(function(n){i(n.columns,e,t,moveToColumn<It[0]?moveToColumn+1:moveToColumn-o)}),yt.length>0&&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]<It[1]?It[1]-It[0]:It[0]-It[1])+1)+"px"})),h(g.value),highed.dom.style(Te,{left:e.clientX-highed.dom.size(Te).w/2+"px"})):(Mt[0]=g.value,It[1]=g.value,c(At,Mt)))}),highed.dom.on(g,"mousedown",function(e){s(),It.length>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:a<d?-1:a>d?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<xt.length&&(yt.forEach(function(t){t.delCol(e)}),xt[e].destroy(),b(),d())}function M(){var t=highed.dom.size(e),i=highed.dom.size(Ie);highed.dom.style(Se,{height:t.h-i.h-55-17+"px"}),highed.dom.style([ze,Je,We],{height:t.h-i.h-22+"px"}),highed.dom.style(Ae,{width:t.w+"px"})}function L(e,t){function i(t){var i=t&&t.headerTitle.innerHTML.length?t.headerTitle.innerHTML:null;e&&(i='"'+i+'"'),o.push(i)}var o=[];return xt.reduce(function(e,o,n){t&&!D(t,n)||i(o)},[]),o}function D(e,t){return(e||[]).some(function(e){return e.dataColumns.indexOf(t)>-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.length<Gt){var i=Gt-e.length,o=e[0].length>Bt?e[0].length:Bt;e.forEach(function(e){if(e.length<Bt){const t=Bt-e.length;for(var i=0;i<t;i++)e.push(null)}});for(var n=0;n<i;n++)e.push(Array(o).fill(null,0))}e.forEach(function(e,t){var i;t&&(i=g()),Tt="A",e.forEach(function(e){0===t?x(e):i.addCol(e,Tt),Tt=y(Tt)})}),highed.dom.ap(Ve,highed.dom.cr("col")),M(),highed.dom.style(Re,{opacity:0}),highed.dom.style(Ee,{opacity:1}),highed.isFn(t)&&t()},10)}function H(e){ut=!0,highed.dom.style(Je,{display:"none"}),highed.dom.style(ze,{display:"none"}),highed.dom.style(We,{display:"block"}),Xe.value=e.columnsURL||e.rowsURL||e.csvURL,Ke.value=e.dataRefreshRate||"",Ze.selectById(e.columnsURL?"columnsURL":e.rowsURL?"rowsURL":"csvURL")}function P(e,t,i){ut=!0,ke.emit("LoadLiveData",{url:e,interval:t,type:i})}function O(e,t,i,o){var n;if(gt&&(gt=!1,ut=!1,highed.dom.style(Je,{display:"none"}),highed.dom.style(We,{display:"none"}),highed.dom.style(ze,{display:"block"})),vt.hide(),Ct=!0,mt=e.csv,e&&e.csv){if(n=parseCSV(e.csv,e.delimiter),i&&n[0].length<Bt&&ke.emit("AssignDataForFileUpload",n[0].length),n[0]&&n.length<Gt){var a=Gt-n.length,h=n[0].length>Bt?n[0].length:Bt;n.forEach(function(e){if(e.length<Bt){const t=Bt-e.length;for(var i=0;i<t;i++)e.push(null)}});for(var l=0;l<a;l++)n.push(Array(h).fill(null,0))}I(n,function(){i&&n[0].length>Bt&&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;t<i;t++)for(n=e[t].length,o=0;o<n;o++)d[o]||(d[o]=[]),d[o][t]=e[t][o];return d}function K(){return mt}function Z(){highed.emit("UIAction","FlushDataConfirm"),v(),d(),yt.length>0&&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<d.items.length;n++)o=d.items[n],"file"===o.kind&&i(o.getAsFile(),function(){highed.snackBar("File uploaded"),e()});else for(n=0;n<d.files.length;n++)o=d.files[n],i(o,function(){highed.snackBar("File uploaded"),e()})},highed.dom.ap(o,highed.dom.ap(highed.dom.cr("div","highed-table-dropzone"),highed.dom.cr("div","highed-table-dropzone-title","Drop CSV files here"),highed.dom.cr("div","highed-table-dropzone-subtitle","or"),highed.dom.ap(highed.dom.cr("div","highed-table-dropzone-button"),n),highed.dom.cr("div","highed-table-dropzone-subtitle highed-table-dropzone-message","You can also:"),d)),o}var xe,we,Ce=highed.merge({checkable:!0,importer:{}},t),ke=highed.events(),ze=highed.dom.cr("div","highed-dtable-container"),Se=highed.dom.cr("div","highed-dtable-table-frame highed-scrollbar"),Te=highed.dom.cr("div","highed-dtable-movement-bar",""),Ae=highed.dom.cr("table","highed-dtable-table"),Me=highed.dom.cr("thead","highed-dtable-head"),Le=highed.dom.cr("tbody","highed-dtable-body"),De=highed.dom.cr("div","highed-dtable-table-tail","Only the first 500 rows are shown."),Ve=highed.dom.cr("colgroup"),Fe=highed.dom.cr("div","highed-dtable-left-bar"),Ee=highed.dom.cr("div","highed-dtable-hide-cells"),Ie=highed.dom.cr("div","highed-dtable-top-bar"),He=highed.dom.cr("div","highed-dtable-top-letter-bar"),Pe=highed.dom.cr("div","highed-dtable-top-column-bar"),Oe=(highed.dom.cr("div","highed-dtable-top-left-panel"),highed.dom.cr("textarea","highed-dtable-input")),Be=highed.dom.cr("div","highed-dtable-corner-piece"),Ge=highed.OverlayModal(!1,{showOnInit:!1,width:300,height:350}),_e=highed.dom.cr("div","highed-dtable-weird-data highed-box-size highed-errobar-body"),Ne=highed.dom.cr("button","highed-ok-button","No, this looks right"),je=highed.dom.cr("button","highed-ok-button","Yeah, this looks wrong"),Re=highed.dom.cr("div","highed-dtable-load-indicator",'<i class="fa fa-spinner fa-spin fa-1x fa-fw"></i> 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",'<i class="fa fa-refresh" aria-hidden="true"></i> <span class="highed-tooltip-text highed-template-tooltip-text-left">Switch Rows/Columns</span>'),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<n.items.length;o++)t=n.items[o],"file"===t.kind&&i(t.getAsFile());else for(o=0;o<n.files.length;o++)t=n.files[o],i(t)},Se.ondragover=function(e){e.preventDefault()},bt.on("ExportComma",function(e){highed.emit("UIAction","ExportComma"),highed.download("data.csv",E(","),"application/csv"),ke.emit("EnableAssignDataPanel"),vt.hide()}),bt.on("ExportSemiColon",function(e){highed.emit("UIAction","ExportSemiColon"),highed.download("data.csv",E(";"),"application/csv"),ke.emit("EnableAssignDataPanel"),vt.hide()}),bt.on("ImportCSV",function(e,t){highed.emit("UIAction","ImportCSV"),ke.emit("EnableAssignDataPanel"),O(e,null,!0,t)}),bt.on("ImportGoogleSpreadsheet",function(){highed.emit("UIAction","BtnGoogleSheet"),ke.emit("DisableAssignDataPanel"),W()}),bt.on("ImportLiveData",function(e){ut=!0,ke.emit("DisableAssignDataPanel"),U()}),bt.on("ImportChartSettings",function(e,t){ke.emit("ImportChartSettings",e,t),vt.hide()}),highed.dom.on(ht,"click",function(){q()}),highed.dom.on(at,"click",function(){Y(),ke.emit("CancelDataInput"),ke.emit("EnableAssignDataPanel")}),highed.dom.on(rt,"click",function(){J(),ke.emit("CancelDataInput"),ke.emit("EnableAssignDataPanel")}),highed.dom.on(st,"click",function(){P(Xe.value,Ke.value,ct||"columnsURL")}),highed.dom.on(lt,"click",function(){var e=parseInt(tt.value);ke.emit("LoadGSheet",{googleSpreadsheetKey:$e.value,googleSpreadsheetWorksheet:et.value||!1,dataRefreshRate:!isNaN(e)&&0!==e&&e,enablePolling:!isNaN(e)&&0!==e,startRow:it.value||0,endRow:ot.value||Number.MAX_VALUE,startColumn:nt.value||0,endColumn:dt.value||Number.MAX_VALUE})}),highed.dom.on(Ne,"click",n),highed.dom.on(je,"click",function(){var e=highed.dom.cr("div"),t=highed.DropDown(e),i=highed.dom.cr("button","highed-ok-button","Rerun Import"),o=highed.dom.cr("button","highed-ok-button","Nevermind"),d=void 0;Ge.body.innerHTML="",Ge.show(),t.addItems([{title:"Tab",id:"tab",select:function(){d="\t"}},{title:"Comma",id:"comma",select:function(){d=","}},{title:"Semicolon",id:"semicolon",select:function(){d=";"}}]),t.selectByIndex(0),highed.dom.ap(Ge.body,highed.dom.cr("h3","","Data Import Fixer"),highed.dom.cr("div","highed-dtable-weird-data-body",["We could not properly determine how your columns are separated.","<br/><br/>","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.<br/><br/>"].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.<br/><span class="highed-dtable-drop-zone-small">You can also paste CSV or Excel data into any cell</span>',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.<br/><br/>","This means that the published chart always loads the latest version of the sheet.<br/><br/>","For more information on how to set up your spreadsheet, visit",'<a target="_blank" href="https://cloud.highcharts.com/docs/#/google-spread-sheet-setting">the documentation</a>.'].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.<br/><br/>","This means that the published chart always loads the latest version of your data.<br/><br/>"].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<d;a++)n.push(a),j.setAssignDataFields(e,B.getColumnLength(),null,a,!0,a+1)}else n=[j.getActiveSerie()];i.loadTemplateForSerie(e,n);const h=B.toCSV(";",!0,j.getAllMergedLabelAndData());i.data.csv({csv:h},null,!1,function(){w(j.getAllOptions()),C(!0),o&&o()})}else i.loadTemplate(e)}function m(){return null}function f(e){F.value=e}function v(){B.showDataTableError()}function b(){B.hideDataTableError()}function y(){return F.value}function x(){var e=i.options.getCustomized();e.data&&e.data.seriesMapping&&(e.data.seriesMapping=null,i.options.setAll(e))}function w(e){for(var t=[],o=i.options.getCustomized(),n=B.getDataFieldsUsed(),d=!1,a=(e.data,e.length),h=0;h<a;h++){var l={};Object.keys(e[h]).forEach(function(t){const i=e[h][t];""!==i.value&&(i.isData?n.indexOf(i.rawValue[0])>-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;o<B.getColumnLength();o++)t.push(o);B.removeAllCellsHighlight(null,t)}j.checkToggleCells(),j.getFieldsToHighlight(B.highlightCells,!0,!0),i.data.setAssignDataFields(j.getAssignDataFields())}function k(e,t){e.settings&&e.settings.dataProvider&&e.settings.dataProvider.csv&&B.loadCSV({csv:e.settings.dataProvider.csv},null,null,function(){j.enable(),j.setAssignDataFields(e,B.getColumnLength(),!0,null,!0,!0,t),j.getFieldsToHighlight(B.highlightCells,!0),i.data.setDataTableCSV(B.toCSV(";",!0,j.getAllMergedLabelAndData()))})}function z(e,t){return B.createSimpleDataTable(e,t)}function S(){B.selectSwitchRowsColumns()}function T(e){highed.dom.style(o,{width:"28%",height:"38%"}),i.resize(),setTimeout(function(){i.resize()},200)}var A=highed.events(),M=highed.merge({defaultChartOptions:{},useHeader:!0,features:["data","templates","customize","customcode","advanced","export"],importer:{},dataGrid:{},customizer:{},toolbarIcons:[]},t),L=highed.dom.cr("div","highed-transition highed-toolbox highed-box-size"),D=highed.dom.cr("div","highed-dtable-title"),V=highed.dom.cr("div","highed-toolbox-body-chart-title"),F=highed.dom.cr("input","highed-toolbox-chart-title-input"),E=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),I=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents highed-toolbox-dtable"),H=(highed.dom.cr("div","highed-toolbox-help highed-icon fa fa-question-circle"),"highed-box-size highed-toolbox-bar-icon fa "+n.icon),P=(highed.dom.cr("div",H),highed.HelpModal(n.help||[]),highed.dom.cr("div","highed-box-size highed-fill")),O=highed.dom.cr("div","highed-toolbox-body highed-datapage-body highed-box-size highed-transition"),B=highed.DataTable(P,highed.merge({importer:M.importer},M.dataGrid)),G=highed.dom.cr("input","highed-field-input highed-add-row-input"),_=highed.dom.cr("button","highed-import-button highed-ok-button highed-add-row-btn small","Add"),N=highed.dom.ap(highed.dom.cr("div","highed-dtable-extra-options"),highed.dom.ap(highed.dom.cr("div","highed-add-row-container"),highed.dom.cr("span","highed-add-row-text highed-hide-sm","Add Rows"),G,_)),j=highed.AssignDataPanel(e,B),R=highed.dom.cr("button","highed-import-button highed-ok-button highed-sm-button","Import");return dataExportBtn=highed.dom.cr("button","highed-import-button highed-ok-button highed-hide-sm","Export Data"),dataClearBtn=highed.dom.cr("button","highed-import-button highed-ok-button highed-sm-button",highed.L("dgNewBtn")),blacklist=["candlestick","bubble","pie"],R.innerHTML+=' <span class="highed-hide-sm">Data</span>',dataClearBtn.innerHTML+=' <span class="highed-hide-sm">Data</span>',G.value=1,highed.dom.on(_,"click",function(e){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0);for(var t=0;t<G.value;t++)B.addRow();j.getFieldsToHighlight(B.highlightCells,!0)}),highed.dom.on(R,"click",function(){B.showImportModal(0)}),highed.dom.on(dataExportBtn,"click",function(){B.showImportModal(1)}),highed.dom.on(dataClearBtn,"click",function(){confirm("Start from scratch?")&&(B.clearData(),j.init())}),iconsContainer=highed.dom.cr("div","highed-toolbox-icons"),isVisible=!0,highed.dom.on(window,"resize",a(function(e){h()})),j.on("RemoveSeries",function(e){x(),i.data.deleteSeries(e);const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());i.data.csv({csv:t},null,!1,function(){var e=i.options.getCustomized(),t=j.getAllOptions();if(e&&e.series&&e.series.length<t.length){var o,n=e.series.length,d=t.length;0!=e.series.length&&(o=e.series[e.series.length-1].type),blacklist.includes(o)&&(o=null);for(var a=n;a<d;a++)i.options.addBlankSeries(a,o)}w(j.getAllOptions())})}),j.on("GoToTemplatePage",function(){A.emit("GoToTemplatePage")}),j.on("AddSeries",function(e,t){i.options.addBlankSeries(e,t)}),j.on("GetLastType",function(){var e=i.options.getCustomized(),t=e.series[e.series.length-1].type;blacklist.includes(t)&&(t=null),j.setColumnLength(B.getColumnLength()),j.addNewSerie(t)}),i.on("LoadProjectData",function(e){B.loadCSV({csv:e},!0)}),i.on("ChartChange",function(e){A.emit("ChartChangedLately",e)}),j.on("DeleteSeries",function(e){x(),i.data.deleteSerie(e);const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());i.data.csv({csv:t},null,!1,function(){w(j.getAllOptions())})}),j.on("SeriesChanged",function(e){A.emit("SeriesChanged",e)}),j.on("ToggleHideCells",function(e,t){var i=Object.keys(e).filter(function(t){if(e[t].rawValue&&e[t].rawValue.length>0)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<d;a++)n.push(a),j.setAssignDataFields(e,B.getColumnLength(),null,a,!0,a+1)}else n=[j.getActiveSerie()];o.loadTemplateForSerie(e,n);const h=B.toCSV(";",!0,j.getAllMergedLabelAndData());o.data.csv({csv:h},null,!1,function(){C(j.getAllOptions()),k(!0),i&&i()})}else o.loadTemplate(e)}function f(){return null}function v(e){F.value=e}function b(){B.showDataTableError()}function y(){B.hideDataTableError()}function x(){return F.value}function w(){var e=o.options.getCustomized();e.data&&e.data.seriesMapping&&(e.data.seriesMapping=null,o.options.setAll(e))}function C(e){for(var t=[],i=o.options.getCustomized(),n=B.getDataFieldsUsed(),d=!1,a=(e.data,e.length),h=0;h<a;h++){var l={};Object.keys(e[h]).forEach(function(t){const i=e[h][t];""!==i.value&&(i.isData?n.indexOf(i.rawValue[0])>-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;i<B.getColumnLength();i++)t.push(i);B.removeAllCellsHighlight(null,t)}j.checkToggleCells(),j.getFieldsToHighlight(B.highlightCells,!0),o.data.setAssignDataFields(j.getAssignDataFields())}function z(e,t){e.settings&&e.settings.dataProvider&&e.settings.dataProvider.csv&&B.loadCSV({csv:e.settings.dataProvider.csv},null,null,function(){j.enable(),j.setAssignDataFields(e,B.getColumnLength(),!0,null,!0,!0,t),j.getFieldsToHighlight(B.highlightCells,!0),o.data.setDataTableCSV(B.toCSV(";",!0,j.getAllMergedLabelAndData()))})}function S(e,t){return B.createSimpleDataTable(e,t)}function T(){B.selectSwitchRowsColumns()}var A=highed.events(),M=highed.merge({defaultChartOptions:{},useHeader:!0,features:["data","templates","customize","customcode","advanced","export"],importer:{},dataGrid:{},customizer:{},toolbarIcons:[]},i),L=highed.dom.cr("div","highed-transition highed-toolbox highed-simple-toolbox highed-box-size"),D=highed.dom.cr("div","highed-dtable-title"),V=highed.dom.cr("div","highed-toolbox-body-chart-title"),F=highed.dom.cr("input","highed-toolbox-chart-title-input"),E=highed.dom.cr("div","highed-box-size highed-toolbox-inner-body"),I=highed.dom.cr("div","highed-box-size highed-toolbox-user-contents highed-toolbox-dtable"),H=(highed.dom.cr("div","highed-toolbox-help highed-icon fa fa-question-circle"),"highed-box-size highed-toolbox-bar-icon fa "+d.icon),P=(highed.dom.cr("div",H),highed.HelpModal(d.help||[]),highed.dom.cr("div","highed-box-size highed-fill")),O=highed.dom.cr("div","highed-toolbox-body highed-simple-toolbox-body highed-datapage-body highed-box-size highed-transition"),B=highed.DataTable(P,highed.merge({importer:M.importer},M.dataGrid)),G=highed.dom.cr("input","highed-field-input highed-add-row-input"),_=highed.dom.cr("button","highed-import-button highed-ok-button highed-add-row-btn small","Add"),N=highed.dom.ap(highed.dom.cr("div","highed-dtable-extra-options"),highed.dom.ap(highed.dom.cr("div","highed-add-row-container"),highed.dom.cr("span","highed-add-row-text highed-hide-sm","Add Rows"),G,_)),j=highed.AssignDataPanel(t,B,"simple"),R=highed.dom.cr("button","highed-import-button highed-ok-button highed-sm-button","Import");return dataExportBtn=highed.dom.cr("button","highed-import-button highed-ok-button highed-hide-sm","Export Data"),dataClearBtn=highed.dom.cr("button","highed-import-button highed-ok-button highed-sm-button",highed.L("dgNewBtn")),blacklist=["candlestick","bubble","pie"],R.innerHTML+=' <span class="highed-hide-sm">Data</span>',dataClearBtn.innerHTML+=' <span class="highed-hide-sm">Data</span>',G.value=1,highed.dom.on(_,"click",function(e){j.getFieldsToHighlight(B.removeAllCellsHighlight,!0);for(var t=0;t<G.value;t++)B.addRow();j.getFieldsToHighlight(B.highlightCells,!0)}),highed.dom.on(R,"click",function(){B.showImportModal(0)}),highed.dom.on(dataExportBtn,"click",function(){B.showImportModal(1)}),highed.dom.on(dataClearBtn,"click",function(){confirm("Start from scratch?")&&(B.clearData(),j.init())}),iconsContainer=highed.dom.cr("div","highed-toolbox-icons"),isVisible=!0,highed.dom.on(window,"resize",h(function(e){l()})),j.on("RemoveSeries",function(e){w(),o.data.deleteSeries(e);const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());o.data.csv({csv:t},null,!1,function(){var e=o.options.getCustomized(),t=j.getAllOptions();if(e&&e.series&&e.series.length<t.length){var i,n=e.series.length,d=t.length;0!=e.series.length&&(i=e.series[e.series.length-1].type),blacklist.includes(i)&&(i=null);for(var a=n;a<d;a++)o.options.addBlankSeries(a,i)}C(j.getAllOptions())})}),j.on("GoToTemplatePage",function(){A.emit("GoToTemplatePage")}),j.on("AddSeries",function(e,t){o.options.addBlankSeries(e,t)}),j.on("GetLastType",function(){var e=o.options.getCustomized(),t=e.series[e.series.length-1];t&&(t=t.type),blacklist.includes(t)&&(t=null),j.setColumnLength(B.getColumnLength()),j.addNewSerie(t)}),o.on("LoadProjectData",function(e){B.loadCSV({csv:e},!0)}),o.on("ChartChange",function(e){A.emit("ChartChangedLately",e)}),j.on("DeleteSeries",function(e){w(),o.data.deleteSerie(e);const t=B.toCSV(";",!0,j.getAllMergedLabelAndData());o.data.csv({csv:t},null,!1,function(){C(j.getAllOptions())})}),j.on("SeriesChanged",function(e){A.emit("SeriesChanged",e)}),j.on("ToggleHideCells",function(e,t){var i=Object.keys(e).filter(function(t){if(e[t].rawValue&&e[t].rawValue.length>0)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",'<i class="fa fa-spinner fa-spin fa-1x fa-fw"></i>'),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 ",'<i class="fa fa-spinner fa-spin fa-1x fa-fw a"></i>'),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":""),'<i class="fa fa-'+e.icon+'" aria-hidden="true"></i><span class="highed-tooltip-text">'+e.tooltip+"</span>"),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 ":""),'<i class="fa fa-commenting" aria-hidden="true"></i><span class="highed-tooltip-text">Annotations</span>');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 ":""),'<i class="fa fa-'+e.icon+'" aria-hidden="true"></i><span class="highed-tooltip-text">'+e.tooltip+"</span>");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","",'<i class="fa fa-mobile" aria-hidden="true"></i>');tabletIcon=highed.dom.cr("span","",'<i class="fa fa-tablet" aria-hidden="true"></i>'),tabletIcon=highed.dom.cr("span","",'<i class="fa fa-tablet" aria-hidden="true"></i>'),stretchToFitIcon=highed.dom.cr("span","",'<i class="fa fa-laptop" aria-hidden="true"></i>'),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","<br/>"),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",'<i class="fa fa-chevron-circle-left" aria-hidden="true"></i>'),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+'&nbsp;<i class="fa fa-'+e.icon+'"></i>');(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<e;i++)y(t);he.selectByIndex(0)}function f(){return _[R]}function v(){return _}function b(e,t){highed.dom.style(q,{height:t-3+"px"})}function y(e,t,i){var o=e;o||(o="line"),he.addItems([{id:_.length,title:"Series "+(_.length+1)+" - "+S(o)}]),U+1<j&&U++;const n=highed.merge({},G);highed.merge(n,highed.meta.charttype[o]),T(n),n.values&&(n.values.rawValue=[U],n.values.value=r(U)),_.push(highed.merge({},n)),i||he.selectById(_.length-1),t&&F(),Y.emit("AddSeries",_.length-1,e)}function x(){highed.dom.style(q,{display:"none"})}function w(){highed.dom.style(le,{display:"block"}),J=!0}function C(){highed.dom.style(le,{display:"none"}),J=!1}function k(){highed.dom.style(q,{display:"block"})}function z(e){const t=e.indexOf("-")>-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;u<g;u++){const h=A(e,u,a);_[u]||y(h,null,!0),_[u].labels.rawValue=[0],_[u].labels.value="A",_[u].values.rawValue[0]=u+1,_[u].values.value=r(u+1)}}he.selectByIndex(0)}F(),J||n||Y.emit("ChangeData",_)}}function L(e,t){return values=z(e),values2=z(t),Math.max(values[values.length-1],values2[values2.length-1])-Math.min(values[0],values2[0])<=values[values.length-1]-values[0]+(values2[values2.length-1]-values2[0])}function D(e,t){var i=!1;return values=[],values2=[],Object.keys(_[R]).some(function(o){if(t!==o&&!i)return i=L(e,_[R][o].value),!i&&void 0}),i}function V(e,i){var o,n=highed.dom.cr("div","highed-assigndatapanel-input-container");o=highed.DropDown(n,"highed-assigndata-dropdown"),e.mandatory||o.addItem({id:"",title:""});for(var d=0;d<j;d++)o.addItem({id:r(d),title:r(d)});o.selectById(e.value),o.on("Change",function(n){return detailValue=n.id(),D(detailValue,i)?(e.value=e.previousValue,o.selectById(e.previousValue,!0),void alert("This column has already been assigned a value. Please select a different column")):""!==detailValue&&e&&e.noNulls&&t.areColumnsEmpty(s(detailValue))?(e.value=e.previousValue,o.selectById(e.previousValue,!0),void alert("This column does not have any data. Please select a column with data in it")):(e.value=detailValue,e.rawValue=[s(e.value.toUpperCase())],s(e.value.toUpperCase())>U&&(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='<i class="fa fa-eye-slash">'):(W=!0,ae.innerHTML='<i class="fa fa-eye"/>'),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","",'<i class="fa fa-chevron-down highed-assigndatapanel-toggle" aria-hidden="true"></i>'),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",'<i class="fa fa-plus"/>'),de=highed.dom.cr("button","highed-assigndatapanel-add-series",'<i class="fa fa-trash"/>'),ae=highed.dom.cr("button","highed-assigndatapanel-add-series",'<i class="fa fa-eye-slash"/>'),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.foundCount<t.foundCount?1:t.foundCount<e.foundCount?-1:0}),z.forEach(function(e,t){if(!(t>50)){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(' <i class="fa fa-circle highed-parent-splitter" aria-hidden="true"></i> '));highed.dom.on(i,"click",function(){const t=e.parents,i=500;for(var o="",n=0;n<t.length;n++)setTimeout(function(e){o+=(""!==o?".":"")+l(e).replace(" ","");var t=document.getElementById(o);t&&t.click()},i*n,t[n]);setTimeout(function(e){var t=document.getElementById(e.rawName+"_container");t?(t.scrollIntoView({block:"end"}),s(t)):(t=document.getElementById(o+"."+e.rawName),t&&s(t))},i*t.length+100,e)}),highed.dom.ap(i,o,n),highed.dom.ap(x,i)}}),highed.dom.style(k,{opacity:0})}var c=null,g=null,u={series:{controller:"type",state:!1,default:"line"},plotOptions:{controller:"type",state:!1,default:"line"}},p=highed.events(),m=highed.dom.cr("div","highed-transition highed-assigndatapanel highed-searchadvancedoptions highed-box-size"),f=highed.dom.cr("div","highed-searchadvancedoptions-bar highed-box-size"),v=highed.dom.cr("div","highed-searchadvancedoptions-body highed-box-size highed-transition"),b=highed.dom.ap(highed.dom.cr("div","highed-searchadvancedoptions-header-container"),highed.dom.cr("h3","highed-searchadvancedoptions-header","Search"),highed.dom.cr("p","highed-searchadvancedoptions-header-desc")),y=highed.dom.cr("div","highed-searchadvancedoptions-data-options"),x=highed.dom.cr("div","highed-searchadvancedoptions-results"),w=highed.dom.cr("div","highed-searchadvancedoptions-inputs-container"),C=highed.dom.cr("input","highed-searchadvancedoptions-search highed-field-input"),k=highed.dom.cr("div","highed-customizer-adv-loader highed-searchadvancedoptions-loading",'<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> 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<color>",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<treemap>",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<areasplinerange>",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<boxplot>",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<gauge>",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<bubble>-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<treemap>",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<bubble>-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:<ul><li>If a zero or subzero data value is added to a logarithmic axis</li><li>If the minimum of a logarithimic axis is set to 0 or less</li><li>If the threshold is set to 0 or less</li></ul>As of Highcharts 5.0.8 it is possible to bypass this error message by setting <code>Axis.prototype.allowNegativeLog</code> to<code>true</code> and add custom conversion functions. <ahref="http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/samples/highcharts/yaxis/type-log-negative/">View live demo</a>.'},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("<br/><br/>"):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("<br/><br/>"):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>","<\\/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",'<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> 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.number<t?highed.dom.style(a,{opacity:1,"pointer-events":"auto",visibility:"visible"}):highed.dom.style(a,{opacity:0,"pointer-events":"none",visibility:"hidden"})}var n=highed.Toolbar(e,{additionalCSS:["highed-wizstepper-bar"]}),d=highed.WizardStepper(t,n.center),a=highed.dom.cr("span","highed-wizstepper-next-prev fa fa-arrow-right"),h=highed.dom.cr("span","highed-wizstepper-next-prev fa fa-arrow-left");return d.on("Step",o),d.on("AddStep",o),highed.dom.on(a,"click",d.next),highed.dom.on(h,"click",d.previous),highed.dom.ap(n.right,a),highed.dom.ap(n.left,h),highed.dom.style(h,{opacity:0,"pointer-events":"none"}),{container:n.container,on:d.on,next:d.next,previous:d.previous,addStep:d.addStep,selectFirst:d.selectFirst}},function(){var e={};highed.plugins.import={install:function(t,i){highed.isNull(e[t])?(e[t]=highed.merge({title:!1,description:"",treatAs:"csv",fetchAs:"json",defaultURL:"",dependencies:[],options:{},filter:function(){}},i),e[t].dependencies&&e[t].dependencies.forEach(function(e){highed.include(e)})):highed.log(1,"tried to register an import plugin which already exists:",t)}},highed.DataImporter=function(t,i){function o(e,i,o){o.forEach(function(e){e.on("Focus",function(){highed.dom.style(t,{width:"600px",height:"600px"}),e.resize(590,590)})})}function n(){f.options.csv||b.hide(),f.options.export||y.hide(),x.hide(),0!==Object.keys(f.plugins).length&&f.options.plugins||w.hide(),f.options.samples||C.hide(),v.selectFirst()}function d(){Object.keys(e).forEach(function(t){function i(){var i=e[t],o=highed.dom.cr("input","highed-imp-input-stretch"),n=highed.dom.cr("div","","URL"),d=highed.dom.cr("button","highed-imp-button","Import "+t+" from URL"),a=highed.dom.cr("table","highed-customizer-table"),l={};o.value=i.defaultURL||"",Object.keys(i.options||{}).forEach(function(e){l[e]=i.options[e].default,highed.dom.ap(a,highed.InspectorField(i.options[e].type,i.options[e].default,{title:i.options[e].label},function(t){l[e]=t},!0))}),i.surpressURL&&highed.dom.style([o,n],{display:"none"}),o.placeholder="Enter URL",highed.dom.on(d,"click",function(){return highed.snackBar("Importing "+t+" data"),highed.isFn(i.request)?i.request(o.value,l,function(e,t){return e?highed.snackBar("import error: "+e):void m.emit("ImportChartSettings",t,i.newFormat)}):void highed.ajax({url:o.value,type:"get",dataType:i.fetchAs||"text",success:function(e){i.filter(e,highed.merge({},l),function(e,t){return e?highed.snackBar("import error: "+e):void("csv"===i.treatAs?(b.focus(),k.value=t,h(t)):s(t))})},error:function(e){highed.snackBar("import error: "+e)}})}),O.right.innerHTML="",highed.dom.ap(O.right,highed.dom.ap(highed.dom.cr("div","highed-plugin-details"),highed.dom.cr("div","highed-customizer-table-heading",i.title||t),highed.dom.cr("div","highed-imp-help",i.description),n,o,!!Object.keys(i.options||{}).length&&a,highed.dom.cr("br"),d))}f.plugins[t]&&B.addItem({id:t,title:e[t].title||t,click:i})}),B.selectFirst()}function a(){C.innerHTML="",highed.samples.each(function(e){var t=e.dataset.join("\n"),i=highed.dom.cr("button","highed-box-size highed-imp-button",e.title);highed.dom.style(i,{width:"99%"}),highed.dom.on(i,"click",function(){h(t),k.value=t,b.focus()}),highed.dom.ap(C.body,i,highed.dom.cr("br"))})}function h(e,t){m.emit("ImportCSV",{itemDelimiter:A.value,firstRowAsNames:D.checked,dateFormat:M.value,csv:e||k.value,decimalPoint:L.value},t)}function l(e){k.value=e,h()}function s(e){var t=e;if(highed.isStr(t))try{t=JSON.parse(e)}catch(e){return highed.snackBar("Error parsing json: "+e),!1}m.emit("ImportJSON",t),highed.snackBar("imported json")}function r(e,i){var o,n=highed.dom.size(t);v.resize(e||n.w,i||n.h),o=v.barSize(),O.resize(e||n.w,(i||n.h)-o.h-20),B.resize(e||n.w,(i||n.h)-o.h),G.resize(null,300)}function c(){v.show()}function g(){v.hide()}function u(e){var i=v.createTab({title:e.name||"Features"});highed.isFn(e.create)&&e.create(i.body),e.resize&&i.on("Focus",function(){highed.dom.style(t,{width:e.resize.width+"px",height:e.resize.height+"px"}),i.resize(e.resize.width-10,e.resize.height-10)})}function p(e){v.select(e)}var m=highed.events(),f=highed.merge({options:["csv","plugins","samples","export"],plugins:["CSV","JSON","Difi","Socrata","Google Spreadsheets"]},i),v=highed.TabControl(t,!1,!0),b=v.createTab({title:"Import"}),y=v.createTab({title:"Export"}),x=v.createTab({title:"JSON"}),w=v.createTab({title:"Plugins"}),C=v.createTab({title:"Sample Data"}),k=highed.dom.cr("textarea","highed-imp-pastearea"),z=highed.dom.cr("button","highed-imp-button highed-imp-pasted-button","Import Pasted Data"),S=highed.dom.cr("button","highed-imp-button","Live Data"),T=highed.dom.cr("button","highed-imp-button","Import File"),A=highed.dom.cr("input","highed-imp-input"),M=highed.dom.cr("input","highed-imp-input"),L=highed.dom.cr("input","highed-imp-input"),D=highed.dom.cr("input","highed-imp-input"),V=highed.dom.cr("textarea","highed-imp-pastearea"),F=highed.dom.cr("button","highed-imp-button","Import"),E=highed.dom.cr("button","highed-imp-button","Upload & Import File"),I=highed.dom.cr("button","highed-imp-button","Google Spreadsheet"),H=highed.dom.cr("button","highed-imp-button highed-export-btn","Export comma delimited"),P=highed.dom.cr("button","highed-imp-button highed-export-btn","Export semi-colon delimited"),O=highed.HSplitter(w.body,{leftWidth:30}),B=highed.List(O.left);V.value=JSON.stringify({},void 0,2),o(600,600,[b,y,x,w,C]),highed.dom.style(C.body,{overflow:"hidden"}),f.options=highed.arrToObj(f.options),f.plugins=highed.arrToObj(f.plugins),Object.keys(f.plugins).forEach(function(t){highed.isNull(e[t])&&delete f.plugins[t]}),highed.dom.ap(y.body,H,P,highed.dom.cr("hr","highed-imp-hr"));var G=highed.Exporter(y.body);return G.resize(null,300),highed.dom.ap(b.body,I,S,T,highed.dom.cr("hr","highed-imp-hr"),highed.dom.cr("div","highed-imp-help","Paste CSV into the below box, or upload a file. Click Import to import your data."),k,z),highed.dom.ap(x.body,highed.dom.cr("div","highed-imp-help",'Paste JSON into the below box, or upload a file. Click Import to import your data. <br/><b>The JSON is the data passed to the chart constructor, and may contain any of the valid <a href="http://api.highcharts.com/highcharts/" target="_blank">options</a>.</b>'),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<t.yAxis.length&&highed.merge(e,t.yAxis[i])}),de.xAxis&&t.xAxis&&highed.isArr(de.xAxis)&&de.xAxis.forEach(function(e,i){i<t.xAxis.length&&highed.merge(e,t.xAxis[i])}),se&&se.xAxis&&(se.xAxis=highed.isArr(se.xAxis)?se.xAxis:[se.xAxis],highed.isArr(de.xAxis)&&de.xAxis.forEach(function(e,t){t<se.xAxis.length&&highed.merge(e,se.xAxis[t])})),se&&se.yAxis&&(se.yAxis=highed.isArr(se.yAxis)?se.yAxis:[se.yAxis],highed.isArr(de.yAxis)&&de.yAxis.forEach(function(e,t){t<se.yAxis.length&&highed.merge(e,se.yAxis[t])})),de.series=[],highed.isArr(ne.series)&&ne.series.forEach(function(e,t){var i={};se&&highed.isArr(se.series)&&t<se.series.length&&(i=highed.merge({},se.series[t])),de.series.push(highed.merge(i,e))}),t.series&&(de.series=de.series||[],t.series.forEach(function(e,t){t<de.series.length?highed.merge(de.series[t],e):de.series.push(highed.merge({},e))})),highed.merge(de,highed.merge({},ne)),se&&se.series&&de.series&&de.series.forEach(function(e,t){!e.type&&se.series[t]&&se.series[t].type&&(e.type=se.series[t].type)}),de.yAxis&&!highed.isArr(de.yAxis)&&(de.yAxis=[de.yAxis]),de.xAxis&&!highed.isArr(de.xAxis)&&(de.xAxis=[de.xAxis]),highed.merge(de,highed.option("stickyChartProperties")),!e&&highed.isFn(me)&&me(de)}function g(e){ne&&ne.series&&(ne.series=ne.series.slice(0,e),c(),h(de),d())}function u(e){ne.series&&ne.series[e]&&(ne.series.splice(e,1),delete Se[e]),c(),h(de)}function p(e,t){const i=e.config.chart.type;delete e.config.chart.type,Me[t]=e.constructor||"Chart",t.forEach(function(t){Se[t]||(Se[t]={}),Se[t].templateTitle=e.title,Se[t].templateHeader=e.header,ne.series[t]?ne.series[t].type=i:ne.series[t]={type:i,turboThreshold:0,_colorIndex:ne.series.length,_symbolIndex:0,compare:void 0}}),he[t]=highed.merge({},e.config||{}),c(),h(de),d()}function m(e){return e&&e.config?(Me=[e.constructor||"Chart"],ne.xAxis&&delete ne.xAxis,ne.yAxis&&delete ne.yAxis,void n(function(t){he=[highed.merge({},e.config||{})],c(),h(de),d()})):highed.log(1,"chart preview: templates must be an object {config: {...}}")}function f(){n(function(e){return e.options&&e.options.series&&(ne.series=e.options.series),!0})||(ne.series=[]),c()}function v(){}function b(e,t,i,o){var a=!1,l=[];if(!e||!e.csv){if(!highed.isStr(e))return highed.log(1,"chart load csv: data.csv is required");e={csv:e,firstRowAsNames:!0}}ve=e.csv,be=!1,ye=!1,n(function(i){ne&&ne.series&&(highed.isArr(ne.series)?ne.series:[ne.series]).forEach(function(e){l.push(highed.merge({},e,!1,{data:1,name:1}))}),ne.series=[],ne.xAxis&&(highed.isArr(ne.xAxis)?ne.xAxis:[ne.xAxis]).forEach(function(e){e.categories&&(e.categories=[])}),ne.yAxis&&(highed.isArr(ne.yAxis)?ne.yAxis:[ne.yAxis]).forEach(function(e){e.categories&&(e.categories=[])}),highed.merge(ne,{plotOptions:{series:{animation:!1}},data:{csv:e.csv,itemDelimiter:e.itemDelimiter,firstRowAsNames:e.firstRowAsNames,dateFormat:e.dateFormat,decimalPoint:e.decimalPoint,googleSpreadsheetKey:void 0,url:e.url}}),c(),h(de),v(),d(),highed.isArr(l)&&(l||[]).forEach(function(e,t){a=!0,ne.series[t]||ee(t),highed.merge(ne.series[t],e)}),a&&(c(),h(de),v(),d()),t&&oe.emit("LoadProjectData",e.csv),o&&o()})}function y(e){var t=!1,i={"&amp;":"&","&lt;":"<","&gt;":">"};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<ne.series.length&&ne.series.splice(e.length,ne.series.length-e.length),e.forEach(function(e,t){e.name&&I("series-name",e.name,t),e.data&&I("series-data",e.data,t)}))}function I(e,t,i){n(function(e){highed.setAttr(e.options,"plotOptions--series--animation",!1,i)}),highed.setAttr(ne,e,t,i),ae[e]=t,0===e.indexOf("lang--")&&ne.lang&&Highcharts.setOptions({lang:ne.lang}),c(),h(de,!1,!0),d(),oe.emit("AttrChange",{id:e.replace(/\-\-/g,".").replace(/\-/g,"."),value:t})}function H(e){var t;return c(e),t=C(highed.merge({},de)),highed.isNull(t.data)||t.data.googleSpreadsheetKey||(t.data=void 0),t&&highed.isArr(t.series)&&(t.series=t.series.map(function(e){highed.merge({},e);return delete e.data,e})),be?highed.merge(t,{data:be}):ye?highed.merge(t,{data:ye,googleSpreadsheetKey:!1,googleSpreadsheetWorksheet:!1}):ve&&highed.merge(t,{data:{csv:ve,googleSpreadsheetKey:!1,googleSpreadsheetWorksheet:!1}}),t}function P(e){return o(H(),e)}function O(){return n(function(e){return highed.isFn(e.getSVG)?e.getSVG():""})}function B(e){return n(function(t){var i=["https://code.highcharts.com/stock/highstock.js","https://code.highcharts.com/highcharts-more.js","https://code.highcharts.com/highcharts-3d.js","https://code.highcharts.com/modules/data.js","https://code.highcharts.com/modules/exporting.js","https://code.highcharts.com/modules/funnel.js","https://code.highcharts.com/6.0.2/modules/annotations.js","https://code.highcharts.com/modules/accessibility.js","https://code.highcharts.com/modules/solid-gauge.js"],n=[];t.options&&t.options.title?t.options.title.text||"untitled chart":"untitled chart";e=e||"",highed.option("includeCDNInExport")&&(n=["var files = ",JSON.stringify(i),",","loaded = 0; ",'if (typeof window["HighchartsEditor"] === "undefined") {',"window.HighchartsEditor = {","ondone: [cl],","hasWrapped: false,","hasLoaded: false","};","include(files[0]);","} else {","if (window.HighchartsEditor.hasLoaded) {","cl();","} else {","window.HighchartsEditor.ondone.push(cl);","}","}","function isScriptAlreadyIncluded(src){",'var scripts = document.getElementsByTagName("script");',"for (var i = 0; i < scripts.length; i++) {",'if (scripts[i].hasAttribute("src")) {','if ((scripts[i].getAttribute("src") || "").indexOf(src) >= 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"+['<div id="',i,'">',e?O():"","</div>"].join("")+"<script>"+B(i)+"</script>"})}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 class='fa fa-chevron-down'/>"),i=highed.dom.cr("button","highed-import-button green action-btn","Action <i class='fa fa-chevron-down'/>");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",'<i class="fa fa-times"/>'),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.<br/><br/>","The cells can be navigated using the arrow keys.<br/><br/>","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.<br/><br/>","They can be edited by left clicking them.<br/><br/>","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.<br/><br/>","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.<br/><br/>","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.<br/><br/>","The customizer has three different sections:<br/>","<li>Simple: A simple customizer with the most used options</li>","<li>Advanced: All options available in Highcharts/Highstock can be set here</li>","<li>Custom code: Here, properties can be overridden programatically</li>"]}]}},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",'<i class="fa fa-area-chart"/>'),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='<div class="highed-errorbar-more"><a href="https://'+e.substr(e.url)+'" target="_blank">Click here for more information</a></div>'),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('<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" id="Warstwa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"     width="425.197px" height="141.732px" viewBox="0 0 425.197 141.732" enable-background="new 0 0 425.197 141.732"     xml:space="preserve"><g>    <path fill="#eeeaea" d="M138.475,69.712h-17.02v9.77c0,1.037-0.813,1.851-1.849,1.851c-1.037,0-1.85-0.813-1.85-1.851V57.725        c0-1.037,0.813-1.852,1.85-1.852c1.036,0,1.849,0.813,1.849,1.852v8.436h17.02v-8.436c0-1.037,0.814-1.852,1.85-1.852        c1.036,0,1.85,0.813,1.85,1.852v21.754c0,1.037-0.814,1.851-1.85,1.851c-1.036,0-1.85-0.813-1.85-1.851V69.712z"/>    <path fill="#eeeaea" d="M156.973,79.479c0,1.037-0.814,1.851-1.852,1.851s-1.852-0.813-1.852-1.851V57.725        c0-1.037,0.814-1.852,1.852-1.852s1.852,0.813,1.852,1.852V79.479z"/>    <path fill="#eeeaea" d="M184.125,70.378c0-1.036,0.814-1.774,1.852-1.774c1.034,0,1.852,0.813,1.852,1.849v5.847        c0,0.444-0.226,1.109-0.595,1.479c-2.367,2.369-5.549,3.773-9.176,3.773c-7.178,0-12.949-5.771-12.949-12.948        c0-7.181,5.771-12.949,12.949-12.949c3.627,0,6.809,1.405,9.176,3.771c0.738,0.74,0.738,1.852,0,2.592        c-0.741,0.738-1.922,0.813-2.663,0.072c-1.702-1.699-3.923-2.736-6.513-2.736c-5.104,0-9.249,4.144-9.249,9.25        c0,5.104,4.146,9.25,9.249,9.25c2.367,0,4.441-0.813,6.067-2.222V70.378z"/>    <path fill="#eeeaea" d="M218.162,69.712h-17.019v9.77c0,1.037-0.817,1.851-1.852,1.851c-1.037,0-1.849-0.813-1.849-1.851V57.725        c0-1.037,0.812-1.852,1.849-1.852c1.034,0,1.852,0.813,1.852,1.852v8.436h17.019v-8.436c0-1.037,0.813-1.852,1.849-1.852        c1.037,0,1.852,0.813,1.852,1.852v21.754c0,1.037-0.813,1.851-1.852,1.851c-1.033,0-1.849-0.813-1.849-1.851V69.712z"/>    <path fill="#eeeaea" d="M242.948,81.552c-7.182,0-12.949-5.771-12.949-12.948c0-7.181,5.77-12.949,12.949-12.949        c3.627,0,6.809,1.405,9.176,3.771c0.738,0.74,0.738,1.852,0,2.592c-0.741,0.738-1.925,0.813-2.666,0.072        c-1.699-1.699-3.92-2.736-6.51-2.736c-5.106,0-9.249,4.144-9.249,9.25c0,5.104,4.143,9.25,9.249,9.25        c2.59,0,4.884-0.962,6.586-2.664c0.74-0.741,1.849-0.741,2.59,0c0.738,0.738,0.738,1.85,0,2.589        C249.756,80.146,246.574,81.552,242.948,81.552z"/>    <path fill="#eeeaea" d="M281.569,69.712h-17.02v9.77c0,1.037-0.813,1.851-1.852,1.851c-1.034,0-1.85-0.813-1.85-1.851V57.725        c0-1.037,0.813-1.852,1.85-1.852c1.035,0,1.852,0.813,1.852,1.852v8.436h17.02v-8.436c0-1.037,0.813-1.852,1.853-1.852        c1.034,0,1.849,0.813,1.849,1.852v21.754c0,1.037-0.813,1.851-1.849,1.851c-1.037,0-1.853-0.813-1.853-1.851V69.712z"/>    <path fill="#eeeaea" d="M308.758,57.503l10.507,20.646c0.223,0.443,0.445,1.036,0.445,1.554c0,1.036-0.668,1.628-1.702,1.628        c-0.741,0-1.481-0.222-2.001-1.258l-3.253-6.438h-13.547l-3.183,6.438c-0.517,1.036-1.256,1.258-1.994,1.258        c-1.037,0-1.702-0.593-1.702-1.628c0-0.519,0.22-1.109,0.442-1.554l10.506-20.646c0.668-1.405,2.002-1.628,2.74-1.628        C306.76,55.875,308.09,56.096,308.758,57.503z M300.985,70.083h9.988l-4.957-9.99L300.985,70.083z"/>    <path fill="#eeeaea" d="M340.159,56.023c4.441,0,8.064,3.255,8.064,7.694c0,3.923-2.813,6.884-6.511,7.549l6.731,7.104        c0.664,0.666,0.889,1.85,0.146,2.516c-0.736,0.741-2.145,0.521-2.886-0.296l-8.729-9.176h-6.511v8.142        c0,1.034-0.815,1.774-1.854,1.774c-1.033,0-1.85-0.813-1.85-1.851V57.873c0-1.035,0.814-1.85,1.85-1.85H340.159z M330.468,59.575        v8.288h9.691c2.59,0,4.367-1.776,4.367-4.146c0-2.365-1.777-4.144-4.367-4.144L330.468,59.575L330.468,59.575z"/>    <path fill="#eeeaea" d="M365.047,59.575h-9.249c-1.033,0-1.849-0.74-1.849-1.776c0-1.034,0.813-1.773,1.849-1.773h22.201        c1.037,0,1.852,0.74,1.852,1.773c0,1.037-0.813,1.776-1.852,1.776h-9.249V79.48c0,1.037-0.813,1.851-1.849,1.851        c-1.037,0-1.854-0.813-1.854-1.851V59.575z"/>    <path fill="#eeeaea" d="M388.724,66.013c0-9.25,5.698-10.359,9.99-10.359c1.035,0,1.85,0.813,1.85,1.85        c0,1.036-0.813,1.851-1.85,1.851c-3.479,0-6.29,0.738-6.29,6.66v5.18c0,9.25-5.698,10.358-9.989,10.358        c-1.035,0-1.85-0.813-1.85-1.85s0.814-1.85,1.85-1.85c3.479,0,6.289-0.74,6.289-6.66V66.013z"/></g><polygon fill="#8087E8" points="67.981,30.52 56.757,56.73 42.009,91.171 76.301,76.685 94.465,69.013 "/><polygon fill="#30426B" points="73.7,62.25 76.302,76.685 94.466,69.013 "/><polygon fill="#6699A1" points="67.981,30.52 73.7,62.251 94.465,69.013 "/><polygon fill="#78758C" points="73.7,62.25 94.466,69.013 56.758,56.729 42.009,91.171 76.302,76.685 "/><polygon fill="#A3EDBA" points="42.009,91.171 56.757,56.73 26.442,46.855 "/><polygon fill="#6699A1" points="76.302,76.685 79.628,95.13 94.466,69.013 "/><polygon fill="#8087E8" points="67.981,30.52 56.757,56.73 73.7,62.251 "/></svg>')+'")'})),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 &amp; 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}};