{"ast":null,"code":"import _get from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/get\";\nimport _getPrototypeOf from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\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 { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function catchError(selector) {\n  return function catchErrorOperatorFunction(source) {\n    var operator = new CatchOperator(selector);\n    var caught = source.lift(operator);\n    return operator.caught = caught;\n  };\n}\n\nvar CatchOperator = /*#__PURE__*/function () {\n  function CatchOperator(selector) {\n    _classCallCheck(this, CatchOperator);\n\n    this.selector = selector;\n  }\n\n  _createClass(CatchOperator, [{\n    key: \"call\",\n    value: function call(subscriber, source) {\n      return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n    }\n  }]);\n\n  return CatchOperator;\n}();\n\nvar CatchSubscriber = /*#__PURE__*/function (_SimpleOuterSubscribe) {\n  _inherits(CatchSubscriber, _SimpleOuterSubscribe);\n\n  var _super = _createSuper(CatchSubscriber);\n\n  function CatchSubscriber(destination, selector, caught) {\n    var _this;\n\n    _classCallCheck(this, CatchSubscriber);\n\n    _this = _super.call(this, destination);\n    _this.selector = selector;\n    _this.caught = caught;\n    return _this;\n  }\n\n  _createClass(CatchSubscriber, [{\n    key: \"error\",\n    value: function error(err) {\n      if (!this.isStopped) {\n        var result;\n\n        try {\n          result = this.selector(err, this.caught);\n        } catch (err2) {\n          _get(_getPrototypeOf(CatchSubscriber.prototype), \"error\", this).call(this, err2);\n\n          return;\n        }\n\n        this._unsubscribeAndRecycle();\n\n        var innerSubscriber = new SimpleInnerSubscriber(this);\n        this.add(innerSubscriber);\n        var innerSubscription = innerSubscribe(result, innerSubscriber);\n\n        if (innerSubscription !== innerSubscriber) {\n          this.add(innerSubscription);\n        }\n      }\n    }\n  }]);\n\n  return CatchSubscriber;\n}(SimpleOuterSubscriber); //# sourceMappingURL=catchError.js.map","map":null,"metadata":{},"sourceType":"module"}