"use client";
u.peek = a;
function u(c, v, e, l) {
  const f = c.referenceType, k = e.enter("linkReference");
  let t = e.enter("label");
  const n = e.createTracker(l);
  let r = n.move("[");
  const o = e.containerPhrasing(c, {
    before: r,
    after: "]",
    ...n.current()
  });
  r += n.move(o + "]["), t();
  const s = e.stack;
  e.stack = [], t = e.enter("reference");
  const i = e.safe(e.associationId(c), {
    before: r,
    after: "]",
    ...n.current()
  });
  return t(), e.stack = s, k(), f === "full" || !o || o !== i ? r += n.move(i + "]") : f === "shortcut" ? r = r.slice(0, -1) : r += n.move("]"), r;
}
function a() {
  return "[";
}
export {
  u as linkReference
};
