System.register(["./common-legacy.js?v=1763625242172","./interface-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./echarts-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(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.n,o=e.o,u=e.b,c=e.R,d=e.S,p=e.I,y=e.V,g=e.ap},e=>{m=e.a4},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&&r((()=>{!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=g(h,300,{maxWait:800});return o((async()=>{window.addEventListener("resize",w)})),u((()=>{v.value&&(m.getInstanceByDom(v.value)?.dispose(),window.removeEventListener("resize",w))})),t({resize:h}),(t,n)=>(c(),d("div",{ref_key:"chartRef",ref:v,style:p({width:y(a)(e.width),height:y(a)(e.height)})},null,4))}}))}}}));
