webdetector/.cache/5a/8b4f12160085b00d61162e89468f8e.json
2018-12-21 13:36:28 +01:00

1 line
44 KiB
JSON

{"id":"ZHZV","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromEvent.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/fromEvent.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":"../Observable","loc":{"line":2,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromEvent.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"},{"name":"../util/isArray","loc":{"line":3,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromEvent.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isArray.js"},{"name":"../util/isFunction","loc":{"line":4,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromEvent.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isFunction.js"},{"name":"../operators/map","loc":{"line":5,"column":20},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromEvent.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.fromEvent=i;var e=require(\"../Observable\"),n=require(\"../util/isArray\"),t=require(\"../util/isFunction\"),r=require(\"../operators/map\"),o=Object.prototype.toString;function i(o,f,a,c){return(0,t.isFunction)(a)&&(c=a,a=void 0),c?i(o,f,a).pipe((0,r.map)(function(e){return(0,n.isArray)(e)?c.apply(void 0,e):c(e)})):new e.Observable(function(e){u(o,f,function(n){arguments.length>1?e.next(Array.prototype.slice.call(arguments)):e.next(n)},e,a)})}function u(e,n,t,r,o){var i;if(c(e)){var s=e;e.addEventListener(n,t,o),i=function(){return s.removeEventListener(n,t,o)}}else if(a(e)){var v=e;e.on(n,t),i=function(){return v.off(n,t)}}else if(f(e)){var p=e;e.addListener(n,t),i=function(){return p.removeListener(n,t)}}else{if(!e||!e.length)throw new TypeError(\"Invalid event target\");for(var l=0,d=e.length;l<d;l++)u(e[l],n,t,r,o)}r.add(i)}function f(e){return e&&\"function\"==typeof e.addListener&&\"function\"==typeof e.removeListener}function a(e){return e&&\"function\"==typeof e.on&&\"function\"==typeof e.off}function c(e){return e&&\"function\"==typeof e.addEventListener&&\"function\"==typeof e.removeEventListener}","map":{"mappings":[{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":86}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":88}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":92}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":94}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":102}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":119}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":121}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":129}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":148}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":150}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":180}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":190}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":173,"column":0},"generated":{"line":1,"column":210}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":173,"column":6},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":173,"column":16},"generated":{"line":1,"column":219}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":174,"column":28},"generated":{"line":1,"column":229}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":2},"generated":{"line":1,"column":238}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":6},"generated":{"line":1,"column":247}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":24},"generated":{"line":1,"column":249}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":27},"generated":{"line":1,"column":251}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":27},"generated":{"line":1,"column":253}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":180,"column":27},"generated":{"line":1,"column":255}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":187,"column":4},"generated":{"line":1,"column":258}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":182,"column":4},"generated":{"line":1,"column":265}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":182,"column":4},"generated":{"line":1,"column":267}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":182,"column":4},"generated":{"line":1,"column":269}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":182,"column":4},"generated":{"line":1,"column":281}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":183,"column":4},"generated":{"line":1,"column":286}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":183,"column":14},"generated":{"line":1,"column":288}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":184,"column":3},"generated":{"line":1,"column":290}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":184,"column":3},"generated":{"line":1,"column":297}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":187,"column":4},"generated":{"line":1,"column":300}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":302}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":304}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":306}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":308}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":311}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":317}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":319}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":321}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":326}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":335}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":338}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":345}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":347}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":349}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":358}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":361}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":363}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":376}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":379}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":190,"column":3},"generated":{"line":1,"column":381}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":193,"column":4},"generated":{"line":1,"column":387}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":193,"column":4},"generated":{"line":1,"column":391}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":193,"column":4},"generated":{"line":1,"column":393}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":193,"column":25},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":193,"column":25},"generated":{"line":1,"column":413}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":201,"column":5},"generated":{"line":1,"column":416}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":201,"column":5},"generated":{"line":1,"column":418}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":201,"column":5},"generated":{"line":1,"column":420}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":194,"column":10},"generated":{"line":1,"column":422}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":194,"column":19},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":195,"column":8},"generated":{"line":1,"column":434}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":195,"column":18},"generated":{"line":1,"column":444}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":195,"column":24},"generated":{"line":1,"column":451}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":453}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":460}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":466}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":476}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":482}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":196,"column":7},"generated":{"line":1,"column":487}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":198,"column":7},"generated":{"line":1,"column":499}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":198,"column":7},"generated":{"line":1,"column":501}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":198,"column":7},"generated":{"line":1,"column":506}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":201,"column":5},"generated":{"line":1,"column":510}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":201,"column":5},"generated":{"line":1,"column":512}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":6},"generated":{"line":1,"column":517}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":6},"generated":{"line":1,"column":526}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":30},"generated":{"line":1,"column":528}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":30},"generated":{"line":1,"column":530}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":30},"generated":{"line":1,"column":532}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":30},"generated":{"line":1,"column":534}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":207,"column":30},"generated":{"line":1,"column":536}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":208,"column":6},"generated":{"line":1,"column":539}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":208,"column":6},"generated":{"line":1,"column":543}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":209,"column":4},"generated":{"line":1,"column":545}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":209,"column":4},"generated":{"line":1,"column":548}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":209,"column":16},"generated":{"line":1,"column":550}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":209,"column":29},"generated":{"line":1,"column":553}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":210,"column":4},"generated":{"line":1,"column":554}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":210,"column":4},"generated":{"line":1,"column":558}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":210,"column":14},"generated":{"line":1,"column":560}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":211,"column":4},"generated":{"line":1,"column":562}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":211,"column":4},"generated":{"line":1,"column":564}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":211,"column":18},"generated":{"line":1,"column":581}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":211,"column":24},"generated":{"line":1,"column":583}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":211,"column":31},"generated":{"line":1,"column":585}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":588}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":590}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":601}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":608}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":610}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":630}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":632}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":212,"column":3},"generated":{"line":1,"column":634}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":213,"column":4},"generated":{"line":1,"column":643}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":213,"column":10},"generated":{"line":1,"column":646}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":213,"column":29},"generated":{"line":1,"column":648}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":213,"column":29},"generated":{"line":1,"column":651}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":214,"column":4},"generated":{"line":1,"column":652}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":214,"column":4},"generated":{"line":1,"column":656}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":214,"column":17},"generated":{"line":1,"column":658}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":215,"column":4},"generated":{"line":1,"column":660}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":215,"column":4},"generated":{"line":1,"column":662}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":215,"column":15},"generated":{"line":1,"column":665}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":215,"column":18},"generated":{"line":1,"column":667}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":670}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":672}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":683}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":690}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":692}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":696}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":216,"column":3},"generated":{"line":1,"column":698}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":217,"column":4},"generated":{"line":1,"column":707}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":217,"column":10},"generated":{"line":1,"column":710}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":217,"column":29},"generated":{"line":1,"column":712}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":217,"column":29},"generated":{"line":1,"column":715}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":218,"column":4},"generated":{"line":1,"column":716}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":218,"column":4},"generated":{"line":1,"column":720}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":218,"column":14},"generated":{"line":1,"column":722}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":219,"column":4},"generated":{"line":1,"column":724}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":219,"column":4},"generated":{"line":1,"column":726}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":219,"column":18},"generated":{"line":1,"column":738}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":219,"column":24},"generated":{"line":1,"column":740}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":743}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":745}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":756}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":763}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":765}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":780}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":220,"column":3},"generated":{"line":1,"column":782}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":221,"column":4},"generated":{"line":1,"column":790}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":221,"column":4},"generated":{"line":1,"column":791}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":221,"column":9},"generated":{"line":1,"column":795}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":221,"column":20},"generated":{"line":1,"column":799}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":221,"column":27},"generated":{"line":1,"column":801}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":226,"column":3},"generated":{"line":1,"column":808}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":226,"column":3},"generated":{"line":1,"column":814}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":226,"column":3},"generated":{"line":1,"column":818}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":226,"column":3},"generated":{"line":1,"column":828}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":6},"generated":{"line":1,"column":852}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":6},"generated":{"line":1,"column":856}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":6},"generated":{"line":1,"column":860}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":6},"generated":{"line":1,"column":862}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":6},"generated":{"line":1,"column":864}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":24},"generated":{"line":1,"column":866}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":34},"generated":{"line":1,"column":868}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":38},"generated":{"line":1,"column":875}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":38},"generated":{"line":1,"column":877}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":222,"column":49},"generated":{"line":1,"column":879}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":883}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":885}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":887}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":890}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":892}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":894}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":223,"column":5},"generated":{"line":1,"column":896}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":229,"column":1},"generated":{"line":1,"column":899}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":229,"column":1},"generated":{"line":1,"column":901}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":229,"column":1},"generated":{"line":1,"column":905}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":232,"column":2},"generated":{"line":1,"column":908}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":232,"column":2},"generated":{"line":1,"column":917}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":232,"column":29},"generated":{"line":1,"column":919}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":922}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":929}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":932}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":951}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":953}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":966}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":985}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":233,"column":1},"generated":{"line":1,"column":987}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":236,"column":2},"generated":{"line":1,"column":1002}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":236,"column":2},"generated":{"line":1,"column":1011}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":236,"column":29},"generated":{"line":1,"column":1013}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1016}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1023}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1026}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1045}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1047}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1051}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1070}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":237,"column":1},"generated":{"line":1,"column":1072}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":240,"column":2},"generated":{"line":1,"column":1076}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":240,"column":2},"generated":{"line":1,"column":1085}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":240,"column":18},"generated":{"line":1,"column":1087}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1090}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1097}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1100}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1119}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1121}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1139}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1158}},{"source":"../../../src/internal/observable/fromEvent.ts","name":null,"original":{"line":241,"column":1},"generated":{"line":1,"column":1160}}],"sources":{"../../../src/internal/observable/fromEvent.ts":"import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { Subscriber } from '../Subscriber';\nimport { map } from '../operators/map';\n\nconst toString: Function = Object.prototype.toString;\n\nexport interface NodeStyleEventEmitter {\n addListener: (eventName: string | symbol, handler: NodeEventHandler) => this;\n removeListener: (eventName: string | symbol, handler: NodeEventHandler) => this;\n}\n\nexport type NodeEventHandler = (...args: any[]) => void;\n\n// For APIs that implement `addListener` and `removeListener` methods that may\n// not use the same arguments or return EventEmitter values\n// such as React Native\nexport interface NodeCompatibleEventEmitter {\n addListener: (eventName: string, handler: NodeEventHandler) => void | {};\n removeListener: (eventName: string, handler: NodeEventHandler) => void | {};\n}\n\nexport interface JQueryStyleEventEmitter {\n on: (eventName: string, handler: Function) => void;\n off: (eventName: string, handler: Function) => void;\n}\n\nexport interface HasEventTargetAddRemove<E> {\n addEventListener(type: string, listener: ((evt: E) => void) | null, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: string, listener?: ((evt: E) => void) | null, options?: EventListenerOptions | boolean): void;\n}\n\nexport type EventTargetLike<T> = HasEventTargetAddRemove<T> | NodeStyleEventEmitter | NodeCompatibleEventEmitter | JQueryStyleEventEmitter;\n\nexport type FromEventTarget<T> = EventTargetLike<T> | ArrayLike<EventTargetLike<T>>;\n\nexport interface EventListenerOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n}\n\nexport interface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n}\n\n/* tslint:disable:max-line-length */\nexport function fromEvent<T>(target: FromEventTarget<T>, eventName: string): Observable<T>;\n/** @deprecated resultSelector no longer supported, pipe to map instead */\nexport function fromEvent<T>(target: FromEventTarget<T>, eventName: string, resultSelector: (...args: any[]) => T): Observable<T>;\nexport function fromEvent<T>(target: FromEventTarget<T>, eventName: string, options: EventListenerOptions): Observable<T>;\n/** @deprecated resultSelector no longer supported, pipe to map instead */\nexport function fromEvent<T>(target: FromEventTarget<T>, eventName: string, options: EventListenerOptions, resultSelector: (...args: any[]) => T): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an Observable that emits events of a specific type coming from the\n * given event target.\n *\n * <span class=\"informal\">Creates an Observable from DOM events, or Node.js\n * EventEmitter events or others.</span>\n *\n * ![](fromEvent.png)\n *\n * `fromEvent` accepts as a first argument event target, which is an object with methods\n * for registering event handler functions. As a second argument it takes string that indicates\n * type of event we want to listen for. `fromEvent` supports selected types of event targets,\n * which are described in detail below. If your event target does not match any of the ones listed,\n * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.\n * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event\n * handler functions have different names, but they all accept a string describing event type\n * and function itself, which will be called whenever said event happens.\n *\n * Every time resulting Observable is subscribed, event handler function will be registered\n * to event target on given event type. When that event fires, value\n * passed as a first argument to registered function will be emitted by output Observable.\n * When Observable is unsubscribed, function will be unregistered from event target.\n *\n * Note that if event target calls registered function with more than one argument, second\n * and following arguments will not appear in resulting stream. In order to get access to them,\n * you can pass to `fromEvent` optional project function, which will be called with all arguments\n * passed to event handler. Output Observable will then emit value returned by project function,\n * instead of the usual value.\n *\n * Remember that event targets listed below are checked via duck typing. It means that\n * no matter what kind of object you have and no matter what environment you work in,\n * you can safely use `fromEvent` on that object if it exposes described methods (provided\n * of course they behave as was described above). So for example if Node.js library exposes\n * event target which has the same method names as DOM EventTarget, `fromEvent` is still\n * a good choice.\n *\n * If the API you use is more callback then event handler oriented (subscribed\n * callback function fires only once and thus there is no need to manually\n * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}\n * instead.\n *\n * `fromEvent` supports following types of event targets:\n *\n * **DOM EventTarget**\n *\n * This is an object with `addEventListener` and `removeEventListener` methods.\n *\n * In the browser, `addEventListener` accepts - apart from event type string and event\n * handler function arguments - optional third parameter, which is either an object or boolean,\n * both used for additional configuration how and when passed function will be called. When\n * `fromEvent` is used with event target of that type, you can provide this values\n * as third parameter as well.\n *\n * **Node.js EventEmitter**\n *\n * An object with `addListener` and `removeListener` methods.\n *\n * **JQuery-style event target**\n *\n * An object with `on` and `off` methods\n *\n * **DOM NodeList**\n *\n * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.\n *\n * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes\n * it contains and install event handler function in every of them. When returned Observable\n * is unsubscribed, function will be removed from all Nodes.\n *\n * **DOM HtmlCollection**\n *\n * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is\n * installed and removed in each of elements.\n *\n *\n * ## Examples\n * ### Emits clicks happening on the DOM document\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * clicks.subscribe(x => console.log(x));\n *\n * // Results in:\n * // MouseEvent object logged to console every time a click\n * // occurs on the document.\n * ```\n *\n * ### Use addEventListener with capture option\n * ```javascript\n * const clicksInDocument = fromEvent(document, 'click', true); // note optional configuration parameter\n * // which will be passed to addEventListener\n * const clicksInDiv = fromEvent(someDivInDocument, 'click');\n *\n * clicksInDocument.subscribe(() => console.log('document'));\n * clicksInDiv.subscribe(() => console.log('div'));\n *\n * // By default events bubble UP in DOM tree, so normally\n * // when we would click on div in document\n * // \"div\" would be logged first and then \"document\".\n * // Since we specified optional `capture` option, document\n * // will catch event when it goes DOWN DOM tree, so console\n * // will log \"document\" and then \"div\".\n * ```\n *\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n * @see {@link fromEventPattern}\n *\n * @param {FromEventTarget<T>} target The DOM EventTarget, Node.js\n * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.\n * @param {string} eventName The event name of interest, being emitted by the\n * `target`.\n * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n * @return {Observable<T>}\n * @name fromEvent\n */\nexport function fromEvent<T>(\n target: FromEventTarget<T>,\n eventName: string,\n options?: EventListenerOptions | ((...args: any[]) => T),\n resultSelector?: ((...args: any[]) => T)\n): Observable<T> {\n\n if (isFunction(options)) {\n // DEPRECATED PATH\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n // DEPRECATED PATH\n return fromEvent<T>(target, eventName, <EventListenerOptions | undefined>options).pipe(\n map(args => isArray(args) ? resultSelector(...args) : resultSelector(args))\n );\n }\n\n return new Observable<T>(subscriber => {\n function handler(e: T) {\n if (arguments.length > 1) {\n subscriber.next(Array.prototype.slice.call(arguments));\n } else {\n subscriber.next(e);\n }\n }\n setupSubscription(target, eventName, handler, subscriber, options as EventListenerOptions);\n });\n}\n\nfunction setupSubscription<T>(sourceObj: FromEventTarget<T>, eventName: string,\n handler: (...args: any[]) => void, subscriber: Subscriber<T>,\n options?: EventListenerOptions) {\n let unsubscribe: () => void;\n if (isEventTarget(sourceObj)) {\n const source = sourceObj;\n sourceObj.addEventListener(eventName, handler, options);\n unsubscribe = () => source.removeEventListener(eventName, handler, options);\n } else if (isJQueryStyleEventEmitter(sourceObj)) {\n const source = sourceObj;\n sourceObj.on(eventName, handler);\n unsubscribe = () => source.off(eventName, handler);\n } else if (isNodeStyleEventEmitter(sourceObj)) {\n const source = sourceObj;\n sourceObj.addListener(eventName, handler as NodeEventHandler);\n unsubscribe = () => source.removeListener(eventName, handler as NodeEventHandler);\n } else if (sourceObj && (sourceObj as any).length) {\n for (let i = 0, len = (sourceObj as any).length; i < len; i++) {\n setupSubscription(sourceObj[i], eventName, handler, subscriber, options);\n }\n } else {\n throw new TypeError('Invalid event target');\n }\n\n subscriber.add(unsubscribe);\n}\n\nfunction isNodeStyleEventEmitter(sourceObj: any): sourceObj is NodeStyleEventEmitter {\n return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';\n}\n\nfunction isJQueryStyleEventEmitter(sourceObj: any): sourceObj is JQueryStyleEventEmitter {\n return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';\n}\n\nfunction isEventTarget(sourceObj: any): sourceObj is HasEventTargetAddRemove<any> {\n return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';\n}\n"},"lineCount":null}},"hash":"c199c7debfcd0efc46ae9ac29080f738","cacheData":{"env":{}}}