System.register(["./echarts-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434"],function(e,t){"use strict";var n,a,i,l,s,o,u,r,c,d,p,g,m,y,v,f,h,j,w,_,B,x,I,b,z,D;return{setters:[e=>{n=e.ac,a=e.B,i=e.ae,l=e.af,s=e.ag,o=e.ah,u=e.ai,r=e.aj,c=e.ak,d=e.as,p=e.at,g=e.an,m=e.ao,y=e.ap},e=>{v=e.d3},e=>{f=e.k,h=e.r,j=e.w,w=e.o,_=e.n,B=e.ap,x=e.b,I=e.R,b=e.V,z=e.I,D=e.U},null,null],execute:function(){a([i,l,s,o,u,r,c,d,p,g,m,y]),e("default",f({__name:"index",props:{width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"200px"},dataZoom:{type:Boolean,default:!1},option:{type:Object,required:!0}},setup(e,{expose:t}){const a=e,i=h(null);function l(){if(null===i.value)return;let e=n.getInstanceByDom(i.value);null==e&&(e=n.init(i.value)),e.setOption(a.option,!0)}function s(){null!==i.value&&n.getInstanceByDom(i.value)?.resize()}j(()=>a.option,e=>{e&&_(()=>{l()})},{immediate:!0,deep:!0});const o=B(s,300,{maxWait:800});return w(()=>{_(()=>{l(),window.addEventListener("resize",o)})}),x(()=>{i.value&&(n.getInstanceByDom(i.value)?.dispose(),window.removeEventListener("resize",o))}),t({resize:s,getChart:()=>n.getInstanceByDom(i.value)}),(t,n)=>(b(),I("div",{ref_key:"chartRef",ref:i,style:z({width:D(v)(e.width),height:D(v)(e.height)})},null,4))}}))}}});
