webdetector/.cache/3d/cab54aa53090a99e6c897d46e62abf.json
2018-12-21 13:36:28 +01:00

1 line
81 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/observable/generate.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/generate.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/generate.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":"../Observable","loc":{"line":2,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/generate.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"},{"name":"../util/identity","loc":{"line":3,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/generate.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/identity.js"},{"name":"../util/isScheduler","loc":{"line":4,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/generate.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isScheduler.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.generate = generate;\n\nvar _Observable = require(\"../Observable\");\n\nvar _identity = require(\"../util/identity\");\n\nvar _isScheduler = require(\"../util/isScheduler\");\n\n/** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */\nfunction generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {\n var resultSelector;\n var initialState;\n\n if (arguments.length == 1) {\n var options = initialStateOrOptions;\n initialState = options.initialState;\n condition = options.condition;\n iterate = options.iterate;\n resultSelector = options.resultSelector || _identity.identity;\n scheduler = options.scheduler;\n } else if (resultSelectorOrObservable === undefined || (0, _isScheduler.isScheduler)(resultSelectorOrObservable)) {\n initialState = initialStateOrOptions;\n resultSelector = _identity.identity;\n scheduler = resultSelectorOrObservable;\n } else {\n initialState = initialStateOrOptions;\n resultSelector = resultSelectorOrObservable;\n }\n\n return new _Observable.Observable(function (subscriber) {\n var state = initialState;\n\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n subscriber: subscriber,\n iterate: iterate,\n condition: condition,\n resultSelector: resultSelector,\n state: state\n });\n }\n\n do {\n if (condition) {\n var conditionResult = void 0;\n\n try {\n conditionResult = condition(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n if (!conditionResult) {\n subscriber.complete();\n break;\n }\n }\n\n var value = void 0;\n\n try {\n value = resultSelector(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n subscriber.next(value);\n\n if (subscriber.closed) {\n break;\n }\n\n try {\n state = iterate(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } while (true);\n\n return undefined;\n });\n}\n\nfunction dispatch(state) {\n var subscriber = state.subscriber,\n condition = state.condition;\n\n if (subscriber.closed) {\n return undefined;\n }\n\n if (state.needIterate) {\n try {\n state.state = state.iterate(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } else {\n state.needIterate = true;\n }\n\n if (condition) {\n var conditionResult = void 0;\n\n try {\n conditionResult = condition(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n if (!conditionResult) {\n subscriber.complete();\n return undefined;\n }\n\n if (subscriber.closed) {\n return undefined;\n }\n }\n\n var value;\n\n try {\n value = state.resultSelector(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n if (subscriber.closed) {\n return undefined;\n }\n\n subscriber.next(value);\n\n if (subscriber.closed) {\n return undefined;\n }\n\n return this.schedule(state);\n}","map":{"mappings":[{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":259,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":6},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":41}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":50}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":52}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":59}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":61}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":87}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":89}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":2},"generated":{"line":15,"column":98}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":265,"column":39},"generated":{"line":15,"column":100}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":266,"column":2},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":266,"column":6},"generated":{"line":16,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":266,"column":2},"generated":{"line":16,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":268,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":268,"column":6},"generated":{"line":17,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":268,"column":2},"generated":{"line":17,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":4},"generated":{"line":19,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":10},"generated":{"line":19,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":10},"generated":{"line":19,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":4},"generated":{"line":19,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":20},"generated":{"line":19,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":269,"column":20},"generated":{"line":19,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":270,"column":4},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":270,"column":4},"generated":{"line":20,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":270,"column":4},"generated":{"line":20,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":270,"column":16},"generated":{"line":20,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":270,"column":4},"generated":{"line":20,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":4},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":4},"generated":{"line":21,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":16},"generated":{"line":21,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":16},"generated":{"line":21,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":24},"generated":{"line":21,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":24},"generated":{"line":21,"column":27}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":271,"column":4},"generated":{"line":21,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":4},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":4},"generated":{"line":22,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":11},"generated":{"line":22,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":14},"generated":{"line":22,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":22},"generated":{"line":22,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":22},"generated":{"line":22,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":272,"column":4},"generated":{"line":22,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":4},"generated":{"line":23,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":4},"generated":{"line":23,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":4},"generated":{"line":23,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":4},"generated":{"line":23,"column":14}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":21},"generated":{"line":23,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":21},"generated":{"line":23,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":273,"column":4},"generated":{"line":23,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":4},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":4},"generated":{"line":24,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":16},"generated":{"line":24,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":16},"generated":{"line":24,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":24},"generated":{"line":24,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":24},"generated":{"line":24,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":16},"generated":{"line":24,"column":43}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":34},"generated":{"line":24,"column":47}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":274,"column":4},"generated":{"line":24,"column":65}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":275,"column":3},"generated":{"line":25,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":4},"generated":{"line":26,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":4},"generated":{"line":26,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":19},"generated":{"line":26,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":45},"generated":{"line":26,"column":44}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":4},"generated":{"line":26,"column":53}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":46},"generated":{"line":26,"column":57}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":46},"generated":{"line":26,"column":87}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":46},"generated":{"line":26,"column":113}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":4},"generated":{"line":26,"column":114}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":46},"generated":{"line":26,"column":116}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":277,"column":4},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":277,"column":4},"generated":{"line":27,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":277,"column":4},"generated":{"line":27,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":277,"column":18},"generated":{"line":27,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":277,"column":4},"generated":{"line":27,"column":40}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":278,"column":4},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":278,"column":4},"generated":{"line":28,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":278,"column":16},"generated":{"line":28,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":278,"column":16},"generated":{"line":28,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":278,"column":4},"generated":{"line":28,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":279,"column":3},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":279,"column":3},"generated":{"line":29,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":279,"column":3},"generated":{"line":29,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":279,"column":3},"generated":{"line":29,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":279,"column":3},"generated":{"line":29,"column":42}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":276,"column":4},"generated":{"line":30,"column":3}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":280,"column":4},"generated":{"line":30,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":281,"column":4},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":281,"column":4},"generated":{"line":31,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":281,"column":4},"generated":{"line":31,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":281,"column":18},"generated":{"line":31,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":281,"column":4},"generated":{"line":31,"column":40}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":282,"column":3},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":282,"column":3},"generated":{"line":32,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":282,"column":3},"generated":{"line":32,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":282,"column":3},"generated":{"line":32,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":282,"column":3},"generated":{"line":32,"column":47}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":284,"column":2},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":4},"generated":{"line":35,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":8},"generated":{"line":35,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":4},"generated":{"line":35,"column":35}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":16},"generated":{"line":35,"column":36}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":29},"generated":{"line":35,"column":46}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":16},"generated":{"line":35,"column":56}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":29},"generated":{"line":35,"column":58}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":286,"column":4},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":286,"column":8},"generated":{"line":36,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":286,"column":8},"generated":{"line":36,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":286,"column":8},"generated":{"line":36,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":286,"column":4},"generated":{"line":36,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":287,"column":6},"generated":{"line":38,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":287,"column":13},"generated":{"line":38,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":8},"generated":{"line":39,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":39,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":39,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":8},"generated":{"line":39,"column":31}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":39,"column":32}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":8},"generated":{"line":39,"column":40}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":39,"column":42}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":8},"generated":{"line":39,"column":43}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":39,"column":45}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":289,"column":8},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":289,"column":8},"generated":{"line":40,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":289,"column":15},"generated":{"line":40,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":289,"column":15},"generated":{"line":40,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":40,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":290,"column":8},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":290,"column":8},"generated":{"line":41,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":290,"column":8},"generated":{"line":41,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":290,"column":17},"generated":{"line":41,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":41,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":291,"column":8},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":291,"column":8},"generated":{"line":42,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":291,"column":8},"generated":{"line":42,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":291,"column":8},"generated":{"line":42,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":42,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":292,"column":8},"generated":{"line":43,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":292,"column":8},"generated":{"line":43,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":292,"column":13},"generated":{"line":43,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":292,"column":13},"generated":{"line":43,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":43,"column":38}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":293,"column":9},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":293,"column":9},"generated":{"line":44,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":293,"column":9},"generated":{"line":44,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":293,"column":9},"generated":{"line":44,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":18},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":288,"column":8},"generated":{"line":45,"column":7}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":296,"column":4},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":298,"column":8},"generated":{"line":49,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":298,"column":12},"generated":{"line":49,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":8},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":12},"generated":{"line":50,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":12},"generated":{"line":50,"column":27}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":12},"generated":{"line":50,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":12},"generated":{"line":50,"column":35}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":299,"column":8},"generated":{"line":50,"column":36}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":300,"column":10},"generated":{"line":52,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":37}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":38}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":43}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":9},"generated":{"line":53,"column":44}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":301,"column":10},"generated":{"line":54,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":302,"column":10},"generated":{"line":54,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":302,"column":10},"generated":{"line":54,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":10},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":10},"generated":{"line":55,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":17},"generated":{"line":55,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":17},"generated":{"line":55,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":10},"generated":{"line":55,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":27},"generated":{"line":55,"column":27}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":303,"column":10},"generated":{"line":55,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":304,"column":9},"generated":{"line":56,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":304,"column":9},"generated":{"line":56,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":304,"column":9},"generated":{"line":56,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":305,"column":8},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":306,"column":10},"generated":{"line":59,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":306,"column":10},"generated":{"line":59,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":306,"column":21},"generated":{"line":59,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":307,"column":10},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":307,"column":10},"generated":{"line":60,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":307,"column":16},"generated":{"line":60,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":307,"column":16},"generated":{"line":60,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":307,"column":10},"generated":{"line":60,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":308,"column":9},"generated":{"line":61,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":309,"column":7},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":310,"column":6},"generated":{"line":63,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":6},"generated":{"line":65,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":10},"generated":{"line":65,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":10},"generated":{"line":65,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":10},"generated":{"line":65,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":10},"generated":{"line":65,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":311,"column":6},"generated":{"line":65,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":312,"column":8},"generated":{"line":67,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":31}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":36}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":7},"generated":{"line":68,"column":37}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":313,"column":8},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":314,"column":8},"generated":{"line":69,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":314,"column":8},"generated":{"line":69,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":8},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":8},"generated":{"line":70,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":15},"generated":{"line":70,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":15},"generated":{"line":70,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":8},"generated":{"line":70,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":25},"generated":{"line":70,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":315,"column":8},"generated":{"line":70,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":316,"column":7},"generated":{"line":71,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":316,"column":7},"generated":{"line":71,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":316,"column":7},"generated":{"line":71,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":317,"column":6},"generated":{"line":72,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":6},"generated":{"line":74,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":6},"generated":{"line":74,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":10},"generated":{"line":74,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":10},"generated":{"line":74,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":6},"generated":{"line":74,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":21},"generated":{"line":74,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":318,"column":6},"generated":{"line":74,"column":27}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":319,"column":8},"generated":{"line":76,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":319,"column":14},"generated":{"line":76,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":319,"column":14},"generated":{"line":76,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":319,"column":14},"generated":{"line":76,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":320,"column":7},"generated":{"line":77,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":321,"column":6},"generated":{"line":78,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":322,"column":8},"generated":{"line":80,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":29}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":7},"generated":{"line":81,"column":30}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":323,"column":8},"generated":{"line":82,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":324,"column":8},"generated":{"line":82,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":324,"column":8},"generated":{"line":82,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":8},"generated":{"line":83,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":8},"generated":{"line":83,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":15},"generated":{"line":83,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":15},"generated":{"line":83,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":8},"generated":{"line":83,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":25},"generated":{"line":83,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":325,"column":8},"generated":{"line":83,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":326,"column":7},"generated":{"line":84,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":326,"column":7},"generated":{"line":84,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":326,"column":7},"generated":{"line":84,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":327,"column":5},"generated":{"line":85,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":329,"column":4},"generated":{"line":86,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":329,"column":11},"generated":{"line":86,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":330,"column":5},"generated":{"line":88,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":330,"column":5},"generated":{"line":88,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":330,"column":5},"generated":{"line":88,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":331,"column":1},"generated":{"line":89,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":285,"column":4},"generated":{"line":89,"column":3}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":333,"column":0},"generated":{"line":90,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":334,"column":10},"generated":{"line":92,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":334,"column":10},"generated":{"line":92,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":334,"column":10},"generated":{"line":92,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":2},"generated":{"line":93,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":6},"generated":{"line":93,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":16},"generated":{"line":93,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":17},"generated":{"line":93,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":23},"generated":{"line":93,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":93,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":2},"generated":{"line":93,"column":35}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":2},"generated":{"line":94,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":94,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":94,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":94,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":94,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":25},"generated":{"line":94,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":335,"column":2},"generated":{"line":94,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":336,"column":4},"generated":{"line":96,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":336,"column":11},"generated":{"line":96,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":336,"column":11},"generated":{"line":96,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":336,"column":21},"generated":{"line":96,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":337,"column":3},"generated":{"line":97,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":337,"column":3},"generated":{"line":97,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":337,"column":3},"generated":{"line":97,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":338,"column":2},"generated":{"line":98,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":339,"column":4},"generated":{"line":100,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":339,"column":8},"generated":{"line":100,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":339,"column":8},"generated":{"line":100,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":339,"column":8},"generated":{"line":100,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":340,"column":6},"generated":{"line":101,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":34}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":40}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":45}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":5},"generated":{"line":102,"column":46}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":341,"column":6},"generated":{"line":103,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":342,"column":6},"generated":{"line":103,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":342,"column":6},"generated":{"line":103,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":6},"generated":{"line":104,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":6},"generated":{"line":104,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":13},"generated":{"line":104,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":13},"generated":{"line":104,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":6},"generated":{"line":104,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":23},"generated":{"line":104,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":343,"column":6},"generated":{"line":104,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":344,"column":5},"generated":{"line":105,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":344,"column":5},"generated":{"line":105,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":344,"column":5},"generated":{"line":105,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":345,"column":3},"generated":{"line":106,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":346,"column":4},"generated":{"line":107,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":10}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":347,"column":3},"generated":{"line":108,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":348,"column":2},"generated":{"line":109,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":349,"column":4},"generated":{"line":111,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":349,"column":8},"generated":{"line":111,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":4},"generated":{"line":112,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":8},"generated":{"line":112,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":8},"generated":{"line":112,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":8},"generated":{"line":112,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":8},"generated":{"line":112,"column":31}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":350,"column":4},"generated":{"line":112,"column":32}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":351,"column":6},"generated":{"line":114,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":34}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":40}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":45}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":5},"generated":{"line":115,"column":46}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":352,"column":6},"generated":{"line":116,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":353,"column":6},"generated":{"line":116,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":353,"column":6},"generated":{"line":116,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":6},"generated":{"line":117,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":6},"generated":{"line":117,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":13},"generated":{"line":117,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":13},"generated":{"line":117,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":6},"generated":{"line":117,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":23},"generated":{"line":117,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":354,"column":6},"generated":{"line":117,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":355,"column":5},"generated":{"line":118,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":355,"column":5},"generated":{"line":118,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":355,"column":5},"generated":{"line":118,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":356,"column":4},"generated":{"line":119,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":357,"column":6},"generated":{"line":121,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":357,"column":6},"generated":{"line":121,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":357,"column":17},"generated":{"line":121,"column":26}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":358,"column":6},"generated":{"line":122,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":358,"column":6},"generated":{"line":122,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":358,"column":13},"generated":{"line":122,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":358,"column":13},"generated":{"line":122,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":358,"column":6},"generated":{"line":122,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":359,"column":5},"generated":{"line":123,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":359,"column":5},"generated":{"line":123,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":359,"column":5},"generated":{"line":123,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":360,"column":4},"generated":{"line":124,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":361,"column":6},"generated":{"line":126,"column":8}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":361,"column":13},"generated":{"line":126,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":361,"column":13},"generated":{"line":126,"column":19}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":361,"column":23},"generated":{"line":126,"column":27}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":362,"column":5},"generated":{"line":127,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":362,"column":5},"generated":{"line":127,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":362,"column":5},"generated":{"line":127,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":363,"column":3},"generated":{"line":128,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":364,"column":2},"generated":{"line":129,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":365,"column":2},"generated":{"line":131,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":365,"column":6},"generated":{"line":131,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":365,"column":2},"generated":{"line":131,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":366,"column":4},"generated":{"line":133,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":32}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":33}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":38}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":39}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":44}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":3},"generated":{"line":134,"column":45}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":367,"column":4},"generated":{"line":135,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":368,"column":4},"generated":{"line":135,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":368,"column":4},"generated":{"line":135,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":4},"generated":{"line":136,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":4},"generated":{"line":136,"column":4}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":11},"generated":{"line":136,"column":14}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":11},"generated":{"line":136,"column":15}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":4},"generated":{"line":136,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":21},"generated":{"line":136,"column":21}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":369,"column":4},"generated":{"line":136,"column":24}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":370,"column":3},"generated":{"line":137,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":370,"column":3},"generated":{"line":137,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":370,"column":3},"generated":{"line":137,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":371,"column":2},"generated":{"line":138,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":372,"column":4},"generated":{"line":140,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":372,"column":11},"generated":{"line":140,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":372,"column":11},"generated":{"line":140,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":372,"column":21},"generated":{"line":140,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":373,"column":3},"generated":{"line":141,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":373,"column":3},"generated":{"line":141,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":373,"column":3},"generated":{"line":141,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":374,"column":2},"generated":{"line":142,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":2},"generated":{"line":144,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":2},"generated":{"line":144,"column":2}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":6},"generated":{"line":144,"column":12}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":6},"generated":{"line":144,"column":13}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":2},"generated":{"line":144,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":17},"generated":{"line":144,"column":18}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":375,"column":2},"generated":{"line":144,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":376,"column":4},"generated":{"line":146,"column":6}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":376,"column":11},"generated":{"line":146,"column":16}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":376,"column":11},"generated":{"line":146,"column":17}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":376,"column":21},"generated":{"line":146,"column":25}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":377,"column":3},"generated":{"line":147,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":377,"column":3},"generated":{"line":147,"column":11}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":377,"column":3},"generated":{"line":147,"column":20}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":378,"column":2},"generated":{"line":148,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":0}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":9}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":14}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":22}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":23}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":28}},{"source":"../../../src/internal/observable/generate.ts","name":null,"original":{"line":379,"column":1},"generated":{"line":150,"column":29}}],"sources":{"../../../src/internal/observable/generate.ts":"import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { identity } from '../util/identity';\nimport { SchedulerAction, SchedulerLike } from '../types';\nimport { isScheduler } from '../util/isScheduler';\n\nexport type ConditionFunc<S> = (state: S) => boolean;\nexport type IterateFunc<S> = (state: S) => S;\nexport type ResultFunc<S, T> = (state: S) => T;\n\ninterface SchedulerState<T, S> {\n needIterate?: boolean;\n state: S;\n subscriber: Subscriber<T>;\n condition?: ConditionFunc<S>;\n iterate: IterateFunc<S>;\n resultSelector: ResultFunc<S, T>;\n}\n\nexport interface GenerateBaseOptions<S> {\n /**\n * Initial state.\n */\n initialState: S;\n /**\n * Condition function that accepts state and returns boolean.\n * When it returns false, the generator stops.\n * If not specified, a generator never stops.\n */\n condition?: ConditionFunc<S>;\n /**\n * Iterate function that accepts state and returns new state.\n */\n iterate: IterateFunc<S>;\n /**\n * SchedulerLike to use for generation process.\n * By default, a generator starts immediately.\n */\n scheduler?: SchedulerLike;\n}\n\nexport interface GenerateOptions<T, S> extends GenerateBaseOptions<S> {\n /**\n * Result selection function that accepts state and returns a value to emit.\n */\n resultSelector: ResultFunc<S, T>;\n}\n\n/**\n * Generates an observable sequence by running a state-driven loop\n * producing the sequence's elements, using the specified scheduler\n * to send out observer messages.\n *\n * ![](generate.png)\n *\n * @example <caption>Produces sequence of 0, 1, 2, ... 9, then completes.</caption>\n * const res = generate(0, x => x < 10, x => x + 1, x => x);\n *\n * @example <caption>Using asap scheduler, produces sequence of 2, 3, 5, then completes.</caption>\n * const res = generate(1, x => x < 5, x => * 2, x => x + 1, asap);\n *\n * @see {@link from}\n * @see {@link Observable}\n *\n * @param {S} initialState Initial state.\n * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false).\n * @param {function (state: S): S} iterate Iteration step function.\n * @param {function (state: S): T} resultSelector Selector function for results produced in the sequence. (deprecated)\n * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} on which to run the generator loop. If not provided, defaults to emit immediately.\n * @returns {Observable<T>} The generated sequence.\n */\n export function generate<T, S>(initialState: S,\n condition: ConditionFunc<S>,\n iterate: IterateFunc<S>,\n resultSelector: ResultFunc<S, T>,\n scheduler?: SchedulerLike): Observable<T>;\n\n/**\n * Generates an Observable by running a state-driven loop\n * that emits an element on each iteration.\n *\n * <span class=\"informal\">Use it instead of nexting values in a for loop.</span>\n *\n * <img src=\"./img/generate.png\" width=\"100%\">\n *\n * `generate` allows you to create stream of values generated with a loop very similar to\n * traditional for loop. First argument of `generate` is a beginning value. Second argument\n * is a function that accepts this value and tests if some condition still holds. If it does,\n * loop continues, if not, it stops. Third value is a function which takes previously defined\n * value and modifies it in some way on each iteration. Note how these three parameters\n * are direct equivalents of three expressions in regular for loop: first expression\n * initializes some state (for example numeric index), second tests if loop can make next\n * iteration (for example if index is lower than 10) and third states how defined value\n * will be modified on every step (index will be incremented by one).\n *\n * Return value of a `generate` operator is an Observable that on each loop iteration\n * emits a value. First, condition function is ran. If it returned true, Observable\n * emits currently stored value (initial value at the first iteration) and then updates\n * that value with iterate function. If at some point condition returned false, Observable\n * completes at that moment.\n *\n * Optionally you can pass fourth parameter to `generate` - a result selector function which allows you\n * to immediately map value that would normally be emitted by an Observable.\n *\n * If you find three anonymous functions in `generate` call hard to read, you can provide\n * single object to the operator instead. That object has properties: `initialState`,\n * `condition`, `iterate` and `resultSelector`, which should have respective values that you\n * would normally pass to `generate`. `resultSelector` is still optional, but that form\n * of calling `generate` allows you to omit `condition` as well. If you omit it, that means\n * condition always holds, so output Observable will never complete.\n *\n * Both forms of `generate` can optionally accept a scheduler. In case of multi-parameter call,\n * scheduler simply comes as a last argument (no matter if there is resultSelector\n * function or not). In case of single-parameter call, you can provide it as a\n * `scheduler` property on object passed to the operator. In both cases scheduler decides when\n * next iteration of the loop will happen and therefore when next value will be emitted\n * by the Observable. For example to ensure that each value is pushed to the observer\n * on separate task in event loop, you could use `async` scheduler. Note that\n * by default (when no scheduler is passed) values are simply emitted synchronously.\n *\n *\n * @example <caption>Use with condition and iterate functions.</caption>\n * const generated = generate(0, x => x < 3, x => x + 1);\n *\n * generated.subscribe(\n * value => console.log(value),\n * err => {},\n * () => console.log('Yo!')\n * );\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // \"Yo!\"\n *\n *\n * @example <caption>Use with condition, iterate and resultSelector functions.</caption>\n * const generated = generate(0, x => x < 3, x => x + 1, x => x * 1000);\n *\n * generated.subscribe(\n * value => console.log(value),\n * err => {},\n * () => console.log('Yo!')\n * );\n *\n * // Logs:\n * // 0\n * // 1000\n * // 2000\n * // \"Yo!\"\n *\n *\n * @example <caption>Use with options object.</caption>\n * const generated = generate({\n * initialState: 0,\n * condition(value) { return value < 3; },\n * iterate(value) { return value + 1; },\n * resultSelector(value) { return value * 1000; }\n * });\n *\n * generated.subscribe(\n * value => console.log(value),\n * err => {},\n * () => console.log('Yo!')\n * );\n *\n * // Logs:\n * // 0\n * // 1000\n * // 2000\n * // \"Yo!\"\n *\n * @example <caption>Use options object without condition function.</caption>\n * const generated = generate({\n * initialState: 0,\n * iterate(value) { return value + 1; },\n * resultSelector(value) { return value * 1000; }\n * });\n *\n * generated.subscribe(\n * value => console.log(value),\n * err => {},\n * () => console.log('Yo!') // This will never run.\n * );\n *\n * // Logs:\n * // 0\n * // 1000\n * // 2000\n * // 3000\n * // ...and never stops.\n *\n *\n * @see {@link from}\n * @see {@link create}\n *\n * @param {S} initialState Initial state.\n * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false).\n * @param {function (state: S): S} iterate Iteration step function.\n * @param {function (state: S): T} [resultSelector] Selector function for results produced in the sequence.\n * @param {Scheduler} [scheduler] A {@link Scheduler} on which to run the generator loop. If not provided, defaults to emitting immediately.\n * @return {Observable<T>} The generated sequence.\n */\nexport function generate<S>(initialState: S,\n condition: ConditionFunc<S>,\n iterate: IterateFunc<S>,\n scheduler?: SchedulerLike): Observable<S>;\n\n/**\n * Generates an observable sequence by running a state-driven loop\n * producing the sequence's elements, using the specified scheduler\n * to send out observer messages.\n * The overload accepts options object that might contain initial state, iterate,\n * condition and scheduler.\n *\n * ![](generate.png)\n *\n * @example <caption>Produces sequence of 0, 1, 2, ... 9, then completes.</caption>\n * const res = generate({\n * initialState: 0,\n * condition: x => x < 10,\n * iterate: x => x + 1,\n * });\n *\n * @see {@link from}\n * @see {@link Observable}\n *\n * @param {GenerateBaseOptions<S>} options Object that must contain initialState, iterate and might contain condition and scheduler.\n * @returns {Observable<S>} The generated sequence.\n */\nexport function generate<S>(options: GenerateBaseOptions<S>): Observable<S>;\n\n/**\n * Generates an observable sequence by running a state-driven loop\n * producing the sequence's elements, using the specified scheduler\n * to send out observer messages.\n * The overload accepts options object that might contain initial state, iterate,\n * condition, result selector and scheduler.\n *\n * ![](generate.png)\n *\n * @example <caption>Produces sequence of 0, 1, 2, ... 9, then completes.</caption>\n * const res = generate({\n * initialState: 0,\n * condition: x => x < 10,\n * iterate: x => x + 1,\n * resultSelector: x => x,\n * });\n *\n * @see {@link from}\n * @see {@link Observable}\n *\n * @param {GenerateOptions<T, S>} options Object that must contain initialState, iterate, resultSelector and might contain condition and scheduler.\n * @returns {Observable<T>} The generated sequence.\n */\nexport function generate<T, S>(options: GenerateOptions<T, S>): Observable<T>;\n\nexport function generate<T, S>(initialStateOrOptions: S | GenerateOptions<T, S>,\n condition?: ConditionFunc<S>,\n iterate?: IterateFunc<S>,\n resultSelectorOrObservable?: (ResultFunc<S, T>) | SchedulerLike,\n scheduler?: SchedulerLike): Observable<T> {\n\n let resultSelector: ResultFunc<S, T>;\n let initialState: S;\n\n if (arguments.length == 1) {\n const options = initialStateOrOptions as GenerateOptions<T, S>;\n initialState = options.initialState;\n condition = options.condition;\n iterate = options.iterate;\n resultSelector = options.resultSelector || identity as ResultFunc<S, T>;\n scheduler = options.scheduler;\n } else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {\n initialState = initialStateOrOptions as S;\n resultSelector = identity as ResultFunc<S, T>;\n scheduler = resultSelectorOrObservable as SchedulerLike;\n } else {\n initialState = initialStateOrOptions as S;\n resultSelector = resultSelectorOrObservable as ResultFunc<S, T>;\n }\n\n return new Observable<T>(subscriber => {\n let state = initialState;\n if (scheduler) {\n return scheduler.schedule<SchedulerState<T, S>>(dispatch, 0, {\n subscriber,\n iterate,\n condition,\n resultSelector,\n state\n });\n }\n\n do {\n if (condition) {\n let conditionResult: boolean;\n try {\n conditionResult = condition(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n break;\n }\n }\n let value: T;\n try {\n value = resultSelector(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n break;\n }\n try {\n state = iterate(state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } while (true);\n\n return undefined;\n });\n}\n\nfunction dispatch<T, S>(this: SchedulerAction<SchedulerState<T, S>>, state: SchedulerState<T, S>) {\n const { subscriber, condition } = state;\n if (subscriber.closed) {\n return undefined;\n }\n if (state.needIterate) {\n try {\n state.state = state.iterate(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } else {\n state.needIterate = true;\n }\n if (condition) {\n let conditionResult: boolean;\n try {\n conditionResult = condition(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n }\n let value: T;\n try {\n value = state.resultSelector(state.state);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return undefined;\n }\n return this.schedule(state);\n}\n"},"lineCount":null}},"hash":"22ebbe752213405a2dbed3d00c18f79a","cacheData":{"env":{}}}