{"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';\nexport function every(predicate, thisArg) {\n  return function (source) {\n    return source.lift(new EveryOperator(predicate, thisArg, source));\n  };\n}\n\nvar EveryOperator = /*#__PURE__*/function () {\n  function EveryOperator(predicate, thisArg, source) {\n    _classCallCheck(this, EveryOperator);\n\n    this.predicate = predicate;\n    this.thisArg = thisArg;\n    this.source = source;\n  }\n\n  _createClass(EveryOperator, [{\n    key: \"call\",\n    value: function call(observer, source) {\n      return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\n    }\n  }]);\n\n  return EveryOperator;\n}();\n\nvar EverySubscriber = /*#__PURE__*/function (_Subscriber) {\n  _inherits(EverySubscriber, _Subscriber);\n\n  var _super = _createSuper(EverySubscriber);\n\n  function EverySubscriber(destination, predicate, thisArg, source) {\n    var _this;\n\n    _classCallCheck(this, EverySubscriber);\n\n    _this = _super.call(this, destination);\n    _this.predicate = predicate;\n    _this.thisArg = thisArg;\n    _this.source = source;\n    _this.index = 0;\n    _this.thisArg = thisArg || _assertThisInitialized(_this);\n    return _this;\n  }\n\n  _createClass(EverySubscriber, [{\n    key: \"notifyComplete\",\n    value: function notifyComplete(everyValueMatch) {\n      this.destination.next(everyValueMatch);\n      this.destination.complete();\n    }\n  }, {\n    key: \"_next\",\n    value: function _next(value) {\n      var result = false;\n\n      try {\n        result = this.predicate.call(this.thisArg, value, this.index++, this.source);\n      } catch (err) {\n        this.destination.error(err);\n        return;\n      }\n\n      if (!result) {\n        this.notifyComplete(false);\n      }\n    }\n  }, {\n    key: \"_complete\",\n    value: function _complete() {\n      this.notifyComplete(true);\n    }\n  }]);\n\n  return EverySubscriber;\n}(Subscriber); //# sourceMappingURL=every.js.map","map":null,"metadata":{},"sourceType":"module"}