25 lines
495 KiB
JavaScript
25 lines
495 KiB
JavaScript
/*!
|
||
* tui-chart.min
|
||
* @fileoverview tui-chart
|
||
* @author NHN. FE Development Lab <dl_javascript@nhn.com>
|
||
* @version 3.11.3
|
||
* @license MIT
|
||
* @link https://github.com/nhn/tui.chart
|
||
* bundle created at "Fri Jan 29 2021 15:51:56 GMT+0900 (Korean Standard Time)"
|
||
*/
|
||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael")):"function"==typeof define&&define.amd?define(["raphael"],e):"object"==typeof exports?exports.chart=e(require("raphael")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael))}(this,function(t){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){t.exports=i(2)},,function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(3),r=i(48),a=o(r),s=i(17),u=o(s),l=i(27),h=o(l),c=i(167),p=o(c);i(176),a["default"].registerPlugin("Raphael",n.pluginRaphael,n.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=h["default"],a["default"].colorutil=p["default"],t.exports=a["default"]},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),n=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",o.setAttribute("result","flood"),o.setAttribute("flood-color","#ffffff"),o.setAttribute("flood-opacity","0.5"),n.setAttribute("in","flood"),n.setAttribute("result","mask"),n.setAttribute("in2","SourceGraphic"),n.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(o),e.appendChild(n),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),o=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),o.setAttributeNS(null,"result","blurOut"),o.setAttributeNS(null,"in","offOut"),o.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(o),e.appendChild(n),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(4),s=o(a),u=i(5),l=o(u),h=i(29),c=o(h),p=i(30),d=o(p),f=i(31),m=o(f),g=i(34),y=o(g),_=i(36),v=o(_),T=i(37),b=o(T),A=i(38),x=o(A),D=i(39),E=o(D),C=i(40),L=o(C),S=i(41),M=o(S),P=i(43),w=o(P),O=i(44),R=o(O),I=i(45),k=o(I),B=i(46),N=o(B),F=i(47),G=o(F);e.pluginRaphael={bar:l["default"],boxplot:c["default"],bullet:d["default"],column:l["default"],line:m["default"],area:y["default"],pie:v["default"],bubble:x["default"],scatter:x["default"],heatmap:E["default"],treemap:E["default"],map:L["default"],radial:b["default"],legend:M["default"],mapLegend:w["default"],circleLegend:R["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),o=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(n(i),r(i)),i.pushDownBackgroundToBottom=function(){o.toBack()},i.changeChartBackgroundColor=function(t){o.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){o.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){o.attr({width:t,height:e})},o.attr({fill:"#fff","stroke-width":0}),i}},function(e,i){e.exports=t},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=i(4),u=o(s),l=i(6),h=o(l),c=i(7),p=o(c),d=i(8),f=o(d),m=i(12),g=o(m),y=700,_=1,v=.3,T=.2,b=8,A=2,x=.4,D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.theme,n=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=o,this.seriesDataModel=n,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=o,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var o=g["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return o.node.setAttribute("class","auto-shape-rendering"),o},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,o=this.options,n=o.colorByPoint,r=o.animationDuration,a=t.map(function(t,o){return t.map(function(t,a){if(!t)return null;var s=e.seriesDataModel.getSeriesItem(o,a),u=n?i[o]:i[a],l=e._renderBar(r?t.start:t.end,u);return{rect:l,color:u,bound:t.end,item:s,groupIndex:o,index:a,isRange:s.isRange}})});return a},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var o=i.value,n=null;if("bar"===e||o>=0||i.isRange){var r=Object.assign({},t.leftTop);r.left-="column"===e||o<0?1:0,n=g["default"].makeLinePath(r,t.rightTop).join(" ")}return n},t.prototype._makeRightLinePath=function(t,e,i){var o=null;return("column"===e||i.value>=0||i.isRange)&&(o=g["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),o},t.prototype._makeBottomLinePath=function(t,e,i){var o=null;return("bar"===e||i.value<0||i.isRange)&&(o=g["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),o},t.prototype._makeLeftLinePath=function(t,e,i){var o=null;return("column"===e||i.value<0||i.isRange)&&(o=g["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),o},t.prototype._makeBorderLinesPaths=function(t,e,i){var o=this._makeRectPoints(t),n={top:this._makeTopLinePath(o,e,i),right:this._makeRightLinePath(o,e,i),bottom:this._makeBottomLinePath(o,e,i),left:this._makeLeftLinePath(o,e,i)};return Object.keys(n).forEach(function(t){n[t]||delete n[t]}),n},t.prototype._renderBorderLines=function(t,e,i,o){var n=this._makeBorderLinesPaths(t,i,o),r={};return Object.entries(n).forEach(function(t){var i=a(t,2),o=i[0],n=i[1];r[o]=g["default"].renderLine(self.paper,n,{color:e,strokeWidth:1})}),r},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var o=t.map(function(t,o){return t.map(function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,self.chartType,r)})});return o},t.prototype._animateRect=function(t,e,i){t.animate({x:e.width?e.left:e.left-A/2,y:e.height?e.top:e.top-A/2,width:e.width?e.width:A,height:e.height?e.height:A,opacity:e.height&&e.width?1:x},i,">")},t.prototype._animateBorders=function(t,e,i,o){var n=this._makeBorderLinesPaths(e,i,o);(0,f["default"])(t,function(t,e){t.animate({path:n[e]},y,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[],o=this.options.animationDuration;g["default"].forEach2dArray(this.groupBars,function(t,n,r){var a=i[n]&&i[n][r];t&&(o&&e._animateRect(t.rect,t.bound,o),a&&e._animateBorders(a,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},o))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+b,height:i.height+b,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],o=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(o.width,o.height),g["default"].forEach2dArray(this.groupBars,function(t,o,r){if(t){var a=i[o]&&i[o][r],s=n[o][r].end;t.bound=s,g["default"].updateRectBound(t.rect,s),a&&e._updateBordersPath(a,s,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){(0,f["default"])(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var o=this.groupBars[t.groupIndex][t.index];if(o.rect.attr({fill:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=u["default"].color(e.color),o=this.theme.selectionColor,n=o||g["default"].makeChangedLuminanceColor(i.hex,T),r=this.theme.borderColor;if(r){var a=u["default"].color(r);r=g["default"].makeChangedLuminanceColor(a.hex,T)}this._changeBarColor(t,n,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=(0,h["default"])(t);g["default"].forEach2dArray(this.groupBars,function(o,n,r){if(o){var a=e[n]&&e[n][r],s=i||t===r?_:v;o.rect.attr({"fill-opacity":s}),a&&(0,f["default"])(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r=n||"column"===this.chartType?"middle":"start",a={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":r},s=this.labelSet=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var r=e[o][n],u=g["default"].renderText(t,r.end,i.end,a),l=u.node.style;if(l.userSelect="none",l.cursor="default",s.push(u),r.start){var h=g["default"].renderText(t,r.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",s.push(h)}})}),s},t.prototype._calculateConnectorPosition=function(t,e){for(var i=[],o="bar"===this.chartType,n=a(t,2),r=n[0],s=n[1],u=a(e,2),l=u[0],h=u[1],c=0;c<r.length;c+=1){var p=l.items[c].value<0,d=h.items[c].value<0,f=r[c].end,m=f.top,g=f.left,y=f.width,_=f.height,v=s[c].end,T=v.top,b=v.left,A=v.height,x=v.width;i.push([{top:m+(!o&&p?_:0)+(o?_:0),left:g+(o&&p?0:y)},{top:T+(!o&&d?A:0),left:b+(o&&!d?x:0)}])}return i},t.prototype._makeConnectorModel=function(t){for(var e=t.groupBounds,i=t.seriesDataModel,o=i.groups,r=[],a=0;a<e.length-1;a+=1){var s=[e[a],e[a+1]],u=[o[a],o[a+1]];r.push.apply(r,n(this._calculateConnectorPosition(s,u)))}return r},t.prototype.renderConnector=function(t,e,i){var o=this._makeConnectorModel(e),n=this.connectorSet=t.set(),r=i.connector,s=(0,p["default"])(r),u=s&&r.width||1,l=s&&r.color||"#ddd",h=s&&"dotted"===r.type||!1;return o.forEach(function(e){var i=a(e,2),o=i[0],r=i[1];n.push(g["default"].renderLine(t,g["default"].makeLinePath(o,r).join(" "),{color:l,strokeWidth:u,dotted:h,connector:!0}))}),n},t}();e["default"]=D},function(t,e){"use strict";function i(t){return null===t}t.exports=i},function(t,e){"use strict";function i(t){return t===Object(t)}t.exports=i},function(t,e,i){"use strict";function o(t,e,i){n(t)?r(t,e,i):a(t,e,i)}var n=i(9),r=i(10),a=i(11);t.exports=o},function(t,e){"use strict";function i(t){return t instanceof Array}t.exports=i},function(t,e){"use strict";function i(t,e,i){var o=0,n=t.length;for(i=i||null;o<n&&e.call(i,t[o],o,t)!==!1;o+=1);}t.exports=i},function(t,e){"use strict";function i(t,e,i){var o;i=i||null;for(o in t)if(t.hasOwnProperty(o)&&e.call(i,t[o],o,t)===!1)break}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){return(0,l["default"])(t)&&"number"==typeof t}function r(){var t=!!document.createElement("canvas").getContext;if(!t)return null;var e=document.createElement("canvas"),i=e.getContext("2d");return"function"==typeof i.fillText?e:null}e.__esModule=!0;var a=i(13),s=o(a),u=i(15),l=o(u),h=i(14),c=o(h),p=i(16),d=o(p),f=i(4),m=o(f),g=i(17),y=o(g),_=1.11,v={cacheFontInfo:"",elementForTextSize:null,canvasElement:r()};e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=[t.left,t.top],n=[e.left,e.top],r=i%2/2;return o.forEach(function(t,e){t===n[e]&&(o[e]=n[e]=Math.round(t)-r)}),["M"].concat(o,["L"],n)},renderLine:function(t,e,i){var o=i.color,n=i.strokeWidth,r=i.dotted,a=i.connector,s=t.path([e]),u={stroke:o,"stroke-width":(0,c["default"])(n)?2:n,"stroke-linecap":"butt",opacity:a?0:1};return"transparent"===o&&(u.stroke="#fff",u["stroke-opacity"]=0),s.attr(u).node.setAttribute("class","auto-shape-rendering"),r&&s.attr(u).node.setAttribute("class","stroke-dasharray"),s},getEllipsisText:function(t,e,i){for(var o=String(t).split(""),n=o.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u<n;u+=1){if(s+=this.getRenderedTextSize(o[u],i.fontSize,i.fontFamily).width,s>=e){a+="..";break}a+=o[u]}return a},renderText:function(t,e,i,o){var n=t.text(e.left,e.top,(0,d["default"])(String(i)));return o&&(o["dominant-baseline"]?n.node.setAttribute("dominant-baseline",o["dominant-baseline"]):n.node.setAttribute("dominant-baseline","central"),n.attr(o)),n},renderArea:function(t,e,i){var o=t.path(e);return i=Object.assign({"stroke-opacity":0},i),o.attr(i),o},renderCircle:function(t,e,i,o){var n=t.circle(e.left,e.top,i);return o&&n.attr(o),n},renderRect:function(t,e,i){var o=t.rect(e.left,e.top,e.width,e.height);return i&&o.attr(i),o},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,o){e(t,i,o)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=(0,s["default"])(3).map(function(i){var o=parseInt(t.substr(2*i,2),16),n=o+o*e;return n=Math.round(Math.min(Math.max(0,n),255)).toString(16),y["default"].formatToZeroFill(n,2)}).join("");return"#"+i},getRenderedTextSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11,i=arguments[2],o=v.canvasElement;return o?this._getTextDimensionWithCanvas(t,e,i):this._getTextDimensionUseHtmlElement(t,e,i)},_getTextDimensionWithCanvas:function(t,e,i){var o=v.canvasElement,n=v.cacheFontInfo,r=o.getContext("2d"),a=e+"px "+i;return n!==a&&(v.cacheFontInfo=a,r.font=a),{width:r.measureText(t).width,height:e*_}},_getTextDimensionUseHtmlElement:function(t,e,i){var o=v.cacheFontInfo,n=v.elementForTextSize;if(!n){n=document.createElement("div");var r=n.style;this._setBasicHtmlElementStyleForGetTextSize(r),document.body.appendChild(n),v.elementForTextSize=n}var a=e+"px "+i;if(o!==a){var s=n.style;s.fontFamily=i,s.fontSize=e+"px",v.cacheFontInfo=a}return n.innerHTML=t,{width:n.clientWidth,height:n.clientHeight}},_setBasicHtmlElementStyleForGetTextSize:function(t){t.visibility="hidden",t.position="absolute",t.margin=0,t.padding=0,t.lineHeight=_,t.whiteSpace="nowrap"},animateOpacity:function(t,e,i,o){var r=n(o)?o:600,a=n(e)?e:0,s=n(i)?i:1,u=m["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)},getDefaultAnimationDuration:function(t){switch(t){case"boxplot":case"combo":case"pie":case"scatter":case"bubble":case"area":case"line":case"column":case"bar":return 700;case"heatmap":case"treemap":return 600;default:return 0}}}},function(t,e,i){"use strict";function o(t,e,i){var o,r=[];for(n(e)&&(e=t||0,t=0),i=i||1,o=i<0?-1:1,e*=o;t*o<e;t+=i)r.push(t);return r}var n=i(14);t.exports=o},function(t,e){"use strict";function i(t){return void 0===t}t.exports=i},function(t,e,i){"use strict";function o(t){return!n(t)&&!r(t)}var n=i(14),r=i(6);t.exports=o},function(t,e){"use strict";function i(t){var e={""":'"',"&":"&","<":"<",">":">","'":"'"," ":" "};return t.replace(/&|<|>|"|'| /g,function(t){return e[t]?e[t]:t})}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){t=(0,u["default"])(t)?t:[t],(0,A["default"])(t,e)}function a(t){return"alpha(opacity="+t*C["default"].OLD_BROWSER_OPACITY_100+")"}e.__esModule=!0;var s=i(9),u=o(s),l=i(18),h=o(l),c=i(15),p=o(c),d=i(19),f=o(d),m=i(14),g=o(m),y=i(20),_=o(y),v=i(8),T=o(v),b=i(10),A=o(b),x=i(22),D=o(x),E=i(23),C=o(E),L=i(24),S=o(L),M=i(27),P=o(M),w=D["default"].msie&&D["default"].version<=8,O=window.getComputedStyle||!1,R="clipRectForAnimation",I=0,k={concatStr:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return String.prototype.concat.apply("",e)},oneLineTrim:function(){var t=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return t.reduce(function(t,e,o){return t+i[o-1]+e})};return t.apply(void 0,arguments).replace(/\n\s*/g,"")},makeFontCssText:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var o=[t,i];return(0,T["default"])(e,function(t,e){o.push(t+e)}),o.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,o=e.fontFamily,n=e.fontWeight,r=e.cssText;t.style.fontSize=(i||C["default"].DEFAULT_LABEL_FONT_SIZE)+"px",o&&(t.style.fontFamily=o),n&&(t.style.fontWeight=n),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var o=this._makeCachingKey(t,e,i),n=this.sizeCache[o];if(!n){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerText=t,this._addCssStyle(r,e),document.body.appendChild(r),n=a[i],document.body.removeChild(r),this.sizeCache[o]=n}return n},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=S["default"].create("DIV","tui-chart-size-check-element"),e=S["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var o=0;if(t&&t.length){var n=t.map(function(t){return i(t,e)});o=P["default"].max(n)}return o},getRenderedLabelsMaxWidth:function(t,e,i){var o=this.getRenderedLabelWidth.bind(this),n=this._getRenderedLabelsMaxSize(t,e,o);return i?Math.min(i,n):n},getRenderedLabelsMaxHeight:function(t,e){var i=this.getRenderedLabelHeight.bind(this);return this._getRenderedLabelsMaxSize(t,e,i)},renderDimension:function(t,e){var i=e.width,o=void 0===i?0:i,n=e.height,r=void 0===n?0:n;t.style.cssText=[this.concatStr("width:",o,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){(0,g["default"])(e)||(0,A["default"])(["top","bottom","left","right"],function(i){var o=e[i];(0,f["default"])(o)&&(t.style[i]=o+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var o=k.makeFontCssText(e),n=S["default"].create("DIV",i);return n.innerHTML=t,e.background&&(o+=";"+this.concatStr("background:",e.background)),n.style.cssText=o,n},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*C["default"].SERIES_EXPAND_SIZE,height:e.height+2*C["default"].SERIES_EXPAND_SIZE},position:{left:i.left-C["default"].SERIES_EXPAND_SIZE,top:i.top-C["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,o=t.valueType,r=void 0===o?"value":o,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(n(i||[]));return l.reduce(function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.chartType,n=i.areaType,r=i.valueType;return e&&e.length?t.map(function(t){return k.formatValue({value:t,formatFunctions:e,chartType:o,areaType:n,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C["default"].DEFAULT_DATE_FORMAT,i=(0,h["default"])(t)?t:new Date(t);return(0,_["default"])(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C["default"].DEFAULT_DATE_FORMAT;return t.map(function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function o(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete n.id,i&&i()):n.id=requestAnimationFrame(o)}var n={},r=(new Date).getTime();return n.id=requestAnimationFrame(o),n},isOldBrowser:function(){return w},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length<e;)t=i+t;return t},formatToDecimal:function(t,e){var i=10,o=Math.pow(i,e);return 0===e?Math.round(t):(t=Math.round(t*o)/o,t=parseFloat(t).toFixed(e))},formatToComma:function(t){t=String(t);var e=",",i=3,o=t,r=t.indexOf("-")>-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=o;else{var h;s=t.split("").reverse(),u=s.length-1,s=s.map(function(t,o){var n=[t];return o<u&&(o+1)%i===0&&n.push(e),n}),l=r+(h=[]).concat.apply(h,n(s)).reverse().join("")+a}return l},makeCssTextFromMap:function(t){return t.map(function(t,e){return k.concatStr(e,":",t)}).join(";")},_perseString:function(t){return"string"==typeof t||"number"==typeof t?String(t):""},addPrefixSuffix:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),o=this._perseString(o),""!==i||""!==o?t.map(function(t){return e.addPrefixSuffixItem(t,i,o)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=O?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=R+I;return I+=1,t}};w?(k.makeOpacityCssText=function(t){var e="";if((0,p["default"])(t)){var i=a(t);e=";filter:"+i}return e},k.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(k.makeOpacityCssText=function(t){var e="";return(0,p["default"])(t)&&(e=";opacity:"+t),e},k.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=k},function(t,e){"use strict";function i(t){return t instanceof Date}t.exports=i},function(t,e){"use strict";function i(t){return"number"==typeof t||t instanceof Number}t.exports=i},function(t,e,i){"use strict";function o(t,e,i){var o,n,r,a;return t=Number(t),e=Number(e),i=Number(i),o=t>-1&&t<100||t>1969&&t<2070,n=e>0&&e<13,!(!o||!n)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),r=i>0&&i<=a)}function n(t,e,i){var n,u,l,c=r(i,"meridiemSet","AM")||"AM",p=r(i,"meridiemSet","PM")||"PM";return u=a(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute},!!o(u.year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(n=u.hour>11?p:c,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=n),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):h[t](u)||""}))}var r=i(21),a=i(18),s=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,u=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],l=[0,31,28,31,30,31,30,31,31,30,31,30,31],h={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return u[Number(t.month)].substr(0,3)},MMMM:function(t){return u[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return h.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return h.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return h.YY(t)},YYYY:function(t){var e="20",i=t.year;return i>69&&i<100&&(e="19"),Number(i)<100?e+String(i):i},yyyy:function(t){return h.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return h.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return h.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=n},function(t,e,i){"use strict";function o(t,e){for(var i=arguments,o=i[0],a=1,s=i.length;a<s;a+=1){if(n(o)||r(o))return;o=o[i[a]]}return o}var n=i(14),r=i(6);t.exports=o},function(t,e){"use strict";function i(){var t,e,i=window.navigator,n=i.appName.replace(/\s/g,"_"),r=i.userAgent,a=/MSIE\s([0-9]+[.0-9]*)/,s=/Trident.*rv:11\./,u=/Edge\/(\d+)\./,l={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},h={Microsoft_Internet_Explorer:function(){var t=r.match(a);t?(o.msie=!0,o.version=parseFloat(t[1])):o.others=!0},Netscape:function(){var i=!1;if(s.exec(r))o.msie=!0,o.version=11,i=!0;else if(u.exec(r))o.edge=!0,o.version=r.match(u)[1],i=!0;else for(t in l)if(l.hasOwnProperty(t)&&(e=r.match(l[t]),e&&e.length>1)){o[t]=i=!0,o.version=parseFloat(e[1]||0);break}i||(o.others=!0)}},c=h[n];c&&h[n]()}var o={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};window&&window.navigator&&i(),t.exports=o},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:10,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",
|
||
TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}e.__esModule=!0;var r=i(9),a=o(r),s=i(25),u=o(s),l=i(26),h=o(l),c=i(10),p=o(c);e["default"]={create:function(t,e){var i=document.createElement(t);return e&&this.addClass(i,e),i},_getClassNames:function(t){var e=void 0,i=void 0;return t.classList?i=[].concat(n(t.classList)):(e=t.className||"",i=e&&(0,u["default"])(e)?e.split(" "):[]),i},addClass:function(t,e){if(t&&e){var i=this._getClassNames(t),o=(0,h["default"])(e,i);o>-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),o=(0,h["default"])(e,i);o!==-1&&(i.splice(o,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),o=(0,h["default"])(e,i);return o>-1},findParentByClass:function(t,e,i){var o=t.parentNode,n=void 0;return n=o?this.hasClass(o,e)?o:"BODY"===o.nodeName||this.hasClass(o,i)?null:this.findParentByClass(o,e,i):null},append:function(t,e){t&&e&&(e=(0,a["default"])(e)?e:[e],(0,p["default"])(e,function(e){e&&t.appendChild(e)}))}}},function(t,e){"use strict";function i(t){return"string"==typeof t||t instanceof String}t.exports=i},function(t,e,i){"use strict";function o(t,e,i){var o,r;if(i=i||0,!n(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,i);for(r=e.length,o=i;i>=0&&o<r;o+=1)if(e[o]===t)return o;return-1}var n=i(9);t.exports=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e,i){var o=void 0;if(e){var r=p(t,1);o=r[0];var a=t.slice(1),s=e.call(i,o,0);a.forEach(function(t,n){var r=e.call(i,t,n+1);r<s&&(s=r,o=t)})}else o=Math.min.apply(Math,n(t));return o}function a(t,e,i){var o=void 0;if(e){var r=p(t,1);o=r[0];var a=t.slice(1),s=e.call(i,o,0);(0,T["default"])(a,function(t,n){var r=e.call(i,t,n+1);r>s&&(s=r,o=t)})}else o=Math.max.apply(Math,n(t));return o}function s(t,e,i){var o=!1;return(0,_["default"])(t,function(n,r){return e.call(i,n,r,t)&&(o=!0),!o}),o}function u(t,e,i){var o=!!(t||[]).length;return(0,_["default"])(t,function(n,r){return e.call(i,n,r,t)||(o=!1),o!==!1}),o}function l(t,e,i,o){var n=[];if((0,f["default"])(e)||(o=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;(0,T["default"])(t,function(e,a){e=i.call(o,e,a,t),a&&r===e||n.push(e),r=e})}else(0,T["default"])(t,function(e,r){e=i.call(o,e,r,t),(0,g["default"])(e,n)===-1&&n.push(e)});return n}function h(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var o=0;o<i;o+=1)e[o]||(e[o]=[]),e[o].push(t[o])}),e}function c(t,e){var i=Number(e),o=-1,n=!0,r=!1,a=void 0;try{for(var s,u=t.entries()[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var l=p(s.value,2),h=l[0],c=l[1];if(Number(c)===i){o=h;break}}}catch(d){r=!0,a=d}finally{try{!n&&u["return"]&&u["return"]()}finally{if(r)throw a}}return o}e.__esModule=!0;var p=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=i(28),f=o(d),m=i(26),g=o(m),y=i(8),_=o(y),v=i(10),T=o(v);e["default"]={min:r,max:a,any:s,all:u,unique:l,pivot:h,findIndexFromDateTypeArray:c}},function(t,e){"use strict";function i(t){return"boolean"==typeof t||t instanceof Boolean}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(["\n M",",","\n V","\n "],["\n M",",","\n V","\n "]),u=i(4),l=o(u),h=i(6),c=o(h),p=i(19),d=o(p),f=i(12),m=o(f),g=i(17),y=o(g),_=1,v=.3,T=.2,b=1,A=1,x=1,D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds;return i?(this.paper=t,this.theme=e.theme,this.options=e.options,this.seriesDataModel=e.seriesDataModel,this.chartType=e.chartType,this.animationDuration=e.options.animationDuration,this.paper.setStart(),this.groupWhiskers=[],this.groupMedians=[],this.groupBoxes=this._renderBoxplots(i),this.groupBorders=this._renderBoxBorders(i),this.circleOverlay=this._renderCircleOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderCircleOverlay=function(){var t={left:0,top:0},e={"fill-opacity":0};return m["default"].renderCircle(this.paper,t,0,Object.assign({"stroke-width":0},e))},t.prototype._renderBox=function(t,e,i){if(t.width<0||t.height<0)return null;var o=m["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i));return o},t.prototype._renderBoxes=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint;return t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(n,r),s=o?i[n]:i[r],u=e.animationDuration?t.start:t.end,l=void 0;return u&&(l=e._renderBox(u,s)),{rect:l,color:s,bound:t.end,item:a,groupIndex:n,index:r}})})},t.prototype._renderBoxplots=function(t){var e=this._renderBoxes(t);return this.groupWhiskers=this._renderWhiskers(t),this.groupMedians=this._renderMedianLines(t),this.groupOutliers=this._renderOutliers(t),e},t.prototype._renderWhisker=function(t,e,i){var o=this.paper,n=this.animationDuration,r=e.top-t.top,a=r>0?1:-1,u=t.left,l=t.width,h=l/4,c="M"+(u+h)+","+t.top+"H"+(u+3*h),p=y["default"].oneLineTrim(s,u+2*h,t.top,t.top+Math.abs(r)*a),d=m["default"].renderLine(o,c,{color:i,strokeWidth:b}),f=m["default"].renderLine(o,p,{color:i,strokeWidth:x}),g=[];return d.attr({opacity:n?0:1}),f.attr({opacity:n?0:1}),g.push(d),g.push(f),g},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),n.push(a)}),n},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),o=m["default"].renderLine(this.paper,i,{color:"#fff",strokeWidth:A});return o.attr({opacity:this.animationDuration?0:1}),o},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var o=[];t.forEach(function(t){t&&o.push(e._renderMedianLine(t.median))}),i.push(o)}),i},t.prototype._renderOutlier=function(t,e){var i=m["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:this.animationDuration?0:1}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),n.push(a)}),n},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,o){var n=this,r=this._makeBorderLinesPaths(t,i,o),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),o=i[0],r=i[1];s[o]=m["default"].renderLine(n.paper,r,{color:e,strokeWidth:1})}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;return i?t.map(function(t,o){return t.map(function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,e.chartType,r)})}):null},t.prototype._animateRect=function(t,e,i){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},i,">")},t.prototype.animate=function(t){var e=this;if(this.animationDuration){var i=l["default"].animation({opacity:1},this.animationDuration);m["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound,e.animationDuration)}),m["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(e.animationDuration))}),m["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(e.animationDuration))}),m["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(e.animationDuration))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},this.animationDuration))}},t.prototype.showAnimation=function(t){(0,d["default"])(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),m["default"].forEach2dArray(this.groupBoxes,function(t,e,o){if(t){var n=i[e][o].end;t.bound=n,m["default"].updateRectBound(t.rect,n)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var o=this.groupBoxes[t.groupIndex][t.index];if(o.rect.attr({stroke:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=l["default"].color(e.color),o=this.theme.selectionColor,n=m["default"].makeChangedLuminanceColor,r=o||n(i.hex,T),a=this.theme.borderColor;if(a){var s=l["default"].color(a);a=m["default"].makeChangedLuminanceColor(s.hex,T)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=(0,c["default"])(t);m["default"].forEach2dArray(this.groupBoxes,function(i,o,n){if(i){var r=e||t===n?_:v;i.rect.attr({"stroke-opacity":r})}}),m["default"].forEach2dArray(this.groupWhiskers,function(i,o,n){var r=e||t===n?_:v;i.attr({"stroke-opacity":r})}),m["default"].forEach2dArray(this.groupMedians,function(i,o,n){var r=e||t===n?_:v;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":n?"middle":"start"},a=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var s=e[o][n],u=m["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var l=m["default"].renderText(t,s.start,i.start,r);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),a.push(l)}})}),a},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,o){var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=o+"_rect",n.id=o,n.appendChild(r.node),t.defs.appendChild(n),r}e.__esModule=!0;var a=i(6),s=o(a),u=i(22),l=o(u),h=i(12),c=o(h),p=i(23),d=o(p),f=i(17),m=o(f),g=l["default"].msie&&l["default"].version<=8,y=1,_=.3,v=20,T=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.animationDuration=e.options.animationDuration,this.seriesDataModel=o,this.maxRangeCount=o.maxRangeCount,this.maxMarkerCount=o.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t<e&&!this.rangeOpacities[t]&&(this.rangeOpacities[t]=1-this.opacityStep*(t+1)),this.rangeOpacities[t]},t.prototype._updateOpacityStep=function(t){this.rangeOpacities={},this.opacityStep=Number(1/(t+1)).toFixed(2),this.prevMaxRangeCount=t},t.prototype._renderBounds=function(t){var e=this,i=this.theme.ranges,o=this.paper;this.groupBars=[],this.groupLines=[],t.forEach(function(t,n){var r=e.theme.colors[n],a=0,s=o.set(),u=o.set();t.forEach(function(t){var o=t.type;o===d["default"].BULLET_TYPE_ACTUAL?s.push(e._renderActual(t,r)):o===d["default"].BULLET_TYPE_RANGE?(s.push(e._renderRange(t,r,a,i[a])),a+=1):o===d["default"].BULLET_TYPE_MARKER&&u.push(e._renderMarker(t,r))}),e.groupBars.push(s),e.groupLines.push(u)},this)},t.prototype._renderActual=function(t,e){return t?this._renderBar(t,e):null},t.prototype._renderRange=function(t,e,i,o){var n=this._getRangeOpacity(i),r={opacity:n},a=e;return t?(o&&(a=o.color||a,r.opacity=o.opacity||n),this._renderBar(t,a,r)):null},t.prototype._renderBar=function(t,e,i){return t.width<0||t.height<0?null:c["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i))},t.prototype._renderMarker=function(t,e){return t?this._renderLine(t,e):null},t.prototype._renderLine=function(t,e){var i=t.top,o=t.left,n=t.length,r=this.isVertical?"L"+(o+n)+","+i:"L"+o+","+(i+n),a="M"+o+","+(i+r);return c["default"].renderLine(this.paper,a,{color:e,strokeWidth:d["default"].BULLET_MARKER_STROKE_TICK})},t.prototype.animate=function(t,e){var i=this,o=this.paper,n=this.dimension,a=this.position,s=this.animationDuration,u=this._getClipRectId(),l=n.width-v,h=n.height-v,c={},p={},d=this.clipRect;this.isVertical?(c.width=l,c.height=s?0:h,p.height=h):(c.width=s?0:l,c.height=h,p.width=l),!g&&n&&(d?(d.attr({x:a.left,y:a.top}),d.attr(c)):(d=r(o,a,c,u),this.clipRect=d),e.forEach(function(t){"set"===t.type?t.forEach(function(t){t.node.setAttribute("clip-path","url(#"+u+")")}):t.node.setAttribute("clip-path","url(#"+u+")")}),s&&d.animate(p,s,">",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},s))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,o=e.width,n=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(o,n),this.paper.setSize(o,n)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=m["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=(0,s["default"])(t);this.groupBars.forEach(function(o,n){var r=i||t===n?y:_;e.groupBars[n].attr({"fill-opacity":r}),e.groupLabels[n].attr({opacity:r}),e.groupLabels[n].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=this,r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,o){var s=t.set();return i.forEach(function(i,u){var l=n._renderLabel(t,e[o][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,o){var n=c["default"].renderText(t,e,o,i),r=n.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),n},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var o=[],n=t.groupLines[i].length;e.forEach(function(t){o.push(t.attrs.fill)});for(var r=o[o.length-1],a=0;a<=n;a+=1)o.push(r);return o})),this._graphColors},t}();e["default"]=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(6),u=o(s),l=i(19),h=o(l),c=i(32),p=o(c),d=i(12),f=o(d),m=1,g=.3,y=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=e.options,a=e.position,s=n.colors,u=r.showDot?1:0,l=r.spline,c=this.lineWidth=(0,h["default"])(r.pointWidth)?r.pointWidth:this.lineWidth,p=this.makeBorderStyle(n.dot.strokeColor,u,n.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(o,r.connectNulls):this._getLinesPath(o,r.connectNulls),this.paper=t,this.theme=n,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,f,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,o,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=o,this.groupPaths=f,this.dotOpacity=u,this.animationDuration=r.animationDuration,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,o){return e.map(function(e,n){var r=i[n]||"transparent",a=f["default"].renderLine(t,e.join(" "),{color:r,strokeWidth:o});return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=o,this.groupPaths=this.isSpline?this._getSplineLinesPath(o):this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){t.endDot&&e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=this,i=(0,u["default"])(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(o,n){var r=t===n,a=i||r?m:g,s=e.groupDots[n];o.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(o,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+1<this.groupLines.length?this.groupLines[t+1]:null;e&&(this.groupLines[t].insertBefore(e),this.groupDots[t].forEach(function(t){t&&t.endDot&&t.endDot.dot.insertBefore(e)}))},e.prototype.moveSeriesToFront=function(t,e){t.toFront(),e.forEach(function(t){t.endDot.dot.toFront()})},e.prototype.animateForAddingData=function(t,e,i,o){var n=this,r=t.options.spline,a=r?this._getSplineLinesPath(i):this._getLinesPath(i),s=0;i.length&&(o&&(s=1),this.groupLines.forEach(function(t,r){var u=n.groupDots[r],l=i[r];o&&n._removeFirstDot(u),u.forEach(function(t,i){var o=l[i+s];n._animateByPosition(t.endDot.dot,o,e)}),n._animateByPath(t,a[r],e)}))},e.prototype.renderSeriesLabel=function(t,e,i,o){var n={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,"text-anchor":"middle",opacity:0},r=t.set();return i.forEach(function(i,o){i.forEach(function(i,a){var s=e[o][a],u=f["default"].renderText(t,s.end,i.end,n);if(r.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),s.start){var l=f["default"].renderText(t,s.start,i.start,n);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),r.push(l)}})}),r},e}(p["default"]);e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i,o,n){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),a=t.rect(e.left,e.top,n?0:i.width,i.height);return a.id=o+"_rect",r.id=o,r.appendChild(a.node),t.defs.appendChild(r),a}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(22),l=o(u),h=i(15),c=o(h),p=i(6),d=o(p),f=i(19),m=o(f),g=i(14),y=o(g),_=i(12),v=o(_),T=i(17),b=o(T),A=i(33),x=o(A),D=i(27),E=o(D),C=i(23),L=o(C),S=l["default"].msie&&l["default"].version<=8,M=6,P=7,w=.3,O=300,R="over",I="out",k=function(){function t(){r(this,t)}return t.prototype._makeLinesPath=function(t,e,i){var o,r=[],a=!1;return e=e||"top",[].concat(t).forEach(function(t){var o=a&&!i?"M":"L";t?(r.push([o,t.left,t[e]]),a&&(a=!1)):a=!0}),r=(o=[]).concat.apply(o,n(r)),r.length>0&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,o){var n=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;o?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top<e.top?Math.PI-a:a,s=i.top<e.top?Math.PI-s:s;var u=Math.PI/2-(a+s)%(2*Math.PI)/2,l=n*Math.sin(u+a),h=n*Math.cos(u+a),c=r*Math.sin(u+s),p=r*Math.cos(u+s),d={x1:e.left-l,y1:e.top+h,x2:e.left+c,y2:e.top+p};return o&&(d.y1=e.top-h,d.y2=e.top-p),d},t.prototype._getSplinePositionsGroups=function(t,e){var i=[],o=[];return t.forEach(function(n,r){var a=r===t.length-1;n&&o.push(n),(!n&&o.length>0&&!e||a)&&(i.push(o),o=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,o=[],n=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var h=s(t,1),c=h[0],p=c;r=t.length,a=p,n=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(o,n){var r=t[n+2],s=i._getAnchor(a,o,r,e);return a=o,Math.abs(s.y1-c.top)>Math.abs(c.top-o.top)&&(s.y1=o.top),Math.abs(s.y2-r.top)>Math.abs(r.top-o.top)&&(s.y2=o.top),c=o,[s.x1,s.y1,o.left,o.top,s.x2,s.y2]}),l.push([n.left,n.top,n.left,n.top]),l.unshift(["M",p.left,p.top,"C",p.left,p.top]),o.push(l)}),o},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),o=this._getSplinePartialPaths(i,e.isReverseDirection),n=[];return o.forEach(function(t){n=n.concat(t)}),e.isBeConnected&&(n[0]=n[0].slice(3)),n},t.prototype._renderTooltipLine=function(t,e){var i=v["default"].makeLinePath({left:10,top:e},{left:10,top:0});return v["default"].renderLine(t,i,{color:"transparent",strokeWidth:1})},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var o={"stroke-width":i,"stroke-opacity":e};return t&&(o.stroke=t),o},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:M};return e&&Object.assign(i,e),i},t.prototype.renderDot=function(t,e,i,o){var n=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,(0,y["default"])(n.radius)?M:n.radius),s={fill:n.fillColor||i,"fill-opacity":(0,m["default"])(o)?o:n.fillOpacity,stroke:n.strokeColor||i,"stroke-opacity":(0,m["default"])(o)?o:n.strokeOpacity,"stroke-width":n.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){v["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,o,n){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,o)};if(r.hasRangeData){var a=Object.assign({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,o)}return n&&(n.push(i.endDot.dot),i.startDot&&n.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,o={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(o.fill=i.fillColor),t.dot.attr(o),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,o=!(0,d["default"])(this.selectedLegendIndex);this.groupLines&&((t===R||o)&&(i="radial"===this.chartType&&this.showArea?0:w),t===I&&o&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===R?w:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){
|
||
var e=t.index,i=this.groupDots[e],o=this._findDotItem(i,t.groupIndex),n=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(o){if("area"===this.chartType){var s=n;a=s.startLine,n=s.line,r=5,this._updateAreaOpacity(R)}else r=this.lineWidth;this._updateLineStrokeOpacity(R,n),this._updateLineStrokeWidth(n,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(o.endDot,e),o.startDot&&this._showDot(o.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=x["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=E["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),o=v["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:o,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var o=this._prevDotAttributes[e],n=this.outDotStyle;o&&!(0,y["default"])(i)&&(n={r:o.r,stroke:o.stroke,fill:o.fill,"stroke-opacity":o["stroke-opacity"],"stroke-width":o["stroke-width"],"fill-opacity":o["fill-opacity"]}),t.attr(n),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,o=this.groupDots[i],n=this._findDotItem(o,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(n){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(I)}else a=this.lineWidth;u&&!(0,d["default"])(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=w),this._updateLineStrokeOpacity(I,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),n&&(this._hideDot(n.endDot.dot,i,u),n.startDot&&this._hideDot(n.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!(0,d["default"])(this.selectedLegendIndex),o=this.dotOpacity,n=this._getPivotGroupDots();n&&n[t]&&n[t].forEach(function(t,n){var r=o;r&&i&&e.selectedLegendIndex!==n&&(r=w),t.endDot&&e._hideDot(t.endDot.dot,n,r),t.startDot&&e._hideDot(t.startDot.dot,n,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=Object.assign({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,o=this.dimension,n=this.position,r=this.animationDuration,s=this._getClipRectId(),u=this._makeClipRectPosition(n),l=this.clipRect;!S&&o&&(l?(this._makeClipRectPosition(n),l.attr({width:r?0:o.width,height:o.height,x:u.left,y:u.top})):(l=a(i,u,o,s,!!r),this.clipRect=l),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+s+")")}),r&&l.animate({width:o.width},r,">",t))},t.prototype._makeClipRectPosition=function(t){return{left:t.left-L["default"].SERIES_EXPAND_SIZE,top:t.top-L["default"].SERIES_EXPAND_SIZE}},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,P);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var o={cx:e.left,cy:e.top};(0,c["default"])(i)&&(o.transform="t-"+i+",0"),t.animate(o,O)},t.prototype._animateByPath=function(t,e,i){var o={path:e.join(" ")};(0,c["default"])(i)&&(o.transform="t-"+i+",0"),t.animate(o,O)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=b["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=k},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(28),r=o(n),a=i(7),s=o(a),u=i(23),l=o(u),h=i(27),c=o(h),p={isBarChart:function(t){return t===l["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===l["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return p.isBarChart(t)||p.isColumnChart(t)},isColumnTypeChart:function(t,e){return p.isHeatmapChart(t)||p.isColumnChart(t)||p.isBoxplotChart(t)||p.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===l["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===l["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===l["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=p.isAllowedStackOption(t),o=p.isNormalStack(e);return i&&o},isPercentStackChart:function(t,e){var i=p.isAllowedStackOption(t),o=p.isPercentStack(e);return i&&o},isComboChart:function(t){return t===l["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isColumnChart(t)});return p.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=c["default"].all(e,function(t){return p.isPieChart(t)});return p.isComboChart(t)&&i},isLineChart:function(t){return t===l["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===l["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isAreaChart(t)});return p.isComboChart(t)&&i},hasLineChart:function(t,e){var i=c["default"].any(e||[],function(t){return p.isLineChart(t)});return p.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=c["default"].all(e||[],function(t){return p.isLineChart(t)||p.isScatterChart(t)});return p.isComboChart(t)&&i},isLineTypeChart:function(t,e){return p.isLineChart(t)||p.isAreaChart(t)||p.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===l["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===l["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===l["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===l["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return p.isHeatmapChart(t)||p.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(l["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===l["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return p.isBubbleChart(t)||p.isScatterChart(t)},allowMinusPointRender:function(t){return p.isLineTypeChart(t)||p.isCoordinateTypeChart(t)||p.isBoxTypeChart(t)||p.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return p.isPieChart(t)||p.isMapChart(t)||p.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===l["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return p.isShowLabel(t)&&p.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===l["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===l["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===l["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return p.isLegendAlignTop(t)||p.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!p.isHorizontalLegend(t)},isAllowedStackOption:function(t){return p.isBarChart(t)||p.isColumnChart(t)||p.isAreaChart(t)},isNormalStack:function(t){return!!t&&t.type===l["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return!!t&&t.type===l["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return p.isNormalStack(t)||p.isPercentStack(t)},isAllowRangeData:function(t){return p.isBarTypeChart(t)||p.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===l["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===l["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===l["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isRenderConnector:function(t){return(0,r["default"])(t)&&t||(0,s["default"])(t)&&("solid"===t.type||"dotted"===t.type)}};e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=i(6),h=o(l),c=i(19),p=o(c),d=i(14),f=o(d),m=i(32),g=o(m),y=i(12),_=o(y),v=i(23),T=o(v),b=i(35),A=o(b),x=T["default"].GUIDE_AREACHART_AREAOPACITY_TYPE,D=T["default"].CLASS_NAME_SVG_AUTOSHAPE,E=1,C=.3,L=function(t){function e(){r(this,e);var i=a(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="area",i.lineWidth=0,i}return s(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=void 0===n?{}:n,a=e.position,s=e.zeroTop,u=e.hasRangeData,l=e.options,h=r.dot,c=void 0===h?{}:h,d=r.colors,f=l.spline,m=l.allowSelect,g=l.connectNulls,y=l.pointWidth,_=l.showDot,v=l.areaOpacity,T=this._isAreaOpacityNumber(v)?v:1,b=_?1:0,A=this.makeBorderStyle(c.strokeColor,b,c.strokeWidth),x=this.makeOutDotStyle(b,A),D=this.lineWidth=(0,p["default"])(y)?y:this.lineWidth;this.paper=t,this.theme=r,this.isSpline=f,this.dimension=i,this.position=a,this.zeroTop=s,this.hasRangeData=u,this.animationDuration=e.options.animationDuration,t.setStart(),this.groupPaths=this._getAreaChartPath(o,null,g),this.groupAreas=this._renderAreas(t,this.groupPaths,d,D,T),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,o,d,b),m&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor,this.hasRangeData&&(this.selectionStartDot=this._makeSelectionDot(t))),this.outDotStyle=x,this.groupPositions=o,this.dotOpacity=b,this.pivotGroupDots=null;var E=t.setFinish();return this._moveSeriesToFrontAll(),this.tooltipLine.toFront(),E},e.prototype._moveSeriesToFrontAll=function(){for(var t=this.groupPaths?this.groupPaths.length:0,e=0;e<t;e+=1)this.moveSeriesToFront(this.groupAreas[e],this.groupDots[e])},e.prototype._getAreaChartPath=function(t,e,i){return this.isSpline?this._makeSplineAreaChartPath(t,e):this._makeAreaChartPath(t,e,i)},e.prototype._renderAreas=function(t,e,i,o,n){i=i.slice(0,e.length),i.reverse(),e.reverse();var r=e.map(function(e,r){var a={},s=i[r]||"transparent",u=s,l=_["default"].renderArea(t,e.area.join(" "),{fill:s,opacity:n,stroke:s}),h=_["default"].renderLine(t,e.line.join(" "),{color:u,strokeWidth:o});return l.node.setAttribute("class",D),h.node.setAttribute("class",D),a.area=l,a.line=h,e.startLine&&(a.startLine=_["default"].renderLine(t,e.startLine.join(" "),{color:u,strokeWidth:0})),a});return r.reverse()},e.prototype._makeHeight=function(t,e){return Math.abs(t-e)},e.prototype._makeAreasPath=function(t,e){var i,o=[],r=t.length,a=[],s=[],l=[],h=!1;if(Object.entries(t).forEach(function(t){var e=u(t,2),i=e[0],n=e[1],a=void 0;n?(h?(a="M",h=!1):a="L",l.push([a,n.left,n.top]),s.unshift(["L",n.left,n.startTop])):(h=!0,s.push(["z"])),n&&parseInt(i,10)!==r-1||(o.push(l.concat(s)),l=[],s=[])}),o.forEach(function(t){a=a.concat(t)}),e!==!1){var c=t.length-1;a.splice(c+1,0,a[c],a[c+1])}return a=(i=[]).concat.apply(i,n(a)),a[0]="M",a},e.prototype._makeAreaChartPath=function(t,e,i){var o=this;return t.map(function(t){var n={area:o._makeAreasPath(t,e),line:o._makeLinesPath(t,null,i)};return o.hasRangeData&&(n.startLine=o._makeLinesPath(t,"startTop")),n})},e.prototype._makeSplineAreaChartPath=function(t,e){var i=this;return t.map(function(t){var o=t.concat().reverse().map(function(t){return{left:t.left,top:t.startTop}}),n=i._makeSplineLinesPath(t),r=i._makeSplineLinesPath(o,{isReverseDirection:!0,isBeConnected:!0}),a=JSON.parse(JSON.stringify(n)),s=JSON.parse(JSON.stringify(r));if(e!==!1){var u=t[t.length-1],l=o[o.length-1];a.push(["K",u.left,u.top]),a.push(["L",u.left,u.startTop]),s.push(["K",l.left,l.top]),s.push(["L",l.left,l.top])}return{area:a.concat(s),line:n}})},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions,n=t.zeroTop;this.resizeClipRect(i.width,i.height),this.zeroTop=n,this.groupPositions=o,this.groupPaths=this._getAreaChartPath(o),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){var n=e.groupAreas[i];n.area.attr({path:t.area.join(" ")}),n.line.attr({path:t.line.join(" ")}),n.startLine&&n.startLine.attr({path:t.startLine.join(" ")}),e.groupDots[i].forEach(function(t,n){var r=o[i][n];if(t.endDot&&e._moveDot(t.endDot.dot,r),t.startDot){var a=Object.assign({},r);a.top=a.startTop,e._moveDot(t.startDot.dot,a)}})})},e.prototype.selectLegend=function(t){var e=this,i=(0,h["default"])(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupAreas.forEach(function(o,n){var r=t===n,a=i||r?E:C,s=e.groupDots[n];o.area.attr({"fill-opacity":a}),o.line.attr({"stroke-opacity":a}),o.startLine&&o.startLine.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(o,s)})},e.prototype.resetSeriesOrder=function(t){var e=t+1<this.groupAreas.length?this.groupAreas[t+1]:null;if(e){var i=e.area;this.groupAreas[t].area.insertBefore(i),this.groupAreas[t].line.insertBefore(i),this.groupDots[t].forEach(function(t){t&&t.endDot&&t.endDot.dot.insertBefore(i)})}},e.prototype.moveSeriesToFront=function(t,e){t.line.toFront(),t.area.toFront(),t.startLine&&t.startLine.toFront(),e.forEach(function(t){t.endDot&&t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},e.prototype.animateForAddingData=function(t,e,i,o,n){var r=this,a=this._getAreaChartPath(i,!1),s=0;i.length&&(o&&(s=1),this.zeroTop=n,this.groupAreas.forEach(function(t,n){var u=r.groupDots[n],l=i[n],h=a[n];o&&r._removeFirstDot(u),u.forEach(function(t,i){var o=l[i+s];r._animateByPosition(t.endDot.dot,o,e),t.startDot&&r._animateByPosition(t.startDot.dot,{left:o.left,top:o.startTop},e)}),r._animateByPath(t.area,h.area,e),r._animateByPath(t.line,h.line,e),t.startLine&&r._animateByPath(t.startLine,h.startLine,e)}))},e.prototype.renderSeriesLabel=function(t,e,i,o){var n={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,"text-anchor":"middle",opacity:0},r=t.set();return i.forEach(function(i,o){i.forEach(function(i,a){var s=e[o][a],u=_["default"].renderText(t,s.end,i.end,n);if(r.push(u),u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),s.start){var l=_["default"].renderText(t,s.start,i.start,n);l.node.style.userSelect="none",l.node.style.cursor="default",l.node.setAttribute("filter","url(#glow)"),r.push(l)}})}),r},e.prototype._isAreaOpacityNumber=function(t){var e=(0,p["default"])(t);return e?(t<0||t>1)&&A["default"].print(x,"warn"):(0,f["default"])(t)||A["default"].print(x,"error"),e},e}(g["default"]);e["default"]=L},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(15),s=o(a),u=i(6),l=o(u),h=i(4),c=o(h),p=i(12),d=o(p),f=180,m=360,g=.01,y=Math.PI/f,_=1,v=.3,T=.2,b="overlay",A=20,x=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();this.animationDuration=e.options.animationDuration,this.paper=t;var n=r(e.options.radiusRange,1);return this.holeRatio=n[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,o),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,o},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,o,n){var r=o*y,a=n*y,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=n-o>f?1:0,p=["M",t,e,"L",s,u,"A",i,i,0,c,1,l,h,"Z"];return{path:p}},t.prototype._makeDonutSectorPath=function(t,e,i,o,n,r){var a=o*y,s=n*y,u=r||i*this.holeRatio,l=t+i*Math.sin(a),h=e-i*Math.cos(a),c=t+u*Math.sin(a),p=e-u*Math.cos(a),d=t+i*Math.sin(s),m=e-i*Math.cos(s),g=t+u*Math.sin(s),_=e-u*Math.cos(s),v=n-o>f?1:0,T=["M",l,h,"A",i,i,0,v,1,d,m,"L",g,_,"A",u,u,0,v,0,c,p,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",b),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,o=t.attrs;return o[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(o)},t.prototype._renderPie=function(t,e,i,o){var n=this,r=this.circleBound,a=this.chartBackground,s=this.animationDuration,u=[];return t.forEach(function(t,l){var h=t.ratio,c=t.angles,p=e[l],d=n._renderSector({paper:n.paper,circleBound:r,angles:s?c.start:c.end,attrs:{fill:s?a.color:p,stroke:a.color,"stroke-width":0}});d.node.setAttribute("class","auto-shape-rendering"),d.data("index",l),d.data("legendIndex",l+i),d.data("chartType",n.chartType),u.push({sector:d,color:p,angles:c.end,ratio:h}),o.push(d)}),u},t.prototype._showOverlay=function(t,e){var i=this.overlay,o=this.sectorInfos[t],n=o.angles.startAngle,r=o.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,n,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,o.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,o=this.animationDuration,n=[i.cx,i.cy,i.r],r=0;this.sectorInfos.forEach(function(t){var i=t.angles,a={fill:t.color};if(o){var s=o*t.ratio;0===i.startAngle&&i.endAngle===m&&(i.endAngle=m-g),a[e]=n.concat([i.startAngle,i.endAngle]);var u=c["default"].animation(a,s,">");t.sector.animate(u.delay(r)),r+=s}}),t&&setTimeout(t,r)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:(0,s["default"])(e.data("legendIndex"))?e.data("legendIndex"):-1,index:(0,s["default"])(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-A,top:e.top-A}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=c["default"].color(e.color),o=d["default"].makeChangedLuminanceColor(i.hex,T),n=this.selectionColor||o;e.sector.attr({fill:n})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=(0,l["default"])(t);this.sectorInfos.forEach(function(i,o){var n=e||t===o?_:v;i.sector.attr({"fill-opacity":n})})},t.prototype.getRenderedLabelWidth=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return d["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,o=t.labelFilter,n=t.dataType,r=t.ratioValues,a=t.seriesNames,s={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,u){var l=r[u],h=o&&!o({value:t.labels[u],labelType:n,seriesName:a[u],ratio:l}),c=void 0;h||(t.colors&&(s.fill=t.colors[u]),i&&(c=d["default"].renderText(t.paper,i,t.labels[u],s),c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[n].push(c),t.labelSet.push(c))},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=x},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(6),u=o(s),l=i(32),h=o(l),c=i(12),p=o(c),d=1,f=.3,m=6,g=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=m,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=n.colors,a=e.options,s=a.pointWidth,u=a.showDot,l=a.showArea,h=u?1:0,c=this._getLinesPath(o),p=this.makeBorderStyle(n.strokeColor,h,n.strokeWidth),d=this.makeOutDotStyle(h,p),f=t.set(),m=this.lineWidth=s?s:this.lineWidth,g=o.map(function(t){return t.pop(),t});return this.paper=t,this.theme=n,this.dimension=i,this.position=e.position,l&&(this.groupAreas=this._renderArea(t,c,r,f)),this.groupLines=this._renderLines(t,c,r,m,f),this.groupDots=this._renderDots(t,g,r,h,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=r,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=o,this.groupPaths=c,this.dotOpacity=h,this.showArea=l,f},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,o,n){return e.map(function(e,r){var a=i[r]||"transparent",s=p["default"].renderLine(t,e.join(" "),{color:a,strokeWidth:o});return n.push(s),s})},e.prototype._renderArea=function(t,e,i,o){var n=this;return e.map(function(e,r){var a=i[r]||"transparent",s=p["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":n.lineWidth,stroke:a});return o.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.groupPositions=o,this.groupPaths=this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.showArea&&e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=(0,u["default"])(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,o){var n=e||t===o?d:f;i.attr({"stroke-opacity":n})})},e}(h["default"]);e["default"]=g},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(4),a=o(r),s=i(15),u=o(s),l=i(6),h=o(l),c=i(14),p=o(c),d=i(12),f=o(d),m=.8,g=1,y=.8,_=.3,v=.2,T=2,b=20,A=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();return this.paper=t,this.animationDuration=e.options.animationDuration,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(o),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),o},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":g,"stroke-width":2},i=f["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(o,n){return o.map(function(o,r){var a=null;if(o){var s=i[r],u=f["default"].renderCircle(e.paper,o,e.animationDuration?0:o.radius,{fill:s,opacity:e.animationDuration?0:m,stroke:"none"});t.push(u),u.data("groupIndex",n),u.data("index",r),a={circle:u,color:s,bound:o}}return a})})},t.prototype._animateCircle=function(t,e,i){t.animate({r:e,opacity:m},i,">")},t.prototype.animate=function(){var t=this;f["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t.animationDuration&&t._animateCircle(e.circle,e.bound.radius,t.animationDuration)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(i.width,i.height),f["default"].forEach2dArray(this.groupCircleInfos,function(t,i,n){var r=o[i][n];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+T,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=_;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),((0,h["default"])(this.selectedLegend)||t.index===this.selectedLegend)&&(e=y),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,o=void 0;(0,p["default"])(o);){var n=i.getElementByPoint(t.left,t.top);n?n.attrs.opacity>_?o=n:(e.push(n),n.hide()):o=null}return o||(o=e[0]),e.forEach(function(t){t.show()}),o},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&(0,u["default"])(e.data("groupIndex"))){var i=e.data("groupIndex"),o=e.data("index"),n=[{},i,o,{left:t.left-b,top:t.top-b}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,n),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i],n=a["default"].color(o.color),r=this.theme.selectionColor,s=r||f["default"].makeChangedLuminanceColor(n.hex,v);
|
||
o.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i];o.circle.attr({fill:o.color})},t.prototype.selectLegend=function(t){var e=(0,h["default"])(t);this.selectedLegend=t,f["default"].forEach2dArray(this.groupCircleInfos,function(i,o,n){if(i){var r=e||t===n?y:_;i.circle.attr({opacity:r})}})},t}();e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(15),a=o(r),s=i(12),u=o(s),l=i(33),h=o(l),c=100,p=0,d=4,f=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=u["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,o){return u["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":o})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?d:p},t.prototype._renderBoxes=function(t,e,i,o){var n=this,r=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!n.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);n._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=n.colorSpectrum?n.borderWidth:n._getStrokeWidth(s===e),l=n.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var h=n._getBound(t);if(h){var c=n._getColor(t,e);a={rect:n._renderRect(h,c,u,l),seriesItem:t,color:c},o&&o.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,o=this.seriesDataModel.findSeriesItemsByParent(t.id);o.forEach(function(o,n){var r=o.depth;r===e?o.fillOpacity=1:r===e+1?o.fillOpacity=.05*n:r<e?o.fillOpacity=0:o.fillOpacity=t.fillOpacity+.05*n,o.hasChild&&i._setTreeFillOpacity({id:o.id,fillOpacity:o.fillOpacity},e)})},t.prototype._animateChangingColor=function(t,e,i,o,n){var r={"fill-opacity":(0,a["default"])(i)?i:1,stroke:o,"stroke-width":n};e&&(r.fill=e),t.animate(r,c,">")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,o=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(o=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:o,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),u["default"].forEach2dArray(this.boxesSet,function(t,i,o){if(t){var n=e._getBound(t.seriesItem,i,o);n&&u["default"].updateRectBound(t.rect,n)}})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,o){i.forEach(function(i,a){var s=u["default"].renderText(t,e[o][a].end,i,r);s.node.style.userSelect="none",s.node.style.cursor="default",n.push(s)})}),this.labelSet=n,n},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0};return i.forEach(function(i,o){if(e[o]){var a=u["default"].renderText(t,e[o],i,r);a.node.style.userSelect="none",a.node.style.cursor="default",n.push(a)}}),this.labelSet=n,n},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.id=i,e.forEach(function(t){g["default"].append(o,t.node)}),t.canvas.appendChild(o),o}e.__esModule=!0;var s=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(14),h=o(l),c=i(22),p=o(c),d=i(12),f=o(d),m=i(24),g=o(m),y=i(17),_=o(y),v=p["default"].msie&&p["default"].version<=8,T="gray",b=100,A="tui-chart-series-group",x="#eee",D=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),v||(this.g=a(t,this.sectorSet,A)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,o=this.paper,n=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?r.getColor(u):x,c=f["default"].renderArea(o,l,{fill:h,opacity:1,stroke:T,"stroke-width":.2,"stroke-opacity":1,transform:_["default"].oneLineTrim(s,e,e,n.left/e,n.top/e)});return c.data("index",a),i.push(c),{sector:c,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),o=!(0,h["default"])(i)&&this.sectors[i];return o&&!(0,h["default"])(o.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,b,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:T,"stroke-width":.2},b,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,o,n){var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},h=n.width-this.dimension.width,c=n.height-this.dimension.height,p=l.e/l.a,d=l.f/l.d,f=-h/l.a,m=-c/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-d*t);var g=u.e/u.a+p,y=u.f/u.d+d;g>=0?u.e=-p*u.a:g<f&&(u.e=f-p),y>=0?u.f=-d*u.a:y<m&&(u.f=m-d),s.a=u.a,s.b=u.b,s.c=u.c,s.d=u.d,s.e=u.e,s.f=u.f,a.setMatrix(s),r.appendItem(a),r.initialize(r.consolidate())},t.prototype.moveMapPaths=function(t,e){var i=this.paper.canvas.createSVGMatrix(),o=this.paper.raphael.matrix(),n=this.g.transform.baseVal,r=this.paper.canvas.createSVGTransform(),a=e.width-this.dimension.width,s=e.height-this.dimension.height,u=n.numberOfItems?n.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0};o.translate(t.x,t.y),this._translateXForRaphaelMatrix({raphaelMatrix:o,transformMatrix:u,maxRight:a}),this._translateYForRaphaelMatrix({raphaelMatrix:o,transformMatrix:u,maxTop:s}),i.a=o.a,i.b=o.b,i.c=o.c,i.d=o.d,i.e=o.e,i.f=o.f,r.setMatrix(i),n.appendItem(r),n.initialize(n.consolidate())},t.prototype._translateXForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,o=t.maxRight,n=e.e/e.a,r=n+i.e/i.a;r>=0&&n>0?e.e=0:r<0&&r<-o/i.a&&n<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,o=t.maxTop,n=e.f/e.d,r=n+i.f/i.d;r>=0&&n>0?e.f=0:r<0&&r<-o/i.d&&n<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var o={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:_["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},n=t.set();return e.forEach(function(e){var i=e.position,r=f["default"].renderText(t,i,e.name||e.code,o);n.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(r.node)}),n},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return y["default"].LEGEND_ICON_WIDTH+y["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=n(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(15),l=o(u),h=i(6),c=o(h),p=i(19),d=o(p),f=i(14),m=o(f),g=i(23),y=o(g),_=i(12),v=o(_),T=i(27),b=o(T),A=i(17),x=o(A),D=i(42),E=o(D),C=.5,L=8,S=10,M=S/2,P=3,w=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=y["default"].LEGEND_LABEL_LEFT_PADDING,o=Object.assign({},this.basePosition);t.forEach(function(t,n){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,l=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,c=o.left+e._calculateSingleLegendWidth(a,r),p=c>=e.paper.width;e.isHorizontal&&p&&(o.top+=e._legendItemHeight+y["default"].LABEL_PADDING_TOP,o.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(o,{isChecked:l.checked,legendIndex:a,legendSet:e.legendSet}),o.left+=e._checkBoxWidth+i),e._renderIcon(o,{legendColor:h,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),o.left+=y["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(o,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?o.left+=e.labelWidths[n]+y["default"].LEGEND_H_LABEL_RIGHT_PADDING:(o.left=e.basePosition.left,o.top+=e._legendItemHeight+y["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,o=this.dimension.height,n=this.paper.height,r=t;if(!this.isHorizontal&&o+2*i>n){this._legendItemHeight=Math.max(t[0].labelHeight,y["default"].LEGEND_CHECKBOX_SIZE);var a=n-2*i,s=this._legendItemHeight+y["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData;var e=[];if(this.originalLegendData.length){this._showCheckbox=(0,l["default"])(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var i=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(i),!this.isHorizontal&&i&&i.length<t.legendData.length){var o=this.paper.height-2*this.basePosition.top;this.availablePageCount=Math.ceil(t.dimension.height/o),e=this._renderPaginationArea(this.basePosition,{width:t.dimension.width,height:o})}}return{legendSet:this.legendSet,paginationElem:e}},t.prototype._paginateLegendAreaTo=function(t){var e=this._currentPageCount;this._removeLegendItems(),"next"===t?e+=1:e-=1,this._renderLegendItems(this._getLegendData(this.originalLegendData,e))},t.prototype._removeLegendItems=function(){this.legendSet.forEach(function(t){var e=t.events||[];e.forEach(function(t){t.unbind()}),t.remove()})},t.prototype._renderPaginationArea=function(t,e){var i=this,o=y["default"].LEGEND_PAGINATION_BUTTON_WIDTH,n=y["default"].LEGEND_PAGINATION_BUTTON_PADDING_RIGHT,r=y["default"].LEGEND_AREA_V_PADDING,a=y["default"].LEGEND_AREA_H_PADDING,s=t.top+e.height-r,u=t.left-a,l=u+a,h=E["default"].sum([l,n,o]),c=["M",h+5,",",s+P+4,"L",h+M+5,",",s+L+4,"L",h+S+5,",",s+P+4].join(""),p=["M",l+5,",",s+L+4,"L",l+M+5,",",s+P+4,"L",l+S+5,",",s+L+4].join(""),d=this._renderPaginationRect({top:s,left:l}),f={color:"#555",strokeWidth:2},m=v["default"].renderLine(this.paper,p,f),g=this._renderPaginationRect({top:s,left:h}),_=v["default"].renderLine(this.paper,c,f),T=this.paper.set(),b=this.paper.set();return d.className="tui-chart-icon",T.push(d),T.push(m),g.className="tui-chart-icon",b.push(g),b.push(_),T.click(function(){i._currentPageCount>1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),b.click(function(){i._currentPageCount<i.availablePageCount&&(i._paginateLegendAreaTo("next"),i._currentPageCount+=1)}),[T,b]},t.prototype._renderPaginationRect=function(t){var e=y["default"].LEGEND_PAGINATION_BUTTON_WIDTH,i={left:t.left,top:t.top,width:e,height:e},o=v["default"].renderRect(this.paper,i,{fill:"#f4f4f4",rx:"1px",ry:"1px",stroke:"none"});return o},t.prototype.makeLabelWidths=function(t,e,i){return t.map(function(t){var o=v["default"].getRenderedTextSize(t.label,e.fontSize,e.fontFamily).width;return i&&o>i&&(o=i),o+y["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return v["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,o=this.labelTheme,n={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:o.color,"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,opacity:e.isUnselected?C:1,"text-anchor":"start"},a=v["default"].renderText(this.paper,n,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,o=t.left,n=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=x["default"].oneLineTrim(s,.25*this._checkBoxWidth+o,.5*this._checkBoxHeight+n,a,a,r,r),l=this.paper.set(),h=this.paper.rect(o,n,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(h.node.setAttribute("class","auto-shape-rendering"),l.push(h),e.isChecked){var c=this.paper.path(u).attr({stroke:"#555","stroke-width":2});c.node.setAttribute("class","auto-shape-rendering"),l.push(c)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,o=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?o=v["default"].renderRect(this.paper,{left:t.left,top:t.top+(y["default"].LEGEND_CHECKBOX_SIZE-y["default"].LEGEND_ICON_HEIGHT)/2,width:y["default"].LEGEND_ICON_WIDTH,height:y["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?C:1}):(o=this.paper.path(y["default"].LEGEND_LINE_ICON_PATH),o.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?C:1}),o.translate(t.left,t.top)),o.data("icon",e.iconType),o.data("index",e.legendIndex),o.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(o)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),o="line"===e.data("icon")?"stroke-opacity":"opacity";(0,c["default"])(i)||(0,m["default"])(i)?e.attr(o,1):(0,m["default"])(i)||((0,d["default"])(t)&&i!==t?e.attr(o,C):e.attr(o,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+y["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:b["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return y["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+y["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,y["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=y["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=w},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(13),r=o(n),a=i(27),s=o(a),u=100,l={calculateLimit:function(t,e){var i={},o=0;t<0&&(o=t,e-=t,t=0);var n=(e-t)/20;return i.max=e+n+o,e/6>t?i.min=o:i.min=t-n+o,i},makeTickPixelPositions:function(t,e,i,o){var n=[];return i=i||0,e>0&&(n=(0,r["default"])(0,e).map(function(o){var n=0===o?0:o/(e-1);return n*t+i}),n[n.length-1]-=1),o&&n.push(o),n},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),o=Math.round(t.min*i),n=Math.round(t.max*i),a=(0,r["default"])(o,n+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=t.filter(function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=t.filter(function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,o){return e?(t-i)/e*o:0}},h=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},c=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e.map(function(t){return l.getDecimalLength(t)}),n=s["default"].max(o);return Math.pow(10,n)},p=function(t,e){var i=l.findMultipleNum(e),o=void 0;return o=1===i?t%e:t*i%(e*i)/i},d=function(t,e){var i=l.findMultipleNum(t,e);return(t*i+e*i)/i},f=function(t,e){var i=l.findMultipleNum(t,e);return(t*i-e*i)/i},m=function(t,e){var i=l.findMultipleNum(t,e);return t*i*(e*i)/(i*i)},g=function(t,e){var i=l.findMultipleNum(t,e);return t*i/(e*i)},y=function(t){var e=t.slice();return e.unshift(0),e.reduce(function(t,e){return l.add(parseFloat(t),parseFloat(e))})},_=function(t){for(var e,i=[],o=2;o*o<=t;o+=1)t%o===0&&(e=t/o,i.push(o),e!==o&&i.push(e));return i.sort(function(t,e){return t-e}),i};l.getDecimalLength=h,l.findMultipleNum=c,l.mod=p,l.add=d,l.subtract=f,l.multiply=m,l.divide=g,l.divisors=_,l.sum=y,e["default"]=l},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(12),s=o(a),u=i(23),l=o(u),h=i(17),c=o(h),p=i(33),d=o(p),f=i(42),m=o(f),g=360,y=270,_=2.5,v=function(){function t(){n(this,t),this.verticalRightBasePath=["M",-4,0,"L",-8,2.5,"L",-8,12.5,"L",-28,12.5,"L",-28,-12.5,"L",-8,-12.5,"L",-8,-2.5],this.verticalLeftBasePath=["M",10,0,"L",14,2.5,"L",14,12.5,"L",34,12.5,"L",34,-12.5,"L",14,-12.5,"L",14,-2.5],this.horizontalTopBasePath=["M",0,10,"L",2.5,14,"L",12.5,14,"L",12.5,34,"L",-12.5,34,"L",-12.5,14,"L",-2.5,14],this.horizontalBottomBasePath=["M",0,-4,"L",2.5,-8,"L",12.5,-8,"L",12.5,-28,"L",-12.5,-28,"L",-12.5,-8,"L",-2.5,-8]}return t.prototype.render=function(t){var e=t.layout,i=t.align,o=t.legendSet,n=t.theme,a=t.labels,s=d["default"].isHorizontalLegend(i),u=r(a,1),h=u[0],p=a[a.length-1],f=c["default"].getRenderedLabelsMaxWidth([h,p]),m=c["default"].getRenderedLabelHeight(h,n),g=d["default"].isBoxTypeChart(this.chartType),y=e.position;this.layout=e,this.isHorizontal=s,this.isLeftLegend=d["default"].isLegendAlignLeft(i),this.isTopLegend=d["default"].isLegendAlignTop(i),this.theme=n,this.paper=t.paper,this.legendSet=t.legendSet,this.colorSpectrum=t.colorSpectrum,d["default"].isLegendAlignTop(i)?y.top+=l["default"].MAP_LEGEND_AREA_PADDING_WIDE+m+2*l["default"].MAP_LEGEND_LABEL_PADDING:d["default"].isLegendAlignBottom(i)?(y.top+=this._calculateHorizontalLegendTooltipHeight(a,n)+l["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,g?y.top-=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:y.top+=l["default"].MAP_LEGEND_AREA_PADDING_WIDE):d["default"].isLegendAlignLeft(i)?y.left+=f+l["default"].MAP_LEGEND_LABEL_PADDING:y.left=e.position.right-f-l["default"].MAP_LEGEND_LABEL_PADDING-l["default"].MAP_LEGEND_GRAPH_SIZE;var _=this._renderGradientBar(this.paper,e,this.colorSpectrum,s);o.push(_),this.wedge=this._renderWedge(this.paper,y),this.wedgeText=this._renderWedgeText(this.paper,y,n),o.push(this.wedge),this.gradientBar=_},t.prototype.renderTickLabels=function(t,e,i,o,n){var a=this,u=this.theme,h={"font-size":u.fontSize,"font-family":u.fontFamily,"font-weight":u.fontWeight,fill:"#000"},p=r(i,1),f=p[0],m=i[i.length-1],g=c["default"].getRenderedLabelsMaxWidth([f,m]),y=c["default"].getRenderedLabelHeight(f,u);i.forEach(function(i,r){var u=e.step*r,c=Object.assign({},e.position);d["default"].isHorizontalLegend(o)?(c.left+=u,a.isTopLegend?c.top-=y/2:c.top+=y/2):(c.top+=u,a.isLeftLegend?(h["text-anchor"]="end",c.left=l["default"].CHART_PADDING+g):h["text-anchor"]="start"),n.push(s["default"].renderText(t,c,i,h))},this)},t.prototype._renderGradientBar=function(t,e,i,o){var n=void 0,r=void 0,a=void 0;o?(n=e.dimension.width,r=l["default"].MAP_LEGEND_GRAPH_SIZE,a=g,this._makeWedghPath=this._makeHorizontalWedgePath):(n=l["default"].MAP_LEGEND_GRAPH_SIZE,r=e.dimension.height,a=y,this._makeWedghPath=this._makeVerticalWedgePath);var u={left:e.position.left,top:e.position.top,width:n,height:r};return s["default"].renderRect(t,u,{fill:a+"-"+i.start+"-"+i.end,stroke:"none"})},t.prototype._renderWedgeText=function(t,e,i){return this.isLeftLegend&&(e.left+=l["default"].MAP_LEGEND_WEDGE_SIZE+l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING),s["default"].renderText(t,e,"",{"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color})},t.prototype._renderWedge=function(t,e){return t.path(this.verticalBasePath).attr({fill:"gray",stroke:"white","stroke-opacity":.2,opacity:0,transform:"t"+e.left+","+e.top})},t.prototype._makeVerticalWedgePath=function(t,e){var i=this.isLeftLegend,o=this.verticalBasePath=i?this.verticalLeftBasePath:this.verticalRightBasePath,n=l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,r=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,a=e.width,s=e.height;return o[2]=t,o[5]=t+_,o[8]=o[11]=t+s/2+r,o[14]=o[17]=t-s/2-r,o[20]=t-_,i?o[10]=o[13]=o[4]+a+2*n:o[10]=o[13]=o[4]-a-2*n,o},t.prototype._makeHorizontalWedgePath=function(t,e){var i=this.horiziontalBaseBath=this.isTopLegend?this.horizontalTopBasePath:this.horizontalBottomBasePath,o=l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,n=l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,r=e.width,a=e.height;return i[1]=t,i[4]=t+_,i[7]=i[10]=t+r/2+o,i[13]=i[16]=t-r/2-o,i[19]=t-_,this.isTopLegend?i[11]=i[14]=i[5]+a+2*n:i[11]=i[14]=i[5]-a-2*n,i},t.prototype.showWedge=function(t,e){var i=this.theme,o=s["default"].getRenderedTextSize(e,i.fontSize,i.fontFamily),n=this.isHorizontal?this.layout.dimension.width:this.layout.dimension.height,r=this._makeWedghPath(n*t,o);this.wedge.attr({path:r,opacity:1,fill:this.colorSpectrum.getColor(t)});var a=this.wedge.getBBox(),u=m["default"].sum([a.y,l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,o.height/2]),h=m["default"].sum([a.x,l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,o.width/2]);this.isLeftLegend&&(h+=l["default"].MAP_LEGEND_WEDGE_SIZE),this.isTopLegend&&(u+=l["default"].MAP_LEGEND_WEDGE_SIZE),this.wedgeText.attr({x:h,y:u,text:e,opacity:1}),this.wedge.toFront(),this.wedgeText.toFront()},t.prototype.hideWedge=function(){this.wedge.attr({opacity:0}),this.wedgeText.attr({opacity:0})},t.prototype.removeLocationURLFromFillAttribute=function(){var t=this.gradientBar,e=t.node.getAttribute("fill"),i=/url\('?([^#]+)#[^#]+'?\)/,o=i.exec(e),n=r(o,2);this.locationURL=n[1],t.node.setAttribute("fill",e.replace(this.locationURL,""))},t.prototype.restoreLocationURLToFillAttribute=function(){var t=this.gradientBar,e=t.node.getAttribute("fill");t.node.setAttribute("fill",e.replace("#",this.locationURL+"#"))},t.prototype._calculateHorizontalLegendTooltipHeight=function(t,e){var i=t.length?t[t.length-1]:"",o=c["default"].getRenderedLabelHeight(i,e);return m["default"].sum([2*l["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,o,l["default"].MAP_LEGEND_WEDGE_SIZE])},t.prototype._calculateVerticalLegendTooltipWidth=function(t,e){var i=t.length?t[t.length-1]:"",o=c["default"].getRenderedLabelWidth(i,e);return m["default"].sum([2*l["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,o,l["default"].MAP_LEGEND_WEDGE_SIZE])},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(12),a=o(r),s=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i,o,n){var r=e.position.left+e.dimension.width/2,s=t.set();return o.forEach(function(o,u){var l=i*o,h=e.position.top+e.dimension.height-l,c=a["default"].renderCircle(t,{left:r,top:h},l,{fill:"none",opacity:1,stroke:"#888","stroke-width":1});s.push(c),s.push(a["default"].renderText(t,{left:r,top:h-l-5},n[u]))}),s},t}();e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(12),a=o(r),s=i(23),u=o(s),l=function(){function t(){n(this,t)}return t.prototype.render=function(t){var e=t.paper,i=t.titleText,o=t.offset,n=t.theme,r=t.align,s=void 0===r?u["default"].TITLE_ALIGN_LEFT:r,l=t.chartTitleAreaWidth,h=n.fontSize,c=n.fontFamily,p=a["default"].getRenderedTextSize(i,h,c),d=e.set(),f=this.getTitlePosition(p,s,l,o),m={left:"start",right:"end",center:"middle"};return d.push(a["default"].renderText(e,f,i,{"font-family":n.fontFamily,"font-size":n.fontSize,"font-weight":n.fontWeight,fill:n.color,"text-anchor":m[s]})),d},t.prototype.getTitlePosition=function(t,e,i,o){var n=void 0;n=e===u["default"].TITLE_ALIGN_CENTER?i/2:e===u["default"].TITLE_ALIGN_RIGHT?i:u["default"].CHART_PADDING;var r={left:n,top:u["default"].CHART_PADDING+t.height/2};return o&&(o.x?r.left+=o.x:o.y&&(r.top+=o.y)),r},t.prototype.resize=function(t,e){e.attr({left:u["default"].CHART_PADDING})},t}();e["default"]=l},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){var i=l["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily);return i.height}function a(t,e){var i=l["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily);return i.width}function s(t,e){e&&(e.x&&(t.left+=e.x),e.y&&(t.top+=e.y))}e.__esModule=!0;var u=i(12),l=o(u),h=i(23),c=o(h),p=c["default"].Y_AXIS_TITLE_PADDING,d=c["default"].AXIS_BACKGROUND_RIGHT_PADDING,f=function(){function t(){n(this,t),this.ticks=[]}return t.prototype.renderBackground=function(t,e,i,o){var n=o&&o.background||{},r=n.color,a=void 0===r?"#fff":r,s=n.opacity,u=void 0===s?1:s;return l["default"].renderRect(t,{left:0,top:e.top,width:i.width+e.left-d,height:i.height},{fill:a,opacity:u,"stroke-width":0})},t.prototype.renderTitle=function(t,e){var i=e.theme,o=e.rotationInfo,n=i.fontFamily,r=i.fontSize,a=i.fontWeight,s=i.color,u=this.getRenderTitleAnchor(o),h={"dominant-baseline":"auto","font-family":n,"font-size":r,"font-weight":a,fill:s,transform:"none","text-anchor":u},c=this.calculatePosition(t,e),p=l["default"].renderText(t,c,e.text,h);p.node.style.userSelect="none",p.node.style.cursor="default",e.set.push(p)},t.prototype.getRenderTitleAnchor=function(t){var e="middle";return t.isPositionRight||!t.isVertical&&!t.isXAxisTitleLeft?e="end":(t.isVertical&&!t.isCenter||!t.isVertical&&t.isXAxisTitleLeft)&&(e="start"),e},t.prototype.renderLabel=function(t){var e=t.positionTopAndLeft,i=t.labelText,o=t.paper,n=t.theme,r=t.isVertical,a=t.isCenter,s={"dominant-baseline":"central","font-family":n.fontFamily,"font-size":n.fontSize,"font-weight":n.fontWeight,fill:n.color};t.isPositionRight?s["text-anchor"]="end":r&&!a?s["text-anchor"]="start":s["text-anchor"]="middle";var u=l["default"].renderText(o,e,i,s);u.node.style.userSelect="none",u.node.style.cursor="default",t.set.push(u),this.ticks.push(u)},t.prototype.renderRotatedLabel=function(t){var e=t.positionTopAndLeft,i=t.labelText,o=t.paper,n=t.theme,r=l["default"].renderText(o,e,i,{"dominant-baseline":"central","font-family":n.fontFamily,"font-size":n.fontSize,"font-weight":n.fontWeight,fill:n.color,"text-anchor":"end",transform:"r"+-t.degree+","+e.left+","+e.top});r.node.style.userSelect="none",r.node.style.cursor="arrow",t.set.push(r),this.ticks.push(r)},t.prototype.renderTicks=function(t){var e=this,i=t.paper,o=t.positions,n=t.additionalSize,r=t.isVertical,a=t.isCenter,s=t.isDivided,u=t.isPositionRight,l=t.tickColor,h=t.layout,c=h.position.left+h.dimension.width,p=h.position.top,d=h.position.left,f=s?t.otherSideDimension.width:0,m=function(t){var e=r?"height":"width";return t>h.dimension[e]+f},g=void 0;o.forEach(function(o){var s="M";o+=n,m(o)||(r?a?(s+=d+","+(p+o),s+="H"+(d+5),s+="M"+c+","+(p+o),s+="H"+(c-5)):u?(s+=d+","+(p+o),s+="H"+(d+5)):(s+=c+","+(p+o),s+="H"+(c-5)):(s+=d+o+","+p,s+="V"+(p+5)),isNaN(o)||(g=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(g),e.ticks.push(g)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,o=i.position,n=i.dimension,r=t.paper,a=t.isVertical,s=o.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),h=1-l/(u+l),c="M",p=o.top,d=s+n.width;if(a){var f=p;d+=t.seriesDimension.width*h,c+=d+","+f;var m=p+e;c+="V"+m}else{c+=s,p-=t.seriesDimension.height*h,c+=","+p+"H";var g=s+e;c+=g}t.set.push(r.path(c).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,o=t.layout,n=o.position,r=n.top,a=n.left,s=o.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,h=t.additionalSize,c=t.isPositionRight,p=t.isCenter,d=t.isVertical,f=t.tickColor,m=t.seriesDimension,g=e,y=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;c?(v+=a+","+r,
|
||
v+="V"+y):d?(T=r,u&&(_+=m.width/2),v+=_+","+T,p?(v+="V"+y,v+="M"+a+","+T,v+="V"+y):(b=r+g,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:m,lineSize:g}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:f,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,o=e.text,n=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,c=e.layout,d=r(o,n),f=a(o,n),m=c.dimension.height,g=c.dimension.width,y=c.position,_=y.top,v=y.left,T=v+u,b=f-l.width,A={top:_+m-d/2,left:T+(b<0?0:b)};return i.isVertical?i.isCenter?(A.top+=d/2,A.left=v+g/2):i.isDiverging||(A.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?A.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?A.left=v+g/2:i.isXAxisTitleLeft?A.left=c.position.left:A.left=c.position.left+g),i.isPositionRight&&(A.left+=g),i.isCenter||s(A,e.offset),A},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(12),s=o(a),u=i(27),l=o(u),h=8,c=3,p=function(){function t(){n(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),o=r(i[0],1),n=o[0],a=this.theme.lineColor,u=1;u<e.length;u+=1){var l=r(e[u],1),h=l[0],c=n.top-h.top;t.push(s["default"].renderCircle(this.paper,n,c,{stroke:a,"stroke-opacity":.05}))}},t.prototype._renderCategoryDots=function(t){var e=this,i=this._makePlotDotBounds(l["default"].pivot(this.plotPositions));i.forEach(function(i){var o=s["default"].renderRect(e.paper,i,{fill:"#000000","fill-opacity":.5,"stroke-width":0});t.push(o)},this)},t.prototype._makePlotDotBounds=function(t){var e=t.map(function(t){var e=t[t.length-1],i={top:e.top-2,left:e.left-2,width:4,height:4};return i});return e.pop(),e},t.prototype._renderLabels=function(t){var e=this.paper,i=this.theme,o=this.labelData,n={fill:i.lineColor,"font-size":i.label.fontSize,"font-family":i.label.fontFamily,"text-anchor":"end","font-weight":"100","dominant-baseline":"middle"};o.category.forEach(function(i){var o=Object.assign({},n,{"text-anchor":i.position.anchor,fill:"#333333"}),r=s["default"].renderText(e,i.position,i.text,o);r.node.style.userSelect="none",r.node.style.cursor="default",t.push(r)}),o.step.forEach(function(i){var o=s["default"].renderText(e,i.position,i.text,n);i.position.top-=h,i.position.left-=c,o.node.style.userSelect="none",o.node.style.cursor="default",t.push(o)})},t.prototype._renderLines=function(t,e,i){var o=this.paper;return t.map(function(t){var n=s["default"].renderLine(o,t.join(" "),{color:e,strokeWidth:1});return n.node.setAttribute("stroke-opacity",.05),i.push(n),n})},t.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},t.prototype._makeLinesPath=function(t,e,i){var o=[],n=!1;return e=e||"top",t.forEach(function(t){var r=n&&!i?"M":"L";t?(o.push([r,t.left,t[e]]),n&&(n=!1)):n=!0}),o=Array.prototype.concat.apply([],o),o[0]="M",o},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=arguments[3];if(e.table&&(e=N["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=k["default"].deepCopy(e),"combo"!==o){var n=e.series;e.series={},e.series[o]=n}i=i?k["default"].deepCopy(i):{},i.chartType=o,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME,i.series&&i.series.stackType&&(i.series.stack={type:i.series.stackType},delete i.series.stackType),i.series&&(0,x["default"])(i.series.stack)&&(i.series.stack={type:i.series.stack});var r=i.series&&i.series.colorByPoint,a=w["default"].get(i.theme,o,e.series,r),s=L["default"].get(i.chartType,e,a,i);return s.render(t),s.animateChart(),s}function r(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_SCATTER)}function c(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COMBO)}function f(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_PIE)}function m(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_MAP)}function g(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_RADIAL)}function y(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){w["default"].register(t,e)}function T(t,e){R["default"].register(t,e)}function b(t,e,i){M["default"].register(t,e),G["default"].addRendererType(t,i)}var A=i(25),x=o(A),D=i(23),E=o(D),C=i(49),L=o(C),S=i(51),M=o(S),P=i(52),w=o(P),O=i(54),R=o(O),I=i(55),k=o(I),B=i(57),N=o(B),F=i(60),G=o(F);i(61),i(62),i(175),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:c,treemapChart:p,comboChart:d,pieChart:f,mapChart:m,radialChart:g,boxplotChart:y,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(50),s=o(a),u=i(33),l=o(u),h={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var o=s["default"].getChartTypeMap(e);o[r["default"].CHART_TYPE_COLUMN]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:o[r["default"].CHART_TYPE_LINE]&&o[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:o[r["default"].CHART_TYPE_AREA]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:o[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,o){var n=this._findKey(t,e),r=h[n];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,o)},register:function(t,e){h[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(7),a=o(r),s=i(8),u=o(s),l=i(23),h=o(l),c=i(33),p=o(c),d=i(27),f=o(d);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),o=f["default"].unique(i);e&&(o=o.slice(0,2));var n=o.filter(function(t){return!!t});return n.length<o.length&&n.push(h["default"].DEFAULT_STACK),n},_sortSeriesData:function(t,e){var i=[];return e||(e=this.pickStacks(t)),e.forEach(function(e){var o=t.filter(function(t){return(t.stack||h["default"].DEFAULT_STACK)===e});i=i.concat(o)}),i},removeSeriesStack:function(t){Object.values(t).forEach(function(t){delete t.stack})},findChartType:function(t,e){var i=void 0;return t&&(i=t[e]),i||e},getChartTypeMap:function(t){var e=this,i={};return(0,a["default"])(t.series)&&(0,u["default"])(t.series,function(o,n){i[e.findChartType(t.seriesAlias,n)]=!0}),i},_createMinusValues:function(t){return t.map(function(t){return t<0?0:-t})},_createPlusValues:function(t){return t.map(function(t){return t<0?0:t})},_makeNormalDivergingRawSeriesData:function(t){return t.length=Math.min(t.length,2),t[0].data=this._createMinusValues(t[0].data),t[1]&&(t[1].data=this._createPlusValues(t[1].data)),t},_makeRawSeriesDataForStackedDiverging:function(t){var e=this,i=this.pickStacks(t,!0),o=[],r=n(i,2),a=r[0],s=r[1];return t=this._sortSeriesData(t,i),t.forEach(function(t){var i=t.stack||h["default"].DEFAULT_STACK;i===a?(t.data=e._createMinusValues(t.data),o.push(t)):i===s&&(t.data=e._createPlusValues(t.data),o.push(t))}),o},_makeRawSeriesDataForDiverging:function(t,e){return t=p["default"].isValidStackOption(e)?this._makeRawSeriesDataForStackedDiverging(t):this._makeNormalDivergingRawSeriesData(t)},updateRawSeriesDataByOptions:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p["default"].isValidStackOption(i.stack)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(o){var r=n(o,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stack)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var o=n(t,2),r=o[0],a=o[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var o=[];e.bullet.forEach(function(e,i){e&&o.push(t.categories[i])}),i.categories=o}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var o=i[e];if(!o)throw new Error("Not exist "+e+" chart renderer.");var n=new o;return n},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(15),u=o(s),l=i(7),h=o(l),c=i(8),p=o(c),d=i(23),f=o(d),m=i(33),g=o(m),y=i(53),_=o(y),v={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),v[t]=e},_pickSeriesNames:function(t,e){var i=[];return g["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(o){var r=n(o,2),s=r[0],u=r[1],l=t[s];(l||0===l)&&((0,a["default"])(l)?e[s]=l.slice():(0,h["default"])(l)?i._overwriteTheme(l,u):e[s]=l)})},_pickValidTheme:function(t,e){var i={};return f["default"].THEME_PROPS_MAP[e].forEach(function(e){(0,u["default"])(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,o){var n=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||n._pickValidTheme(e,o);Object.keys(a).length?(r[t]=JSON.parse(JSON.stringify(_["default"][o])),n._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var o=[],n=t.length,r=i||0,a=0;a<e;a+=1)o.push(t[r]),r+=1,r>=n&&(r=0);return o},_setSeriesColors:function(t,e,i,o,n){var r=this,a=void 0,s=void 0,u=void 0,l=0;i=i||{},t.forEach(function(t){i[t]?(a=i[t].colors,u=!0):(a=i.colors||_["default"].series.colors,u=!1),s=r._getSeriesThemeColorCount(o[t],n),e[t].colors=r._makeEachSeriesColors(a,s,!u&&l),u||(l=(s+l)%a.length)})},_getSeriesThemeColorCount:function(t,e){var i=0;if(t&&t.length){var o=t[0]&&t[0].data&&t[0].data.length;i=e&&o?Math.max(t.length,t[0].data.length):t.length}return i},_initTheme:function(t,e,i,o,n){var r=void 0;return t!==f["default"].DEFAULT_THEME_NAME?(r=JSON.parse(JSON.stringify(_["default"])),this._overwriteTheme(e,r)):r=JSON.parse(JSON.stringify(e)),r.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,r.yAxis,"yAxis"),r.series=this._createComponentThemeWithSeriesName(i,e.series,r.series,"series"),this._setSeriesColors(i,r.series,e.series,o,n),r},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return(0,p["default"])(t.yAxis,function(t){e.push(t.title,t.label)}),(0,p["default"])(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;(0,p["default"])(t.series,function(i,o){e._copySeriesColorTheme(i,t.legend,o),e._copySeriesColorTheme(i,t.tooltip,o)})},get:function(t,e,i,o){var n=v[t];if(!n)throw new Error("Not exist "+t+" theme.");var r=this._pickSeriesNames(e,i),a=this._initTheme(t,n,r,i,o);return this._inheritThemeFont(a,r),this._copySeriesColorThemeToOther(a),a}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",o="#ffffff",n="lighter",r="Arial",a=e.DEFAULT_LEGEND_LABEL_FONTCOLOR="#333",s="",u={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:o,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:n},yAxis:u,xAxis:u,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:n},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:s,borderWidth:s,selectionColor:s,startColor:"#FFE98A",endColor:"#D74177",overColor:s,dot:{fillColor:s,fillOpacity:1,strokeColor:s,strokeOpacity:s,strokeWidth:0,radius:6,hover:{fillColor:s,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:a,fontWeight:n}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(18),u=o(s),l=i(56),h=o(l),c=i(7),p=o(c),d=function f(t){var e=void 0;return(0,a["default"])(t)?(e=[],t.forEach(function(t,i){e[i]=f(t)})):(0,h["default"])(t)||(0,u["default"])(t)?e=t:(0,p["default"])(t)?(e={},Object.entries(t).forEach(function(t){var i=n(t,2),o=i[0],r=i[1];e[o]=f(r)})):e=t,e};e["default"]={deepCopy:d}},function(t,e){"use strict";function i(t){return t instanceof Function}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],o=(0,p["default"])(t.getElementsByTagName("TR"));(0,u["default"])(o,function(t,e){var o=0===e?"TH":"TD",n=(0,p["default"])(t.getElementsByTagName(o)),r=(0,h["default"])(n,"innerText");i.push(r)}),i[0].length<i[1].length&&i[0].unshift(""),e=f["default"].pivot(i)}return e}function a(t){var e=void 0;t.element&&"TABLE"===t.element.tagName?e=t.element:t.elementId&&(e=document.getElementById(t.elementId));var i=n(r(e));return i}e.__esModule=!0;var s=i(8),u=o(s),l=i(58),h=o(l),c=i(59),p=o(c),d=i(27),f=o(d);e["default"]={makeDataWithTable:a}},function(t,e,i){"use strict";function o(t,e){var i=[];return n(t,function(t){i.push(t[e])}),i}var n=i(8);t.exports=o},function(t,e,i){"use strict";function o(t){var e;try{e=Array.prototype.slice.call(t)}catch(i){e=[],n(t,function(t){e.push(t)})}return e}var n=i(10);t.exports=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(24),a=o(r),s=i(15),u=o(s),l={DOM:function(t){var e=a["default"].create("DIV");return a["default"].append(t,e),e}},h=function(){function t(){n(this,t)}return t.prototype.initDimension=function(t){this.dimension=t},t.prototype.getPaper=function(t,e){var i=this[e+"Paper"],o=(0,u["default"])(t)&&i&&a["default"].findParentByClass(i.canvas,"tui-chart")!==t;return i&&!o||(i=l[e].call(this,t,this.dimension),"DOM"!==e&&(this[e+"Paper"]=i)),i},t.addRendererType=function(t,e){l[t]=e},t}();e["default"]=h},function(t,e){"use strict";!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var i=(new Date).getTime(),o=Math.max(0,16-(i-t)),n=window.setTimeout(function(){e(i+o)},o);return t=i+o,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(23),r=o(n),a=i(49),s=o(a),u=i(63),l=o(u),h=i(153),c=o(h),p=i(154),d=o(p),f=i(156),m=o(f),g=i(157),y=o(g),_=i(159),v=o(_),T=i(160),b=o(T),A=i(161),x=o(A),D=i(162),E=o(D),C=i(163),L=o(C),S=i(164),M=o(S),P=i(165),w=o(P),O=i(168),R=o(O),I=i(169),k=o(I),B=i(172),N=o(B),F=i(173),G=o(F),H=i(174),V=o(H);s["default"].register(r["default"].CHART_TYPE_BAR,l["default"]),s["default"].register(r["default"].CHART_TYPE_COLUMN,c["default"]),s["default"].register(r["default"].CHART_TYPE_LINE,d["default"]),s["default"].register(r["default"].CHART_TYPE_AREA,m["default"]),s["default"].register(r["default"].CHART_TYPE_COLUMN_LINE_COMBO,y["default"]),s["default"].register(r["default"].CHART_TYPE_LINE_SCATTER_COMBO,v["default"]),s["default"].register(r["default"].CHART_TYPE_LINE_AREA_COMBO,b["default"]),s["default"].register(r["default"].CHART_TYPE_PIE_DONUT_COMBO,x["default"]),s["default"].register(r["default"].CHART_TYPE_PIE,E["default"]),s["default"].register(r["default"].CHART_TYPE_BUBBLE,L["default"]),s["default"].register(r["default"].CHART_TYPE_SCATTER,M["default"]),s["default"].register(r["default"].CHART_TYPE_HEATMAP,w["default"]),s["default"].register(r["default"].CHART_TYPE_TREEMAP,R["default"]),s["default"].register(r["default"].CHART_TYPE_MAP,k["default"]),s["default"].register(r["default"].CHART_TYPE_RADIAL,N["default"]),s["default"].register(r["default"].CHART_TYPE_BOXPLOT,G["default"]),s["default"].register(r["default"].CHART_TYPE_BULLET,V["default"])},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(23),h=o(l),c=i(50),p=o(c),d=i(33),f=o(d),m=function(t){function e(i,o,a){n(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-bar-chart",s._updateOptionsRelatedDiverging(),s}return a(e,t),e.prototype._updateOptionsRelatedDiverging=function(){var t=this.options;if(t.series=t.series||{},t.series.diverging){t.yAxis=t.yAxis||{},t.xAxis=t.xAxis||{},t.plot=t.plot||{},t.series.stack=t.series.stack||{type:h["default"].NORMAL_STACK_TYPE};var e=f["default"].isYAxisAlignCenter(this.hasRightYAxis,t.yAxis.align);t.yAxis.isCenter=e,t.xAxis.divided=e,t.series.divided=e,t.plot.divided=e}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("barSeries","barSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{xAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["bar","bar"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,o=this.chartType,n=i[o]||i,r=n.stack;this.dataProcessor.addDataRatios(t[o],r,o)},e}(u["default"]);e["default"]=m},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(15),u=o(s),l=i(25),h=o(l),c=i(8),p=o(c),d=i(65),f=o(d),m=i(67),g=o(m),y=i(23),_=o(y),v=i(69),T=o(v),b=i(129),A=o(b),x=i(50),D=o(x),E=i(24),C=o(E),L=i(17),S=o(L),M=i(55),P=o(M),w=i(141),O=o(w),R=i(52),I=o(R),k=i(33),B=o(k),N="UA-129983528-1",F=function(){function t(e){n(this,t),this.theme=e.theme,e.seriesTypes&&(this.seriesTypes=e.seriesTypes),e.chartTypes&&(this.chartTypes=e.chartTypes),this.originalOptions=P["default"].deepCopy(e.options),this._initializeOptions(e.options),this.chartType=this.options.chartType,this.hasAxes=e.hasAxes,this.isVertical=!!e.isVertical,this.dataProcessor=this._createDataProcessor(e),this.eventBus=new g["default"],this.prevXAxisData=null,this.componentManager=this._createComponentManager(),this.hasRightYAxis=(0,a["default"])(this.options.yAxis)&&this.options.yAxis.length>1,this.addComponents(),this._attachToEventBus(),this.componentManager.presetAnimationConfig(this.options.series.animation),this.options.usageStatistics&&(0,f["default"])("chart",N)}return t.prototype.destroy=function(){var t=this;this.eventBus.off(),this.chartContainer.outerHTML="",(0,p["default"])(this,function(e,i){t[i]=null})},t.prototype.selectSeries=function(t){var e=t.legendIndex,i=t.index,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.componentManager.get("mouseEventDetector").selectSeries({chartType:this.chartType,indexes:{groupIndex:i,index:e}},o)},t.prototype.unselectSeries=function(){this.componentManager.get("mouseEventDetector").unselectSeries()},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){(0,u["default"])(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=(0,a["default"])(t)?t:[t];i.forEach(function(t){var i=t.title;(0,h["default"])(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=P["default"].deepCopy(t),i={chartTypes:this.chartTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||A["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new T["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return O["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=C["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,o=this.dataProcessor,n=o.getLegendVisibility(),r=D["default"].filterCheckedRawData(o.rawData,n),a=i.drawingToolPicker.getPaper(e,_["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),a.changeChartBackgroundColor(this.theme.chart.background.color),a.changeChartBackgroundOpacity(this.theme.chart.background.opacity),S["default"].renderFontFamily(e,this.theme.chart.fontFamily),C["default"].append(t,e);var s=this.readyForRender();S["default"].renderDimension(e,s.dimensionMap.chart),i.render("render",s,{checkedLegends:n},e),this.chartContainer=e,this.paper=a},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=D["default"].filterCheckedRawData(i.getCurrentData(),t)),this.dataProcessor.initData(e);var o=this.readyForRender();this.componentManager.render("rerender",o,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,o){var n=i[o],r=t[o];return e[o]=n.map(function(t,e){return t.visible=r[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._initializeRawData(t),o=this.dataProcessor,n=this.options,r=n.chartType,a=n.theme;o.initData(i,!0);var s=I["default"].get(a,r,i.series);this.theme=s,this.componentManager.presetBeforeRerender(),this.componentManager.presetForChangeData(s),this.componentManager.presetAnimationConfig(e),this.protectedRerender(o.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){this.prevXAxisData=null;var e=P["default"].deepCopy(t),i=this.originalOptions,o=i.chartType,n=i.series;if("combo"!==o&&(0,a["default"])(e.series)){var r=e.series;e.series={},e.series[o]=r}return D["default"].updateRawSeriesDataByOptions(e,n),"boxplot"===o&&D["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){_["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(_["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var o=this._updateChartDimension(t);if(o){var n=this.readyForRender(),r=n.dimensionMap.chart;S["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.paper.setSize(r.width,r.height),this.componentManager.render("resize",n,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var o={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(o)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),o=i?i.length:0,n=-1,r=0;r<o;r+=1)if(i[r]===e){
|
||
n=r;break}return n},t.prototype._findDataByIndexes=function(t,e){return this.componentManager.get("mouseEventDetector").findDataByIndexes(t,e)},t.prototype.showTooltip=function(t){var e=void 0,i=void 0;if(B["default"].isSupportPublicShowTooptipAPI(this.chartType)){var o=this.options.tooltip&&this.options.tooltip.grouped,n=this.componentManager.get("mouseEventDetector");o?i={indexes:{groupIndex:t.index}}:(e=this._findSeriesIndexByLabel(t.chartType,t.legend),i=this._getSeriesData(t.index,e,t.outlierIndex)),i?(i.silent=!0,n._showTooltip(i)):this.hideTooltip()}},t.prototype.hideTooltip=function(){if(B["default"].isSupportPublicShowTooptipAPI(this.chartType)){var t=this.options.tooltip&&this.options.tooltip.grouped,e=this.componentManager.get("mouseEventDetector");(t&&e.prevIndex>=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=F},function(t,e,i){"use strict";function o(t){var e=(new Date).getTime();return e-t>s}function n(t,e){var i="https://www.google-analytics.com/collect",n=location.hostname,s="event",u="use",l="TOAST UI "+t+" for "+n+": Statistics",h=window.localStorage.getItem(l);(r(window.tui)||window.tui.usageStatistics!==!1)&&(h&&!o(h)||(window.localStorage.setItem(l,(new Date).getTime()),setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||a(i,{v:1,t:s,tid:e,cid:n,dp:n,dh:t,el:t,ec:u})},1e3)))}var r=i(14),a=i(66),s=6048e5;t.exports=n},function(t,e,i){"use strict";function o(t,e){var i=document.createElement("img"),o="";return n(e,function(t,e){o+="&"+e+"="+t}),o=o.substring(1),i.src=t+"?"+o,i.style.display="none",document.body.appendChild(i),document.body.removeChild(i),i}var n=i(11);t.exports=o},function(t,e,i){"use strict";function o(){this.events=null,this.contexts=null}var n=i(68),r=i(15),a=i(25),s=i(7),u=i(9),l=i(56),h=i(8),c=/\s+/g;o.mixin=function(t){n(t.prototype,o.prototype)},o.prototype._getHandlerItem=function(t,e){var i={handler:t};return e&&(i.context=e),i},o.prototype._safeEvent=function(t){var e,i=this.events;return i||(i=this.events={}),t&&(e=i[t],e||(e=[],i[t]=e),i=e),i},o.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},o.prototype._indexOfContext=function(t){for(var e=this._safeContext(),i=0;e[i];){if(t===e[i][0])return i;i+=1}return-1},o.prototype._memorizeContext=function(t){var e,i;r(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1?e[i][1]+=1:e.push([t,1]))},o.prototype._forgetContext=function(t){var e,i;r(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1&&(e[i][1]-=1,e[i][1]<=0&&e.splice(i,1)))},o.prototype._bindEvent=function(t,e,i){var o=this._safeEvent(t);this._memorizeContext(i),o.push(this._getHandlerItem(e,i))},o.prototype.on=function(t,e,i){var o=this;a(t)?(t=t.split(c),h(t,function(t){o._bindEvent(t,e,i)})):s(t)&&(i=e,h(t,function(t,e){o.on(e,t,i)}))},o.prototype.once=function(t,e,i){function o(){e.apply(i,arguments),n.off(t,o,i)}var n=this;return s(t)?(i=e,void h(t,function(t,e){n.once(e,t,i)})):void this.on(t,o,i)},o.prototype._spliceMatches=function(t,e){var i,o=0;if(u(t))for(i=t.length;o<i;o+=1)e(t[o])===!0&&(t.splice(o,1),i-=1,o-=1)},o.prototype._matchHandler=function(t){var e=this;return function(i){var o=t===i.handler;return o&&e._forgetContext(i.context),o}},o.prototype._matchContext=function(t){var e=this;return function(i){var o=t===i.context;return o&&e._forgetContext(i.context),o}},o.prototype._matchHandlerAndContext=function(t,e){var i=this;return function(o){var n=t===o.handler,r=e===o.context,a=n&&r;return a&&i._forgetContext(o.context),a}},o.prototype._offByEventName=function(t,e){var i=this,o=l(e),n=i._matchHandler(e);t=t.split(c),h(t,function(t){var e=i._safeEvent(t);o?i._spliceMatches(e,n):(h(e,function(t){i._forgetContext(t.context)}),i.events[t]=[])})},o.prototype._offByHandler=function(t){var e=this,i=this._matchHandler(t);h(this._safeEvent(),function(t){e._spliceMatches(t,i)})},o.prototype._offByObject=function(t,e){var i,o=this;this._indexOfContext(t)<0?h(t,function(t,e){o.off(e,t)}):a(e)?(i=this._matchContext(t),o._spliceMatches(this._safeEvent(e),i)):l(e)?(i=this._matchHandlerAndContext(e,t),h(this._safeEvent(),function(t){o._spliceMatches(t,i)})):(i=this._matchContext(t),h(this._safeEvent(),function(t){o._spliceMatches(t,i)}))},o.prototype.off=function(t,e){a(t)?this._offByEventName(t,e):arguments.length?l(t)?this._offByHandler(t):s(t)&&this._offByObject(t,e):(this.events={},this.contexts=[])},o.prototype.fire=function(t){this.invoke.apply(this,arguments)},o.prototype.invoke=function(t){var e,i,o,n;if(!this.hasListener(t))return!0;for(e=this._safeEvent(t),i=Array.prototype.slice.call(arguments,1),o=0;e[o];){if(n=e[o],n.handler.apply(n.context,i)===!1)return!1;o+=1}return!0},o.prototype.hasListener=function(t){return this.getListenerLength(t)>0},o.prototype.getListenerLength=function(t){var e=this._safeEvent(t);return e.length},t.exports=o},function(t,e){"use strict";function i(t,e){var i,o,n,r,a=Object.prototype.hasOwnProperty;for(n=1,r=arguments.length;n<r;n+=1){i=arguments[n];for(o in i)a.call(i,o)&&(t[o]=i[o])}return t}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(28),l=o(u),h=i(19),c=o(h),p=i(7),d=o(p),f=i(21),m=o(f),g=i(23),y=o(g),_=i(24),v=o(_),T=i(70),b=o(T),A=i(71),x=o(A),D=i(72),E=o(D),C=i(73),L=o(C),S=i(75),M=o(S),P=i(60),w=o(P),O=i(81),R=o(O),I=i(86),k=o(I),B=i(87),N=o(B),F=i(88),G=o(F),H=i(94),V=o(H),z=i(96),j=o(z),W=i(97),Y=o(W),U=i(101),X=o(U),Z=i(108),K=o(Z),q=i(112),J=o(q),Q=i(113),$=o(Q),tt=i(115),et=o(tt),it=i(116),ot=o(it),nt=i(117),rt=o(nt),at=i(119),st=o(at),ut=i(120),lt=o(ut),ht=i(121),ct=o(ht),pt=i(122),dt=o(pt),ft=i(123),mt=o(ft),gt=i(125),yt=o(gt),_t=i(126),vt=o(_t),Tt=i(127),bt=o(Tt),At=i(12),xt=o(At),Dt={axis:b["default"],plot:x["default"],radialPlot:L["default"],legend:R["default"],spectrumLegend:k["default"],circleLegend:N["default"],tooltip:G["default"],groupTooltip:V["default"],mapChartTooltip:j["default"],mapChartEventDetector:Y["default"],mouseEventDetector:X["default"],barSeries:K["default"],columnSeries:J["default"],lineSeries:$["default"],radialSeries:et["default"],areaSeries:ot["default"],bubbleSeries:rt["default"],scatterSeries:st["default"],mapSeries:lt["default"],pieSeries:ct["default"],heatmapSeries:dt["default"],treemapSeries:mt["default"],boxplotSeries:yt["default"],bulletSeries:vt["default"],zoom:bt["default"],chartExportMenu:M["default"],title:E["default"]},Et=function(){function t(e){n(this,t);var i=e.options.chart,o=(0,m["default"])(i,"width")||y["default"].CHART_DEFAULT_WIDTH,r=(0,m["default"])(i,"height")||y["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new w["default"],this.drawingToolPicker.initDimension({width:o,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,o){return t=t||this.options[e],t=(0,s["default"])(t)?t[o]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.index||0,n=Dt[e],r=n.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(r,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,o),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=n(i);s&&(s.componentName=t,s.componentType=r,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetBeforeRerender=function(){this.componentMap.mouseEventDetector.zoomable&&this.componentMap.mouseEventDetector.presetBeforeRerender()},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,o=t.componentName,n=e._getOptionKey(i,o);t.presetForChangeData(e._makeTheme(n,o))}})},t.prototype.presetAnimationConfig=function(t){var e=this;this.seriesTypes.forEach(function(i){(0,d["default"])(e.options.series[i])?e.options.series[i].animationDuration=e._getAnimationDuration(t):e.options.series.animationDuration=e._getAnimationDuration(t)})},t.prototype._getAnimationDuration=function(t){return(0,l["default"])(t)&&!t?0:(0,d["default"])(t)&&(0,c["default"])(t.duration)?t.duration:xt["default"].getDefaultAnimationDuration(this.options.chartType)},t.prototype._makeOptions=function(t,e,i){var o=this.options[t];return o||"rightYAxis"!==t||(o=this.options.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(o=o[t]||o,(0,s["default"])(o)&&(o=o[i]||{}),!1)}),o},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,o,n){var r=Object.assign({paper:i},n);return o&&(Object.assign(r,o),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,o){var n=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=n.drawingToolPicker.getPaper(o,r.drawingType),h=n._makeDataForRendering(s,u,l,e,i),c=r[t](h);c&&!c.paper&&(a=c)}return a});o&&v["default"].append(o,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var o=r(t,2),n=o[0],a=o[1];return e[n]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];this.components.forEach(function(e){e[t]&&e[t].apply(e,i)})},t.prototype.get=function(t){return this.componentMap[t]},t.prototype.has=function(t){return!!this.get(t)},t}();e["default"]=Et},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartOptions,i=t.name,o=t.theme,n=t.seriesTypes,r=e.chartType,a=e.series;return t.isYAxis="yAxis"===i||"rightYAxis"===i,t.shifting=a.shifting,"combo"===r?t.isYAxis?t.theme=o[n[0]]:"rightYAxis"===i&&(t.componentType="yAxis",t.theme=o[n[1]],t.index=1):t.isYAxis?t.theme=o[r]:t.theme=o,new x(t)}e.__esModule=!0,e["default"]=r;var a=i(14),s=o(a),u=i(23),l=o(u),h=i(33),c=o(h),p=i(42),d=o(p),f=i(51),m=o(f),g=i(17),y=o(g),_=i(12),v=o(_),T=l["default"].AXIS_EDGE_RATIO,b=l["default"].X_AXIS_LABEL_PADDING,A=l["default"].COMPONENT_TYPE_RAPHAEL,x=function(){function t(e){n(this,t);var i=e.dataProcessor,o=e.options,r=e.chartTheme,a=e.theme,s=e.name,u=e.isYAxis,l=e.shifting;this.className="tui-chart-axis-area",this.dataProcessor=i,this.options=o||{},this.theme=Object.assign({},a,{background:r.chart.background}),this.isLabelAxis=!1,this.isYAxis=u,this.shifting=l,this.data={},this.layout=null,this.dimensionMap=null,this.axisDataMap=null,this.graphRenderer=m["default"].get(A,"axis"),this.drawingType=A,this.paperAdditionalWidth=0,this.paperAdditionalHeight=0,this._elBg=null,this.isRightYAxis="rightYAxis"===s}return t.prototype._renderBackground=function(){var t=Object.assign({},this.layout.dimension),e=Object.assign({},this.layout.position);this._elBg&&this._elBg.remove(),this._elBg=this.graphRenderer.renderBackground(this.paper,e,t,this.theme.background)},t.prototype._renderChildContainers=function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=c["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},l=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,o),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,o),n||this._renderTickArea(t,e,o),a&&s&&!l&&this._renderNegativeStandardsLine(t,o,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,o=i.tickCount,n=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(o/2,10)+1,u=n.slice(0,s),l=n.slice(s-1,o),h=r/s,c=r+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=h,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,c)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,o=this.data,n=o.positionRatio,r=o.tickCount,a=o.labels,s=this.isYAxis,u=s?i:e,l=0;n&&(l=u*n),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,o=i.divided,n=i.isCenter,r=t.width;this.isLabelAxis=e,o?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=n?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,o=t.limitMap,n=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=o,this.data=n[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,o=void 0===i?{}:i,n=this.dataProcessor.getOption("xAxis"),r=this.dataProcessor.getOption("yAxis"),a=this.dataProcessor.getOption("series")||{};o.text&&this.graphRenderer.renderTitle(this.paper,{text:o.text,offset:o.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:c["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:a.diverging,isYAxisCenter:r&&"center"===r.align,isXAxisTitleLeft:n&&n.title&&"left"===n.title.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,o){var n=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,h=r.isPositionRight,c=a?t:0,p=this.isYAxis,f=this.data.options,m=f.isCenter,g=f.divided,y=d["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=c?l+1:l;y.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:y,isVertical:p,isCenter:m,isDivided:g,additionalSize:o,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:n,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,o){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:o})},t.prototype._renderTickArea=function(t,e,i){var o=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,o,i||0),this._renderTicks(t,e,o,i||0)},t.prototype._renderLabelArea=function(t,e,i,o){var n=this.data,r=n.sizeRatio,a=void 0===r?1:r,s=n.remainLastBlockInterval,u=s?t:0,l=d["default"].makeTickPixelPositions(t*a,e,0,u),h=l[1]-l[0];this._renderLabels(l,i,h,o||0)},t.prototype._renderRotationLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/T,c=this.layout.position,p=c.top,d=c.left,f=p+b,m=d,g=this.options.labelMargin||0;t.forEach(function(t,c){var p=t+(o||0),d={};a?(d.top=p+l,d.left=i+g):(d.top=f+g,d.left=m+p+h),r.renderRotatedLabel({degree:u,labelText:e[c],paper:n.paper,positionTopAndLeft:d,set:n.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,l=this.layout,h=this.data.isPositionRight,p=this.theme.label,d=this.options,f=d.labelMargin,m=void 0===f?0:f,g=d.pointOnColumn,_=d.isCenter,T=d.maxWidth,b=c["default"].isLineTypeChart(u.chartType,u.seriesTypes),A=b&&g,x=c["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,c){var d=u+o,f=i/2,g=n._isOverLapXAxisLabel(e[c],u,t[c+1]),D={};if(!(d<0||!a&&x&&g)){D=a?n._getYAxisLabelPosition(l,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:h}):n._getXAxisLabelPosition(l,{labelMargin:m,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:d,isCategoryLabel:s,isLineTypeChart:b,isPointOnColumn:A,halfLabelDistance:f}),D.top=Math.round(D.top),D.left=Math.round(D.left);var E=e[c];T&&(E=v["default"].getEllipsisText(e[c],T,p)),r.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:E,paper:n.paper,positionTopAndLeft:D,set:n.axisSet,theme:p})}},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var o=y["default"].getRenderedLabelWidth(t);return!(0,s["default"])(i)&&i-e<o},t.prototype._getYAxisLabelPosition=function(t,e){var i=void 0,o=e.labelPosition;return e.isCategoryLabel?o+=e.halfLabelDistance+t.position.top:o=t.dimension.height+t.position.top-o,i=e.isPositionRight?t.position.left+t.dimension.width:this.options.isCenter?t.position.left+t.dimension.width/2:t.position.left,{top:o,left:i}},t.prototype._getXAxisLabelPosition=function(t,e){var i=d["default"].sum([t.position.top,b,e.labelMargin,e.labelHeight/2]),o=e.labelPosition+t.position.left;return e.isCategoryLabel&&(e.isLineTypeChart&&!e.isPointOnColumn||(o+=e.halfLabelDistance)),{top:i,left:o}},t.prototype._renderLabels=function(t,e,i,o){var n=this.options,r=n.rotateLabel,a=n.prefix,s=n.suffix,u=this.data,l=u.degree,h=u.multilineLabels,c=!this.isYAxis&&this.isLabelAxis&&r===!1,p="xAxis"===this.componentName&&l,d=void 0;d=c?h:e,d.length&&(t.length=d.length),d=y["default"].addPrefixSuffix(d,a,s),p?this._renderRotationLabels(t,d,i,o):this._renderNormalLabels(t,d,i,o)},t.prototype.animateForAddingData=function(t){this.isYAxis||this.graphRenderer.animateForAddingData(t.tickSize)},t}();r.componentType="axis",r.Axis=x},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){return t.start-e.start}function a(t){var e=t.seriesTypes,i=t.chartOptions,o=i.chartType,n=i.xAxis.type;return t.chartType=o,t.chartTypes=e,t.xAxisTypeOption=n,new A(t)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=a;var u=i(9),l=o(u),h=i(15),c=o(h),p=i(6),d=o(p),f=i(14),m=o(f),g=i(23),y=o(g),_=i(33),v=o(_),T=i(42),b=o(T),A=function(){function t(e){n(this,t),this.className="tui-chart-plot-area",this.dataProcessor=e.dataProcessor,this.options=e.options||{},this.options.showLine=!!(0,m["default"])(this.options.showLine)||this.options.showLine,this.options.lines=this.options.lines||[],this.options.bands=this.options.bands||[],this.xAxisTypeOption=e.xAxisTypeOption,this.theme=e.theme||{},this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.layout=null,this.axisDataMap=null,this.drawingType=y["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;v["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return Object.assign({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return Object.assign({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,o=i.position.top,n=i.dimension.height,r="M"+t+","+o+"V"+(o+n),a=this.paper.path(r);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var o=this.layout,n=o.position,r=o.dimension,a=r.width-t+n.left,s=e<0?a:e,u=this.paper.rect(t,n.top,s,r.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return v["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var o=t.dataMin,n=t.distance,r=(i-o)/n,a=r*e;return 1===r&&(a-=1),a<0&&(a=null),a},t.prototype._calculateXAxisLabelDistance=function(t,e){var i=e.sizeRatio,o=void 0===i?1:i,n=e.tickCount,r=e.remainLastBlockInterval,a=r?t:0,s=b["default"].makeTickPixelPositions(t*o,n,0,a);return s[1]-s[0]},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e,i){var o=this.dataProcessor,n=v["default"].isLineTypeChart(o.chartType,o.seriesTypes),r=n&&e.options.pointOnColumn,a=o.findCategoryIndex(i),s=this._calculateXAxisLabelDistance(t,e)/2,u=null,l=void 0;if(!(0,d["default"])(a)){var h=o.getCategoryCount(),c=r?h:h-1;l=0===a?0:a/c,u=l*t,r&&(u+=s)}return 1===l&&(u-=1),u},t.prototype._createOptionalLinePositionMap=function(t,e,i){var o=this.dataProcessor.getCategories(),n=o.length,r=this.dataProcessor.valuesMap.linex,a=this._createOptionalLineValueRange(t),s=void 0,u=void 0;if(e.isLabelAxis?(s=this._createOptionalLinePositionWhenLabelAxis(i,e,a[0]),u=this._createOptionalLinePositionWhenLabelAxis(i,e,a[1])):(s=this._createOptionalLinePosition(e,i,a[0]),u=a[1]&&this._createOptionalLinePosition(e,i,a[1])),(0,d["default"])(s)){var l=n?o[0]:r[0];s=this._isBeforeVisibleValue(a[0],l)?0:-1}if((0,d["default"])(u)||u>i){var h=n?o[n-1]:r[r.length-1];u=this._isAfterVisibleValue(a[1],h)?i:-1}return{start:s,end:u}},t.prototype._isBeforeVisibleValue=function(t,e){var i=this.dataProcessor;if(!(0,c["default"])(t))return!1;if(v["default"].isDatetimeType(this.xAxisTypeOption))return t<e;var o=i.findAbsoluteCategoryIndex(t),n=i.findAbsoluteCategoryIndex(e);return o>=0&&o<n},t.prototype._isAfterVisibleValue=function(t,e){var i=this.dataProcessor;if(!(0,c["default"])(t))return!1;if(v["default"].isDatetimeType(this.xAxisTypeOption))return t>e;var o=i.findAbsoluteCategoryIndex(t),n=i.findAbsoluteCategoryIndex(e);return o>=0&&o>n},t.prototype._renderOptionalLine=function(t,e,i,o){var n=this._createOptionalLinePositionMap(o,t,e),r=void 0;return n.start>=0&&n.start<=e&&(i.width=1,i.color=o.color||"transparent",i.opacity=o.opacity,r=this._renderLine(n.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,o){var n=this,a=o.range;a&&a.length&&this._makeRangeTo2DArray(o);var s=o.range.map(function(i){return n._createOptionalLinePositionMap({range:i},t,e)});return o.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=o.color||"transparent",i.opacity=o.opacity;var s=t.end-t.start;a=n._renderBand(t.start+n.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._renderOptionalLine.bind(this,n,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._makeOptionalBand.bind(this,n,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,o=this._makeHorizontalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.top,u=a.left;o.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+n.dimension.height),o=e.paper.path(i);o.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(o)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,o=this._makeVerticalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.left,u=a.top,l=o.length>1?o[1]-o[0]:0;o.forEach(function(t,i){var o="M"+s+","+(l*i+u)+"H"+(s+n.dimension.width),a=e.paper.path(o);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,o=b["default"].makeTickPixelPositions(t,i.validTickCount);return o.shift(),o},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var o=Math.round(t/2),n=t-o,r=b["default"].makeTickPixelPositions(o,e),a=b["default"].makeTickPixelPositions(n,e,o+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=b["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,o=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,n){e._animateItemForAddingData(i,t,function(t){o[n].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var o=this;t.forEach(function(t,n){var r=t.getBBox();r.x-e.tickSize<o.layout.position.left?t.animate({transform:"T-"+e.tickSize+",0",opacity:0},300,"linear",function(){i(n),t.remove()}):t.animate({transform:"T-"+e.tickSize+",0"},300)})},t.prototype._makeRangeTo2DArray=function(t){var e=t.range,i=e&&(0,l["default"])(e)&&(0===e.length||!(0,l["default"])(e[0]));i&&(t.range=[e])},t.prototype._mergeOverlappingPositionMaps=function(t){var e=t.length,i=void 0,o=void 0;if(e){i=[t[0]];var n=i,r=s(n,1);o=r[0]}for(var a=1;a<e;a+=1){var u=t[a];u.start<=o.end?o.end=Math.max(u.end,o.end):(i.push(u),o=u)}return i},t}();a.componentType="plot",a.Plot=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartOptions.chart||{title:{}},i=null;return e.title&&e.title.text&&(t.text=e.title.text,t.offset=e.title.offset,t.align=e.title.align,i=new h(t)),i}e.__esModule=!0,e["default"]=r;var a=i(23),s=o(a),u=i(51),l=o(u),h=function(){function t(e){n(this,t),this.theme=e.theme||{},this.titleText=e.text,this.offset=e.offset,this.align=e.align,this.graphRenderer=l["default"].get(s["default"].COMPONENT_TYPE_RAPHAEL,"title"),this.drawingType=s["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.render=function(t){this.titleSet=this._renderTitleArea(t)},t.prototype.resize=function(t){var e=t.dimensionMap,i=e.legend?e.legend.width:0,o=e.series.width+i;this.graphRenderer.resize(o,this.titleSet)},t.prototype.rerender=function(t){this.titleSet.remove(),this.render(t)},t.prototype._renderTitleArea=function(t){var e=t.paper,i=t.dimensionMap,o=this._calculateForTitleAreaWidth(i);return this.graphRenderer.render({paper:e,titleText:this.titleText,offset:this.offset,theme:this.theme,align:this.align,chartTitleAreaWidth:o})},t.prototype._calculateForTitleAreaWidth=function(t){var e=t.chartExportMenu,i=t.chart,o=e?2*e.width:0;return i.width-o},t}();r.componentType="title",r.Title=h},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){for(var e=t.width,i=t.height,o=t.centerX,n=t.centerY,r=t.angleStepCount,a=t.stepCount,s=Math.min(e,i)/2,u=360/r,h=[],c=s/(a-1),p=0;p<a;p+=1){for(var d=[],f=n+c*p,m=0;m<r;m+=1){var g=l["default"].rotatePointAroundOrigin(o,n,o,f,u*m);d.push({left:g.x,top:i-g.y})}d.push(d[0]),h[p]=d}return h}function a(t){for(var e=t.width,i=t.height,o=t.centerX,n=t.centerY,r=t.angleStepCount,a=Math.min(i,e)/2,s=360/r,u=[],h=n+a,c=0;c<r;c+=1){var p=360-s*c,d=l["default"].rotatePointAroundOrigin(o,n,o,h,p),f=void 0;f=p>0&&p<180?"end":p>180&&p<360?"start":"middle",u.push({left:d.x,top:i-d.y,anchor:f})}return u}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(74),l=o(u),h=i(42),c=o(h),p=i(23),d=o(p),f=i(51),m=o(f),g=d["default"].COMPONENT_TYPE_RAPHAEL,y=d["default"].RADIAL_PLOT_PADDING,_=d["default"].RADIAL_MARGIN_FOR_CATEGORY,v=d["default"].RADIAL_CATEGORY_PADDING,T=function(){function t(e){n(this,t),this.className="tui-chart-plot-area",this.options=Object.assign({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=m["default"].get(g,"radialPlot"),this.drawingType=g}return t.prototype._renderPlotArea=function(t,e,i,o){var n={paper:t,layout:e,plotPositions:i,labelData:o,theme:this.theme,options:this.options};return this.graphRenderer.render(n)},t.prototype._makePositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,a=o.top,s=i.width,u=i.height;s=s-y-_,u=u-y-_;var l=c["default"].sum([s/2,y/2,_/2,n]),h=u/2-y/2-_/2-a,p=t.yAxis.tickCount,d=t.xAxis.labels.length;
|
||
return r({width:s,height:u,centerX:l,centerY:h,angleStepCount:d,stepCount:p})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,r=o.top,s=i.width,u=i.height;s=s-y-v,u=u-y-v;var l=c["default"].sum([s/2,y/2,v/2,n]),h=u/2-y/2-v/2-r,p=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:h,angleStepCount:p})},t.prototype._makeLabelData=function(t,e,i){for(var o=t.xAxis.labels,n=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u<o.length;u+=1)a.push({text:o[u],position:r[u]});for(var l=0;l<n.length-1;l+=1)s.push({text:n[l],position:i[l][0]});return{category:a,step:s}},t.prototype.render=function(t){var e=t.axisDataMap,i=t.layout,o=t.paper,n=this._makePositions(e,i),r=this._makeLabelData(e,i,n);this.plotSet=this._renderPlotArea(o,i,n,r)},t.prototype.rerender=function(t){this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t}();s.componentType="plot",s.RadialPlot=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e,i,o,n){var r=n*(Math.PI/180),a=(i-t)*Math.cos(r)-(o-e)*Math.sin(r),s=(i-t)*Math.sin(r)+(o-e)*Math.cos(r);return a+=t,s+=e,{x:a,y:s}}function r(t,e){return Math.cos(t*h["default"].RAD)*e}function a(t,e){return Math.sin(t*h["default"].RAD)*e}function s(t,e,i){var o=r(t,e/2),n=r(h["default"].ANGLE_90-t,i/2);return 2*(o+n)}function u(t,e,i){var o=a(t,e/2),n=a(h["default"].ANGLE_90-t,i/2);return 2*(o+n)}e.__esModule=!0;var l=i(23),h=o(l);e["default"]={rotatePointAroundOrigin:n,calculateAdjacent:r,calculateRotatedHeight:u,calculateRotatedWidth:s,calculateOpposite:a}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.options.visible,i=t.chartOptions.chart,o=void 0===i?{}:i,n=t.chartOptions.chartExportMenu,r=null;return o.title&&(t.chartTitle=o.title.text),n&&n.filename&&(t.exportFilename=n.filename),e&&(r=new C(t)),r}e.__esModule=!0,e["default"]=r;var a=i(23),s=o(a),u=i(76),l=o(u),h=i(24),c=o(h),p=i(80),d=o(p),f=i(33),m=o(f),g=i(17),y=o(g),_=["xls","csv","png","jpeg"],v="menu-opened",T=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BUTTON,b=s["default"].CLASS_NAME_CHART_EXPORT_MENU,A=s["default"].CLASS_NAME_CHART_EXPORT_MENU_HEAD,x=s["default"].CLASS_NAME_CHART_EXPORT_MENU_BODY,D=s["default"].CLASS_NAME_CHART_EXPORT_MENU_ITEM,E=s["default"].COMPONENT_TYPE_DOM,C=function(){function t(e){n(this,t),this.className="tui-chart-chartExportMenu-area",this.dataProcessor=e.dataProcessor,this.chartTitle=e.chartTitle||"tui-chart",this.exportFilename=e.exportFilename||this.chartTitle,this.chartType=e.chartType,this.layout=null,this.chartExportMenuContainer=null,this.chartExportMenu=null,this.options=e.options,this.eventBus=e.eventBus,this.drawingType=E,this.theme=e.theme||null}return t.prototype._createChartExportMenuButton=function(){var t=c["default"].create("div",T);return this.options.buttonClass&&c["default"].addClass(t,this.options.buttonClass),t},t.prototype._renderChartExportMenuArea=function(t){var e=this._createChartExportMenuButton(),i=this.layout.dimension;t.appendChild(e),y["default"].renderDimension(t,i),y["default"].renderPosition(t,this.layout.position)},t.prototype._renderChartExportMenu=function(t){var e=this.dataProcessor.seriesDataModelMap,i=this.isDataDownloadAvailable(e),o=l["default"].isDownloadSupported,n=l["default"].isImageExtension,r=l["default"].isImageDownloadAvailable,a=c["default"].create("ul",b),s=c["default"].create("li",A),u=c["default"].create("li",x),h=a.style,p=this.theme,d=p.borderWidth,f=p.borderRadius,m=p.backgroundColor,g=p.color,y=[];o&&(i||r)?y=_.map(function(t){var e=void 0;return(!n(t)&&i||n(t)&&r)&&(e=c["default"].create("li",D),e.id=t,e.innerHTML=t),e}):(h.width="200px",y[0]=c["default"].create("li",D),y[0].innerHTML="Browser does not support client-side download."),this.theme&&(d&&(h.borderWidth=d),f&&(h.borderRadius=f),m&&(h.backgroundColor=m),g&&(h.color=g)),this.options.menuClass&&c["default"].addClass(a,this.options.menuClass),s.innerHTML="Export to",c["default"].append(u,y),c["default"].append(a,s),c["default"].append(a,u),this.chartExportMenu=a,c["default"].append(t,a)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap)},t.prototype.render=function(t){var e=null;return l["default"].isDownloadSupported&&(e=this.container=t.paper,c["default"].addClass(e,this.className),this._setDataForRendering(t),this._renderChartExportMenuArea(e),this._renderChartExportMenu(e),this.chartExportMenuContainer=e,this._attachEvent()),e},t.prototype.rerender=function(){this._hideChartExportMenu()},t.prototype.resize=function(){},t.prototype._showChartExportMenu=function(){c["default"].addClass(this.chartExportMenuContainer,v),this.chartExportMenu.style.display="block"},t.prototype._hideChartExportMenu=function(){this.chartExportMenuContainer&&(c["default"].removeClass(this.chartExportMenuContainer,v),this.chartExportMenu.style.display="none")},t.prototype._onClick=function(t){var e=t.target||t.srcElement;if(c["default"].hasClass(e,D)){if(e.id){var i=this._getMainSvgElemenmt(this.container.parentNode);this.eventBus.fire("beforeImageDownload"),l["default"].exportChart(this.exportFilename,e.id,this.dataProcessor.rawData,i,this.options),this.eventBus.fire("afterImageDownload")}this._hideChartExportMenu()}else c["default"].hasClass(e,T)&&this.chartExportMenuContainer===e.parentNode&&!c["default"].hasClass(this.chartExportMenuContainer,v)?this._showChartExportMenu():this._hideChartExportMenu()},t.prototype._getMainSvgElemenmt=function(t){var e=Array.from(t.getElementsByTagName("svg")),i=void 0;return e.forEach(function(e){t===e.parentNode&&(i=e)}),i},t.prototype.isDataDownloadAvailable=function(t){var e=!0;return m["default"].isTreemapChart(this.chartType)?e=!1:Object.values(t).forEach(function(t){return t.isCoordinateType&&(e=!1),!1}),e},t.prototype._attachEvent=function(){d["default"].on(this.chartExportMenuContainer.parentNode,"click",this._onClick,this)},t.prototype._detachEvent=function(){d["default"].off(this.chartExportMenuContainer.parentNode,"click",this._onClick)},t}();r.componentType="chartExportMenu"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){return f["default"].any(_["default"].getExtensions(),function(e){return t===e})}function r(t){return f["default"].any(g["default"].getExtensions(),function(e){return t===e})}function a(t,e,i,o,a){var s=a&&a[e]?a[e]:{};n(e)?_["default"].downloadImage(t,e,o):r(e)&&g["default"].downloadData(t,e,i,s)}e.__esModule=!0;var s=i(22),u=o(s),l=i(15),h=o(l),c=i(25),p=o(c),d=i(27),f=o(d),m=i(77),g=o(m),y=i(79),_=o(y),v=u["default"].msie&&(10===u["default"].version||11===u["default"].version),T=!v||v&&document.createElement("canvas").getContext("2d").drawSvg,b=(0,h["default"])(document.createElement("a").download),A=window.Blob&&window.navigator.msSaveOrOpenBlob;e["default"]={exportChart:a,isDownloadSupported:b||A,isImageDownloadAvailable:T,isImageExtension:n,addExtension:function(t,e){var i=e&&(0,p["default"])(e),o=void 0,n=void 0;"data"===t?o=g["default"]:"image"===t&&(o=_["default"]),o&&i&&(n=o.getExtensions(),n.push(e))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function a(t){var e=[],i=t.categories&&(0,T["default"])(t.categories.x),o=t.series&&(0,T["default"])(t.series.bullet),n=!1;if(t){var a=void 0;if(i?n=p(t):o?n=h(t):t.categories&&(a=t.categories),n)return n;e.push([""].concat(a)),Object.values(t.series||{}).forEach(function(t){t.forEach(function(t){var i=(0,_["default"])(t.data)?t.data:[t.data];e.push([t.name].concat(r(i)))})})}return e}function s(t,e){for(var i=["",P["default"].BULLET_TYPE_ACTUAL],o=0;o<t;o+=1)i.push(P["default"].BULLET_TYPE_RANGE+o);for(var n=0;n<e;n+=1)i.push(P["default"].BULLET_TYPE_MARKER+n);return i}function u(t,e){for(var i=[],o=0;o<e;o+=1){var n="";if(t&&t[o]){var r=t[o].length>0?t[o][0]:"",a=t[o].length>1?t[o][1]:"";n=r+"~"+a}i.push(n)}return i}function l(t,e){for(var i=[],o=0;o<e;o+=1){var n=t&&t[o]?t[o]:"";i.push(n)}return i}function h(t){var e=[],i=c(t.series.bullet),o=i.maxRangeCount,n=i.maxMarkerCount;return e.push(s(o,n)),(0,D["default"])(t.series.bullet,function(t){var i=u(t.ranges,o),a=l(t.markers,n),s=[t.name,t.data].concat(r(i),r(a));e.push(s)}),e}function c(t){var e=0,i=0;return(0,D["default"])(t,function(t){e=Math.max(e,t.ranges.length),i=Math.max(i,t.markers.length)}),{maxRangeCount:e,maxMarkerCount:i}}function p(t){var e=[];return e.push([""].concat(r(t.categories.x))),(0,D["default"])(t.series,function(i){(0,D["default"])(i,function(i,o){var n=[t.categories.y[o]].concat(r(i));e.push(n)})}),e}function d(t){var e="<table>";return(0,D["default"])(t,function(t,i){var o=0===i?"th":"td";e+="<tr>",(0,D["default"])(t,function(t,n){var r=0!==i||0===n?' class="number"':"",a="<"+o+r+">"+t+"</"+o+">";e+=a}),e+="</tr>"}),e+="</table>"}function f(t){var e=O["default"].oneLineTrim(g,d(t));return e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,o=void 0===i?"\n":i,n=e.itemDelimiter,r=void 0===n?",":n,a=t.length-1,s="";return(0,C["default"])(t,function(t,e){var i=t.length-1;(0,C["default"])(t,function(t,e){var o=(0,A["default"])(t)?t:'"'+t+'"';s+=o,e<i&&(s+=r)}),e<a&&(s+=o)}),s}e.__esModule=!0;var g=n(['<html xmlns:o="urn:schemas-microsoft-com:office:office" \n xmlns:x="urn:schemas-microsoft-com:office:excel" \n xmlns="http://www.w3.org/TR/REC-html40">\n <head>\n <!--[if gte mso 9]>\n <xml>\n <x:ExcelWorkbook>\n <x:ExcelWorksheets>\n <x:ExcelWorksheet>\n <x:Name>Ark1</x:Name>\n <x:WorksheetOptions>\n <x:DisplayGridlines/>\n </x:WorksheetOptions>\n </x:ExcelWorksheet>\n </x:ExcelWorksheets>\n </x:ExcelWorkbook>\n </xml>\n <![endif]-->\n <meta name=ProgId content=Excel.Sheet>\n <meta charset=UTF-8>\n </head>\n <body>\n ',"\n </body>\n </html>"],['<html xmlns:o="urn:schemas-microsoft-com:office:office" \n xmlns:x="urn:schemas-microsoft-com:office:excel" \n xmlns="http://www.w3.org/TR/REC-html40">\n <head>\n <!--[if gte mso 9]>\n <xml>\n <x:ExcelWorkbook>\n <x:ExcelWorksheets>\n <x:ExcelWorksheet>\n <x:Name>Ark1</x:Name>\n <x:WorksheetOptions>\n <x:DisplayGridlines/>\n </x:WorksheetOptions>\n </x:ExcelWorksheet>\n </x:ExcelWorksheets>\n </x:ExcelWorkbook>\n </xml>\n <![endif]-->\n <meta name=ProgId content=Excel.Sheet>\n <meta charset=UTF-8>\n </head>\n <body>\n ',"\n </body>\n </html>"]),y=i(9),_=o(y),v=i(15),T=o(v),b=i(19),A=o(b),x=i(8),D=o(x),E=i(10),C=o(E),L=i(78),S=o(L),M=i(23),P=o(M),w=i(17),O=o(w),R={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},I={xls:f,csv:m},k=[].concat(r(P["default"].DATA_EXTENSIONS)),B={downloadData:function(t,e,i,o){var n=a(i),r=R[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=I[e](n,o);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=R[e]+s),S["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=(0,T["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return k}};Object.assign(B,{_makeCsvBodyWithRawData:m,_makeXlsBodyWithRawData:f,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:h,_get2DArrayFromHeatmapRawData:p,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=B},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(){var t=(0,c["default"])(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,o=atob(t.substr(t.indexOf(",")+1)),n=[],r=0;r<o.length;r+=i){for(var a=o.slice(r,r+i),s=new Array(a.length),u=0;u<a.length;u+=1)s[u]=a.charCodeAt(u);var l=new window.Uint8Array(s);n.push(l)}var h=new Blob(n,{type:e});return h}function a(t){return m["default"].any(y["default"].IMAGE_EXTENSIONS,function(e){return t===e})}function s(t,e,i,o){var n=a(e)?r(i):new Blob([i],{type:o});window.navigator.msSaveOrOpenBlob(n,t+"."+e)}function u(t,e,i){if(i){var o=document.createElement("a");o.href=i,o.target="_blank",o.download=t+"."+e,document.body.appendChild(o),o.click(),o.remove()}}function l(t,e,i,o){var r=n();r&&(0,d["default"])(i)&&_[r](t,e,i,o)}e.__esModule=!0;var h=i(15),c=o(h),p=i(25),d=o(p),f=i(27),m=o(f),g=i(23),y=o(g),_={downloadAttribute:u,msSaveOrOpenBlob:s};e["default"]={execDownload:l}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t){var e=t.parentNode,i=document.createElement("DIV");i.appendChild(t);var o=i.innerHTML;return e.appendChild(t),i=null,e=null,o}function a(t,e,i,o){var n=t.getContext("2d");f&&(e=e.replace(/xmlns:NS1=""/,""),e=e.replace(/NS1:xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,""),e=e.replace(/xmlns="http:\/\/www\.w3\.org\/2000\/svg"/,""),e=e.replace(/xmlns:xlink="http:\/\/www\.w3\.org\/1999\/xlink"/,"")),n.drawSvg(e,0,0),l["default"].execDownload(i,o,t.toDataURL("image/"+o,1))}function s(t,e,i,o){var n=t.getContext("2d"),r=new Blob([e],{type:"image/svg+xml"}),a=m.createObjectURL(r),s=new Image;s.onload=function(){n.drawImage(s,0,0,t.width,t.height),l["default"].execDownload(i,o,t.toDataURL("image/"+o,1)),m.revokeObjectURL(a)},s.src=a}e.__esModule=!0;var u=i(78),l=o(u),h=i(23),c=o(h),p=i(22),d=o(p),f=d["default"].msie&&(10===d["default"].version||11===d["default"].version),m=window.URL||window.webkitURL||window,g=[].concat(n(c["default"].IMAGE_EXTENSIONS));e["default"]={downloadImage:function(t,e,i){var o=void 0;if("svg"===i.tagName){var n=i.parentNode,u=r(i);o=document.createElement("canvas"),o.width=n.offsetWidth,o.height=n.offsetHeight,f?a(o,u,t,e):s(o,u,t,e)}else"canvas"===i.tagName&&(o=i,l["default"].execDownload(t,e,o.toDataURL("image/"+e,1)))},getExtensions:function(){return g}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(25),r=o(n),a=i(8),s=o(a),u={},l={_attachEvent:function(t,e,i,o){var n=void 0;n=o?i.bind(o):i,u[e+i]=n,t.attachEvent("on"+e,n)},_addEventListener:function(t,e,i,o){var n=void 0;n=o?i.bind(o):i,u[e+i]=n,t.addEventListener(e,n)},_bindEvent:function(t,e,i,o){var n=void 0;"addEventListener"in t?n=this._addEventListener:"attachEvent"in t&&(n=this._attachEvent),l._bindEvent=n,n(t,e,i,o)},on:function(t,e,i,o){var n={};(0,r["default"])(e)?n[e]=i:(n=e,o=i),(0,s["default"])(n,function(e,i){l._bindEvent(t,i,e,o)})},_detachEvent:function(t,e,i){u[e+i]&&(t.detachEvent("on"+e,u[e+i]),delete u[e+i])},_removeEventListener:function(t,e,i){t.removeEventListener(e,u[e+i]),delete u[e+i]},_unbindEvent:function(t,e,i){var o=void 0;"removeEventListener"in t?o=l._removeEventListener:"detachEvent"in t&&(o=l._detachEvent),l._unbindEvent=o,o(t,e,i)},off:function(t,e,i){var o={};(0,r["default"])(e)?o[e]=i:o=e,(0,s["default"])(o,function(e,i){l._unbindEvent(t,i,e)})}};e["default"]=l},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.options,i=t.dataProcessor.seriesTypes,o=t.chartOptions.chartType,n=!!(0,l["default"])(e.visible)||e.visible,r=null;return n&&(t.seriesTypes=i,t.chartType=o,r=new S(t)),r}e.__esModule=!0,e["default"]=r;var a=i(6),s=o(a),u=i(14),l=o(u),h=i(82),c=o(h),p=i(67),d=o(p),f=i(23),m=o(f),g=i(85),y=o(g),_=i(51),v=o(_),T=i(33),b=o(T),A=i(12),x=o(A),D=m["default"].LEGEND_ICON_HEIGHT,E=m["default"].LINE_MARGIN_TOP,C=m["default"].LEGEND_AREA_H_PADDING,L=m["default"].PUBLIC_EVENT_PREFIX,S=function(){function t(e){n(this,t),this.theme=e.theme,this.options=e.options||{},this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[this.chartType],this.eventBus=e.eventBus,this.className="tui-chart-legend-area",this.dataProcessor=e.dataProcessor,this.legendModel=new y["default"]({theme:this.theme,labels:e.dataProcessor.getLegendLabels(),legendData:e.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType}),this.layout=null,this.graphRenderer=v["default"].get(m["default"].COMPONENT_TYPE_RAPHAEL,"legend"),this.paper=null,this.drawingType=m["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new y["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t);var e=this._renderLegendArea(t.paper),i=e.legendSet,o=e.paginationElem;this.legendSet=i,this.paginationArea=o},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this.paginationArea.forEach(function(t){return t.remove()}),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var o=this,n=(b["default"].isBarTypeChart(this.chartType)||b["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint,r=t.map(function(t,r){var a=o.options.showCheckbox===!1?null:{checked:o.legendModel.isCheckedIndex(r)},s=t.label;return o.options.maxWidth&&(s=x["default"].getEllipsisText(s,o.options.maxWidth,o.theme.label)),{checkbox:a,iconType:t.chartType||"rect",colorByPoint:n,index:r,theme:t.theme,label:s,labelHeight:e,labelWidth:i[r],isUnselected:o.legendModel.isUnselectedIndex(r)}});return(b["default"].isAreaChart(this.chartType)||b["default"].isColumnChart(this.chartType))&&(0,c["default"])(this.dataProcessor.options.series.stack)&&"top"!==this.options.align&&"bottom"!==this.options.align&&r.reverse(),r},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,o=b["default"].isHorizontalLegend(this.options.align),n=this.layout.position,r=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=r.length,l=Math.max(D,s),h=(E+l)*(o?1:u),c=n.top,p=n.left;return b["default"].isLegendAlignLeft(this.options.align)||(p+=C),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,r),isHorizontal:o,position:{left:p,top:c},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:r,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(L+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=(0,s["default"])(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,o=t.chartType;this.eventBus.fire(L+"selectLegend",{legend:e,chartType:o,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),(0,s["default"])(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();d["default"].mixin(S),r.componentType="legend",r.Legend=S},function(t,e,i){"use strict";function o(t){return!n(t)}var n=i(83);t.exports=o},function(t,e,i){"use strict";function o(t){return a(t)&&""===t}function n(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function r(t){return!(s(t)&&!o(t))||(u(t)||l(t)?0===t.length:!(h(t)&&!c(t))||!n(t))}var a=i(25),s=i(15),u=i(9),l=i(84),h=i(7),c=i(56);t.exports=r},function(t,e,i){"use strict";function o(t){var e=n(t)&&("[object Arguments]"===Object.prototype.toString.call(t)||!!t.callee);return e}var n=i(15);t.exports=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(6),s=o(a),u=i(14),l=o(u),h=function(){function t(e){r(this,t),this.theme=e.theme,this.labels=e.labels,this.legendData=e.legendData,this.seriesTypes=e.seriesTypes||[],this.chartType=e.chartType,this.data=null,this.selectedIndex=null,this.checkedIndexesMap={},this.checkedWholeIndexes=[],this._setData(),this._initCheckedIndexes()}return t.prototype._initCheckedIndexes=function(){var t=this,e=[];this.legendData.forEach(function(i,o){var n=i.visible;n&&e.push(o),t.checkedWholeIndexes[o]=n}),this.updateCheckedLegendsWith(e)},t.prototype._setThemeToLegendData=function(t,e,i){var o=e.colors,n=e.borderColor,r=0;t.forEach(function(t,e){var a={color:o[e]};n&&(a.borderColor=n),t.theme=a,t.index=e,i&&(0,l["default"])(i[e])?t.seriesIndex=-1:(t.seriesIndex=r,r+=1)})},t.prototype._setData=function(){var t=this,e=this.theme,i=this.chartType,o=this.seriesTypes,r=this.legendData,a=this.checkedIndexesMap,s=void 0;if(!o||o.length<2)this._setThemeToLegendData(r,e[i],a[i]),s=r;else{var u,l=0,h=o.map(function(i){var o=t.labels[i].length,n=l+o,s=r.slice(l,n),u=a[i];return l=n,t._setThemeToLegendData(s,e[i],u),s});s=(u=[]).concat.apply(u,n(h))}this.data=s},t.prototype.getData=function(){return this.data},t.prototype.getDatum=function(t){return this.data[t]},t.prototype.getDatumByLabel=function(t){var e=null;return this.data.forEach(function(i){return i.label===t&&(e=i),!e}),e},t.prototype.getSelectedDatum=function(){return this.getDatum(this.selectedIndex)},t.prototype.updateSelectedIndex=function(t){this.selectedIndex=t},t.prototype.toggleSelectedIndex=function(t){var e=void 0;e=this.selectedIndex===t?null:t,this.updateSelectedIndex(e)},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.isUnselectedIndex=function(t){return!(0,s["default"])(this.selectedIndex)&&this.selectedIndex!==t},t.prototype.isCheckedSelectedIndex=function(){return this.isCheckedIndex(this.selectedIndex)},t.prototype.toggleCheckedIndex=function(t){this.checkedWholeIndexes[t]=!this.checkedWholeIndexes[t]},t.prototype._updateCheckedIndex=function(t){this.checkedWholeIndexes[t]=!0},t.prototype.isCheckedIndex=function(t){return!!this.checkedWholeIndexes[t]},t.prototype._addSendingDatum=function(t){var e=this.getDatum(t),i=e.chartType,o=e.index;this.checkedIndexesMap[i]||(this.checkedIndexesMap[i]=new Array(this.labels[i].length).fill(!1)),this.checkedIndexesMap[i][o]=!0},t.prototype.checkSelectedIndex=function(){this._updateCheckedIndex(this.selectedIndex),this._addSendingDatum(this.selectedIndex),this._setData()},t.prototype.getCheckedIndexes=function(){var t=this;return Object.keys(this.checkedIndexesMap).reduce(function(e,i){return e[i]=Array.from(t.checkedIndexesMap[i],function(t){return!!t}),e},{})},t.prototype._resetCheckedData=function(){this.checkedWholeIndexes=[],this.checkedIndexesMap={}},t.prototype.updateCheckedLegendsWith=function(t){var e=this;this._resetCheckedData(),t.forEach(function(t){e._updateCheckedIndex(t),e._addSendingDatum(t)}),this._setData()},t}();e["default"]=h},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=!!(0,s["default"])(t.options.visible)||t.options.visible,i=t.chartOptions.chartType,o=null;return e&&(t.chartType=i,o=new v(t)),o}e.__esModule=!0,e["default"]=r;var a=i(14),s=o(a),u=i(23),l=o(u),h=i(33),c=o(h),p=i(51),d=o(p),f=i(53),m=l["default"].COMPONENT_TYPE_RAPHAEL,g=l["default"].MAP_LEGEND_LABEL_PADDING,y=l["default"].MAP_LEGEND_GRAPH_SIZE,_=l["default"].CHART_PADDING,v=function(){function t(e){n(this,t);var i=e.libType,o=e.chartType,r=e.theme,a=e.options,s=void 0===a?{}:a,u=e.dataProcessor,l=e.colorSpectrum,h=e.eventBus;this.chartType=o,this.theme=r,this._isDefaultLegendLabelColor(this.theme.label.color)&&(this.theme.label.color="#fff"),this.options=s,this.dataProcessor=u,this.colorSpectrum=l,this.eventBus=h,this.graphRenderer=d["default"].get(i,"mapLegend"),this.isHorizontal=c["default"].isHorizontalLegend(this.options.align),this.scaleData=null,this.drawingType=m,this._attachToEventBus()}return t.prototype._isDefaultLegendLabelColor=function(t){return t===f.DEFAULT_LEGEND_LABEL_FONTCOLOR},t.prototype._attachToEventBus=function(){this.eventBus.on({showWedge:this.onShowWedge,hideTooltip:this.onHideWedge},this),this.eventBus.on("beforeImageDownload",this._removeLocationURLFromFillAttribute.bind(this)),this.eventBus.on("afterImageDownload",this._restoreLocationURLToFillAttribute.bind(this))},t.prototype._removeLocationURLFromFillAttribute=function(){this.graphRenderer.removeLocationURLFromFillAttribute()},t.prototype._restoreLocationURLToFillAttribute=function(){this.graphRenderer.restoreLocationURLToFillAttribute()},t.prototype._makeBaseDataToMakeTickArea=function(){var t=this.layout.dimension,e=this.scaleData,i=this.options.align,o=e.stepCount||e.tickCount-1,n={};return n.position=this.layout.position,this.isHorizontal?(n.step=t.width/o,c["default"].isLegendAlignTop(i)?n.position.top-=g:n.position.top+=y+g):(n.step=t.height/o,c["default"].isLegendAlignLeft(i)?n.position.left=_:n.position.left+=y+g),n},t.prototype._renderTickArea=function(t){this.options.reversed&&this.scaleData.labels.sort(function(t,e){return e-t}),this.graphRenderer.renderTickLabels(this.paper,this._makeBaseDataToMakeTickArea(),this.scaleData.labels,this.options.align,t)},t.prototype._makeVerticalGraphDimension=function(){return{width:y,height:this.layout.dimension.height}},t.prototype._makeHorizontalGraphDimension=function(){return{width:this.layout.dimension.width,height:y}},t.prototype._renderGraph=function(t){var e=this.layout.position,i=void 0;if(i=this.isHorizontal?this._makeHorizontalGraphDimension():this._makeVerticalGraphDimension(),this.options.reversed){var o=this.colorSpectrum.start;this.colorSpectrum.start=this.colorSpectrum.end,this.colorSpectrum.end=o}this.graphRenderer.render({paper:this.paper,layout:{dimension:i,position:e},colorSpectrum:this.colorSpectrum,align:this.options.align,legendSet:t,theme:this.theme.label,labels:this.scaleData.labels})},t.prototype._renderLegendArea=function(){var t=this.paper.set();return this._renderGraph(t),this._renderTickArea(t),t},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.paper,o=t.legendScaleData;this.layout=e,this.paper=i,this.scaleData=o},t.prototype.render=function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea()},t.prototype.rerender=function(t){this.legendSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.onShowWedge=function(t,e){t=this.options.reversed?1-t:t,this.graphRenderer.showWedge(t,e)},t.prototype.onHideWedge=function(){this.graphRenderer.hideWedge()},t}();r.componentType="legend",r.SpectrumLegend=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){var e=t.chartTheme,i=t.chartOptions.chartType,o=(0,l["default"])(t.chartOptions,"circleLegend","visible"),n=null,r=void 0;return r=!!(0,s["default"])(o)||o,r&&(t.chartType=i,t.baseFontFamily=e.chart.fontFamily,n=new _(t)),n}e.__esModule=!0,e["default"]=r;var a=i(14),s=o(a),u=i(21),l=o(u),h=i(23),c=o(h),p=i(42),d=o(p),f=i(17),m=o(f),g=i(51),y=o(g),_=function(){function t(e){var i=e.libType,o=e.chartType,r=e.dataProcessor,a=e.baseFontFamily;n(this,t),this.circleRatios=[1,.5,.25],this.chartType=o,this.dataProcessor=r,this.labelTheme={fontSize:c["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:a},this.graphRenderer=y["default"].get(i,"circleLegend"),this.layout=null,this.maxRadius=null,this.drawingType=c["default"].COMPONENT_TYPE_RAPHAEL}return t.prototype._formatLabel=function(t,e){var i=this.dataProcessor.getFormatFunctions(),o=void 0;return o=0===e?String(parseInt(t,10)):m["default"].formatToDecimal(String(t),e),m["default"].formatValue({value:o,formatFunctions:i,chartType:this.chartType,areaType:"circleLegend",valueType:"r"})},t.prototype._makeLabels=function(){var t=this,e=this.dataProcessor.getMaxValue(this.chartType,"r"),i=d["default"].getDecimalLength(e);return this.circleRatios.map(function(o){return t._formatLabel(e*o,i)})},t.prototype._render=function(t){return this.graphRenderer.render(t,this.layout,this.maxRadius,this.circleRatios,this._makeLabels())},t.prototype._setDataForRendering=function(t){this.layout=t.layout,this.maxRadius=t.maxRadius},t.prototype.render=function(t){this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},t.prototype.rerender=function(t){this.circleLegendSet.remove(),this._setDataForRendering(t),this.circleLegendSet=this._render(t.paper)},t.prototype.resize=function(t){this.rerender(t)},t}();r.componentType="legend",r.CircleLegend=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e,i){var o=(100*t.ratio).toFixed(4),n=parseFloat(o),r=n<9e-4||o.length>5;o=r?o.substr(0,4):String(n);var a=o+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),
|
||
e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,o=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return(0,m["default"])(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?c["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=n),t.chartType=e,t.chartTypes=i,t.xAxisType=o.type,t.dateFormat=o.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(89),s=o(a),u=i(94),l=o(u),h=i(96),c=o(h),p=i(33),d=o(p),f=i(9),m=o(f);r.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new E(t)}e.__esModule=!0,e["default"]=s;var u=i(9),l=o(u),h=i(19),c=o(h),p=i(21),d=o(p),f=i(90),m=o(f),g=i(91),y=o(g),_=i(23),v=o(_),T=i(33),b=o(T),A=i(92),x=o(A),D="#aaa",E=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(Object.assign({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=x["default"].tplDefault;return b["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):b["default"].isPieChart(this.chartType)||b["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=x["default"].tplPieChart:this.dataProcessor.coordinateType?e=x["default"].tplCoordinatetypeChart:b["default"].isBulletChart(this.chartType)?e=x["default"].tplBulletChartDefault:b["default"].isHeatmapChart(this.chartType)&&(e=x["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=x["default"].tplBoxplotChartDefault;return(0,c["default"])(t.outlierIndex)&&(e=x["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?"<tr><td>"+e+'</td><td class="'+v["default"].CLASS_NAME_TOOLTIP_VALUE+'">'+t[e]+"</td></tr>":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,o=this._findTooltipData(t,e),n=this._findTooltipColor(t,e,o);return b["default"].isBoxplotChart(this.chartType)&&(0,c["default"])(e.outlierIndex)&&(o.outlierIndex=e.outlierIndex),this.colorSpectrum&&(n=this.colorSpectrum.getColor(o.colorRatio||o.ratio)),o.color=n,o.chartType=this.chartType,o.cssText="background-color: "+n,o=Object.assign({suffix:this.suffix},o),o.valueTypes=this._makeHtmlForValueTypes(o,["x","y","r"]),this.templateFunc(o.category,o,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],o=e.groupIndex;return b["default"].isRadialChart(t)&&i.length===o&&(o=0),Object.assign({},(0,d["default"])(i,o,e.index))},e.prototype._findTooltipColor=function(t,e,i){var o=b["default"].isBarTypeChart(this.chartType),n=b["default"].isBoxplotChart(this.chartType),r=(o||n)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return b["default"].isBulletChart(this.chartType)?s=a:b["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?D:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=v["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=v["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,o=this.dataProcessor.getLegendItem(i);if(!o)return null;var n=o.chartType,r=o.label,a=Object.assign({chartType:n,legend:r,legendIndex:i,index:t.groupIndex},e);return b["default"].isBoxplotChart(n)&&(0,c["default"])(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],o=i.tooltipLabel,n=this.labelFormatter,r={legend:t,label:o||(i.label?i.label:""),category:e};return n&&(r=n(i,r,"")),r.category=e,Object.assign(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=b["default"].isTreemapChart(this.chartType),o={},n={};return(0,l["default"])(e)?o[this.chartType]=e:o=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=b["default"].isBulletChart(r),s=e.map(function(e,n){var s=t.dataProcessor.makeTooltipCategory(i,n,t.isVertical),u=a?i:n;return e?t._makeTooltipDatum(o[r][u],s,e):null});n[r]||(n[r]=[]),n[r].push(s)},i),n},e}(m["default"]);y["default"].mixin(E),s.componentType="tooltip",s.NormalTooltip=E},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(15),a=o(r),s=i(4),u=o(s),l=i(55),h=o(l),c=i(23),p=o(c),d=i(24),f=o(d),m=i(33),g=o(m),y=i(17),_=o(y),v=function(){function t(e){n(this,t);var i=g["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=h["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||this._makeTooltipHtml.bind(this),this.animationTime=i?p["default"].TOOLTIP_PIE_ANIMATION_TIME:p["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=p["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=h["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i<e;i+=1){var o=t[i],n=o.style["background-color"],r=(0,u["default"])(o,10,10),a=r.path(p["default"].LEGEND_LINE_ICON_PATH);o.style["background-color"]="",a.attr({stroke:n,"stroke-width":2,"stroke-opacity":1})}},t.prototype.makeTooltipData=function(){},t.prototype._setDataForRendering=function(t){this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap},t.prototype.render=function(t){var e=t.paper;return f["default"].addClass(e,this.className),this._setDataForRendering(t),this.data=this.makeTooltipData(),this.tooltipColors=this.makeTooltipLegendColor(t.checkedLegends),_["default"].renderPosition(e,this.layout.position),this.tooltipContainer=e,e},t.prototype.rerender=function(t){this.resize(t),this.data=this.makeTooltipData(),this.tooltipColors=this.makeTooltipLegendColor(t.checkedLegends)},t.prototype.makeTooltipLegendColor=function(t){var e=this,i={};return t&&Object.keys(this.theme).forEach(function(o){i[o]||(i[o]=[]),(t[o]||[]).forEach(function(t,n){t&&i[o].push(e.theme[o].colors[n])})}),i},t.prototype.resize=function(t){this._setDataForRendering(t),_["default"].renderPosition(this.tooltipContainer,this.layout.position),this.positionModel&&this.positionModel.updateBound(this.layout)},t.prototype.zoom=function(){this.data=this.makeTooltipData()},t.prototype._getTooltipElement=function(){if(!this.tooltipElement){var t=this.tooltipElement=f["default"].create("DIV","tui-chart-tooltip");f["default"].append(this.tooltipContainer,t)}return this.tooltipElement},t.prototype.onShowTooltip=function(t){var e=this._getTooltipElement(),i=g["default"].isComboChart(this.chartType)&&g["default"].isScatterChart(t.chartType),o=void 0;g["default"].isChartToDetectMouseEventOnSeries(t.chartType)&&!i||!e.offsetWidth||(o={left:e.offsetLeft,top:e.offsetTop}),this._showTooltip(e,t,o)},t.prototype.getTooltipDimension=function(t){var e=t.offsetWidth,i=t.offsetHeight;return{width:e,height:i}},t.prototype._moveToPosition=function(t,e,i){i?this._slideTooltip(t,i,e):_["default"].renderPosition(t,e)},t.prototype._slideTooltip=function(t,e,i){var o=i.top-e.top,n=i.left-e.left;_["default"].cancelAnimation(this.slidingAnimation),this.slidingAnimation=_["default"].startAnimation(this.animationTime,function(i){var r=n*i,a=o*i;t.style.left=e.left+r+"px",t.style.top=e.top+a+"px"})},t.prototype.onHideTooltip=function(t,e){var i=this._getTooltipElement();this._hideTooltip(i,t,e)},t.prototype.setAlign=function(t){this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype._updateOffsetOption=function(t){this.options.offset=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype.setOffset=function(t){var e=Object.assign({},this.options.offset);(0,a["default"])(t.x)&&(e.x=t.x),(0,a["default"])(t.y)&&(e.y=t.y),this._updateOffsetOption(Object.assign({},this.options.offset,e))},t.prototype.setPosition=function(t){var e=Object.assign({},this.options.offset);(0,a["default"])(t.left)&&(e.x=t.left),(0,a["default"])(t.top)&&(e.y=t.y),this._updateOffsetOption(e)},t.prototype.resetAlign=function(){var t=this.orgPositionOptions.align;this.options.align=t,this.positionModel&&this.positionModel.updateOptions(this.options)},t.prototype.resetOffset=function(){this.options.offset=this.orgPositionOptions.offset,this._updateOffsetOption(this.options.offset)},t.prototype.getRawCategory=function(t,e){var i=this.isVertical?"x":"y",o=this.dataProcessor.categoriesMap?this.dataProcessor.categoriesMap[i]:null,n="";return o&&(n=o[t]),e&&(n=_["default"].formatDate(n,e)),n},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(6),r=o(n),a=i(23),s=o(a),u=i(33),l=o(u),h=i(24),c=o(h),p=i(17),d=o(p);e["default"]={_setIndexesCustomAttribute:function(t,e){t.setAttribute("data-groupIndex",e.groupIndex),t.setAttribute("data-index",e.index)},_getIndexesCustomAttribute:function(t){var e=t.getAttribute("data-groupIndex"),i=t.getAttribute("data-index"),o=null;return(0,r["default"])(e)||(0,r["default"])(i)||(o={groupIndex:parseInt(e,10),index:parseInt(i,10)}),o},_setShowedCustomAttribute:function(t,e){t.setAttribute("data-showed",e)},_isShowedTooltip:function(t){var e=t.getAttribute("data-showed");return"true"===e||e===!0},_makeTooltipPositionForBulletChart:function(t){var e=t.mousePosition,i=this.layout.position;return{left:e.left-i.left,top:e.top-i.top}},_makeLeftPositionOfNotBarChart:function(t,e,i,o){var n=t,r=i||0,a=o||s["default"].TOOLTIP_GAP;return e.indexOf("left")>-1?n-=r+a:e.indexOf("center")>-1&&r?n-=r/2:n+=a,n},_makeTopPositionOfNotBarChart:function(t,e,i,o){var n=t,r=i||0;return e.indexOf("bottom")>-1?n+=r+o:e.indexOf("middle")>-1&&r?n+=r/2:n-=r+s["default"].TOOLTIP_GAP,n},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,o=t.dimension,n=t.alignOption,r=void 0===n?"":n,a=o.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=o.height,h=e.left-this.layout.position.left+i.left,c=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,r,a,u),top:this._makeTopPositionOfNotBarChart(c,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},Object.assign(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("left")>-1?o-=i:e.indexOf("center")>-1?o-=i/2:o+=s["default"].TOOLTIP_GAP,o},_makeTopPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("top")>-1?o-=i:e.indexOf("middle")>-1&&(o-=i/2),o},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=n.height-(i.height||0),u=n.width,l=i.left+i.width+o.left-e.left,h=i.top+o.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(h,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-n.width)/2+o.left-e.left,top:i.top+i.height/2-r+o.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,o=this.layout.position;return e.left=Math.max(e.left,-o.left),e.left=Math.min(e.left,i.width-o.left-t.width),e.top=Math.max(e.top,-o.top),e.top=Math.min(e.top,i.height-o.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,o=void 0,n=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",o="left",n=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",o="top",n=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:o,addPadding:n})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,o=e.sizeType,n=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var h=e.dimension[o],c=i[o],p=t[n]+(c+h)*u;t[n]=p}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var o=this.tooltipContainer.parentNode.getBoundingClientRect(),n=e.indexes,r=this._getIndexesCustomAttribute(t),a=this.options.offset||{},u={},l=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-o.left+s["default"].CHART_PADDING,top:e.mousePosition.top-o.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(r,n)||l!==e.chartType)&&this.eventBus.fire("hoverOffSeries",r,l),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,n),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,n),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(n,e.silent),c["default"].addClass(t,"show"),u.left=a.x||0,u.top=a.y||0;var h=this._makeTooltipPosition(Object.assign({dimension:this.getTooltipDimension(t),positionOption:u,alignOption:this.options.align||""},e));this._moveToPosition(t,h,i),this.eventBus.fire("hoverSeries",n,e.chartType),this._fireAfterShowTooltipPublicEvent(n,{element:t,position:h},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var o=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",o)}},_executeHidingTooltip:function(t){c["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var o=this,n=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",n,r),this._fireBeforeHideTooltipPublicEvent(n,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",n,r),this._isChangedIndexes(this.prevIndexes,n)&&delete this.prevIndexes,setTimeout(function(){o._isShowedTooltip(t)||(o._fireBeforeHideTooltipPublicEvent(n,a),o._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){Object.assign(t.prototype,this)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(93),r=o(n),a={HTML_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ label }}{{ suffix }}</span>\n </div>\n </div>',HTML_PIE_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ ratioLabel }} ( {{ label }} {{ suffix }})</span>\n </div>\n </div>',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n {{ category }}\n </div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ legend }}</span>\n <span class="tui-chart-tooltip-value">{{ label }}</span>\n </div>\n <table class="tui-chart-tooltip-body">{{ valueTypes }}</table>\n </div>',HTML_GROUP:'<div class="tui-chart-default-tooltip tui-chart-group-tooltip">\n <div class="tui-chart-tooltip-head">{{ category }}</div>\n <table class="tui-chart-tooltip-body">\n {{ items }}\n </table>\n </div>',HTML_GROUP_TYPE:'\n <tr>\n <td colspan="3" class="tui-chart-tooltip-type">{{ type }}</div>\n </tr>',HTML_GROUP_ITEM:'<tr>\n <td><div class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></div></td>\n <td>{{ legend }}</td>\n <td class="tui-chart-tooltip-value">{{ value }} {{ suffix }}</td>\n </tr>',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ name }}</span>\n <span class="tui-chart-tooltip-value">{{ value }}{{ suffix }}</span>\n </div>\n </div>',HTML_HEATMAP_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ label }}{{ suffix }}</span>\n </div>\n </div>',HTML_BOXPLOT_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <table class="tui-chart-tooltip-body">\n <tr>\n <td colspan="2">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n {{ legend }}\n </td>\n </tr>\n <tr>\n <td>Maximum: </td>\n <td class="tui-chart-tooltip-value">{{ maxLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Upper Quartile: </td>\n <td class="tui-chart-tooltip-value">{{ uqLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Median: </td>\n <td class="tui-chart-tooltip-value">{{ medianLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Lower Quartile: </td>\n <td class="tui-chart-tooltip-value">{{ lqLabel }} {{ suffix }}</td>\n </tr>\n <tr>\n <td>Minimum: </td>\n <td class="tui-chart-tooltip-value">{{ minLabel }} {{ suffix }}</td>\n </tr>\n </table>\n </div>',HTML_BOXPLOT_OUTLIER:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-head {{ categoryVisible }}">{{ category }}</div>\n <div class="tui-chart-tooltip-body">\n <span>{{ legend }}</span>\n </div>\n <div class="tui-chart-tooltip-body">\n <span>Outlier: </span>\n <span class="tui-chart-tooltip-value">{{ label }} {{ suffix }}</span>\n </div>\n </div>',HTML_BULLET_TEMPLATE:'<div class="tui-chart-default-tooltip">\n <div class="tui-chart-tooltip-body {{ categoryVisible }}">\n <span class="tui-chart-legend-rect {{ chartType }}" style="{{ cssText }}"></span>\n <span>{{ category }}</span>\n <span class="tui-chart-tooltip-value">{{ label }} {{ suffix }}</span>\n </div>\n </div>'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var o=t;return Object.entries(e).forEach(function(t){var e=i(t,2),n=e[0],r=e[1],a=new RegExp("{{\\s*"+n+"\\s*}}","g");o=o.replace(a,String(r).replace("$","$"))}),o}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new O(t)}e.__esModule=!0,e["default"]=s;var u=i(6),l=o(u),h=i(58),c=o(h),p=i(90),d=o(p),f=i(95),m=o(f),g=i(23),y=o(g),_=i(24),v=o(_),T=i(17),b=o(T),A=i(53),x=o(A),D=i(92),E=o(D),C=i(33),L=o(C),S=y["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,M=y["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,P=y["default"].SERIES_EXPAND_SIZE,w=y["default"].PUBLIC_EVENT_PREFIX,O=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevIndex=null,o.tickInterval=null,o.isBullet=L["default"].isBulletChart(i.chartType),o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,o){var n=E["default"].tplGroupItem,r=E["default"].tplGroupCssText,a=L["default"].isBarChart(this.chartType),s=L["default"].isBarTypeChart(this.chartType),u=L["default"].isBoxplotChart(this.chartType),l=this.dataProcessor.options.series,h=(s||u)&&l&&l.colorByPoint,c=!a&&l&&l.stack,p=this._makeColors(this.theme,o),d=void 0,f=e.map(function(t,e){var i=t.type,o="data"!==i&&d!==i,a="";return d=i,t.value?(o&&(a=E["default"].tplGroupType({type:i})),a+=n(Object.assign({cssText:r({color:h?"#aaa":p[e]})},t))):null});return c&&f.reverse(),E["default"].tplGroup({category:t,items:f.join("")})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=S:this.options.align=M)},e.prototype.render=function(t){var e=d["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,o=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new m["default"](i,o,this.isVertical,this.options),e},e.prototype.rerender=function(t){d["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,this.tickInterval=null,d["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],o=Object.keys(this.originalTheme);return o.forEach(function(o){var n=e.originalTheme[o].colors;n.forEach(function(e,n){var r=t[o]||t;r[n]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,o){var n=i.map(function(t){return{type:t.type||"data",label:t.tooltipLabel||t.label}});return{category:t.dataProcessor.makeTooltipCategory(o,e-o,t.isVertical),values:n}})},e.prototype._makeColors=function(t,e){var i=0,o=this.dataProcessor.getLegendData(),n=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=x["default"].series.colors.slice(0,o.length);return(0,c["default"])(o,"chartType").map(function(e){r!==e&&(n=t[e]?t[e].colors:a,i=0),r=e;var o=n[i];return i+=1,o})},e.prototype._makeItemRenderingData=function(t,e){var i=this,o=this.dataProcessor,n=this.suffix,r=this._makeColors(this.theme,e);return t.map(function(t,a){var s={value:t.label,type:t.type,suffix:n,legend:"",color:r[a]},u=void 0;return i.isBullet?u=o.getLegendItem(e):(u=o.getLegendItem(a),s.legend=u.label),s.chartType=u.chartType,s})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var o=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,o,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=v["default"].create("DIV","tui-chart-group-tooltip-sector");v["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var o=void 0;return o=i?1:e.end-e.start,{dimension:{width:o,height:t},position:{left:e.start+this.tickInterval/2,top:P}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:P,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,o){return i?this._makeVerticalTooltipSectorBound(t,e,o):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,o,n){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(b["default"].renderDimension(r,s.dimension),b["default"].renderPosition(r,s.position),v["default"].addClass(r,"show")),n&&(o-=1),this.eventBus.fire("showGroupAnimation",o)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();v["default"].hasClass(e,"show")?v["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){(0,l["default"])(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),(0,l["default"])(this.tickInterval)&&(this.tickInterval=e.tickInterval),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),v["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var o=this.getTooltipDimension(t),n=this.positionModel.calculatePosition(o,e.range);this._moveToPosition(t,n,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:n},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(w+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,o){o||this.eventBus.fire(w+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var o=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,o),this._hideTooltipSector(e),v["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(w+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(d["default"]);s.componentType="tooltip",s.GroupTooltip=O},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(23),a=o(r),s=function(){function t(e,i,o,r){n(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=o,this.options=r,this.positions={},this._setData(e,i,o,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var o=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:o,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var o=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:o,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,o){var n=this._makeVerticalData(t,e,o.align),r=this._makeHorizontalData(t,e,o.align),a=o.offset||{};i?(this.mainData=n,this.subData=r):(this.mainData=r,this.subData=n),
|
||
this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var o=e.start===e.end,n=9,r=5,s=o?n:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:o?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,o=void 0;return o=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,o){var n=void 0;return t<-o.areaPosition&&(n=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:o.basePosition}),t=this._makePositionValueDiff(n,i,o)>0?-o.areaPosition:n),t},t.prototype._adjustForwardPositionValue=function(t,e,i,o){var n=this._makePositionValueDiff(t,i,o);if(n>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:o.basePosition});r<-o.areaPosition?t-=n:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,o){return o.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,o):o.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,o):(t=Math.max(t,-o.areaPosition),t=Math.min(t,o.chartSize-o.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var o=this._calculateMainPositionValue(t[i.sizeType],e,i);return o=this._addPositionOptionValue(o,i.positionType),o=this._adjustMainPositionValue(o,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),o=this.mainData,n=this.subData,r=this.positions[i];return r||(r={},r[o.positionType]=this._makeMainPositionValue(t,e,o),r[n.positionType]=this._makeSubPositionValue(t,n),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(23),l=o(u),h=i(90),c=o(h),p=i(91),d=o(p),f=i(92),m=o(f),g=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.mapModel=i.mapModel,o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t){return m["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),o=this.options.suffix?" "+this.options.suffix:"",n=this.colorSpectrum.getColor(i.ratio);return this.templateFunc({name:i.name||i.code,value:i.label,suffix:o,cssText:"background-color: "+n,color:n})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),o=Object.assign({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return o},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(c["default"]);d["default"].mixin(g),s.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(98),l=o(u),h=i(23),c=o(h),p=i(80),d=o(p),f=i(24),m=o(f),g=i(17),y=o(g),_=i(22),v=o(_),T=function(t){function e(i){n(this,e);var o=r(this,t.call(this));return o.chartType=i.chartType,o.eventBus=i.eventBus,o.isDown=!1,o.drawingType=c["default"].COMPONENT_TYPE_DOM,o}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){y["default"].renderDimension(t,this.layout.dimension),y["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,m["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||m["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*c["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].firefox?d["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):d["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(14),a=o(r),s=i(67),u=o(s),l=i(99),h=o(l),c=i(100),p=o(c),d=i(23),f=o(d),m=i(80),g=o(m),y=i(33),_=o(y),v=i(24),T=o(v),b=i(17),A=o(b),x=function(){function t(e){if(n(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=_["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?f["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=_["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=f["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=A["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new h["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var o=this._getRenderingBound(),n=o.dimension,r=o.position;A["default"].renderDimension(t,n),A["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return T["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),T["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=A["default"].getStyle(this.mouseEventDetectorContainer).height,A["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var o=this.mouseEventDetectorContainer.getBoundingClientRect(),n=o.left,r=o.right,s=o.top,u=this.positionMap.series,l=this.expandSize,h={};if(i=!!(0,a["default"])(i)||i){var c=r-l,p=n+l;t=Math.min(Math.max(t,p),c)}return h.x=t-n+u.left-f["default"].CHART_PADDING,(0,a["default"])(e)||(h.y=e-s+u.top-f["default"].CHART_PADDING),h},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new p["default"](i))},t.prototype.rerender=function(t){var e=void 0;this.positionMap=t.positionMap,t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=A["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,o=void 0;return o=_["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(o,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){T["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),T["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype.unselectSeries=function(){this.selectedData&&(this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null)},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this.selectSeries(e)},t.prototype.selectSeries=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._isChangedSelectData(this.selectedData,t)?t&&(this.selectedData&&this.unselectSeries(),this.eventBus.fire("selectSeries",t,e),this.allowSelect&&(this.selectedData=t)):this.unselectSeries()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){g["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();u["default"].mixin(x),e["default"]=x},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(13),a=o(r),s=i(33),u=o(s),l=i(27),h=o(l),c=function(){function t(e,i,o,r,a){n(this,t),this.isLineType=u["default"].isLineTypeChart(o,a),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var o=e,n=i/2;return(0,a["default"])(0,t).map(function(){var t={min:o-n,max:o+n};return o+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var o=(t+1)/(e-1),n=this._getRanges(e,i||0,o);return n[e-1].max-=1,n},t.prototype._makeNormalData=function(t,e,i){var o=e-1,n=t/o,r=i||0;return(0,a["default"])(0,o).map(function(){var e=h["default"].min([t+r,n+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var o=i?"width":"height",n=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[o],e,t.position[n]):this._makeNormalData(t.dimension[o],e,t.position[n])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,o){return!(i.min<t&&i.max>=t)||(e=o,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],o=void 0;return this.isLineType?(o=parseInt(i.max-(i.max-i.min)/2,10),{start:o,end:o}):{start:i.min-(e||0),end:i.max-(e||0)}},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(19),s=o(a),u=i(23),l=o(u),h=i(33),c=o(h),p=i(27),d=o(p),f=function(){function t(e){r(this,t),this.data=this._makeData(e)}return t.prototype._makeTooltipData=function(t,e,i,o){return{sendData:{chartType:t,indexes:e,allowNegativeTooltip:i,bound:o},bound:{left:o.left,top:o.top,right:o.left+o.width,bottom:o.top+o.height}}},t.prototype._makeRectTypePositionData=function(t,e){var i=this,o=!c["default"].isBoxTypeChart(e);return t.map(function(t,n){return t.map(function(t,r){return t?i._makeTooltipData(e,{groupIndex:n,index:r},o,t.end||t):null})})},t.prototype._makeOutliersPositionDataForBoxplot=function(t,e,i){var o=this,r=!c["default"].isBoxTypeChart(e),a=[].concat(n(t));a.forEach(function(t,n){t.forEach(function(t,a){var s=void 0;t.outliers&&t.outliers.length&&(s=t.outliers.map(function(t,i){var s={top:t.top-3,left:t.left-3,width:6,height:6};return o._makeTooltipData(e,{groupIndex:n,index:a,outlierIndex:i},r,s)}),i[n]=i[n].concat(s))})})},t.prototype._makeDotTypePositionData=function(t,e){return t?d["default"].pivot(t).map(function(t,i){return t.map(function(t,o){return t?{sendData:{chartType:e,indexes:{groupIndex:i,index:o},bound:t},bound:{left:t.left-l["default"].DOT_RADIUS,top:t.top-l["default"].DOT_RADIUS,right:t.left+l["default"].DOT_RADIUS,bottom:t.top+l["default"].DOT_RADIUS}}:null})}):[]},t.prototype._joinData=function(t){var e=[];return t.forEach(function(t){t.forEach(function(t,i){var o=void 0;e[i]?(o=e[i].length,t.forEach(function(t){t&&(t.sendData.indexes.legendIndex=t.sendData.indexes.index+o)}),e[i]=e[i].concat(t)):e[i]=t})}),e},t.prototype._makeData=function(t){var e=this,i=t.map(function(t){var i=void 0;return i=c["default"].isLineTypeChart(t.chartType)?e._makeDotTypePositionData(t.data.groupPositions,t.chartType):e._makeRectTypePositionData(t.data.groupBounds,t.chartType),c["default"].isBoxplotChart(t.chartType)&&e._makeOutliersPositionDataForBoxplot(t.data.groupBounds,t.chartType,i),i});return this._joinData(i)},t.prototype._findCandidates=function(t,e,i){var o=this;return t.filter(function(t){var n=t&&t.bound;return!!n&&(n.top===n.bottom&&(n.top-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,n.bottom+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),n.left===n.right&&(n.left-=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO,n.right+=l["default"].SERIES_EXTRA_EVENT_AREA_FOR_ZERO),o._isCandidateTarget(n,{layerX:e,layerY:i}))})},t.prototype._isCandidateTarget=function(t,e){var i=e.layerX,o=e.layerY,n=t.left<=i&&t.right>=i,r=t.top<=o&&t.bottom>=o;return n&&r},t.prototype.findData=function(t,e,i){var o=1e4,n=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);o>e&&(o=e,n=t.sendData)})}return n},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return(0,s["default"])(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var o=i.sendData.indexes,n=o.index===t.seriesIndex&&o.outlierIndex===t.outlierIndex;return n&&(e=i.sendData),!n}),e},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=t.chartOptions,i=t.seriesTypes,o=e.chartType,n=e.series,r=n.zoomable,s=n.allowSelect,l=e.xAxis.pointOnColumn,c=void 0;return c=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(o)?g["default"]:a["default"].isBarTypeChart(o)||a["default"].isBoxplotChart(o)||a["default"].isHeatmapChart(o)||a["default"].isTreemapChart(o)||a["default"].isBulletChart(o)?f["default"]:a["default"].isCoordinateTypeChart(o)||a["default"].isPieChart(o)||a["default"].isPieDonutComboChart(o,i)?h["default"]:u["default"],t.chartType=o,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,t.pointOnColumn=!!l,c(t)}e.__esModule=!0,e["default"]=n;var r=i(33),a=o(r),s=i(102),u=o(s),l=i(105),h=o(l),c=i(106),p=o(c),d=i(107),f=o(d),m=i(97),g=o(m);n.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(98),l=o(u),h=i(103),c=o(h),p=i(104),d=o(p),f=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevFoundData=null,o.prevClientPosition=null,o.zoomable=i.zoomable,o.zoomable&&(Object.assign(o,c["default"]),o._initForZoom(i.zoomable)),o}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount;this.seriesItemBoundsData.length===e&&(this.seriesItemBoundsData=[]),this.seriesItemBoundsData.push(t),this.seriesItemBoundsData.length===e&&(this.dataModel=new d["default"](this.seriesItemBoundsData)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),o=this.dataProcessor.selectLegendIndex,n=this.dataProcessor.isCoordinateType();return this.dataModel.findData(i,o,{distanceLimit:this.dataModel.leftStepLength,isCoordinateTypeChart:n})},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(6),a=o(r),s=i(98),u=o(s),l=i(23),h=o(l),c=i(24),p=o(c),d=i(33),f=o(d),m=i(27),g=o(m),y=i(17),_=o(y),v=i(80),T=o(v);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},presetBeforeRerender:function(){this.resetZoomBtn&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null),this._hideTooltip(),this.prevDistanceOfRange=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){_["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=p["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=u["default"].prototype.render.call(this,t),i=this._renderDragSelection();return p["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,u["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),T["default"].on(document,"mousemove",this._onDrag,this),T["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),T["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),T["default"].off(document,"mousemove",this._onDrag,this),T["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),T["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this.mouseEventDetectorContainer.getBoundingClientRect(),i=e.left,o=this._calculateLayerPosition(t).x,n=this.startClientPosition,r=i-(n.x-this.startLayerX),a=Math.min(o,this.startLayerX)-r,s=Math.abs(o-this.startLayerX),u=this.dragSelectionElement;u.style.left=a+"px",u.style.width=s+"px",p["default"].addClass(u,"show")},_hideDragSelection:function(){p["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var o=this._findDataForZoomable(e.x,e.y);p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)||((0,a["default"])(this.dragStartIndexes)?this.dragStartIndexes=o?o.indexes:{}:this._showDragSelection(t.clientX))}},_changeIndexToHaveMinimumIndexes:function(t){var e=n(t,2),i=e[0],o=e[1],r=o-i;return 0===r?0===i?o+=2:(i-=1,o+=1):1===r&&(0===i?o+=1:i-=1),{startIndex:i,endIndex:o}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e});return this._changeIndexToHaveMinimumIndexes(i)},_fireZoom:function(){this.dataProcessor.isLineCoordinateType()?this._fireZoomUsingValue(this.dragStartIndexes,this.dragEndIndexes):this._fireZoomUsingIndex(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)},_fireZoomUsingIndex:function(t,e){var i=t>e,o=this._adjustIndexRange(t,e),n=o.startIndex,r=o.endIndex,a=r-n;this.prevDistanceOfRange!==a&&(this.prevDistanceOfRange=a,this.reverseMove=i,this.eventBus.fire("zoom",[n,r]))},_adjustValueRange:function(t,e){var i=void 0,o=void 0,n=this.dataProcessor,r=n.integratedXAxisData,a=n.options.xAxis,s=f["default"].isDatetimeType(a.type);s?(i=g["default"].findIndexFromDateTypeArray(r,new Date(t)),o=g["default"].findIndexFromDateTypeArray(r,new Date(e))):(i=r.indexOf(t),o=r.indexOf(e));var u=[i,o].sort(function(t,e){return t-e}),l=this._changeIndexToHaveMinimumIndexes(u),h=l.startIndex,c=l.endIndex;return[r[h],r[c]]},_fireZoomUsingValue:function(t,e){var i=t.index,o=t.groupIndex,r=e.index,a=e.groupIndex,s=this.dataProcessor.rawData.series.line,u=n(s[i].data[o],1),l=u[0],h=n(s[r].data[a],1),c=h[0],p=this._adjustValueRange(l,c);this.eventBus.fire("zoom",p)},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,o=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===o},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),(0,a["default"])(this.dragStartIndexes)){var i=t.target||t.srcElement;p["default"].hasClass(i,h["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):u["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom()):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=p["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),p["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(33),s=o(a),u=i(27),l=o(u),h=i(6),c=o(h),p=function(){function t(e){r(this,t),this.data=this._makeData(e),this.lastGroupIndex=0}return t.prototype._makeData=function(t){var e,i,o=this,r=t.length,a=0,u=t.map(function(t,e){var i=t.chartType,n=t.data,u=n.groupPositions||n.groupBounds;(s["default"].isLineTypeChart(i)||s["default"].isRadialChart(i))&&(u=l["default"].pivot(u)),a=Math.max(u.length-1,a);var h=u.length>1&&u[1][0]&&u[0][0];return o.leftStepLength=h?u[1][0].left-u[0][0].left:0,u.map(function(t,o){return t.map(function(t,n){var a=null;return t&&(a={chartType:i,indexes:{groupIndex:o,index:n},bound:t}),r>1&&(a.indexes.legendIndex=e),a})})});return u=(e=[]).concat.apply(e,n(u)),this.lastGroupIndex=a,(i=[]).concat.apply(i,n(u)).filter(function(t){return!!t})},t.prototype.findData=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.distanceLimit,n=i.isCoordinateTypeChart,r=o&&o<this.leftStepLength,a=n||r;return a?this._findDataForCoordinateDistance(t,o,e):this._findDataForFirstXPosition(t,e)},t.prototype._findDataForFirstXPosition=function(t,e){var i=this.data.reduce(function(e,i){var o=Math.abs(t.x-i.bound.left);return o<=e.xMin&&(e.xMin=o,e.xMinValue=i.bound.left),e},{xMin:Number.MAX_VALUE,xMinValue:0}),o=i.xMinValue,n=this.data.reduce(function(i,n){var r=Math.abs(t.y-n.bound.top),a={};return n.bound.left!==o?a=i:(0,c["default"])(e)||e!==n.indexes.index?r<=i.yMin?(a.yMin=r,a.findFound=n):a=i:(a.yMin=Number.MIN_VALUE,a.findFound=n),a},{yMin:Number.MAX_VALUE,findFound:null}),r=n.findFound;return r},t.prototype._findDataForCoordinateDistance=function(t,e,i){var o=1e5,n=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(r){var a=t.x-r.bound.left,s=t.y-r.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));u>e||((0,c["default"])(i)||i===r.indexes.index)&&u<=o&&(o=u,n=r)}),n},t.prototype.findDataByIndexes=function(t){var e=t.index,i=t.seriesIndex,o=null;return this.data.forEach(function(t){return t.indexes.groupIndex===e&&t.indexes.index===i&&(o=t),!o}),o},t.prototype.getFirstData=function(t){var e={index:0,seriesIndex:t};return this.findDataByIndexes(e)},t.prototype.getLastData=function(t){var e={index:this.lastGroupIndex,seriesIndex:t};return this.findDataByIndexes(e)},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new f(t)}e.__esModule=!0,e["default"]=s;var u=i(23),l=o(u),h=i(98),c=o(h),p=i(17),d=o(p),f=function(t){function e(i){n(this,e);var o=r(this,t.call(this));return o.chartType=i.chartType,o.drawingType=l["default"].COMPONENT_TYPE_DOM,o.eventBus=i.eventBus,o}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){d["default"].renderDimension(t,this.layout.dimension),d["default"].renderPosition(t,this.layout.position)},e.prototype.onReceiveSeriesData=function(){},e.prototype._onClick=function(t){this._onMouseEvent("click",t)},e.prototype._onMousemove=function(t){this._onMouseEvent("move",t)},e.prototype._onMouseout=function(t){this._onMouseEvent("move",t)},e}(c["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);
|
||
t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=s;var l=i(6),h=o(l),c=i(23),p=o(c),d=i(98),f=o(d),m=i(103),g=o(m),y=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevIndex=null,o.zoomable=i.zoomable,o.sizeType=o.isVertical?"height":"width",o.pointOnColumn=i.pointOnColumn,o.zoomable&&(Object.assign(o,g["default"]),o._initForZoom(i.zoomable)),o}return a(e,t),e.prototype.initMouseEventDetectorData=function(t){f["default"].prototype.initMouseEventDetectorData.call(this,t),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findGroupData=function(t,e){var i=this._calculateLayerPosition(t,e,!0),o=void 0;return o=this.isVertical?i.x:i.y,{indexes:{groupIndex:this.tickBaseCoordinateModel.findIndex(o)}}},e.prototype._findDataForZoomable=function(t,e){return this._findGroupData(t,e)},e.prototype._getFirstData=function(){return{indexes:{groupIndex:0}}},e.prototype._getLastData=function(){return{indexes:{groupIndex:this.tickBaseCoordinateModel.getLastIndex()}}},e.prototype._isOuterPosition=function(t,e){var i=this.dimension,o=i.width,n=i.height,r=this.layout.position,a=r.top,s=r.left;return t<s||t>s+o||e<a||e>a+n},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,o=(this.isVertical?this.layout.position.left:this.layout.position.top)-p["default"].CHART_PADDING,n=this.tickBaseCoordinateModel.data,r=n.length,a=this.pointOnColumn?r-1>i:r>i;if(a){var s=0;if(this.pointOnColumn){var l=u(n,1),h=l[0],c=h.min,d=h.max;s=d-c}this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,o),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent,tickInterval:s}),this.prevIndex=i}},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,o=e.y;this._isOuterPosition(i,o)&&!(0,h["default"])(this.prevIndex)&&this._hideTooltip()},e}(f["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(98),l=o(u),h=i(23),c=o(h),p=i(33),d=o(p),f=i(24),m=o(f),g=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.prevFoundData=null,s.zoomHistory=[-1],s.historyBackBtn=null,s}return a(e,t),e.prototype._attachToEventBus=function(){l["default"].prototype._attachToEventBus.call(this),this.eventBus.on("afterZoom",this.onAfterZoom,this)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null,this.styleCursor(!1)},e.prototype.styleCursor=function(t){var e=this.mouseEventDetectorContainer;t?e.style.cursor="pointer":e.style.cursor="default"},e.prototype._onMousemove=function(t){var e=t.clientX,i=t.clientY,o=this._calculateLayerPosition(e,i),n=this._findDataFromBoundsCoordinateModel(o);if(this._isChangedSelectData(this.prevFoundData,n)&&(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=n,n)){if(d["default"].isTreemapChart(this.chartType)){var r=this._getSeriesItemByIndexes(n.indexes);this.styleCursor(r.hasChild)}else d["default"].isBulletChart(this.chartType)&&(n.mousePosition={left:e,top:i});this._showTooltip(n)}},e.prototype._zoomHistoryBack=function(){var t=this.zoomHistory[this.zoomHistory.length-2];this.zoomHistory.pop(),this.eventBus.fire("zoom",t),1===this.zoomHistory.length&&(this.mouseEventDetectorContainer.removeChild(this.historyBackBtn),this.historyBackBtn=null)},e.prototype._getSeriesItemByIndexes=function(t){var e=this.dataProcessor.getSeriesDataModel(c["default"].CHART_TYPE_TREEMAP);return e.getSeriesItem(t.groupIndex,t.index,!0)},e.prototype._onClick=function(t){var e=t.target||t.srcElement;if(l["default"].prototype._onClick.call(this,t),d["default"].isTreemapChart(this.chartType)){if(m["default"].hasClass(e,c["default"].CLASS_NAME_RESET_ZOOM_BTN))return this._hideTooltip(),void this._zoomHistoryBack();var i=this._calculateLayerPosition(t.clientX,t.clientY),o=this._findDataFromBoundsCoordinateModel(i);if(o){var n=this._getSeriesItemByIndexes(o.indexes);if(!n.hasChild)return;this._hideTooltip(),this.eventBus.fire("zoom",o.indexes.index)}}},e.prototype._onMouseout=function(t){var e=t.clientX,i=t.clientY,o=this.mouseEventDetectorContainer.getBoundingClientRect(),n=o.left,r=o.right,a=o.top,s=o.bottom;n<=e&&a<=i&&r>=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=m["default"].create("DIV",c["default"].CLASS_NAME_RESET_ZOOM_BTN),m["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(110),c=o(h),p=i(23),d=o(p),f=i(33),m=o(f),g=d["default"].OVERLAPPING_WIDTH,y=d["default"].TEXT_PADDING,_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:i,left:o,width:0,height:e},end:{top:i,left:n,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+g),e},e.prototype._makeBarChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=o.ratioDistance,p=o.value,d=o.startRatio,f=o.stack,m=r*c,g=this._calculateAdditionalLeft(p),y=r*d,_=a+y+g,v=f!==e.prevStack,T=s*u>l,b=T?h:s,A=void 0;if(!i||!this.options.diverging&&v){var x=i?this.dataProcessor.findStackIndex(f):n;e.top=e.baseTop+b*x,e.plusLeft=0,e.minusLeft=0}p>=0?(A=_+e.plusLeft,e.plusLeft+=m):(e.minusLeft-=m,A=_+e.minusLeft),e.prevStack=f;var D=e.top+h-s/2;return T||(D+=(h-s)/2*(u-1)),this._makeBound(m,s,D,_,A)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),o=this.layout,n=o.dimension,r=n.width,a=n.height,s=o.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,o){var n=o*u.groupSize+s,r={baseTop:n,top:n,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+y)/2},e}(l["default"]);c["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(83),u=o(s),l=i(15),h=o(l),c=i(6),p=o(c),d=i(23),f=o(d),m=i(24),g=o(m),y=i(33),_=o(y),v=i(17),T=o(v),b=i(51),A=o(b),x=i(12),D=o(x),E=f["default"].COMPONENT_TYPE_RAPHAEL,C=f["default"].PUBLIC_EVENT_PREFIX,L=f["default"].CLASS_NAME_SERIES_LABEL,S=function(){function t(e){n(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=A["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData={},this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=E,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,o=void 0===i?"":i,n=e.labelSuffix,r=void 0===n?"":n,s=T["default"].addPrefixSuffix,u=T["default"].addPrefixSuffixItem,l=((0,a["default"])(t)?s:u).bind(T["default"]);return l(t,o,r)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(C+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderConnector=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,o=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(o),(this.hasDataForRendering(o)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,o,t)),_["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)),_["default"].isBarTypeChart(this.chartType)&&_["default"].isValidStackOption(this.options.stack)&&_["default"].isRenderConnector(this.options.stack.connector)&&(this.connectorSet=this._renderConnector(t,o,this.options.stack)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.connectorSet&&this.connectorSet.remove&&(this.connectorSet.forEach(function(t){t.remove()},this),this.connectorSet.remove()),this.seriesData={}},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),(0,p["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(Object.assign({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._resizeGraph.bind(this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=T["default"].isOldBrowser()?1:0;T["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,o=e.max,n=o-i,r=0,a=0;return i<=0&&o>=0?(r=(n+i)/n*t,a=(n-o)/n*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return g["default"].hasClass(t,L)?t:g["default"].findParentByClass(t,L)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){var e=this;this.graphRenderer.animate?(this.seriesSet&&this.graphRenderer.animate(this.animateSeriesLabelArea.bind(this,t),this.seriesSet),this.connectorSet&&this.graphRenderer.animate(this.animateSeriesConnector.bind(this,t),this.connectorSet)):(this.animateSeriesLabelArea(t),this.animateSeriesConnector()),setTimeout(function(){e.options.animationDuration=D["default"].getDefaultAnimationDuration(e.chartType)})},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(C+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(this.labelSet&&this.labelSet.length&&D["default"].animateOpacity(this.labelSet,0,1,this.options.animationDuration)):void this._fireLoadEvent(t)},t.prototype.animateSeriesConnector=function(){this.connectorSet&&this.connectorSet.length&&D["default"].animateOpacity(this.connectorSet,0,1,this.options.animationDuration)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=(0,h["default"])(e.legendIndex)?e.legendIndex:e.index,o=this.dataProcessor.getLegendItem(i),n=(0,h["default"])(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(n,e.index),a=void 0;return(0,h["default"])(r)&&(a={chartType:o.chartType,legend:o.label,legendIndex:i},a.index=r.index),a},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&g["default"].hasClass(this.seriesLabelContainer,"show")&&(g["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var o=this.graphRenderer[e](t);return i&&g["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),o},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=C+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!(0,u["default"])(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=C+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||(0,p["default"])(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(g["default"].removeClass(this.seriesLabelContainer,"show"),g["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.isAvailableSeriesData=function(){return!!(this.seriesData&&this.seriesData.isAvailable&&this.seriesData.isAvailable())},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=S},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(23),a=o(r),s=i(111),u=o(s),l=i(33),h=o(l),c=i(42),p=o(c),d=i(17),f=o(d),m=i(12),g=o(m),y=i(15),_=o(y),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,A=function(){function t(){n(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var o=0;return e&&e<t&&(o=t/2+(t-e)*i/2),o},t.prototype._makeBaseDataForMakingBound=function(t,e){var i=h["default"].isValidStackOption(this.options.stack),o=this._getSeriesDataModel(),n=t/o.getGroupCount(),r=-this.layout.position.top+v,a=this._getLimitDistanceFromZeroPoint(e,this.limit).toMin,s=void 0,u=void 0;if(s=h["default"].isColumnChart(this.chartType)?r:h["default"].isBoxplotChart(this.chartType)?this.layout.position.top-v:this.layout.position.left,o.rawSeriesData.length>0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):o.getFirstSeriesGroup().getSeriesItemCount();var c=n/(l+1),p=this.options.barWidth||this.options.pointWidth,d=c*b,f=a+s;d=this._getBarWidthOptionSize(c,p)||d,h["default"].isColumnChart(this.chartType)&&(f=e-f),h["default"].isBoxplotChart(this.chartType)&&a&&(f-=2*a),u={baseBarSize:e,groupSize:n,barSize:d,pointInterval:c,basePosition:f,itemCount:l,firstAdditionalPosition:c}}return u},t.prototype._renderConnector=function(t,e,i){return this.graphRenderer.renderConnector(t,e,i)},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,o=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=o.map(function(t){return t.map(function(t){var i=t.start,o=t.startLabel,n=t.endLabel,r={end:e.decorateLabel(n)};return(0,_["default"])(i)&&(r.start=e.decorateLabel(o)),r})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(o,n,r):u["default"].boundsToLabelPositionsForColumnChart(o,n,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return f["default"].formatValue({value:p["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,o=t.width,n=t.height;return{left:i+o/2,top:e+n/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,o=i.map(function(i,o){var n=t.bounds[o],r=void 0;return n&&i&&(r=e._makeStackedLabelPosition(n.end)),{end:r}});return o},t.prototype.getGroupLabels=function(t,e,i){var o=this,n=h["default"].isNormalStack(this.options.stack);return t.map(function(t){var r=t.map(function(t){return{end:o.decorateLabel(t.endLabel)}});if(n){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,o){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[o]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],o=[],n=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,o),l=!0,c=h["default"].isNormalStack(this.options.stack),p=h["default"].isBarChart(this.chartType),d=p?"width":"height",m=p?"left":"top",y=p?1:-1;return c&&(u.forEach(function(t,n){var r=i[n],a=o[n];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(r))}),o.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),c=e._makeStackedLabelPosition(l),p=i[a],f=o[a],_=g["default"].getRenderedTextSize(p,n.fontSize,n.fontFamily),v=g["default"].getRenderedTextSize(f,n.fontSize,n.fontFamily),b=(u[d]+_[d])/2,A=(l[d]+v[d])/2;h[m]+=(b+T)*y,c[m]-=(A+T)*y,t.push({end:h}),o.length&&t.push({end:c})})),this.graphRenderer.renderSeriesLabel(t,s,u,n,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stack?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();A.mixin=function(t){Object.assign(t.prototype,A.prototype)},e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(17),s=o(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,o,n){var r=t.value,a=r>=0,s={end:n(e,i,t.endLabel||t.label,o,a)};return t.isRange&&(a=r<0,s.start=n(e,i,t.startLabel,o,a)),s},boundsToLabelPositions:function(t,e,i,o,n){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return o=o||this._makePositionForBoundType.bind(this),n=!!n,t.map(function(t,n){var s=e[n];return t.map(function(t,e){var n=s[e].end;return r._makePositionMap(t,n,a,i,o)})},n)},_makePositionForBarChart:function(t,e,i,o,n){var r=s["default"].getRenderedLabelWidth(i,o),a=t.left;return n?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var o=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},_makePositionForColumnChart:function(t,e,i,o,n){var r=t.top;return n?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var o=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,o=t.map(function(t){var o=e[t.id],n=void 0;return o&&(n=i._makePositionForBoundType(o)),n});return o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(110),c=o(h),p=i(23),d=o(p),f=i(33),m=o(f),g=i(17),y=o(g),_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:o,left:i,width:t,height:0},end:{top:n,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,c=Math.abs(r*o.ratioDistance),p=r*o.startRatio,f=a+p+d["default"].SERIES_EXPAND_SIZE,m=o.stack!==e.prevStack,g=s*u>l,y=g?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&m){var T=i?this.dataProcessor.findStackIndex(o.stack):n;e.left=e.baseLeft+y*T,e.plusTop=0,e.minusTop=0}return o.value>=0?(e.plusTop-=c,_=f+e.plusTop):(_=f+e.minusTop,e.minusTop+=c),e.prevStack=o.stack,v=g?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,c,v,f,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+d["default"].TEXT_PADDING)/2},e}(l["default"]);c["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new p(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(114),c=o(h),p=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.movingAnimation=null,s}return a(e,t),e.prototype._makePositions=function(t){return this._makeBasicPositions(t)},e.prototype._makeSeriesData=function(){var t=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:t,isAvailable:function(){return t&&t.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(p),s.componentType="series"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(15),a=o(r),s=i(6),u=o(s),l=i(27),h=o(l),c=i(23),p=o(c),d=i(33),f=o(d),m=i(42),g=o(m),y=i(17),_=o(y),v=p["default"].SERIES_EXPAND_SIZE,T=p["default"].SERIES_LABEL_PADDING,b=p["default"].MAX_HEIGHT_WORD,A=p["default"].ADDING_DATA_ANIMATION_DURATION,x=function(){function t(){n(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,o=e.width,n=this._getSeriesDataModel(),r=t||o||0,s=n.getGroupCount(),l=this.layout.position.top,h=this.layout.position.left,c=void 0;return this.aligned?c=r/(s>1?s-1:s):(c=r/s,h+=c/2),n.map(function(t){return t.map(function(t,e){var o=void 0;return(0,u["default"])(t.end)||(o={left:h+c*e,top:l+i-t.ratio*i},(0,a["default"])(t.startRatio)&&(o.startTop=l+i-t.startRatio*i)),o})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),o=e.height,n=this.axisDataMap.xAxis,r=this.layout.position.top,s=this.layout.position.left,l=t||e.width||0,h=0;return n.sizeRatio&&(h=g["default"].multiply(l,n.positionRatio),l=g["default"].multiply(l,n.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return(0,u["default"])(t.end)||(e={left:s+t.ratioMap.x*l+h,top:r+o-t.ratioMap.y*o},(0,a["default"])(t.ratioMap.start)&&(e.startTop=o-t.ratioMap.start*o+p["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,o){var n=t.top,r=void 0;return r=f["default"].isValidStackOption(this.options.stack)?(t.startTop+n-i)/2+1:e>=0&&!o||e<0&&o?n-i-T:n+T},t.prototype._makeLabelPosition=function(t,e,i,o,n){return{left:t.left,top:this._calculateLabelPositionTop(t,o,e/2,n)}},t.prototype._getLabelPositions=function(t,e){var i=this,o=h["default"].pivot(this.seriesData.groupPositions),n=_["default"].getRenderedLabelHeight(b,e);return t.map(function(t,e){return t.map(function(t,r){var a=o[e][r];if(!a)return{end:0,start:0};var s=i._makeLabelPosition(a,n,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,n,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){
|
||
var i=t.endLabel,o=t.isRange,n=t.startLabel,r={end:e.decorateLabel(i)};return o&&(r.start=e.decorateLabel(n)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.isAvailableSeriesData()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,this._renderGraph.bind(this)),(0,u["default"])(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=A,o=this._isChangedAxisLimit();o&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=_["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+v},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,o=t.axisDataMap,n=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=o;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(n,s);r&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,h)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();x.mixin=function(t){Object.assign(t.prototype,x.prototype)},e["default"]=x},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(6),l=o(u),h=i(109),c=o(h),p=i(23),d=o(p),f=i(42),m=o(f),g=i(74),y=o(g),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,T=d["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.options=Object.assign({showDot:!1,showArea:!1},s.options),s.movingAnimation=null,s.drawingType=_,s}return a(e,t),e.prototype._makePositionsForRadial=function(t,e){var i=this.layout,o=i.dimension,n=i.position,r=n.top,a=n.left,s=o.width-v-T,u=o.height-v-T,h=m["default"].sum([s/2,v/2,T/2,a]),c=m["default"].sum([u/2,-(v/2),-(T/2),-r]),p=360/e,d=Math.min(s,u)/2;return t.map(function(t){var e=t.map(function(t,e){var i=void 0;if(!(0,l["default"])(t.end)){var o=t.ratio*d,n=c+o,r=360-p*e,a=y["default"].rotatePointAroundOrigin(h,c,h,n,r);i={left:a.x,top:u-a.y}}return i});return e.push(e[0]),e})},e.prototype._getSeriesGroups=function(){var t=this._getSeriesDataModel();return t.map(function(t){return t.map(function(t){return t})},!0)},e.prototype._makeSeriesData=function(){var t=this._getSeriesGroups(),e=this._makePositionsForRadial(t,this._getSeriesDataModel().getGroupCount());return{groupPositions:e,isAvailable:function(){return e&&e.length>0}}},e.prototype.rerender=function(t){return c["default"].prototype.rerender.call(this,t)},e}(c["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(114),c=o(h),p=i(33),d=o(p),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.movingAnimation=null,s}return a(e,t),e.prototype._makePositionTopOfZeroPoint=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,o=this.axisDataMap.yAxis.limit,n=this._getLimitDistanceFromZeroPoint(e,o).toMax+i;return o.min>=0&&!n&&(n=e),n},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,o=e.position.top,n=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||n,s=t?t.top:0,u=i-s+o,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return d["default"].isValidStackOption(this.options.stack)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,o=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,n=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:n,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:o,isAvailable:function(){return n&&n.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);c["default"].mixin(f),s.componentType="series",s.AreaChartSeries=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new g(t)}e.__esModule=!0,e["default"]=s;var u=i(23),l=o(u),h=i(109),c=o(h),p=i(118),d=o(p),f=i(15),m=o(f),g=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.prevClickedIndex=null,s.maxRadius=null,s.drawingType=l["default"].COMPONENT_TYPE_RAPHAEL,s}return a(e,t),e.prototype._calculateStep=function(){var t=this.dataProcessor.isXCountGreaterThanYCount(this.chartType),e=0;if(this.dataProcessor.hasCategories(t)){var i=this.layout.dimension,o=this.dataProcessor.getCategoryCount(t),n=void 0;n=t?i.height:i.width,e=n/o}return e},e.prototype._makeBound=function(t,e,i){var o=this.layout,n=o.dimension,r=n.width,a=n.height,s=o.position,u=(0,m["default"])(t.x)?t.x*r:e,l=(0,m["default"])(t.y)?t.y*a:e;return{left:s.left+u,top:s.top+a-l,radius:Math.max(i*t.r,2)}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.maxRadius,o=this._calculateStep(),n=o?o/2:0;return e.map(function(e,r){var a=n+o*r;return e.map(function(e){var o=e&&e.ratioMap;return o?t._makeBound(e.ratioMap,a,i):null})})},e.prototype._setDataForRendering=function(t){this.maxRadius=t.maxRadius,c["default"].prototype._setDataForRendering.call(this,t)},e}(c["default"]);d["default"].mixin(g),s.componentType="series",s.BubbleChartSeries=g},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(){i(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:o},mousePosition:n},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,n)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,o=this.options.allowSelect,n=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:n,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;o&&r&&(this.onSelectSeries({chartType:n,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();o.mixin=function(t){Object.assign(t.prototype,o.prototype)},e["default"]=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(118),c=o(h),p=i(23),d=o(p),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.prevClickedIndex=null,s}return a(e,t),e.prototype._makeBound=function(t){var e=this.layout,i=e.dimension,o=e.position;return{left:o.left+t.x*i.width,top:i.height-t.y*i.height+o.top,radius:d["default"].SCATTER_RADIUS}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel();return e.map(function(e){return e.map(function(e){var i=e&&e.ratioMap;return i?t._makeBound(e.ratioMap):null})})},e}(l["default"]);c["default"].mixin(f),s.componentType="series",s.ScatterChartSeries=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="map",new b(t)}e.__esModule=!0,e["default"]=s;var u=i(6),l=o(u),h=i(14),c=o(h),p=i(22),d=o(p),f=i(109),m=o(f),g=i(23),y=o(g),_=d["default"].msie&&d["default"].version<=8,v=y["default"].TOOLTIP_GAP,T=y["default"].PUBLIC_EVENT_PREFIX,b=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.basePosition={left:0,top:0},o.zoomMagn=1,o.mapRatio=1,o.graphDimension={},o.limitPosition={},o.mapModel=i.mapModel,o.colorSpectrum=i.colorSpectrum,o.prevPosition=null,o.prevMovedIndex=null,o.isDrag=!1,o.startPosition=null,o}return a(e,t),e.prototype._attachToEventBus=function(){m["default"].prototype._attachToEventBus.call(this),_||this.eventBus.on({dragStartMapSeries:this.onDragStartMapSeries,dragMapSeries:this.onDragMapSeries,dragEndMapSeries:this.onDragEndMapSeries,zoomMap:this.onZoomMap},this)},e.prototype._setMapRatio=function(t){var e=this.layout.dimension,i=t||this.mapModel.getMapDimension(),o=e.width/i.width,n=e.height/i.height;this.mapRatio=Math.min(o,n)},e.prototype._setGraphDimension=function(){var t=this.layout.dimension,e=t.width,i=t.height;this.graphDimension={width:e*this.zoomMagn,height:i*this.zoomMagn}},e.prototype.render=function(t){m["default"].prototype.render.call(this,t),this.seriesSet=this.graphRenderer.sectorSet,this._setMapRatio()},e.prototype.rerender=function(t){m["default"].prototype.rerender.call(this,t),this.seriesSet=this.graphRenderer.sectorSet,this._setMapRatio()},e.prototype.resize=function(t){this.rerender(t)},e.prototype._setLimitPositionToMoveMap=function(){var t=this.layout.dimension,e=this.graphDimension;this.limitPosition={left:t.width-e.width,top:t.height-e.height}},e.prototype._renderGraph=function(){this._setGraphDimension(),this._setLimitPositionToMoveMap(),this.graphRenderer.render(this.paper,{colorSpectrum:this.colorSpectrum,mapModel:this.mapModel,layout:this.layout,theme:this.theme})},e.prototype._renderSeriesLabel=function(){var t=this.mapModel.getLabelData(this.zoomMagn*this.mapRatio);return this.graphRenderer.renderSeriesLabels(this.paper,t,this.theme.label)},e.prototype._renderSeriesArea=function(t,e,i){m["default"].prototype._renderSeriesArea.call(this,t,e,i)},e.prototype._adjustMapPosition=function(t){return{left:Math.max(Math.min(t.left,0),this.limitPosition.left),top:Math.max(Math.min(t.top,0),this.limitPosition.top)}},e.prototype._updateBasePositionForZoom=function(t,e,i){var o=this.basePosition,n=o.left-e.left/2,r=o.top-e.top/2,a={left:n*i+this.limitPosition.left/2,top:r*i+this.limitPosition.top/2};this.basePosition=this._adjustMapPosition(a)},e.prototype._zoom=function(t,e){var i=this.graphDimension,o=this.limitPosition;this._setGraphDimension(),this._setLimitPositionToMoveMap(),this._updateBasePositionForZoom(i,o,t),this._setMapRatio(this.graphDimension),this.graphRenderer.scaleMapPaths(t,e,this.mapRatio,i,i)},e.prototype._updatePositionsToResize=function(t){var e=this.mapRatio/t;this.basePosition.left*=e,this.basePosition.top*=e,this.limitPosition.left*=e,this.limitPosition.top*=e},e.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");(0,l["default"])(e)||this.eventBus.fire("selectSeries",{chartType:this.chartType,index:e,code:this.mapModel.getDatum(e).code})},e.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},e.prototype._showWedge=function(t){var e=this.mapModel.getDatum(t),i=e.ratio,o=e.label;(0,c["default"])(i)||this.eventBus.fire("showWedge",i,o)},e.prototype._showTooltip=function(t,e){var i=e.left,o=e.top;this.eventBus.fire("showTooltip",{chartType:this.chartType,indexes:{index:t},mousePosition:{left:i,top:o-v}})},e.prototype.onMoveSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorIndex");(0,l["default"])(e)?(0,l["default"])(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip"),this.prevMovedIndex=null):(this.prevMovedIndex!==e&&((0,l["default"])(this.prevMovedIndex)||(this.graphRenderer.restoreColor(this.prevMovedIndex),this.eventBus.fire("hideTooltip")),this.graphRenderer.changeColor(e)),this._isChangedPosition(this.prevPosition,t)&&(this._showTooltip(e,{left:t.left,top:t.top}),this.prevMovedIndex=e),this._showWedge(e)),this.prevPosition=t},e.prototype.onDragStartMapSeries=function(t){this.startPosition={left:t.left,top:t.top}},e.prototype._movePosition=function(t,e){var i={x:(e.left-t.left)*this.mapRatio,y:(e.top-t.top)*this.mapRatio};this.graphRenderer.moveMapPaths(i,this.graphDimension)},e.prototype.onDragMapSeries=function(t){this._movePosition(this.startPosition,t),this.startPosition=t,this.isDrag||(this.isDrag=!0,this.eventBus.fire("hideTooltip"))},e.prototype.onDragEndMapSeries=function(){this.isDrag=!1},e.prototype.onZoomMap=function(t,e){var i=t/this.zoomMagn,o=this.layout,n=o.position,r=n.top,a=n.left,s=o.dimension,u=s.width,l=s.height,h=e?e:{left:u/2,top:l/2};this.zoomMagn=t,this._zoom(i,{left:h.left-a,top:h.top-r}),this.eventBus.fire(T+"zoom",t)},e.prototype._makeExportationSeriesData=function(t){return t},e}(m["default"]);s.componentType="series",s.MapChartSeries=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions,i=e.libType,o=e.chartType,n=e.legend,r=t.chartTheme;if(t.libType=i,t.chartType="pie","combo"===o){var a=t.name.split("Series"),s=u(a,1);t.seriesType=s[0],t.isCombo=!0}return n&&(t.legendMaxWidth=n.maxWidth),t.chartBackground=r.chart.background,new I(t)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]=s;var l=i(15),h=o(l),c=i(25),p=o(c),d=i(14),f=o(d),m=i(109),g=o(m),y=i(23),_=o(y),v=i(33),T=o(v),b=i(12),A=o(b),x=_["default"].COMPONENT_TYPE_RAPHAEL,D=_["default"].ANGLE_360,E=_["default"].PIE_GRAPH_LEGEND_LABEL_INTERVAL,C=_["default"].ANGLE_90,L=_["default"].PIE_GRAPH_SMALL_RATIO,S=_["default"].PIE_GRAPH_DEFAULT_RATIO,M=_["default"].RAD,P=_["default"].PIE_GRAPH_LEGEND_LABEL_SIZE,w=_["default"].SERIES_OUTER_LABEL_PADDING,O=_["default"].SERIES_LABEL_PADDING,R="pie1",I=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.isCombo=!!i.isCombo,o.isShowOuterLabel=T["default"].isShowOuterLabel(o.options),o.isLabelAlignOuter=T["default"].isLabelAlignOuter(o.options.labelAlign),o.legendMaxWidth=i.legendMaxWidth,o.drawingType=x,o.quadrantRange=null,o.prevClickedIndex=null,o.legendLabels=[],o.valueLabels=[],o.ratioValues=[],o.legendLongestWidth=0,o.labelTheme=o.theme.label,o._setDefaultOptions(),o}return a(e,t),e.prototype._getLegendLabels=function(){var t=this,e=this.dataProcessor.getLegendLabels(this.seriesType);return e.map(function(e){return A["default"].getEllipsisText(e,t.legendMaxWidth,t.labelTheme)})},e.prototype._makeValidAngle=function(t,e){return(0,f["default"])(t)?t=e:t<0?t=D-Math.abs(t)%D:t>0&&(t%=D),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,o=void 0;return o=e<i?i-e:e>i?D-(e-i):D},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,o=t.r,n=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),h=this.options.startAngle,c=.5*o;if(a&&(c+=c*a),!l)return null;var p=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=h+a,l=h+a/2,p={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:n,angle:l};return h=u,{ratio:r,angles:p,centerPosition:e._getArcPosition(Object.assign({r:c},d)),outerPosition:e._getArcPosition(Object.assign({r:o+e.legendLongestWidth/2+E},d))}});return p},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeRatioValues=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.ratio})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth(),this.ratioValues=this._makeRatioValues();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/C,10)+1;return e&&t%C===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var o=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:o.start===o.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===R,e=this._calculateBaseSize(),i=0,o=this.isShowOuterLabel;return t&&(o=this.dataProcessor.isComboDonutShowOuterLabel()),i=o?L:S,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=o/2+s,h=n/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,h+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,h-=u):this._isInQuadrantRange(2,3)?h-=u:this._isInQuadrantRange(3,3)?(l+=u,h-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?h+=u:this._isInQuadrantRange(4,4)&&(l+=u,h+=u)),{cx:l,cy:h}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*M),top:t.cy-t.r*Math.cos(t.angle*M)}},e.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,n)},e.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",Object.assign({indexes:{groupIndex:i,index:o},mousePosition:n},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return A["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,o=this.options,n=o.showLegend,r=o.showLabel,a=A["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=A["default"].getRenderedTextSize(this.valueLabels[0],P,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(o){var u=o.ratio?Object.assign({},o[t]):null,l=u&&n&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=Object.assign({},e.middle);i.left<t?i.left-=w:i.left+=w,e.end=i}})},e.prototype._moveToOuterPosition=function(t,e,i){var o=e.end,n=o.left,r=o.top,a=this.graphRenderer.getRenderedLabelWidth(i,this.labelTheme)/2+O;return{left:n<t?n-a:n+a,top:r}},e.prototype._setSeriesPosition=function(t,e){var i=[];return i=t.funcMoveToPosition?t.positions.map(function(i,o){return i?t.funcMoveToPosition(i,e[o]):null}):t.positions},e.prototype._renderSeriesLabel=function(t){var e=[],i={},o=t.set(),n=function(n,r){var a=void 0,s=Object.assign({},this.theme.label),u=this.ratioValues;this.isLabelAlignOuter&&"legend"===n&&(a=this.theme.colors,s.fontWeight="bold"),s.fontSize="value"===n?16:s.fontSize,e=this._setSeriesPosition(i,r),this.graphRenderer.renderLabels({dataType:n,paper:t,labelSet:o,positions:e,labels:r,ratioValues:u,theme:s,colors:a,seriesNames:this.legendLabels,labelFilter:this.options.labelFilter})}.bind(this);if(this.options.showLabel&&(i.positions=this._pickPositionsFromSectorData("centerPosition","value"),n("value",this.decorateLabel(this.valueLabels))),this.options.showLegend){var r=this.isLabelAlignOuter?"outerPosition":"centerPosition";i.positions=this._pickPositionsFromSectorData(r,"legend"),n("legend",this.legendLabels)}return o},e.prototype._isDetectedLabel=function(t){var e=document.elementFromPoint(t.left,t.top);return(0,p["default"])(e.className)},e.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findSectorInfo"),i=this.prevClickedIndex,o=this.options.allowSelect;if((e||this._isDetectedLabel(t))&&(0,h["default"])(i)&&o&&(this.onUnselectSeries({indexes:{index:i}}),this.prevClickedIndex=null),e&&e.chartType===this.seriesType){var n=e.index,r=n>-1&&n!==i;o&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:n,legendIndex:e.legendIndex}},r),o&&n>-1&&(this.prevClickedIndex=n))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(g["default"]);s.componentType="series",s.PieChartSeries=I},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new p(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(111),c=o(h),p=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,o){var n=this.layout,r=n.dimension.height,a=n.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(o+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,o=i.width,n=i.height,r=o/this.dataProcessor.getCategoryCount(!1),a=n/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,o){return t._makeBound(r,a,i,o)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),o=i.getSeriesItem(e.groupIndex,e.index),n=o.ratio,r=o.label;this.eventBus.fire("showWedge",n,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this.seriesData.groupBounds,n=this.theme.label,r=this.selectedLegendIndex,a=c["default"].boundsToLabelPositions(i,o,n),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,n,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];l["default"].prototype.resize.apply(this,e)},e.prototype._makeExportationSeriesData=function(t){var e=t.indexes;return{x:e.groupIndex,y:e.index}},e}(l["default"]);s.componentType="series",s.HeatmapChartSeries=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="treemap",t.chartBackground=t.chartTheme.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(14),l=o(u),h=i(109),c=o(h),p=i(124),d=o(p),f=i(111),m=o(f),g=i(23),y=o(g),_=i(33),v=o(_),T=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.theme.borderColor=o.theme.borderColor||y["default"].TREEMAP_DEFAULT_BORDER,o.theme.label.color=o.options.useColorValue?"#000":"#fff",o.rootId=y["default"].TREEMAP_ROOT_ID,o.startDepth=1,o.selectedGroup=null,o.boundMap=null,o.colorSpectrum=i.colorSpectrum,o._initOptions(),o}return a(e,t),e.prototype._initOptions=function(){this.options.useColorValue=!!this.options.useColorValue,(0,l["default"])(this.options.zoomable)&&(this.options.zoomable=!this.options.useColorValue),(0,l["default"])(this.options.useLeafLabel)&&(this.options.useLeafLabel=!this.options.zoomable)},e.prototype._makeSeriesData=function(){var t=this._getBoundMap(),e=this._makeBounds(t);return{boundMap:t,groupBounds:e,seriesDataModel:this._getSeriesDataModel(),startDepth:this.startDepth,isPivot:!0,colorSpectrum:this.options.useColorValue?this.colorSpectrum:null,chartBackground:this.chartBackground,
|
||
zoomable:this.options.zoomable,isAvailable:function(){return e&&e.length>0}}},e.prototype._makeBoundMap=function(t,e,i){var o=this,n=this._getSeriesDataModel(),r=Object.assign({},this.layout.dimension,this.layout.position),a=n.findSeriesItemsByParent(t);return i=i||r,e=Object.assign(e||{},d["default"].squarify(i,a)),a.forEach(function(t){e=o._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),o=void 0;return o=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],n=null;return i&&o(e)&&(n={end:i}),n},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var o=!1;if(e&&i.id!==e.id&&i.group===e.group){var n=t.findParentByDepth(i.id,e.depth+1);n&&n.parent===e.id&&(o=!0)}return o},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this._getBoundMap(),n=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=m["default"].boundsToLabelPostionsForTreemap(a,o,n);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,n)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];c["default"].prototype.resize.apply(this,e)},e.prototype._zoom=function(t,e,i){this._clearSeriesContainer(),this.boundMap=null,this.rootId=t,this.startDepth=e,this.selectedGroup=i,this._renderSeriesArea(this.paper,this._renderGraph.bind(this)),this.animateComponent(!0)},e.prototype.zoom=function(t){var e=t.index;if(this.labelSet.remove(),e===-1)return void this._zoom(y["default"].TREEMAP_ROOT_ID,1,null);var i=this._getSeriesDataModel(),o=i.getSeriesItem(0,e,!0);o&&o.hasChild&&(this._zoom(o.id,o.depth+1,o.group),this.eventBus.fire("afterZoom",e))},e.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=this._getSeriesDataModel().getSeriesItem(e.groupIndex,e.index,!0);return Object.assign({chartType:this.chartType,indexes:i.indexes})},e.prototype.onHoverSeries=function(t){if(v["default"].isShowLabel(this.options)){var e=this._getSeriesDataModel().getSeriesItem(t.groupIndex,t.index,!0),i=e.colorRatio;this.graphRenderer.showAnimation(t,this.options.useColorValue,.6),i>-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){v["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(c["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(58),r=o(n),a=i(42),s=o(a),u=i(27),l=o(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return Object.assign({},t)},_calculateScale:function(t,e,i){return e*i/s["default"].sum(t)},_makeBaseData:function(t,e,i){var o=this._calculateScale((0,r["default"])(t,"value"),e,i),n=t.map(function(t){return{id:t.id,weight:t.value*o}}).sort(function(t,e){return e.weight-t.weight});return n},_worst:function(t,e,i,o){var n=t*t,r=o*o;return Math.max(r*i/n,n/(r*e))},_changedStackDirection:function(t,e,i,o){var n=l["default"].min(e),r=l["default"].max(e),a=this._worst(t,n,r,i),s=this._worst(t+o,Math.min(n,o),Math.max(r,o),i);return s>=a},_isVerticalStack:function(t){return t.height<t.width},_selectBaseSize:function(t){return this._isVerticalStack(t)?t.height:t.width},_calculateFixedSize:function(t,e,i){if(!e){var o=(0,r["default"])(i,"weight");e=s["default"].sum(o)}return e/t},_addBounds:function(t,e,i,o){[t].concat(e).reduce(function(t,e){var n=e.weight/i;return o(n,t,e.id),t+n})},_addBound:function(t,e,i,o,n){this.boundMap[n]={left:t,top:e,width:i,height:o}},_addBoundsForVerticalStack:function(t,e,i,o){var n=this,r=this._calculateFixedSize(i,o,t);this._addBounds(e.top,t,r,function(t,i,o){n._addBound(e.left,i,r,t,o)}),e.left+=r,e.width-=r},_addBoundsForHorizontalStack:function(t,e,i,o){var n=this,r=this._calculateFixedSize(i,o,t);this._addBounds(e.left,t,r,function(t,i,o){n._addBound(i,e.top,t,r,o)}),e.top+=r,e.height-=r},_getAddingBoundsFunction:function(t){return this._isVerticalStack(t)?this._addBoundsForVerticalStack.bind(this):this._addBoundsForHorizontalStack.bind(this)},squarify:function(t,e){var i=this,o=this._makeBaseBound(t),n=this._makeBaseData(e,o.width,o.height),a=[],u=void 0,l=void 0;return this.boundMap={},n.forEach(function(t){var e=(0,r["default"])(a,"weight"),n=s["default"].sum(e);a.length&&i._changedStackDirection(n,e,u,t.weight)&&(l(a,o,u,n),a=[]),a.length||(u=i._selectBaseSize(o),l=i._getAddingBoundsFunction(o)),a.push(t)}),a.length&&l(a,o,u),this.boundMap}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="boxplot",t.chartBackground=i.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(110),c=o(h),p=i(23),d=o(p),f=i(33),m=o(f),g=i(17),y=o(g),_=d["default"].SERIES_EXPAND_SIZE,v=d["default"].TEXT_PADDING,T=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.supportSeriesLable=!1,s}return a(e,t),e.prototype._makeBoxplotChartBound=function(t,e,i,o,n){var r=t.pointInterval,a=t.barSize,s=t.baseBarSize,u=t.basePosition,l=Math.abs(s*o.ratioDistance),h=s*(1-o.lqRatio),c=u+h+_,p=u+_,d=n,f=void 0;e.left=e.baseLeft+r*d,e.plusTop=0,e.minusTop=0,o.value>=0?(e.plusTop-=l,f=c+e.plusTop):(f=c+e.minusTop,e.minusTop+=l);var m=e.left+r-a/2,g=(o.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:m+a/2}});return{start:{top:c,left:m,width:a,height:0},end:{top:f,left:m,width:a,height:l},min:{top:s*(1-o.minRatio)+p,left:m,width:a,height:0},max:{top:s*(1-o.maxRatio)+p,left:m,width:a,height:0},median:{top:s*(1-o.medianRatio)+p,left:m,width:a,height:0},outliers:g}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stack),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+v)/2},e}(l["default"]);c["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new A(t)}e.__esModule=!0,e["default"]=s;var u=i(109),l=o(u),h=i(17),c=o(h),p=i(23),d=o(p),f=d["default"].BULLET_TYPE_ACTUAL,m=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,g=d["default"].BULLET_TYPE_RANGE,y=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,T=d["default"].BULLET_MARKER_DETECT_PADDING,b=d["default"].MAX_HEIGHT_WORD,A=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.isVertical=i.isVertical,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),o={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var n=t._makeBulletChartBound.bind(t,i,o),r=e.map(n);return t._updateIterationData(o,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=n,u=o,l=n):(u=n,l=o);var h=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:h}},e.prototype._makeBulletChartBound=function(t,e,i){var o=i.type,n=void 0;return o===f?n=this._makeBarBound(i,m,t,e):o===g?n=this._makeBarBound(i,y,t,e):o===_&&(n=this._makeLineBound(i,v,t,e)),n.type=o,n},e.prototype._makeBarBound=function(t,e,i,o){var n=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*n,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(o,i,a,s,u):this._makeHorizontalBarBound(o,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,o,n){return{top:t.top-n,left:t.left+(e.itemWidth-i)/2,width:i,height:o}},e.prototype._makeHorizontalBarBound=function(t,e,i,o,n){return{top:t.top+(e.itemWidth-i)/2,left:t.left+n-o,width:o,height:i}},e.prototype._makeLineBound=function(t,e,i,o){var n=i.itemWidth,r=i.valueAxisWidth,a=n*e,s=r*t.endRatio,u=T,l=T,h=void 0,c=void 0;return this.isVertical?(h=o.top-s,c=o.left+(n-a)/2,l=a):(h=o.top+(n-a)/2,c=o.left+s,u=a),{top:h,left:c,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==g&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,o=this.seriesData.groupBounds,n=c["default"].getRenderedLabelHeight(b,e);return o.map(function(t){var e=[];return t.forEach(function(t){t.type!==g&&e.push(i._makePositionByBound(t,n))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,o=t.left,n={};if(this.isVertical){var r=t.width||t.length;n.top=i-e,n.left=o+r/2}else{var a=t.width||0,s=t.height||t.length;n.top=i+s/2,n.left=o+5+(a||0)}return n},e}(l["default"]);s.componentType="series",s.BulletChartSeries=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new L(t)}e.__esModule=!0,e["default"]=r;var a=i(22),s=o(a),u=i(128),l=o(u),h=i(23),c=o(h),p=i(24),d=o(p),f=i(42),m=o(f),g=i(17),y=o(g),_=i(80),v=o(_),T=i(33),b=o(T),A=c["default"].COMPONENT_TYPE_DOM,x=c["default"].MAP_CHART_ZOOM_AREA_HEIGHT,D=c["default"].MAP_CHART_ZOOM_AREA_WIDTH,E=c["default"].CHART_PADDING,C=s["default"].msie&&s["default"].version<=8,L=function(){function t(e){n(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,o=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=o&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=A,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!C){var i=m["default"].sum([t.positionMap.series.top,-x,D]);this.isMapLegendTop&&(i=t.positionMap.legend.top-D);var o={top:i,right:E};e=d["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,y["default"].renderPosition(e,o),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return d["default"].hasClass(t,e)||(i=d["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),o=i.getAttribute("data-magn"),n=this._calculateMagn(o);return n>5?this.magn=5:n<1?this.magn=1:n>=1&&this._zoom(n),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(93),r=o(n),a={HTML_SERIES_LABEL:'<div class="tui-chart-series-label" style="{{ cssText }}"{{ rangeLabelAttribute }}>{{ label }}</div>',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'<a class="tui-chart-zoom-btn zoom-in" href="#" data-magn="1"></a><a class="tui-chart-zoom-btn zoom-out" href="#" data-magn="-1"></a>',HTML_SERIES_BLOCK:'<div class="tui-chart-series-block" style="{{ cssText }}">{{ label }}</div>'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=i(14),h=o(l),c=i(9),p=o(c),d=i(15),f=o(d),m=i(6),g=o(m),y=i(26),_=o(y),v=i(130),T=o(v),b=i(23),A=o(b),x=i(131),D=o(x),E=i(132),C=o(E),L=i(136),S=o(L),M=i(138),P=o(M),w=i(139),O=o(w),R=i(133),I=o(R),k=i(50),B=o(k),N=i(33),F=o(N),G=i(17),H=o(G),V=i(42),z=o(V),j=i(55),W=o(j),Y=function(t){function e(i,o,n,s){r(this,e);var u=a(this,t.call(this));return u.originalRawData=W["default"].deepCopy(i),u.chartType=o,u.options=n,u.seriesTypes=s,u.originalLegendData=null,u.selectLegendIndex=null,u.dynamicData=[],u.defaultValues=[0,500],u.initData(i),u.initZoomedRawData(),u.baseInit(),u.isLineCoordinateType()&&(u.integratedXAxisData=u._integrateXAxisData()),u}return s(e,t),e.prototype._integrateXAxisData=function(){var t=this.rawData.series.line,e=this.options.xAxis||{},i=[],o=!1;return o=(0,p["default"])(e)?e.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):e.type&&F["default"].isDatetimeType(e.type),t.forEach(function(t){t.data.forEach(function(t){(0,g["default"])(t)||i.push(t[0])})}),i=[].concat(n(new Set(i))),o&&(i=i.map(function(t){return new Date(t)})),i.sort(function(t,e){return t-e})},e.prototype.getOriginalRawData=function(){return W["default"].deepCopy(this.originalRawData)},e.prototype.getCurrentData=function(){var t=this.zoomedRawData;return t=t?W["default"].deepCopy(t):this.getOriginalRawData()},e.prototype._filterSeriesDataByIndexRange=function(t,e,i){var o=[].concat(n(t));return o.forEach(function(t){t.data=t.data.slice(e,i+1)}),o},e.prototype._filterRawDataByIndexRange=function(t,e){var i=this,o=u(e,2),n=o[0],r=o[1],a=Object.assign({},t);return Object.entries(a.series).forEach(function(t){var e=u(t,2),o=e[0],s=e[1];a.series[o]=i._filterSeriesDataByIndexRange(s,n,r)}),a.categories&&(a.categories=a.categories.slice(n,r+1)),a},e.prototype._filterSeriesDataByValue=function(t,e,i){var o=F["default"].isDatetimeType(this.options.xAxis.type),r=[].concat(n(t));return r.forEach(function(t){t.data=t.data.filter(function(t){var n=o?new Date(t[0]):t[0];return n>=e&&n<=i})}),r},e.prototype._filterRawDataByValue=function(t,e){var i=this,o=u(e,2),n=o[0],r=o[1],a=Object.assign({},t);return Object.entries(a.series).forEach(function(t){var e=u(t,2),o=e[0],s=e[1];a.series[o]=i._filterSeriesDataByValue(s,n,r)}),a},e.prototype.updateRawDataForZoom=function(t){var e=this.getCurrentData(),i=this.getRawData(),o=this.isLineCoordinateType()?this._filterRawDataByValue.bind(this):this._filterRawDataByIndexRange.bind(this);this.zoomedRawData=o(e,t),i=o(i,t),this.initData(i)},e.prototype.initZoomedRawData=function(){this.zoomedRawData=null},e.prototype.initData=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=W["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null,this.lineCoordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return B["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return(0,T["default"])(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,o=e+"Axis",n=this.options[o]||{},r=!1;return r=(0,p["default"])(n)?n.filter(function(t){return t.type&&F["default"].isDatetimeType(t.type)}):n.type&&F["default"].isDatetimeType(n.type),t=r?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=r,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return(0,p["default"])(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),(0,f["default"])(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),o=this.getCategorieDateType(),n=null;return i.forEach(function(i,r){return o&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(n=r),(0,g["default"])(n)}),n},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,o){var n=e===t;return n&&(i=o),!n}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),o=e?"yAxis":"xAxis",n=this.options[o]||{},r=this.options.tooltip||{};return F["default"].isDatetimeType(r.type)?i=H["default"].formatDate(i,r.dateFormat):F["default"].isDatetimeType(n.type)&&(i=H["default"].formatDate(i,n.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var o=!i,n=this._getTooltipCategory(t,o),r=this.getCategoryCount(!o);return r&&(n+=", "+this._getTooltipCategory(r-e-1,!o)),n},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=B["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return(0,_["default"])(t,this.getStacks())},e.prototype.isLineCoordinateType=function(){var t=this.lineCoordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.lineCoordinateType=t}return t},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!(0,f["default"])(t)){var e=this.chartType;t=F["default"].isCoordinateTypeChart(e),t=t||F["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||F["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],o=void 0;o=F["default"].isBoxplotChart(this.chartType)?S["default"]:F["default"].isTreemapChart(this.chartType)?O["default"]:F["default"].isBulletChart(this.chartType)?P["default"]:C["default"],this.seriesDataModelMap[t]=new o(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],o=null;return i.forEach(function(e){var i=e.name===t;return i&&(o=e),!i}),o},e.prototype._pushValue=function(t,e,i){var o=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),o&&o.data.push(e)},e.prototype._pushValues=function(t,e,i){var o=this;t.forEach(function(t,n){o._pushValue(t,e[n],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&(0,p["default"])(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var o=u(i,2),n=o[0],r=o[1];e._pushValues(r,t[n],n)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var o=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),o&&o.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),o=i[0],n=i[1];t._shiftValues(n,o)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new I["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)&&(0,h["default"])(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return(0,h["default"])(e.min)||(0,h["default"])(e.max)},e.prototype._createValues=function(t,e,i){var o=void 0,n=this.options,r=n.plot,a=n[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),h=this.isLimitOptionsInsufficient(i),c=F["default"].isLineChart(t)||F["default"].isAreaChart(t)||F["default"].isLineAreaComboChart(t,this.seriesTypes),p=this.defaultValues;if(F["default"].isComboChart(t))o=[],this._eachByAllSeriesDataModel(function(t){o=o.concat(t.getValues(e))});else if(u&&h)if(!l&&h&&(p=p.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(o=this.getDefaultDatetimeValues(),c&&r){var d=this.getValuesFromPlotOptions(r,s);o=o.concat(d)}}else o=p;else o=this.getSeriesDataModel(t).getValues(e);return o},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var o=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(o)}),i},e.prototype.getValues=function(t,e,i){var o=t+e;return this.valuesMap[o]||(this.valuesMap[o]=this._createValues(t,e,i)),this.valuesMap[o]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,o){i.each(function(e,i){t(e,i,o)},e)})},e.prototype._pickLegendLabel=function(t){return!(0,g["default"])(t)&&t.name?(0,T["default"])(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return((0,g["default"])(t)||(0,f["default"])(t.visible)&&t.visible===!1)&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},o=void 0;return"visibility"===t?o=this._isVisibleLegend:"label"===t&&(o=this._pickLegendLabel),o&&Object.entries(e).forEach(function(t){var e=u(t,2),n=e[0],r=e[1],a=r.map(o);(0,f["default"])(a)&&(i[n]=a)}),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),o=this.seriesTypes||[this.chartType],r=void 0;(0,p["default"])(e)?(r=[this.chartType],r[this.chartType]=e):(o=this.seriesTypes,r=e);var a=o.map(function(t){return r[t].map(function(e,o){var n=(0,p["default"])(i[t]);return{chartType:t,label:e,visible:n?i[t][o]:i[o]}})});return(t=[]).concat.apply(t,n(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){F["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var o=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),o.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=z["default"].sumPlusValues(t),o=z["default"].sumMinusValues(t);i=i.concat([e,o])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,o,n){var r=void 0;return F["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,o),F["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=F["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):F["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,o,n),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),o=i.getMaxValue("r"),n=function(t){return t.r/o>A["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,n),maxItem:i.findMaxSeriesItem(e,n)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(D["default"]);e["default"]=Y},function(t,e){"use strict";function i(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})}t.exports=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){
|
||
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(56),a=o(r),s=i(25),u=o(s),l=i(21),h=o(l),c=i(27),p=o(c),d=i(17),f=o(d),m=i(42),g=o(m),y=function(){function t(){n(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getCurrentData=function(){},t.prototype.getMaxValue=function(t,e){return p["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return p["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var o=this.getMaxValue(t,i),n=this.getFormatFunctions();return f["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var o=this.getMinValue(t,i),n=this.getFormatFunctions();return f["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=g["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e<t.length-1},t.prototype._isComma=function(t){return t.indexOf(",")>-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=f["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return f["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[this._formatToDecimal.bind(this,i)];else if(this._isZeroFill(t))return i=t.length,e=[this._formatToZeroFill.bind(this,i)];return this._isComma(t)&&e.push(f["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=(0,h["default"])(this.options,"chart","format"),e=[];return(0,a["default"])(t)?e=[t]:(0,u["default"])(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=i(9),u=o(s),l=i(15),h=o(l),c=i(21),p=o(c),d=i(133),f=o(d),m=i(134),g=o(m),y=i(135),_=o(y),v=i(33),T=o(v),b=i(42),A=o(b),x=i(27),D=o(x),E=Array.prototype.concat,C=function(){function t(e,i,o,n,a){r(this,t),this.chartType=i,this.options=o||{},this.formatFunctions=n,this.rawSeriesData=e||[],this.isCoordinateType=a,this.baseGroups=null,this.groups=null,this.options.series=this.options.series||{},this.isDivergingChart=T["default"].isDivergingChart(i,this.options.series.diverging),this.valuesMap={},this._removeRangeValue()}return t.prototype._removeRangeValue=function(){var t=(0,p["default"])(this.options,"series")||{},e=T["default"].isAllowRangeData(this.chartType)&&!T["default"].isValidStackOption(t.stack)&&!t.spline;e||this.isCoordinateType||Object.values(this.rawSeriesData).forEach(function(t){(0,u["default"])(t.data)&&t.data.forEach(function(e,i){if((0,h["default"])(e)){var o=E.apply(e),n=a(o,1);t.data[i]=n[0]}})})},t.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=this.isDivergingChart,o=this.isCoordinateType,n=this.options.xAxis,r=T["default"].isPieChart(this.chartType),a=T["default"].isHeatmapChart(this.chartType)||T["default"].isTreemapChart(this.chartType),s=void 0,l=void 0;return o?(l=_["default"],s=function(t){t.sort(function(t,e){return t.x-e.x})}):(l=g["default"],s=function(){}),this.rawSeriesData.map(function(c){var p=void 0,d=void 0,f=void 0;d=(0,u["default"])(c)?c:[].concat(c.data),a||(p=c.stack),c.name&&(f=c.name),(o||r)&&(d=d.filter(h["default"]));var m=d.map(function(o,r){return new l({datum:o,chartType:t,formatFunctions:e,index:r,legendName:f,stack:p,isDivergingChart:i,xAxisType:n.type,dateFormat:n.dateFormat})});return s(m),m})},t.prototype._getBaseGroups=function(){return this.baseGroups||(this.baseGroups=this._createBaseGroups()),this.baseGroups},t.prototype._createSeriesGroupsFromRawData=function(t){var e=this._getBaseGroups();return t&&(e=D["default"].pivot(e)),e.map(function(t){return new f["default"](t)})},t.prototype._getSeriesGroups=function(){return this.groups||(this.groups=this._createSeriesGroupsFromRawData(!0)),this.groups},t.prototype.getGroupCount=function(){return this._getSeriesGroups().length},t.prototype._getPivotGroups=function(){return this.pivotGroups||(this.pivotGroups=this._createSeriesGroupsFromRawData()),this.pivotGroups},t.prototype.getSeriesGroup=function(t,e){return e?this._getPivotGroups()[t]:this._getSeriesGroups()[t]},t.prototype.getFirstSeriesGroup=function(t){return this.getSeriesGroup(0,t)},t.prototype.getFirstItemLabel=function(){return this.getFirstSeriesGroup().getFirstSeriesItem().label},t.prototype.getSeriesItem=function(t,e,i){return this.getSeriesGroup(t,i).getSeriesItem(e)},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0,0)},t.prototype.getValue=function(t,e){return this.getSeriesItem(t,e).value},t.prototype.getMinValue=function(t){return D["default"].min(this.getValues(t))},t.prototype.getMaxValue=function(t){return D["default"].max(this.getValues(t))},t.prototype._findSeriesItem=function(t){var e=void 0;return this.each(function(i){return e=i.find(t),!e}),e},t.prototype._findSeriesItemByValue=function(t,e,i){return i=i||function(){return null},this._findSeriesItem(function(o){return o&&o[t]===e&&i(o)})},t.prototype.findMinSeriesItem=function(t,e){var i=this.getMinValue(t);return this._findSeriesItemByValue(t,i,e)},t.prototype.findMaxSeriesItem=function(t,e){var i=this.getMaxValue(t);return this._findSeriesItemByValue(t,i,e)},t.prototype._createValues=function(t){var e,i=this.map(function(e){return e.getValues(t)});return i=(e=[]).concat.apply(e,n(i)),i.filter(function(t){return!isNaN(t)})},t.prototype.getValues=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=A["default"].sumPlusValues(t),i=Math.abs(A["default"].sumMinusValues(t)),o=e>0&&i>0?.5:1;return o},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=A["default"].sumPlusValues(e),o=Math.abs(A["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,o)})},t.prototype._makeSubtractionValue=function(t){var e=T["default"].allowMinusPointRender(this.chartType),i=0;return!e&&T["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=T["default"].isAllowedStackOption(this.chartType);i&&T["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&T["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=A["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,o=t.yAxis,n=e?D["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),o&&(s=Math.abs(o.max-o.min),u=this._makeSubtractionValue(o)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",n,0),(0,h["default"])(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,o){i.push(t(e,o))},e),i},t}();e["default"]=C},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(15),s=o(a),u=i(58),l=o(u),h=i(42),c=o(h),p=function(){function t(e){n(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&((0,s["default"])(i[t])&&e.push(i[t]),(0,s["default"])(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),o=i[0],n=i[1];e[o]=c["default"].sum(n.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var o=e[i.stack];i.addRatio(o,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var o=i.value>=0?t:e;i.addRatio(o,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(s["default"]);return(0,l["default"])(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(15),s=o(a),u=i(6),l=o(u),h=i(23),c=o(h),p=i(17),d=o(p),f=i(42),m=o(f),g=i(33),y=o(g),_=function(){function t(e){n(this,t),this.chartType=e.chartType,this.stack=e.stack||c["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.tooltipLabel=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,y["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,o=this._createValues(t),n=o.length>1,a=r(o,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),(0,l["default"])(s)?this._setLabel(""):["label","tooltipLabel"].forEach(function(t){i[t]=d["default"].formatValue({value:s,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"tooltipLabel"===t?"makingTooltipLabel":"makingSeriesLabel",legendName:i.legendName})}),this.endLabel=this.label,n&&(this.addStart(o[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._setLabel=function(t){this.label=t,this.tooltipLabel=t},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){(0,l["default"])(this.start)&&(this.start=t,this.startLabel=d["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this._setLabel(this.startLabel+" ~ "+this.endLabel)},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=m["default"].calculateRatio(this.value,t,e,i),(0,s["default"])(this.start)&&(this.startRatio=m["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return d["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(18),l=o(u),h=i(15),c=o(h),p=i(19),d=o(p),f=i(33),m=o(f),g=i(17),y=o(g),_=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if((0,s["default"])(t))if(this.x=t[0]||0,this.y=t[1]||0,m["default"].isBubbleChart(this.chartType)){var o=r(t,4);this.r=o[2];var n=o[3];this.label=void 0===n?"":n}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(m["default"].isDatetimeType(this.xAxisType)&&(i=(0,l["default"])(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){m["default"].isLineTypeChart(this.chartType)&&m["default"].isDatetimeType(this.xAxisType)?this.label=y["default"].formatDate(this.x,this.dateFormat):this.label=y["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=y["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!(0,c["default"])(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],o=y["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return(0,d["default"])(e)?o:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return(0,c["default"])(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(137),u=o(s),l=i(132),h=o(l),c=i(9),p=o(c),d=Array.prototype.concat,f=function(t){function e(i,o,a,s){n(this,e);var u=r(this,t.call(this));return u.chartType=o,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var o=(0,p["default"])(i)?i:[].concat(i.data),n=o.map(function(o,n){return new u["default"]({datum:o,chartType:t,formatFunctions:e,index:n,legendName:i.name})});return n})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=d.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(h["default"]);e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(15),s=o(a),u=i(6),l=o(u),h=i(17),c=o(h),p=i(42),d=o(p),f=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,o=this._createValues(t),n=r(o,5),a=n[0],s=n[1],u=n[2],l=n[3],h=n[4],p=o.length>5,d=void 0,f=function(t){return c["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=l,this.median=u,this.lq=s,this.min=a,this.index=e,p&&(this.outliers=[],d=this.outliers,o.slice(5).forEach(function(t){d.push({value:t,label:f(t)})})),this.label=f(h),this.uqLabel=f(l),this.medianLabel=f(u),this.lqLabel=f(s),this.minLabel=f(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return(0,l["default"])(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){(0,l["default"])(this.min)&&(this.min=t,this.minLabel=c["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=d["default"].calculateRatio;this.ratio=this.maxRatio=o(this.max,t,e,i),this.uqRatio=o(this.uq,t,e,i),this.medianRatio=o(this.median,t,e,i),this.lqRatio=o(this.lq,t,e,i),this.minRatio=o(this.min,t,e,i),(this.outliers||[]).forEach(function(n){n.ratio=o(n.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return c["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return(0,s["default"])(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(134),u=o(s),l=i(132),h=o(l),c=i(23),p=o(c),d=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,o=0,n=this.rawSeriesData.map(function(n){var r=[],a=n.data,s=n.markers,l=n.ranges,h=s.length,c=l.length;return l&&c&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,c)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),o=Math.max(o,h)),r});return this.maxMarkerCount=o,this.maxRangeCount=i,n},e.prototype._createSeriesGroupsFromRawData=function(){return h["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(58),l=o(u),h=i(15),c=o(h),p=i(6),d=o(p),f=i(14),m=o(f),g=i(132),y=o(g),_=i(140),v=o(_),T=i(23),b=o(T),A=i(42),x=o(A),D=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r(this,t.call.apply(t,[this].concat(o)));return s.foundSeriesItemsMap={},s.seriesItemMap={},s}return a(e,t),e.prototype._flattenHierarchicalData=function(t,e,i){var o=this,n=[],r=void 0;return e?r=e+"_":(r=b["default"].TREEMAP_ID_PREFIX,e=b["default"].TREEMAP_ROOT_ID),i=i||[],t.forEach(function(t,a){var s=r+a,u=t.children,l=i.concat(a);t.indexes=l,(0,d["default"])(t.value)||n.push(t),t.id||(t.id=s),t.parent||(t.parent=e),u&&(n=n.concat(o._flattenHierarchicalData(u,s,l)),delete t.children)}),n},e.prototype._partitionRawSeriesDataByParent=function(t,e){var i=[],o=[];return t.forEach(function(t){t.parent===e?i.push(t):o.push(t)}),[i,o]},e.prototype._setTreeProperties=function(t,e,i,o){var n=this,r=this._partitionRawSeriesDataByParent(t,i),a=s(r,1),u=a[0],h=s(r,2),c=h[1],p=e+1;return u.forEach(function(t,i){t.depth=e,t.group=(0,m["default"])(o)?i:o;var r=n._setTreeProperties(c,p,t.id,t.group,t.fillOpacity),a=r.filter(function(t){return t.depth===p});a.length?(t.value=x["default"].sum((0,l["default"])(a,"value")),t.hasChild=!0):t.hasChild=!1,r.length&&r.sort(function(t,e){return e.value-t.value}),u=u.concat(r)}),u},e.prototype._setRatio=function(t,e){var i=this,o=this._partitionRawSeriesDataByParent(t,e),n=s(o,2),r=n[0],a=n[1],u=x["default"].sum((0,l["default"])(r,"value"));r.forEach(function(t){var e=(0,d["default"])(t.value)?0:t.value;t.ratio=e/u,t.hasChild&&i._setRatio(a,t.id)})},e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.seriesItemMap,i=this.formatFunctions,o=this._flattenHierarchicalData(this.rawSeriesData);return o=this._setTreeProperties(o,1,b["default"].TREEMAP_ROOT_ID),this._setRatio(o,b["default"].TREEMAP_ROOT_ID),[o.map(function(o){var n=new v["default"](o,i,t);return e[n.id]=n,n})]},e.prototype._findSeriesItems=function(t,e){return this.foundSeriesItemsMap[t]||(this.foundSeriesItemsMap[t]=this.getFirstSeriesGroup(!0).filter(e)),this.foundSeriesItemsMap[t]},e.prototype._makeCacheKey=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e[0];return e.length>1&&(o+=e.slice(1).join("_")),o},e.prototype._isValidGroup=function(t,e){return!(0,c["default"])(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,o=this._makeCacheKey(b["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(o,function(o){return o.depth===t&&i._isValidGroup(o.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(b["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(b["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(y["default"]);e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(42),a=o(r),s=i(17),u=o(s),l=i(15),h=o(l),c=function(){function t(e,i,o){n(this,t),this.chartType=o,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,o=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),n=o,r={legend:this.label||"",value:o,label:n,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return(0,h["default"])(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return(0,h["default"])(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(142),r=o(n),a=i(148),s=o(a),u=i(23),l=o(u),h=i(33),c=o(h);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,o){t.addScale(e,i&&i.options||o||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,o,n){var r=t.get(o),a=null,s=[];if(r){var u=i[o];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:o,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:n})}},_setLayoutBoundsAndScale:function(t,e,i,o,n){var r=n.options,a=n.scaleOption,s=void 0===a?{}:a,u=n.addingDataMode,h=n.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(o,"yAxis",s.yAxis,n.options.yAxis),s.rightYAxis&&this.addYAxisScale(o,"rightYAxis",s.rightYAxis),s.legend&&o.addScale("legend",{},{chartType:n.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var p=o.scaleDataMap;p.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(p.legend.limit),
|
||
this._registerYAxisDimension(e,i,p,"yAxis",h),this._registerYAxisDimension(e,i,p,"rightYAxis",h),s.xAxis&&o.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),n.hasAxes&&o.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(o.axisDataMap),e.has("xAxis")&&(c["default"].isAutoTickInterval(r.xAxis.tickInterval)&&o.updateXAxisDataForAutoTickInterval(n.prevXAxisData,u),o.updateXAxisDataForLabel(u)),i.registerBoundsData(o.axisDataMap.xAxis)},build:function(t,e,i){var o=this._createBoundsModel(t,i),n=this._createScaleDataModel(t,o,i);this._setLayoutBoundsAndScale(t,e,o,n,i);var r={dimensionMap:o.dimensionMap,positionMap:o.positionMap,limitMap:n.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return n.axisDataMap&&(r.axisDataMap=n.axisDataMap),c["default"].isBubbleChart(i.chartType)&&(r.maxRadius=o.calculateMaxRadius(n.axisDataMap)),n.scaleDataMap.legend&&(r.legendScaleData=n.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(22),a=o(r),s=i(9),u=o(s),l=i(15),h=o(l),c=i(58),p=o(c),d=i(23),f=o(d),m=i(33),g=o(m),y=i(17),_=o(y),v=i(12),T=o(v),b=i(143),A=o(b),x=i(144),D=o(x),E=i(145),C=o(E),L=i(146),S=o(L),M=i(147),P=o(M),w=f["default"].LEGEND_AREA_H_PADDING,O=a["default"].msie&&a["default"].version<=8,R=function(){function t(e){n(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=f["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=Object.assign(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||f["default"].CHART_DEFAULT_WIDTH,height:t.height||f["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=(0,h["default"])(t.title),i=this.theme.title,o=e?T["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,n=o||0;n&&(n+=f["default"].TITLE_PADDING),this._registerDimension("title",{height:n})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:f["default"].CHART_EXPORT_MENU_SIZE+f["default"].SERIES_AREA_V_PADDING,width:f["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:D["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=(0,p["default"])(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,o=this.getDimension("chart").width,n=C["default"].calculate(e,i,t,o);this._registerDimension("legend",n)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",o=this.theme.label,n=this.options.legend.align,r=void 0;if(g["default"].isHorizontalLegend(n)){var a=g["default"].isBoxTypeChart(this.chartType),s=g["default"].isLegendAlignTop(n);r=P["default"]._makeHorizontalDimension(e,o,a,s)}else r=P["default"]._makeVerticalDimension(e,i,o);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,o=t.theme,n=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,h=void 0;if(e)l=[e.min,e.max];else{if(!g["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}h=(0,u["default"])(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:D["default"].calculateYAxisWidth(l,h,o,n,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;g["default"].isColumnTypeChart(this.chartType)||(i=_["default"].getRenderedLabelHeight(t,this.theme.title));var o=S["default"].calculateWidth(e,this.options.legend,i);return g["default"].isMapChart(this.chartType)&&!O&&(o-=f["default"].MAP_CHART_ZOOM_AREA_WIDTH+w),o},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=_["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),S["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;g["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,o=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),n=this.theme.chart.fontFamily,r=A["default"].calculateCircleLegendWidth(e,t,o,n),a=void 0;a=g["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(a,f["default"].MIN_LEGEND_WIDTH));var s=r-a;this._registerDimension("circleLegend",{width:r,height:r}),s>0&&this._updateLegendAndSeriesWidth(r,s)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+f["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,o=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=o,this.dimensionMap.series.width-=o,this.dimensionMap.mouseEventDetector.width-=o,this.dimensionMap.xAxis.width-=o},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),o=this.getDimension("yAxis").width,n=t+o+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+n-f["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,o=this.options.legend,n=0,r=void 0,a=void 0;return g["default"].isHorizontalLegend(o.align)?(a=(this.getDimension("chart").width-this.getDimension("legend").width)/2,n=g["default"].isLegendAlignBottom(o.align)?i+e.height+this.getDimension("xAxis").height+f["default"].SERIES_AREA_V_PADDING:i-t.legend.height+f["default"].LEGEND_AREA_V_PADDING):(g["default"].isLegendAlignLeft(o.align)?a=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,a=this.chartLeftPadding+r+e.width),n=i+f["default"].SERIES_AREA_V_PADDING),{top:n,left:a}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),o=this.getDimension("series"),n=this.getDimension("legend"),r=void 0,a=void 0,s=void 0;g["default"].isHorizontalLegend(e)?(a=(this.getDimension("chart").width-n.width)/2,r=g["default"].isLegendAlignTop(e)?i.top-n.height:i.top+o.height+this.getDimension("xAxis").height):(g["default"].isLegendAlignLeft(t.align)?a=this.chartLeftPadding:(s=this.getDimension("chart").width-this.chartLeftPadding,a=s-this.getDimension("legend").width),r=g["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*f["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var u={top:r,left:a};return s&&(u.right=s),u},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-f["default"].SERIES_AREA_V_PADDING-f["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:f["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),o=this.options.legend,n=void 0,r=void 0;return n=g["default"].isLegendAlignLeft(o.align)?0:t.left+e.width,g["default"].isVerticalLegend(o.align)&&o.visible&&(r=this.getDimension("legend").width+f["default"].CHART_PADDING,n+=(r-i.width)/2),{top:t.top+e.height-i.height,left:n}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(g["default"].isPieChart(t)||g["default"].isMapChart(t)||g["default"].isTreemapChart(t)||g["default"].isRadialChart(t)||g["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-f["default"].SERIES_EXPAND_SIZE,left:t.left-f["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,o=this.getDimension("legend"),n=g["default"].isLegendAlignTop(e)&&i,r=g["default"].isLegendAlignLeft(e)&&i,a=n?o.height:0,s=r?o.width:0,u=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),l=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=_["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+f["default"].Y_AXIS_TITLE_PADDING}return 0}(),h=Math.max(0,Math.max(a,l)-f["default"].TITLE_PADDING),c=u+h;u||(c=Math.max(a,l));var p={top:c+f["default"].CHART_PADDING,left:this.chartLeftPadding+s+this.getDimension("yAxis").width};this.positionMap.series=p,this.hasAxes&&this._registerAxisComponentsPosition(s),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=_["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+f["default"].OVERLAPPING_WIDTH,i=t-f["default"].OVERLAPPING_WIDTH,o=_["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=f["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+f["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-o,this.positionMap.extendedSeries.left-=i-o,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");g["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:g["default"].isVerticalLegend(t)&&(g["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-f["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return A["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=R},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(17),s=o(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,o=void 0;return o=t.isLabelAxis?e/i/2:e/(i-1),parseInt(o,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),o=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,o)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,o){var n=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,o);return Math.max(2*n,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var o=this._calculateRadiusByAxisData(t.series,e),n=t.circleLegend.width;return i?Math.min((n-r["default"].CIRCLE_LEGEND_PADDING)/2,o):o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(33),s=o(a),u=i(17),l=o(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,o=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,n=o?o+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=n+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,o,n){var a=e.labelMargin,u=e.prefix,h=e.suffix,c=e.isCenter,p=e.type,d=e.dateFormat,f=e.showLabel,m=e.title,g=e.maxWidth,y=0,_=0,v=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,h),o=l["default"].addPrefixSuffix(o,u,h),c&&(v+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(p)&&(t=l["default"].formatDates(t,d),o=l["default"].formatDates(o,d)),a&&a>0&&(v+=a),t=o.length?o:t,f!==!1&&(_=l["default"].getRenderedLabelsMaxWidth(t,i.label,g)),m&&(y=l["default"].getRenderedLabelWidth(m.text,i.title)),v+=(n?Math.max(_,y):_)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(33),s=o(a),u=i(42),l=o(u),h=i(17),c=o(h),p=i(27),d=o(p),f=r["default"].LEGEND_CHECKBOX_SIZE,m=r["default"].LEGEND_ICON_WIDTH,g=r["default"].LEGEND_LABEL_LEFT_PADDING,y=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidth:function(t,e,i,o){var n=l["default"].sum([v,i,m,g]);return t.map(function(t){var i=c["default"].getRenderedLabelWidth(t,e);return o&&i>o&&(i=o),i+=n,i+_})},_divideLegendLabels:function(t,e){var i=[],o=[];return t.forEach(function(t){o.length<e?o.push(t):(i.push(o),o=[t])}),o.length&&i.push(o),i},_getLegendWidthInfo:function(t,e,i,o){var n=this,r=[],a=t.map(function(t){var a=n._calculateLegendsWidth(t,e,i,o),s=l["default"].sum(a);return r=r.concat(a),s=s-_+v});return{labelWidthArr:r,legendWidths:a}},_makeDividedLabelsAndMaxLineWidth:function(t,e,i,o,n){var r=Number.MAX_VALUE,a=1,s=0,u=void 0,l=void 0,h=void 0;do{r=Math.round(t.length/a),u=this._divideLegendLabels(t,r);var c=this._getLegendWidthInfo(u,i,o,n);if(l=c.legendWidths,h=c.labelWidthArr,s=d["default"].max(l),1===r)break;a+=1}while(s>=e);return s=Math.min(s,e),{labels:this._optimizedHorizontalLegendLabels(t,h,s),maxLineWidth:s}},_optimizedHorizontalLegendLabels:function(t,e,i){var o=[],n=t.length-1,r=0,a=[];return t.forEach(function(t,s){var u=e[s],l=v-_,h=r+u+l;h<=i?a.push(t):(o.push(a),a=[t],r=0),r+=u,n===s&&o.push(a)}),o},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return c["default"].getRenderedLabelsMaxHeight(t,e)})),o=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),n=o*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return n},_makeHorizontalDimension:function(t,e,i,o,n){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,o,n),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,o){var n=c["default"].getRenderedLabelsMaxWidth(e,t),r=0;return o&&n>o&&(n=o),r=l["default"].sum([2*v,i,m,g,n,y]),{width:r,height:0}},calculate:function(t,e,i,o){var n=t.showCheckbox===!1?0:f+g,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,o,n,r):this._makeVerticalDimension(e,i,n,r):a.width=0,a}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(33),s=o(a);e["default"]={calculateWidth:function(t,e,i){var o=t.chart.width,n=t.yAxis,a=t.rightYAxis,u=t.legend,l=n.width+a.width,h=u,c=0,p=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(c=h?h.width:0),c||a.width||!i||(p=i/2),o-2*r["default"].CHART_PADDING-l-c-p},calculateHeight:function(t,e,i){var o=t.chart.height,n=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),h=n+l,c=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+c;return o-2*r["default"].CHART_PADDING-h-p}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(23),r=o(n),a=i(17),s=o(a),u=i(42),l=o(u),h=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,c=r["default"].MAP_LEGEND_WEDGE_SIZE,p=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=r["default"].MAP_LEGEND_GRAPH_SIZE,m=r["default"].MAP_LEGEND_LABEL_PADDING,g=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,y=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var o=s["default"].getRenderedLabelWidth(t,i),n=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,r,c]);return{width:l["default"].sum([p,a,d,f,m,Math.max(o,n)]),height:g}},_makeHorizontalDimension:function(t,e,i,o){var n=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*y,n,c]),a=i?_:p,u=o?p:0;return{width:v,height:l["default"].sum([a,r,d,f,m,n,m,u])}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(6),u=o(s),l=i(149),h=o(l),c=i(151),p=o(c),d=i(152),f=o(d),m=i(33),g=o(m),y=i(17),_=o(y),v=function(){function t(e){n(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,o){var n=t.chartType,r="xAxis"!==t.areaType,a=this.dataProcessor.createBaseValuesForLimit(n,o.isSingleYAxis,e.stack,t.valueType,t.areaType),s=this.boundsModel.getBaseSizeForLimit(r),u=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:o.tickCounts,showLabel:this.options.series.showLabel});return g["default"].isBubbleChart(n)&&(u.overflowItem=this.dataProcessor.findOverflowItem(n,t.valueType)),(g["default"].isMapChart(n)||g["default"].isHeatmapChart(n)||g["default"].isTreemapChart(n))&&(u.useSpectrumLegend=!0),h["default"].makeScaleData(a,s,n,u)},t.prototype._createScaleLabels=function(t,e,i,o){var n=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:o});return p["default"].createFormattedLabels(t,e,r,n)},t.prototype._createScaleData=function(t,e,i){var o=this.options.series,n=e.chartType||this.chartType;e.chartType=n,o=o[n]||o;var r={stack:i.stack||o.stack,diverging:o.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return Object.assign(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,o,n){var r=this.dataProcessor.hasCategories(),a=!o&&!r&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,c=f["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!o,isPositionRight:!!n});if(a){var p=this.dataProcessor.getValues(this.chartType,"x"),d=f["default"].makeAdditionalDataForCoordinateLineType(s,p,u,l,h);Object.assign(c,d)}return c},t.prototype._createLabelAxisData=function(t,e,i,o,n){var r=t.categories||this.dataProcessor.getCategories(o);return f["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!o,isPositionRight:!!n,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,o,n){var r=g["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,o,n):this._createLabelAxisData(e,i,r,o,n)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,o=(0,a["default"])(e.yAxis)?e.yAxis:[e.yAxis],n={};return n.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),n.yAxis=this._createAxisData(t.yAxis,o[0],i.yAxis.label,!0),this.hasRightYAxis&&(n.rightYAxis=this._createAxisData(t.rightYAxis,o[1],i.yAxis.label,!0,!0),n.rightYAxis.aligned||(n.rightYAxis.aligned=n.yAxis.aligned)),n},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=o.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,o)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,o=this.options.series.zoomable,n=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||o?f["default"].updateLabelAxisDataForAutoTickInterval(n,r,a,e):f["default"].updateLabelAxisDataForStackingDynamicData(n,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=n.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),o=e.isLabelAxis,n=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=_["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var l=s.filter(function(t){return t});r=(0,u["default"])(this.prevValidLabelCount)?l.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?f["default"].makeAdditionalDataForMultilineLabels(s,r,n,o,i):f["default"].makeAdditionalDataForRotatedLabels(l,r,n,o,i),this.prevValidLabelCount=r,Object.assign(e,a)},t.prototype._findLimit=function(t,e,i){var o=void 0;return o=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,o=this.scaleDataMap,n={};return o.xAxis&&(n.xAxis=o.xAxis.limit),o.yAxis&&(n.yAxis=o.yAxis.limit),o.rightYAxis&&(n.rightYAxis=o.rightYAxis.limit),o.legend&&(n.legend=o.legend.limit),t.forEach(function(t,o){n[t]=i._findLimit(n,o,e)}),n},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(23),a=o(r),s=i(33),u=o(s),l=i(42),h=o(l),c=i(27),p=o(c),d=i(150),f=o(d),m=i(15),g=o(m),y={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var o=t.min,n=t.max;return i.min&&(o=h["default"].subtract(o,e)),i.max&&(n=h["default"].add(n,e)),{min:o,max:n}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,o=this.millisecondTypes,n=this.millisecondMap,r=o.length-1,s=void 0;return i?o.every(function(t,a){var u=n[t],l=Math.floor(i/u),h=void 0;return l&&(h=a<r&&l<2&&l<e?a+1:a,s=o[h]),!(0,g["default"])(h)}):s=a["default"].DATE_TYPE_SECOND,s},_makeDatetimeInfo:function(t,e){var i=this._findDateType(t,e),o=this.millisecondMap[i],n=h["default"].divide(t.min,o),r=h["default"].divide(t.max,o),a=r-n;return{divisionNumber:o,minDate:n,dataLimit:{min:0,max:a}}},_restoreScaleToDatetimeType:function(t,e,i){var o=t.limit;return t.step=h["default"].multiply(t.step,i),o.min=h["default"].multiply(h["default"].add(o.min,e),i),o.max=h["default"].multiply(h["default"].add(o.max,e),i),t},_getLimitSafely:function(t){var e={min:p["default"].min(t),max:p["default"].max(t)};if(1===t.length){var i=n(t,1),o=i[0];o>0?e.min=0:0===o?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var o=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),n=o.dataLimit;i&&(n=this._makeLimitForDivergingOption(n));var r=(0,f["default"])({min:n.min,max:n.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,o.minDate,o.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===h["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===h["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,o=void 0===i?{}:i,n=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=(0,g["default"])(o.min),c=(0,g["default"])(o.max),p=l.min,d=l.max,m=void 0,y=t.options.stepCount;h&&(p=o.min,y=null),c&&(d=o.max,y=null);var _=(0,f["default"])({min:p,max:d,stepCount:y,offsetSize:r});return n||(m=this._isOverflowed(a,_,l,h,c)),m&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,m)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,o,n){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!o&&s.min===i.min&&0!==s.min,l=a||!n&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,o){var n=void 0,r=u["default"].isDivergingChart(i,o.diverging),a=o.overflowItem;return u["default"].isPercentStackChart(i,o.stack)?n=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(o.type)?n=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(o.stepCount=Math.floor(e/100)),n=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:o})),n}};e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,o=f.length;i<o;i+=1){e=f[i];var n=(e+(f[i+1]||e))/2;if(t<=n)break}return e}function a(t){var e=n(t),i=t/e;return r(i)*e}function s(t,e,i,o){var r=Math.min(n(e),n(i)),a=r>1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,o&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(n(t),n(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),o=s(t.limit.min,t.limit.max,i,e),n=Math.abs(o.max-o.min),r=u(n,i);return{limit:{min:o.min,max:o.max},step:i,stepCount:r}}function h(t,e,i,o,n){var r=Math.abs(e-t),a=r/i;o||(o=Math.ceil(i/m));var s=i/o,u=a*s;return(0,d["default"])(n)&&u<n&&(u=n,o=r/u),{limit:{min:t,max:e},step:u,stepCount:o}}function c(t){var e=t.min,i=t.max,o=t.offsetSize,n=t.stepCount,r=t.minimumStepSize,a=t.showLabel,s=h(e,i,o,n,r);return s=l(s,a)}e.__esModule=!0;var p=i(19),d=o(p),f=[1,2,5,10],m=88;e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(33),r=o(n),a=i(42),s=o(a),u=i(17),l=o(u),h={_getFormatFunctions:function(t,e,i){return r["default"].isPercentStackChart(t,e)&&(i=[function(t){return t+"%"}]),i},_createScaleValues:function(t,e,i){var o=s["default"].makeLabelsFromLimit(t.limit,t.step);return r["default"].isDivergingChart(e,i)?o.map(Math.abs):o},createFormattedLabels:function(t,e,i,o){var n=e.chartType,a=e.areaType,s=e.valueType,u=i.diverging,h=i.type,c=i.dateFormat,p=i.stack,d=this._createScaleValues(t,n,u),f=void 0;return r["default"].isDatetimeType(h)?f=l["default"].formatDates(d,c):(o=this._getFormatFunctions(n,p,o),f=l["default"].formatValues(d,o,{
|
||
chartType:n,areaType:a,valueType:s})),f}};e["default"]=h},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(13),a=o(r),s=i(23),u=o(s),l=i(33),h=o(l),c=i(74),p=o(c),d=i(42),f=o(d),m=i(17),g=o(m),y=i(27),_=o(y),v=90,T=121,b=5,A={_makeLabelsByIntervalOption:function(t,e,i){return i=i||0,t=t.map(function(t,o){return(o+i)%e!==0&&(t=u["default"].EMPTY_AXIS_LABEL),t})},makeLabelAxisData:function(t){var e=t.options,i=void 0===e?{}:e,o=t.labels.length,n=t.labels;return h["default"].isValidLabelInterval(i.labelInterval,i.tickInterval)&&t.labels.length>i.labelInterval&&(n=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),h["default"].isDatetimeType(i.type)&&(n=g["default"].formatDates(n,i.dateFormat)),t.aligned||(o+=1),{labels:n,tickCount:o,validTickCount:o,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,o=t.limit,n=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:o,step:n,options:r,validTickCount:i,dataMin:o.min,distance:o.max-o.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,o,n){var r=_["default"].min(e),a=_["default"].max(e),s=a-r,u=0,l=1;return s&&(i.min<r&&(i.min+=o,u=(i.min-r)/s,l-=u,n-=1,t.shift()),i.max>a&&(i.max-=o,l-=(a-i.max)/s,n-=1,t.pop())),{labels:t,tickCount:n,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:n,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var o=void 0,n=parseInt(e/i,10),r=null,a=parseInt(t/n,10);return a>1&&(o=t-a*n,o>=a&&(n+=parseInt(o/a,0),o%=a),r={blockCount:n,beforeRemainBlockCount:o,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,o=[],n=f["default"].divisors(t);if(n.forEach(function(i){var n=i/t*e;n>=v&&n<=T&&o.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===o.length){var r=(0,a["default"])(v,T,b);o=r.map(function(o){return i._makeAdjustingIntervalInfo(t,e,o)})}return o.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),o=null;return i.length&&(o=_["default"].max(i,function(t){return t.blockCount})),o},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,o){o&&(t.tickCount-=1,t.labels.pop());var n=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(n,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,h=0,c=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,h,u),s>0&&t.labels.push(c),Object.assign(t,{startIndex:h,tickCount:l,interval:u,positionRatio:h/n,sizeRatio:1-s/n,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var o=e.interval,n=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/o;a&&2*a<=s&&(o*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,n,o),s=t.labels.length-1;var u=r-o*s;Object.assign(t,{startIndex:n,interval:o,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:n/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var o=String(t).split(" "),r=[],a=n(o,1),s=a[0];return o.slice(1).forEach(function(t){var o=g["default"].getRenderedLabelWidth(s+" "+t,i);o>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("\n")},_createMultilineLabels:function(t,e,i){var o=this._createMultilineLabel;return t.map(function(t){return o(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return g["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,o,n){var r=n.series.width,a=this._calculateXAxisLabelAreaWidth(o,r,e),s=this._createMultilineLabels(t,i,a),u=this._calculateMultilineHeight(s,i,a),l=g["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:0}},_findRotationDegree:function(t,e,i){var o=null;return u["default"].DEGREE_CANDIDATES.every(function(n){var r=p["default"].calculateRotatedWidth(n,e,i);return o=n,!(r<=t)}),o},_calculateRotatedWidth:function(t,e,i,o){var n=g["default"].getRenderedLabelWidth(e,o),r=p["default"].calculateRotatedWidth(t,n,i);return r-=p["default"].calculateAdjacent(u["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var o=t;return e&&(o+=i/2),o},makeAdditionalDataForRotatedLabels:function(t,e,i,o,n){var r=g["default"].getRenderedLabelsMaxWidth(t,i),a=n.series.width,s=n.yAxis.width+(n.rightYAxis?n.rightYAxis.width:0),l=this._calculateXAxisLabelAreaWidth(o,a,e),h=null,c=2*u["default"].CHART_PADDING+s+a;if(l<r){var d=g["default"].getRenderedLabelsMaxHeight(t,i),f=this._findRotationDegree(l,r,d),m=p["default"].calculateRotatedHeight(f,r,d),y=this._calculateRotatedWidth(f,t[0],d,i),_=this._calculateLimitWidth(n.yAxis.width,o,l);c+=y,h={degree:f,overflowHeight:m-d,overflowLeft:y-_,overflowRight:c-n.chart.width}}else c+=r,l=g["default"].getRenderedLabelWidth(t[0],i)/2,h={overflowLeft:l-n.yAxis.width,overflowRight:c-n.chart.width};return h}};e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(23),h=o(l),c=i(50),p=o(c),d=function(t){function e(i,o,a){n(this,e),p["default"].updateRawSeriesDataByOptions(i,a.series);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s._updateOptionsRelatedDiverging(a),s.className="tui-column-chart",s}return a(e,t),e.prototype._updateOptionsRelatedDiverging=function(t){t.series=t.series||{},t.series.diverging&&(t.series.stack=t.series.stack||{type:h["default"].NORMAL_STACK_TYPE})},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,o=this.chartType,n=i[o]||i,r=n.stack;this.dataProcessor.addDataRatios(t[o],r,o)},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(10),u=o(s),l=i(15),h=o(l),c=i(21),p=o(c),d=i(64),f=o(d),m=i(33),g=o(m),y=i(155),_=o(y),v=i(113),T=o(v),b=i(50),A=o(b),x=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-line-chart",s.Series=T["default"],i.series.line.length&&s.dataProcessor.isCoordinateType()&&(delete s.options.xAxis.tickInterval,s.options.tooltip.grouped=!1,s.options.series.shifting=!1),s._dynamicDataHelper=new _["default"](s),s}return a(e,t),e.prototype.setData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.series.length&&!e.categories.length&&(delete this.options.xAxis.tickInterval,this.options.tooltip.grouped=!1,this.options.series.shifting=!1),t.prototype.setData.call(this,e,i)},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=void 0;n=this.dataProcessor.isCoordinateType()?function(i){var o=g["default"].isBubbleChart(i);e.dataProcessor.addDataRatiosForCoordinateType(i,t,o)}:function(i){var n=o[i]||o,r=n.stack;e.dataProcessor.addDataRatios(t[i],r,i)},(0,u["default"])(i,n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("legend","legend"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={},e=this.options.xAxis,i=this.options.yAxis,o=void 0,n=void 0;return this.dataProcessor.isCoordinateType()?(n=e&&"datetime"===e.type,o=n&&(0,h["default"])(e.dateFormat),t.xAxis={valueType:"x"},n&&(t.xAxis.type=(e||{}).dateTime),o&&(t.xAxis.format=(e||{}).dateFormat),t.yAxis={valueType:"y"}):this.hasRightYAxis?(t.yAxis=this._makeYAxisScaleOption("yAxis",i[0]),t.rightYAxis=this._makeYAxisScaleOption("yAxis",i[1])):t.yAxis=!0,t},e.prototype._makeYAxisScaleOption=function(t,e){return{options:e,areaType:"yAxis"}},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=A["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,p["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(f["default"]);e["default"]=x},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(23),a=o(r),s=i(33),u=o(s),l=function(){function t(e){var i=this;n(this,t);var o=function r(){i.isInitRenderCompleted=!0,i.chart.off(r)};this.chart=e,this.isInitRenderCompleted=!1,this.chart.on("load",o),this.reset()}return t.prototype.reset=function(){this.lookupping=!1,this.paused=!1,this.rerenderingDelayTimerId=null,this.addedDataCount=0,this.checkedLegends=null,this.prevXAxisData=null},t.prototype._calculateAnimateTickSize=function(t){var e=this.chart.dataProcessor,i=this.chart.options.xAxis.tickInterval,o=!!this.chart.options.series.shifting,n=void 0;return n=e.isCoordinateType()?e.getValues(this.chart.chartType,"x").length-1:e.getCategoryCount(!1)-1,o&&!u["default"].isAutoTickInterval(i)&&(n-=1),t/n},t.prototype._animateForAddingData=function(){var t=this.chart,e=t.readyForRender(!0),i=!!this.chart.options.series.shifting;this.addedDataCount+=1;var o=this._calculateAnimateTickSize(e.dimensionMap.xAxis.width);t.componentManager.render("animateForAddingData",e,{tickSize:o,shifting:i}),i&&t.dataProcessor.shiftData()},t.prototype._rerenderForAddingData=function(){var t=this.chart,e=t.readyForRender();t.componentManager.render("rerender",e)},t.prototype._checkForAddedData=function(){var t=this,e=this.chart,i=e.dataProcessor.addDataFromDynamicData();return i?this.paused?void(e.options.series.shifting&&e.dataProcessor.shiftData()):(this._animateForAddingData(),void(this.rerenderingDelayTimerId=setTimeout(function(){t.rerenderingDelayTimerId=null,t._rerenderForAddingData(),t._checkForAddedData()},400))):void(this.lookupping=!1)},t.prototype.changeCheckedLegends=function(t,e,i){var o=this,n=this.chart,r=!!n.options.series.shifting,s=this.paused;s||this.pauseAnimation(),this.checkedLegends=t,n.protectedRerender(t,e,i),s||setTimeout(function(){n.dataProcessor.addDataFromRemainDynamicData(r),o.restartAnimation()},a["default"].RERENDER_TIME)},t.prototype.pauseAnimation=function(){this.paused=!0,this.rerenderingDelayTimerId&&(clearTimeout(this.rerenderingDelayTimerId),this.rerenderingDelayTimerId=null,this.chart.options.series.shifting&&this.chart.dataProcessor.shiftData())},t.prototype.restartAnimation=function(){this.paused=!1,this.lookupping=!1,this._startLookup()},t.prototype._startLookup=function(){this.lookupping||(this.lookupping=!0,this._checkForAddedData())},t.prototype.addData=function(t,e){e||(e=t,t=null),this.chart.dataProcessor.addDynamicData(t,e),this.isInitRenderCompleted?this._startLookup():e&&(this.addedDataCount+=1)},t}();e["default"]=l},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(21),u=o(s),l=i(64),h=o(l),c=i(155),p=o(c),d=i(50),f=o(d),m=i(116),g=o(m),y=function(t){function e(i,o,a){n(this,e),f["default"].removeSeriesStack(i.series);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-area-chart",s.Series=g["default"],s._dynamicDataHelper=new p["default"](s),s}return a(e,t),e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype.onChangeCheckedLegends=function(t,e,i){this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,e,i)},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=void 0;n=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var n=o[i]||o,r=n.stack;e.dataProcessor.addDataRatios(t[i],r,i)},i.forEach(n)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.isCoordinateType()?(t.xAxis={valueType:"x"},t.yAxis={valueType:"y"}):t.yAxis=!0,t},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=f["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,u["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(h["default"]);e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(64),l=o(u),h=i(50),c=o(h),p=i(33),d=o(p),f=i(158),m=o(f),g=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var s=(0,m["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis}),u=r(this,t.call(this,{rawData:i,theme:o,options:a,chartTypes:s.chartTypes,seriesTypes:s.seriesTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u}return a(e,t),e.prototype._makeYAxisOptions=function(t,e){var i={};return e=e||{},t.forEach(function(t,o){i[t]=e[o]||e}),i},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t),o=(0,m["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this.chartTypes=o.chartTypes,this.seriesTypes=o.seriesTypes,this.protectedRerender(t,i,o)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("columnSeries","columnSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var o=this.yAxisOptions[e],n={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(n),{options:o,areaType:"yAxis",chartType:e,additionalOptions:n}},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var o=s(i,2),n=o[0],r=o[1];if(r.stackType){var a=e.findChartType(n);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=function(i){var n=o[i]||o,r=n.stack;e.dataProcessor.addDataRatios(t[i],r,i)};i.forEach(n)},e}(l["default"]);e["default"]=g},function(t,e){"use strict";function i(t){var e=t.rawSeriesData,i=t.yAxisOptions,n=o(e,i);return{chartTypes:n.chartTypes,seriesTypes:n.seriesTypes}}function o(t,e){var i=Object.keys(t).sort(),o=n(i,e),r=o.length?o:i,a=o.filter(function(e){return t[e].length}),s=void 0;return s=1===a.length?{chartTypes:a,seriesTypes:a}:{chartTypes:r,seriesTypes:i}}function n(t,e){var i=t.slice(),o=[].concat(e||[]),n=!1,r=void 0;return!o.length||1===o.length&&!o[0].chartType?i=[]:o.length&&(r=o.map(function(t){return t.chartType}),r.forEach(function(t,e){n=n||t&&i[e]!==t||!1}),n&&i.reverse()),i}e.__esModule=!0,e["default"]=i},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(10),u=o(s),l=i(64),h=o(l),c=function(t){function e(i,o,a){return n(this,e),r(this,t.call(this,{rawData:i,theme:o,options:a,chartTypes:["line","scatter"],seriesTypes:["line","scatter"],hasAxes:!0,isVertical:!0}))}return a(e,t),e.prototype.getScaleOption=function(){return{yAxis:{valueType:"y"},xAxis:{valueType:"x"}}},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)};(0,u["default"])(i,o)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(h["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(21),l=o(u),h=i(10),c=o(h),p=i(64),d=o(p),f=i(50),m=o(f),g=i(33),y=o(g),_=i(158),v=o(_),T=i(155),b=o(T),A=function(t){function e(i,o,a){n(this,e);var s=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:a.yAxis});a.tooltip=a.tooltip||{},a.tooltip.grouped=!0;var u=r(this,t.call(this,{rawData:i,theme:o,options:a,seriesTypes:s.seriesTypes,chartTypes:s.chartTypes,hasAxes:!0,isVertical:!0}));return u.yAxisOptions=u._makeYAxisOptions(u.chartTypes,a.yAxis),u._dynamicDataHelper=new b["default"](u),u.className="tui-combo-chart",u}return a(e,t),e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getCurrentData(),i=m["default"].filterCheckedRawData(e,t),o=(0,v["default"])({rawSeriesData:i.series,yAxisOptions:this.options.yAxis});this._dynamicDataHelper.reset(),this._dynamicDataHelper.changeCheckedLegends(t,i,o)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("areaSeries","areaSeries"),this.componentManager.register("lineSeries","lineSeries"),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.hasRightYAxis&&this.componentManager.register("rightYAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){var t={yAxis:this._makeYAxisScaleOption("yAxis",this.chartTypes[0],!this.hasRightYAxis)};return this.hasRightYAxis&&(t.rightYAxis=this._makeYAxisScaleOption("rightYAxis",this.chartTypes[1])),t},e.prototype._makeYAxisScaleOption=function(t,e,i){var o=this.yAxisOptions[e],n={isSingleYAxis:!!i};return i&&this.options.series&&this._setAdditionalOptions(n),{options:o,areaType:"yAxis",chartType:e,additionalOptions:n}},e.prototype._makeYAxisOptions=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,o){i[t]=e[o]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var o=s(i,2),n=o[0],r=o[1];if(r.stackType){var a=e.findChartType(n);y["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stack=r.stack)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=void 0;n=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var n=o[i]||o,r=n.stack;e.dataProcessor.addDataRatios(t[i],r,i)},(0,c["default"])(i,n)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=m["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData((0,l["default"])(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(d["default"]);e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(50),h=o(l),c=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,seriesTypes:Object.keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=h["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(23),h=o(l),c=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:o,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),
|
||
this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(14),u=o(s),l=i(64),h=o(l),c=i(23),p=o(c),d=function(t){function e(i,o,a){n(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){h["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},(0,u["default"])(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(23),h=o(l),c=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(166),h=o(l),c=i(23),p=o(c),d=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(167),s=o(a),u=function(){function t(e,i){r(this,t),this.start=s["default"].colorNameToHex(e),this.startRGB=s["default"].hexToRGB(this.start),this.end=s["default"].colorNameToHex(i);var o=s["default"].hexToRGB(this.end);this.distances=this._makeDistances(this.startRGB,o),this.colorMap={}}return t.prototype._makeDistances=function(t,e){return t.map(function(t,i){return e[i]-t})},t.prototype.getColor=function(t){var e=this.colorMap[t];if(!e){var i=this.distances,o=this.startRGB,r=o.map(function(e,o){return e+parseInt(i[o]*t,10)});e=s["default"].rgbToHEX.apply(s["default"],n(r))}return e||null},t}();e["default"]=u},function(t,e){"use strict";e.__esModule=!0;var i=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,o={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};e["default"]={leadingZero:function(t,e){var i="";if(String(t).length>e)return String(t);for(var o=0;o<e-1;o+=1)i+="0";return(i+t).slice(e*-1)},isValidRGB:function(t){return i.test(t)},hexToRGB:function(t){if(!this.isValidRGB(t))return!1;t=t.substring(1);var e=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return[e,i,o]},rgbToHEX:function(t,e,i){var o="#",n=o+this.leadingZero(t.toString(16),2)+this.leadingZero(e.toString(16),2)+this.leadingZero(i.toString(16),2);return!!this.isValidRGB(n)&&n},colorNameToHex:function(t){return o[t.toLowerCase()]||t}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(21),u=o(s),l=i(64),h=o(l),c=i(166),p=o(c),d=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!1,isVertical:!0}));return s.className="tui-treemap-chart",s}return a(e,t),e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=this.options.series.useColorValue,i=e?new p["default"](t.startColor,t.endColor):null;this.componentManager.register("title","title"),this.componentManager.register("treemapSeries","treemapSeries",{colorSpectrum:i}),e&&this.options.legend.visible&&this.componentManager.register("legend","spectrumLegend",{colorSpectrum:i}),this.componentManager.register("tooltip","tooltip",Object.assign({labelTheme:(0,u["default"])(this.theme,"series","label"),colorSpectrum:i})),this.componentManager.register("mouseEventDetector","mouseEventDetector"),this.componentManager.register("chartExportMenu","chartExportMenu")},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForTreemapChart(t.legend,this.chartType)},e.prototype.onZoom=function(t){this.componentManager.render("zoom",null,{index:t})},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(54),h=o(l),c=i(170),p=o(c),d=i(171),f=o(d),m=i(166),g=o(m),y=function(t){function e(i,o,a){n(this,e),a.map=h["default"].get(a.map),a.tooltip=a.tooltip||{},a.legend=a.legend||{};var s=r(this,t.call(this,{rawData:i,theme:o,options:a,DataProcessor:f["default"]}));return s.className="tui-map-chart",s}return a(e,t),e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new g["default"](t.startColor,t.endColor);this.mapModel=new p["default"](this.dataProcessor,this.options.map),this.componentManager.register("mapSeries","mapSeries",{mapModel:this.mapModel,colorSpectrum:e}),this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("tooltip","tooltip",{mapModel:this.mapModel,colorSpectrum:e}),this.componentManager.register("zoom","zoom"),this.componentManager.register("mouseEventDetector","mapChartEventDetector")},e.prototype.setData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.mapModel.clearMapData(),t.prototype.setData.call(this,e)},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend)},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(14),a=o(r),s=i(58),u=o(s),l=i(23),h=o(l),c=i(27),p=o(c),d=function(){function t(e,i){n(this,t),this.commandFuncMap={M:this._makeCoordinate.bind(this),m:this._makeCoordinateFromRelativeCoordinate.bind(this),L:this._makeCoordinate.bind(this),l:this._makeCoordinateFromRelativeCoordinate.bind(this),H:this._makeXCoordinate.bind(this),h:this._makeXCoordinateFroRelativeCoordinate.bind(this),V:this._makeYCoordinate.bind(this),v:this._makeYCoordinateFromRelativeCoordinate.bind(this)},this.ignoreCommandMap={Z:!0,z:!0},this.mapDimension=null,this.dataProcessor=e,this.rawMapData=i,this.mapData=null}return t.prototype._splitCoordinate=function(t){var e=t.split(","),i={x:parseFloat(e[0])};return e[1]&&(i.y=parseFloat(e[1])),i},t.prototype._makeCoordinate=function(t){return this._splitCoordinate(t)},t.prototype._makeCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x,y:i.y+e.y}},t.prototype._makeXCoordinate=function(t){var e=this._splitCoordinate(t);return{x:e.x}},t.prototype._makeXCoordinateFroRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{x:i.x+e.x}},t.prototype._makeYCoordinate=function(t){var e=this._splitCoordinate(t);return{y:e.x}},t.prototype._makeYCoordinateFromRelativeCoordinate=function(t,e){var i=this._splitCoordinate(t);return{y:i.x+e.y}},t.prototype._splitPath=function(t){for(var e=t.length,i=[],o="",n=void 0,r=0;r<e;r+=1){var a=t.charAt(r);this.commandFuncMap[a]?(n&&o&&i.push({type:n,coordinate:o}),n=a,o=""):this.ignoreCommandMap[a]||(o+=a)}return this._addCommandPath(i,{commandType:n,coordinate:o}),i},t.prototype._addCommandPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,o=e.coordinate;i&&o&&t.push({type:i,coordinate:o})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),o={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],n=i(t.coordinate,o);return Object.assign(o,n),n})},t.prototype._findBoundFromCoordinates=function(t){var e=(0,u["default"])(t,"x").filter(function(t){return!(0,a["default"])(t)}),i=(0,u["default"])(t,"y").filter(function(t){return!(0,a["default"])(t)}),o=p["default"].max(e),n=p["default"].min(e),r=p["default"].max(i),s=p["default"].min(i);return{dimension:{width:o-n,height:r-s},position:{left:n,top:s}}},t.prototype._makeLabelPosition=function(t,e){return e=e||h["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),o=e._findBoundFromCoordinates(i),n=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;n&&(s=n.label,u=n.ratio,r=n.name||t.name,a=n.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:o,labelPosition:e._makeLabelPosition(o,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.clearMapData=function(){this.mapData=null},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),o=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return o.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),o=t.map(function(t){return t.bound.position.top}),n=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:p["default"].max(i)-p["default"].min(e),height:p["default"].max(n)-p["default"].min(o)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(58),u=o(s),l=i(131),h=o(l),c=i(17),p=o(c),d=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var o={value:t.data,label:p["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(o.name=t.name),t.labelCoordinate&&(o.labelCoordinate=t.labelCoordinate),e[t.code]=o}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return(0,u["default"])(this.getValueMap(),"value")},e.prototype.getCurrentData=function(){return this.rawData},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,o=Object.values(this.getValueMap());o.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(113),h=o(l),c=function(t){function e(i,o,a){n(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=h["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(50),h=o(l),c=function(t){function e(i,o,a){n(this,e),h["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,o=this.chartType,n=i[o]||i,r=n.stack;this.dataProcessor.addDataRatios(t[o],r,o)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(64),u=o(s),l=i(50),h=o(l),c=function(t){function e(i,o,a){n(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(23),r=o(n),a=i(52),s=o(a),u=i(53),l=o(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); |