new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export declare const $isLoading: import("svelte/store").Writable<boolean>;
|
||||
@@ -0,0 +1,11 @@
|
||||
import validate from './validate.js';
|
||||
|
||||
function version(uuid) {
|
||||
if (!validate(uuid)) {
|
||||
throw TypeError('Invalid UUID');
|
||||
}
|
||||
|
||||
return parseInt(uuid.substr(14, 1), 16);
|
||||
}
|
||||
|
||||
export default version;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function mapTo(value) {
|
||||
return (source) => source.lift(new MapToOperator(value));
|
||||
}
|
||||
class MapToOperator {
|
||||
constructor(value) {
|
||||
this.value = value;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new MapToSubscriber(subscriber, this.value));
|
||||
}
|
||||
}
|
||||
class MapToSubscriber extends Subscriber {
|
||||
constructor(destination, value) {
|
||||
super(destination);
|
||||
this.value = value;
|
||||
}
|
||||
_next(x) {
|
||||
this.destination.next(this.value);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=mapTo.js.map
|
||||
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var InnerSubscriber_1 = require("../InnerSubscriber");
|
||||
var subscribeTo_1 = require("./subscribeTo");
|
||||
var Observable_1 = require("../Observable");
|
||||
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
|
||||
if (innerSubscriber === void 0) { innerSubscriber = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
|
||||
if (innerSubscriber.closed) {
|
||||
return undefined;
|
||||
}
|
||||
if (result instanceof Observable_1.Observable) {
|
||||
return result.subscribe(innerSubscriber);
|
||||
}
|
||||
return subscribeTo_1.subscribeTo(result)(innerSubscriber);
|
||||
}
|
||||
exports.subscribeToResult = subscribeToResult;
|
||||
//# sourceMappingURL=subscribeToResult.js.map
|
||||
@@ -0,0 +1,68 @@
|
||||
import { Subject } from '../Subject';
|
||||
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
|
||||
export function retryWhen(notifier) {
|
||||
return (source) => source.lift(new RetryWhenOperator(notifier, source));
|
||||
}
|
||||
class RetryWhenOperator {
|
||||
constructor(notifier, source) {
|
||||
this.notifier = notifier;
|
||||
this.source = source;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));
|
||||
}
|
||||
}
|
||||
class RetryWhenSubscriber extends SimpleOuterSubscriber {
|
||||
constructor(destination, notifier, source) {
|
||||
super(destination);
|
||||
this.notifier = notifier;
|
||||
this.source = source;
|
||||
}
|
||||
error(err) {
|
||||
if (!this.isStopped) {
|
||||
let errors = this.errors;
|
||||
let retries = this.retries;
|
||||
let retriesSubscription = this.retriesSubscription;
|
||||
if (!retries) {
|
||||
errors = new Subject();
|
||||
try {
|
||||
const { notifier } = this;
|
||||
retries = notifier(errors);
|
||||
}
|
||||
catch (e) {
|
||||
return super.error(e);
|
||||
}
|
||||
retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));
|
||||
}
|
||||
else {
|
||||
this.errors = undefined;
|
||||
this.retriesSubscription = undefined;
|
||||
}
|
||||
this._unsubscribeAndRecycle();
|
||||
this.errors = errors;
|
||||
this.retries = retries;
|
||||
this.retriesSubscription = retriesSubscription;
|
||||
errors.next(err);
|
||||
}
|
||||
}
|
||||
_unsubscribe() {
|
||||
const { errors, retriesSubscription } = this;
|
||||
if (errors) {
|
||||
errors.unsubscribe();
|
||||
this.errors = undefined;
|
||||
}
|
||||
if (retriesSubscription) {
|
||||
retriesSubscription.unsubscribe();
|
||||
this.retriesSubscription = undefined;
|
||||
}
|
||||
this.retries = undefined;
|
||||
}
|
||||
notifyNext() {
|
||||
const { _unsubscribe } = this;
|
||||
this._unsubscribe = null;
|
||||
this._unsubscribeAndRecycle();
|
||||
this._unsubscribe = _unsubscribe;
|
||||
this.source.subscribe(this);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=retryWhen.js.map
|
||||
@@ -0,0 +1,26 @@
|
||||
// Animated PNG
|
||||
// http://en.wikipedia.org/wiki/APNG
|
||||
// By Addy Osmani
|
||||
(function () {
|
||||
|
||||
if (!Modernizr.canvas) return false;
|
||||
|
||||
var image = new Image(),
|
||||
canvas = document.createElement('canvas'),
|
||||
ctx = canvas.getContext('2d');
|
||||
|
||||
|
||||
image.onload = function () {
|
||||
Modernizr.addTest('apng', function () {
|
||||
if (typeof canvas.getContext == 'undefined') {
|
||||
return false;
|
||||
} else {
|
||||
ctx.drawImage(image, 0, 0);
|
||||
return ctx.getImageData(0, 0, 1, 1).data[3] === 0;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg==";
|
||||
|
||||
}());
|
||||
@@ -0,0 +1,173 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isURL;
|
||||
|
||||
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
||||
|
||||
var _isFQDN = _interopRequireDefault(require("./isFQDN"));
|
||||
|
||||
var _isIP = _interopRequireDefault(require("./isIP"));
|
||||
|
||||
var _merge = _interopRequireDefault(require("./util/merge"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/*
|
||||
options for isURL method
|
||||
|
||||
require_protocol - if set as true isURL will return false if protocol is not present in the URL
|
||||
require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option
|
||||
protocols - valid protocols can be modified with this option
|
||||
require_host - if set as false isURL will not check if host is present in the URL
|
||||
require_port - if set as true isURL will check if port is present in the URL
|
||||
allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed
|
||||
validate_length - if set as false isURL will skip string length validation (IE maximum is 2083)
|
||||
|
||||
*/
|
||||
var default_url_options = {
|
||||
protocols: ['http', 'https', 'ftp'],
|
||||
require_tld: true,
|
||||
require_protocol: false,
|
||||
require_host: true,
|
||||
require_port: false,
|
||||
require_valid_protocol: true,
|
||||
allow_underscores: false,
|
||||
allow_trailing_dot: false,
|
||||
allow_protocol_relative_urls: false,
|
||||
validate_length: true
|
||||
};
|
||||
var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
|
||||
|
||||
function isRegExp(obj) {
|
||||
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
||||
}
|
||||
|
||||
function checkHost(host, matches) {
|
||||
for (var i = 0; i < matches.length; i++) {
|
||||
var match = matches[i];
|
||||
|
||||
if (host === match || isRegExp(match) && match.test(host)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function isURL(url, options) {
|
||||
(0, _assertString.default)(url);
|
||||
|
||||
if (!url || /[\s<>]/.test(url)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (url.indexOf('mailto:') === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
options = (0, _merge.default)(options, default_url_options);
|
||||
|
||||
if (options.validate_length && url.length >= 2083) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var protocol, auth, host, hostname, port, port_str, split, ipv6;
|
||||
split = url.split('#');
|
||||
url = split.shift();
|
||||
split = url.split('?');
|
||||
url = split.shift();
|
||||
split = url.split('://');
|
||||
|
||||
if (split.length > 1) {
|
||||
protocol = split.shift().toLowerCase();
|
||||
|
||||
if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
|
||||
return false;
|
||||
}
|
||||
} else if (options.require_protocol) {
|
||||
return false;
|
||||
} else if (url.substr(0, 2) === '//') {
|
||||
if (!options.allow_protocol_relative_urls) {
|
||||
return false;
|
||||
}
|
||||
|
||||
split[0] = url.substr(2);
|
||||
}
|
||||
|
||||
url = split.join('://');
|
||||
|
||||
if (url === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
split = url.split('/');
|
||||
url = split.shift();
|
||||
|
||||
if (url === '' && !options.require_host) {
|
||||
return true;
|
||||
}
|
||||
|
||||
split = url.split('@');
|
||||
|
||||
if (split.length > 1) {
|
||||
if (options.disallow_auth) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auth = split.shift();
|
||||
|
||||
if (auth.indexOf(':') === -1 || auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
hostname = split.join('@');
|
||||
port_str = null;
|
||||
ipv6 = null;
|
||||
var ipv6_match = hostname.match(wrapped_ipv6);
|
||||
|
||||
if (ipv6_match) {
|
||||
host = '';
|
||||
ipv6 = ipv6_match[1];
|
||||
port_str = ipv6_match[2] || null;
|
||||
} else {
|
||||
split = hostname.split(':');
|
||||
host = split.shift();
|
||||
|
||||
if (split.length) {
|
||||
port_str = split.join(':');
|
||||
}
|
||||
}
|
||||
|
||||
if (port_str !== null) {
|
||||
port = parseInt(port_str, 10);
|
||||
|
||||
if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
|
||||
return false;
|
||||
}
|
||||
} else if (options.require_port) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
host = host || ipv6;
|
||||
|
||||
if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = exports.default;
|
||||
module.exports.default = exports.default;
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { Notification } from '../Notification';
|
||||
export function materialize() {
|
||||
return function materializeOperatorFunction(source) {
|
||||
return source.lift(new MaterializeOperator());
|
||||
};
|
||||
}
|
||||
class MaterializeOperator {
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new MaterializeSubscriber(subscriber));
|
||||
}
|
||||
}
|
||||
class MaterializeSubscriber extends Subscriber {
|
||||
constructor(destination) {
|
||||
super(destination);
|
||||
}
|
||||
_next(value) {
|
||||
this.destination.next(Notification.createNext(value));
|
||||
}
|
||||
_error(err) {
|
||||
const destination = this.destination;
|
||||
destination.next(Notification.createError(err));
|
||||
destination.complete();
|
||||
}
|
||||
_complete() {
|
||||
const destination = this.destination;
|
||||
destination.next(Notification.createComplete());
|
||||
destination.complete();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=materialize.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"retryWhen.js","sources":["../../../src/internal/operators/retryWhen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAgBjG,MAAM,UAAU,SAAS,CAAI,QAAsD;IACjF,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,iBAAiB;IACrB,YAAsB,QAAsD,EACtD,MAAqB;QADrB,aAAQ,GAAR,QAAQ,CAA8C;QACtD,WAAM,GAAN,MAAM,CAAe;IAC3C,CAAC;IAED,IAAI,CAAC,UAAyB,EAAE,MAAW;QACzC,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3F,CAAC;CACF;AAOD,MAAM,mBAA0B,SAAQ,qBAA2B;IAMjE,YAAY,WAA0B,EAClB,QAAsD,EACtD,MAAqB;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QAFD,aAAQ,GAAR,QAAQ,CAA8C;QACtD,WAAM,GAAN,MAAM,CAAe;IAEzC,CAAC;IAED,KAAK,CAAC,GAAQ;QACZ,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YAEnB,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,IAAI,OAAO,GAAQ,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;YAEnD,IAAI,CAAC,OAAO,EAAE;gBACZ,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;gBACvB,IAAI;oBACF,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;oBAC1B,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;iBAC5B;gBAAC,OAAO,CAAC,EAAE;oBACV,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;iBACvB;gBACD,mBAAmB,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;aAChF;iBAAM;gBACL,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;gBACxB,IAAI,CAAC,mBAAmB,GAAG,SAAS,CAAC;aACtC;YAED,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAE9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;YAE/C,MAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACnB;IACH,CAAC;IAGD,YAAY;QACV,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC;QAC7C,IAAI,MAAM,EAAE;YACV,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;SACzB;QACD,IAAI,mBAAmB,EAAE;YACvB,mBAAmB,CAAC,WAAW,EAAE,CAAC;YAClC,IAAI,CAAC,mBAAmB,GAAG,SAAS,CAAC;SACtC;QACD,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,UAAU;QACR,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;QAE9B,IAAI,CAAC,YAAY,GAAG,IAAK,CAAC;QAC1B,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"takeWhile.js","sources":["../src/operators/takeWhile.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.00427,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00213,"79":0,"80":0.00213,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0.00213,"99":0,"100":0,"101":0,"102":0.00213,"103":0,"104":0.00213,"105":0.00213,"106":0.00213,"107":0.0064,"108":0.10665,"109":0.04906,"110":0.00213,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.00427,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0.00213,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.00213,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0.00213,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0.00213,"64":0.00427,"65":0.00213,"66":0,"67":0,"68":0.00213,"69":0.00213,"70":0.00213,"71":0.00213,"72":0.00427,"73":0.00213,"74":0.01067,"75":0.00427,"76":0.00213,"77":0.00213,"78":0.00213,"79":0.00427,"80":0.00427,"81":0.0064,"83":0.0064,"84":0.0128,"85":0.06399,"86":0.01067,"87":0.01067,"88":0.00213,"89":0.00427,"90":0.00427,"91":0.00427,"92":0.00427,"93":0.0064,"94":0.00427,"95":0.0064,"96":0.00427,"97":0.00427,"98":0.00427,"99":0.00213,"100":0.00427,"101":0.00427,"102":0.0064,"103":0.01706,"104":0.00853,"105":0.01493,"106":0.01706,"107":0.04266,"108":1.97729,"109":1.33952,"110":0.00427,"111":0.00213,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.00213,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0.0064,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0.00213,"62":0,"63":0.0064,"64":0.00427,"65":0.00213,"66":0.01067,"67":0.0064,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00427,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.00213,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0.00213,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.0192,"94":0.09599,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0.00213,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00427,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00213,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0.00213,"107":0.00427,"108":0.10452,"109":0.07679},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00213,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.00213,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.00427,"14.1":0.0064,"15.1":0.00213,"15.2-15.3":0,"15.4":0.00213,"15.5":0.00427,"15.6":0.01493,"16.0":0.00213,"16.1":0.01067,"16.2":0.01067,"16.3":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00049,"5.0-5.1":0.00344,"6.0-6.1":0,"7.0-7.1":0.04864,"8.1-8.4":0,"9.0-9.2":0.00197,"9.3":0.05994,"10.0-10.2":0.00147,"10.3":0.04127,"11.0-11.2":0.00639,"11.3-11.4":0.00442,"12.0-12.1":0.00786,"12.2-12.5":0.31002,"13.0-13.1":0.00442,"13.2":0.00442,"13.3":0.01376,"13.4-13.7":0.04422,"14.0-14.4":0.11399,"14.5-14.8":0.17982,"15.0-15.1":0.05896,"15.2-15.3":0.07124,"15.4":0.07517,"15.5":0.16263,"15.6":0.42548,"16.0":0.52375,"16.1":1.06862,"16.2":0.86276,"16.3":0.085},P:{"4":0.15062,"5.0-5.4":0.01004,"6.2-6.4":0.01004,"7.2-7.4":0.03012,"8.2":0,"9.2":0.02008,"10.1":0,"11.1-11.2":0.01004,"12.0":0.01004,"13.0":0.03012,"14.0":0.02008,"15.0":0.01004,"16.0":0.02008,"17.0":0.07029,"18.0":0.06025,"19.0":0.78325},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00713,"4.4":0,"4.4.3-4.4.4":0.12486},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00237,"9":0,"10":0,"11":0.01896,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.05507},Q:{"13.1":0},O:{"0":3.076},H:{"0":1.37043},L:{"0":84.18248},S:{"2.5":0.07867}};
|
||||
@@ -0,0 +1,89 @@
|
||||
import { Operator } from '../Operator';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { Observable } from '../Observable';
|
||||
|
||||
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
|
||||
|
||||
/**
|
||||
* Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
|
||||
* calls `error`, this method will resubscribe to the source Observable for a maximum of `count` resubscriptions (given
|
||||
* as a number parameter) rather than propagating the `error` call.
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted
|
||||
* during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second
|
||||
* time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications
|
||||
* would be: [1, 2, 1, 2, 3, 4, 5, `complete`].
|
||||
*
|
||||
* ## Example
|
||||
* ```ts
|
||||
* import { interval, of, throwError } from 'rxjs';
|
||||
* import { mergeMap, retry } from 'rxjs/operators';
|
||||
*
|
||||
* const source = interval(1000);
|
||||
* const example = source.pipe(
|
||||
* mergeMap(val => {
|
||||
* if(val > 5){
|
||||
* return throwError('Error!');
|
||||
* }
|
||||
* return of(val);
|
||||
* }),
|
||||
* //retry 2 times on error
|
||||
* retry(2)
|
||||
* );
|
||||
*
|
||||
* const subscribe = example.subscribe({
|
||||
* next: val => console.log(val),
|
||||
* error: val => console.log(`${val}: Retried 2 times then quit!`)
|
||||
* });
|
||||
*
|
||||
* // Output:
|
||||
* // 0..1..2..3..4..5..
|
||||
* // 0..1..2..3..4..5..
|
||||
* // 0..1..2..3..4..5..
|
||||
* // "Error!: Retried 2 times then quit!"
|
||||
* ```
|
||||
*
|
||||
* @param {number} count - Number of retry attempts before failing.
|
||||
* @return {Observable} The source Observable modified with the retry logic.
|
||||
* @method retry
|
||||
* @owner Observable
|
||||
*/
|
||||
export function retry<T>(count: number = -1): MonoTypeOperatorFunction<T> {
|
||||
return (source: Observable<T>) => source.lift(new RetryOperator(count, source));
|
||||
}
|
||||
|
||||
class RetryOperator<T> implements Operator<T, T> {
|
||||
constructor(private count: number,
|
||||
private source: Observable<T>) {
|
||||
}
|
||||
|
||||
call(subscriber: Subscriber<T>, source: any): TeardownLogic {
|
||||
return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
class RetrySubscriber<T> extends Subscriber<T> {
|
||||
constructor(destination: Subscriber<any>,
|
||||
private count: number,
|
||||
private source: Observable<T>) {
|
||||
super(destination);
|
||||
}
|
||||
error(err: any) {
|
||||
if (!this.isStopped) {
|
||||
const { source, count } = this;
|
||||
if (count === 0) {
|
||||
return super.error(err);
|
||||
} else if (count > -1) {
|
||||
this.count = count - 1;
|
||||
}
|
||||
source.subscribe(this._unsubscribeAndRecycle());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G BC","130":"A B"},B:{"130":"C K L H M N O P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"1":"AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","2":"CC tB DC EC","130":"I u J E F G A B C K L H M N O v w x y z","322":"0 1 2 3 4 5 6 7 8 9"},D:{"1":"xB yB FC","2":"I u J E F G A B C K L H","130":"0 1 2 3 4 5 6 7 8 9 M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},E:{"1":"A B C K L H KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"E F G GC zB IC JC","130":"I u J HC"},F:{"2":"G B C OC PC QC RC qB 9B SC rB","130":"0 1 2 3 4 5 6 7 8 9 H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"1":"ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","2":"F zB WC XC YC","130":"TC AC UC VC"},H:{"2":"nC"},I:{"2":"tB I oC pC qC rC AC","130":"D sC tC"},J:{"2":"E","130":"A"},K:{"2":"A B C qB 9B rB","130":"e"},L:{"130":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"130":"uC"},P:{"130":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"130":"1B"},R:{"130":"8C"},S:{"1":"9C"}},B:5,C:"CSS font-variant-alternates"};
|
||||
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Observable_1 = require("../Observable");
|
||||
var subscribeToArray_1 = require("../util/subscribeToArray");
|
||||
var scheduleArray_1 = require("../scheduled/scheduleArray");
|
||||
function fromArray(input, scheduler) {
|
||||
if (!scheduler) {
|
||||
return new Observable_1.Observable(subscribeToArray_1.subscribeToArray(input));
|
||||
}
|
||||
else {
|
||||
return scheduleArray_1.scheduleArray(input, scheduler);
|
||||
}
|
||||
}
|
||||
exports.fromArray = fromArray;
|
||||
//# sourceMappingURL=fromArray.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"count.js","sources":["../../src/add/operator/count.ts"],"names":[],"mappings":";;AAAA,0CAAwC"}
|
||||
@@ -0,0 +1,192 @@
|
||||
import { FilePosition } from './input.js'
|
||||
|
||||
/**
|
||||
* The CSS parser throws this error for broken CSS.
|
||||
*
|
||||
* Custom parsers can throw this error for broken custom syntax using
|
||||
* the `Node#error` method.
|
||||
*
|
||||
* PostCSS will use the input source map to detect the original error location.
|
||||
* If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS,
|
||||
* PostCSS will show the original position in the Sass file.
|
||||
*
|
||||
* If you need the position in the PostCSS input
|
||||
* (e.g., to debug the previous compiler), use `error.input.file`.
|
||||
*
|
||||
* ```js
|
||||
* // Raising error from plugin
|
||||
* throw node.error('Unknown variable', { plugin: 'postcss-vars' })
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* // Catching and checking syntax error
|
||||
* try {
|
||||
* postcss.parse('a{')
|
||||
* } catch (error) {
|
||||
* if (error.name === 'CssSyntaxError') {
|
||||
* error //=> CssSyntaxError
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export default class CssSyntaxError {
|
||||
/**
|
||||
* @param message Error message.
|
||||
* @param line Source line of the error.
|
||||
* @param column Source column of the error.
|
||||
* @param source Source code of the broken file.
|
||||
* @param file Absolute path to the broken file.
|
||||
* @param plugin PostCSS plugin name, if error came from plugin.
|
||||
*/
|
||||
constructor(
|
||||
message: string,
|
||||
line?: number,
|
||||
column?: number,
|
||||
source?: string,
|
||||
file?: string,
|
||||
plugin?: string
|
||||
)
|
||||
|
||||
stack: string
|
||||
|
||||
/**
|
||||
* Always equal to `'CssSyntaxError'`. You should always check error type
|
||||
* by `error.name === 'CssSyntaxError'`
|
||||
* instead of `error instanceof CssSyntaxError`,
|
||||
* because npm could have several PostCSS versions.
|
||||
*
|
||||
* ```js
|
||||
* if (error.name === 'CssSyntaxError') {
|
||||
* error //=> CssSyntaxError
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
name: 'CssSyntaxError'
|
||||
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* ```js
|
||||
* error.message //=> 'Unclosed block'
|
||||
* ```
|
||||
*/
|
||||
reason: string
|
||||
|
||||
/**
|
||||
* Full error text in the GNU error format
|
||||
* with plugin, file, line and column.
|
||||
*
|
||||
* ```js
|
||||
* error.message //=> 'a.css:1:1: Unclosed block'
|
||||
* ```
|
||||
*/
|
||||
message: string
|
||||
|
||||
/**
|
||||
* Absolute path to the broken file.
|
||||
*
|
||||
* ```js
|
||||
* error.file //=> 'a.sass'
|
||||
* error.input.file //=> 'a.css'
|
||||
* ```
|
||||
*
|
||||
* PostCSS will use the input source map to detect the original location.
|
||||
* If you need the position in the PostCSS input, use `error.input.file`.
|
||||
*/
|
||||
file?: string
|
||||
|
||||
/**
|
||||
* Source line of the error.
|
||||
*
|
||||
* ```js
|
||||
* error.line //=> 2
|
||||
* error.input.line //=> 4
|
||||
* ```
|
||||
*
|
||||
* PostCSS will use the input source map to detect the original location.
|
||||
* If you need the position in the PostCSS input, use `error.input.line`.
|
||||
*/
|
||||
line?: number
|
||||
|
||||
/**
|
||||
* Source column of the error.
|
||||
*
|
||||
* ```js
|
||||
* error.column //=> 1
|
||||
* error.input.column //=> 4
|
||||
* ```
|
||||
*
|
||||
* PostCSS will use the input source map to detect the original location.
|
||||
* If you need the position in the PostCSS input, use `error.input.column`.
|
||||
*/
|
||||
column?: number
|
||||
|
||||
/**
|
||||
* Source code of the broken file.
|
||||
*
|
||||
* ```js
|
||||
* error.source //=> 'a { b {} }'
|
||||
* error.input.column //=> 'a b { }'
|
||||
* ```
|
||||
*/
|
||||
source?: string
|
||||
|
||||
/**
|
||||
* Plugin name, if error came from plugin.
|
||||
*
|
||||
* ```js
|
||||
* error.plugin //=> 'postcss-vars'
|
||||
* ```
|
||||
*/
|
||||
plugin?: string
|
||||
|
||||
/**
|
||||
* Input object with PostCSS internal information
|
||||
* about input file. If input has source map
|
||||
* from previous tool, PostCSS will use origin
|
||||
* (for example, Sass) source. You can use this
|
||||
* object to get PostCSS input source.
|
||||
*
|
||||
* ```js
|
||||
* error.input.file //=> 'a.css'
|
||||
* error.file //=> 'a.sass'
|
||||
* ```
|
||||
*/
|
||||
input?: FilePosition
|
||||
|
||||
/**
|
||||
* Returns error position, message and source code of the broken part.
|
||||
*
|
||||
* ```js
|
||||
* error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block
|
||||
* // > 1 | a {
|
||||
* // | ^"
|
||||
* ```
|
||||
*
|
||||
* @return Error position, message and source code.
|
||||
*/
|
||||
toString(): string
|
||||
|
||||
/**
|
||||
* Returns a few lines of CSS source that caused the error.
|
||||
*
|
||||
* If the CSS has an input source map without `sourceContent`,
|
||||
* this method will return an empty string.
|
||||
*
|
||||
* ```js
|
||||
* error.showSourceCode() //=> " 4 | }
|
||||
* // 5 | a {
|
||||
* // > 6 | bad
|
||||
* // | ^
|
||||
* // 7 | }
|
||||
* // 8 | b {"
|
||||
* ```
|
||||
*
|
||||
* @param color Whether arrow will be colored red by terminal
|
||||
* color codes. By default, PostCSS will detect
|
||||
* color support by `process.stdout.isTTY`
|
||||
* and `process.env.NODE_DISABLE_COLORS`.
|
||||
* @return Few lines of CSS source that caused the error.
|
||||
*/
|
||||
showSourceCode(color?: boolean): string
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operators/multicast"));
|
||||
//# sourceMappingURL=multicast.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"materialize.js","sources":["../src/operator/materialize.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiD"}
|
||||
@@ -0,0 +1,99 @@
|
||||
'use strict';
|
||||
const deferToConnect = require('defer-to-connect');
|
||||
|
||||
module.exports = request => {
|
||||
const timings = {
|
||||
start: Date.now(),
|
||||
socket: null,
|
||||
lookup: null,
|
||||
connect: null,
|
||||
upload: null,
|
||||
response: null,
|
||||
end: null,
|
||||
error: null,
|
||||
phases: {
|
||||
wait: null,
|
||||
dns: null,
|
||||
tcp: null,
|
||||
request: null,
|
||||
firstByte: null,
|
||||
download: null,
|
||||
total: null
|
||||
}
|
||||
};
|
||||
|
||||
const handleError = origin => {
|
||||
const emit = origin.emit.bind(origin);
|
||||
origin.emit = (event, ...args) => {
|
||||
// Catches the `error` event
|
||||
if (event === 'error') {
|
||||
timings.error = Date.now();
|
||||
timings.phases.total = timings.error - timings.start;
|
||||
|
||||
origin.emit = emit;
|
||||
}
|
||||
|
||||
// Saves the original behavior
|
||||
return emit(event, ...args);
|
||||
};
|
||||
};
|
||||
|
||||
let uploadFinished = false;
|
||||
const onUpload = () => {
|
||||
timings.upload = Date.now();
|
||||
timings.phases.request = timings.upload - timings.connect;
|
||||
};
|
||||
|
||||
handleError(request);
|
||||
|
||||
request.once('socket', socket => {
|
||||
timings.socket = Date.now();
|
||||
timings.phases.wait = timings.socket - timings.start;
|
||||
|
||||
const lookupListener = () => {
|
||||
timings.lookup = Date.now();
|
||||
timings.phases.dns = timings.lookup - timings.socket;
|
||||
};
|
||||
|
||||
socket.once('lookup', lookupListener);
|
||||
|
||||
deferToConnect(socket, () => {
|
||||
timings.connect = Date.now();
|
||||
|
||||
if (timings.lookup === null) {
|
||||
socket.removeListener('lookup', lookupListener);
|
||||
timings.lookup = timings.connect;
|
||||
timings.phases.dns = timings.lookup - timings.socket;
|
||||
}
|
||||
|
||||
timings.phases.tcp = timings.connect - timings.lookup;
|
||||
|
||||
if (uploadFinished && !timings.upload) {
|
||||
onUpload();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
request.once('finish', () => {
|
||||
uploadFinished = true;
|
||||
|
||||
if (timings.connect) {
|
||||
onUpload();
|
||||
}
|
||||
});
|
||||
|
||||
request.once('response', response => {
|
||||
timings.response = Date.now();
|
||||
timings.phases.firstByte = timings.response - timings.upload;
|
||||
|
||||
handleError(response);
|
||||
|
||||
response.once('end', () => {
|
||||
timings.end = Date.now();
|
||||
timings.phases.download = timings.end - timings.response;
|
||||
timings.phases.total = timings.end - timings.start;
|
||||
});
|
||||
});
|
||||
|
||||
return timings;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeInterval.js","sources":["../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA+C5B,MAAM,UAAU,YAAY,CAAI,YAA2B,KAAK;IAC9D,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;QAC3C,OAAO,MAAM,CAAC,IAAI,CAEhB,IAAI,CACF,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAC5E,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAG,IAAI,EAAE,SAAS,EAAE,CAC1D,EACR,GAAG,CAAuB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC,CAAC,CACjG,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAQD,MAAM,OAAO,YAAY;IACvB,YAAmB,KAAQ,EAAS,QAAgB;QAAjC,UAAK,GAAL,KAAK,CAAG;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;CACzD"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"merge.js","sources":["../../../src/internal/operators/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAsC3D,MAAM,UAAU,KAAK;IAAO,qBAAoE;SAApE,UAAoE,EAApE,qBAAoE,EAApE,IAAoE;QAApE,gCAAoE;;IAC9F,OAAO,UAAC,MAAqB,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,gBAAC,MAAM,SAAK,WAAW,GAAE,EAArD,CAAqD,CAAC;AAC1F,CAAC"}
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/withLatestFrom");
|
||||
//# sourceMappingURL=withLatestFrom.js.map
|
||||
@@ -0,0 +1,3 @@
|
||||
import { NormalizedOptions, Defaults } from './types';
|
||||
declare const normalizeArguments: (options: NormalizedOptions, defaults?: Defaults | undefined) => NormalizedOptions;
|
||||
export default normalizeArguments;
|
||||
@@ -0,0 +1,31 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function skip(count) {
|
||||
return function (source) { return source.lift(new SkipOperator(count)); };
|
||||
}
|
||||
var SkipOperator = /*@__PURE__*/ (function () {
|
||||
function SkipOperator(total) {
|
||||
this.total = total;
|
||||
}
|
||||
SkipOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new SkipSubscriber(subscriber, this.total));
|
||||
};
|
||||
return SkipOperator;
|
||||
}());
|
||||
var SkipSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(SkipSubscriber, _super);
|
||||
function SkipSubscriber(destination, total) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.total = total;
|
||||
_this.count = 0;
|
||||
return _this;
|
||||
}
|
||||
SkipSubscriber.prototype._next = function (x) {
|
||||
if (++this.count > this.total) {
|
||||
this.destination.next(x);
|
||||
}
|
||||
};
|
||||
return SkipSubscriber;
|
||||
}(Subscriber));
|
||||
//# sourceMappingURL=skip.js.map
|
||||
@@ -0,0 +1,12 @@
|
||||
const __window = typeof window !== 'undefined' && window;
|
||||
const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&
|
||||
self instanceof WorkerGlobalScope && self;
|
||||
const __global = typeof global !== 'undefined' && global;
|
||||
const _root = __window || __global || __self;
|
||||
(function () {
|
||||
if (!_root) {
|
||||
throw new Error('RxJS could not find any global context (window, self, global)');
|
||||
}
|
||||
})();
|
||||
export { _root as root };
|
||||
//# sourceMappingURL=root.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t","2":"C K L H M N O"},C:{"2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t DC EC","16":"xB yB"},D:{"1":"PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC","2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB"},E:{"2":"I u J E F G A B C K L H GC zB HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d","2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB CB DB EB FB GB HB OC PC QC RC qB 9B SC rB"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I"},Q:{"1":"1B"},R:{"1":"8C"},S:{"2":"9C"}},B:7,C:"Background Sync API"};
|
||||
@@ -0,0 +1,105 @@
|
||||
/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isArray,_util_isScheduler PURE_IMPORTS_END */
|
||||
import { Observable } from '../Observable';
|
||||
import { AsyncSubject } from '../AsyncSubject';
|
||||
import { map } from '../operators/map';
|
||||
import { canReportError } from '../util/canReportError';
|
||||
import { isArray } from '../util/isArray';
|
||||
import { isScheduler } from '../util/isScheduler';
|
||||
export function bindCallback(callbackFunc, resultSelector, scheduler) {
|
||||
if (resultSelector) {
|
||||
if (isScheduler(resultSelector)) {
|
||||
scheduler = resultSelector;
|
||||
}
|
||||
else {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
return bindCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));
|
||||
};
|
||||
}
|
||||
}
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
var context = this;
|
||||
var subject;
|
||||
var params = {
|
||||
context: context,
|
||||
subject: subject,
|
||||
callbackFunc: callbackFunc,
|
||||
scheduler: scheduler,
|
||||
};
|
||||
return new Observable(function (subscriber) {
|
||||
if (!scheduler) {
|
||||
if (!subject) {
|
||||
subject = new AsyncSubject();
|
||||
var handler = function () {
|
||||
var innerArgs = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
innerArgs[_i] = arguments[_i];
|
||||
}
|
||||
subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
|
||||
subject.complete();
|
||||
};
|
||||
try {
|
||||
callbackFunc.apply(context, args.concat([handler]));
|
||||
}
|
||||
catch (err) {
|
||||
if (canReportError(subject)) {
|
||||
subject.error(err);
|
||||
}
|
||||
else {
|
||||
console.warn(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
return subject.subscribe(subscriber);
|
||||
}
|
||||
else {
|
||||
var state = {
|
||||
args: args, subscriber: subscriber, params: params,
|
||||
};
|
||||
return scheduler.schedule(dispatch, 0, state);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
function dispatch(state) {
|
||||
var _this = this;
|
||||
var self = this;
|
||||
var args = state.args, subscriber = state.subscriber, params = state.params;
|
||||
var callbackFunc = params.callbackFunc, context = params.context, scheduler = params.scheduler;
|
||||
var subject = params.subject;
|
||||
if (!subject) {
|
||||
subject = params.subject = new AsyncSubject();
|
||||
var handler = function () {
|
||||
var innerArgs = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
innerArgs[_i] = arguments[_i];
|
||||
}
|
||||
var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
|
||||
_this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));
|
||||
};
|
||||
try {
|
||||
callbackFunc.apply(context, args.concat([handler]));
|
||||
}
|
||||
catch (err) {
|
||||
subject.error(err);
|
||||
}
|
||||
}
|
||||
this.add(subject.subscribe(subscriber));
|
||||
}
|
||||
function dispatchNext(state) {
|
||||
var value = state.value, subject = state.subject;
|
||||
subject.next(value);
|
||||
subject.complete();
|
||||
}
|
||||
function dispatchError(state) {
|
||||
var err = state.err, subject = state.subject;
|
||||
subject.error(err);
|
||||
}
|
||||
//# sourceMappingURL=bindCallback.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"toArray.js","sources":["../../src/internal/operators/toArray.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAGlC,SAAS,cAAc,CAAI,GAAQ,EAAE,IAAO,EAAE,KAAa;IACzD,IAAI,KAAK,KAAK,CAAC,EAAE;QACf,OAAO,CAAC,IAAI,CAAC,CAAC;KACf;IACD,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,OAAO,GAAG,CAAC;AACb,CAAC;AAiCD,SAAgB,OAAO;IACrB,OAAO,eAAM,CAAC,cAAc,EAAE,EAAS,CAAC,CAAC;AAC3C,CAAC;AAFD,0BAEC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0.00365,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.01094,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0.00365,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00365,"69":0,"70":0,"71":0,"72":0.00365,"73":0.00365,"74":0,"75":0.00365,"76":0,"77":0,"78":0.00365,"79":0,"80":0,"81":0,"82":0,"83":0.00365,"84":0,"85":0,"86":0,"87":0,"88":0.00729,"89":0.00365,"90":0,"91":0.00365,"92":0,"93":0,"94":0.00365,"95":0,"96":0,"97":0,"98":0.00365,"99":0.00729,"100":0.01094,"101":0.00365,"102":0.01094,"103":0.00365,"104":0.00729,"105":0.00365,"106":0.00729,"107":0.01458,"108":0.50666,"109":0.2916,"110":0.00365,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00365,"39":0,"40":0,"41":0,"42":0.00365,"43":0.00365,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.01094,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0.00365,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.01458,"69":0,"70":0.00729,"71":0.00365,"72":0.00365,"73":0.00365,"74":0.00365,"75":0.00365,"76":0.00365,"77":0,"78":0.00365,"79":0.04739,"80":0.00729,"81":0.00729,"83":0.00729,"84":0.02916,"85":0.01458,"86":0.01458,"87":0.01823,"88":0.00729,"89":0.01094,"90":0.00365,"91":0.08019,"92":0.01458,"93":0.00365,"94":0.05832,"95":0.00729,"96":0.01094,"97":0.02552,"98":0.01458,"99":0.00729,"100":0.01823,"101":0.01094,"102":0.01458,"103":0.05103,"104":0.02552,"105":0.02552,"106":0.03645,"107":0.113,"108":4.39952,"109":4.75673,"110":0,"111":0.00365,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.00729,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0.00365,"64":0,"65":0,"66":0,"67":0.00365,"68":0,"69":0,"70":0,"71":0,"72":0.00365,"73":0.00729,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.00365,"80":0,"81":0.00365,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00365,"93":0.30983,"94":0.35721,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0,"16":0.00365,"17":0,"18":0.01094,"79":0,"80":0,"81":0,"83":0,"84":0.00365,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00365,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.00365,"104":0,"105":0.01094,"106":0.00365,"107":0.01094,"108":0.30618,"109":0.32076},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00365,"15":0.00365,_:"0","3.1":0,"3.2":0,"5.1":0.00365,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.01094,"14.1":0.02187,"15.1":0,"15.2-15.3":0,"15.4":0.00365,"15.5":0.02187,"15.6":0.0401,"16.0":0.00365,"16.1":0.01823,"16.2":0.04374,"16.3":0.00365},G:{"8":0,"3.2":0.00109,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00382,"6.0-6.1":0,"7.0-7.1":0.01201,"8.1-8.4":0.00655,"9.0-9.2":0.00655,"9.3":0.01146,"10.0-10.2":0.00109,"10.3":0.00819,"11.0-11.2":0.00928,"11.3-11.4":0.00327,"12.0-12.1":0.00273,"12.2-12.5":0.16156,"13.0-13.1":0.00218,"13.2":0.00273,"13.3":0.006,"13.4-13.7":0.04366,"14.0-14.4":0.06823,"14.5-14.8":0.13099,"15.0-15.1":0.04039,"15.2-15.3":0.05676,"15.4":0.04639,"15.5":0.14682,"15.6":0.50324,"16.0":0.79961,"16.1":1.62707,"16.2":1.2319,"16.3":0.09443},P:{"4":0.4176,"5.0-5.4":0.01019,"6.2-6.4":0.02037,"7.2-7.4":0.42779,"8.2":0,"9.2":0.02037,"10.1":0,"11.1-11.2":0.08148,"12.0":0.03056,"13.0":0.0713,"14.0":0.05093,"15.0":0.05093,"16.0":0.16297,"17.0":0.20371,"18.0":0.16297,"19.0":1.98616},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00264,"4.2-4.3":0.01583,"4.4":0,"4.4.3-4.4.4":0.13985},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01823,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.1843},Q:{"13.1":0},O:{"0":0.23514},H:{"0":0.4392},L:{"0":75.4193},S:{"2.5":0}};
|
||||
Reference in New Issue
Block a user