1 line
39 KiB
JSON
1 line
39 KiB
JSON
{"id":"angX","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":1545395749058},{"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\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.single=n;var e=i(require(\"tslib\")),t=require(\"../Subscriber\"),r=require(\"../util/EmptyError\");function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};i.get||i.set?Object.defineProperty(t,r,i):t[r]=e[r]}return t.default=e,t}function n(e){return function(t){return t.lift(new o(e,t))}}var o=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.source))},e}(),s=function(t){function i(e,r,i){var n=t.call(this,e)||this;return n.predicate=r,n.source=i,n.seenValue=!1,n.index=0,n}return e.__extends(i,t),i.prototype.applySingleValue=function(e){this.seenValue?this.destination.error(\"Sequence contains more than one element\"):(this.seenValue=!0,this.singleValue=e)},i.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},i.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(r){this.destination.error(r)}},i.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new r.EmptyError)},i}(t.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":83}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":85}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":93}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":101}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":111}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":113}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":121}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":25,"column":0},"generated":{"line":1,"column":138}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":25,"column":0},"generated":{"line":1,"column":140}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":25,"column":0},"generated":{"line":1,"column":148}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":170}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":179}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":181}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":187}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":190}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":192}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":203}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":210}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":216}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":221}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":224}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":230}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":232}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":236}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":240}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":245}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":247}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":250}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":267}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":282}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":287}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":292}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":297}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":299}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":306}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":322}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":329}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":354}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":361}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":386}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":388}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":391}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":394}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":396}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":401}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":403}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":407}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":414}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":429}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":436}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":441}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":443}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":446}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":453}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":463}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":465}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":2},"generated":{"line":1,"column":467}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":9},"generated":{"line":1,"column":476}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":26,"column":10},"generated":{"line":1,"column":478}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":481}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":488}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":500}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":507}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":509}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":514}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":518}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":520}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":27,"column":1},"generated":{"line":1,"column":522}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":1,"column":527}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":1,"column":531}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":1,"column":533}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":1,"column":544}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":1,"column":553}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":1,"column":555}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":93},"generated":{"line":1,"column":557}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":1,"column":560}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":1,"column":565}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":31,"column":22},"generated":{"line":1,"column":575}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":1,"column":577}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":1,"column":582}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":32,"column":3},"generated":{"line":1,"column":589}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":37,"column":1},"generated":{"line":1,"column":591}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":1,"column":598}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":18},"generated":{"line":1,"column":610}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":1,"column":615}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":1,"column":624}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":35,"column":49},"generated":{"line":1,"column":626}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":629}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":636}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":638}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":648}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":652}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":654}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":656}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":661}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":671}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":36,"column":3},"generated":{"line":1,"column":676}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":37,"column":1},"generated":{"line":1,"column":686}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":30,"column":22},"generated":{"line":1,"column":688}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":691}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":693}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":47},"generated":{"line":1,"column":702}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":1,"column":705}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":1,"column":714}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":1,"column":716}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":10},"generated":{"line":1,"column":718}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":1,"column":720}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":1,"column":723}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":1,"column":727}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":1,"column":729}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":1,"column":731}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":1,"column":736}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":93},"generated":{"line":1,"column":741}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":50,"column":93},"generated":{"line":1,"column":745}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":1,"column":750}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":1,"column":757}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":1,"column":759}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":51,"column":22},"generated":{"line":1,"column":769}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":1,"column":771}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":1,"column":773}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":45,"column":19},"generated":{"line":1,"column":780}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":1,"column":782}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":1,"column":784}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":47,"column":28},"generated":{"line":1,"column":795}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":797}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":799}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":805}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":1,"column":807}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":809}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":1,"column":816}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":1,"column":818}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":2},"generated":{"line":1,"column":828}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":49,"column":14},"generated":{"line":1,"column":830}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":13},"generated":{"line":1,"column":833}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":13},"generated":{"line":1,"column":835}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":1,"column":845}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":1,"column":862}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":56,"column":24},"generated":{"line":1,"column":871}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":57,"column":6},"generated":{"line":1,"column":874}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":57,"column":11},"generated":{"line":1,"column":879}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":889}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":894}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":906}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":912}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":11},"generated":{"line":1,"column":956}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":11},"generated":{"line":1,"column":961}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":1,"column":972}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":974}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":979}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":991}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":18},"generated":{"line":1,"column":995}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":18},"generated":{"line":1,"column":997}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":28},"generated":{"line":1,"column":1007}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":1013}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":1022}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":8},"generated":{"line":1,"column":1025}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":8},"generated":{"line":1,"column":1029}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":1,"column":1031}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":67,"column":13},"generated":{"line":1,"column":1036}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":68,"column":6},"generated":{"line":1,"column":1044}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":1,"column":1049}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":1,"column":1059}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":1,"column":1064}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":1,"column":1072}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":69,"column":5},"generated":{"line":1,"column":1074}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":1,"column":1077}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":1,"column":1082}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":71,"column":5},"generated":{"line":1,"column":1099}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1103}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1105}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1115}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1123}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1132}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":75,"column":8},"generated":{"line":1,"column":1134}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":76,"column":6},"generated":{"line":1,"column":1137}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":8},"generated":{"line":1,"column":1141}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":13},"generated":{"line":1,"column":1146}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":13},"generated":{"line":1,"column":1156}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":30},"generated":{"line":1,"column":1158}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":37},"generated":{"line":1,"column":1160}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":77,"column":37},"generated":{"line":1,"column":1165}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":1,"column":1174}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":1,"column":1179}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":78,"column":7},"generated":{"line":1,"column":1196}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":80,"column":6},"generated":{"line":1,"column":1199}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":80,"column":6},"generated":{"line":1,"column":1205}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":1,"column":1208}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":1,"column":1213}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":1,"column":1225}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":81,"column":5},"generated":{"line":1,"column":1231}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":1236}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":1238}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":29},"generated":{"line":1,"column":1248}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":85,"column":41},"generated":{"line":1,"column":1258}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":8},"generated":{"line":1,"column":1269}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":8},"generated":{"line":1,"column":1273}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":22},"generated":{"line":1,"column":1275}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":87,"column":24},"generated":{"line":1,"column":1280}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":6},"generated":{"line":1,"column":1292}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":6},"generated":{"line":1,"column":1297}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":88,"column":18},"generated":{"line":1,"column":1303}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":1,"column":1306}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":1,"column":1308}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":18},"generated":{"line":1,"column":1313}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":28},"generated":{"line":1,"column":1318}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":1,"column":1328}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":1,"column":1333}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":89,"column":29},"generated":{"line":1,"column":1350}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":1,"column":1353}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":90,"column":5},"generated":{"line":1,"column":1355}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":1,"column":1367}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":1,"column":1369}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":1,"column":1375}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":1,"column":1379}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":92,"column":5},"generated":{"line":1,"column":1381}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":1394}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":1396}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":1397}},{"source":"../../../src/internal/operators/single.ts","name":null,"original":{"line":44,"column":34},"generated":{"line":1,"column":1399}}],"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":"e6ec746e9b59a88cf3a2ab62702f3976","cacheData":{"env":{}}} |