node_modules/mdsvex/dist/main.es.js
// Gather all definitions in `node`
Gather all definitions in `node`
Gather all definitions in ` node `
function gather$1(node, options) {
  var cache = {};
  if (!node || !node.type) {
    throw new Error('mdast-util-definitions expected node')
  }
  unistUtilVisit(node, 'definition', options && options.commonmark ? commonmark : normal);
  return cache
  function commonmark(definition) {
    var id = normalise$1(definition.identifier);
    if (!own$a.call(cache, id)) {
      cache[id] = definition;
    }
  }
  function normal(definition) {
    cache[normalise$1(definition.identifier)] = definition;
  }
}
function gather$1 ( node , options ) { var cache = { } ; if ( ! node || ! node . type ) { throw new Error ( 'mdast-util-definitions expected node' ) } unistUtilVisit ( node , 'definition' , options && options . commonmark ? commonmark : normal ) ; return cache function commonmark ( definition ) { var id = normalise$1 ( definition . identifier ) ; if ( ! own$a . call ( cache , id ) ) { cache [ id ] = definition ; } } function normal ( definition ) { cache [ normalise$1 ( definition . identifier ) ] = definition ; } }
Gather all definitions in `node`
Gather all definitions in ` node `