function n(n,e){return n.find((n=>n.id===e))||function(n,e){if(e.includes(".")){const r=e.split("."),t=r[0],f=n.find((n=>n.id===t));return"reverse-reference"===f.type?f.fields.find((n=>n.id===r[1])):f}}(n,e)}function e(n,e){let r=n.find((n=>n.id===e));if(r)return r;if(null==e?void 0:e.includes(".")){const r=e.split(".")[0];return n.find((n=>n.id===r))}}export{e as a,n as f}