function i(s,e){let o=null;if(s.hasErrors){for(const r of e)if(r.length>1){const t=r[0];if(r.slice(1).some(n=>s.getErrorBy(n))){o=t;break}}}return r=>{o&&r(o)}}export{i as w};