{"id":"n6SK","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeInterval.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/timeInterval.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":"../scheduler/async","loc":{"line":2,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeInterval.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/async.js"},{"name":"./scan","loc":{"line":3,"column":21},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeInterval.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/scan.js"},{"name":"../observable/defer","loc":{"line":4,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeInterval.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/defer.js"},{"name":"./map","loc":{"line":5,"column":20},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeInterval.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.timeInterval=u,exports.TimeInterval=void 0;var e=require(\"../scheduler/async\"),r=require(\"./scan\"),n=require(\"../observable/defer\"),t=require(\"./map\");function u(u){return void 0===u&&(u=e.async),function(e){return(0,n.defer)(function(){return e.pipe((0,r.scan)(function(e,r){var n=e.current;return{value:r,current:u.now(),last:n}},{current:u.now(),value:void 0,last:void 0}),(0,t.map)(function(e){var r=e.current,n=e.last,t=e.value;return new i(t,r-n)}))})}}var i=function(){return function(e,r){this.value=e,this.interval=r}}();exports.TimeInterval=i;","map":{"mappings":[{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":99}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":119}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":123}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":125}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":133}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":155}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":157}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":165}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":175}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":177}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":185}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":208}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":210}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":32},"generated":{"line":1,"column":227}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":32},"generated":{"line":1,"column":236}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":9,"column":32},"generated":{"line":1,"column":238}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":14,"column":33},"generated":{"line":1,"column":241}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":10,"column":10},"generated":{"line":1,"column":253}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":11,"column":4},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":11,"column":11},"generated":{"line":1,"column":263}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":11,"column":4},"generated":{"line":1,"column":265}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":14,"column":33},"generated":{"line":1,"column":272}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":14,"column":33},"generated":{"line":1,"column":281}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":15,"column":10},"generated":{"line":1,"column":284}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":15,"column":10},"generated":{"line":1,"column":291}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":15,"column":17},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":15,"column":17},"generated":{"line":1,"column":295}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":15,"column":17},"generated":{"line":1,"column":302}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":35},"generated":{"line":1,"column":313}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":35},"generated":{"line":1,"column":320}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":35},"generated":{"line":1,"column":322}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":35},"generated":{"line":1,"column":328}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":42},"generated":{"line":1,"column":330}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":42},"generated":{"line":1,"column":332}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":42},"generated":{"line":1,"column":338}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":44},"generated":{"line":1,"column":347}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":44},"generated":{"line":1,"column":349}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":62},"generated":{"line":1,"column":352}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":62},"generated":{"line":1,"column":356}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":66},"generated":{"line":1,"column":358}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":17,"column":66},"generated":{"line":1,"column":360}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":368}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":375}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":381}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":383}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":391}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":393}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":399}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":18,"column":6},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":408}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":409}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":417}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":419}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":425}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":436}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":448}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":453}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":457}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":462}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":19,"column":5},"generated":{"line":1,"column":471}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":474}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":478}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":480}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":482}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":490}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":492}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":494}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":499}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":501}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":20,"column":1},"generated":{"line":1,"column":503}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":509}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":516}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":520}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":522}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":524}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":1,"column":526}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":0},"generated":{"line":1,"column":535}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":0},"generated":{"line":1,"column":539}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":541}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":552}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":559}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":568}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":570}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":573}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":578}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":584}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":586}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":591}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":603}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":606}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":614}},{"source":"../../../src/internal/operators/timeInterval.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":1,"column":627}}],"sources":{"../../../src/internal/operators/timeInterval.ts":"\nimport { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { SchedulerLike, OperatorFunction } from '../types';\nimport { scan } from './scan';\nimport { defer } from '../observable/defer';\nimport { map } from './map';\n\nexport function timeInterval(scheduler: SchedulerLike = async): OperatorFunction> {\n return (source: Observable) => defer(() => {\n return source.pipe(\n // HACK: the typings seem off with scan\n scan(\n ({ current }, value) => ({ value, current: scheduler.now(), last: current }),\n { current: scheduler.now(), value: undefined, last: undefined }\n ) as any,\n map>(({ current, last, value }) => new TimeInterval(value, current - last)),\n );\n });\n}\n\nexport class TimeInterval {\n constructor(public value: T, public interval: number) {}\n}\n"},"lineCount":null}},"hash":"b0c4bd8226cbeeff6b40ab7bd8c5ce42","cacheData":{"env":{}}}