Initial commit of files
This commit is contained in:
1
node_modules/rxjs/dist/esm/internal/operators/scan.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/scan.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/internal/operators/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqFhD,MAAM,UAAU,IAAI,CAAU,WAA2D,EAAE,IAAQ;IAMjG,OAAO,OAAO,CAAC,aAAa,CAAC,WAAW,EAAE,IAAS,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
||||||
22
node_modules/rxjs/dist/esm/internal/operators/scanInternals.js
generated
vendored
Normal file
22
node_modules/rxjs/dist/esm/internal/operators/scanInternals.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
||||||
|
return (source, subscriber) => {
|
||||||
|
let hasState = hasSeed;
|
||||||
|
let state = seed;
|
||||||
|
let index = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
const i = index++;
|
||||||
|
state = hasState
|
||||||
|
?
|
||||||
|
accumulator(state, value, i)
|
||||||
|
:
|
||||||
|
((hasState = true), value);
|
||||||
|
emitOnNext && subscriber.next(state);
|
||||||
|
}, emitBeforeComplete &&
|
||||||
|
(() => {
|
||||||
|
hasState && subscriber.next(state);
|
||||||
|
subscriber.complete();
|
||||||
|
})));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scanInternals.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/scanInternals.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/scanInternals.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scanInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/scanInternals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAWhE,MAAM,UAAU,aAAa,CAC3B,WAA2D,EAC3D,IAAO,EACP,OAAgB,EAChB,UAAmB,EACnB,kBAAqC;IAErC,OAAO,CAAC,MAAqB,EAAE,UAA2B,EAAE,EAAE;QAI5D,IAAI,QAAQ,GAAG,OAAO,CAAC;QAIvB,IAAI,KAAK,GAAQ,IAAI,CAAC;QAEtB,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YAER,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAElB,KAAK,GAAG,QAAQ;gBACd,CAAC;oBACC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9B,CAAC;oBAGC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;YAG/B,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,EAGD,kBAAkB;YAChB,CAAC,GAAG,EAAE;gBACJ,QAAQ,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACnC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CAAC,CACL,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
||||||
39
node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js
generated
vendored
Normal file
39
node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
export function sequenceEqual(compareTo, comparator = (a, b) => a === b) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
const aState = createState();
|
||||||
|
const bState = createState();
|
||||||
|
const emit = (isEqual) => {
|
||||||
|
subscriber.next(isEqual);
|
||||||
|
subscriber.complete();
|
||||||
|
};
|
||||||
|
const createSubscriber = (selfState, otherState) => {
|
||||||
|
const sequenceEqualSubscriber = createOperatorSubscriber(subscriber, (a) => {
|
||||||
|
const { buffer, complete } = otherState;
|
||||||
|
if (buffer.length === 0) {
|
||||||
|
complete ? emit(false) : selfState.buffer.push(a);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
!comparator(a, buffer.shift()) && emit(false);
|
||||||
|
}
|
||||||
|
}, () => {
|
||||||
|
selfState.complete = true;
|
||||||
|
const { complete, buffer } = otherState;
|
||||||
|
complete && emit(buffer.length === 0);
|
||||||
|
sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe();
|
||||||
|
});
|
||||||
|
return sequenceEqualSubscriber;
|
||||||
|
};
|
||||||
|
source.subscribe(createSubscriber(aState, bState));
|
||||||
|
innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function createState() {
|
||||||
|
return {
|
||||||
|
buffer: [],
|
||||||
|
complete: false,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=sequenceEqual.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"sequenceEqual.js","sourceRoot":"","sources":["../../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;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,CAAC;gBAEtC,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,WAAW,EAAE,CAAC;YACzC,CAAC,CACF,CAAC;YAEF,OAAO,uBAAuB,CAAC;QACjC,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,SAAS,WAAW;IAClB,OAAO;QACL,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC"}
|
||||||
79
node_modules/rxjs/dist/esm/internal/operators/share.js
generated
vendored
Normal file
79
node_modules/rxjs/dist/esm/internal/operators/share.js
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { SafeSubscriber } from '../Subscriber';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
export function share(options = {}) {
|
||||||
|
const { connector = () => new Subject(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;
|
||||||
|
return (wrapperSource) => {
|
||||||
|
let connection;
|
||||||
|
let resetConnection;
|
||||||
|
let subject;
|
||||||
|
let refCount = 0;
|
||||||
|
let hasCompleted = false;
|
||||||
|
let hasErrored = false;
|
||||||
|
const cancelReset = () => {
|
||||||
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
||||||
|
resetConnection = undefined;
|
||||||
|
};
|
||||||
|
const reset = () => {
|
||||||
|
cancelReset();
|
||||||
|
connection = subject = undefined;
|
||||||
|
hasCompleted = hasErrored = false;
|
||||||
|
};
|
||||||
|
const resetAndUnsubscribe = () => {
|
||||||
|
const conn = connection;
|
||||||
|
reset();
|
||||||
|
conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
|
||||||
|
};
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
refCount++;
|
||||||
|
if (!hasErrored && !hasCompleted) {
|
||||||
|
cancelReset();
|
||||||
|
}
|
||||||
|
const dest = (subject = subject !== null && subject !== void 0 ? subject : connector());
|
||||||
|
subscriber.add(() => {
|
||||||
|
refCount--;
|
||||||
|
if (refCount === 0 && !hasErrored && !hasCompleted) {
|
||||||
|
resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
dest.subscribe(subscriber);
|
||||||
|
if (!connection &&
|
||||||
|
refCount > 0) {
|
||||||
|
connection = new SafeSubscriber({
|
||||||
|
next: (value) => dest.next(value),
|
||||||
|
error: (err) => {
|
||||||
|
hasErrored = true;
|
||||||
|
cancelReset();
|
||||||
|
resetConnection = handleReset(reset, resetOnError, err);
|
||||||
|
dest.error(err);
|
||||||
|
},
|
||||||
|
complete: () => {
|
||||||
|
hasCompleted = true;
|
||||||
|
cancelReset();
|
||||||
|
resetConnection = handleReset(reset, resetOnComplete);
|
||||||
|
dest.complete();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
innerFrom(source).subscribe(connection);
|
||||||
|
}
|
||||||
|
})(wrapperSource);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function handleReset(reset, on, ...args) {
|
||||||
|
if (on === true) {
|
||||||
|
reset();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (on === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const onSubscriber = new SafeSubscriber({
|
||||||
|
next: () => {
|
||||||
|
onSubscriber.unsubscribe();
|
||||||
|
reset();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return innerFrom(on(...args)).subscribe(onSubscriber);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=share.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/share.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/share.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/internal/operators/share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAwIvC,MAAM,UAAU,KAAK,CAAI,UAA0B,EAAE;IACnD,MAAM,EAAE,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,EAAK,EAAE,YAAY,GAAG,IAAI,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IAUhI,OAAO,CAAC,aAAa,EAAE,EAAE;QACvB,IAAI,UAAyC,CAAC;QAC9C,IAAI,eAAyC,CAAC;QAC9C,IAAI,OAAmC,CAAC;QACxC,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,MAAM,WAAW,GAAG,GAAG,EAAE;YACvB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,EAAE,CAAC;YAC/B,eAAe,GAAG,SAAS,CAAC;QAC9B,CAAC,CAAC;QAGF,MAAM,KAAK,GAAG,GAAG,EAAE;YACjB,WAAW,EAAE,CAAC;YACd,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;YACjC,YAAY,GAAG,UAAU,GAAG,KAAK,CAAC;QACpC,CAAC,CAAC;QACF,MAAM,mBAAmB,GAAG,GAAG,EAAE;YAG/B,MAAM,IAAI,GAAG,UAAU,CAAC;YACxB,KAAK,EAAE,CAAC;YACR,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,EAAE,CA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AAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAClB,KAAiB,EACjB,EAAoD,EACpD,GAAG,IAAO;IAEV,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,KAAK,EAAE,CAAC;QACR,OAAO;KACR;IAED,IAAI,EAAE,KAAK,KAAK,EAAE;QAChB,OAAO;KACR;IAED,MAAM,YAAY,GAAG,IAAI,cAAc,CAAC;QACtC,IAAI,EAAE,GAAG,EAAE;YACT,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,KAAK,EAAE,CAAC;QACV,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AACxD,CAAC"}
|
||||||
19
node_modules/rxjs/dist/esm/internal/operators/shareReplay.js
generated
vendored
Normal file
19
node_modules/rxjs/dist/esm/internal/operators/shareReplay.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { ReplaySubject } from '../ReplaySubject';
|
||||||
|
import { share } from './share';
|
||||||
|
export function shareReplay(configOrBufferSize, windowTime, scheduler) {
|
||||||
|
let bufferSize;
|
||||||
|
let refCount = false;
|
||||||
|
if (configOrBufferSize && typeof configOrBufferSize === 'object') {
|
||||||
|
({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity);
|
||||||
|
}
|
||||||
|
return share({
|
||||||
|
connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),
|
||||||
|
resetOnError: true,
|
||||||
|
resetOnComplete: false,
|
||||||
|
resetOnRefCountZero: refCount,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=shareReplay.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/shareReplay.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/shareReplay.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"shareReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/shareReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAwJhC,MAAM,UAAU,WAAW,CACzB,kBAA+C,EAC/C,UAAmB,EACnB,SAAyB;IAEzB,IAAI,UAAkB,CAAC;IACvB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE;QAChE,CAAC,EAAE,UAAU,GAAG,QAAQ,EAAE,UAAU,GAAG,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,kBAAkB,CAAC,CAAC;KACtG;SAAM;QACL,UAAU,GAAG,CAAC,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,QAAQ,CAAW,CAAC;KACzD;IACD,OAAO,KAAK,CAAI;QACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;QACrE,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,mBAAmB,EAAE,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC"}
|
||||||
30
node_modules/rxjs/dist/esm/internal/operators/single.js
generated
vendored
Normal file
30
node_modules/rxjs/dist/esm/internal/operators/single.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { EmptyError } from '../util/EmptyError';
|
||||||
|
import { SequenceError } from '../util/SequenceError';
|
||||||
|
import { NotFoundError } from '../util/NotFoundError';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function single(predicate) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let hasValue = false;
|
||||||
|
let singleValue;
|
||||||
|
let seenValue = false;
|
||||||
|
let index = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
seenValue = true;
|
||||||
|
if (!predicate || predicate(value, index++, source)) {
|
||||||
|
hasValue && subscriber.error(new SequenceError('Too many matching values'));
|
||||||
|
hasValue = true;
|
||||||
|
singleValue = value;
|
||||||
|
}
|
||||||
|
}, () => {
|
||||||
|
if (hasValue) {
|
||||||
|
subscriber.next(singleValue);
|
||||||
|
subscriber.complete();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError());
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=single.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/single.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/single.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../../src/internal/operators/single.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAqFhE,MAAM,UAAU,MAAM,CAAI,SAAuE;IAC/F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,WAAc,CAAC;QACnB,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACnD,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;gBAC5E,QAAQ,GAAG,IAAI,CAAC;gBAChB,WAAW,GAAG,KAAK,CAAC;aACrB;QACH,CAAC,EACD,GAAG,EAAE;YACH,IAAI,QAAQ,EAAE;gBACZ,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBACL,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;aAC1F;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
5
node_modules/rxjs/dist/esm/internal/operators/skip.js
generated
vendored
Normal file
5
node_modules/rxjs/dist/esm/internal/operators/skip.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { filter } from './filter';
|
||||||
|
export function skip(count) {
|
||||||
|
return filter((_, index) => count <= index);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=skip.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/skip.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/skip.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../../src/internal/operators/skip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAmClC,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;AAC9C,CAAC"}
|
||||||
28
node_modules/rxjs/dist/esm/internal/operators/skipLast.js
generated
vendored
Normal file
28
node_modules/rxjs/dist/esm/internal/operators/skipLast.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import { identity } from '../util/identity';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function skipLast(skipCount) {
|
||||||
|
return skipCount <= 0
|
||||||
|
?
|
||||||
|
identity
|
||||||
|
: operate((source, subscriber) => {
|
||||||
|
let ring = new Array(skipCount);
|
||||||
|
let seen = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
const valueIndex = seen++;
|
||||||
|
if (valueIndex < skipCount) {
|
||||||
|
ring[valueIndex] = value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const index = valueIndex % skipCount;
|
||||||
|
const oldValue = ring[index];
|
||||||
|
ring[index] = value;
|
||||||
|
subscriber.next(oldValue);
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
return () => {
|
||||||
|
ring = null;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=skipLast.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/skipLast.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/skipLast.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"skipLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,QAAQ,CAAI,SAAiB;IAC3C,OAAO,SAAS,IAAI,CAAC;QACnB,CAAC;YACC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAI7B,IAAI,IAAI,GAAQ,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAGrC,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;gBAK7C,MAAM,UAAU,GAAG,IAAI,EAAE,CAAC;gBAC1B,IAAI,UAAU,GAAG,SAAS,EAAE;oBAI1B,IAAI,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;iBAC1B;qBAAM;oBAIL,MAAM,KAAK,GAAG,UAAU,GAAG,SAAS,CAAC;oBAGrC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBAKpB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC3B;YACH,CAAC,CAAC,CACH,CAAC;YAEF,OAAO,GAAG,EAAE;gBAEV,IAAI,GAAG,IAAK,CAAC;YACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"}
|
||||||
16
node_modules/rxjs/dist/esm/internal/operators/skipUntil.js
generated
vendored
Normal file
16
node_modules/rxjs/dist/esm/internal/operators/skipUntil.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { noop } from '../util/noop';
|
||||||
|
export function skipUntil(notifier) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let taking = false;
|
||||||
|
const skipSubscriber = createOperatorSubscriber(subscriber, () => {
|
||||||
|
skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();
|
||||||
|
taking = true;
|
||||||
|
}, noop);
|
||||||
|
innerFrom(notifier).subscribe(skipSubscriber);
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value)));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=skipUntil.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/skipUntil.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/skipUntil.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"skipUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AA+CpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,MAAM,cAAc,GAAG,wBAAwB,CAC7C,UAAU,EACV,GAAG,EAAE;YACH,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,EAAE,CAAC;YAC9B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC,EACD,IAAI,CACL,CAAC;QAEF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAE9C,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
10
node_modules/rxjs/dist/esm/internal/operators/skipWhile.js
generated
vendored
Normal file
10
node_modules/rxjs/dist/esm/internal/operators/skipWhile.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function skipWhile(predicate) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let taking = false;
|
||||||
|
let index = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=skipWhile.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/skipWhile.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/skipWhile.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"skipWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiDhE,MAAM,UAAU,SAAS,CAAI,SAA+C;IAC1E,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
10
node_modules/rxjs/dist/esm/internal/operators/startWith.js
generated
vendored
Normal file
10
node_modules/rxjs/dist/esm/internal/operators/startWith.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { concat } from '../observable/concat';
|
||||||
|
import { popScheduler } from '../util/args';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
export function startWith(...values) {
|
||||||
|
const scheduler = popScheduler(values);
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
(scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=startWith.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/startWith.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/startWith.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"startWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuDvC,MAAM,UAAU,SAAS,CAAO,GAAG,MAAW;IAC5C,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAIpC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
7
node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js
generated
vendored
Normal file
7
node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
export function subscribeOn(scheduler, delay = 0) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=subscribeOn.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"subscribeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA6DvC,MAAM,UAAU,WAAW,CAAI,SAAwB,EAAE,QAAgB,CAAC;IACxE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
6
node_modules/rxjs/dist/esm/internal/operators/switchAll.js
generated
vendored
Normal file
6
node_modules/rxjs/dist/esm/internal/operators/switchAll.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { switchMap } from './switchMap';
|
||||||
|
import { identity } from '../util/identity';
|
||||||
|
export function switchAll() {
|
||||||
|
return switchMap(identity);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=switchAll.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/switchAll.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/switchAll.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"switchAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4D5C,MAAM,UAAU,SAAS;IACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"}
|
||||||
24
node_modules/rxjs/dist/esm/internal/operators/switchMap.js
generated
vendored
Normal file
24
node_modules/rxjs/dist/esm/internal/operators/switchMap.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function switchMap(project, resultSelector) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let innerSubscriber = null;
|
||||||
|
let index = 0;
|
||||||
|
let isComplete = false;
|
||||||
|
const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
|
||||||
|
let innerIndex = 0;
|
||||||
|
const outerIndex = index++;
|
||||||
|
innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {
|
||||||
|
innerSubscriber = null;
|
||||||
|
checkComplete();
|
||||||
|
})));
|
||||||
|
}, () => {
|
||||||
|
isComplete = true;
|
||||||
|
checkComplete();
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=switchMap.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/switchMap.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/switchMap.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"switchMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAgFhE,MAAM,UAAU,SAAS,CACvB,OAAuC,EACvC,cAA6G;IAE7G,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,eAAe,GAA0C,IAAI,CAAC;QAClE,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,IAAI,UAAU,GAAG,KAAK,CAAC;QAIvB,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,UAAU,IAAI,CAAC,eAAe,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QAEpF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YAER,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,EAAE,CAAC;YAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;YACnB,MAAM,UAAU,GAAG,KAAK,EAAE,CAAC;YAE3B,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAC7C,CAAC,eAAe,GAAG,wBAAwB,CACzC,UAAU,EAIV,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAC1H,GAAG,EAAE;gBAIH,eAAe,GAAG,IAAK,CAAC;gBACxB,aAAa,EAAE,CAAC;YAClB,CAAC,CACF,CAAC,CACH,CAAC;QACJ,CAAC,EACD,GAAG,EAAE;YACH,UAAU,GAAG,IAAI,CAAC;YAClB,aAAa,EAAE,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
6
node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js
generated
vendored
Normal file
6
node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { switchMap } from './switchMap';
|
||||||
|
import { isFunction } from '../util/isFunction';
|
||||||
|
export function switchMapTo(innerObservable, resultSelector) {
|
||||||
|
return isFunction(resultSelector) ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=switchMapTo.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"switchMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAwDhD,MAAM,UAAU,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAC1H,CAAC"}
|
||||||
12
node_modules/rxjs/dist/esm/internal/operators/switchScan.js
generated
vendored
Normal file
12
node_modules/rxjs/dist/esm/internal/operators/switchScan.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { switchMap } from './switchMap';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
export function switchScan(accumulator, seed) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let state = seed;
|
||||||
|
switchMap((value, index) => accumulator(state, value, index), (_, innerValue) => ((state = innerValue), innerValue))(source).subscribe(subscriber);
|
||||||
|
return () => {
|
||||||
|
state = null;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=switchScan.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/switchScan.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/switchScan.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"switchScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAqBvC,MAAM,UAAU,UAAU,CACxB,WAAmD,EACnD,IAAO;IAEP,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAGpC,IAAI,KAAK,GAAG,IAAI,CAAC;QAKjB,SAAS,CAGP,CAAC,KAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAGrD,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,UAAU,CAAC,CACtD,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAEhC,OAAO,GAAG,EAAE;YAEV,KAAK,GAAG,IAAK,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
20
node_modules/rxjs/dist/esm/internal/operators/take.js
generated
vendored
Normal file
20
node_modules/rxjs/dist/esm/internal/operators/take.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { EMPTY } from '../observable/empty';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function take(count) {
|
||||||
|
return count <= 0
|
||||||
|
?
|
||||||
|
() => EMPTY
|
||||||
|
: operate((source, subscriber) => {
|
||||||
|
let seen = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
if (++seen <= count) {
|
||||||
|
subscriber.next(value);
|
||||||
|
if (count <= seen) {
|
||||||
|
subscriber.complete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=take.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/take.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/take.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../../src/internal/operators/take.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC;YACC,GAAG,EAAE,CAAC,KAAK;QACb,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAC7B,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;gBAI7C,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE;oBACnB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIvB,IAAI,KAAK,IAAI,IAAI,EAAE;wBACjB,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;iBACF;YACH,CAAC,CAAC,CACH,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"}
|
||||||
22
node_modules/rxjs/dist/esm/internal/operators/takeLast.js
generated
vendored
Normal file
22
node_modules/rxjs/dist/esm/internal/operators/takeLast.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import { EMPTY } from '../observable/empty';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function takeLast(count) {
|
||||||
|
return count <= 0
|
||||||
|
? () => EMPTY
|
||||||
|
: operate((source, subscriber) => {
|
||||||
|
let buffer = [];
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
buffer.push(value);
|
||||||
|
count < buffer.length && buffer.shift();
|
||||||
|
}, () => {
|
||||||
|
for (const value of buffer) {
|
||||||
|
subscriber.next(value);
|
||||||
|
}
|
||||||
|
subscriber.complete();
|
||||||
|
}, undefined, () => {
|
||||||
|
buffer = null;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=takeLast.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/takeLast.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/takeLast.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"takeLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeLast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,QAAQ,CAAI,KAAa;IACvC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK;QACb,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAK7B,IAAI,MAAM,GAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;gBAER,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAGnB,KAAK,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC1C,CAAC,EACD,GAAG,EAAE;gBAGH,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;oBAC1B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EAED,SAAS,EACT,GAAG,EAAE;gBAEH,MAAM,GAAG,IAAK,CAAC;YACjB,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"}
|
||||||
11
node_modules/rxjs/dist/esm/internal/operators/takeUntil.js
generated
vendored
Normal file
11
node_modules/rxjs/dist/esm/internal/operators/takeUntil.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { noop } from '../util/noop';
|
||||||
|
export function takeUntil(notifier) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));
|
||||||
|
!subscriber.closed && source.subscribe(subscriber);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=takeUntil.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAwCpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACvG,CAAC,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
13
node_modules/rxjs/dist/esm/internal/operators/takeWhile.js
generated
vendored
Normal file
13
node_modules/rxjs/dist/esm/internal/operators/takeWhile.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function takeWhile(predicate, inclusive = false) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let index = 0;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
const result = predicate(value, index++);
|
||||||
|
(result || inclusive) && subscriber.next(value);
|
||||||
|
!result && subscriber.complete();
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=takeWhile.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/takeWhile.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/takeWhile.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"takeWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoDhE,MAAM,UAAU,SAAS,CAAI,SAA+C,EAAE,SAAS,GAAG,KAAK;IAC7F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YACzC,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
40
node_modules/rxjs/dist/esm/internal/operators/tap.js
generated
vendored
Normal file
40
node_modules/rxjs/dist/esm/internal/operators/tap.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import { isFunction } from '../util/isFunction';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { identity } from '../util/identity';
|
||||||
|
export function tap(observerOrNext, error, complete) {
|
||||||
|
const tapObserver = isFunction(observerOrNext) || error || complete
|
||||||
|
?
|
||||||
|
{ next: observerOrNext, error, complete }
|
||||||
|
: observerOrNext;
|
||||||
|
return tapObserver
|
||||||
|
? operate((source, subscriber) => {
|
||||||
|
var _a;
|
||||||
|
(_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
||||||
|
let isUnsub = true;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
var _a;
|
||||||
|
(_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);
|
||||||
|
subscriber.next(value);
|
||||||
|
}, () => {
|
||||||
|
var _a;
|
||||||
|
isUnsub = false;
|
||||||
|
(_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
||||||
|
subscriber.complete();
|
||||||
|
}, (err) => {
|
||||||
|
var _a;
|
||||||
|
isUnsub = false;
|
||||||
|
(_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);
|
||||||
|
subscriber.error(err);
|
||||||
|
}, () => {
|
||||||
|
var _a, _b;
|
||||||
|
if (isUnsub) {
|
||||||
|
(_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
||||||
|
}
|
||||||
|
(_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
|
||||||
|
}));
|
||||||
|
})
|
||||||
|
:
|
||||||
|
identity;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=tap.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/tap.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/tap.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../../src/internal/operators/tap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAkK5C,MAAM,UAAU,GAAG,CACjB,cAAsE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al/operators/throttle.js
generated
vendored
Normal file
43
node_modules/rxjs/dist/esm/internal/operators/throttle.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
export function throttle(durationSelector, config) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
const { leading = true, trailing = false } = config !== null && config !== void 0 ? config : {};
|
||||||
|
let hasValue = false;
|
||||||
|
let sendValue = null;
|
||||||
|
let throttled = null;
|
||||||
|
let isComplete = false;
|
||||||
|
const endThrottling = () => {
|
||||||
|
throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();
|
||||||
|
throttled = null;
|
||||||
|
if (trailing) {
|
||||||
|
send();
|
||||||
|
isComplete && subscriber.complete();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const cleanupThrottling = () => {
|
||||||
|
throttled = null;
|
||||||
|
isComplete && subscriber.complete();
|
||||||
|
};
|
||||||
|
const startThrottle = (value) => (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));
|
||||||
|
const send = () => {
|
||||||
|
if (hasValue) {
|
||||||
|
hasValue = false;
|
||||||
|
const value = sendValue;
|
||||||
|
sendValue = null;
|
||||||
|
subscriber.next(value);
|
||||||
|
!isComplete && startThrottle(value);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
hasValue = true;
|
||||||
|
sendValue = value;
|
||||||
|
!(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
|
||||||
|
}, () => {
|
||||||
|
isComplete = true;
|
||||||
|
!(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=throttle.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/throttle.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/throttle.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8EpD,MAAM,UAAU,QAAQ,CAAI,gBAAoD,EAAE,MAAuB;IACvG,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;QAC1D,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,IAAI,SAAS,GAAwB,IAAI,CAAC;QAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,MAAM,aAAa,GAAG,GAAG,EAAE;YACzB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,EAAE,CAAC;YACzB,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,QAAQ,EAAE;gBACZ,IAAI,EAAE,CAAC;gBACP,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,MAAM,iBAAiB,GAAG,GAAG,EAAE;YAC7B,SAAS,GAAG,IAAI,CAAC;YACjB,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,MAAM,aAAa,GAAG,CAAC,KAAQ,EAAE,EAAE,CACjC,CAAC,SAAS,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAErI,MAAM,IAAI,GAAG,GAAG,EAAE;YAChB,IAAI,QAAQ,EAAE;gBAIZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,MAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBAEjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,CAAC,UAAU,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EAMV,CAAC,KAAK,EAAE,EAAE;YACR,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAClB,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,EACD,GAAG,EAAE;YACH,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,QAAQ,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrF,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
8
node_modules/rxjs/dist/esm/internal/operators/throttleTime.js
generated
vendored
Normal file
8
node_modules/rxjs/dist/esm/internal/operators/throttleTime.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { asyncScheduler } from '../scheduler/async';
|
||||||
|
import { throttle } from './throttle';
|
||||||
|
import { timer } from '../observable/timer';
|
||||||
|
export function throttleTime(duration, scheduler = asyncScheduler, config) {
|
||||||
|
const duration$ = timer(duration, scheduler);
|
||||||
|
return throttle(() => duration$, config);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=throttleTime.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/throttleTime.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/throttleTime.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"throttleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttleTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAmD5C,MAAM,UAAU,YAAY,CAC1B,QAAgB,EAChB,YAA2B,cAAc,EACzC,MAAuB;IAEvB,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC"}
|
||||||
16
node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js
generated
vendored
Normal file
16
node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { EmptyError } from '../util/EmptyError';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function throwIfEmpty(errorFactory = defaultErrorFactory) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let hasValue = false;
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
hasValue = true;
|
||||||
|
subscriber.next(value);
|
||||||
|
}, () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function defaultErrorFactory() {
|
||||||
|
return new EmptyError();
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=throwIfEmpty.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"throwIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsChE,MAAM,UAAU,YAAY,CAAI,eAA0B,mBAAmB;IAC3E,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAC5E,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,IAAI,UAAU,EAAE,CAAC;AAC1B,CAAC"}
|
||||||
21
node_modules/rxjs/dist/esm/internal/operators/timeInterval.js
generated
vendored
Normal file
21
node_modules/rxjs/dist/esm/internal/operators/timeInterval.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import { asyncScheduler } from '../scheduler/async';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function timeInterval(scheduler = asyncScheduler) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let last = scheduler.now();
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
const now = scheduler.now();
|
||||||
|
const interval = now - last;
|
||||||
|
last = now;
|
||||||
|
subscriber.next(new TimeInterval(value, interval));
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export class TimeInterval {
|
||||||
|
constructor(value, interval) {
|
||||||
|
this.value = value;
|
||||||
|
this.interval = interval;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=timeInterval.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/timeInterval.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/timeInterval.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"timeInterval.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,YAAY,CAAI,YAA2B,cAAc;IACvE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;YAC5B,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,GAAG,CAAC;YACX,UAAU,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAKD,MAAM,OAAO,YAAY;IAIvB,YAAmB,KAAQ,EAAS,QAAgB;QAAjC,UAAK,GAAL,KAAK,CAAG;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;CACzD"}
|
||||||
56
node_modules/rxjs/dist/esm/internal/operators/timeout.js
generated
vendored
Normal file
56
node_modules/rxjs/dist/esm/internal/operators/timeout.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import { asyncScheduler } from '../scheduler/async';
|
||||||
|
import { isValidDate } from '../util/isDate';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { createErrorClass } from '../util/createErrorClass';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { executeSchedule } from '../util/executeSchedule';
|
||||||
|
export const TimeoutError = createErrorClass((_super) => function TimeoutErrorImpl(info = null) {
|
||||||
|
_super(this);
|
||||||
|
this.message = 'Timeout has occurred';
|
||||||
|
this.name = 'TimeoutError';
|
||||||
|
this.info = info;
|
||||||
|
});
|
||||||
|
export function timeout(config, schedulerArg) {
|
||||||
|
const { first, each, with: _with = timeoutErrorFactory, scheduler = schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler, meta = null, } = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config);
|
||||||
|
if (first == null && each == null) {
|
||||||
|
throw new TypeError('No timeout provided.');
|
||||||
|
}
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let originalSourceSubscription;
|
||||||
|
let timerSubscription;
|
||||||
|
let lastValue = null;
|
||||||
|
let seen = 0;
|
||||||
|
const startTimer = (delay) => {
|
||||||
|
timerSubscription = executeSchedule(subscriber, scheduler, () => {
|
||||||
|
try {
|
||||||
|
originalSourceSubscription.unsubscribe();
|
||||||
|
innerFrom(_with({
|
||||||
|
meta,
|
||||||
|
lastValue,
|
||||||
|
seen,
|
||||||
|
})).subscribe(subscriber);
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
subscriber.error(err);
|
||||||
|
}
|
||||||
|
}, delay);
|
||||||
|
};
|
||||||
|
originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
|
||||||
|
seen++;
|
||||||
|
subscriber.next((lastValue = value));
|
||||||
|
each > 0 && startTimer(each);
|
||||||
|
}, undefined, undefined, () => {
|
||||||
|
if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {
|
||||||
|
timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
|
||||||
|
}
|
||||||
|
lastValue = null;
|
||||||
|
}));
|
||||||
|
!seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function timeoutErrorFactory(info) {
|
||||||
|
throw new TimeoutError(info);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=timeout.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/timeout.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/timeout.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM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AC,IAAI,CAAC,CAAC;AAC/B,CAAC"}
|
||||||
31
node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js
generated
vendored
Normal file
31
node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { async } from '../scheduler/async';
|
||||||
|
import { isValidDate } from '../util/isDate';
|
||||||
|
import { timeout } from './timeout';
|
||||||
|
export function timeoutWith(due, withObservable, scheduler) {
|
||||||
|
let first;
|
||||||
|
let each;
|
||||||
|
let _with;
|
||||||
|
scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async;
|
||||||
|
if (isValidDate(due)) {
|
||||||
|
first = due;
|
||||||
|
}
|
||||||
|
else if (typeof due === 'number') {
|
||||||
|
each = due;
|
||||||
|
}
|
||||||
|
if (withObservable) {
|
||||||
|
_with = () => withObservable;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new TypeError('No observable provided to switch to');
|
||||||
|
}
|
||||||
|
if (first == null && each == null) {
|
||||||
|
throw new TypeError('No timeout provided.');
|
||||||
|
}
|
||||||
|
return timeout({
|
||||||
|
first,
|
||||||
|
each,
|
||||||
|
scheduler,
|
||||||
|
with: _with,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=timeoutWith.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"timeoutWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EpC,MAAM,UAAU,WAAW,CACzB,GAAkB,EAClB,cAAkC,EAClC,SAAyB;IAEzB,IAAI,KAAgC,CAAC;IACrC,IAAI,IAAwB,CAAC;IAC7B,IAAI,KAA+B,CAAC;IACpC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,KAAK,CAAC;IAE/B,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,IAAI,GAAG,GAAG,CAAC;KACZ;IAED,IAAI,cAAc,EAAE;QAClB,KAAK,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC;KAC9B;SAAM;QACL,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC5D;IAED,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;QAEjC,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;KAC7C;IAED,OAAO,OAAO,CAAwB;QACpC,KAAK;QACL,IAAI;QACJ,SAAS;QACT,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC;AACL,CAAC"}
|
||||||
6
node_modules/rxjs/dist/esm/internal/operators/timestamp.js
generated
vendored
Normal file
6
node_modules/rxjs/dist/esm/internal/operators/timestamp.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { dateTimestampProvider } from '../scheduler/dateTimestampProvider';
|
||||||
|
import { map } from './map';
|
||||||
|
export function timestamp(timestampProvider = dateTimestampProvider) {
|
||||||
|
return map((value) => ({ value, timestamp: timestampProvider.now() }));
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=timestamp.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/timestamp.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/timestamp.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkC5B,MAAM,UAAU,SAAS,CAAI,oBAAuC,qBAAqB;IACvF,OAAO,GAAG,CAAC,CAAC,KAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC"}
|
||||||
9
node_modules/rxjs/dist/esm/internal/operators/toArray.js
generated
vendored
Normal file
9
node_modules/rxjs/dist/esm/internal/operators/toArray.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { reduce } from './reduce';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
const arrReducer = (arr, value) => (arr.push(value), arr);
|
||||||
|
export function toArray() {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
reduce(arrReducer, [])(source).subscribe(subscriber);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=toArray.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/toArray.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/toArray.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"toArray.js","sourceRoot":"","sources":["../../../../src/internal/operators/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,KAAU,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;AAgCtE,MAAM,UAAU,OAAO;IAIrB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,UAAU,EAAE,EAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
28
node_modules/rxjs/dist/esm/internal/operators/window.js
generated
vendored
Normal file
28
node_modules/rxjs/dist/esm/internal/operators/window.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { noop } from '../util/noop';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
export function window(windowBoundaries) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let windowSubject = new Subject();
|
||||||
|
subscriber.next(windowSubject.asObservable());
|
||||||
|
const errorHandler = (err) => {
|
||||||
|
windowSubject.error(err);
|
||||||
|
subscriber.error(err);
|
||||||
|
};
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value), () => {
|
||||||
|
windowSubject.complete();
|
||||||
|
subscriber.complete();
|
||||||
|
}, errorHandler));
|
||||||
|
innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, () => {
|
||||||
|
windowSubject.complete();
|
||||||
|
subscriber.next((windowSubject = new Subject()));
|
||||||
|
}, noop, errorHandler));
|
||||||
|
return () => {
|
||||||
|
windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe();
|
||||||
|
windowSubject = null;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=window.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/window.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/window.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../src/internal/operators/window.ts"],"names":[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a,CAAE,WAAW,EAAE,CAAC;YAC7B,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
40
node_modules/rxjs/dist/esm/internal/operators/windowCount.js
generated
vendored
Normal file
40
node_modules/rxjs/dist/esm/internal/operators/windowCount.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
export function windowCount(windowSize, startWindowEvery = 0) {
|
||||||
|
const startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let windows = [new Subject()];
|
||||||
|
let starts = [];
|
||||||
|
let count = 0;
|
||||||
|
subscriber.next(windows[0].asObservable());
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
for (const window of windows) {
|
||||||
|
window.next(value);
|
||||||
|
}
|
||||||
|
const c = count - windowSize + 1;
|
||||||
|
if (c >= 0 && c % startEvery === 0) {
|
||||||
|
windows.shift().complete();
|
||||||
|
}
|
||||||
|
if (++count % startEvery === 0) {
|
||||||
|
const window = new Subject();
|
||||||
|
windows.push(window);
|
||||||
|
subscriber.next(window.asObservable());
|
||||||
|
}
|
||||||
|
}, () => {
|
||||||
|
while (windows.length > 0) {
|
||||||
|
windows.shift().complete();
|
||||||
|
}
|
||||||
|
subscriber.complete();
|
||||||
|
}, (err) => {
|
||||||
|
while (windows.length > 0) {
|
||||||
|
windows.shift().error(err);
|
||||||
|
}
|
||||||
|
subscriber.error(err);
|
||||||
|
}, () => {
|
||||||
|
starts = null;
|
||||||
|
windows = null;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=windowCount.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/windowCount.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/windowCount.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"windowCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowCount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,MAAM,UAAU,WAAW,CAAI,UAAkB,EAAE,mBAA2B,CAAC;IAC7E,MAAM,UAAU,GAAG,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,CAAC;IAExE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,OAAO,GAAG,CAAC,IAAI,OAAO,EAAK,CAAC,CAAC;QACjC,IAAI,MAAM,GAAa,EAAE,CAAC;QAC1B,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;QAE3C,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAQ,EAAE,EAAE;YAIX,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpB;YAMD,MAAM,CAAC,GAAG,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,KAAK,CAAC,EAAE;gBAClC,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YAOD,IAAI,EAAE,KAAK,GAAG,UAAU,KAAK,CAAC,EAAE;gBAC9B,MAAM,MAAM,GAAG,IAAI,OAAO,EAAK,CAAC;gBAChC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACrB,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;aACxC;QACH,CAAC,EACD,GAAG,EAAE;YACH,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,EACD,GAAG,EAAE;YACH,MAAM,GAAG,IAAK,CAAC;YACf,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
63
node_modules/rxjs/dist/esm/internal/operators/windowTime.js
generated
vendored
Normal file
63
node_modules/rxjs/dist/esm/internal/operators/windowTime.js
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { asyncScheduler } from '../scheduler/async';
|
||||||
|
import { Subscription } from '../Subscription';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { arrRemove } from '../util/arrRemove';
|
||||||
|
import { popScheduler } from '../util/args';
|
||||||
|
import { executeSchedule } from '../util/executeSchedule';
|
||||||
|
export function windowTime(windowTimeSpan, ...otherArgs) {
|
||||||
|
var _a, _b;
|
||||||
|
const scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;
|
||||||
|
const windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
||||||
|
const maxWindowSize = otherArgs[1] || Infinity;
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let windowRecords = [];
|
||||||
|
let restartOnClose = false;
|
||||||
|
const closeWindow = (record) => {
|
||||||
|
const { window, subs } = record;
|
||||||
|
window.complete();
|
||||||
|
subs.unsubscribe();
|
||||||
|
arrRemove(windowRecords, record);
|
||||||
|
restartOnClose && startWindow();
|
||||||
|
};
|
||||||
|
const startWindow = () => {
|
||||||
|
if (windowRecords) {
|
||||||
|
const subs = new Subscription();
|
||||||
|
subscriber.add(subs);
|
||||||
|
const window = new Subject();
|
||||||
|
const record = {
|
||||||
|
window,
|
||||||
|
subs,
|
||||||
|
seen: 0,
|
||||||
|
};
|
||||||
|
windowRecords.push(record);
|
||||||
|
subscriber.next(window.asObservable());
|
||||||
|
executeSchedule(subs, scheduler, () => closeWindow(record), windowTimeSpan);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (windowCreationInterval !== null && windowCreationInterval >= 0) {
|
||||||
|
executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
restartOnClose = true;
|
||||||
|
}
|
||||||
|
startWindow();
|
||||||
|
const loop = (cb) => windowRecords.slice().forEach(cb);
|
||||||
|
const terminate = (cb) => {
|
||||||
|
loop(({ window }) => cb(window));
|
||||||
|
cb(subscriber);
|
||||||
|
subscriber.unsubscribe();
|
||||||
|
};
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
loop((record) => {
|
||||||
|
record.window.next(value);
|
||||||
|
maxWindowSize <= ++record.seen && closeWindow(record);
|
||||||
|
});
|
||||||
|
}, () => terminate((consumer) => consumer.complete()), (err) => terminate((consumer) => consumer.error(err))));
|
||||||
|
return () => {
|
||||||
|
windowRecords = null;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=windowTime.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/windowTime.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/windowTime.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"windowTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAgG1D,MAAM,UAAU,UAAU,CAAI,cAAsB,EAAE,GAAG,SAAgB;;IACvE,MAAM,SAAS,GAAG,MAAA,YAAY,CAAC,SAAS,CAAC,mCAAI,cAAc,CAAC;IAC5D,MAAM,sBAAsB,GAAG,MAAC,SAAS,CAAC,CAAC,CAAY,mCAAI,IAAI,CAAC;IAChE,MAAM,aAAa,GAAI,SAAS,CAAC,CAAC,CAAY,IAAI,QAAQ,CAAC;IAE3D,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,aAAa,GAA6B,EAAE,CAAC;QAGjD,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,MAAM,WAAW,GAAG,CAAC,MAAkD,EAAE,EAAE;YACzE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;YAChC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;YACjC,cAAc,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AAE,EAAE;YAEX,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACd,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAE1B,aAAa,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;QACL,CAAC,EAED,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAElD,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACtD,CACF,CAAC;QAKF,OAAO,GAAG,EAAE;YAEV,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
54
node_modules/rxjs/dist/esm/internal/operators/windowToggle.js
generated
vendored
Normal file
54
node_modules/rxjs/dist/esm/internal/operators/windowToggle.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { Subscription } from '../Subscription';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { noop } from '../util/noop';
|
||||||
|
import { arrRemove } from '../util/arrRemove';
|
||||||
|
export function windowToggle(openings, closingSelector) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
const windows = [];
|
||||||
|
const handleError = (err) => {
|
||||||
|
while (0 < windows.length) {
|
||||||
|
windows.shift().error(err);
|
||||||
|
}
|
||||||
|
subscriber.error(err);
|
||||||
|
};
|
||||||
|
innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, (openValue) => {
|
||||||
|
const window = new Subject();
|
||||||
|
windows.push(window);
|
||||||
|
const closingSubscription = new Subscription();
|
||||||
|
const closeWindow = () => {
|
||||||
|
arrRemove(windows, window);
|
||||||
|
window.complete();
|
||||||
|
closingSubscription.unsubscribe();
|
||||||
|
};
|
||||||
|
let closingNotifier;
|
||||||
|
try {
|
||||||
|
closingNotifier = innerFrom(closingSelector(openValue));
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
handleError(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
subscriber.next(window.asObservable());
|
||||||
|
closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError)));
|
||||||
|
}, noop));
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
const windowsCopy = windows.slice();
|
||||||
|
for (const window of windowsCopy) {
|
||||||
|
window.next(value);
|
||||||
|
}
|
||||||
|
}, () => {
|
||||||
|
while (0 < windows.length) {
|
||||||
|
windows.shift().complete();
|
||||||
|
}
|
||||||
|
subscriber.complete();
|
||||||
|
}, handleError, () => {
|
||||||
|
while (0 < windows.length) {
|
||||||
|
windows.shift().unsubscribe();
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=windowToggle.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/windowToggle.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/windowToggle.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"windowToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA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wBAAwB,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3H,CAAC,EACD,IAAI,CACL,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAQ,EAAE,EAAE;YAGX,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;YACpC,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;gBAChC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpB;QACH,CAAC,EACD,GAAG,EAAE;YAEH,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,WAAW,EACX,GAAG,EAAE;YAMH,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,WAAW,EAAE,CAAC;aAChC;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
38
node_modules/rxjs/dist/esm/internal/operators/windowWhen.js
generated
vendored
Normal file
38
node_modules/rxjs/dist/esm/internal/operators/windowWhen.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import { Subject } from '../Subject';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
export function windowWhen(closingSelector) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
let window;
|
||||||
|
let closingSubscriber;
|
||||||
|
const handleError = (err) => {
|
||||||
|
window.error(err);
|
||||||
|
subscriber.error(err);
|
||||||
|
};
|
||||||
|
const openWindow = () => {
|
||||||
|
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
||||||
|
window === null || window === void 0 ? void 0 : window.complete();
|
||||||
|
window = new Subject();
|
||||||
|
subscriber.next(window.asObservable());
|
||||||
|
let closingNotifier;
|
||||||
|
try {
|
||||||
|
closingNotifier = innerFrom(closingSelector());
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
handleError(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError)));
|
||||||
|
};
|
||||||
|
openWindow();
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => window.next(value), () => {
|
||||||
|
window.complete();
|
||||||
|
subscriber.complete();
|
||||||
|
}, handleError, () => {
|
||||||
|
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
||||||
|
window = null;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=windowWhen.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/windowWhen.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/windowWhen.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"windowWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowWhen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA+CpD,MAAM,UAAU,UAAU,CAAI,eAA2C;IACvE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,MAAyB,CAAC;QAC9B,IAAI,iBAA8C,CAAC;QAMnD,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,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
Normal file
31
node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { operate } from '../util/lift';
|
||||||
|
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { identity } from '../util/identity';
|
||||||
|
import { noop } from '../util/noop';
|
||||||
|
import { popResultSelector } from '../util/args';
|
||||||
|
export function withLatestFrom(...inputs) {
|
||||||
|
const project = popResultSelector(inputs);
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
const len = inputs.length;
|
||||||
|
const otherValues = new Array(len);
|
||||||
|
let hasValue = inputs.map(() => false);
|
||||||
|
let ready = false;
|
||||||
|
for (let i = 0; i < len; i++) {
|
||||||
|
innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
otherValues[i] = value;
|
||||||
|
if (!ready && !hasValue[i]) {
|
||||||
|
hasValue[i] = true;
|
||||||
|
(ready = hasValue.every(identity)) && (hasValue = null);
|
||||||
|
}
|
||||||
|
}, noop));
|
||||||
|
}
|
||||||
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||||
|
if (ready) {
|
||||||
|
const values = [value, ...otherValues];
|
||||||
|
subscriber.next(project ? project(...values) : values);
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=withLatestFrom.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"withLatestFrom.js","sourceRoot":"","sources":["../../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;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K,EAAE;gBAET,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,WAAW,CAAC,CAAC;gBACvC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;aACxD;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
8
node_modules/rxjs/dist/esm/internal/operators/zip.js
generated
vendored
Normal file
8
node_modules/rxjs/dist/esm/internal/operators/zip.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { zip as zipStatic } from '../observable/zip';
|
||||||
|
import { operate } from '../util/lift';
|
||||||
|
export function zip(...sources) {
|
||||||
|
return operate((source, subscriber) => {
|
||||||
|
zipStatic(source, ...sources).subscribe(subscriber);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=zip.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/zip.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/zip.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/operators/zip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAmBvC,MAAM,UAAU,GAAG,CAAO,GAAG,OAAqE;IAChG,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,CAAC,MAA8B,EAAE,GAAI,OAAuC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
6
node_modules/rxjs/dist/esm/internal/operators/zipAll.js
generated
vendored
Normal file
6
node_modules/rxjs/dist/esm/internal/operators/zipAll.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { zip } from '../observable/zip';
|
||||||
|
import { joinAllInternals } from './joinAllInternals';
|
||||||
|
export function zipAll(project) {
|
||||||
|
return joinAllInternals(zip, project);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=zipAll.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/zipAll.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/zipAll.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"zipAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAetD,MAAM,UAAU,MAAM,CAAO,OAA+B;IAC1D,OAAO,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC"}
|
||||||
5
node_modules/rxjs/dist/esm/internal/operators/zipWith.js
generated
vendored
Normal file
5
node_modules/rxjs/dist/esm/internal/operators/zipWith.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { zip } from './zip';
|
||||||
|
export function zipWith(...otherInputs) {
|
||||||
|
return zip(...otherInputs);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=zipWith.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/operators/zipWith.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/operators/zipWith.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"zipWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAyB5B,MAAM,UAAU,OAAO,CAAkC,GAAG,WAAyC;IACnG,OAAO,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC;AAC7B,CAAC"}
|
||||||
18
node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js
generated
vendored
Normal file
18
node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { Observable } from '../Observable';
|
||||||
|
export function scheduleArray(input, scheduler) {
|
||||||
|
return new Observable((subscriber) => {
|
||||||
|
let i = 0;
|
||||||
|
return scheduler.schedule(function () {
|
||||||
|
if (i === input.length) {
|
||||||
|
subscriber.complete();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
subscriber.next(input[i++]);
|
||||||
|
if (!subscriber.closed) {
|
||||||
|
this.schedule();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduleArray.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduleArray.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,UAAU,aAAa,CAAI,KAAmB,EAAE,SAAwB;IAC5E,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QAEtC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE;gBAGtB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBAGL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAI5B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
23
node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js
generated
vendored
Normal file
23
node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { Observable } from '../Observable';
|
||||||
|
import { executeSchedule } from '../util/executeSchedule';
|
||||||
|
export function scheduleAsyncIterable(input, scheduler) {
|
||||||
|
if (!input) {
|
||||||
|
throw new Error('Iterable cannot be null');
|
||||||
|
}
|
||||||
|
return new Observable((subscriber) => {
|
||||||
|
executeSchedule(subscriber, scheduler, () => {
|
||||||
|
const iterator = input[Symbol.asyncIterator]();
|
||||||
|
executeSchedule(subscriber, scheduler, () => {
|
||||||
|
iterator.next().then((result) => {
|
||||||
|
if (result.done) {
|
||||||
|
subscriber.complete();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
subscriber.next(result.value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 0, true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduleAsyncIterable.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduleAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,UAAU,qBAAqB,CAAI,KAAuB,EAAE,SAAwB;IACxF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACtC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;YAC1C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,eAAe,CACb,UAAU,EACV,SAAS,EACT,GAAG,EAAE;gBACH,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC9B,IAAI,MAAM,CAAC,IAAI,EAAE;wBAGf,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;yBAAM;wBACL,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
31
node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js
generated
vendored
Normal file
31
node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { Observable } from '../Observable';
|
||||||
|
import { iterator as Symbol_iterator } from '../symbol/iterator';
|
||||||
|
import { isFunction } from '../util/isFunction';
|
||||||
|
import { executeSchedule } from '../util/executeSchedule';
|
||||||
|
export function scheduleIterable(input, scheduler) {
|
||||||
|
return new Observable((subscriber) => {
|
||||||
|
let iterator;
|
||||||
|
executeSchedule(subscriber, scheduler, () => {
|
||||||
|
iterator = input[Symbol_iterator]();
|
||||||
|
executeSchedule(subscriber, scheduler, () => {
|
||||||
|
let value;
|
||||||
|
let done;
|
||||||
|
try {
|
||||||
|
({ value, done } = iterator.next());
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
subscriber.error(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (done) {
|
||||||
|
subscriber.complete();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
subscriber.next(value);
|
||||||
|
}
|
||||||
|
}, 0, true);
|
||||||
|
});
|
||||||
|
return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduleIterable.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduleIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAO1D,MAAM,UAAU,gBAAgB,CAAI,KAAkB,EAAE,SAAwB;IAC9E,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACtC,IAAI,QAAwB,CAAC;QAK7B,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;YAE1C,QAAQ,GAAI,KAAa,CAAC,eAAe,CAAC,EAAE,CAAC;YAE7C,eAAe,CACb,UAAU,EACV,SAAS,EACT,GAAG,EAAE;gBACH,IAAI,KAAQ,CAAC;gBACb,IAAI,IAAyB,CAAC;gBAC9B,IAAI;oBAEF,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;iBACrC;gBAAC,OAAO,GAAG,EAAE;oBAEZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,OAAO;iBACR;gBAED,IAAI,IAAI,EAAE;oBAKR,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;qBAAM;oBAEL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;QAMH,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||||
7
node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js
generated
vendored
Normal file
7
node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { observeOn } from '../operators/observeOn';
|
||||||
|
import { subscribeOn } from '../operators/subscribeOn';
|
||||||
|
export function scheduleObservable(input, scheduler) {
|
||||||
|
return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduleObservable.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduleObservable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,kBAAkB,CAAI,KAA2B,EAAE,SAAwB;IACzF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
||||||
7
node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js
generated
vendored
Normal file
7
node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { innerFrom } from '../observable/innerFrom';
|
||||||
|
import { observeOn } from '../operators/observeOn';
|
||||||
|
import { subscribeOn } from '../operators/subscribeOn';
|
||||||
|
export function schedulePromise(input, scheduler) {
|
||||||
|
return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=schedulePromise.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"schedulePromise.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,eAAe,CAAI,KAAqB,EAAE,SAAwB;IAChF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
||||||
6
node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js
generated
vendored
Normal file
6
node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { scheduleAsyncIterable } from './scheduleAsyncIterable';
|
||||||
|
import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';
|
||||||
|
export function scheduleReadableStreamLike(input, scheduler) {
|
||||||
|
return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduleReadableStreamLike.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduleReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleReadableStreamLike.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAElF,MAAM,UAAU,0BAA0B,CAAI,KAA4B,EAAE,SAAwB;IAClG,OAAO,qBAAqB,CAAC,kCAAkC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AACrF,CAAC"}
|
||||||
37
node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js
generated
vendored
Normal file
37
node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import { scheduleObservable } from './scheduleObservable';
|
||||||
|
import { schedulePromise } from './schedulePromise';
|
||||||
|
import { scheduleArray } from './scheduleArray';
|
||||||
|
import { scheduleIterable } from './scheduleIterable';
|
||||||
|
import { scheduleAsyncIterable } from './scheduleAsyncIterable';
|
||||||
|
import { isInteropObservable } from '../util/isInteropObservable';
|
||||||
|
import { isPromise } from '../util/isPromise';
|
||||||
|
import { isArrayLike } from '../util/isArrayLike';
|
||||||
|
import { isIterable } from '../util/isIterable';
|
||||||
|
import { isAsyncIterable } from '../util/isAsyncIterable';
|
||||||
|
import { createInvalidObservableTypeError } from '../util/throwUnobservableError';
|
||||||
|
import { isReadableStreamLike } from '../util/isReadableStreamLike';
|
||||||
|
import { scheduleReadableStreamLike } from './scheduleReadableStreamLike';
|
||||||
|
export function scheduled(input, scheduler) {
|
||||||
|
if (input != null) {
|
||||||
|
if (isInteropObservable(input)) {
|
||||||
|
return scheduleObservable(input, scheduler);
|
||||||
|
}
|
||||||
|
if (isArrayLike(input)) {
|
||||||
|
return scheduleArray(input, scheduler);
|
||||||
|
}
|
||||||
|
if (isPromise(input)) {
|
||||||
|
return schedulePromise(input, scheduler);
|
||||||
|
}
|
||||||
|
if (isAsyncIterable(input)) {
|
||||||
|
return scheduleAsyncIterable(input, scheduler);
|
||||||
|
}
|
||||||
|
if (isIterable(input)) {
|
||||||
|
return scheduleIterable(input, scheduler);
|
||||||
|
}
|
||||||
|
if (isReadableStreamLike(input)) {
|
||||||
|
return scheduleReadableStreamLike(input, scheduler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw createInvalidObservableTypeError(input);
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=scheduled.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAA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file
10
node_modules/rxjs/dist/esm/internal/scheduler/Action.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { Subscription } from '../Subscription';
|
||||||
|
export class Action extends Subscription {
|
||||||
|
constructor(scheduler, work) {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
schedule(state, delay = 0) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=Action.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduler/Action.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduler/Action.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/Action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAe/C,MAAM,OAAO,MAAU,SAAQ,YAAY;IACzC,YAAY,SAAoB,EAAE,IAAmD;QACnF,KAAK,EAAE,CAAC;IACV,CAAC;IAWM,QAAQ,CAAC,KAAS,EAAE,QAAgB,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
||||||
29
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
29
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { AsyncAction } from './AsyncAction';
|
||||||
|
import { animationFrameProvider } from './animationFrameProvider';
|
||||||
|
export class AnimationFrameAction extends AsyncAction {
|
||||||
|
constructor(scheduler, work) {
|
||||||
|
super(scheduler, work);
|
||||||
|
this.scheduler = scheduler;
|
||||||
|
this.work = work;
|
||||||
|
}
|
||||||
|
requestAsyncId(scheduler, id, delay = 0) {
|
||||||
|
if (delay !== null && delay > 0) {
|
||||||
|
return super.requestAsyncId(scheduler, id, delay);
|
||||||
|
}
|
||||||
|
scheduler.actions.push(this);
|
||||||
|
return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));
|
||||||
|
}
|
||||||
|
recycleAsyncId(scheduler, id, delay = 0) {
|
||||||
|
var _a;
|
||||||
|
if (delay != null ? delay > 0 : this.delay > 0) {
|
||||||
|
return super.recycleAsyncId(scheduler, id, delay);
|
||||||
|
}
|
||||||
|
const { actions } = scheduler;
|
||||||
|
if (id != null && id === scheduler._scheduled && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
||||||
|
animationFrameProvider.cancelAnimationFrame(id);
|
||||||
|
scheduler._scheduled = undefined;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AnimationFrameAction.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,OAAO,oBAAwB,SAAQ,WAAc;IACzD,YAAsB,SAAkC,EAAY,IAAmD;QACrH,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QADH,cAAS,GAAT,SAAS,CAAyB;QAAY,SAAI,GAAJ,IAAI,CAA+C;IAEvH,CAAC;IAES,cAAc,CAAC,SAAkC,EAAE,EAAgB,EAAE,QAAgB,CAAC;QAE9F,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,sBAAsB,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACzI,CAAC;IAES,cAAc,CAAC,SAAkC,EAAE,EAAgB,EAAE,QAAgB,CAAC;;QAI9F,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAID,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,SAAS,CAAC,UAAU,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACvF,sBAAsB,CAAC,oBAAoB,CAAC,EAAY,CAAC,CAAC;YAC1D,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;SAClC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
||||||
30
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
30
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { AsyncScheduler } from './AsyncScheduler';
|
||||||
|
export class AnimationFrameScheduler extends AsyncScheduler {
|
||||||
|
flush(action) {
|
||||||
|
this._active = true;
|
||||||
|
let flushId;
|
||||||
|
if (action) {
|
||||||
|
flushId = action.id;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
flushId = this._scheduled;
|
||||||
|
this._scheduled = undefined;
|
||||||
|
}
|
||||||
|
const { actions } = this;
|
||||||
|
let error;
|
||||||
|
action = action || actions.shift();
|
||||||
|
do {
|
||||||
|
if ((error = action.execute(action.state, action.delay))) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while ((action = actions[0]) && action.id === flushId && actions.shift());
|
||||||
|
this._active = false;
|
||||||
|
if (error) {
|
||||||
|
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
|
||||||
|
action.unsubscribe();
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AnimationFrameScheduler.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,uBAAwB,SAAQ,cAAc;IAClD,KAAK,CAAC,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAI,OAAO,CAAC;QACZ,IAAI,MAAM,EAAE;YACV,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC;SACrB;aAAM;YACL,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;YAC1B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;SAC7B;QAED,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
||||||
31
node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js
generated
vendored
Normal file
31
node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { AsyncAction } from './AsyncAction';
|
||||||
|
import { immediateProvider } from './immediateProvider';
|
||||||
|
export class AsapAction extends AsyncAction {
|
||||||
|
constructor(scheduler, work) {
|
||||||
|
super(scheduler, work);
|
||||||
|
this.scheduler = scheduler;
|
||||||
|
this.work = work;
|
||||||
|
}
|
||||||
|
requestAsyncId(scheduler, id, delay = 0) {
|
||||||
|
if (delay !== null && delay > 0) {
|
||||||
|
return super.requestAsyncId(scheduler, id, delay);
|
||||||
|
}
|
||||||
|
scheduler.actions.push(this);
|
||||||
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
|
||||||
|
}
|
||||||
|
recycleAsyncId(scheduler, id, delay = 0) {
|
||||||
|
var _a;
|
||||||
|
if (delay != null ? delay > 0 : this.delay > 0) {
|
||||||
|
return super.recycleAsyncId(scheduler, id, delay);
|
||||||
|
}
|
||||||
|
const { actions } = scheduler;
|
||||||
|
if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
||||||
|
immediateProvider.clearImmediate(id);
|
||||||
|
if (scheduler._scheduled === id) {
|
||||||
|
scheduler._scheduled = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AsapAction.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,OAAO,UAAc,SAAQ,WAAc;IAC/C,YAAsB,SAAwB,EAAY,IAAmD;QAC3G,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QADH,cAAS,GAAT,SAAS,CAAe;QAAY,SAAI,GAAJ,IAAI,CAA+C;IAE7G,CAAC;IAES,cAAc,CAAC,SAAwB,EAAE,EAAgB,EAAE,QAAgB,CAAC;QAEpF,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACrI,CAAC;IAES,cAAc,CAAC,SAAwB,EAAE,EAAgB,EAAE,QAAgB,CAAC;;QAIpF,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAID,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,iBAAiB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACrC,IAAI,SAAS,CAAC,UAAU,KAAK,EAAE,EAAE;gBAC/B,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;aAClC;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
||||||
24
node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js
generated
vendored
Normal file
24
node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { AsyncScheduler } from './AsyncScheduler';
|
||||||
|
export class AsapScheduler extends AsyncScheduler {
|
||||||
|
flush(action) {
|
||||||
|
this._active = true;
|
||||||
|
const flushId = this._scheduled;
|
||||||
|
this._scheduled = undefined;
|
||||||
|
const { actions } = this;
|
||||||
|
let error;
|
||||||
|
action = action || actions.shift();
|
||||||
|
do {
|
||||||
|
if ((error = action.execute(action.state, action.delay))) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while ((action = actions[0]) && action.id === flushId && actions.shift());
|
||||||
|
this._active = false;
|
||||||
|
if (error) {
|
||||||
|
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
|
||||||
|
action.unsubscribe();
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AsapScheduler.js.map
|
||||||
1
node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,aAAc,SAAQ,cAAc;IACxC,KAAK,CAAC,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
||||||
82
node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js
generated
vendored
Normal file
82
node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
import { Action } from './Action';
|
||||||
|
import { intervalProvider } from './intervalProvider';
|
||||||
|
import { arrRemove } from '../util/arrRemove';
|
||||||
|
export class AsyncAction extends Action {
|
||||||
|
constructor(scheduler, work) {
|
||||||
|
super(scheduler, work);
|
||||||
|
this.scheduler = scheduler;
|
||||||
|
this.work = work;
|
||||||
|
this.pending = false;
|
||||||
|
}
|
||||||
|
schedule(state, delay = 0) {
|
||||||
|
var _a;
|
||||||
|
if (this.closed) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
this.state = state;
|
||||||
|
const id = this.id;
|
||||||
|
const scheduler = this.scheduler;
|
||||||
|
if (id != null) {
|
||||||
|
this.id = this.recycleAsyncId(scheduler, id, delay);
|
||||||
|
}
|
||||||
|
this.pending = true;
|
||||||
|
this.delay = delay;
|
||||||
|
this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
requestAsyncId(scheduler, _id, delay = 0) {
|
||||||
|
return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
||||||
|
}
|
||||||
|
recycleAsyncId(_scheduler, id, delay = 0) {
|
||||||
|
if (delay != null && this.delay === delay && this.pending === false) {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
if (id != null) {
|
||||||
|
intervalProvider.clearInterval(id);
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
execute(state, delay) {
|
||||||
|
if (this.closed) {
|
||||||
|
return new Error('executing a cancelled action');
|
||||||
|
}
|
||||||
|
this.pending = false;
|
||||||
|
const error = this._execute(state, delay);
|
||||||
|
if (error) {
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
else if (this.pending === false && this.id != null) {
|
||||||
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_execute(state, _delay) {
|
||||||
|
let errored = false;
|
||||||
|
let errorValue;
|
||||||
|
try {
|
||||||
|
this.work(state);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
errored = true;
|
||||||
|
errorValue = e ? e : new Error('Scheduled action threw falsy error');
|
||||||
|
}
|
||||||
|
if (errored) {
|
||||||
|
this.unsubscribe();
|
||||||
|
return errorValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unsubscribe() {
|
||||||
|
if (!this.closed) {
|
||||||
|
const { id, scheduler } = this;
|
||||||
|
const { actions } = scheduler;
|
||||||
|
this.work = this.state = this.scheduler = null;
|
||||||
|
this.pending = false;
|
||||||
|
arrRemove(actions, this);
|
||||||
|
if (id != null) {
|
||||||
|
this.id = this.recycleAsyncId(scheduler, id, null);
|
||||||
|
}
|
||||||
|
this.delay = null;
|
||||||
|
super.unsubscribe();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=AsyncAction.js.map
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user