webdetector/.cache/1c/bb43565ea77af33b4a485eeb9125c7.json
2018-12-21 13:36:28 +01:00

1 line
47 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/single.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/single.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/single.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/single.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/single.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"},{"name":"../util/EmptyError","loc":{"line":4,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/single.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/EmptyError.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.single = single;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\n\nvar _EmptyError = require(\"../util/EmptyError\");\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_EmptyError PURE_IMPORTS_END */\nfunction single(predicate) {\n return function (source) {\n return source.lift(new SingleOperator(predicate, source));\n };\n}\n\nvar SingleOperator =\n/*@__PURE__*/\nfunction () {\n function SingleOperator(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n\n SingleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n };\n\n return SingleOperator;\n}();\n\nvar SingleSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(SingleSubscriber, _super);\n\n function SingleSubscriber(destination, predicate, source) {\n var _this = _super.call(this, destination) || this;\n\n _this.predicate = predicate;\n _this.source = source;\n _this.seenValue = false;\n _this.index = 0;\n return _this;\n }\n\n SingleSubscriber.prototype.applySingleValue = function (value) {\n if (this.seenValue) {\n this.destination.error('Sequence contains more than one element');\n } else {\n this.seenValue = true;\n this.singleValue = value;\n }\n };\n\n SingleSubscriber.prototype._next = function (value) {\n var index = this.index++;\n\n if (this.predicate) {\n this.tryNext(value, index);\n } else {\n this.applySingleValue(value);\n }\n };\n\n SingleSubscriber.prototype.tryNext = function (value, index) {\n try {\n if (this.predicate(value, index, this.source)) {\n this.applySingleValue(value);\n }\n } catch (err) {\n this.destination.error(err);\n }\n };\n\n SingleSubscriber.prototype._complete = function () {\n var destination = this.destination;\n\n if (this.index > 0) {\n destination.next(this.seenValue ? this.singleValue : undefined);\n destination.complete();\n } else {\n destination.error(new _EmptyError.EmptyError());\n }\n };\n\n return SingleSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":25,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":9},"generated":{"line":17,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":2},"generated":{"line":17,"column":15}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":10},"generated":{"line":17,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":2},"generated":{"line":17,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":36},"generated":{"line":17,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":18,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":18,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":18,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":41}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":42}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":51}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":53}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":59}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":60}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":19,"column":61}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":20,"column":3}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":29,"column":0},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":23,"column":4}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":23,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":44},"generated":{"line":25,"column":12}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":26,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":26,"column":26}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":93},"generated":{"line":26,"column":37}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":93},"generated":{"line":26,"column":45}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":27,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":27,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":27,"column":21}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":27,"column":30}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":28,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":28,"column":15}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":28,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":28,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":34,"column":2},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":31,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":31,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":18},"generated":{"line":31,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":31,"column":34}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":31,"column":44}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":31,"column":54}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":49},"generated":{"line":31,"column":56}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":31,"column":62}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":61},"generated":{"line":31,"column":64}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":32}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":48}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":49}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":59}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":61}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":66}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":75}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":77}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":82}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":88}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":89}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":32,"column":90}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":37,"column":0},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":29,"column":0},"generated":{"line":35,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":37,"column":1},"generated":{"line":35,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":29,"column":0},"generated":{"line":35,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":0},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":36,"column":1}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":38,"column":4}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":38,"column":20}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":39,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":47},"generated":{"line":40,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":40,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":47},"generated":{"line":40,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":2}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":20}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":36}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":14},"generated":{"line":41,"column":38}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":41,"column":44}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":43,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":43,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":10},"generated":{"line":43,"column":41}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":43,"column":52}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":43,"column":60}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":32}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":93},"generated":{"line":44,"column":34}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":45}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":93},"generated":{"line":44,"column":50}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":44,"column":54}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":4}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":46,"column":31}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":4}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":19},"generated":{"line":47,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":47,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":4}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":28},"generated":{"line":48,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":48,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":50,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":50,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":55,"column":10},"generated":{"line":51,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":13},"generated":{"line":53,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":13},"generated":{"line":53,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":53,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":53,"column":48}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":53,"column":58}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":53,"column":63}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":53,"column":65}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":57,"column":6},"generated":{"line":54,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":57,"column":11},"generated":{"line":54,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":57,"column":22},"generated":{"line":54,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":55,"column":70}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":59,"column":6},"generated":{"line":56,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":11},"generated":{"line":57,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":57,"column":20}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":57,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":57,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":58,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":58,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":58,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":58,"column":30}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":64,"column":12},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":18},"generated":{"line":62,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":18},"generated":{"line":62,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":28},"generated":{"line":62,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":62,"column":37}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":62,"column":47}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":62,"column":52}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":62,"column":54}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":63,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":8},"generated":{"line":63,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":63,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":63,"column":16}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":63,"column":21}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":63,"column":26}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":63,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":68,"column":6},"generated":{"line":65,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":65,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":68,"column":19},"generated":{"line":65,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":26}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":66,"column":31}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":70,"column":6},"generated":{"line":67,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":68,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":68,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":68,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":68,"column":33}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":74,"column":10},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":39}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":49}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":54}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":56}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":61}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":72,"column":63}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":76,"column":6},"generated":{"line":73,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":74,"column":10}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":13},"generated":{"line":74,"column":15}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":74,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":13},"generated":{"line":74,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":74,"column":30}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":30},"generated":{"line":74,"column":32}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":74,"column":37}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":37},"generated":{"line":74,"column":39}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":37},"generated":{"line":74,"column":44}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":74,"column":50}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":37},"generated":{"line":74,"column":53}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":75,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":75,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":75,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":75,"column":30}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":75,"column":35}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":79,"column":5},"generated":{"line":76,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":79,"column":6},"generated":{"line":77,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":80,"column":6},"generated":{"line":77,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":80,"column":11},"generated":{"line":77,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":78,"column":32}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":82,"column":3},"generated":{"line":79,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":84,"column":12},"generated":{"line":80,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":82,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":82,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":29},"generated":{"line":82,"column":29}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":41},"generated":{"line":82,"column":41}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":41},"generated":{"line":82,"column":53}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":83,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":8},"generated":{"line":83,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":18},"generated":{"line":83,"column":19}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":22},"generated":{"line":83,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":24},"generated":{"line":83,"column":27}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":83,"column":38}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":6},"generated":{"line":85,"column":8}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":6},"generated":{"line":85,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":6},"generated":{"line":85,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":18},"generated":{"line":85,"column":21}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":22},"generated":{"line":85,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":86,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":86,"column":6}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":17},"generated":{"line":86,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":86,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":86,"column":22}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":86,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":28},"generated":{"line":86,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":86,"column":37}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":86,"column":40}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":86,"column":45}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":86,"column":56}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":86,"column":59}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":86,"column":68}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":87,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":87,"column":6}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":87,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":87,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":87,"column":26}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":91,"column":6},"generated":{"line":88,"column":11}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":6}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":17}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":18}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":23}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":24}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":28}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":50}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":89,"column":52}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":93,"column":3},"generated":{"line":90,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":94,"column":0},"generated":{"line":91,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":93,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":93,"column":9}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":93,"column":25}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":94,"column":1}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":94,"column":24}}],"sources":{"../../../src/internal/operators/single.ts":"import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { EmptyError } from '../util/EmptyError';\n\nimport { Observer, MonoTypeOperatorFunction, TeardownLogic } from '../types';\n\n/**\n * Returns an Observable that emits the single item emitted by the source Observable that matches a specified\n * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no\n * items, notify of an IllegalArgumentException or NoSuchElementException respectively. If the source Observable\n * emits items but none match the specified predicate then `undefined` is emiited.\n *\n * ![](single.png)\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits the single item emitted by the source Observable that matches\n * the predicate or `undefined` when no items match.\n *\n * @method single\n * @owner Observable\n */\nexport function single<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) => source.lift(new SingleOperator(predicate, source));\n}\n\nclass SingleOperator<T> implements Operator<T, T> {\n constructor(private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n private source?: Observable<T>) {\n }\n\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SingleSubscriber<T> extends Subscriber<T> {\n private seenValue: boolean = false;\n private singleValue: T;\n private index: number = 0;\n\n constructor(destination: Observer<T>,\n private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n private source?: Observable<T>) {\n super(destination);\n }\n\n private applySingleValue(value: T): void {\n if (this.seenValue) {\n this.destination.error('Sequence contains more than one element');\n } else {\n this.seenValue = true;\n this.singleValue = value;\n }\n }\n\n protected _next(value: T): void {\n const index = this.index++;\n\n if (this.predicate) {\n this.tryNext(value, index);\n } else {\n this.applySingleValue(value);\n }\n }\n\n private tryNext(value: T, index: number): void {\n try {\n if (this.predicate(value, index, this.source)) {\n this.applySingleValue(value);\n }\n } catch (err) {\n this.destination.error(err);\n }\n }\n\n protected _complete(): void {\n const destination = this.destination;\n\n if (this.index > 0) {\n destination.next(this.seenValue ? this.singleValue : undefined);\n destination.complete();\n } else {\n destination.error(new EmptyError);\n }\n }\n}\n"},"lineCount":null}},"hash":"acee958468f060d5a23b114ca5ef269a","cacheData":{"env":{}}}