import{watch as e,unref as t,inject as n,computed as r,watchEffect as o,Vue2 as i,defineComponent as a,shallowRef as u,toRefs as s,getCurrentInstance as c,onMounted as l,onBeforeUnmount as f,h as p,nextTick as v}from"vue-demi";import{throttle as d,init as h}from"echarts/core";import{addListener as g,removeListener as m}from"resize-detector";var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;ndiv{width:100%;height:100%}\n",{});var S=function(){if(null!=z)return z;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return z=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n")(C)}catch(e){return z=!1}return z=!0}();i&&i.config.ignoredElements.push(C);var D="ecTheme",U="ecInitOptions",k="ecUpdateOptions",B=a({name:"echarts",props:O(O({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},E),w),emits:{},inheritAttrs:!1,setup:function(t,i){var a=i.attrs,p=u(),b=u(),E=u(),_=u(),w=n(D,null),z=n(U,null),C=n(k,null),L=s(t),T=L.autoresize,B=L.manualUpdate,P=L.loading,H=L.loadingOptions,M=r((function(){return _.value||t.option||null})),R=r((function(){return t.theme||j(w,{})})),F=r((function(){return t.initOptions||j(z,{})})),N=r((function(){return t.updateOptions||j(C,{})})),q=r((function(){return function(e){var t={};for(var n in e)x(n)||(t[n]=e[n]);return t}(a)})),I=c().proxy.$listeners;function W(e){if(b.value){var n=E.value=h(b.value,R.value,F.value);t.group&&(n.group=t.group);var r=I;r||(r={},Object.keys(a).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),r[t]=a[e]}))),Object.keys(r).forEach((function(e){var t=r[e];if(t){var o=e.toLowerCase();"~"===o.charAt(0)&&(o=o.substring(1),t.__once__=!0);var i=n;if(0===o.indexOf("zr:")&&(i=n.getZr(),o=o.substring(3)),t.__once__){delete t.__once__;var a=t;t=function(){for(var e=[],n=0;n