System.register(["./echarts-legacy-BoTEinQo.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var n,i,a,u,l,r,s,o,c,d,g,p,y,m,v,f,h,w,j,b,x,B,z,D,I,S;return{setters:[e=>{n=e.e,i=e.u,a=e.a,u=e.b,l=e.c,r=e.d,s=e.f,o=e.g,c=e.h,d=e.n,g=e.o,p=e.k,y=e.l,m=e.m},e=>{v=e.f},e=>{f=e.k,h=e.r,w=e.w,j=e.o,b=e.n,x=e.b,B=e.$,z=e.Z,D=e.H,I=e.S},e=>{S=e.b1},null],execute:function(){i([a,u,l,r,s,o,c,d,g,p,y,m]),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 i=e,a=h(null);function u(){if(null===a.value)return;let e=n.getInstanceByDom(a.value);null==e&&(e=n.init(a.value)),e.setOption(i.option,!0)}function l(){null!==a.value&&n.getInstanceByDom(a.value)?.resize()}w((()=>i.option),(e=>{e&&b((()=>{u()}))}),{immediate:!0,deep:!0});const r=S(l,300,{maxWait:800});return j((()=>{b((()=>{u(),window.addEventListener("resize",r)}))})),x((()=>{a.value&&(n.getInstanceByDom(a.value)?.dispose(),window.removeEventListener("resize",r))})),t({resize:l,getChart:()=>n.getInstanceByDom(a.value)}),(t,n)=>(B(),z("div",{ref_key:"chartRef",ref:a,style:D({width:I(v)(e.width),height:I(v)(e.height)})},null,4))}}))}}}));
