import { isFunction as o } from "./index-isFunction.js";
function e(t) {
  return o(t == null ? void 0 : t.lift);
}
function u(t) {
  return function(n) {
    if (e(n))
      return n.lift(function(r) {
        try {
          return t(r, this);
        } catch (i) {
          this.error(i);
        }
      });
    throw new TypeError("Unable to lift unknown Observable type");
  };
}
export {
  e as hasLift,
  u as operate
};
