{"ast":null,"code":"import _assertThisInitialized from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createSuper\";\nimport _classCallCheck from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { isFunction } from '../util/isFunction';\nexport function tap(nextOrObserver, error, complete) {\n  return function tapOperatorFunction(source) {\n    return source.lift(new DoOperator(nextOrObserver, error, complete));\n  };\n}\n\nvar DoOperator = /*#__PURE__*/function () {\n  function DoOperator(nextOrObserver, error, complete) {\n    _classCallCheck(this, DoOperator);\n\n    this.nextOrObserver = nextOrObserver;\n    this.error = error;\n    this.complete = complete;\n  }\n\n  _createClass(DoOperator, [{\n    key: \"call\",\n    value: function call(subscriber, source) {\n      return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n    }\n  }]);\n\n  return DoOperator;\n}();\n\nvar TapSubscriber = /*#__PURE__*/function (_Subscriber) {\n  _inherits(TapSubscriber, _Subscriber);\n\n  var _super = _createSuper(TapSubscriber);\n\n  function TapSubscriber(destination, observerOrNext, error, complete) {\n    var _this;\n\n    _classCallCheck(this, TapSubscriber);\n\n    _this = _super.call(this, destination);\n    _this._tapNext = noop;\n    _this._tapError = noop;\n    _this._tapComplete = noop;\n    _this._tapError = error || noop;\n    _this._tapComplete = complete || noop;\n\n    if (isFunction(observerOrNext)) {\n      _this._context = _assertThisInitialized(_this);\n      _this._tapNext = observerOrNext;\n    } else if (observerOrNext) {\n      _this._context = observerOrNext;\n      _this._tapNext = observerOrNext.next || noop;\n      _this._tapError = observerOrNext.error || noop;\n      _this._tapComplete = observerOrNext.complete || noop;\n    }\n\n    return _this;\n  }\n\n  _createClass(TapSubscriber, [{\n    key: \"_next\",\n    value: function _next(value) {\n      try {\n        this._tapNext.call(this._context, value);\n      } catch (err) {\n        this.destination.error(err);\n        return;\n      }\n\n      this.destination.next(value);\n    }\n  }, {\n    key: \"_error\",\n    value: function _error(err) {\n      try {\n        this._tapError.call(this._context, err);\n      } catch (err) {\n        this.destination.error(err);\n        return;\n      }\n\n      this.destination.error(err);\n    }\n  }, {\n    key: \"_complete\",\n    value: function _complete() {\n      try {\n        this._tapComplete.call(this._context);\n      } catch (err) {\n        this.destination.error(err);\n        return;\n      }\n\n      return this.destination.complete();\n    }\n  }]);\n\n  return TapSubscriber;\n}(Subscriber); //# sourceMappingURL=tap.js.map","map":null,"metadata":{},"sourceType":"module"}