import{I as c,_ as g,aa as s,ba as i,p,r as f,w as a,x as l}from"./chunk-UNHECMG2.js";function x(r,t,e){return l([r,t]).pipe(c(([n,u])=>u),i(([n,u])=>{let o=e?n?.get(e)||null:n;return o?o.statusChanges.pipe(s(o.status),a(()=>h(o))):f([])}),s([]),g(1))}function m(r,t){return r.pipe(a(e=>e.get(t)||null))}function y(r,t){return m(r,t).pipe(i(e=>e?e.valueChanges:p))}function h(r){return r?Object.keys(r.errors||{}).map(t=>({error:t,params:r.errors&&r.errors[t]instanceof Object?r.errors[t]:null})):[]}export{x as a,m as b,y as c};
