webdetector/.cache/fc/582b7c632ad32f0024feadce78529b.json
2018-12-21 13:36:28 +01:00

1 line
34 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/sample.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/sample.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../OuterSubscriber","loc":{"line":3,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":4,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sample = sample;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _OuterSubscriber = require(\"../OuterSubscriber\");\n\nvar _subscribeToResult = require(\"../util/subscribeToResult\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\n/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nfunction sample(notifier) {\n return function (source) {\n return source.lift(new SampleOperator(notifier));\n };\n}\n\nvar SampleOperator =\n/*@__PURE__*/\nfunction () {\n function SampleOperator(notifier) {\n this.notifier = notifier;\n }\n\n SampleOperator.prototype.call = function (subscriber, source) {\n var sampleSubscriber = new SampleSubscriber(subscriber);\n var subscription = source.subscribe(sampleSubscriber);\n subscription.add((0, _subscribeToResult.subscribeToResult)(sampleSubscriber, this.notifier));\n return subscription;\n };\n\n return SampleOperator;\n}();\n\nvar SampleSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(SampleSubscriber, _super);\n\n function SampleSubscriber() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.hasValue = false;\n return _this;\n }\n\n SampleSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n };\n\n SampleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.emitValue();\n };\n\n SampleSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n\n SampleSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.value);\n }\n };\n\n return SampleSubscriber;\n}(_OuterSubscriber.OuterSubscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":47,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":17,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":2},"generated":{"line":17,"column":15}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":10},"generated":{"line":17,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":2},"generated":{"line":17,"column":24}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":48,"column":36},"generated":{"line":17,"column":26}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":18,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":18,"column":25}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":18,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":22}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":41}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":42}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":50}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":51}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":19,"column":52}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":49,"column":1},"generated":{"line":20,"column":3}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":51,"column":0},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":23,"column":4}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":23,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":47},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":47},"generated":{"line":25,"column":12}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":26,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":26,"column":26}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":47},"generated":{"line":26,"column":36}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":27,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":27,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":27,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":27,"column":28}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":10},"generated":{"line":30,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":10},"generated":{"line":30,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":26},"generated":{"line":30,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":33},"generated":{"line":30,"column":34}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":33},"generated":{"line":30,"column":44}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":33},"generated":{"line":30,"column":54}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":50},"generated":{"line":30,"column":56}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":33},"generated":{"line":30,"column":62}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":56,"column":62},"generated":{"line":30,"column":64}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":10},"generated":{"line":31,"column":8}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":25},"generated":{"line":31,"column":24}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":25},"generated":{"line":31,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":32},"generated":{"line":31,"column":31}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":25},"generated":{"line":31,"column":47}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":42},"generated":{"line":31,"column":48}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":25},"generated":{"line":31,"column":58}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":31,"column":59}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":32,"column":8}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":20},"generated":{"line":32,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":21},"generated":{"line":32,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":21},"generated":{"line":32,"column":29}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":21},"generated":{"line":32,"column":30}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":21},"generated":{"line":32,"column":39}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":39},"generated":{"line":32,"column":40}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":21},"generated":{"line":32,"column":56}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":32,"column":57}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":33,"column":4}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":33,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":33,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":33,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":33,"column":21}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":24},"generated":{"line":33,"column":63}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":33,"column":79}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":24},"generated":{"line":33,"column":81}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":24},"generated":{"line":33,"column":86}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":33,"column":94}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":33,"column":95}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":34,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":34,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":61,"column":0},"generated":{"line":35,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":51,"column":0},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":37,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":51,"column":0},"generated":{"line":37,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":52,"column":47},"generated":{"line":38,"column":1}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":40,"column":4}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":40,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":58},"generated":{"line":42,"column":10}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":42,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":58},"generated":{"line":42,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":2}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":10}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":36}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":38}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":43,"column":44}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":45,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":45,"column":30}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":8}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":13}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":30},"generated":{"line":46,"column":22}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":31}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":35}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":41}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":42}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":47}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":48}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":52}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":54}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":63}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":64}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":36},"generated":{"line":46,"column":68}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":46,"column":72}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":93,"column":1},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":93,"column":1},"generated":{"line":49,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":93,"column":1},"generated":{"line":49,"column":16}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":72,"column":12},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":14},"generated":{"line":52,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":17},"generated":{"line":52,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":52,"column":29}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":52,"column":37}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":52,"column":47}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":52,"column":52}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":52,"column":54}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":74,"column":4},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":74,"column":9},"generated":{"line":53,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":74,"column":4},"generated":{"line":53,"column":14}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":74,"column":17},"generated":{"line":53,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":74,"column":4},"generated":{"line":53,"column":22}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":54,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":54,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":54,"column":17}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":54,"column":20}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":54,"column":24}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":77,"column":2},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":9},"generated":{"line":57,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":9},"generated":{"line":57,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":29}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":42}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":52}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":62}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":64}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":74}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":76}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":86}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":88}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":98}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":100}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":108}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":80,"column":21},"generated":{"line":57,"column":110}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":58,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":58,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":84,"column":9},"generated":{"line":61,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":84,"column":9},"generated":{"line":61,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":84,"column":21},"generated":{"line":61,"column":29}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":84,"column":21},"generated":{"line":61,"column":46}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":84,"column":21},"generated":{"line":61,"column":58}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":85,"column":3},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":85,"column":3},"generated":{"line":62,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":85,"column":3},"generated":{"line":62,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":87,"column":2},"generated":{"line":63,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":88,"column":13},"generated":{"line":65,"column":18}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":88,"column":13},"generated":{"line":65,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":88,"column":23},"generated":{"line":65,"column":29}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":88,"column":23},"generated":{"line":65,"column":41}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":88,"column":23},"generated":{"line":65,"column":53}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":89,"column":6},"generated":{"line":66,"column":8}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":89,"column":11},"generated":{"line":66,"column":13}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":89,"column":19},"generated":{"line":66,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":90,"column":6},"generated":{"line":67,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":90,"column":11},"generated":{"line":67,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":90,"column":6},"generated":{"line":67,"column":19}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":90,"column":22},"generated":{"line":67,"column":22}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":90,"column":6},"generated":{"line":67,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":11}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":22}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":23}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":27}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":28}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":33}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":91,"column":5},"generated":{"line":68,"column":38}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":92,"column":3},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":93,"column":0},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":72,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":72,"column":9}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":72,"column":25}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":73,"column":1}},{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":68,"column":37},"generated":{"line":73,"column":34}}],"sources":{"../../../src/internal/operators/sample.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction, TeardownLogic } from '../types';\n\n/**\n * Emits the most recently emitted value from the source Observable whenever\n * another Observable, the `notifier`, emits.\n *\n * <span class=\"informal\">It's like {@link sampleTime}, but samples whenever\n * the `notifier` Observable emits something.</span>\n *\n * ![](sample.png)\n *\n * Whenever the `notifier` Observable emits a value or completes, `sample`\n * looks at the source Observable and emits whichever value it has most recently\n * emitted since the previous sampling, unless the source has not emitted\n * anything since the previous sampling. The `notifier` is subscribed to as soon\n * as the output Observable is subscribed.\n *\n * ## Example\n * On every click, sample the most recent \"seconds\" timer\n * ```javascript\n * const seconds = interval(1000);\n * const clicks = fromEvent(document, 'click');\n * const result = seconds.pipe(sample(clicks));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {Observable<any>} notifier The Observable to use for sampling the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable whenever the notifier Observable\n * emits value or completes.\n * @method sample\n * @owner Observable\n */\nexport function sample<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) => source.lift(new SampleOperator(notifier));\n}\n\nclass SampleOperator<T> implements Operator<T, T> {\n constructor(private notifier: Observable<any>) {\n }\n\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n const sampleSubscriber = new SampleSubscriber(subscriber);\n const subscription = source.subscribe(sampleSubscriber);\n subscription.add(subscribeToResult(sampleSubscriber, this.notifier));\n return subscription;\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SampleSubscriber<T, R> extends OuterSubscriber<T, R> {\n private value: T;\n private hasValue: boolean = false;\n\n protected _next(value: T) {\n this.value = value;\n this.hasValue = true;\n }\n\n notifyNext(outerValue: T, innerValue: R,\n outerIndex: number, innerIndex: number,\n innerSub: InnerSubscriber<T, R>): void {\n this.emitValue();\n }\n\n notifyComplete(): void {\n this.emitValue();\n }\n\n emitValue() {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.value);\n }\n }\n}\n"},"lineCount":null}},"hash":"95c712b3564addc1416590767872ae16","cacheData":{"env":{}}}