import{a as X,r as Y}from"./resize-detector.4e96b72b.js";import{i as ee,t as te}from"./echarts.8485a033.js";import{d as ne,s as z,D as T,_ as re,b as y,f as ae,w as D,k as I,i as ie,C as oe,h as N,u as ue,n as se}from"./@vue.663bc523.js";var g=function(){return g=Object.assign||function(e){for(var r,n=1,l=arguments.length;n"u"||typeof customElements>"u")return E=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; disconnectedCallback() { if (this.__dispose) { this.__dispose(); this.__dispose = null; } } } if (customElements.get(tag) == null) { customElements.define(tag, EChartsElement); } `)(W)}catch{return E=!1}return E=!0}(),me="ecTheme",Oe="ecInitOptions",be="ecUpdateOptions",xe=ne({name:"echarts",props:g(g({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},fe),ge),emits:{},inheritAttrs:!1,setup:function(e,r){var n=r.attrs,l=z(),c=z(),t=z(),f=z(),j=T(me,null),O=T(Oe,null),_=T(be,null),v=re(e),w=v.autoresize,Z=v.manualUpdate,$=v.loading,G=v.loadingOptions,J=y(function(){return f.value||e.option||null}),k=y(function(){return e.theme||S(j,{})}),B=y(function(){return e.initOptions||S(O,{})}),R=y(function(){return e.updateOptions||S(_,{})}),K=y(function(){return function(s){var a={};for(var u in s)ve(u)||(a[u]=s[u]);return a}(n)}),Q=ae().proxy.$listeners;function C(s){if(c.value){var a=t.value=ee(c.value,k.value,B.value);e.group&&(a.group=e.group);var u=Q;u||(u={},Object.keys(n).filter(function(o){return o.indexOf("on")===0&&o.length>2}).forEach(function(o){var i=o.charAt(2).toLowerCase()+o.slice(3);i.substring(i.length-4)==="Once"&&(i="~".concat(i.substring(0,i.length-4))),u[i]=n[o]})),Object.keys(u).forEach(function(o){var i=u[o];if(i){var p=o.toLowerCase();p.charAt(0)==="~"&&(p=p.substring(1),i.__once__=!0);var h=a;if(p.indexOf("zr:")===0&&(h=a.getZr(),p=p.substring(3)),i.__once__){delete i.__once__;var A=i;i=function(){for(var b=[],m=0;m