let e=require("vue");function t(t,n,r){let i=(0,e.shallowRef)({});(0,e.watch)([t,n,r],()=>{let e=new Map,a=r.value,o=n.value;function s(t){t.forEach((t,n)=>{let r=a(t,n);e.set(r,t),t&&typeof t==`object`&&o in t&&s(t[o]||[])})}s(t.value),i.value={kvMap:e}},{deep:!0,immediate:!0});function a(e){return i.value.kvMap.get(e)}return[a]}exports.default=t;