System.register(["./common-legacy.js?v=1764830988434","./interface-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./echarts-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],function(e,t){"use strict";var n,a,i,s,l,r,o,u,c,d,p,y,g,m;return{setters:[e=>{n=e._},null,e=>{a=e.d3},e=>{i=e.k,s=e.r,l=e.w,r=e.o,o=e.ap,u=e.b,c=e.R,d=e.V,p=e.I,y=e.U,g=e.n},e=>{m=e.ac},null],execute:function(){e("default",i({__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,v=s(null);let f=!0;function h(){null!==v.value&&m.getInstanceByDom(v.value)?.resize()}l(()=>i.option,e=>{e&&g(()=>{!async function(){if(f){const{data:e}=await n.get("/static/vite/data/world.json");m.registerMap("world",e),f=!1}if(null===v.value)return;let e=m.getInstanceByDom(v.value);null==e&&(e=m.init(v.value)),e.setOption(i.option,!0)}()})},{immediate:!0,deep:!0});const w=o(h,300,{maxWait:800});return r(async()=>{window.addEventListener("resize",w)}),u(()=>{v.value&&(m.getInstanceByDom(v.value)?.dispose(),window.removeEventListener("resize",w))}),t({resize:h}),(t,n)=>(d(),c("div",{ref_key:"chartRef",ref:v,style:p({width:y(a)(e.width),height:y(a)(e.height)})},null,4))}}))}}});
