import{I as t}from"./p-be8a42cb.js";import"./p-90edb445.js";import{a as s}from"./p-d6eb762b.js";import{S as e}from"./p-427c7543.js";import"./p-9b3f323d.js";import"./p-f86466b9.js";import"./p-11d0e255.js";import"./p-a96ec623.js";import"./p-112455b1.js";import"./p-1ae2b158.js";class r{constructor(t){this.connection=t}async list(t,s){return await this.connection.get("settlement"+(t&&s?`?date=${t}&days=${s}`:t?`?date=${t}`:s?`?days=${s}`:""))}async report(t,s){return this.connection.post(`settlement/report?language=${s}`,t)}async load(s){return t.is(s)?await this.connection.get("settlement/"+s):(await Promise.all(s.map((t=>this.connection.get("settlement/"+t))))).filter(e.is)}static open(t,e){const a=s.open(t,e);return a&&new r(a)}}export{r as Settlement}