function maybeEval(elt, toEval, defaultVal) {
    if (htmx.config.allowEval) {
      return toEval()
    } else {
      triggerErrorEvent(elt, 'htmx:evalDisallowedError')
      return defaultVal
    }
  }
@param {EventTarget|string} elt
@param {() => any} toEval
@param {any=} defaultVal
@returns {any}