class t{constructor(){this.errors={}}record(r){this.errors=r}any(){return Object.keys(this.errors).length>0}has(r){return this.errors.hasOwnProperty(r)}get(r){if(this.errors[r])return this.errors[r][0]}clear(r){r!==void 0&&delete this.errors[this.normalizeKey(r)]}reset(){this.errors={}}normalizeKey(r){let e=r.replace("[]","").split("[");return e.length===1?r:e.join(".").slice(0,-1)}}export{t as E};
