webdetector/.cache/23/6656b4897626252840839e25da9e41.json
2018-12-21 13:36:28 +01:00

1 line
32 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/take.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/take.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subscriber","loc":{"line":3,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"},{"name":"../util/ArgumentOutOfRangeError","loc":{"line":4,"column":40},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"},{"name":"../observable/empty","loc":{"line":5,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.take = take;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\n\nvar _ArgumentOutOfRangeError = require(\"../util/ArgumentOutOfRangeError\");\n\nvar _empty = require(\"../observable/empty\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\n/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nfunction take(count) {\n return function (source) {\n if (count === 0) {\n return (0, _empty.empty)();\n } else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\n\nvar TakeOperator =\n/*@__PURE__*/\nfunction () {\n function TakeOperator(total) {\n this.total = total;\n\n if (this.total < 0) {\n throw new _ArgumentOutOfRangeError.ArgumentOutOfRangeError();\n }\n }\n\n TakeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n };\n\n return TakeOperator;\n}();\n\nvar TakeSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(TakeSubscriber, _super);\n\n function TakeSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n\n TakeSubscriber.prototype._next = function (value) {\n var total = this.total;\n var count = ++this.count;\n\n if (count <= total) {\n this.destination.next(value);\n\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n };\n\n return TakeSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":54,"column":0},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":9},"generated":{"line":19,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":19,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":10},"generated":{"line":19,"column":14}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":19,"column":19}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":55,"column":31},"generated":{"line":19,"column":21}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":20,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":56,"column":13},"generated":{"line":20,"column":19}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":20,"column":25}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":56,"column":21},"generated":{"line":20,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":57,"column":6},"generated":{"line":21,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":57,"column":6},"generated":{"line":21,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":57,"column":13},"generated":{"line":21,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":57,"column":18},"generated":{"line":21,"column":21}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":22,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":22,"column":32}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":59,"column":6},"generated":{"line":23,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":19}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":20}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":25}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":29}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":41}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":42}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":47}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":48}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":60,"column":5},"generated":{"line":24,"column":49}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":61,"column":4},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":62,"column":1},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":2},"generated":{"line":29,"column":4}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":2},"generated":{"line":29,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":2},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":35},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":35},"generated":{"line":31,"column":12}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":22},"generated":{"line":32,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":27},"generated":{"line":32,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":35},"generated":{"line":32,"column":31}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":66,"column":4},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":66,"column":8},"generated":{"line":33,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":66,"column":4},"generated":{"line":33,"column":14}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":66,"column":13},"generated":{"line":33,"column":17}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":66,"column":4},"generated":{"line":33,"column":22}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":67,"column":6},"generated":{"line":35,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":67,"column":6},"generated":{"line":35,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":67,"column":6},"generated":{"line":35,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":67,"column":16},"generated":{"line":35,"column":21}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":67,"column":16},"generated":{"line":35,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":68,"column":5},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":68,"column":5},"generated":{"line":36,"column":12}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":68,"column":5},"generated":{"line":36,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":68,"column":5},"generated":{"line":36,"column":64}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":68,"column":5},"generated":{"line":36,"column":66}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":71,"column":2},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":11},"generated":{"line":40,"column":14}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":11},"generated":{"line":40,"column":15}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":18},"generated":{"line":40,"column":25}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":28},"generated":{"line":40,"column":32}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":32},"generated":{"line":40,"column":42}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":28},"generated":{"line":40,"column":52}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":47},"generated":{"line":40,"column":54}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":28},"generated":{"line":40,"column":60}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":72,"column":59},"generated":{"line":40,"column":62}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":17}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":28}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":32}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":46}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":47}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":57}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":59}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":64}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":69}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":70}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":41,"column":71}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":74,"column":0},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":44,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":44,"column":21}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":0},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":65,"column":35},"generated":{"line":45,"column":1}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":47,"column":4}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":47,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":45},"generated":{"line":49,"column":10}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":49,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":45},"generated":{"line":49,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":2}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":10}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":19}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":20}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":34}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":14},"generated":{"line":50,"column":36}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":50,"column":42}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":52,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":85,"column":4},"generated":{"line":52,"column":26}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":52,"column":39}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":52,"column":46}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":50},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":50},"generated":{"line":53,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":50},"generated":{"line":53,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":55},"generated":{"line":53,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":50},"generated":{"line":53,"column":22}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":55},"generated":{"line":53,"column":23}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":55},"generated":{"line":53,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":63},"generated":{"line":53,"column":28}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":55},"generated":{"line":53,"column":32}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":63},"generated":{"line":53,"column":34}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":55},"generated":{"line":53,"column":45}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":63},"generated":{"line":53,"column":50}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":84,"column":50},"generated":{"line":53,"column":54}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":4}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":10}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":15}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":26},"generated":{"line":55,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":55,"column":23}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":57,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":57,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":88,"column":12},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":15},"generated":{"line":60,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":15},"generated":{"line":60,"column":17}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":23},"generated":{"line":60,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":60,"column":35}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":60,"column":45}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":60,"column":50}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":60,"column":52}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":4},"generated":{"line":61,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":10},"generated":{"line":61,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":15},"generated":{"line":61,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":18},"generated":{"line":61,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":61,"column":21}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":90,"column":4},"generated":{"line":61,"column":26}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":4},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":8},"generated":{"line":62,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":13},"generated":{"line":62,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":13},"generated":{"line":62,"column":16}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":17},"generated":{"line":62,"column":18}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":22},"generated":{"line":62,"column":23}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":91,"column":4},"generated":{"line":62,"column":28}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":92,"column":6},"generated":{"line":64,"column":8}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":92,"column":11},"generated":{"line":64,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":92,"column":11},"generated":{"line":64,"column":17}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":64,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":6},"generated":{"line":65,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":10},"generated":{"line":65,"column":11}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":6},"generated":{"line":65,"column":22}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":20},"generated":{"line":65,"column":23}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":6},"generated":{"line":65,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":27},"generated":{"line":65,"column":28}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":93,"column":6},"generated":{"line":65,"column":33}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":94,"column":8},"generated":{"line":67,"column":10}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":94,"column":13},"generated":{"line":67,"column":15}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":94,"column":13},"generated":{"line":67,"column":20}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":94,"column":25},"generated":{"line":67,"column":27}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":95,"column":8},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":95,"column":13},"generated":{"line":68,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":95,"column":8},"generated":{"line":68,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":95,"column":24},"generated":{"line":68,"column":25}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":95,"column":8},"generated":{"line":68,"column":33}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":96,"column":7},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":96,"column":7},"generated":{"line":69,"column":13}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":96,"column":7},"generated":{"line":69,"column":24}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":97,"column":5},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":98,"column":3},"generated":{"line":71,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":99,"column":0},"generated":{"line":72,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":74,"column":0}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":74,"column":9}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":74,"column":23}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":75,"column":1}},{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":81,"column":32},"generated":{"line":75,"column":24}}],"sources":{"../../../src/internal/operators/take.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nimport { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction, TeardownLogic } from '../types';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * ![](take.png)\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * ## Example\n * Take the first 5 seconds of an infinite 1-second interval Observable\n * ```javascript\n * import { interval } from 'rxjs';\n * import { take } from 'rxjs/operators';\n *\n * const intervalCount = interval(1000);\n * const takeFive = intervalCount.pipe(take(5));\n * takeFive.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * ```\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of `next` values to emit.\n * @return {Observable<T>} An Observable that emits only the first `count`\n * values emitted by the source Observable, or all of the values from the source\n * if the source emits fewer than `count` values.\n * @method take\n * @owner Observable\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) => {\n if (count === 0) {\n return empty();\n } else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\n\nclass TakeOperator<T> implements Operator<T, T> {\n constructor(private total: number) {\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TakeSubscriber<T> extends Subscriber<T> {\n private count: number = 0;\n\n constructor(destination: Subscriber<T>, private total: number) {\n super(destination);\n }\n\n protected _next(value: T): void {\n const total = this.total;\n const count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n }\n}\n"},"lineCount":null}},"hash":"f9bd62b3397bd52b930c1fb968917a6b","cacheData":{"env":{}}}