import{g as l,E as n}from"./CWmDRfqq.js";const p=["flow_conversion_output","flow_conversion_input","flow_storage_discharge","flow_storage_charge","flow_import","flow_export","flow_transport","flow_transport_loss","shed_demand","demand"],v={conversion:{shortId:"conv",title:"Conversion",showSubdivision:!0,filterByTechnologies:!0,positive:"flow_conversion_output",positiveLabel:"Conversion output",negative:"flow_conversion_input",negativeLabel:"Conversion input"},storage:{shortId:"stor",title:"Storage",showSubdivision:!0,filterByTechnologies:!0,positive:"flow_storage_discharge",positiveLabel:"Storage discharge",positiveSuffix:" (discharge)",negative:"flow_storage_charge",negativeLabel:"Storage charge",negativeSuffix:" (charge)"},transport:{shortId:"tran",title:"Transport",showSubdivision:!0,filterByTechnologies:!0,positive:"flow_transport",positiveLabel:"Transport in",positiveSuffix:" (transport in)",negative:"flow_transport_loss",negativeLabel:"Transport out",negativeSuffix:" (transport out)"},importExport:{shortId:"imp_exp",title:"Import/Export",showSubdivision:!1,filterByTechnologies:!1,positive:"flow_import",positiveLabel:"Import",negative:"flow_export",negativeLabel:"Export"},demandShedDemand:{shortId:"dem_shed",title:"Demand/Shed Demand",showSubdivision:!1,filterByTechnologies:!1,positive:"shed_demand",positiveLabel:"Shed Demand",negative:"demand",negativeLabel:"Demand"}};async function f(i,r,a){const o=await l(i.solution_name,[...p],i.scenario_name,r,a),s=Object.values(v).reduce((t,e)=>(t[e.positive]=n.fromRows(o[e.positive]?.data||[]),t[e.negative]=n.fromRows(o[e.negative]?.data||[]),t),{});return s.unit=o.unit,s}export{f,v};
