text: (function(e,r){typeof exports==="object"&&typeof module!=="undefined"?r(exports,require("highcharts"),require("resize-observer-polyfill"),require("lodash/isEmpty")):typeof define==="function"&&define.amd?define(["exports","highcharts","resize-observer-polyfill","lodash/isEmpty"],r):(e=e||self,r(e.VueHighcharts={},e.Highcharts,e.ResizeObserver,e.isEmpty))})(this,function(e,s,n,i){"use strict";s=s&&s.hasOwnProperty("default")?s["default"]:s;n=n&&n.hasOwnProperty("default")?n["default"]:n;i=i&&i.hasOwnProperty("default")?i["default"]:i;var o={Highcharts:"chart",Highstock:"stockChart",Highmaps:"mapChart",HighchartsGantt:"ganttChart"};function h(e){var r;if(e===null||typeof e!=="object"){return e}if(e instanceof Array){r=[];for(var t=e.length-1;t>=0;t--){r[t]=h(e[t])}return r}if(e instanceof Object){r={};for(var n in e){r[n]=h(e[n])}return r}}function a(e){return e("div")}function u(e,r){var t=r[o[e]];if(!t){return r.win?null:{render:a}}return{name:e,props:{options:{type:Object,required:true}},data:function(){return{resizeObserver:null}},watch:{options:{handler:function(){this.$_h_render()},deep:true}},mounted:function(){this.$_h_render()},beforeDestroy:function(){this.chart.destroy();this.resizeObserver.disconnect()},methods:{$_h_render:function(){this.destroy();var e=this;e.chart=t(e.$el,h(e.options));e.resizeObserver=new n(function(){if(!i(e.chart)){e.chart.reflow()}});e.resizeObserver.observe(e.$el)},destroy:function(){if(this.chart!=null){this.chart.destroy()}if(this.resizeObserver!=null){this.resizeObserver.disconnect()}this.chart=null;this.resizeObserver=null}},render:a}}function r(e,r){var t=r&&r.Highcharts||s;for(var n in o){var i=u(n,t);i&&e.component(n,i)}}if(typeof window!=="undefined"&&window.Vue&&window.Highcharts){r(window.Vue,window.Highcharts)}e.default=r;e.genComponent=u;Object.defineProperty(e,"__esModule",{value:true})});