"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue");function y(u,a,n){const o=s.shallowRef({});s.watch([u,a,n],()=>{const t=new Map,v=n.value,i=a.value;function l(p){p.forEach((e,f)=>{const r=v(e,f);t.set(r,e),e&&typeof e=="object"&&i in e&&l(e[i]||[])})}l(u.value),o.value={kvMap:t}},{deep:!0,immediate:!0});function c(t){return o.value.kvMap.get(t)}return[c]}exports.default=y;
