* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
;
(function () {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
/** Used as the semantic version number. */
var VERSION = '4.15.0';
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_SAFE_INTEGER = 9007199254740991;
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/,
reLeadingDot = /^\./,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;
/** Used to access faster Node.js helpers. */
var nodeUtil = function () {
try {
return freeProcess && freeProcess.binding('util');
} catch (e) {}
}();
/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
/*--------------------------------------------------------------------------*/
/**
* Adds the key-value `pair` to `map`.
*
* @private
* @param {Object} map The map to modify.
* @param {Array} pair The key-value pair to add.
* @returns {Object} Returns `map`.
*/
function addMapEntry(map, pair) {
// Don't return `map.set` because it's not chainable in IE 11.
map.set(pair[0], pair[1]);
return map;
}
/**
* Adds `value` to `set`.
*
* @private
* @param {Object} set The set to modify.
* @param {*} value The value to add.
* @returns {Object} Returns `set`.
*/
function addSetEntry(set, value) {
// Don't return `set.add` because it's not chainable in IE 11.
set.add(value);
return set;
}
/**
* A faster alternative to `Function#apply`, this function invokes `func`
* with the `this` binding of `thisArg` and the arguments of `args`.
*
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
* @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
switch (args.length) {
case 0:
return func.call(thisArg);
case 1:
return func.call(thisArg, args[0]);
case 2:
return func.call(thisArg, args[0], args[1]);
case 3:
return func.call(thisArg, args[0], args[1], args[2]);
}
return func.apply(thisArg, args);
}
/**
* A specialized version of `_.forEach` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, iteratee) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
/**
* Appends the elements of `values` to `array`.
*
* @private
* @param {Array} array The array to modify.
* @param {Array} values The values to append.
* @returns {Array} Returns `array`.
*/
function arrayPush(array, values) {
var index = -1,
length = values.length,
offset = array.length;
while (++index < length) {
array[offset + index] = values[index];
}
return array;
}
/**
* A specialized version of `_.reduce` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
* @param {boolean} [initAccum] Specify using the first element of `array` as
* the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduce(array, iteratee, accumulator, initAccum) {
var index = -1,
length = array ? array.length : 0;
if (initAccum && length) {
accumulator = array[++index];
}
while (++index < length) {
accumulator = iteratee(accumulator, array[index], index, array);
}
return accumulator;
}
/**
* A specialized version of `_.some` for arrays without support for iteratee
* shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
}
/**
* The base implementation of `_.property` without support for deep paths.
*
* @private
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function baseProperty(key) {
return function (object) {
return object == null ? undefined : object[key];
};
}
/**
* The base implementation of `_.times` without support for iteratee shorthands
* or max array length checks.
*
* @private
* @param {number} n The number of times to invoke `iteratee`.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the array of results.
*/
function baseTimes(n, iteratee) {
var index = -1,
result = Array(n);
while (++index < n) {
result[index] = iteratee(index);
}
return result;
}
/**
* The base implementation of `_.unary` without support for storing metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
*/
function baseUnary(func) {
return function (value) {
return func(value);
};
}
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
/**
* Checks if `value` is a host object in IE < 9.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
function isHostObject(value) {
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var result = false;
if (value != null && typeof value.toString != 'function') {
try {
result = !!(value + '');
} catch (e) {}
}
return result;
}
/**
* Converts `map` to its key-value pairs.
*
* @private
* @param {Object} map The map to convert.
* @returns {Array} Returns the key-value pairs.
*/
function mapToArray(map) {
var index = -1,
result = Array(map.size);
map.forEach(function (value, key) {
result[++index] = [key, value];
});
return result;
}
/**
* Creates a unary function that invokes `func` with its argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
function overArg(func, transform) {
return function (arg) {
return func(transform(arg));
};
}
/**
* Converts `set` to an array of its values.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the values.
*/
function setToArray(set) {
var index = -1,
result = Array(set.size);
set.forEach(function (value) {
result[++index] = value;
});
return result;
}
/*--------------------------------------------------------------------------*/
/** Used for built-in method references. */
var arrayProto = Array.prototype,
funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
/** Used to detect methods masquerading as native. */
var maskSrcKey = function () {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? 'Symbol(src)_1.' + uid : '';
}();
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
Symbol = root.Symbol,
Uint8Array = root.Uint8Array,
getPrototype = overArg(Object.getPrototypeOf, Object),
objectCreate = Object.create,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
splice = arrayProto.splice;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols,
nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
nativeKeys = overArg(Object.keys, Object),
nativeMax = Math.max;
/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView'),
Map = getNative(root, 'Map'),
Promise = getNative(root, 'Promise'),
Set = getNative(root, 'Set'),
WeakMap = getNative(root, 'WeakMap'),
nativeCreate = getNative(Object, 'create');
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
var nonEnumShadows = !propertyIsEnumerable.call({
'valueOf': 1
}, 'valueOf');
/** Used to lookup unminified function names. */
var realNames = {};
/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
mapCtorString = toSource(Map),
promiseCtorString = toSource(Promise),
setCtorString = toSource(Set),
weakMapCtorString = toSource(WeakMap);
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
/*------------------------------------------------------------------------*/
/**
* Creates a `lodash` object which wraps `value` to enable implicit method
* chain sequences. Methods that operate on and return arrays, collections,
* and functions can be chained together. Methods that retrieve a single value
* or may return a primitive value will automatically end the chain sequence
* and return the unwrapped value. Otherwise, the value must be unwrapped
* with `_#value`.
*
* Explicit chain sequences, which must be unwrapped with `_#value`, may be
* enabled using `_.chain`.
*
* The execution of chained methods is lazy, that is, it's deferred until
* `_#value` is implicitly or explicitly called.
*
* Lazy evaluation allows several methods to support shortcut fusion.
* Shortcut fusion is an optimization to merge iteratee calls; this avoids
* the creation of intermediate arrays and can greatly reduce the number of
* iteratee executions. Sections of a chain sequence qualify for shortcut
* fusion if the section is applied to an array of at least `200` elements
* and any iteratees accept only one argument. The heuristic for whether a
* section qualifies for shortcut fusion is subject to change.
*
* Chaining is supported in custom builds as long as the `_#value` method is
* directly or indirectly included in the build.
*
* In addition to lodash methods, wrappers have `Array` and `String` methods.
*
* The wrapper `Array` methods are:
* `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
*
* The wrapper `String` methods are:
* `replace` and `split`
*
* The wrapper methods that support shortcut fusion are:
* `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
* `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
* `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
*
* The chainable wrapper methods are:
* `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
* `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
* `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
* `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
* `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
* `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
* `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
* `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
* `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
* `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
* `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
* `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
* `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
* `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
* `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
* `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
* `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
* `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
* `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
* `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
* `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
* `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
* `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
* `zipObject`, `zipObjectDeep`, and `zipWith`
*
* The wrapper methods that are **not** chainable by default are:
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
* `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
* `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
* `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
* `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
* `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
* `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
* `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
* `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
* `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
* `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
* `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
* `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
* `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
* `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
* `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
* `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
* `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
* `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
* `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
* `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
* `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
* `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
* `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
* `upperFirst`, `value`, and `words`
*
* @name _
* @constructor
* @category Seq
* @param {*} value The value to wrap in a `lodash` instance.
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* function square(n) {
* return n * n;
* }
*
* var wrapped = _([1, 2, 3]);
*
* // Returns an unwrapped value.
* wrapped.reduce(_.add);
* // => 6
*
* // Returns a wrapped value.
* var squares = wrapped.map(square);
*
* _.isArray(squares);
* // => false
*
* _.isArray(squares.value());
* // => true
*/
function lodash() {// No operation performed.
}
/*------------------------------------------------------------------------*/
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
}
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
return this.has(key) && delete this.__data__[key];
}
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
}
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
return this;
} // Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
/*------------------------------------------------------------------------*/
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
return true;
}
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
} // Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
/*------------------------------------------------------------------------*/
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.__data__ = {
'hash': new Hash(),
'map': new (Map || ListCache)(),
'string': new Hash()
};
}
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
return getMapData(this, key)['delete'](key);
}
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
getMapData(this, key).set(key, value);
return this;
} // Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
/*------------------------------------------------------------------------*/
/**
*
* Creates an array cache object to store unique values.
*
* @private
* @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
var index = -1,
length = values ? values.length : 0;
this.__data__ = new MapCache();
while (++index < length) {
this.add(values[index]);
}
}
/**
* Adds `value` to the array cache.
*
* @private
* @name add
* @memberOf SetCache
* @alias push
* @param {*} value The value to cache.
* @returns {Object} Returns the cache instance.
*/
function setCacheAdd(value) {
this.__data__.set(value, HASH_UNDEFINED);
return this;
}
/**
* Checks if `value` is in the array cache.
*
* @private
* @name has
* @memberOf SetCache
* @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
function setCacheHas(value) {
return this.__data__.has(value);
} // Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;
/*------------------------------------------------------------------------*/
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Stack(entries) {
this.__data__ = new ListCache(entries);
}
/**
* Removes all key-value entries from the stack.
*
* @private
* @name clear
* @memberOf Stack
*/
function stackClear() {
this.__data__ = new ListCache();
}
/**
* Removes `key` and its value from the stack.
*
* @private
* @name delete
* @memberOf Stack
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function stackDelete(key) {
return this.__data__['delete'](key);
}
/**
* Gets the stack value for `key`.
*
* @private
* @name get
* @memberOf Stack
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function stackGet(key) {
return this.__data__.get(key);
}
/**
* Checks if a stack value for `key` exists.
*
* @private
* @name has
* @memberOf Stack
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function stackHas(key) {
return this.__data__.has(key);
}
/**
* Sets the stack `key` to `value`.
*
* @private
* @name set
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var cache = this.__data__;
if (cache instanceof ListCache) {
var pairs = cache.__data__;
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
pairs.push([key, value]);
return this;
}
cache = this.__data__ = new MapCache(pairs);
}
cache.set(key, value);
return this;
} // Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;
/*------------------------------------------------------------------------*/
/**
* Creates an array of the enumerable property names of the array-like `value`.
*
* @private
* @param {*} value The value to query.
* @param {boolean} inherited Specify returning inherited property names.
* @returns {Array} Returns the array of property names.
*/
function arrayLikeKeys(value, inherited) {
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
// Safari 9 makes `arguments.length` enumerable in strict mode.
var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
var length = result.length,
skipIndexes = !!length;
for (var key in value) {
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
result.push(key);
}
}
return result;
}
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignMergeValue(object, key, value) {
if (value !== undefined && !eq(object[key], value) || typeof key == 'number' && value === undefined && !(key in object)) {
object[key] = value;
}
}
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
var objValue = object[key];
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
object[key] = value;
}
}
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
/**
* The base implementation of `_.assign` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssign(object, source) {
return object && copyObject(source, keys(source), object);
}
/**
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
* traversed objects.
*
* @private
* @param {*} value The value to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @param {boolean} [isFull] Specify a clone including symbols.
* @param {Function} [customizer] The function to customize cloning.
* @param {string} [key] The key of `value`.
* @param {Object} [object] The parent object of `value`.
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
* @returns {*} Returns the cloned value.
*/
function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
var result;
if (customizer) {
result = object ? customizer(value, key, object, stack) : customizer(value);
}
if (result !== undefined) {
return result;
}
if (!isObject(value)) {
return value;
}
var isArr = isArray(value);
if (isArr) {
result = initCloneArray(value);
if (!isDeep) {
return copyArray(value, result);
}
} else {
var tag = getTag(value),
isFunc = tag == funcTag || tag == genTag;
if (isBuffer(value)) {
return cloneBuffer(value, isDeep);
}
if (tag == objectTag || tag == argsTag || isFunc && !object) {
if (isHostObject(value)) {
return object ? value : {};
}
result = initCloneObject(isFunc ? {} : value);
if (!isDeep) {
return copySymbols(value, baseAssign(result, value));
}
} else {
if (!cloneableTags[tag]) {
return object ? value : {};
}
result = initCloneByTag(value, tag, baseClone, isDeep);
}
} // Check for circular references and return its corresponding clone.
stack || (stack = new Stack());
var stacked = stack.get(value);
if (stacked) {
return stacked;
}
stack.set(value, result);
if (!isArr) {
var props = isFull ? getAllKeys(value) : keys(value);
}
arrayEach(props || value, function (subValue, key) {
if (props) {
key = subValue;
subValue = value[key];
} // Recursively populate clone (susceptible to call stack limits).
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
});
return result;
}
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
function baseCreate(proto) {
return isObject(proto) ? objectCreate(proto) : {};
}
/**
* The base implementation of `_.forEach` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
*/
var baseEach = createBaseEach(baseForOwn);
/**
* The base implementation of `baseForOwn` which iterates over `object`
* properties returned by `keysFunc` and invokes `iteratee` for each property.
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {Function} keysFunc The function to get the keys of `object`.
* @returns {Object} Returns `object`.
*/
var baseFor = createBaseFor();
/**
* The base implementation of `_.forOwn` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
*/
function baseForOwn(object, iteratee) {
return object && baseFor(object, iteratee, keys);
}
/**
* The base implementation of `_.get` without support for default values.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
path = isKey(path, object) ? [path] : castPath(path);
var index = 0,
length = path.length;
while (object != null && index < length) {
object = object[toKey(path[index++])];
}
return index && index == length ? object : undefined;
}
/**
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
* symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Function} keysFunc The function to get the keys of `object`.
* @param {Function} symbolsFunc The function to get the symbols of `object`.
* @returns {Array} Returns the array of property names and symbols.
*/
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
var result = keysFunc(object);
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}
/**
* The base implementation of `getTag`.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function baseGetTag(value) {
return objectToString.call(value);
}
/**
* The base implementation of `_.hasIn` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHasIn(object, key) {
return object != null && key in Object(object);
}
/**
* The base implementation of `_.isEqual` which supports partial comparisons
* and tracks traversed objects.
*
* @private
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {Function} [customizer] The function to customize comparisons.
* @param {boolean} [bitmask] The bitmask of comparison flags.
* The bitmask may be composed of the following flags:
* 1 - Unordered comparison
* 2 - Partial comparison
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
*/
function baseIsEqual(value, other, customizer, bitmask, stack) {
if (value === other) {
return true;
}
if (value == null || other == null || !isObject(value) && !isObjectLike(other)) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
}
/**
* A specialized version of `baseIsEqual` for arrays and objects which performs
* deep comparisons and tracks traversed objects enabling objects with circular
* references to be compared.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} [customizer] The function to customize comparisons.
* @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = arrayTag,
othTag = arrayTag;
if (!objIsArr) {
objTag = getTag(object);
objTag = objTag == argsTag ? objectTag : objTag;
}
if (!othIsArr) {
othTag = getTag(other);
othTag = othTag == argsTag ? objectTag : othTag;
}
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
if (isSameTag && !objIsObj) {
stack || (stack = new Stack());
return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
}
if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
var objUnwrapped = objIsWrapped ? object.value() : object,
othUnwrapped = othIsWrapped ? other.value() : other;
stack || (stack = new Stack());
return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
}
}
if (!isSameTag) {
return false;
}
stack || (stack = new Stack());
return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
}
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @param {Array} matchData The property names, values, and compare flags to match.
* @param {Function} [customizer] The function to customize comparisons.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
function baseIsMatch(object, source, matchData, customizer) {
var index = matchData.length,
length = index,
noCustomizer = !customizer;
if (object == null) {
return !length;
}
object = Object(object);
while (index--) {
var data = matchData[index];
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
return false;
}
}
while (++index < length) {
data = matchData[index];
var key = data[0],
objValue = object[key],
srcValue = data[1];
if (noCustomizer && data[2]) {
if (objValue === undefined && !(key in object)) {
return false;
}
} else {
var stack = new Stack();
if (customizer) {
var result = customizer(objValue, srcValue, key, object, source, stack);
}
if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) {
return false;
}
}
}
return true;
}
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
/**
* The base implementation of `_.isTypedArray` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
*/
function baseIsTypedArray(value) {
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
}
/**
* The base implementation of `_.iteratee`.
*
* @private
* @param {*} [value=_.identity] The value to convert to an iteratee.
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
if (typeof value == 'object') {
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
}
return property(value);
}
/**
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeys(object) {
if (!isPrototype(object)) {
return nativeKeys(object);
}
var result = [];
for (var key in Object(object)) {
if (hasOwnProperty.call(object, key) && key != 'constructor') {
result.push(key);
}
}
return result;
}
/**
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
if (!isObject(object)) {
return nativeKeysIn(object);
}
var isProto = isPrototype(object),
result = [];
for (var key in object) {
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
/**
* The base implementation of `_.matches` which doesn't clone `source`.
*
* @private
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
}
return function (object) {
return object === source || baseIsMatch(object, source, matchData);
};
}
/**
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
*
* @private
* @param {string} path The path of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatchesProperty(path, srcValue) {
if (isKey(path) && isStrictComparable(srcValue)) {
return matchesStrictComparable(toKey(path), srcValue);
}
return function (object) {
var objValue = get(object, path);
return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
};
}
/**
* The base implementation of `_.merge` without support for multiple sources.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
if (!(isArray(source) || isTypedArray(source))) {
var props = baseKeysIn(source);
}
arrayEach(props || source, function (srcValue, key) {
if (props) {
key = srcValue;
srcValue = source[key];
}
if (isObject(srcValue)) {
stack || (stack = new Stack());
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
} else {
var newValue = customizer ? customizer(object[key], srcValue, key + '', object, source, stack) : undefined;
if (newValue === undefined) {
newValue = srcValue;
}
assignMergeValue(object, key, newValue);
}
});
}
/**
* A specialized version of `baseMerge` for arrays and objects which performs
* deep merges and tracks traversed objects enabling objects with circular
* references to be merged.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {string} key The key of the value to merge.
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = object[key],
srcValue = source[key],
stacked = stack.get(srcValue);
if (stacked) {
assignMergeValue(object, key, stacked);
return;
}
var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : undefined;
var isCommon = newValue === undefined;
if (isCommon) {
newValue = srcValue;
if (isArray(srcValue) || isTypedArray(srcValue)) {
if (isArray(objValue)) {
newValue = objValue;
} else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
} else {
isCommon = false;
newValue = baseClone(srcValue, true);
}
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
if (isArguments(objValue)) {
newValue = toPlainObject(objValue);
} else if (!isObject(objValue) || srcIndex && isFunction(objValue)) {
isCommon = false;
newValue = baseClone(srcValue, true);
} else {
newValue = objValue;
}
} else {
isCommon = false;
}
}
if (isCommon) {
// Recursively merge objects and arrays (susceptible to call stack limits).
stack.set(srcValue, newValue);
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
stack['delete'](srcValue);
}
assignMergeValue(object, key, newValue);
}
/**
* A specialized version of `baseProperty` which supports deep paths.
*
* @private
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function basePropertyDeep(path) {
return function (object) {
return baseGet(object, path);
};
}
/**
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
*/
function baseRest(func, start) {
start = nativeMax(start === undefined ? func.length - 1 : start, 0);
return function () {
var args = arguments,
index = -1,
length = nativeMax(args.length - start, 0),
array = Array(length);
while (++index < length) {
array[index] = args[start + index];
}
index = -1;
var otherArgs = Array(start + 1);
while (++index < start) {
otherArgs[index] = args[index];
}
otherArgs[start] = array;
return apply(func, this, otherArgs);
};
}
/**
* The base implementation of `_.toString` which doesn't convert nullish
* values to empty strings.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
// Exit early for strings to avoid a performance hit in some environments.
if (typeof value == 'string') {
return value;
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
var result = value + '';
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
}
/**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value) {
return isArray(value) ? value : stringToPath(value);
}
/**
* Creates a clone of `buffer`.
*
* @private
* @param {Buffer} buffer The buffer to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Buffer} Returns the cloned buffer.
*/
function cloneBuffer(buffer, isDeep) {
if (isDeep) {
return buffer.slice();
}
var result = new buffer.constructor(buffer.length);
buffer.copy(result);
return result;
}
/**
* Creates a clone of `arrayBuffer`.
*
* @private
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
/**
* Creates a clone of `dataView`.
*
* @private
* @param {Object} dataView The data view to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned data view.
*/
function cloneDataView(dataView, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}
/**
* Creates a clone of `map`.
*
* @private
* @param {Object} map The map to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned map.
*/
function cloneMap(map, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
return arrayReduce(array, addMapEntry, new map.constructor());
}
/**
* Creates a clone of `regexp`.
*
* @private
* @param {Object} regexp The regexp to clone.
* @returns {Object} Returns the cloned regexp.
*/
function cloneRegExp(regexp) {
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
result.lastIndex = regexp.lastIndex;
return result;
}
/**
* Creates a clone of `set`.
*
* @private
* @param {Object} set The set to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set, isDeep, cloneFunc) {
var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
return arrayReduce(array, addSetEntry, new set.constructor());
}
/**
* Creates a clone of the `symbol` object.
*
* @private
* @param {Object} symbol The symbol object to clone.
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
/**
* Creates a clone of `typedArray`.
*
* @private
* @param {Object} typedArray The typed array to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function copyArray(source, array) {
var index = -1,
length = source.length;
array || (array = Array(length));
while (++index < length) {
array[index] = source[index];
}
return array;
}
/**
* Copies properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy properties from.
* @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
*/
function copyObject(source, props, object, customizer) {
object || (object = {});
var index = -1,
length = props.length;
while (++index < length) {
var key = props[index];
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
assignValue(object, key, newValue === undefined ? source[key] : newValue);
}
return object;
}
/**
* Copies own symbol properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbols(source, object) {
return copyObject(source, getSymbols(source), object);
}
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return baseRest(function (object, sources) {
var index = -1,
length = sources.length,
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined;
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
}
object = Object(object);
while (++index < length) {
var source = sources[index];
if (source) {
assigner(object, source, index, customizer);
}
}
return object;
});
}
/**
* Creates a `baseEach` or `baseEachRight` function.
*
* @private
* @param {Function} eachFunc The function to iterate over a collection.
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseEach(eachFunc, fromRight) {
return function (collection, iteratee) {
if (collection == null) {
return collection;
}
if (!isArrayLike(collection)) {
return eachFunc(collection, iteratee);
}
var length = collection.length,
index = fromRight ? length : -1,
iterable = Object(collection);
while (fromRight ? index-- : ++index < length) {
if (iteratee(iterable[index], index, iterable) === false) {
break;
}
}
return collection;
};
}
/**
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseFor(fromRight) {
return function (object, iteratee, keysFunc) {
var index = -1,
iterable = Object(object),
props = keysFunc(object),
length = props.length;
while (length--) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === false) {
break;
}
}
return object;
};
}
/**
* A specialized version of `baseIsEqualDeep` for arrays with support for
* partial deep comparisons.
*
* @private
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
arrLength = array.length,
othLength = other.length;
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
return false;
} // Assume cyclic values are equal.
var stacked = stack.get(array);
if (stacked && stack.get(other)) {
return stacked == other;
}
var index = -1,
result = true,
seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : undefined;
stack.set(array, other);
stack.set(other, array); // Ignore non-index properties.
while (++index < arrLength) {
var arrValue = array[index],
othValue = other[index];
if (customizer) {
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
}
if (compared !== undefined) {
if (compared) {
continue;
}
result = false;
break;
} // Recursively compare arrays (susceptible to call stack limits).
if (seen) {
if (!arraySome(other, function (othValue, othIndex) {
if (!seen.has(othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
return seen.add(othIndex);
}
})) {
result = false;
break;
}
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
result = false;
break;
}
}
stack['delete'](array);
stack['delete'](other);
return result;
}
/**
* A specialized version of `baseIsEqualDeep` for comparing objects of
* the same `toStringTag`.
*
* **Note:** This function only supports comparing values with tags of
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
switch (tag) {
case dataViewTag:
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
return false;
}
object = object.buffer;
other = other.buffer;
case arrayBufferTag:
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
return false;
}
return true;
case boolTag:
case dateTag:
case numberTag:
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return eq(+object, +other);
case errorTag:
return object.name == other.name && object.message == other.message;
case regexpTag:
case stringTag:
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return object == other + '';
case mapTag:
var convert = mapToArray;
case setTag:
var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
convert || (convert = setToArray);
if (object.size != other.size && !isPartial) {
return false;
} // Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked) {
return stacked == other;
}
bitmask |= UNORDERED_COMPARE_FLAG; // Recursively compare objects (susceptible to call stack limits).
stack.set(object, other);
var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
stack['delete'](object);
return result;
case symbolTag:
if (symbolValueOf) {
return symbolValueOf.call(object) == symbolValueOf.call(other);
}
}
return false;
}
/**
* A specialized version of `baseIsEqualDeep` for objects with support for
* partial deep comparisons.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} customizer The function to customize comparisons.
* @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
* for more details.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
objProps = keys(object),
objLength = objProps.length,
othProps = keys(other),
othLength = othProps.length;
if (objLength != othLength && !isPartial) {
return false;
}
var index = objLength;
while (index--) {
var key = objProps[index];
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
return false;
}
} // Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked && stack.get(other)) {
return stacked == other;
}
var result = true;
stack.set(object, other);
stack.set(other, object);
var skipCtor = isPartial;
while (++index < objLength) {
key = objProps[index];
var objValue = object[key],
othValue = other[key];
if (customizer) {
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
} // Recursively compare objects (susceptible to call stack limits).
if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) {
result = false;
break;
}
skipCtor || (skipCtor = key == 'constructor');
}
if (result && !skipCtor) {
var objCtor = object.constructor,
othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal.
if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
result = false;
}
}
stack['delete'](object);
stack['delete'](other);
return result;
}
/**
* Creates an array of own enumerable property names and symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names and symbols.
*/
function getAllKeys(object) {
return baseGetAllKeys(object, keys, getSymbols);
}
/**
* Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
* this function returns the custom method, otherwise it returns `baseIteratee`.
* If arguments are provided, the chosen function is invoked with them and
* its result is returned.
*
* @private
* @param {*} [value] The value to convert to an iteratee.
* @param {number} [arity] The arity of the created iteratee.
* @returns {Function} Returns the chosen function or its result.
*/
function getIteratee() {
var result = lodash.iteratee || iteratee;
result = result === iteratee ? baseIteratee : result;
return arguments.length ? result(arguments[0], arguments[1]) : result;
}
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
}
/**
* Gets the property names, values, and compare flags of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the match data of `object`.
*/
function getMatchData(object) {
var result = keys(object),
length = result.length;
while (length--) {
var key = result[length],
value = object[key];
result[length] = [key, value, isStrictComparable(value)];
}
return result;
}
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
/**
* Creates an array of the own enumerable symbol properties of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
/**
* Gets the `toStringTag` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11,
// for data views in Edge < 14, and promises in Node.js.
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
getTag = function getTag(value) {
var result = objectToString.call(value),
Ctor = result == objectTag ? value.constructor : undefined,
ctorString = Ctor ? toSource(Ctor) : undefined;
if (ctorString) {
switch (ctorString) {
case dataViewCtorString:
return dataViewTag;
case mapCtorString:
return mapTag;
case promiseCtorString:
return promiseTag;
case setCtorString:
return setTag;
case weakMapCtorString:
return weakMapTag;
}
}
return result;
};
}
/**
* Checks if `path` exists on `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @param {Function} hasFunc The function to check properties.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
*/
function hasPath(object, path, hasFunc) {
path = isKey(path, object) ? [path] : castPath(path);
var result,
index = -1,
length = path.length;
while (++index < length) {
var key = toKey(path[index]);
if (!(result = object != null && hasFunc(object, key))) {
break;
}
object = object[key];
}
if (result) {
return result;
}
var length = object ? object.length : 0;
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
}
/**
* Initializes an array clone.
*
* @private
* @param {Array} array The array to clone.
* @returns {Array} Returns the initialized clone.
*/
function initCloneArray(array) {
var length = array.length,
result = array.constructor(length); // Add properties assigned by `RegExp#exec`.
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
result.index = array.index;
result.input = array.input;
}
return result;
}
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
}
/**
* Initializes an object clone based on its `toStringTag`.
*
* **Note:** This function only supports cloning values with tags of
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
* @param {Object} object The object to clone.
* @param {string} tag The `toStringTag` of the object to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneByTag(object, tag, cloneFunc, isDeep) {
var Ctor = object.constructor;
switch (tag) {
case arrayBufferTag:
return cloneArrayBuffer(object);
case boolTag:
case dateTag:
return new Ctor(+object);
case dataViewTag:
return cloneDataView(object, isDeep);
case float32Tag:
case float64Tag:
case int8Tag:
case int16Tag:
case int32Tag:
case uint8Tag:
case uint8ClampedTag:
case uint16Tag:
case uint32Tag:
return cloneTypedArray(object, isDeep);
case mapTag:
return cloneMap(object, isDeep, cloneFunc);
case numberTag:
case stringTag:
return new Ctor(object);
case regexpTag:
return cloneRegExp(object);
case setTag:
return cloneSet(object, isDeep, cloneFunc);
case symbolTag:
return cloneSymbol(object);
}
}
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
}
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
return false;
}
var type = typeof index;
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
return eq(object[index], value);
}
return false;
}
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
}
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
}
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && maskSrcKey in func;
}
/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
return value === proto;
}
/**
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` if suitable for strict
* equality comparisons, else `false`.
*/
function isStrictComparable(value) {
return value === value && !isObject(value);
}
/**
* A specialized version of `matchesProperty` for source values suitable
* for strict equality comparisons, i.e. `===`.
*
* @private
* @param {string} key The key of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function matchesStrictComparable(key, srcValue) {
return function (object) {
if (object == null) {
return false;
}
return object[key] === srcValue && (srcValue !== undefined || key in Object(object));
};
}
/**
* This function is like
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* except that it includes inherited enumerable properties.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function nativeKeysIn(object) {
var result = [];
if (object != null) {
for (var key in Object(object)) {
result.push(key);
}
}
return result;
}
/**
* Converts `string` to a property path array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoize(function (string) {
string = toString(string);
var result = [];
if (reLeadingDot.test(string)) {
result.push('');
}
string.replace(rePropName, function (match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : number || match);
});
return result;
});
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value == 'string' || isSymbol(value)) {
return value;
}
var result = value + '';
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
}
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return func + '';
} catch (e) {}
}
return '';
}
/*------------------------------------------------------------------------*/
/**
* Creates an array with all falsey values removed. The values `false`, `null`,
* `0`, `""`, `undefined`, and `NaN` are falsey.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to compact.
* @returns {Array} Returns the new array of filtered values.
* @example
*
* _.compact([0, 1, false, 2, '', 3]);
* // => [1, 2, 3]
*/
function compact(array) {
var index = -1,
length = array ? array.length : 0,
resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (value) {
result[resIndex++] = value;
}
}
return result;
}
/*------------------------------------------------------------------------*/
/**
* Iterates over elements of `collection` and invokes `iteratee` for each element.
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* **Note:** As with other "Collections" methods, objects with a "length"
* property are iterated like arrays. To avoid this behavior use `_.forIn`
* or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
* @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
* @see _.forEachRight
* @example
*
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
* // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
var func = isArray(collection) ? arrayEach : baseEach;
return func(collection, getIteratee(iteratee, 3));
}
/*------------------------------------------------------------------------*/
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
* @returns {Function} Returns the new memoized function.
* @example
*
* var object = { 'a': 1, 'b': 2 };
* var other = { 'c': 3, 'd': 4 };
*
* var values = _.memoize(_.values);
* values(object);
* // => [1, 2]
*
* values(other);
* // => [3, 4]
*
* object.a = 2;
* values(object);
* // => [1, 2]
*
* // Modify the result cache.
* values.cache.set(object, ['a', 'b']);
* values(object);
* // => ['a', 'b']
*
* // Replace `_.memoize.Cache`.
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || resolver && typeof resolver != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function memoized() {
var args = arguments,
key = resolver ? resolver.apply(this, args) : args[0],
cache = memoized.cache;
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result);
return result;
};
memoized.cache = new (memoize.Cache || MapCache)();
return memoized;
} // Assign cache to `_.memoize`.
memoize.Cache = MapCache;
/*------------------------------------------------------------------------*/
/**
* Creates a shallow clone of `value`.
*
* **Note:** This method is loosely based on the
* [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
* and supports cloning arrays, array buffers, booleans, date objects, maps,
* numbers, `Object` objects, regexes, sets, strings, symbols, and typed
* arrays. The own enumerable properties of `arguments` objects are cloned
* as plain objects. An empty object is returned for uncloneable values such
* as error objects, functions, DOM nodes, and WeakMaps.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to clone.
* @returns {*} Returns the cloned value.
* @see _.cloneDeep
* @example
*
* var objects = [{ 'a': 1 }, { 'b': 2 }];
*
* var shallow = _.clone(objects);
* console.log(shallow[0] === objects[0]);
* // => true
*/
function clone(value) {
return baseClone(value, false, true);
}
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || value !== value && other !== other;
}
/**
* Checks if `value` is likely an `arguments` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
* else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
* // => true
*
* _.isArguments([1, 2, 3]);
* // => false
*/
function isArguments(value) {
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
}
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && isLength(value.length) && !isFunction(value);
}
/**
* This method is like `_.isArrayLike` except that it also checks if `value`
* is an object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array-like object,
* else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
* // => true
*
* _.isArrayLikeObject(document.body.children);
* // => true
*
* _.isArrayLikeObject('abc');
* // => false
*
* _.isArrayLikeObject(_.noop);
* // => false
*/
function isArrayLikeObject(value) {
return isObjectLike(value) && isArrayLike(value);
}
/**
* Checks if `value` is a buffer.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
* @example
*
* _.isBuffer(new Buffer(2));
* // => true
*
* _.isBuffer(new Uint8Array(2));
* // => false
*/
var isBuffer = nativeIsBuffer || stubFalse;
/**
* Checks if `value` is an empty object, collection, map, or set.
*
* Objects are considered empty if they have no own enumerable string keyed
* properties.
*
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
* jQuery-like collections are considered empty if they have a `length` of `0`.
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
* @example
*
* _.isEmpty(null);
* // => true
*
* _.isEmpty(true);
* // => true
*
* _.isEmpty(1);
* // => true
*
* _.isEmpty([1, 2, 3]);
* // => false
*
* _.isEmpty({ 'a': 1 });
* // => false
*/
function isEmpty(value) {
if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) {
return !value.length;
}
var tag = getTag(value);
if (tag == mapTag || tag == setTag) {
return !value.size;
}
if (nonEnumShadows || isPrototype(value)) {
return !nativeKeys(value).length;
}
for (var key in value) {
if (hasOwnProperty.call(value, key)) {
return false;
}
}
return true;
}
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This method is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
* @example
*
* function Foo() {
* this.a = 1;
* }
*
* _.isPlainObject(new Foo);
* // => false
*
* _.isPlainObject([1, 2, 3]);
* // => false
*
* _.isPlainObject({ 'x': 0, 'y': 0 });
* // => true
*
* _.isPlainObject(Object.create(null));
* // => true
*/
function isPlainObject(value) {
if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {
return false;
}
var proto = getPrototype(value);
if (proto === null) {
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
}
/**
* Checks if `value` is classified as a typed array.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
* // => true
*
* _.isTypedArray([]);
* // => false
*/
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
/**
* Converts `value` to a plain object flattening inherited enumerable string
* keyed properties of `value` to own properties of the plain object.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {Object} Returns the converted plain object.
* @example
*
* function Foo() {
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.assign({ 'a': 1 }, new Foo);
* // => { 'a': 1, 'b': 2 }
*
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
* // => { 'a': 1, 'b': 2, 'c': 3 }
*/
function toPlainObject(value) {
return copyObject(value, keysIn(value));
}
/**
* Converts `value` to a string. An empty string is returned for `null`
* and `undefined` values. The sign of `-0` is preserved.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
* @example
*
* _.toString(null);
* // => ''
*
* _.toString(-0);
* // => '-0'
*
* _.toString([1, 2, 3]);
* // => '1,2,3'
*/
function toString(value) {
return value == null ? '' : baseToString(value);
}
/*------------------------------------------------------------------------*/
/**
* Gets the value at `path` of `object`. If the resolved value is
* `undefined`, the `defaultValue` is returned in its place.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.get(object, 'a[0].b.c');
* // => 3
*
* _.get(object, ['a', '0', 'b', 'c']);
* // => 3
*
* _.get(object, 'a.b.c', 'default');
* // => 'default'
*/
function get(object, path, defaultValue) {
var result = object == null ? undefined : baseGet(object, path);
return result === undefined ? defaultValue : result;
}
/**
* Checks if `path` is a direct or inherited property of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.hasIn(object, 'a');
* // => true
*
* _.hasIn(object, 'a.b');
* // => true
*
* _.hasIn(object, ['a', 'b']);
* // => true
*
* _.hasIn(object, 'b');
* // => false
*/
function hasIn(object, path) {
return object != null && hasPath(object, path, baseHasIn);
}
/**
* Creates an array of the own enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects. See the
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* for more details.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keys(new Foo);
* // => ['a', 'b'] (iteration order is not guaranteed)
*
* _.keys('hi');
* // => ['0', '1']
*/
function keys(object) {
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}
/**
* Creates an array of the own and inherited enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keysIn(new Foo);
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
*/
function keysIn(object) {
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}
/**
* This method is like `_.assign` except that it recursively merges own and
* inherited enumerable string keyed properties of source objects into the
* destination object. Source properties that resolve to `undefined` are
* skipped if a destination value exists. Array and plain object properties
* are merged recursively. Other objects and value types are overridden by
* assignment. Source objects are applied from left to right. Subsequent
* sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 0.5.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
* @returns {Object} Returns `object`.
* @example
*
* var object = {
* 'a': [{ 'b': 2 }, { 'd': 4 }]
* };
*
* var other = {
* 'a': [{ 'c': 3 }, { 'e': 5 }]
* };
*
* _.merge(object, other);
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
*/
var merge = createAssigner(function (object, source, srcIndex) {
baseMerge(object, source, srcIndex);
});
/*------------------------------------------------------------------------*/
/**
* This method returns the first argument it receives.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'a': 1 };
*
* console.log(_.identity(object) === object);
* // => true
*/
function identity(value) {
return value;
}
/**
* Creates a function that invokes `func` with the arguments of the created
* function. If `func` is a property name, the created function returns the
* property value for a given element. If `func` is an array or object, the
* created function returns `true` for elements that contain the equivalent
* source properties, otherwise it returns `false`.
*
* @static
* @since 4.0.0
* @memberOf _
* @category Util
* @param {*} [func=_.identity] The value to convert to a callback.
* @returns {Function} Returns the callback.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': true },
* { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
* _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
* // => [{ 'user': 'barney', 'age': 36, 'active': true }]
*
* // The `_.matchesProperty` iteratee shorthand.
* _.filter(users, _.iteratee(['user', 'fred']));
* // => [{ 'user': 'fred', 'age': 40 }]
*
* // The `_.property` iteratee shorthand.
* _.map(users, _.iteratee('user'));
* // => ['barney', 'fred']
*
* // Create custom iteratee shorthands.
* _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
* return !_.isRegExp(func) ? iteratee(func) : function(string) {
* return func.test(string);
* };
* });
*
* _.filter(['abc', 'def'], /ef/);
* // => ['def']
*/
function iteratee(func) {
return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
}
/**
* Creates a function that returns the value at `path` of a given object.
*
* @static
* @memberOf _
* @since 2.4.0
* @category Util
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
* @example
*
* var objects = [
* { 'a': { 'b': 2 } },
* { 'a': { 'b': 1 } }
* ];
*
* _.map(objects, _.property('a.b'));
* // => [2, 1]
*
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}
/**
* This method returns a new empty array.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {Array} Returns the new empty array.
* @example
*
* var arrays = _.times(2, _.stubArray);
*
* console.log(arrays);
* // => [[], []]
*
* console.log(arrays[0] === arrays[1]);
* // => false
*/
function stubArray() {
return [];
}
/**
* This method returns `false`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `false`.
* @example
*
* _.times(2, _.stubFalse);
* // => [false, false]
*/
function stubFalse() {
return false;
}
/*------------------------------------------------------------------------*/
// Add methods that return wrapped values in chain sequences.
lodash.compact = compact;
lodash.iteratee = iteratee;
lodash.keys = keys;
lodash.keysIn = keysIn;
lodash.memoize = memoize;
lodash.merge = merge;
lodash.property = property;
lodash.toPlainObject = toPlainObject;
/*------------------------------------------------------------------------*/
// Add methods that return unwrapped values in chain sequences.
lodash.clone = clone;
lodash.eq = eq;
lodash.forEach = forEach;
lodash.get = get;
lodash.hasIn = hasIn;
lodash.identity = identity;
lodash.isArguments = isArguments;
lodash.isArray = isArray;
lodash.isArrayLike = isArrayLike;
lodash.isArrayLikeObject = isArrayLikeObject;
lodash.isBuffer = isBuffer;
lodash.isEmpty = isEmpty;
lodash.isFunction = isFunction;
lodash.isLength = isLength;
lodash.isObject = isObject;
lodash.isObjectLike = isObjectLike;
lodash.isPlainObject = isPlainObject;
lodash.isSymbol = isSymbol;
lodash.isTypedArray = isTypedArray;
lodash.stubArray = stubArray;
lodash.stubFalse = stubFalse;
lodash.toString = toString; // Add aliases.
lodash.each = forEach;
/*------------------------------------------------------------------------*/
/**
* The semantic version number.
*
* @static
* @memberOf _
* @type {string}
*/
lodash.VERSION = VERSION;
/*--------------------------------------------------------------------------*/
if (freeModule) {
// Export for Node.js.
(freeModule.exports = lodash)._ = lodash; // Export for CommonJS support.
freeExports._ = lodash;
}
}).call(this);
/* WEBPACK VAR INJECTION */
}).call(this, __webpack_require__(
/*! ./../@angular-devkit/build-angular/node_modules/webpack/buildin/module.js */
"2pl3")(module));
/***/
},
/***/
"4yVj":
/*!**************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js ***!
\**************************************************************************/
/*! exports provided: schedulePromise */
/***/
function yVj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "schedulePromise", function () {
return schedulePromise;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscription */
"quSY");
function schedulePromise(input, scheduler) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
sub.add(scheduler.schedule(function () {
return input.then(function (value) {
sub.add(scheduler.schedule(function () {
subscriber.next(value);
sub.add(scheduler.schedule(function () {
return subscriber.complete();
}));
}));
}, function (err) {
sub.add(scheduler.schedule(function () {
return subscriber.error(err);
}));
});
}));
return sub;
});
} //# sourceMappingURL=schedulePromise.js.map
/***/
},
/***/
"5+tZ":
/*!*******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js ***!
\*******************************************************************/
/*! exports provided: mergeMap, MergeMapOperator, MergeMapSubscriber, flatMap */
/***/
function tZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mergeMap", function () {
return mergeMap;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MergeMapOperator", function () {
return MergeMapOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MergeMapSubscriber", function () {
return MergeMapSubscriber;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "flatMap", function () {
return flatMap;
});
/* harmony import */
var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./map */
"lJxs");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../observable/from */
"Cfvw");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function mergeMap(project, resultSelector) {
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
if (typeof resultSelector === 'function') {
return function (source) {
return source.pipe(mergeMap(function (a, i) {
return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
return resultSelector(a, b, i, ii);
}));
}, concurrent));
};
} else if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return function (source) {
return source.lift(new MergeMapOperator(project, concurrent));
};
}
var MergeMapOperator = /*#__PURE__*/function () {
function MergeMapOperator(project) {
var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;
_classCallCheck(this, MergeMapOperator);
this.project = project;
this.concurrent = concurrent;
}
_createClass2(MergeMapOperator, [{
key: "call",
value: function call(observer, source) {
return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));
}
}]);
return MergeMapOperator;
}();
var MergeMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP4) {
_inherits(MergeMapSubscriber, _innerSubscribe__WEBP4);
var _super30 = _createSuper(MergeMapSubscriber);
function MergeMapSubscriber(destination, project) {
var _this51;
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
_classCallCheck(this, MergeMapSubscriber);
_this51 = _super30.call(this, destination);
_this51.project = project;
_this51.concurrent = concurrent;
_this51.hasCompleted = false;
_this51.buffer = [];
_this51.active = 0;
_this51.index = 0;
return _this51;
}
_createClass2(MergeMapSubscriber, [{
key: "_next",
value: function _next(value) {
if (this.active < this.concurrent) {
this._tryNext(value);
} else {
this.buffer.push(value);
}
}
}, {
key: "_tryNext",
value: function _tryNext(value) {
var result;
var index = this.index++;
try {
result = this.project(value, index);
} catch (err) {
this.destination.error(err);
return;
}
this.active++;
this._innerSub(result);
}
}, {
key: "_innerSub",
value: function _innerSub(ish) {
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
var destination = this.destination;
destination.add(innerSubscriber);
var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(ish, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
this.hasCompleted = true;
if (this.active === 0 && this.buffer.length === 0) {
this.destination.complete();
}
this.unsubscribe();
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this.destination.next(innerValue);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
var buffer = this.buffer;
this.active--;
if (buffer.length > 0) {
this._next(buffer.shift());
} else if (this.active === 0 && this.hasCompleted) {
this.destination.complete();
}
}
}]);
return MergeMapSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]);
var flatMap = mergeMap; //# sourceMappingURL=mergeMap.js.map
/***/
},
/***/
"51Bx":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/mergeScan.js ***!
\********************************************************************/
/*! exports provided: mergeScan, MergeScanOperator, MergeScanSubscriber */
/***/
function Bx(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mergeScan", function () {
return mergeScan;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MergeScanOperator", function () {
return MergeScanOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MergeScanSubscriber", function () {
return MergeScanSubscriber;
});
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function mergeScan(accumulator, seed) {
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
return function (source) {
return source.lift(new MergeScanOperator(accumulator, seed, concurrent));
};
}
var MergeScanOperator = /*#__PURE__*/function () {
function MergeScanOperator(accumulator, seed, concurrent) {
_classCallCheck(this, MergeScanOperator);
this.accumulator = accumulator;
this.seed = seed;
this.concurrent = concurrent;
}
_createClass2(MergeScanOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));
}
}]);
return MergeScanOperator;
}();
var MergeScanSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP5) {
_inherits(MergeScanSubscriber, _innerSubscribe__WEBP5);
var _super31 = _createSuper(MergeScanSubscriber);
function MergeScanSubscriber(destination, accumulator, acc, concurrent) {
var _this52;
_classCallCheck(this, MergeScanSubscriber);
_this52 = _super31.call(this, destination);
_this52.accumulator = accumulator;
_this52.acc = acc;
_this52.concurrent = concurrent;
_this52.hasValue = false;
_this52.hasCompleted = false;
_this52.buffer = [];
_this52.active = 0;
_this52.index = 0;
return _this52;
}
_createClass2(MergeScanSubscriber, [{
key: "_next",
value: function _next(value) {
if (this.active < this.concurrent) {
var index = this.index++;
var destination = this.destination;
var ish;
try {
var accumulator = this.accumulator;
ish = accumulator(this.acc, value, index);
} catch (e) {
return destination.error(e);
}
this.active++;
this._innerSub(ish);
} else {
this.buffer.push(value);
}
}
}, {
key: "_innerSub",
value: function _innerSub(ish) {
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this);
var destination = this.destination;
destination.add(innerSubscriber);
var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(ish, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
this.hasCompleted = true;
if (this.active === 0 && this.buffer.length === 0) {
if (this.hasValue === false) {
this.destination.next(this.acc);
}
this.destination.complete();
}
this.unsubscribe();
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
var destination = this.destination;
this.acc = innerValue;
this.hasValue = true;
destination.next(innerValue);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
var buffer = this.buffer;
this.active--;
if (buffer.length > 0) {
this._next(buffer.shift());
} else if (this.active === 0 && this.hasCompleted) {
if (this.hasValue === false) {
this.destination.next(this.acc);
}
this.destination.complete();
}
}
}]);
return MergeScanSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=mergeScan.js.map
/***/
},
/***/
"51Dv":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js ***!
\****************************************************************/
/*! exports provided: InnerSubscriber */
/***/
function Dv(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "InnerSubscriber", function () {
return InnerSubscriber;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./Subscriber */
"7o/Q");
var InnerSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_8) {
_inherits(InnerSubscriber, _Subscriber__WEBPACK_8);
var _super32 = _createSuper(InnerSubscriber);
function InnerSubscriber(parent, outerValue, outerIndex) {
var _this53;
_classCallCheck(this, InnerSubscriber);
_this53 = _super32.call(this);
_this53.parent = parent;
_this53.outerValue = outerValue;
_this53.outerIndex = outerIndex;
_this53.index = 0;
return _this53;
}
_createClass2(InnerSubscriber, [{
key: "_next",
value: function _next(value) {
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
}
}, {
key: "_error",
value: function _error(error) {
this.parent.notifyError(error, this);
this.unsubscribe();
}
}, {
key: "_complete",
value: function _complete() {
this.parent.notifyComplete(this);
this.unsubscribe();
}
}]);
return InnerSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=InnerSubscriber.js.map
/***/
},
/***/
"5B2Y":
/*!*****************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js ***!
\*****************************************************************************/
/*! exports provided: scheduleObservable */
/***/
function B2Y(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "scheduleObservable", function () {
return scheduleObservable;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../symbol/observable */
"kJWO");
function scheduleObservable(input, scheduler) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
sub.add(scheduler.schedule(function () {
var observable = input[_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]]();
sub.add(observable.subscribe({
next: function next(value) {
sub.add(scheduler.schedule(function () {
return subscriber.next(value);
}));
},
error: function error(err) {
sub.add(scheduler.schedule(function () {
return subscriber.error(err);
}));
},
complete: function complete() {
sub.add(scheduler.schedule(function () {
return subscriber.complete();
}));
}
}));
}));
return sub;
});
} //# sourceMappingURL=scheduleObservable.js.map
/***/
},
/***/
"5yfJ":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/never.js ***!
\*****************************************************************/
/*! exports provided: NEVER, never */
/***/
function yfJ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NEVER", function () {
return NEVER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "never", function () {
return never;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/noop */
"KqfI");
var NEVER = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](_util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"]);
function never() {
return NEVER;
} //# sourceMappingURL=never.js.map
/***/
},
/***/
"694e":
/*!*********************************************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js ***!
\*********************************************************************************/
/*! no static exports found */
/***/
function e(module, exports, __webpack_require__) {
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
var gOPD = __webpack_require__(
/*! ./_object-gopd */
"EemH");
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
$export($export.S, 'Reflect', {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return gOPD.f(anObject(target), propertyKey);
}
});
/***/
},
/***/
"6FMO":
/*!********************************************************************!*\
!*** ./node_modules/core-js/modules/_array-species-constructor.js ***!
\********************************************************************/
/*! no static exports found */
/***/
function FMO(module, exports, __webpack_require__) {
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var isArray = __webpack_require__(
/*! ./_is-array */
"EWmC");
var SPECIES = __webpack_require__(
/*! ./_wks */
"K0xU")('species');
module.exports = function (original) {
var C;
if (isArray(original)) {
C = original.constructor; // cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
if (isObject(C)) {
C = C[SPECIES];
if (C === null) C = undefined;
}
}
return C === undefined ? Array : C;
};
/***/
},
/***/
"6eBy":
/*!*******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/debounce.js ***!
\*******************************************************************/
/*! exports provided: debounce */
/***/
function eBy(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "debounce", function () {
return debounce;
});
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function debounce(durationSelector) {
return function (source) {
return source.lift(new DebounceOperator(durationSelector));
};
}
var DebounceOperator = /*#__PURE__*/function () {
function DebounceOperator(durationSelector) {
_classCallCheck(this, DebounceOperator);
this.durationSelector = durationSelector;
}
_createClass2(DebounceOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));
}
}]);
return DebounceOperator;
}();
var DebounceSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP6) {
_inherits(DebounceSubscriber, _innerSubscribe__WEBP6);
var _super33 = _createSuper(DebounceSubscriber);
function DebounceSubscriber(destination, durationSelector) {
var _this54;
_classCallCheck(this, DebounceSubscriber);
_this54 = _super33.call(this, destination);
_this54.durationSelector = durationSelector;
_this54.hasValue = false;
return _this54;
}
_createClass2(DebounceSubscriber, [{
key: "_next",
value: function _next(value) {
try {
var result = this.durationSelector.call(this, value);
if (result) {
this._tryNext(value, result);
}
} catch (err) {
this.destination.error(err);
}
}
}, {
key: "_complete",
value: function _complete() {
this.emitValue();
this.destination.complete();
}
}, {
key: "_tryNext",
value: function _tryNext(value, duration) {
var subscription = this.durationSubscription;
this.value = value;
this.hasValue = true;
if (subscription) {
subscription.unsubscribe();
this.remove(subscription);
}
subscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(duration, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this));
if (subscription && !subscription.closed) {
this.add(this.durationSubscription = subscription);
}
}
}, {
key: "notifyNext",
value: function notifyNext() {
this.emitValue();
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
this.emitValue();
}
}, {
key: "emitValue",
value: function emitValue() {
if (this.hasValue) {
var value = this.value;
var subscription = this.durationSubscription;
if (subscription) {
this.durationSubscription = undefined;
subscription.unsubscribe();
this.remove(subscription);
}
this.value = undefined;
this.hasValue = false;
_get(_getPrototypeOf(DebounceSubscriber.prototype), "_next", this).call(this, value);
}
}
}]);
return DebounceSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=debounce.js.map
/***/
},
/***/
"7+OI":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isObservable.js ***!
\******************************************************************/
/*! exports provided: isObservable */
/***/
function OI(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isObservable", function () {
return isObservable;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
function isObservable(obj) {
return !!obj && (obj instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] || typeof obj.lift === 'function' && typeof obj.subscribe === 'function');
} //# sourceMappingURL=isObservable.js.map
/***/
},
/***/
"7Dlh":
/*!**********************************************************************!*\
!*** ./node_modules/core-js/modules/es7.reflect.has-own-metadata.js ***!
\**********************************************************************/
/*! no static exports found */
/***/
function Dlh(module, exports, __webpack_require__) {
var metadata = __webpack_require__(
/*! ./_metadata */
"N6cJ");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;
metadata.exp({
hasOwnMetadata: function hasOwnMetadata(metadataKey, target
/* , targetKey */
) {
return ordinaryHasOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
}
});
/***/
},
/***/
"7HRe":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js ***!
\********************************************************************/
/*! exports provided: scheduled */
/***/
function HRe(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "scheduled", function () {
return scheduled;
});
/* harmony import */
var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./scheduleObservable */
"5B2Y");
/* harmony import */
var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./schedulePromise */
"4yVj");
/* harmony import */
var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./scheduleArray */
"jZKg");
/* harmony import */
var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./scheduleIterable */
"MBAA");
/* harmony import */
var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../util/isInteropObservable */
"QIAL");
/* harmony import */
var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../util/isPromise */
"c2HN");
/* harmony import */
var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ../util/isArrayLike */
"I55L");
/* harmony import */
var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! ../util/isIterable */
"CMyj");
function scheduled(input, scheduler) {
if (input != null) {
if (Object(_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__["isInteropObservable"])(input)) {
return Object(_scheduleObservable__WEBPACK_IMPORTED_MODULE_0__["scheduleObservable"])(input, scheduler);
} else if (Object(_util_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(input)) {
return Object(_schedulePromise__WEBPACK_IMPORTED_MODULE_1__["schedulePromise"])(input, scheduler);
} else if (Object(_util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__["isArrayLike"])(input)) {
return Object(_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler);
} else if (Object(_util_isIterable__WEBPACK_IMPORTED_MODULE_7__["isIterable"])(input) || typeof input === 'string') {
return Object(_scheduleIterable__WEBPACK_IMPORTED_MODULE_3__["scheduleIterable"])(input, scheduler);
}
}
throw new TypeError((input !== null && typeof input || input) + ' is not observable');
} //# sourceMappingURL=scheduled.js.map
/***/
},
/***/
"7Hc7":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/asap.js ***!
\***************************************************************/
/*! exports provided: asapScheduler, asap */
/***/
function Hc7(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "asapScheduler", function () {
return asapScheduler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "asap", function () {
return asap;
});
/* harmony import */
var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsapAction */
"Pz8W");
/* harmony import */
var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./AsapScheduler */
"RUbi");
var asapScheduler = new _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__["AsapScheduler"](_AsapAction__WEBPACK_IMPORTED_MODULE_0__["AsapAction"]);
var asap = asapScheduler; //# sourceMappingURL=asap.js.map
/***/
},
/***/
"7o/Q":
/*!***********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/Subscriber.js ***!
\***********************************************************/
/*! exports provided: Subscriber, SafeSubscriber */
/***/
function oQ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Subscriber", function () {
return Subscriber;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SafeSubscriber", function () {
return SafeSubscriber;
});
/* harmony import */
var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./util/isFunction */
"n6bG");
/* harmony import */
var _Observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./Observer */
"gRHU");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./Subscription */
"quSY");
/* harmony import */
var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../internal/symbol/rxSubscriber */
"2QA8");
/* harmony import */
var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./config */
"2fFW");
/* harmony import */
var _util_hostReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./util/hostReportError */
"NJ4a");
var Subscriber = /*#__PURE__*/function (_Subscription__WEBPAC) {
_inherits(Subscriber, _Subscription__WEBPAC);
var _super34 = _createSuper(Subscriber);
function Subscriber(destinationOrNext, error, complete) {
var _this55;
_classCallCheck(this, Subscriber);
_this55 = _super34.call(this);
_this55.syncErrorValue = null;
_this55.syncErrorThrown = false;
_this55.syncErrorThrowable = false;
_this55.isStopped = false;
switch (arguments.length) {
case 0:
_this55.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
break;
case 1:
if (!destinationOrNext) {
_this55.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
break;
}
if (typeof destinationOrNext === 'object') {
if (destinationOrNext instanceof Subscriber) {
_this55.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
_this55.destination = destinationOrNext;
destinationOrNext.add(_assertThisInitialized(_this55));
} else {
_this55.syncErrorThrowable = true;
_this55.destination = new SafeSubscriber(_assertThisInitialized(_this55), destinationOrNext);
}
break;
}
default:
_this55.syncErrorThrowable = true;
_this55.destination = new SafeSubscriber(_assertThisInitialized(_this55), destinationOrNext, error, complete);
break;
}
return _this55;
}
_createClass2(Subscriber, [{
key: _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__["rxSubscriber"],
value: function value() {
return this;
}
}, {
key: "next",
value: function next(value) {
if (!this.isStopped) {
this._next(value);
}
}
}, {
key: "error",
value: function error(err) {
if (!this.isStopped) {
this.isStopped = true;
this._error(err);
}
}
}, {
key: "complete",
value: function complete() {
if (!this.isStopped) {
this.isStopped = true;
this._complete();
}
}
}, {
key: "unsubscribe",
value: function unsubscribe() {
if (this.closed) {
return;
}
this.isStopped = true;
_get(_getPrototypeOf(Subscriber.prototype), "unsubscribe", this).call(this);
}
}, {
key: "_next",
value: function _next(value) {
this.destination.next(value);
}
}, {
key: "_error",
value: function _error(err) {
this.destination.error(err);
this.unsubscribe();
}
}, {
key: "_complete",
value: function _complete() {
this.destination.complete();
this.unsubscribe();
}
}, {
key: "_unsubscribeAndRecycle",
value: function _unsubscribeAndRecycle() {
var _parentOrParents = this._parentOrParents;
this._parentOrParents = null;
this.unsubscribe();
this.closed = false;
this.isStopped = false;
this._parentOrParents = _parentOrParents;
return this;
}
}], [{
key: "create",
value: function create(next, error, complete) {
var subscriber = new Subscriber(next, error, complete);
subscriber.syncErrorThrowable = false;
return subscriber;
}
}]);
return Subscriber;
}(_Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"]);
var SafeSubscriber = /*#__PURE__*/function (_Subscriber) {
_inherits(SafeSubscriber, _Subscriber);
var _super35 = _createSuper(SafeSubscriber);
function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
var _this56;
_classCallCheck(this, SafeSubscriber);
_this56 = _super35.call(this);
_this56._parentSubscriber = _parentSubscriber;
var next;
var context = _assertThisInitialized(_this56);
if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(observerOrNext)) {
next = observerOrNext;
} else if (observerOrNext) {
next = observerOrNext.next;
error = observerOrNext.error;
complete = observerOrNext.complete;
if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]) {
context = Object.create(observerOrNext);
if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(context.unsubscribe)) {
_this56.add(context.unsubscribe.bind(context));
}
context.unsubscribe = _this56.unsubscribe.bind(_assertThisInitialized(_this56));
}
}
_this56._context = context;
_this56._next = next;
_this56._error = error;
_this56._complete = complete;
return _this56;
}
_createClass2(SafeSubscriber, [{
key: "next",
value: function next(value) {
if (!this.isStopped && this._next) {
var _parentSubscriber = this._parentSubscriber;
if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._next, value);
} else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
this.unsubscribe();
}
}
}
}, {
key: "error",
value: function error(err) {
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
var useDeprecatedSynchronousErrorHandling = _config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling;
if (this._error) {
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(this._error, err);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, this._error, err);
this.unsubscribe();
}
} else if (!_parentSubscriber.syncErrorThrowable) {
this.unsubscribe();
if (useDeprecatedSynchronousErrorHandling) {
throw err;
}
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
} else {
if (useDeprecatedSynchronousErrorHandling) {
_parentSubscriber.syncErrorValue = err;
_parentSubscriber.syncErrorThrown = true;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
}
this.unsubscribe();
}
}
}
}, {
key: "complete",
value: function complete() {
var _this57 = this;
if (!this.isStopped) {
var _parentSubscriber = this._parentSubscriber;
if (this._complete) {
var wrappedComplete = function wrappedComplete() {
return _this57._complete.call(_this57._context);
};
if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
this.__tryOrUnsub(wrappedComplete);
this.unsubscribe();
} else {
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
this.unsubscribe();
}
} else {
this.unsubscribe();
}
}
}
}, {
key: "__tryOrUnsub",
value: function __tryOrUnsub(fn, value) {
try {
fn.call(this._context, value);
} catch (err) {
this.unsubscribe();
if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
throw err;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
}
}
}
}, {
key: "__tryOrSetError",
value: function __tryOrSetError(parent, fn, value) {
if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
throw new Error('bad call');
}
try {
fn.call(this._context, value);
} catch (err) {
if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
parent.syncErrorValue = err;
parent.syncErrorThrown = true;
return true;
} else {
Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
return true;
}
}
return false;
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var _parentSubscriber = this._parentSubscriber;
this._context = null;
this._parentSubscriber = null;
_parentSubscriber.unsubscribe();
}
}]);
return SafeSubscriber;
}(Subscriber); //# sourceMappingURL=Subscriber.js.map
/***/
},
/***/
"7ve7":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/Action.js ***!
\*****************************************************************/
/*! exports provided: Action */
/***/
function ve7(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Action", function () {
return Action;
});
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscription */
"quSY");
var Action = /*#__PURE__*/function (_Subscription__WEBPAC2) {
_inherits(Action, _Subscription__WEBPAC2);
var _super36 = _createSuper(Action);
function Action(scheduler, work) {
_classCallCheck(this, Action);
return _super36.call(this);
}
_createClass2(Action, [{
key: "schedule",
value: function schedule(state) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
return this;
}
}]);
return Action;
}(_Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]); //# sourceMappingURL=Action.js.map
/***/
},
/***/
"7wxJ":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/combineAll.js ***!
\*********************************************************************/
/*! exports provided: combineAll */
/***/
function wxJ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "combineAll", function () {
return combineAll;
});
/* harmony import */
var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../observable/combineLatest */
"itXk");
function combineAll(project) {
return function (source) {
return source.lift(new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__["CombineLatestOperator"](project));
};
} //# sourceMappingURL=combineAll.js.map
/***/
},
/***/
"8MEG":
/*!***********************************************!*\
!*** ./node_modules/core-js/modules/_bind.js ***!
\***********************************************/
/*! no static exports found */
/***/
function MEG(module, exports, __webpack_require__) {
"use strict";
var aFunction = __webpack_require__(
/*! ./_a-function */
"2OiF");
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var invoke = __webpack_require__(
/*! ./_invoke */
"MfQN");
var arraySlice = [].slice;
var factories = {};
var construct = function construct(F, len, args) {
if (!(len in factories)) {
for (var n = [], i = 0; i < len; i++) {
n[i] = 'a[' + i + ']';
} // eslint-disable-next-line no-new-func
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
}
return factories[len](F, args);
};
module.exports = Function.bind || function bind(that
/* , ...args */
) {
var fn = aFunction(this);
var partArgs = arraySlice.call(arguments, 1);
var bound = function bound()
/* args... */
{
var args = partArgs.concat(arraySlice.call(arguments));
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
};
if (isObject(fn.prototype)) bound.prototype = fn.prototype;
return bound;
};
/***/
},
/***/
"8Qeq":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/canReportError.js ***!
\********************************************************************/
/*! exports provided: canReportError */
/***/
function Qeq(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "canReportError", function () {
return canReportError;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function canReportError(observer) {
while (observer) {
var _observer = observer,
closed = _observer.closed,
destination = _observer.destination,
isStopped = _observer.isStopped;
if (closed || isStopped) {
return false;
} else if (destination && destination instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
observer = destination;
} else {
observer = null;
}
}
return true;
} //# sourceMappingURL=canReportError.js.map
/***/
},
/***/
"9AAn":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/es6.map.js ***!
\*************************************************/
/*! no static exports found */
/***/
function AAn(module, exports, __webpack_require__) {
"use strict";
var strong = __webpack_require__(
/*! ./_collection-strong */
"wmvG");
var validate = __webpack_require__(
/*! ./_validate-collection */
"s5qY");
var MAP = 'Map'; // 23.1 Map Objects
module.exports = __webpack_require__(
/*! ./_collection */
"4LiD")(MAP, function (get) {
return function Map() {
return get(this, arguments.length > 0 ? arguments[0] : undefined);
};
}, {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = strong.getEntry(validate(this, MAP), key);
return entry && entry.v;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
}
}, strong, true);
/***/
},
/***/
"9M8c":
/*!**********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/bufferCount.js ***!
\**********************************************************************/
/*! exports provided: bufferCount */
/***/
function M8c(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bufferCount", function () {
return bufferCount;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function bufferCount(bufferSize) {
var startBufferEvery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
return function bufferCountOperatorFunction(source) {
return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));
};
}
var BufferCountOperator = /*#__PURE__*/function () {
function BufferCountOperator(bufferSize, startBufferEvery) {
_classCallCheck(this, BufferCountOperator);
this.bufferSize = bufferSize;
this.startBufferEvery = startBufferEvery;
if (!startBufferEvery || bufferSize === startBufferEvery) {
this.subscriberClass = BufferCountSubscriber;
} else {
this.subscriberClass = BufferSkipCountSubscriber;
}
}
_createClass2(BufferCountOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));
}
}]);
return BufferCountOperator;
}();
var BufferCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_9) {
_inherits(BufferCountSubscriber, _Subscriber__WEBPACK_9);
var _super37 = _createSuper(BufferCountSubscriber);
function BufferCountSubscriber(destination, bufferSize) {
var _this58;
_classCallCheck(this, BufferCountSubscriber);
_this58 = _super37.call(this, destination);
_this58.bufferSize = bufferSize;
_this58.buffer = [];
return _this58;
}
_createClass2(BufferCountSubscriber, [{
key: "_next",
value: function _next(value) {
var buffer = this.buffer;
buffer.push(value);
if (buffer.length == this.bufferSize) {
this.destination.next(buffer);
this.buffer = [];
}
}
}, {
key: "_complete",
value: function _complete() {
var buffer = this.buffer;
if (buffer.length > 0) {
this.destination.next(buffer);
}
_get(_getPrototypeOf(BufferCountSubscriber.prototype), "_complete", this).call(this);
}
}]);
return BufferCountSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);
var BufferSkipCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_10) {
_inherits(BufferSkipCountSubscriber, _Subscriber__WEBPACK_10);
var _super38 = _createSuper(BufferSkipCountSubscriber);
function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {
var _this59;
_classCallCheck(this, BufferSkipCountSubscriber);
_this59 = _super38.call(this, destination);
_this59.bufferSize = bufferSize;
_this59.startBufferEvery = startBufferEvery;
_this59.buffers = [];
_this59.count = 0;
return _this59;
}
_createClass2(BufferSkipCountSubscriber, [{
key: "_next",
value: function _next(value) {
var bufferSize = this.bufferSize,
startBufferEvery = this.startBufferEvery,
buffers = this.buffers,
count = this.count;
this.count++;
if (count % startBufferEvery === 0) {
buffers.push([]);
}
for (var i = buffers.length; i--;) {
var buffer = buffers[i];
buffer.push(value);
if (buffer.length === bufferSize) {
buffers.splice(i, 1);
this.destination.next(buffer);
}
}
}
}, {
key: "_complete",
value: function _complete() {
var buffers = this.buffers,
destination = this.destination;
while (buffers.length > 0) {
var buffer = buffers.shift();
if (buffer.length > 0) {
destination.next(buffer);
}
}
_get(_getPrototypeOf(BufferSkipCountSubscriber.prototype), "_complete", this).call(this);
}
}]);
return BufferSkipCountSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=bufferCount.js.map
/***/
},
/***/
"9NWu":
/*!*****************************************************************!*\
!*** ./node_modules/osm-polygon-features/polygon-features.json ***!
\*****************************************************************/
/*! exports provided: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, default */
/***/
function NWu(module) {
module.exports = JSON.parse("[{\"key\":\"building\",\"polygon\":\"all\"},{\"key\":\"highway\",\"polygon\":\"whitelist\",\"values\":[\"services\",\"rest_area\",\"escape\",\"elevator\"]},{\"key\":\"natural\",\"polygon\":\"blacklist\",\"values\":[\"coastline\",\"cliff\",\"ridge\",\"arete\",\"tree_row\"]},{\"key\":\"landuse\",\"polygon\":\"all\"},{\"key\":\"waterway\",\"polygon\":\"whitelist\",\"values\":[\"riverbank\",\"dock\",\"boatyard\",\"dam\"]},{\"key\":\"amenity\",\"polygon\":\"all\"},{\"key\":\"leisure\",\"polygon\":\"all\"},{\"key\":\"barrier\",\"polygon\":\"whitelist\",\"values\":[\"city_wall\",\"ditch\",\"hedge\",\"retaining_wall\",\"wall\",\"spikes\"]},{\"key\":\"railway\",\"polygon\":\"whitelist\",\"values\":[\"station\",\"turntable\",\"roundhouse\",\"platform\"]},{\"key\":\"area\",\"polygon\":\"all\"},{\"key\":\"boundary\",\"polygon\":\"all\"},{\"key\":\"man_made\",\"polygon\":\"blacklist\",\"values\":[\"cutline\",\"embankment\",\"pipeline\"]},{\"key\":\"power\",\"polygon\":\"whitelist\",\"values\":[\"plant\",\"substation\",\"generator\",\"transformer\"]},{\"key\":\"place\",\"polygon\":\"all\"},{\"key\":\"shop\",\"polygon\":\"all\"},{\"key\":\"aeroway\",\"polygon\":\"blacklist\",\"values\":[\"taxiway\"]},{\"key\":\"tourism\",\"polygon\":\"all\"},{\"key\":\"historic\",\"polygon\":\"all\"},{\"key\":\"public_transport\",\"polygon\":\"all\"},{\"key\":\"office\",\"polygon\":\"all\"},{\"key\":\"building:part\",\"polygon\":\"all\"},{\"key\":\"military\",\"polygon\":\"all\"},{\"key\":\"ruins\",\"polygon\":\"all\"},{\"key\":\"area:highway\",\"polygon\":\"all\"},{\"key\":\"craft\",\"polygon\":\"all\"},{\"key\":\"golf\",\"polygon\":\"all\"},{\"key\":\"indoor\",\"polygon\":\"all\"}]");
/***/
},
/***/
"9gX7":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_an-instance.js ***!
\******************************************************/
/*! no static exports found */
/***/
function gX7(module, exports) {
module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || forbiddenField !== undefined && forbiddenField in it) {
throw TypeError(name + ': incorrect invocation!');
}
return it;
};
/***/
},
/***/
"9ihq":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/elementAt.js ***!
\********************************************************************/
/*! exports provided: elementAt */
/***/
function ihq(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "elementAt", function () {
return elementAt;
});
/* harmony import */
var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/ArgumentOutOfRangeError */
"4I5i");
/* harmony import */
var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./filter */
"pLZG");
/* harmony import */
var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./throwIfEmpty */
"XDbj");
/* harmony import */
var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./defaultIfEmpty */
"xbPD");
/* harmony import */
var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./take */
"IzEk");
function elementAt(index, defaultValue) {
if (index < 0) {
throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]();
}
var hasDefaultValue = arguments.length >= 2;
return function (source) {
return source.pipe(Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
return i === index;
}), Object(_take__WEBPACK_IMPORTED_MODULE_4__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__["throwIfEmpty"])(function () {
return new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]();
}));
};
} //# sourceMappingURL=elementAt.js.map
/***/
},
/***/
"9ppp":
/*!*****************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js ***!
\*****************************************************************************/
/*! exports provided: ObjectUnsubscribedError */
/***/
function ppp(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function () {
return ObjectUnsubscribedError;
});
var ObjectUnsubscribedErrorImpl = function () {
function ObjectUnsubscribedErrorImpl() {
Error.call(this);
this.message = 'object unsubscribed';
this.name = 'ObjectUnsubscribedError';
return this;
}
ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
return ObjectUnsubscribedErrorImpl;
}();
var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; //# sourceMappingURL=ObjectUnsubscribedError.js.map
/***/
},
/***/
"9rMk":
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.has.js ***!
\*********************************************************/
/*! no static exports found */
/***/
function rMk(module, exports, __webpack_require__) {
// 26.1.9 Reflect.has(target, propertyKey)
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
$export($export.S, 'Reflect', {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
/***/
},
/***/
"A3iJ":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/partition.js ***!
\********************************************************************/
/*! exports provided: partition */
/***/
function A3iJ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "partition", function () {
return partition;
});
/* harmony import */
var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/not */
"F97/");
/* harmony import */
var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./filter */
"pLZG");
function partition(predicate, thisArg) {
return function (source) {
return [Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(predicate, thisArg)(source), Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(source)];
};
} //# sourceMappingURL=partition.js.map
/***/
},
/***/
"Afnz":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_iter-define.js ***!
\******************************************************/
/*! no static exports found */
/***/
function Afnz(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__(
/*! ./_library */
"LQAc");
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var redefine = __webpack_require__(
/*! ./_redefine */
"KroJ");
var hide = __webpack_require__(
/*! ./_hide */
"Mukb");
var Iterators = __webpack_require__(
/*! ./_iterators */
"hPIQ");
var $iterCreate = __webpack_require__(
/*! ./_iter-create */
"QaDb");
var setToStringTag = __webpack_require__(
/*! ./_set-to-string-tag */
"fyDq");
var getPrototypeOf = __webpack_require__(
/*! ./_object-gpo */
"OP3Y");
var ITERATOR = __webpack_require__(
/*! ./_wks */
"K0xU")('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';
var returnThis = function returnThis() {
return this;
};
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
$iterCreate(Constructor, NAME, next);
var getMethod = function getMethod(kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS:
return function keys() {
return new Constructor(this, kind);
};
case VALUES:
return function values() {
return new Constructor(this, kind);
};
}
return function entries() {
return new Constructor(this, kind);
};
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype; // Fix native
if ($anyNative) {
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
}
} // fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() {
return $native.call(this);
};
} // Define iterator
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
hide(proto, ITERATOR, $default);
} // Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
};
if (FORCED) for (key in methods) {
if (!(key in proto)) redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
/***/
},
/***/
"Aib3":
/*!******************************************************!*\
!*** ./node_modules/@mapbox/geojson-rewind/index.js ***!
\******************************************************/
/*! no static exports found */
/***/
function Aib3(module, exports, __webpack_require__) {
var geojsonArea = __webpack_require__(
/*! @mapbox/geojson-area */
"mhV4");
module.exports = rewind;
function rewind(gj, outer) {
switch (gj && gj.type || null) {
case 'FeatureCollection':
gj.features = gj.features.map(curryOuter(rewind, outer));
return gj;
case 'GeometryCollection':
gj.geometries = gj.geometries.map(curryOuter(rewind, outer));
return gj;
case 'Feature':
gj.geometry = rewind(gj.geometry, outer);
return gj;
case 'Polygon':
case 'MultiPolygon':
return correct(gj, outer);
default:
return gj;
}
}
function curryOuter(a, b) {
return function (_) {
return a(_, b);
};
}
function correct(_, outer) {
if (_.type === 'Polygon') {
_.coordinates = correctRings(_.coordinates, outer);
} else if (_.type === 'MultiPolygon') {
_.coordinates = _.coordinates.map(curryOuter(correctRings, outer));
}
return _;
}
function correctRings(_, outer) {
outer = !!outer;
_[0] = wind(_[0], outer);
for (var i = 1; i < _.length; i++) {
_[i] = wind(_[i], !outer);
}
return _;
}
function wind(_, dir) {
return cw(_) === dir ? _ : _.reverse();
}
function cw(_) {
return geojsonArea.ring(_) >= 0;
}
/***/
},
/***/
"BFxc":
/*!*******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/takeLast.js ***!
\*******************************************************************/
/*! exports provided: takeLast */
/***/
function BFxc(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "takeLast", function () {
return takeLast;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/ArgumentOutOfRangeError */
"4I5i");
/* harmony import */
var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../observable/empty */
"EY2u");
function takeLast(count) {
return function takeLastOperatorFunction(source) {
if (count === 0) {
return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
} else {
return source.lift(new TakeLastOperator(count));
}
};
}
var TakeLastOperator = /*#__PURE__*/function () {
function TakeLastOperator(total) {
_classCallCheck(this, TakeLastOperator);
this.total = total;
if (this.total < 0) {
throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]();
}
}
_createClass2(TakeLastOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new TakeLastSubscriber(subscriber, this.total));
}
}]);
return TakeLastOperator;
}();
var TakeLastSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_11) {
_inherits(TakeLastSubscriber, _Subscriber__WEBPACK_11);
var _super39 = _createSuper(TakeLastSubscriber);
function TakeLastSubscriber(destination, total) {
var _this60;
_classCallCheck(this, TakeLastSubscriber);
_this60 = _super39.call(this, destination);
_this60.total = total;
_this60.ring = new Array();
_this60.count = 0;
return _this60;
}
_createClass2(TakeLastSubscriber, [{
key: "_next",
value: function _next(value) {
var ring = this.ring;
var total = this.total;
var count = this.count++;
if (ring.length < total) {
ring.push(value);
} else {
var index = count % total;
ring[index] = value;
}
}
}, {
key: "_complete",
value: function _complete() {
var destination = this.destination;
var count = this.count;
if (count > 0) {
var total = this.count >= this.total ? this.total : this.count;
var ring = this.ring;
for (var i = 0; i < total; i++) {
var idx = count++ % total;
destination.next(ring[idx]);
}
}
destination.complete();
}
}]);
return TakeLastSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=takeLast.js.map
/***/
},
/***/
"BqfV":
/*!**********************************************************************!*\
!*** ./node_modules/core-js/modules/es7.reflect.get-own-metadata.js ***!
\**********************************************************************/
/*! no static exports found */
/***/
function BqfV(module, exports, __webpack_require__) {
var metadata = __webpack_require__(
/*! ./_metadata */
"N6cJ");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var ordinaryGetOwnMetadata = metadata.get;
var toMetaKey = metadata.key;
metadata.exp({
getOwnMetadata: function getOwnMetadata(metadataKey, target
/* , targetKey */
) {
return ordinaryGetOwnMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
}
});
/***/
},
/***/
"CMyj":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isIterable.js ***!
\****************************************************************/
/*! exports provided: isIterable */
/***/
function CMyj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isIterable", function () {
return isIterable;
});
/* harmony import */
var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../symbol/iterator */
"Lhse");
function isIterable(input) {
return input && typeof input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]] === 'function';
} //# sourceMappingURL=isIterable.js.map
/***/
},
/***/
"CRDf":
/*!***************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js ***!
\***************************************************************************/
/*! exports provided: subscribeToObservable */
/***/
function CRDf(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "subscribeToObservable", function () {
return subscribeToObservable;
});
/* harmony import */
var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../symbol/observable */
"kJWO");
var subscribeToObservable = function subscribeToObservable(obj) {
return function (subscriber) {
var obs = obj[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]]();
if (typeof obs.subscribe !== 'function') {
throw new TypeError('Provided object does not correctly implement Symbol.observable');
} else {
return obs.subscribe(subscriber);
}
};
}; //# sourceMappingURL=subscribeToObservable.js.map
/***/
},
/***/
"Cfvw":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/from.js ***!
\****************************************************************/
/*! exports provided: from */
/***/
function Cfvw(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "from", function () {
return from;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/subscribeTo */
"SeVD");
/* harmony import */
var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../scheduled/scheduled */
"7HRe");
function from(input, scheduler) {
if (!scheduler) {
if (input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
return input;
}
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(input));
} else {
return Object(_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__["scheduled"])(input, scheduler);
}
} //# sourceMappingURL=from.js.map
/***/
},
/***/
"CkkT":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/_array-methods.js ***!
\********************************************************/
/*! no static exports found */
/***/
function CkkT(module, exports, __webpack_require__) {
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(
/*! ./_ctx */
"m0Pp");
var IObject = __webpack_require__(
/*! ./_iobject */
"Ymqv");
var toObject = __webpack_require__(
/*! ./_to-object */
"S/j/");
var toLength = __webpack_require__(
/*! ./_to-length */
"ne8i");
var asc = __webpack_require__(
/*! ./_array-species-create */
"zRwo");
module.exports = function (TYPE, $create) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
var create = $create || asc;
return function ($this, callbackfn, that) {
var O = toObject($this);
var self = IObject(O);
var f = ctx(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
var val, res;
for (; length > index; index++) {
if (NO_HOLES || index in self) {
val = self[index];
res = f(val, index, O);
if (TYPE) {
if (IS_MAP) result[index] = res; // map
else if (res) switch (TYPE) {
case 3:
return true;
// some
case 5:
return val;
// find
case 6:
return index;
// findIndex
case 2:
result.push(val);
// filter
} else if (IS_EVERY) return false; // every
}
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
};
};
/***/
},
/***/
"CqXF":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/mapTo.js ***!
\****************************************************************/
/*! exports provided: mapTo */
/***/
function CqXF(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mapTo", function () {
return mapTo;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function mapTo(value) {
return function (source) {
return source.lift(new MapToOperator(value));
};
}
var MapToOperator = /*#__PURE__*/function () {
function MapToOperator(value) {
_classCallCheck(this, MapToOperator);
this.value = value;
}
_createClass2(MapToOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new MapToSubscriber(subscriber, this.value));
}
}]);
return MapToOperator;
}();
var MapToSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_12) {
_inherits(MapToSubscriber, _Subscriber__WEBPACK_12);
var _super40 = _createSuper(MapToSubscriber);
function MapToSubscriber(destination, value) {
var _this61;
_classCallCheck(this, MapToSubscriber);
_this61 = _super40.call(this, destination);
_this61.value = value;
return _this61;
}
_createClass2(MapToSubscriber, [{
key: "_next",
value: function _next(x) {
this.destination.next(this.value);
}
}]);
return MapToSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=mapTo.js.map
/***/
},
/***/
"D0XW":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/async.js ***!
\****************************************************************/
/*! exports provided: asyncScheduler, async */
/***/
function D0XW(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "asyncScheduler", function () {
return asyncScheduler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "async", function () {
return async;
});
/* harmony import */
var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsyncAction */
"3N8a");
/* harmony import */
var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./AsyncScheduler */
"IjjT");
var asyncScheduler = new _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"](_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]);
var async = asyncScheduler; //# sourceMappingURL=async.js.map
/***/
},
/***/
"DH7j":
/*!*************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isArray.js ***!
\*************************************************************/
/*! exports provided: isArray */
/***/
function DH7j(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isArray", function () {
return isArray;
});
var isArray = function () {
return Array.isArray || function (x) {
return x && typeof x.length === 'number';
};
}(); //# sourceMappingURL=isArray.js.map
/***/
},
/***/
"DVgA":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_object-keys.js ***!
\******************************************************/
/*! no static exports found */
/***/
function DVgA(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(
/*! ./_object-keys-internal */
"zhAb");
var enumBugKeys = __webpack_require__(
/*! ./_enum-bug-keys */
"4R4u");
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
};
/***/
},
/***/
"E6f0":
/*!********************************************!*\
!*** ./node_modules/osmtogeojson/index.js ***!
\********************************************/
/*! no static exports found */
/***/
function E6f0(module, exports, __webpack_require__) {
var _ = __webpack_require__(
/*! ./lodash.custom.js */
"4xY4");
var rewind = __webpack_require__(
/*! @mapbox/geojson-rewind */
"Aib3"); // see https://wiki.openstreetmap.org/wiki/Overpass_turbo/Polygon_Features
var polygonFeatures = {};
__webpack_require__(
/*! osm-polygon-features */
"JxlR").forEach(function (tags) {
if (tags.polygon === "all") polygonFeatures[tags.key] = true;else {
var list = tags.polygon === "whitelist" ? "included_values" : "excluded_values",
tagValuesObj = {};
tags.values.forEach(function (value) {
tagValuesObj[value] = true;
});
polygonFeatures[tags.key] = {};
polygonFeatures[tags.key][list] = tagValuesObj;
}
}); // default deduplication helper function
function default_deduplicator(objectA, objectB) {
// default deduplication handler:
// if object versions differ, use highest available version
if ((objectA.version || objectB.version) && objectA.version !== objectB.version) {
return (+objectA.version || 0) > (+objectB.version || 0) ? objectA : objectB;
} // otherwise: return merged obj properties
return _.merge(objectA, objectB);
}
var osmtogeojson = {};
osmtogeojson = function osmtogeojson(data, options, featureCallback) {
options = _.merge({
verbose: false,
flatProperties: true,
uninterestingTags: {
"source": true,
"source_ref": true,
"source:ref": true,
"history": true,
"attribution": true,
"created_by": true,
"tiger:county": true,
"tiger:tlid": true,
"tiger:upload_uuid": true
},
polygonFeatures: polygonFeatures,
deduplicator: default_deduplicator
}, options);
var result;
if (typeof XMLDocument !== "undefined" && data instanceof XMLDocument || typeof XMLDocument === "undefined" && data.childNodes) result = _osmXML2geoJSON(data);else result = _overpassJSON2geoJSON(data);
return result;
function _overpassJSON2geoJSON(json) {
// sort elements
var nodes = new Array();
var ways = new Array();
var rels = new Array(); // helper functions
function centerGeometry(object) {
var pseudoNode = _.clone(object);
pseudoNode.lat = object.center.lat;
pseudoNode.lon = object.center.lon;
pseudoNode.__is_center_placeholder = true;
nodes.push(pseudoNode);
}
function boundsGeometry(object) {
var pseudoWay = _.clone(object);
pseudoWay.nodes = [];
function addPseudoNode(lat, lon, i) {
var pseudoNode = {
type: "node",
id: "_" + pseudoWay.type + "/" + pseudoWay.id + "bounds" + i,
lat: lat,
lon: lon
};
pseudoWay.nodes.push(pseudoNode.id);
nodes.push(pseudoNode);
}
addPseudoNode(pseudoWay.bounds.minlat, pseudoWay.bounds.minlon, 1);
addPseudoNode(pseudoWay.bounds.maxlat, pseudoWay.bounds.minlon, 2);
addPseudoNode(pseudoWay.bounds.maxlat, pseudoWay.bounds.maxlon, 3);
addPseudoNode(pseudoWay.bounds.minlat, pseudoWay.bounds.maxlon, 4);
pseudoWay.nodes.push(pseudoWay.nodes[0]);
pseudoWay.__is_bounds_placeholder = true;
ways.push(pseudoWay);
}
function fullGeometryWay(way) {
function addFullGeometryNode(lat, lon, id) {
var geometryNode = {
type: "node",
id: id,
lat: lat,
lon: lon
};
nodes.push(geometryNode);
}
if (!_.isArray(way.nodes)) {
way.nodes = way.geometry.map(function (nd) {
if (nd !== null) // have to skip ref-less nodes
return "_anonymous@" + nd.lat + "/" + nd.lon;else return "_anonymous@unknown_location";
});
}
way.geometry.forEach(function (nd, i) {
if (nd) {
addFullGeometryNode(nd.lat, nd.lon, way.nodes[i]);
}
});
}
function fullGeometryRelation(rel) {
function addFullGeometryNode(lat, lon, id) {
var geometryNode = {
type: "node",
id: id,
lat: lat,
lon: lon
};
nodes.push(geometryNode);
}
function addFullGeometryWay(geometry, id) {
// shared multipolygon ways cannot be defined multiple times with the same id.
if (ways.some(function (way) {
// todo: this is slow :(
return way.type == "way" && way.id == id;
})) return;
var geometryWay = {
type: "way",
id: id,
nodes: []
};
function addFullGeometryWayPseudoNode(lat, lon) {
// todo? do not save the same pseudo node multiple times
var geometryPseudoNode = {
type: "node",
id: "_anonymous@" + lat + "/" + lon,
lat: lat,
lon: lon
};
geometryWay.nodes.push(geometryPseudoNode.id);
nodes.push(geometryPseudoNode);
}
geometry.forEach(function (nd) {
if (nd) {
addFullGeometryWayPseudoNode(nd.lat, nd.lon);
} else {
geometryWay.nodes.push(undefined);
}
});
ways.push(geometryWay);
}
rel.members.forEach(function (member, i) {
if (member.type == "node") {
if (member.lat) {
addFullGeometryNode(member.lat, member.lon, member.ref);
}
} else if (member.type == "way") {
if (member.geometry) {
member.ref = "_fullGeom" + member.ref;
addFullGeometryWay(member.geometry, member.ref);
}
}
});
} // create copies of individual json objects to make sure the original data doesn't get altered
// todo: cloning is slow: see if this can be done differently!
for (var i = 0; i < json.elements.length; i++) {
switch (json.elements[i].type) {
case "node":
var node = json.elements[i];
nodes.push(node);
break;
case "way":
var way = _.clone(json.elements[i]);
way.nodes = _.clone(way.nodes);
ways.push(way);
if (way.center) centerGeometry(way);
if (way.geometry) fullGeometryWay(way);else if (way.bounds) boundsGeometry(way);
break;
case "relation":
var rel = _.clone(json.elements[i]);
rel.members = _.clone(rel.members);
rels.push(rel);
var has_full_geometry = rel.members && rel.members.some(function (member) {
return member.type == "node" && member.lat || member.type == "way" && member.geometry && member.geometry.length > 0;
});
if (rel.center) centerGeometry(rel);
if (has_full_geometry) fullGeometryRelation(rel);else if (rel.bounds) boundsGeometry(rel);
break;
default: // type=area (from coord-query) is an example for this case.
}
}
return _convert2geoJSON(nodes, ways, rels);
}
function _osmXML2geoJSON(xml) {
// sort elements
var nodes = new Array();
var ways = new Array();
var rels = new Array(); // helper function
function copy_attribute(x, o, attr) {
if (x.hasAttribute(attr)) o[attr] = x.getAttribute(attr);
}
function centerGeometry(object, centroid) {
var pseudoNode = _.clone(object);
copy_attribute(centroid, pseudoNode, 'lat');
copy_attribute(centroid, pseudoNode, 'lon');
pseudoNode.__is_center_placeholder = true;
nodes.push(pseudoNode);
}
function boundsGeometry(object, bounds) {
var pseudoWay = _.clone(object);
pseudoWay.nodes = [];
function addPseudoNode(lat, lon, i) {
var pseudoNode = {
type: "node",
id: "_" + pseudoWay.type + "/" + pseudoWay.id + "bounds" + i,
lat: lat,
lon: lon
};
pseudoWay.nodes.push(pseudoNode.id);
nodes.push(pseudoNode);
}
addPseudoNode(bounds.getAttribute('minlat'), bounds.getAttribute('minlon'), 1);
addPseudoNode(bounds.getAttribute('maxlat'), bounds.getAttribute('minlon'), 2);
addPseudoNode(bounds.getAttribute('maxlat'), bounds.getAttribute('maxlon'), 3);
addPseudoNode(bounds.getAttribute('minlat'), bounds.getAttribute('maxlon'), 4);
pseudoWay.nodes.push(pseudoWay.nodes[0]);
pseudoWay.__is_bounds_placeholder = true;
ways.push(pseudoWay);
}
function fullGeometryWay(way, nds) {
function addFullGeometryNode(lat, lon, id) {
var geometryNode = {
type: "node",
id: id,
lat: lat,
lon: lon
};
nodes.push(geometryNode);
return geometryNode.id;
}
if (!_.isArray(way.nodes)) {
way.nodes = [];
_.each(nds, function (nd, i) {
way.nodes.push("_anonymous@" + nd.getAttribute('lat') + "/" + nd.getAttribute('lon'));
});
}
_.each(nds, function (nd, i) {
if (nd.getAttribute('lat')) {
addFullGeometryNode(nd.getAttribute('lat'), nd.getAttribute('lon'), way.nodes[i]);
}
});
}
function fullGeometryRelation(rel, members) {
function addFullGeometryNode(lat, lon, id) {
var geometryNode = {
type: "node",
id: id,
lat: lat,
lon: lon
};
nodes.push(geometryNode);
}
function addFullGeometryWay(nds, id) {
// shared multipolygon ways cannot be defined multiple times with the same id.
if (ways.some(function (way) {
// todo: this is slow :(
return way.type == "way" && way.id == id;
})) return;
var geometryWay = {
type: "way",
id: id,
nodes: []
};
function addFullGeometryWayPseudoNode(lat, lon) {
// todo? do not save the same pseudo node multiple times
var geometryPseudoNode = {
type: "node",
id: "_anonymous@" + lat + "/" + lon,
lat: lat,
lon: lon
};
geometryWay.nodes.push(geometryPseudoNode.id);
nodes.push(geometryPseudoNode);
}
_.each(nds, function (nd) {
if (nd.getAttribute('lat')) {
addFullGeometryWayPseudoNode(nd.getAttribute('lat'), nd.getAttribute('lon'));
} else {
geometryWay.nodes.push(undefined);
}
});
ways.push(geometryWay);
}
_.each(members, function (member, i) {
if (rel.members[i].type == "node") {
if (member.getAttribute('lat')) {
addFullGeometryNode(member.getAttribute('lat'), member.getAttribute('lon'), rel.members[i].ref);
}
} else if (rel.members[i].type == "way") {
if (member.getElementsByTagName('nd').length > 0) {
rel.members[i].ref = "_fullGeom" + rel.members[i].ref;
addFullGeometryWay(member.getElementsByTagName('nd'), rel.members[i].ref);
}
}
});
} // nodes
_.each(xml.getElementsByTagName('node'), function (node, i) {
var tags = {};
_.each(node.getElementsByTagName('tag'), function (tag) {
tags[tag.getAttribute('k')] = tag.getAttribute('v');
});
var nodeObject = {
'type': 'node'
};
copy_attribute(node, nodeObject, 'id');
copy_attribute(node, nodeObject, 'lat');
copy_attribute(node, nodeObject, 'lon');
copy_attribute(node, nodeObject, 'version');
copy_attribute(node, nodeObject, 'timestamp');
copy_attribute(node, nodeObject, 'changeset');
copy_attribute(node, nodeObject, 'uid');
copy_attribute(node, nodeObject, 'user');
if (!_.isEmpty(tags)) nodeObject.tags = tags;
nodes.push(nodeObject);
}); // ways
var centroid, bounds;
_.each(xml.getElementsByTagName('way'), function (way, i) {
var tags = {};
var wnodes = [];
_.each(way.getElementsByTagName('tag'), function (tag) {
tags[tag.getAttribute('k')] = tag.getAttribute('v');
});
var has_full_geometry = false;
_.each(way.getElementsByTagName('nd'), function (nd, i) {
var id;
if (id = nd.getAttribute('ref')) wnodes[i] = id;
if (!has_full_geometry && nd.getAttribute('lat')) has_full_geometry = true;
});
var wayObject = {
"type": "way"
};
copy_attribute(way, wayObject, 'id');
copy_attribute(way, wayObject, 'version');
copy_attribute(way, wayObject, 'timestamp');
copy_attribute(way, wayObject, 'changeset');
copy_attribute(way, wayObject, 'uid');
copy_attribute(way, wayObject, 'user');
if (wnodes.length > 0) wayObject.nodes = wnodes;
if (!_.isEmpty(tags)) wayObject.tags = tags;
if (centroid = way.getElementsByTagName('center')[0]) centerGeometry(wayObject, centroid);
if (has_full_geometry) fullGeometryWay(wayObject, way.getElementsByTagName('nd'));else if (bounds = way.getElementsByTagName('bounds')[0]) boundsGeometry(wayObject, bounds);
ways.push(wayObject);
}); // relations
_.each(xml.getElementsByTagName('relation'), function (relation, i) {
var tags = {};
var members = [];
_.each(relation.getElementsByTagName('tag'), function (tag) {
tags[tag.getAttribute('k')] = tag.getAttribute('v');
});
var has_full_geometry = false;
_.each(relation.getElementsByTagName('member'), function (member, i) {
members[i] = {};
copy_attribute(member, members[i], 'ref');
copy_attribute(member, members[i], 'role');
copy_attribute(member, members[i], 'type');
if (!has_full_geometry && members[i].type == 'node' && member.getAttribute('lat') || members[i].type == 'way' && member.getElementsByTagName('nd').length > 0) has_full_geometry = true;
});
var relObject = {
"type": "relation"
};
copy_attribute(relation, relObject, 'id');
copy_attribute(relation, relObject, 'version');
copy_attribute(relation, relObject, 'timestamp');
copy_attribute(relation, relObject, 'changeset');
copy_attribute(relation, relObject, 'uid');
copy_attribute(relation, relObject, 'user');
if (members.length > 0) relObject.members = members;
if (!_.isEmpty(tags)) relObject.tags = tags;
if (centroid = relation.getElementsByTagName('center')[0]) centerGeometry(relObject, centroid);
if (has_full_geometry) fullGeometryRelation(relObject, relation.getElementsByTagName('member'));else if (bounds = relation.getElementsByTagName('bounds')[0]) boundsGeometry(relObject, bounds);
rels.push(relObject);
});
return _convert2geoJSON(nodes, ways, rels);
}
function _convert2geoJSON(nodes, ways, rels) {
// helper function that checks if there are any tags other than "created_by", "source", etc. or any tag provided in ignore_tags
function has_interesting_tags(t, ignore_tags) {
if (typeof ignore_tags !== "object") ignore_tags = {};
if (typeof options.uninterestingTags === "function") return !options.uninterestingTags(t, ignore_tags);
for (var k in t) {
if (!(options.uninterestingTags[k] === true) && !(ignore_tags[k] === true || ignore_tags[k] === t[k])) return true;
}
return false;
}
; // helper function to extract meta information
function build_meta_information(object) {
var res = {
"timestamp": object.timestamp,
"version": object.version,
"changeset": object.changeset,
"user": object.user,
"uid": object.uid
};
for (var k in res) {
if (res[k] === undefined) delete res[k];
}
return res;
} // some data processing (e.g. filter nodes only used for ways)
var nodeids = new Object();
var poinids = new Object();
for (var i = 0; i < nodes.length; i++) {
var node = nodes[i];
if (nodeids[node.id] !== undefined) {
// handle input data duplication
node = options.deduplicator(node, nodeids[node.id]);
}
nodeids[node.id] = node;
if (typeof node.tags != 'undefined' && has_interesting_tags(node.tags)) // this checks if the node has any tags other than "created_by"
poinids[node.id] = true;
} // todo -> after deduplication of relations??
for (var i = 0; i < rels.length; i++) {
if (_.isArray(rels[i].members)) {
for (var j = 0; j < rels[i].members.length; j++) {
if (rels[i].members[j].type == "node") poinids[rels[i].members[j].ref] = true;
}
}
}
var wayids = new Object();
var waynids = new Object();
for (var i = 0; i < ways.length; i++) {
var way = ways[i];
if (wayids[way.id]) {
// handle input data duplication
way = options.deduplicator(way, wayids[way.id]);
}
wayids[way.id] = way;
if (_.isArray(way.nodes)) {
for (var j = 0; j < way.nodes.length; j++) {
if (typeof way.nodes[j] === "object") continue; // ignore already replaced way node objects
waynids[way.nodes[j]] = true;
way.nodes[j] = nodeids[way.nodes[j]];
}
}
}
var pois = new Array();
for (var id in nodeids) {
var node = nodeids[id];
if (!waynids[id] || poinids[id]) pois.push(node);
}
var relids = new Array();
for (var i = 0; i < rels.length; i++) {
var rel = rels[i];
if (relids[rel.id]) {
// handle input data duplication
rel = options.deduplicator(rel, relids[rel.id]);
}
relids[rel.id] = rel;
}
var relsmap = {
node: {},
way: {},
relation: {}
};
for (var id in relids) {
var rel = relids[id];
if (!_.isArray(rel.members)) {
if (options.verbose) console.warn('Relation', rel.type + '/' + rel.id, 'ignored because it has no members');
continue; // ignore relations without members (e.g. returned by an ids_only query)
}
for (var j = 0; j < rel.members.length; j++) {
var m_type = rel.members[j].type;
var m_ref = rel.members[j].ref;
if (typeof m_ref !== "number") {
// de-namespace full geometry content
m_ref = m_ref.replace("_fullGeom", "");
}
if (!relsmap[m_type]) {
if (options.verbose) console.warn('Relation', rel.type + '/' + rel.id, 'member', m_type + '/' + m_ref, 'ignored because it has an invalid type');
continue;
}
if (typeof relsmap[m_type][m_ref] === "undefined") relsmap[m_type][m_ref] = [];
relsmap[m_type][m_ref].push({
"role": rel.members[j].role,
"rel": rel.id,
"reltags": rel.tags
});
}
} // construct geojson
var geojson;
var geojsonnodes = [];
for (i = 0; i < pois.length; i++) {
if (typeof pois[i].lon == "undefined" || typeof pois[i].lat == "undefined") {
if (options.verbose) console.warn('POI', pois[i].type + '/' + pois[i].id, 'ignored because it lacks coordinates');
continue; // lon and lat are required for showing a point
}
var feature = {
"type": "Feature",
"id": pois[i].type + "/" + pois[i].id,
"properties": {
"type": pois[i].type,
"id": pois[i].id,
"tags": pois[i].tags || {},
"relations": relsmap["node"][pois[i].id] || [],
"meta": build_meta_information(pois[i])
},
"geometry": {
"type": "Point",
"coordinates": [+pois[i].lon, +pois[i].lat]
}
};
if (pois[i].__is_center_placeholder) feature.properties["geometry"] = "center";
if (!featureCallback) geojsonnodes.push(feature);else featureCallback(feature);
}
var geojsonlines = [];
var geojsonpolygons = []; // process multipolygons
for (var i = 0; i < rels.length; i++) {
// todo: refactor such that this loops over relids instead of rels?
if (relids[rels[i].id] !== rels[i]) {
// skip relation because it's a deduplication artifact
continue;
}
if (typeof rels[i].tags != "undefined" && (rels[i].tags["type"] == "route" || rels[i].tags["type"] == "waterway")) {
var construct_multilinestring = function construct_multilinestring(rel) {
var is_tainted = false; // prepare route members
var members;
members = rel.members.filter(function (m) {
return m.type === "way";
});
members = members.map(function (m) {
var way = wayids[m.ref];
if (way === undefined || way.nodes === undefined) {
// check for missing ways
if (options.verbose) console.warn('Route ' + rel.type + '/' + rel.id, 'tainted by a missing or incomplete way', m.type + '/' + m.ref);
is_tainted = true;
return;
}
return {
// TODO: this is slow! :(
id: m.ref,
role: m.role,
way: way,
nodes: way.nodes.filter(function (n) {
if (n !== undefined) return true;
is_tainted = true;
if (options.verbose) console.warn('Route', rel.type + '/' + rel.id, 'tainted by a way', m.type + '/' + m.ref, 'with a missing node');
return false;
})
};
});
members = _.compact(members); // construct connected linestrings
var linestrings;
linestrings = join(members); // sanitize mp-coordinates (remove empty clusters or rings, {lat,lon,...} to [lon,lat]
var coords = [];
coords = _.compact(linestrings.map(function (linestring) {
return _.compact(linestring.map(function (node) {
return [+node.lon, +node.lat];
}));
}));
if (coords.length == 0) {
if (options.verbose) console.warn('Route', rel.type + '/' + rel.id, 'contains no coordinates');
return false; // ignore routes without coordinates
} // mp parsed, now construct the geoJSON
var feature = {
"type": "Feature",
"id": rel.type + "/" + rel.id,
"properties": {
"type": rel.type,
"id": rel.id,
"tags": rel.tags || {},
"relations": relsmap[rel.type][rel.id] || [],
"meta": build_meta_information(rel)
},
"geometry": {
"type": coords.length === 1 ? "LineString" : "MultiLineString",
"coordinates": coords.length === 1 ? coords[0] : coords
}
};
if (is_tainted) {
if (options.verbose) console.warn('Route', rel.type + '/' + rel.id, 'is tainted');
feature.properties["tainted"] = true;
}
return feature;
};
if (!_.isArray(rels[i].members)) {
if (options.verbose) console.warn('Route', rels[i].type + '/' + rels[i].id, 'ignored because it has no members');
continue; // ignore relations without members (e.g. returned by an ids_only query)
}
rels[i].members.forEach(function (m) {
if (wayids[m.ref] && !has_interesting_tags(wayids[m.ref].tags)) wayids[m.ref].is_skippablerelationmember = true;
});
feature = construct_multilinestring(rels[i]);
if (feature === false) {
if (options.verbose) console.warn('Route relation', rels[i].type + '/' + rels[i].id, 'ignored because it has invalid geometry');
continue; // abort if feature could not be constructed
}
if (!featureCallback) geojsonpolygons.push(feature);else featureCallback(rewind(feature));
} // end construct multilinestring for route relations
if (typeof rels[i].tags != "undefined" && (rels[i].tags["type"] == "multipolygon" || rels[i].tags["type"] == "boundary")) {
var construct_multipolygon = function construct_multipolygon(tag_object, rel) {
var is_tainted = false;
var mp_geometry = simple_mp ? 'way' : 'relation',
mp_id = typeof tag_object.id === "number" ? tag_object.id : +tag_object.id.replace("_fullGeom", ""); // prepare mp members
var members;
members = rel.members.filter(function (m) {
return m.type === "way";
});
members = members.map(function (m) {
var way = wayids[m.ref];
if (way === undefined || way.nodes === undefined) {
// check for missing ways
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'tainted by a missing or incomplete way', m.type + '/' + m.ref);
is_tainted = true;
return;
}
return {
// TODO: this is slow! :(
id: m.ref,
role: m.role || "outer",
way: way,
nodes: way.nodes.filter(function (n) {
if (n !== undefined) return true;
is_tainted = true;
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'tainted by a way', m.type + '/' + m.ref, 'with a missing node');
return false;
})
};
});
members = _.compact(members); // construct outer and inner rings
var outers, inners;
outers = join(members.filter(function (m) {
return m.role === "outer";
}));
inners = join(members.filter(function (m) {
return m.role === "inner";
})); // sort rings
var mp;
function findOuter(inner) {
var polygonIntersectsPolygon = function polygonIntersectsPolygon(outer, inner) {
for (var i = 0; i < inner.length; i++) {
if (pointInPolygon(inner[i], outer)) return true;
}
return false;
};
var mapCoordinates = function mapCoordinates(from) {
return from.map(function (n) {
return [+n.lat, +n.lon];
});
}; // stolen from iD/geo.js,
// based on https://github.com/substack/point-in-polygon,
// ray-casting algorithm based on http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html
var pointInPolygon = function pointInPolygon(point, polygon) {
var x = point[0],
y = point[1],
inside = false;
for (var i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
var xi = polygon[i][0],
yi = polygon[i][1];
var xj = polygon[j][0],
yj = polygon[j][1];
var intersect = yi > y != yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
if (intersect) inside = !inside;
}
return inside;
}; // stolen from iD/relation.js
var o, outer; // todo: all this coordinate mapping makes this unneccesarily slow.
// see the "todo: this is slow! :(" above.
inner = mapCoordinates(inner);
/*for (o = 0; o < outers.length; o++) {
outer = mapCoordinates(outers[o]);
if (polygonContainsPolygon(outer, inner))
return o;
}*/
for (o = 0; o < outers.length; o++) {
outer = mapCoordinates(outers[o]);
if (polygonIntersectsPolygon(outer, inner)) return o;
}
}
mp = outers.map(function (o) {
return [o];
});
for (var j = 0; j < inners.length; j++) {
var o = findOuter(inners[j]);
if (o !== undefined) mp[o].push(inners[j]);else if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'contains an inner ring with no containing outer'); // so, no outer ring for this inner ring is found.
// We're going to ignore holes in empty space.
;
} // sanitize mp-coordinates (remove empty clusters or rings, {lat,lon,...} to [lon,lat]
var mp_coords = [];
mp_coords = _.compact(mp.map(function (cluster) {
var cl = _.compact(cluster.map(function (ring) {
if (ring.length < 4) {
// todo: is this correct: ring.length < 4 ?
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'contains a ring with less than four nodes');
return;
}
return _.compact(ring.map(function (node) {
return [+node.lon, +node.lat];
}));
}));
if (cl.length == 0) {
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'contains an empty ring cluster');
return;
}
return cl;
}));
if (mp_coords.length == 0) {
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'contains no coordinates');
return false; // ignore multipolygons without coordinates
}
var mp_type = "MultiPolygon";
if (mp_coords.length === 1) {
mp_type = "Polygon";
mp_coords = mp_coords[0];
} // mp parsed, now construct the geoJSON
var feature = {
"type": "Feature",
"id": tag_object.type + "/" + mp_id,
"properties": {
"type": tag_object.type,
"id": mp_id,
"tags": tag_object.tags || {},
"relations": relsmap[tag_object.type][tag_object.id] || [],
"meta": build_meta_information(tag_object)
},
"geometry": {
"type": mp_type,
"coordinates": mp_coords
}
};
if (is_tainted) {
if (options.verbose) console.warn('Multipolygon', mp_geometry + '/' + mp_id, 'is tainted');
feature.properties["tainted"] = true;
}
return feature;
};
if (!_.isArray(rels[i].members)) {
if (options.verbose) console.warn('Multipolygon', rels[i].type + '/' + rels[i].id, 'ignored because it has no members');
continue; // ignore relations without members (e.g. returned by an ids_only query)
}
var outer_count = 0;
for (var j = 0; j < rels[i].members.length; j++) {
if (rels[i].members[j].role == "outer") outer_count++;else if (options.verbose && rels[i].members[j].role != "inner") console.warn('Multipolygon', rels[i].type + '/' + rels[i].id, 'member', rels[i].members[j].type + '/' + rels[i].members[j].ref, 'ignored because it has an invalid role: "' + rels[i].members[j].role + '"');
}
rels[i].members.forEach(function (m) {
if (wayids[m.ref]) {
// this even works in the following corner case:
// a multipolygon amenity=xxx with outer line tagged amenity=yyy
// see https://github.com/tyrasd/osmtogeojson/issues/7
if (m.role === "outer" && !has_interesting_tags(wayids[m.ref].tags, rels[i].tags)) wayids[m.ref].is_skippablerelationmember = true;
if (m.role === "inner" && !has_interesting_tags(wayids[m.ref].tags)) wayids[m.ref].is_skippablerelationmember = true;
}
});
if (outer_count == 0) {
if (options.verbose) console.warn('Multipolygon relation', rels[i].type + '/' + rels[i].id, 'ignored because it has no outer ways');
continue; // ignore multipolygons without outer ways
}
var simple_mp = false;
if (outer_count == 1 && !has_interesting_tags(rels[i].tags, {
"type": true
})) simple_mp = true;
var feature = null;
if (!simple_mp) {
feature = construct_multipolygon(rels[i], rels[i]);
} else {
// simple multipolygon
var outer_way = rels[i].members.filter(function (m) {
return m.role === "outer";
})[0];
outer_way = wayids[outer_way.ref];
if (outer_way === undefined) {
if (options.verbose) console.warn('Multipolygon relation', rels[i].type + '/' + rels[i].id, 'ignored because outer way', outer_way.type + '/' + outer_way.ref, 'is missing');
continue; // abort if outer way object is not present
}
outer_way.is_skippablerelationmember = true;
feature = construct_multipolygon(outer_way, rels[i]);
}
if (feature === false) {
if (options.verbose) console.warn('Multipolygon relation', rels[i].type + '/' + rels[i].id, 'ignored because it has invalid geometry');
continue; // abort if feature could not be constructed
}
if (!featureCallback) geojsonpolygons.push(feature);else featureCallback(rewind(feature));
}
} // process lines and polygons
for (var i = 0; i < ways.length; i++) {
// todo: refactor such that this loops over wayids instead of ways?
if (wayids[ways[i].id] !== ways[i]) {
// skip way because it's a deduplication artifact
continue;
}
if (!_.isArray(ways[i].nodes)) {
if (options.verbose) console.warn('Way', ways[i].type + '/' + ways[i].id, 'ignored because it has no nodes');
continue; // ignore ways without nodes (e.g. returned by an ids_only query)
}
if (ways[i].is_skippablerelationmember) continue; // ignore ways which are already rendered as (part of) a multipolygon
if (typeof ways[i].id !== "number") {
// remove full geometry namespace for output
ways[i].id = +ways[i].id.replace("_fullGeom", "");
}
ways[i].tainted = false;
ways[i].hidden = false;
var coords = new Array();
for (j = 0; j < ways[i].nodes.length; j++) {
if (typeof ways[i].nodes[j] == "object") coords.push([+ways[i].nodes[j].lon, +ways[i].nodes[j].lat]);else {
if (options.verbose) console.warn('Way', ways[i].type + '/' + ways[i].id, 'is tainted by an invalid node');
ways[i].tainted = true;
}
}
if (coords.length <= 1) {
// invalid way geometry
if (options.verbose) console.warn('Way', ways[i].type + '/' + ways[i].id, 'ignored because it contains too few nodes');
continue;
}
var way_type = "LineString"; // default
if (typeof ways[i].nodes[0] != "undefined" && typeof ways[i].nodes[ways[i].nodes.length - 1] != "undefined" && // way has its start/end nodes loaded
ways[i].nodes[0].id === ways[i].nodes[ways[i].nodes.length - 1].id && ( // ... and forms a closed ring
typeof ways[i].tags != "undefined" && // ... and has tags
_isPolygonFeature(ways[i].tags) // ... and tags say it is a polygon
|| // or is a placeholder for a bounds geometry
ways[i].__is_bounds_placeholder)) {
way_type = "Polygon";
coords = [coords];
}
var feature = {
"type": "Feature",
"id": ways[i].type + "/" + ways[i].id,
"properties": {
"type": ways[i].type,
"id": ways[i].id,
"tags": ways[i].tags || {},
"relations": relsmap["way"][ways[i].id] || [],
"meta": build_meta_information(ways[i])
},
"geometry": {
"type": way_type,
"coordinates": coords
}
};
if (ways[i].tainted) {
if (options.verbose) console.warn('Way', ways[i].type + '/' + ways[i].id, 'is tainted');
feature.properties["tainted"] = true;
}
if (ways[i].__is_bounds_placeholder) feature.properties["geometry"] = "bounds";
if (!featureCallback) {
if (way_type == "LineString") geojsonlines.push(feature);else geojsonpolygons.push(feature);
} else {
featureCallback(rewind(feature));
}
}
if (featureCallback) return true;
geojson = {
"type": "FeatureCollection",
"features": []
};
geojson.features = geojson.features.concat(geojsonpolygons);
geojson.features = geojson.features.concat(geojsonlines);
geojson.features = geojson.features.concat(geojsonnodes); // optionally, flatten properties
if (options.flatProperties) {
geojson.features.forEach(function (f) {
f.properties = _.merge(f.properties.meta, f.properties.tags, {
id: f.properties.type + "/" + f.properties.id
});
});
} // fix polygon winding
geojson = rewind(geojson);
return geojson;
}
function _isPolygonFeature(tags) {
var polygonFeatures = options.polygonFeatures;
if (typeof polygonFeatures === "function") return polygonFeatures(tags); // explicitely tagged non-areas
if (tags['area'] === 'no') return false; // assuming that a typical OSM way has in average less tags than
// the polygonFeatures list, this way around should be faster
for (var key in tags) {
var val = tags[key];
var pfk = polygonFeatures[key]; // continue with next if tag is unknown or not "categorizing"
if (typeof pfk === 'undefined') continue; // continue with next if tag is explicitely un-set ("building=no")
if (val === 'no') continue; // check polygon features for: general acceptance, included or excluded values
if (pfk === true) return true;
if (pfk.included_values && pfk.included_values[val] === true) return true;
if (pfk.excluded_values && pfk.excluded_values[val] !== true) return true;
} // if no tags matched, this ain't no area.
return false;
}
}; // helper that joins adjacent osm ways into linestrings or linear rings
function join(ways) {
var _first = function _first(arr) {
return arr[0];
};
var _last = function _last(arr) {
return arr[arr.length - 1];
};
var _fitTogether = function _fitTogether(n1, n2) {
return n1 !== undefined && n2 !== undefined && n1.id === n2.id;
}; // stolen from iD/relation.js
var joined = [],
current,
first,
last,
i,
how,
what;
while (ways.length) {
current = ways.pop().nodes.slice();
joined.push(current);
while (ways.length && !_fitTogether(_first(current), _last(current))) {
first = _first(current);
last = _last(current);
for (i = 0; i < ways.length; i++) {
what = ways[i].nodes;
if (_fitTogether(last, _first(what))) {
how = current.push;
what = what.slice(1);
break;
} else if (_fitTogether(last, _last(what))) {
how = current.push;
what = what.slice(0, -1).reverse();
break;
} else if (_fitTogether(first, _last(what))) {
how = current.unshift;
what = what.slice(0, -1);
break;
} else if (_fitTogether(first, _first(what))) {
how = current.unshift;
what = what.slice(1).reverse();
break;
} else {
what = how = null;
}
}
if (!what) break; // Invalid geometry (dangling way, unclosed ring)
ways.splice(i, 1);
how.apply(current, what);
}
}
return joined;
} // for backwards compatibility
osmtogeojson.toGeojson = osmtogeojson;
module.exports = osmtogeojson;
/***/
},
/***/
"EK0E":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/es6.weak-map.js ***!
\******************************************************/
/*! no static exports found */
/***/
function EK0E(module, exports, __webpack_require__) {
"use strict";
var global = __webpack_require__(
/*! ./_global */
"dyZX");
var each = __webpack_require__(
/*! ./_array-methods */
"CkkT")(0);
var redefine = __webpack_require__(
/*! ./_redefine */
"KroJ");
var meta = __webpack_require__(
/*! ./_meta */
"Z6vF");
var assign = __webpack_require__(
/*! ./_object-assign */
"czNK");
var weak = __webpack_require__(
/*! ./_collection-weak */
"ZD67");
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var validate = __webpack_require__(
/*! ./_validate-collection */
"s5qY");
var NATIVE_WEAK_MAP = __webpack_require__(
/*! ./_validate-collection */
"s5qY");
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var WEAK_MAP = 'WeakMap';
var getWeak = meta.getWeak;
var isExtensible = Object.isExtensible;
var uncaughtFrozenStore = weak.ufstore;
var InternalMap;
var wrapper = function wrapper(get) {
return function WeakMap() {
return get(this, arguments.length > 0 ? arguments[0] : undefined);
};
};
var methods = {
// 23.3.3.3 WeakMap.prototype.get(key)
get: function get(key) {
if (isObject(key)) {
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
return data ? data[this._i] : undefined;
}
},
// 23.3.3.5 WeakMap.prototype.set(key, value)
set: function set(key, value) {
return weak.def(validate(this, WEAK_MAP), key, value);
}
}; // 23.3 WeakMap Objects
var $WeakMap = module.exports = __webpack_require__(
/*! ./_collection */
"4LiD")(WEAK_MAP, wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix
if (NATIVE_WEAK_MAP && IS_IE11) {
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
var proto = $WeakMap.prototype;
var method = proto[key];
redefine(proto, key, function (a, b) {
// store frozen objects on internal weakmap shim
if (isObject(a) && !isExtensible(a)) {
if (!this._f) this._f = new InternalMap();
var result = this._f[key](a, b);
return key == 'set' ? this : result; // store all the rest on native weakmap
}
return method.call(this, a, b);
});
});
}
/***/
},
/***/
"EQ5u":
/*!*********************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js ***!
\*********************************************************************************/
/*! exports provided: ConnectableObservable, connectableObservableDescriptor */
/***/
function EQ5u(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ConnectableObservable", function () {
return ConnectableObservable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "connectableObservableDescriptor", function () {
return connectableObservableDescriptor;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subject */
"XNiG");
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _operators_refCount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../operators/refCount */
"x+ZX");
var ConnectableObservable = /*#__PURE__*/function (_Observable__WEBPACK_) {
_inherits(ConnectableObservable, _Observable__WEBPACK_);
var _super41 = _createSuper(ConnectableObservable);
function ConnectableObservable(source, subjectFactory) {
var _this62;
_classCallCheck(this, ConnectableObservable);
_this62 = _super41.call(this);
_this62.source = source;
_this62.subjectFactory = subjectFactory;
_this62._refCount = 0;
_this62._isComplete = false;
return _this62;
}
_createClass2(ConnectableObservable, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
return this.getSubject().subscribe(subscriber);
}
}, {
key: "getSubject",
value: function getSubject() {
var subject = this._subject;
if (!subject || subject.isStopped) {
this._subject = this.subjectFactory();
}
return this._subject;
}
}, {
key: "connect",
value: function connect() {
var connection = this._connection;
if (!connection) {
this._isComplete = false;
connection = this._connection = new _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"]();
connection.add(this.source.subscribe(new ConnectableSubscriber(this.getSubject(), this)));
if (connection.closed) {
this._connection = null;
connection = _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"].EMPTY;
}
}
return connection;
}
}, {
key: "refCount",
value: function refCount() {
return Object(_operators_refCount__WEBPACK_IMPORTED_MODULE_4__["refCount"])()(this);
}
}]);
return ConnectableObservable;
}(_Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]);
var connectableObservableDescriptor = function () {
var connectableProto = ConnectableObservable.prototype;
return {
operator: {
value: null
},
_refCount: {
value: 0,
writable: true
},
_subject: {
value: null,
writable: true
},
_connection: {
value: null,
writable: true
},
_subscribe: {
value: connectableProto._subscribe
},
_isComplete: {
value: connectableProto._isComplete,
writable: true
},
getSubject: {
value: connectableProto.getSubject
},
connect: {
value: connectableProto.connect
},
refCount: {
value: connectableProto.refCount
}
};
}();
var ConnectableSubscriber = /*#__PURE__*/function (_Subject__WEBPACK_IMP2) {
_inherits(ConnectableSubscriber, _Subject__WEBPACK_IMP2);
var _super42 = _createSuper(ConnectableSubscriber);
function ConnectableSubscriber(destination, connectable) {
var _this63;
_classCallCheck(this, ConnectableSubscriber);
_this63 = _super42.call(this, destination);
_this63.connectable = connectable;
return _this63;
}
_createClass2(ConnectableSubscriber, [{
key: "_error",
value: function _error(err) {
this._unsubscribe();
_get(_getPrototypeOf(ConnectableSubscriber.prototype), "_error", this).call(this, err);
}
}, {
key: "_complete",
value: function _complete() {
this.connectable._isComplete = true;
this._unsubscribe();
_get(_getPrototypeOf(ConnectableSubscriber.prototype), "_complete", this).call(this);
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var connectable = this.connectable;
if (connectable) {
this.connectable = null;
var connection = connectable._connection;
connectable._refCount = 0;
connectable._subject = null;
connectable._connection = null;
if (connection) {
connection.unsubscribe();
}
}
}
}]);
return ConnectableSubscriber;
}(_Subject__WEBPACK_IMPORTED_MODULE_0__["SubjectSubscriber"]);
var RefCountOperator = /*#__PURE__*/function () {
function RefCountOperator(connectable) {
_classCallCheck(this, RefCountOperator);
this.connectable = connectable;
}
_createClass2(RefCountOperator, [{
key: "call",
value: function call(subscriber, source) {
var connectable = this.connectable;
connectable._refCount++;
var refCounter = new RefCountSubscriber(subscriber, connectable);
var subscription = source.subscribe(refCounter);
if (!refCounter.closed) {
refCounter.connection = connectable.connect();
}
return subscription;
}
}]);
return RefCountOperator;
}();
var RefCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_13) {
_inherits(RefCountSubscriber, _Subscriber__WEBPACK_13);
var _super43 = _createSuper(RefCountSubscriber);
function RefCountSubscriber(destination, connectable) {
var _this64;
_classCallCheck(this, RefCountSubscriber);
_this64 = _super43.call(this, destination);
_this64.connectable = connectable;
return _this64;
}
_createClass2(RefCountSubscriber, [{
key: "_unsubscribe",
value: function _unsubscribe() {
var connectable = this.connectable;
if (!connectable) {
this.connection = null;
return;
}
this.connectable = null;
var refCount = connectable._refCount;
if (refCount <= 0) {
this.connection = null;
return;
}
connectable._refCount = refCount - 1;
if (refCount > 1) {
this.connection = null;
return;
}
var connection = this.connection;
var sharedConnection = connectable._connection;
this.connection = null;
if (sharedConnection && (!connection || sharedConnection === connection)) {
sharedConnection.unsubscribe();
}
}
}]);
return RefCountSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]); //# sourceMappingURL=ConnectableObservable.js.map
/***/
},
/***/
"EWmC":
/*!***************************************************!*\
!*** ./node_modules/core-js/modules/_is-array.js ***!
\***************************************************/
/*! no static exports found */
/***/
function EWmC(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(
/*! ./_cof */
"LZWt");
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/
},
/***/
"EY2u":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/empty.js ***!
\*****************************************************************/
/*! exports provided: EMPTY, empty */
/***/
function EY2u(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "EMPTY", function () {
return EMPTY;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "empty", function () {
return empty;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
var EMPTY = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
return subscriber.complete();
});
function empty(scheduler) {
return scheduler ? emptyScheduled(scheduler) : EMPTY;
}
function emptyScheduled(scheduler) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
return scheduler.schedule(function () {
return subscriber.complete();
});
});
} //# sourceMappingURL=empty.js.map
/***/
},
/***/
"EemH":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_object-gopd.js ***!
\******************************************************/
/*! no static exports found */
/***/
function EemH(module, exports, __webpack_require__) {
var pIE = __webpack_require__(
/*! ./_object-pie */
"UqcF");
var createDesc = __webpack_require__(
/*! ./_property-desc */
"RjD/");
var toIObject = __webpack_require__(
/*! ./_to-iobject */
"aCFj");
var toPrimitive = __webpack_require__(
/*! ./_to-primitive */
"apmT");
var has = __webpack_require__(
/*! ./_has */
"aagx");
var IE8_DOM_DEFINE = __webpack_require__(
/*! ./_ie8-dom-define */
"xpql");
var gOPD = Object.getOwnPropertyDescriptor;
exports.f = __webpack_require__(
/*! ./_descriptors */
"nh4g") ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
return gOPD(O, P);
} catch (e) {
/* empty */
}
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};
/***/
},
/***/
"F97/":
/*!*********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/not.js ***!
\*********************************************************/
/*! exports provided: not */
/***/
function F97(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "not", function () {
return not;
});
function not(pred, thisArg) {
function notPred() {
return !notPred.pred.apply(notPred.thisArg, arguments);
}
notPred.pred = pred;
notPred.thisArg = thisArg;
return notPred;
} //# sourceMappingURL=not.js.map
/***/
},
/***/
"FD9M":
/*!***********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/bufferToggle.js ***!
\***********************************************************************/
/*! exports provided: bufferToggle */
/***/
function FD9M(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bufferToggle", function () {
return bufferToggle;
});
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/subscribeToResult */
"ZUHj");
/* harmony import */
var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../OuterSubscriber */
"l7GE");
function bufferToggle(openings, closingSelector) {
return function bufferToggleOperatorFunction(source) {
return source.lift(new BufferToggleOperator(openings, closingSelector));
};
}
var BufferToggleOperator = /*#__PURE__*/function () {
function BufferToggleOperator(openings, closingSelector) {
_classCallCheck(this, BufferToggleOperator);
this.openings = openings;
this.closingSelector = closingSelector;
}
_createClass2(BufferToggleOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));
}
}]);
return BufferToggleOperator;
}();
var BufferToggleSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB) {
_inherits(BufferToggleSubscriber, _OuterSubscriber__WEB);
var _super44 = _createSuper(BufferToggleSubscriber);
function BufferToggleSubscriber(destination, openings, closingSelector) {
var _this65;
_classCallCheck(this, BufferToggleSubscriber);
_this65 = _super44.call(this, destination);
_this65.closingSelector = closingSelector;
_this65.contexts = [];
_this65.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(_assertThisInitialized(_this65), openings));
return _this65;
}
_createClass2(BufferToggleSubscriber, [{
key: "_next",
value: function _next(value) {
var contexts = this.contexts;
var len = contexts.length;
for (var i = 0; i < len; i++) {
contexts[i].buffer.push(value);
}
}
}, {
key: "_error",
value: function _error(err) {
var contexts = this.contexts;
while (contexts.length > 0) {
var context = contexts.shift();
context.subscription.unsubscribe();
context.buffer = null;
context.subscription = null;
}
this.contexts = null;
_get(_getPrototypeOf(BufferToggleSubscriber.prototype), "_error", this).call(this, err);
}
}, {
key: "_complete",
value: function _complete() {
var contexts = this.contexts;
while (contexts.length > 0) {
var context = contexts.shift();
this.destination.next(context.buffer);
context.subscription.unsubscribe();
context.buffer = null;
context.subscription = null;
}
this.contexts = null;
_get(_getPrototypeOf(BufferToggleSubscriber.prototype), "_complete", this).call(this);
}
}, {
key: "notifyNext",
value: function notifyNext(outerValue, innerValue) {
outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);
}
}, {
key: "notifyComplete",
value: function notifyComplete(innerSub) {
this.closeBuffer(innerSub.context);
}
}, {
key: "openBuffer",
value: function openBuffer(value) {
try {
var closingSelector = this.closingSelector;
var closingNotifier = closingSelector.call(this, value);
if (closingNotifier) {
this.trySubscribe(closingNotifier);
}
} catch (err) {
this._error(err);
}
}
}, {
key: "closeBuffer",
value: function closeBuffer(context) {
var contexts = this.contexts;
if (contexts && context) {
var buffer = context.buffer,
subscription = context.subscription;
this.destination.next(buffer);
contexts.splice(contexts.indexOf(context), 1);
this.remove(subscription);
subscription.unsubscribe();
}
}
}, {
key: "trySubscribe",
value: function trySubscribe(closingNotifier) {
var contexts = this.contexts;
var buffer = [];
var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
var context = {
buffer: buffer,
subscription: subscription
};
contexts.push(context);
var innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, closingNotifier, context);
if (!innerSubscription || innerSubscription.closed) {
this.closeBuffer(context);
} else {
innerSubscription.context = context;
this.add(innerSubscription);
subscription.add(innerSubscription);
}
}
}]);
return BufferToggleSubscriber;
}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=bufferToggle.js.map
/***/
},
/***/
"FJW5":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_object-dps.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function FJW5(module, exports, __webpack_require__) {
var dP = __webpack_require__(
/*! ./_object-dp */
"hswa");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var getKeys = __webpack_require__(
/*! ./_object-keys */
"DVgA");
module.exports = __webpack_require__(
/*! ./_descriptors */
"nh4g") ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
var i = 0;
var P;
while (length > i) {
dP.f(O, P = keys[i++], Properties[P]);
}
return O;
};
/***/
},
/***/
"FQpF":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/expand.js ***!
\*****************************************************************/
/*! exports provided: expand, ExpandOperator, ExpandSubscriber */
/***/
function FQpF(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "expand", function () {
return expand;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ExpandOperator", function () {
return ExpandOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ExpandSubscriber", function () {
return ExpandSubscriber;
});
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function expand(project) {
var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;
var scheduler = arguments.length > 2 ? arguments[2] : undefined;
concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;
return function (source) {
return source.lift(new ExpandOperator(project, concurrent, scheduler));
};
}
var ExpandOperator = /*#__PURE__*/function () {
function ExpandOperator(project, concurrent, scheduler) {
_classCallCheck(this, ExpandOperator);
this.project = project;
this.concurrent = concurrent;
this.scheduler = scheduler;
}
_createClass2(ExpandOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));
}
}]);
return ExpandOperator;
}();
var ExpandSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP7) {
_inherits(ExpandSubscriber, _innerSubscribe__WEBP7);
var _super45 = _createSuper(ExpandSubscriber);
function ExpandSubscriber(destination, project, concurrent, scheduler) {
var _this66;
_classCallCheck(this, ExpandSubscriber);
_this66 = _super45.call(this, destination);
_this66.project = project;
_this66.concurrent = concurrent;
_this66.scheduler = scheduler;
_this66.index = 0;
_this66.active = 0;
_this66.hasCompleted = false;
if (concurrent < Number.POSITIVE_INFINITY) {
_this66.buffer = [];
}
return _this66;
}
_createClass2(ExpandSubscriber, [{
key: "_next",
value: function _next(value) {
var destination = this.destination;
if (destination.closed) {
this._complete();
return;
}
var index = this.index++;
if (this.active < this.concurrent) {
destination.next(value);
try {
var project = this.project;
var result = project(value, index);
if (!this.scheduler) {
this.subscribeToProjection(result, value, index);
} else {
var state = {
subscriber: this,
result: result,
value: value,
index: index
};
var _destination = this.destination;
_destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));
}
} catch (e) {
destination.error(e);
}
} else {
this.buffer.push(value);
}
}
}, {
key: "subscribeToProjection",
value: function subscribeToProjection(result, value, index) {
this.active++;
var destination = this.destination;
destination.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this)));
}
}, {
key: "_complete",
value: function _complete() {
this.hasCompleted = true;
if (this.hasCompleted && this.active === 0) {
this.destination.complete();
}
this.unsubscribe();
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this._next(innerValue);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
var buffer = this.buffer;
this.active--;
if (buffer && buffer.length > 0) {
this._next(buffer.shift());
}
if (this.hasCompleted && this.active === 0) {
this.destination.complete();
}
}
}], [{
key: "dispatch",
value: function dispatch(arg) {
var subscriber = arg.subscriber,
result = arg.result,
value = arg.value,
index = arg.index;
subscriber.subscribeToProjection(result, value, index);
}
}]);
return ExpandSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=expand.js.map
/***/
},
/***/
"FZB8":
/*!**************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/min.js ***!
\**************************************************************/
/*! exports provided: min */
/***/
function FZB8(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "min", function () {
return min;
});
/* harmony import */
var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./reduce */
"128B");
function min(comparer) {
var min = typeof comparer === 'function' ? function (x, y) {
return comparer(x, y) < 0 ? x : y;
} : function (x, y) {
return x < y ? x : y;
};
return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(min);
} //# sourceMappingURL=min.js.map
/***/
},
/***/
"FZcq":
/*!*********************************************!*\
!*** ./node_modules/core-js/es7/reflect.js ***!
\*********************************************/
/*! no static exports found */
/***/
function FZcq(module, exports, __webpack_require__) {
__webpack_require__(
/*! ../modules/es7.reflect.define-metadata */
"49D4");
__webpack_require__(
/*! ../modules/es7.reflect.delete-metadata */
"zq+C");
__webpack_require__(
/*! ../modules/es7.reflect.get-metadata */
"45Tv");
__webpack_require__(
/*! ../modules/es7.reflect.get-metadata-keys */
"uAtd");
__webpack_require__(
/*! ../modules/es7.reflect.get-own-metadata */
"BqfV");
__webpack_require__(
/*! ../modules/es7.reflect.get-own-metadata-keys */
"fN/3");
__webpack_require__(
/*! ../modules/es7.reflect.has-metadata */
"iW+S");
__webpack_require__(
/*! ../modules/es7.reflect.has-own-metadata */
"7Dlh");
__webpack_require__(
/*! ../modules/es7.reflect.metadata */
"Opxb");
module.exports = __webpack_require__(
/*! ../modules/_core */
"g3g5").Reflect;
/***/
},
/***/
"GJmQ":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/takeWhile.js ***!
\********************************************************************/
/*! exports provided: takeWhile */
/***/
function GJmQ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "takeWhile", function () {
return takeWhile;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function takeWhile(predicate) {
var inclusive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return function (source) {
return source.lift(new TakeWhileOperator(predicate, inclusive));
};
}
var TakeWhileOperator = /*#__PURE__*/function () {
function TakeWhileOperator(predicate, inclusive) {
_classCallCheck(this, TakeWhileOperator);
this.predicate = predicate;
this.inclusive = inclusive;
}
_createClass2(TakeWhileOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));
}
}]);
return TakeWhileOperator;
}();
var TakeWhileSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_14) {
_inherits(TakeWhileSubscriber, _Subscriber__WEBPACK_14);
var _super46 = _createSuper(TakeWhileSubscriber);
function TakeWhileSubscriber(destination, predicate, inclusive) {
var _this67;
_classCallCheck(this, TakeWhileSubscriber);
_this67 = _super46.call(this, destination);
_this67.predicate = predicate;
_this67.inclusive = inclusive;
_this67.index = 0;
return _this67;
}
_createClass2(TakeWhileSubscriber, [{
key: "_next",
value: function _next(value) {
var destination = this.destination;
var result;
try {
result = this.predicate(value, this.index++);
} catch (err) {
destination.error(err);
return;
}
this.nextOrComplete(value, result);
}
}, {
key: "nextOrComplete",
value: function nextOrComplete(value, predicateResult) {
var destination = this.destination;
if (Boolean(predicateResult)) {
destination.next(value);
} else {
if (this.inclusive) {
destination.next(value);
}
destination.complete();
}
}
}]);
return TakeWhileSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=takeWhile.js.map
/***/
},
/***/
"Gi4w":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/every.js ***!
\****************************************************************/
/*! exports provided: every */
/***/
function Gi4w(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "every", function () {
return every;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function every(predicate, thisArg) {
return function (source) {
return source.lift(new EveryOperator(predicate, thisArg, source));
};
}
var EveryOperator = /*#__PURE__*/function () {
function EveryOperator(predicate, thisArg, source) {
_classCallCheck(this, EveryOperator);
this.predicate = predicate;
this.thisArg = thisArg;
this.source = source;
}
_createClass2(EveryOperator, [{
key: "call",
value: function call(observer, source) {
return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));
}
}]);
return EveryOperator;
}();
var EverySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_15) {
_inherits(EverySubscriber, _Subscriber__WEBPACK_15);
var _super47 = _createSuper(EverySubscriber);
function EverySubscriber(destination, predicate, thisArg, source) {
var _this68;
_classCallCheck(this, EverySubscriber);
_this68 = _super47.call(this, destination);
_this68.predicate = predicate;
_this68.thisArg = thisArg;
_this68.source = source;
_this68.index = 0;
_this68.thisArg = thisArg || _assertThisInitialized(_this68);
return _this68;
}
_createClass2(EverySubscriber, [{
key: "notifyComplete",
value: function notifyComplete(everyValueMatch) {
this.destination.next(everyValueMatch);
this.destination.complete();
}
}, {
key: "_next",
value: function _next(value) {
var result = false;
try {
result = this.predicate.call(this.thisArg, value, this.index++, this.source);
} catch (err) {
this.destination.error(err);
return;
}
if (!result) {
this.notifyComplete(false);
}
}
}, {
key: "_complete",
value: function _complete() {
this.notifyComplete(true);
}
}]);
return EverySubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=every.js.map
/***/
},
/***/
"GjHo":
/*!**************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/zip.js ***!
\**************************************************************/
/*! exports provided: zip */
/***/
function GjHo(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "zip", function () {
return zip;
});
/* harmony import */
var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../observable/zip */
"1uah");
function zip() {
for (var _len8 = arguments.length, observables = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
observables[_key8] = arguments[_key8];
}
return function zipOperatorFunction(source) {
return source.lift.call(Object(_observable_zip__WEBPACK_IMPORTED_MODULE_0__["zip"]).apply(void 0, [source].concat(observables)));
};
} //# sourceMappingURL=zip.js.map
/***/
},
/***/
"Gqsl":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/repeatWhen.js ***!
\*********************************************************************/
/*! exports provided: repeatWhen */
/***/
function Gqsl(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "repeatWhen", function () {
return repeatWhen;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subject */
"XNiG");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function repeatWhen(notifier) {
return function (source) {
return source.lift(new RepeatWhenOperator(notifier));
};
}
var RepeatWhenOperator = /*#__PURE__*/function () {
function RepeatWhenOperator(notifier) {
_classCallCheck(this, RepeatWhenOperator);
this.notifier = notifier;
}
_createClass2(RepeatWhenOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));
}
}]);
return RepeatWhenOperator;
}();
var RepeatWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP8) {
_inherits(RepeatWhenSubscriber, _innerSubscribe__WEBP8);
var _super48 = _createSuper(RepeatWhenSubscriber);
function RepeatWhenSubscriber(destination, notifier, source) {
var _this69;
_classCallCheck(this, RepeatWhenSubscriber);
_this69 = _super48.call(this, destination);
_this69.notifier = notifier;
_this69.source = source;
_this69.sourceIsBeingSubscribedTo = true;
return _this69;
}
_createClass2(RepeatWhenSubscriber, [{
key: "notifyNext",
value: function notifyNext() {
this.sourceIsBeingSubscribedTo = true;
this.source.subscribe(this);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
if (this.sourceIsBeingSubscribedTo === false) {
return _get(_getPrototypeOf(RepeatWhenSubscriber.prototype), "complete", this).call(this);
}
}
}, {
key: "complete",
value: function complete() {
this.sourceIsBeingSubscribedTo = false;
if (!this.isStopped) {
if (!this.retries) {
this.subscribeToRetries();
}
if (!this.retriesSubscription || this.retriesSubscription.closed) {
return _get(_getPrototypeOf(RepeatWhenSubscriber.prototype), "complete", this).call(this);
}
this._unsubscribeAndRecycle();
this.notifications.next(undefined);
}
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var notifications = this.notifications,
retriesSubscription = this.retriesSubscription;
if (notifications) {
notifications.unsubscribe();
this.notifications = undefined;
}
if (retriesSubscription) {
retriesSubscription.unsubscribe();
this.retriesSubscription = undefined;
}
this.retries = undefined;
}
}, {
key: "_unsubscribeAndRecycle",
value: function _unsubscribeAndRecycle() {
var _unsubscribe = this._unsubscribe;
this._unsubscribe = null;
_get(_getPrototypeOf(RepeatWhenSubscriber.prototype), "_unsubscribeAndRecycle", this).call(this);
this._unsubscribe = _unsubscribe;
return this;
}
}, {
key: "subscribeToRetries",
value: function subscribeToRetries() {
this.notifications = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
var retries;
try {
var notifier = this.notifier;
retries = notifier(this.notifications);
} catch (e) {
return _get(_getPrototypeOf(RepeatWhenSubscriber.prototype), "complete", this).call(this);
}
this.retries = retries;
this.retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this));
}
}]);
return RepeatWhenSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=repeatWhen.js.map
/***/
},
/***/
"GyhO":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/concat.js ***!
\******************************************************************/
/*! exports provided: concat */
/***/
function GyhO(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "concat", function () {
return concat;
});
/* harmony import */
var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./of */
"LRne");
/* harmony import */
var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../operators/concatAll */
"0EUg");
function concat() {
return Object(_operators_concatAll__WEBPACK_IMPORTED_MODULE_1__["concatAll"])()(Object(_of__WEBPACK_IMPORTED_MODULE_0__["of"]).apply(void 0, arguments));
} //# sourceMappingURL=concat.js.map
/***/
},
/***/
"H6hf":
/*!****************************************************!*\
!*** ./node_modules/core-js/modules/_iter-call.js ***!
\****************************************************/
/*! no static exports found */
/***/
function H6hf(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
module.exports = function (iterator, fn, value, entries) {
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion)
} catch (e) {
var ret = iterator['return'];
if (ret !== undefined) anObject(ret.call(iterator));
throw e;
}
};
/***/
},
/***/
"HDdC":
/*!***********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/Observable.js ***!
\***********************************************************/
/*! exports provided: Observable */
/***/
function HDdC(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Observable", function () {
return Observable;
});
/* harmony import */
var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./util/canReportError */
"8Qeq");
/* harmony import */
var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./util/toSubscriber */
"WyKG");
/* harmony import */
var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./symbol/observable */
"kJWO");
/* harmony import */
var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./util/pipe */
"mCNh");
/* harmony import */
var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./config */
"2fFW");
var Observable = /*#__PURE__*/function () {
function Observable(subscribe) {
_classCallCheck(this, Observable);
this._isScalar = false;
if (subscribe) {
this._subscribe = subscribe;
}
}
_createClass2(Observable, [{
key: "lift",
value: function lift(operator) {
var observable = new Observable();
observable.source = this;
observable.operator = operator;
return observable;
}
}, {
key: "subscribe",
value: function subscribe(observerOrNext, error, complete) {
var operator = this.operator;
var sink = Object(_util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__["toSubscriber"])(observerOrNext, error, complete);
if (operator) {
sink.add(operator.call(sink, this.source));
} else {
sink.add(this.source || _config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable ? this._subscribe(sink) : this._trySubscribe(sink));
}
if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
if (sink.syncErrorThrowable) {
sink.syncErrorThrowable = false;
if (sink.syncErrorThrown) {
throw sink.syncErrorValue;
}
}
}
return sink;
}
}, {
key: "_trySubscribe",
value: function _trySubscribe(sink) {
try {
return this._subscribe(sink);
} catch (err) {
if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
sink.syncErrorThrown = true;
sink.syncErrorValue = err;
}
if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_0__["canReportError"])(sink)) {
sink.error(err);
} else {
console.warn(err);
}
}
}
}, {
key: "forEach",
value: function forEach(next, promiseCtor) {
var _this70 = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var subscription;
subscription = _this70.subscribe(function (value) {
try {
next(value);
} catch (err) {
reject(err);
if (subscription) {
subscription.unsubscribe();
}
}
}, reject, resolve);
});
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
var source = this.source;
return source && source.subscribe(subscriber);
}
}, {
key: _symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"],
value: function value() {
return this;
}
}, {
key: "pipe",
value: function pipe() {
for (var _len9 = arguments.length, operations = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
operations[_key9] = arguments[_key9];
}
if (operations.length === 0) {
return this;
}
return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipeFromArray"])(operations)(this);
}
}, {
key: "toPromise",
value: function toPromise(promiseCtor) {
var _this71 = this;
promiseCtor = getPromiseCtor(promiseCtor);
return new promiseCtor(function (resolve, reject) {
var value;
_this71.subscribe(function (x) {
return value = x;
}, function (err) {
return reject(err);
}, function () {
return resolve(value);
});
});
}
}]);
return Observable;
}();
Observable.create = function (subscribe) {
return new Observable(subscribe);
};
function getPromiseCtor(promiseCtor) {
if (!promiseCtor) {
promiseCtor = _config__WEBPACK_IMPORTED_MODULE_4__["config"].Promise || Promise;
}
if (!promiseCtor) {
throw new Error('no Promise impl found');
}
return promiseCtor;
} //# sourceMappingURL=Observable.js.map
/***/
},
/***/
"Hh5Z":
/*!*************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js ***!
\*************************************************************************/
/*! exports provided: QueueScheduler */
/***/
function Hh5Z(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "QueueScheduler", function () {
return QueueScheduler;
});
/* harmony import */
var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsyncScheduler */
"IjjT");
var QueueScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP) {
_inherits(QueueScheduler, _AsyncScheduler__WEBP);
var _super49 = _createSuper(QueueScheduler);
function QueueScheduler() {
_classCallCheck(this, QueueScheduler);
return _super49.apply(this, arguments);
}
return QueueScheduler;
}(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"]); //# sourceMappingURL=QueueScheduler.js.map
/***/
},
/***/
"Hkhx":
/*!*****************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/onErrorResumeNext.js ***!
\*****************************************************************************/
/*! exports provided: onErrorResumeNext */
/***/
function Hkhx(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function () {
return onErrorResumeNext;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./from */
"Cfvw");
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../util/isArray */
"DH7j");
/* harmony import */
var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./empty */
"EY2u");
function onErrorResumeNext() {
for (var _len10 = arguments.length, sources = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
sources[_key10] = arguments[_key10];
}
if (sources.length === 0) {
return _empty__WEBPACK_IMPORTED_MODULE_3__["EMPTY"];
}
var first = sources[0],
remainder = sources.slice(1);
if (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_2__["isArray"])(first)) {
return onErrorResumeNext.apply(void 0, _toConsumableArray(first));
}
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var subNext = function subNext() {
return subscriber.add(onErrorResumeNext.apply(void 0, _toConsumableArray(remainder)).subscribe(subscriber));
};
return Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(first).subscribe({
next: function next(value) {
subscriber.next(value);
},
error: subNext,
complete: subNext
});
});
} //# sourceMappingURL=onErrorResumeNext.js.map
/***/
},
/***/
"HrJb":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/count.js ***!
\****************************************************************/
/*! exports provided: count */
/***/
function HrJb(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "count", function () {
return count;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function count(predicate) {
return function (source) {
return source.lift(new CountOperator(predicate, source));
};
}
var CountOperator = /*#__PURE__*/function () {
function CountOperator(predicate, source) {
_classCallCheck(this, CountOperator);
this.predicate = predicate;
this.source = source;
}
_createClass2(CountOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));
}
}]);
return CountOperator;
}();
var CountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_16) {
_inherits(CountSubscriber, _Subscriber__WEBPACK_16);
var _super50 = _createSuper(CountSubscriber);
function CountSubscriber(destination, predicate, source) {
var _this72;
_classCallCheck(this, CountSubscriber);
_this72 = _super50.call(this, destination);
_this72.predicate = predicate;
_this72.source = source;
_this72.count = 0;
_this72.index = 0;
return _this72;
}
_createClass2(CountSubscriber, [{
key: "_next",
value: function _next(value) {
if (this.predicate) {
this._tryPredicate(value);
} else {
this.count++;
}
}
}, {
key: "_tryPredicate",
value: function _tryPredicate(value) {
var result;
try {
result = this.predicate(value, this.index++, this.source);
} catch (err) {
this.destination.error(err);
return;
}
if (result) {
this.count++;
}
}
}, {
key: "_complete",
value: function _complete() {
this.destination.next(this.count);
this.destination.complete();
}
}]);
return CountSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=count.js.map
/***/
},
/***/
"I55L":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js ***!
\*****************************************************************/
/*! exports provided: isArrayLike */
/***/
function I55L(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isArrayLike", function () {
return isArrayLike;
});
var isArrayLike = function isArrayLike(x) {
return x && typeof x.length === 'number' && typeof x !== 'function';
}; //# sourceMappingURL=isArrayLike.js.map
/***/
},
/***/
"I5cv":
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.construct.js ***!
\***************************************************************/
/*! no static exports found */
/***/
function I5cv(module, exports, __webpack_require__) {
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var create = __webpack_require__(
/*! ./_object-create */
"Kuth");
var aFunction = __webpack_require__(
/*! ./_a-function */
"2OiF");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var fails = __webpack_require__(
/*! ./_fails */
"eeVq");
var bind = __webpack_require__(
/*! ./_bind */
"8MEG");
var rConstruct = (__webpack_require__(
/*! ./_global */
"dyZX").Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails(function () {
function F() {
/* empty */
}
return !(rConstruct(function () {
/* empty */
}, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
rConstruct(function () {
/* empty */
});
});
$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
construct: function construct(Target, args
/* , newTarget */
) {
aFunction(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
if (Target == newTarget) {
// w/o altered newTarget, optimization for 0-4 arguments
switch (args.length) {
case 0:
return new Target();
case 1:
return new Target(args[0]);
case 2:
return new Target(args[0], args[1]);
case 3:
return new Target(args[0], args[1], args[2]);
case 4:
return new Target(args[0], args[1], args[2], args[3]);
} // w/o altered newTarget, lot of arguments case
var $args = [null];
$args.push.apply($args, args);
return new (bind.apply(Target, $args))();
} // with altered newTarget, not support built-in constructors
var proto = newTarget.prototype;
var instance = create(isObject(proto) ? proto : Object.prototype);
var result = Function.apply.call(Target, instance, args);
return isObject(result) ? result : instance;
}
});
/***/
},
/***/
"I8a+":
/*!**************************************************!*\
!*** ./node_modules/core-js/modules/_classof.js ***!
\**************************************************/
/*! no static exports found */
/***/
function I8a(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(
/*! ./_cof */
"LZWt");
var TAG = __webpack_require__(
/*! ./_wks */
"K0xU")('toStringTag'); // ES3 wrong here
var ARG = cof(function () {
return arguments;
}()) == 'Arguments'; // fallback for IE11 Script Access Denied error
var tryGet = function tryGet(it, key) {
try {
return it[key];
} catch (e) {
/* empty */
}
};
module.exports = function (it) {
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T // builtinTag case
: ARG ? cof(O) // ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
/***/
},
/***/
"IAdc":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/toArray.js ***!
\******************************************************************/
/*! exports provided: toArray */
/***/
function IAdc(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "toArray", function () {
return toArray;
});
/* harmony import */
var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./reduce */
"128B");
function toArrayReducer(arr, item, index) {
if (index === 0) {
return [item];
}
arr.push(item);
return arr;
}
function toArray() {
return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(toArrayReducer, []);
} //# sourceMappingURL=toArray.js.map
/***/
},
/***/
"IjjT":
/*!*************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js ***!
\*************************************************************************/
/*! exports provided: AsyncScheduler */
/***/
function IjjT(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AsyncScheduler", function () {
return AsyncScheduler;
});
/* harmony import */
var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Scheduler */
"Y/cZ");
var AsyncScheduler = /*#__PURE__*/function (_Scheduler__WEBPACK_I) {
_inherits(AsyncScheduler, _Scheduler__WEBPACK_I);
var _super51 = _createSuper(AsyncScheduler);
function AsyncScheduler(SchedulerAction) {
var _this73;
var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"].now;
_classCallCheck(this, AsyncScheduler);
_this73 = _super51.call(this, SchedulerAction, function () {
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _assertThisInitialized(_this73)) {
return AsyncScheduler.delegate.now();
} else {
return now();
}
});
_this73.actions = [];
_this73.active = false;
_this73.scheduled = undefined;
return _this73;
}
_createClass2(AsyncScheduler, [{
key: "schedule",
value: function schedule(work) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var state = arguments.length > 2 ? arguments[2] : undefined;
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
return AsyncScheduler.delegate.schedule(work, delay, state);
} else {
return _get(_getPrototypeOf(AsyncScheduler.prototype), "schedule", this).call(this, work, delay, state);
}
}
}, {
key: "flush",
value: function flush(action) {
var actions = this.actions;
if (this.active) {
actions.push(action);
return;
}
var error;
this.active = true;
do {
if (error = action.execute(action.state, action.delay)) {
break;
}
} while (action = actions.shift());
this.active = false;
if (error) {
while (action = actions.shift()) {
action.unsubscribe();
}
throw error;
}
}
}]);
return AsyncScheduler;
}(_Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"]); //# sourceMappingURL=AsyncScheduler.js.map
/***/
},
/***/
"IlFx":
/*!*******************************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.is-extensible.js ***!
\*******************************************************************/
/*! no static exports found */
/***/
function IlFx(module, exports, __webpack_require__) {
// 26.1.10 Reflect.isExtensible(target)
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var $isExtensible = Object.isExtensible;
$export($export.S, 'Reflect', {
isExtensible: function isExtensible(target) {
anObject(target);
return $isExtensible ? $isExtensible(target) : true;
}
});
/***/
},
/***/
"Iw71":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_dom-create.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function Iw71(module, exports, __webpack_require__) {
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var document = __webpack_require__(
/*! ./_global */
"dyZX").document; // typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return is ? document.createElement(it) : {};
};
/***/
},
/***/
"IzEk":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/take.js ***!
\***************************************************************/
/*! exports provided: take */
/***/
function IzEk(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "take", function () {
return take;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/ArgumentOutOfRangeError */
"4I5i");
/* harmony import */
var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../observable/empty */
"EY2u");
function take(count) {
return function (source) {
if (count === 0) {
return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
} else {
return source.lift(new TakeOperator(count));
}
};
}
var TakeOperator = /*#__PURE__*/function () {
function TakeOperator(total) {
_classCallCheck(this, TakeOperator);
this.total = total;
if (this.total < 0) {
throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]();
}
}
_createClass2(TakeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new TakeSubscriber(subscriber, this.total));
}
}]);
return TakeOperator;
}();
var TakeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_17) {
_inherits(TakeSubscriber, _Subscriber__WEBPACK_17);
var _super52 = _createSuper(TakeSubscriber);
function TakeSubscriber(destination, total) {
var _this74;
_classCallCheck(this, TakeSubscriber);
_this74 = _super52.call(this, destination);
_this74.total = total;
_this74.count = 0;
return _this74;
}
_createClass2(TakeSubscriber, [{
key: "_next",
value: function _next(value) {
var total = this.total;
var count = ++this.count;
if (count <= total) {
this.destination.next(value);
if (count === total) {
this.destination.complete();
this.unsubscribe();
}
}
}
}]);
return TakeSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=take.js.map
/***/
},
/***/
"J+6e":
/*!******************************************************************!*\
!*** ./node_modules/core-js/modules/core.get-iterator-method.js ***!
\******************************************************************/
/*! no static exports found */
/***/
function J6e(module, exports, __webpack_require__) {
var classof = __webpack_require__(
/*! ./_classof */
"I8a+");
var ITERATOR = __webpack_require__(
/*! ./_wks */
"K0xU")('iterator');
var Iterators = __webpack_require__(
/*! ./_iterators */
"hPIQ");
module.exports = __webpack_require__(
/*! ./_core */
"g3g5").getIteratorMethod = function (it) {
if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];
};
/***/
},
/***/
"JIr8":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/catchError.js ***!
\*********************************************************************/
/*! exports provided: catchError */
/***/
function JIr8(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "catchError", function () {
return catchError;
});
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function catchError(selector) {
return function catchErrorOperatorFunction(source) {
var operator = new CatchOperator(selector);
var caught = source.lift(operator);
return operator.caught = caught;
};
}
var CatchOperator = /*#__PURE__*/function () {
function CatchOperator(selector) {
_classCallCheck(this, CatchOperator);
this.selector = selector;
}
_createClass2(CatchOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));
}
}]);
return CatchOperator;
}();
var CatchSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP9) {
_inherits(CatchSubscriber, _innerSubscribe__WEBP9);
var _super53 = _createSuper(CatchSubscriber);
function CatchSubscriber(destination, selector, caught) {
var _this75;
_classCallCheck(this, CatchSubscriber);
_this75 = _super53.call(this, destination);
_this75.selector = selector;
_this75.caught = caught;
return _this75;
}
_createClass2(CatchSubscriber, [{
key: "error",
value: function error(err) {
if (!this.isStopped) {
var result;
try {
result = this.selector(err, this.caught);
} catch (err2) {
_get(_getPrototypeOf(CatchSubscriber.prototype), "error", this).call(this, err2);
return;
}
this._unsubscribeAndRecycle();
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this);
this.add(innerSubscriber);
var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
this.add(innerSubscription);
}
}
}
}]);
return CatchSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=catchError.js.map
/***/
},
/***/
"JX91":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/startWith.js ***!
\********************************************************************/
/*! exports provided: startWith */
/***/
function JX91(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "startWith", function () {
return startWith;
});
/* harmony import */
var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../observable/concat */
"GyhO");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function startWith() {
for (var _len11 = arguments.length, array = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
array[_key11] = arguments[_key11];
}
var scheduler = array[array.length - 1];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(scheduler)) {
array.pop();
return function (source) {
return Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source, scheduler);
};
} else {
return function (source) {
return Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source);
};
}
} //# sourceMappingURL=startWith.js.map
/***/
},
/***/
"JiEa":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_object-gops.js ***!
\******************************************************/
/*! no static exports found */
/***/
function JiEa(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/
},
/***/
"JmF6":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/zipAll.js ***!
\*****************************************************************/
/*! exports provided: zipAll */
/***/
function JmF6(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "zipAll", function () {
return zipAll;
});
/* harmony import */
var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../observable/zip */
"1uah");
function zipAll(project) {
return function (source) {
return source.lift(new _observable_zip__WEBPACK_IMPORTED_MODULE_0__["ZipOperator"](project));
};
} //# sourceMappingURL=zipAll.js.map
/***/
},
/***/
"JxlR":
/*!****************************************************!*\
!*** ./node_modules/osm-polygon-features/index.js ***!
\****************************************************/
/*! no static exports found */
/***/
function JxlR(module, exports, __webpack_require__) {
module.exports = __webpack_require__(
/*! ./polygon-features.json */
"9NWu");
/***/
},
/***/
"K0xU":
/*!**********************************************!*\
!*** ./node_modules/core-js/modules/_wks.js ***!
\**********************************************/
/*! no static exports found */
/***/
function K0xU(module, exports, __webpack_require__) {
var store = __webpack_require__(
/*! ./_shared */
"VTer")('wks');
var uid = __webpack_require__(
/*! ./_uid */
"ylqs");
var Symbol = __webpack_require__(
/*! ./_global */
"dyZX").Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/
},
/***/
"K7De":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/findIndex.js ***!
\********************************************************************/
/*! exports provided: findIndex */
/***/
function K7De(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "findIndex", function () {
return findIndex;
});
/* harmony import */
var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../operators/find */
"cBqT");
function findIndex(predicate, thisArg) {
return function (source) {
return source.lift(new _operators_find__WEBPACK_IMPORTED_MODULE_0__["FindValueOperator"](predicate, source, true, thisArg));
};
} //# sourceMappingURL=findIndex.js.map
/***/
},
/***/
"Kj3r":
/*!***********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js ***!
\***********************************************************************/
/*! exports provided: debounceTime */
/***/
function Kj3r(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "debounceTime", function () {
return debounceTime;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../scheduler/async */
"D0XW");
function debounceTime(dueTime) {
var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
return function (source) {
return source.lift(new DebounceTimeOperator(dueTime, scheduler));
};
}
var DebounceTimeOperator = /*#__PURE__*/function () {
function DebounceTimeOperator(dueTime, scheduler) {
_classCallCheck(this, DebounceTimeOperator);
this.dueTime = dueTime;
this.scheduler = scheduler;
}
_createClass2(DebounceTimeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
}
}]);
return DebounceTimeOperator;
}();
var DebounceTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_18) {
_inherits(DebounceTimeSubscriber, _Subscriber__WEBPACK_18);
var _super54 = _createSuper(DebounceTimeSubscriber);
function DebounceTimeSubscriber(destination, dueTime, scheduler) {
var _this76;
_classCallCheck(this, DebounceTimeSubscriber);
_this76 = _super54.call(this, destination);
_this76.dueTime = dueTime;
_this76.scheduler = scheduler;
_this76.debouncedSubscription = null;
_this76.lastValue = null;
_this76.hasValue = false;
return _this76;
}
_createClass2(DebounceTimeSubscriber, [{
key: "_next",
value: function _next(value) {
this.clearDebounce();
this.lastValue = value;
this.hasValue = true;
this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
}
}, {
key: "_complete",
value: function _complete() {
this.debouncedNext();
this.destination.complete();
}
}, {
key: "debouncedNext",
value: function debouncedNext() {
this.clearDebounce();
if (this.hasValue) {
var lastValue = this.lastValue;
this.lastValue = null;
this.hasValue = false;
this.destination.next(lastValue);
}
}
}, {
key: "clearDebounce",
value: function clearDebounce() {
var debouncedSubscription = this.debouncedSubscription;
if (debouncedSubscription !== null) {
this.remove(debouncedSubscription);
debouncedSubscription.unsubscribe();
this.debouncedSubscription = null;
}
}
}]);
return DebounceTimeSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);
function dispatchNext(subscriber) {
subscriber.debouncedNext();
} //# sourceMappingURL=debounceTime.js.map
/***/
},
/***/
"Kqap":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/scan.js ***!
\***************************************************************/
/*! exports provided: scan */
/***/
function Kqap(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "scan", function () {
return scan;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function scan(accumulator, seed) {
var hasSeed = false;
if (arguments.length >= 2) {
hasSeed = true;
}
return function scanOperatorFunction(source) {
return source.lift(new ScanOperator(accumulator, seed, hasSeed));
};
}
var ScanOperator = /*#__PURE__*/function () {
function ScanOperator(accumulator, seed) {
var hasSeed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
_classCallCheck(this, ScanOperator);
this.accumulator = accumulator;
this.seed = seed;
this.hasSeed = hasSeed;
}
_createClass2(ScanOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));
}
}]);
return ScanOperator;
}();
var ScanSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_19) {
_inherits(ScanSubscriber, _Subscriber__WEBPACK_19);
var _super55 = _createSuper(ScanSubscriber);
function ScanSubscriber(destination, accumulator, _seed, hasSeed) {
var _this77;
_classCallCheck(this, ScanSubscriber);
_this77 = _super55.call(this, destination);
_this77.accumulator = accumulator;
_this77._seed = _seed;
_this77.hasSeed = hasSeed;
_this77.index = 0;
return _this77;
}
_createClass2(ScanSubscriber, [{
key: "seed",
get: function get() {
return this._seed;
},
set: function set(value) {
this.hasSeed = true;
this._seed = value;
}
}, {
key: "_next",
value: function _next(value) {
if (!this.hasSeed) {
this.seed = value;
this.destination.next(value);
} else {
return this._tryNext(value);
}
}
}, {
key: "_tryNext",
value: function _tryNext(value) {
var index = this.index++;
var result;
try {
result = this.accumulator(this.seed, value, index);
} catch (err) {
this.destination.error(err);
}
this.seed = result;
this.destination.next(result);
}
}]);
return ScanSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=scan.js.map
/***/
},
/***/
"KqfI":
/*!**********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/noop.js ***!
\**********************************************************/
/*! exports provided: noop */
/***/
function KqfI(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "noop", function () {
return noop;
});
function noop() {} //# sourceMappingURL=noop.js.map
/***/
},
/***/
"KroJ":
/*!***************************************************!*\
!*** ./node_modules/core-js/modules/_redefine.js ***!
\***************************************************/
/*! no static exports found */
/***/
function KroJ(module, exports, __webpack_require__) {
var global = __webpack_require__(
/*! ./_global */
"dyZX");
var hide = __webpack_require__(
/*! ./_hide */
"Mukb");
var has = __webpack_require__(
/*! ./_has */
"aagx");
var SRC = __webpack_require__(
/*! ./_uid */
"ylqs")('src');
var $toString = __webpack_require__(
/*! ./_function-to-string */
"+lvF");
var TO_STRING = 'toString';
var TPL = ('' + $toString).split(TO_STRING);
__webpack_require__(
/*! ./_core */
"g3g5").inspectSource = function (it) {
return $toString.call(it);
};
(module.exports = function (O, key, val, safe) {
var isFunction = typeof val == 'function';
if (isFunction) has(val, 'name') || hide(val, 'name', key);
if (O[key] === val) return;
if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
if (O === global) {
O[key] = val;
} else if (!safe) {
delete O[key];
hide(O, key, val);
} else if (O[key]) {
O[key] = val;
} else {
hide(O, key, val);
} // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
return typeof this == 'function' && this[SRC] || $toString.call(this);
});
/***/
},
/***/
"Kuth":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/_object-create.js ***!
\********************************************************/
/*! no static exports found */
/***/
function Kuth(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var dPs = __webpack_require__(
/*! ./_object-dps */
"FJW5");
var enumBugKeys = __webpack_require__(
/*! ./_enum-bug-keys */
"4R4u");
var IE_PROTO = __webpack_require__(
/*! ./_shared-key */
"YTvA")('IE_PROTO');
var Empty = function Empty() {
/* empty */
};
var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype
var _createDict = function createDict() {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(
/*! ./_dom-create */
"Iw71")('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
__webpack_require__(
/*! ./_html */
"+rLv").appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
_createDict = iframeDocument.F;
while (i--) {
delete _createDict[PROTOTYPE][enumBugKeys[i]];
}
return _createDict();
};
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = _createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/
},
/***/
"LQAc":
/*!**************************************************!*\
!*** ./node_modules/core-js/modules/_library.js ***!
\**************************************************/
/*! no static exports found */
/***/
function LQAc(module, exports) {
module.exports = false;
/***/
},
/***/
"LRne":
/*!**************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/of.js ***!
\**************************************************************/
/*! exports provided: of */
/***/
function LRne(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "of", function () {
return of;
});
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
/* harmony import */
var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./fromArray */
"yCtX");
/* harmony import */
var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../scheduled/scheduleArray */
"jZKg");
function of() {
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
args[_key12] = arguments[_key12];
}
var scheduler = args[args.length - 1];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(scheduler)) {
args.pop();
return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(args, scheduler);
} else {
return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(args);
}
} //# sourceMappingURL=of.js.map
/***/
},
/***/
"LTTk":
/*!**********************************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.get-prototype-of.js ***!
\**********************************************************************/
/*! no static exports found */
/***/
function LTTk(module, exports, __webpack_require__) {
// 26.1.8 Reflect.getPrototypeOf(target)
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var getProto = __webpack_require__(
/*! ./_object-gpo */
"OP3Y");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
$export($export.S, 'Reflect', {
getPrototypeOf: function getPrototypeOf(target) {
return getProto(anObject(target));
}
});
/***/
},
/***/
"LZWt":
/*!**********************************************!*\
!*** ./node_modules/core-js/modules/_cof.js ***!
\**********************************************/
/*! no static exports found */
/***/
function LZWt(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/
},
/***/
"Lhse":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/symbol/iterator.js ***!
\****************************************************************/
/*! exports provided: getSymbolIterator, iterator, $$iterator */
/***/
function Lhse(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "getSymbolIterator", function () {
return getSymbolIterator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "iterator", function () {
return iterator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "$$iterator", function () {
return $$iterator;
});
function getSymbolIterator() {
if (typeof Symbol !== 'function' || !Symbol.iterator) {
return '@@iterator';
}
return Symbol.iterator;
}
var iterator = getSymbolIterator();
var $$iterator = iterator; //# sourceMappingURL=iterator.js.map
/***/
},
/***/
"M6Qj":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/_is-array-iter.js ***!
\********************************************************/
/*! no static exports found */
/***/
function M6Qj(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__(
/*! ./_iterators */
"hPIQ");
var ITERATOR = __webpack_require__(
/*! ./_wks */
"K0xU")('iterator');
var ArrayProto = Array.prototype;
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
/***/
},
/***/
"MBAA":
/*!***************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js ***!
\***************************************************************************/
/*! exports provided: scheduleIterable */
/***/
function MBAA(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "scheduleIterable", function () {
return scheduleIterable;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../symbol/iterator */
"Lhse");
function scheduleIterable(input, scheduler) {
if (!input) {
throw new Error('Iterable cannot be null');
}
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
var iterator;
sub.add(function () {
if (iterator && typeof iterator["return"] === 'function') {
iterator["return"]();
}
});
sub.add(scheduler.schedule(function () {
iterator = input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__["iterator"]]();
sub.add(scheduler.schedule(function () {
if (subscriber.closed) {
return;
}
var value;
var done;
try {
var result = iterator.next();
value = result.value;
done = result.done;
} catch (err) {
subscriber.error(err);
return;
}
if (done) {
subscriber.complete();
} else {
subscriber.next(value);
this.schedule();
}
}));
}));
return sub;
});
} //# sourceMappingURL=scheduleIterable.js.map
/***/
},
/***/
"MfQN":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/_invoke.js ***!
\*************************************************/
/*! no static exports found */
/***/
function MfQN(module, exports) {
// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function (fn, args, that) {
var un = that === undefined;
switch (args.length) {
case 0:
return un ? fn() : fn.call(that);
case 1:
return un ? fn(args[0]) : fn.call(that, args[0]);
case 2:
return un ? fn(args[0], args[1]) : fn.call(that, args[0], args[1]);
case 3:
return un ? fn(args[0], args[1], args[2]) : fn.call(that, args[0], args[1], args[2]);
case 4:
return un ? fn(args[0], args[1], args[2], args[3]) : fn.call(that, args[0], args[1], args[2], args[3]);
}
return fn.apply(that, args);
};
/***/
},
/***/
"MtjB":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/retryWhen.js ***!
\********************************************************************/
/*! exports provided: retryWhen */
/***/
function MtjB(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "retryWhen", function () {
return retryWhen;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subject */
"XNiG");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function retryWhen(notifier) {
return function (source) {
return source.lift(new RetryWhenOperator(notifier, source));
};
}
var RetryWhenOperator = /*#__PURE__*/function () {
function RetryWhenOperator(notifier, source) {
_classCallCheck(this, RetryWhenOperator);
this.notifier = notifier;
this.source = source;
}
_createClass2(RetryWhenOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));
}
}]);
return RetryWhenOperator;
}();
var RetryWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP10) {
_inherits(RetryWhenSubscriber, _innerSubscribe__WEBP10);
var _super56 = _createSuper(RetryWhenSubscriber);
function RetryWhenSubscriber(destination, notifier, source) {
var _this78;
_classCallCheck(this, RetryWhenSubscriber);
_this78 = _super56.call(this, destination);
_this78.notifier = notifier;
_this78.source = source;
return _this78;
}
_createClass2(RetryWhenSubscriber, [{
key: "error",
value: function error(err) {
if (!this.isStopped) {
var errors = this.errors;
var retries = this.retries;
var retriesSubscription = this.retriesSubscription;
if (!retries) {
errors = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
try {
var notifier = this.notifier;
retries = notifier(errors);
} catch (e) {
return _get(_getPrototypeOf(RetryWhenSubscriber.prototype), "error", this).call(this, e);
}
retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this));
} else {
this.errors = undefined;
this.retriesSubscription = undefined;
}
this._unsubscribeAndRecycle();
this.errors = errors;
this.retries = retries;
this.retriesSubscription = retriesSubscription;
errors.next(err);
}
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var errors = this.errors,
retriesSubscription = this.retriesSubscription;
if (errors) {
errors.unsubscribe();
this.errors = undefined;
}
if (retriesSubscription) {
retriesSubscription.unsubscribe();
this.retriesSubscription = undefined;
}
this.retries = undefined;
}
}, {
key: "notifyNext",
value: function notifyNext() {
var _unsubscribe = this._unsubscribe;
this._unsubscribe = null;
this._unsubscribeAndRecycle();
this._unsubscribe = _unsubscribe;
this.source.subscribe(this);
}
}]);
return RetryWhenSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=retryWhen.js.map
/***/
},
/***/
"Mukb":
/*!***********************************************!*\
!*** ./node_modules/core-js/modules/_hide.js ***!
\***********************************************/
/*! no static exports found */
/***/
function Mukb(module, exports, __webpack_require__) {
var dP = __webpack_require__(
/*! ./_object-dp */
"hswa");
var createDesc = __webpack_require__(
/*! ./_property-desc */
"RjD/");
module.exports = __webpack_require__(
/*! ./_descriptors */
"nh4g") ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/
},
/***/
"N/DB":
/*!*********************************************************!*\
!*** ./node_modules/@angular/localize/fesm2015/init.js ***!
\*********************************************************/
/*! no static exports found */
/***/
function NDB(module, exports) {
/**
* @license Angular v11.1.2
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __globalThis = typeof globalThis !== 'undefined' && globalThis;
var __window = typeof window !== 'undefined' && window;
var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;
var __global = typeof global !== 'undefined' && global; // Always use __globalThis if available; this is the spec-defined global variable across all
// environments.
// Then fallback to __global first; in Node tests both __global and __window may be defined.
var _global = __globalThis || __global || __window || __self;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Tag a template literal string for localization.
*
* For example:
*
* ```ts
* $localize `some string to localize`
* ```
*
* **Providing meaning, description and id**
*
* You can optionally specify one or more of `meaning`, `description` and `id` for a localized
* string by pre-pending it with a colon delimited block of the form:
*
* ```ts
* $localize`:meaning|description@@id:source message text`;
*
* $localize`:meaning|:source message text`;
* $localize`:description:source message text`;
* $localize`:@@id:source message text`;
* ```
*
* This format is the same as that used for `i18n` markers in Angular templates. See the
* [Angular 18n guide](guide/i18n#template-translations).
*
* **Naming placeholders**
*
* If the template literal string contains expressions, then the expressions will be automatically
* associated with placeholder names for you.
*
* For example:
*
* ```ts
* $localize `Hi ${name}! There are ${items.length} items.`;
* ```
*
* will generate a message-source of `Hi {$PH}! There are {$PH_1} items`.
*
* The recommended practice is to name the placeholder associated with each expression though.
*
* Do this by providing the placeholder name wrapped in `:` characters directly after the
* expression. These placeholder names are stripped out of the rendered localized string.
*
* For example, to name the `items.length` expression placeholder `itemCount` you write:
*
* ```ts
* $localize `There are ${items.length}:itemCount: items`;
* ```
*
* **Escaping colon markers**
*
* If you need to use a `:` character directly at the start of a tagged string that has no
* metadata block, or directly after a substitution expression that has no name you must escape
* the `:` by preceding it with a backslash:
*
* For example:
*
* ```ts
* // message has a metadata block so no need to escape colon
* $localize `:some description::this message starts with a colon (:)`;
* // no metadata block so the colon must be escaped
* $localize `\:this message starts with a colon (:)`;
* ```
*
* ```ts
* // named substitution so no need to escape colon
* $localize `${label}:label:: ${}`
* // anonymous substitution so colon must be escaped
* $localize `${label}\: ${}`
* ```
*
* **Processing localized strings:**
*
* There are three scenarios:
*
* * **compile-time inlining**: the `$localize` tag is transformed at compile time by a
* transpiler, removing the tag and replacing the template literal string with a translated
* literal string from a collection of translations provided to the transpilation tool.
*
* * **run-time evaluation**: the `$localize` tag is a run-time function that replaces and
* reorders the parts (static strings and expressions) of the template literal string with strings
* from a collection of translations loaded at run-time.
*
* * **pass-through evaluation**: the `$localize` tag is a run-time function that simply evaluates
* the original template literal string without applying any translations to the parts. This
* version is used during development or where there is no need to translate the localized
* template literals.
* @param messageParts a collection of the static parts of the template string.
* @param expressions a collection of the values of each placeholder in the template string.
* @returns the translated string, with the `messageParts` and `expressions` interleaved together.
*/
var $localize = function $localize(messageParts) {
for (var _len13 = arguments.length, expressions = new Array(_len13 > 1 ? _len13 - 1 : 0), _key13 = 1; _key13 < _len13; _key13++) {
expressions[_key13 - 1] = arguments[_key13];
}
if ($localize.translate) {
// Don't use array expansion here to avoid the compiler adding `__read()` helper unnecessarily.
var translation = $localize.translate(messageParts, expressions);
messageParts = translation[0];
expressions = translation[1];
}
var message = stripBlock(messageParts[0], messageParts.raw[0]);
for (var i = 1; i < messageParts.length; i++) {
message += expressions[i - 1] + stripBlock(messageParts[i], messageParts.raw[i]);
}
return message;
};
var BLOCK_MARKER = ':';
/**
* Strip a delimited "block" from the start of the `messagePart`, if it is found.
*
* If a marker character (:) actually appears in the content at the start of a tagged string or
* after a substitution expression, where a block has not been provided the character must be
* escaped with a backslash, `\:`. This function checks for this by looking at the `raw`
* messagePart, which should still contain the backslash.
*
* @param messagePart The cooked message part to process.
* @param rawMessagePart The raw message part to check.
* @returns the message part with the placeholder name stripped, if found.
* @throws an error if the block is unterminated
*/
function stripBlock(messagePart, rawMessagePart) {
return rawMessagePart.charAt(0) === BLOCK_MARKER ? messagePart.substring(findEndOfBlock(messagePart, rawMessagePart) + 1) : messagePart;
}
/**
* Find the end of a "marked block" indicated by the first non-escaped colon.
*
* @param cooked The cooked string (where escaped chars have been processed)
* @param raw The raw string (where escape sequences are still in place)
*
* @returns the index of the end of block marker
* @throws an error if the block is unterminated
*/
function findEndOfBlock(cooked, raw) {
/***********************************************************************************************
* This function is repeated in `src/utils/messages.ts` and the two should be kept in sync.
* The reason is that this file is marked as having side-effects, and if we import `messages.ts`
* into it, the whole of `src/utils` will be included in this bundle and none of the functions
* will be tree shaken.
***********************************************************************************************/
for (var cookedIndex = 1, rawIndex = 1; cookedIndex < cooked.length; cookedIndex++, rawIndex++) {
if (raw[rawIndex] === '\\') {
rawIndex++;
} else if (cooked[cookedIndex] === BLOCK_MARKER) {
return cookedIndex;
}
}
throw new Error("Unterminated $localize metadata block in \"".concat(raw, "\"."));
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Attach $localize to the global context, as a side-effect of this module.
_global.$localize = $localize; //# sourceMappingURL=init.js.map
/***/
},
/***/
"N6cJ":
/*!***************************************************!*\
!*** ./node_modules/core-js/modules/_metadata.js ***!
\***************************************************/
/*! no static exports found */
/***/
function N6cJ(module, exports, __webpack_require__) {
var Map = __webpack_require__(
/*! ./es6.map */
"9AAn");
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var shared = __webpack_require__(
/*! ./_shared */
"VTer")('metadata');
var store = shared.store || (shared.store = new (__webpack_require__(
/*! ./es6.weak-map */
"EK0E"))());
var getOrCreateMetadataMap = function getOrCreateMetadataMap(target, targetKey, create) {
var targetMetadata = store.get(target);
if (!targetMetadata) {
if (!create) return undefined;
store.set(target, targetMetadata = new Map());
}
var keyMetadata = targetMetadata.get(targetKey);
if (!keyMetadata) {
if (!create) return undefined;
targetMetadata.set(targetKey, keyMetadata = new Map());
}
return keyMetadata;
};
var ordinaryHasOwnMetadata = function ordinaryHasOwnMetadata(MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
};
var ordinaryGetOwnMetadata = function ordinaryGetOwnMetadata(MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
};
var ordinaryDefineOwnMetadata = function ordinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
};
var ordinaryOwnMetadataKeys = function ordinaryOwnMetadataKeys(target, targetKey) {
var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
var keys = [];
if (metadataMap) metadataMap.forEach(function (_, key) {
keys.push(key);
});
return keys;
};
var toMetaKey = function toMetaKey(it) {
return it === undefined || typeof it == 'symbol' ? it : String(it);
};
var exp = function exp(O) {
$export($export.S, 'Reflect', O);
};
module.exports = {
store: store,
map: getOrCreateMetadataMap,
has: ordinaryHasOwnMetadata,
get: ordinaryGetOwnMetadata,
set: ordinaryDefineOwnMetadata,
keys: ordinaryOwnMetadataKeys,
key: toMetaKey,
exp: exp
};
/***/
},
/***/
"NHP+":
/*!*************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/AsyncSubject.js ***!
\*************************************************************/
/*! exports provided: AsyncSubject */
/***/
function NHP(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AsyncSubject", function () {
return AsyncSubject;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./Subject */
"XNiG");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./Subscription */
"quSY");
var AsyncSubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP3) {
_inherits(AsyncSubject, _Subject__WEBPACK_IMP3);
var _super57 = _createSuper(AsyncSubject);
function AsyncSubject() {
var _this79;
_classCallCheck(this, AsyncSubject);
_this79 = _super57.apply(this, arguments);
_this79.value = null;
_this79.hasNext = false;
_this79.hasCompleted = false;
return _this79;
}
_createClass2(AsyncSubject, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
if (this.hasError) {
subscriber.error(this.thrownError);
return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
} else if (this.hasCompleted && this.hasNext) {
subscriber.next(this.value);
subscriber.complete();
return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
}
return _get(_getPrototypeOf(AsyncSubject.prototype), "_subscribe", this).call(this, subscriber);
}
}, {
key: "next",
value: function next(value) {
if (!this.hasCompleted) {
this.value = value;
this.hasNext = true;
}
}
}, {
key: "error",
value: function error(_error2) {
if (!this.hasCompleted) {
_get(_getPrototypeOf(AsyncSubject.prototype), "error", this).call(this, _error2);
}
}
}, {
key: "complete",
value: function complete() {
this.hasCompleted = true;
if (this.hasNext) {
_get(_getPrototypeOf(AsyncSubject.prototype), "next", this).call(this, this.value);
}
_get(_getPrototypeOf(AsyncSubject.prototype), "complete", this).call(this);
}
}]);
return AsyncSubject;
}(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]); //# sourceMappingURL=AsyncSubject.js.map
/***/
},
/***/
"NJ4a":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/hostReportError.js ***!
\*********************************************************************/
/*! exports provided: hostReportError */
/***/
function NJ4a(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "hostReportError", function () {
return hostReportError;
});
function hostReportError(err) {
setTimeout(function () {
throw err;
}, 0);
} //# sourceMappingURL=hostReportError.js.map
/***/
},
/***/
"NJ9Y":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/last.js ***!
\***************************************************************/
/*! exports provided: last */
/***/
function NJ9Y(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "last", function () {
return last;
});
/* harmony import */
var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/EmptyError */
"sVev");
/* harmony import */
var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./filter */
"pLZG");
/* harmony import */
var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./takeLast */
"BFxc");
/* harmony import */
var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./throwIfEmpty */
"XDbj");
/* harmony import */
var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./defaultIfEmpty */
"xbPD");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../util/identity */
"SpAZ");
function last(predicate, defaultValue) {
var hasDefaultValue = arguments.length >= 2;
return function (source) {
return source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
return predicate(v, i, source);
}) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_takeLast__WEBPACK_IMPORTED_MODULE_2__["takeLast"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__["throwIfEmpty"])(function () {
return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
}));
};
} //# sourceMappingURL=last.js.map
/***/
},
/***/
"NNCq":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/range.js ***!
\*****************************************************************/
/*! exports provided: range, dispatch */
/***/
function NNCq(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "range", function () {
return range;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "dispatch", function () {
return dispatch;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
function range() {
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var count = arguments.length > 1 ? arguments[1] : undefined;
var scheduler = arguments.length > 2 ? arguments[2] : undefined;
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
if (count === undefined) {
count = start;
start = 0;
}
var index = 0;
var current = start;
if (scheduler) {
return scheduler.schedule(dispatch, 0, {
index: index,
count: count,
start: start,
subscriber: subscriber
});
} else {
do {
if (index++ >= count) {
subscriber.complete();
break;
}
subscriber.next(current++);
if (subscriber.closed) {
break;
}
} while (true);
}
return undefined;
});
}
function dispatch(state) {
var start = state.start,
index = state.index,
count = state.count,
subscriber = state.subscriber;
if (index >= count) {
subscriber.complete();
return;
}
subscriber.next(start);
if (subscriber.closed) {
return;
}
state.index = index + 1;
state.start = start + 1;
this.schedule(state);
} //# sourceMappingURL=range.js.map
/***/
},
/***/
"NXyV":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/defer.js ***!
\*****************************************************************/
/*! exports provided: defer */
/***/
function NXyV(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "defer", function () {
return defer;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./from */
"Cfvw");
/* harmony import */
var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./empty */
"EY2u");
function defer(observableFactory) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var input;
try {
input = observableFactory();
} catch (err) {
subscriber.error(err);
return undefined;
}
var source = input ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(input) : Object(_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
return source.subscribe(subscriber);
});
} //# sourceMappingURL=defer.js.map
/***/
},
/***/
"NfdI":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/publish.js ***!
\******************************************************************/
/*! exports provided: publish */
/***/
function NfdI(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "publish", function () {
return publish;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subject */
"XNiG");
/* harmony import */
var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./multicast */
"oB13");
function publish(selector) {
return selector ? Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(function () {
return new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
}, selector) : Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]());
} //# sourceMappingURL=publish.js.map
/***/
},
/***/
"Nv8m":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/race.js ***!
\****************************************************************/
/*! exports provided: race, RaceOperator, RaceSubscriber */
/***/
function Nv8m(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "race", function () {
return race;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "RaceOperator", function () {
return RaceOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "RaceSubscriber", function () {
return RaceSubscriber;
});
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/isArray */
"DH7j");
/* harmony import */
var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./fromArray */
"yCtX");
/* harmony import */
var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../OuterSubscriber */
"l7GE");
/* harmony import */
var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/subscribeToResult */
"ZUHj");
function race() {
for (var _len14 = arguments.length, observables = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
observables[_key14] = arguments[_key14];
}
if (observables.length === 1) {
if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
observables = observables[0];
} else {
return observables[0];
}
}
return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(observables, undefined).lift(new RaceOperator());
}
var RaceOperator = /*#__PURE__*/function () {
function RaceOperator() {
_classCallCheck(this, RaceOperator);
}
_createClass2(RaceOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new RaceSubscriber(subscriber));
}
}]);
return RaceOperator;
}();
var RaceSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB2) {
_inherits(RaceSubscriber, _OuterSubscriber__WEB2);
var _super58 = _createSuper(RaceSubscriber);
function RaceSubscriber(destination) {
var _this80;
_classCallCheck(this, RaceSubscriber);
_this80 = _super58.call(this, destination);
_this80.hasFirst = false;
_this80.observables = [];
_this80.subscriptions = [];
return _this80;
}
_createClass2(RaceSubscriber, [{
key: "_next",
value: function _next(observable) {
this.observables.push(observable);
}
}, {
key: "_complete",
value: function _complete() {
var observables = this.observables;
var len = observables.length;
if (len === 0) {
this.destination.complete();
} else {
for (var i = 0; i < len && !this.hasFirst; i++) {
var observable = observables[i];
var subscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, undefined, i);
if (this.subscriptions) {
this.subscriptions.push(subscription);
}
this.add(subscription);
}
this.observables = null;
}
}
}, {
key: "notifyNext",
value: function notifyNext(_outerValue, innerValue, outerIndex) {
if (!this.hasFirst) {
this.hasFirst = true;
for (var i = 0; i < this.subscriptions.length; i++) {
if (i !== outerIndex) {
var subscription = this.subscriptions[i];
subscription.unsubscribe();
this.remove(subscription);
}
}
this.subscriptions = null;
}
this.destination.next(innerValue);
}
}]);
return RaceSubscriber;
}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=race.js.map
/***/
},
/***/
"O4y0":
/*!*********************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/SubscribeOnObservable.js ***!
\*********************************************************************************/
/*! exports provided: SubscribeOnObservable */
/***/
function O4y0(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SubscribeOnObservable", function () {
return SubscribeOnObservable;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../scheduler/asap */
"7Hc7");
/* harmony import */
var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../util/isNumeric */
"Y7HM");
var SubscribeOnObservable = /*#__PURE__*/function (_Observable__WEBPACK_2) {
_inherits(SubscribeOnObservable, _Observable__WEBPACK_2);
var _super59 = _createSuper(SubscribeOnObservable);
function SubscribeOnObservable(source) {
var _this81;
var delayTime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var scheduler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
_classCallCheck(this, SubscribeOnObservable);
_this81 = _super59.call(this);
_this81.source = source;
_this81.delayTime = delayTime;
_this81.scheduler = scheduler;
if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(delayTime) || delayTime < 0) {
_this81.delayTime = 0;
}
if (!scheduler || typeof scheduler.schedule !== 'function') {
_this81.scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
}
return _this81;
}
_createClass2(SubscribeOnObservable, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
var delay = this.delayTime;
var source = this.source;
var scheduler = this.scheduler;
return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {
source: source,
subscriber: subscriber
});
}
}], [{
key: "create",
value: function create(source) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var scheduler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
return new SubscribeOnObservable(source, delay, scheduler);
}
}, {
key: "dispatch",
value: function dispatch(arg) {
var source = arg.source,
subscriber = arg.subscriber;
return this.add(source.subscribe(subscriber));
}
}]);
return SubscribeOnObservable;
}(_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]); //# sourceMappingURL=SubscribeOnObservable.js.map
/***/
},
/***/
"OP3Y":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_object-gpo.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function OP3Y(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(
/*! ./_has */
"aagx");
var toObject = __webpack_require__(
/*! ./_to-object */
"S/j/");
var IE_PROTO = __webpack_require__(
/*! ./_shared-key */
"YTvA")('IE_PROTO');
var ObjectProto = Object.prototype;
module.exports = Object.getPrototypeOf || function (O) {
O = toObject(O);
if (has(O, IE_PROTO)) return O[IE_PROTO];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
}
return O instanceof Object ? ObjectProto : null;
};
/***/
},
/***/
"OQgR":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/groupBy.js ***!
\******************************************************************/
/*! exports provided: groupBy, GroupedObservable */
/***/
function OQgR(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "groupBy", function () {
return groupBy;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "GroupedObservable", function () {
return GroupedObservable;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../Subject */
"XNiG");
function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {
return function (source) {
return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));
};
}
var GroupByOperator = /*#__PURE__*/function () {
function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {
_classCallCheck(this, GroupByOperator);
this.keySelector = keySelector;
this.elementSelector = elementSelector;
this.durationSelector = durationSelector;
this.subjectSelector = subjectSelector;
}
_createClass2(GroupByOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));
}
}]);
return GroupByOperator;
}();
var GroupBySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_20) {
_inherits(GroupBySubscriber, _Subscriber__WEBPACK_20);
var _super60 = _createSuper(GroupBySubscriber);
function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
var _this82;
_classCallCheck(this, GroupBySubscriber);
_this82 = _super60.call(this, destination);
_this82.keySelector = keySelector;
_this82.elementSelector = elementSelector;
_this82.durationSelector = durationSelector;
_this82.subjectSelector = subjectSelector;
_this82.groups = null;
_this82.attemptedToUnsubscribe = false;
_this82.count = 0;
return _this82;
}
_createClass2(GroupBySubscriber, [{
key: "_next",
value: function _next(value) {
var key;
try {
key = this.keySelector(value);
} catch (err) {
this.error(err);
return;
}
this._group(value, key);
}
}, {
key: "_group",
value: function _group(value, key) {
var groups = this.groups;
if (!groups) {
groups = this.groups = new Map();
}
var group = groups.get(key);
var element;
if (this.elementSelector) {
try {
element = this.elementSelector(value);
} catch (err) {
this.error(err);
}
} else {
element = value;
}
if (!group) {
group = this.subjectSelector ? this.subjectSelector() : new _Subject__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
groups.set(key, group);
var groupedObservable = new GroupedObservable(key, group, this);
this.destination.next(groupedObservable);
if (this.durationSelector) {
var duration;
try {
duration = this.durationSelector(new GroupedObservable(key, group));
} catch (err) {
this.error(err);
return;
}
this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));
}
}
if (!group.closed) {
group.next(element);
}
}
}, {
key: "_error",
value: function _error(err) {
var groups = this.groups;
if (groups) {
groups.forEach(function (group, key) {
group.error(err);
});
groups.clear();
}
this.destination.error(err);
}
}, {
key: "_complete",
value: function _complete() {
var groups = this.groups;
if (groups) {
groups.forEach(function (group, key) {
group.complete();
});
groups.clear();
}
this.destination.complete();
}
}, {
key: "removeGroup",
value: function removeGroup(key) {
this.groups["delete"](key);
}
}, {
key: "unsubscribe",
value: function unsubscribe() {
if (!this.closed) {
this.attemptedToUnsubscribe = true;
if (this.count === 0) {
_get(_getPrototypeOf(GroupBySubscriber.prototype), "unsubscribe", this).call(this);
}
}
}
}]);
return GroupBySubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);
var GroupDurationSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_21) {
_inherits(GroupDurationSubscriber, _Subscriber__WEBPACK_21);
var _super61 = _createSuper(GroupDurationSubscriber);
function GroupDurationSubscriber(key, group, parent) {
var _this83;
_classCallCheck(this, GroupDurationSubscriber);
_this83 = _super61.call(this, group);
_this83.key = key;
_this83.group = group;
_this83.parent = parent;
return _this83;
}
_createClass2(GroupDurationSubscriber, [{
key: "_next",
value: function _next(value) {
this.complete();
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
var parent = this.parent,
key = this.key;
this.key = this.parent = null;
if (parent) {
parent.removeGroup(key);
}
}
}]);
return GroupDurationSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);
var GroupedObservable = /*#__PURE__*/function (_Observable__WEBPACK_3) {
_inherits(GroupedObservable, _Observable__WEBPACK_3);
var _super62 = _createSuper(GroupedObservable);
function GroupedObservable(key, groupSubject, refCountSubscription) {
var _this84;
_classCallCheck(this, GroupedObservable);
_this84 = _super62.call(this);
_this84.key = key;
_this84.groupSubject = groupSubject;
_this84.refCountSubscription = refCountSubscription;
return _this84;
}
_createClass2(GroupedObservable, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
var refCountSubscription = this.refCountSubscription,
groupSubject = this.groupSubject;
if (refCountSubscription && !refCountSubscription.closed) {
subscription.add(new InnerRefCountSubscription(refCountSubscription));
}
subscription.add(groupSubject.subscribe(subscriber));
return subscription;
}
}]);
return GroupedObservable;
}(_Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]);
var InnerRefCountSubscription = /*#__PURE__*/function (_Subscription__WEBPAC3) {
_inherits(InnerRefCountSubscription, _Subscription__WEBPAC3);
var _super63 = _createSuper(InnerRefCountSubscription);
function InnerRefCountSubscription(parent) {
var _this85;
_classCallCheck(this, InnerRefCountSubscription);
_this85 = _super63.call(this);
_this85.parent = parent;
parent.count++;
return _this85;
}
_createClass2(InnerRefCountSubscription, [{
key: "unsubscribe",
value: function unsubscribe() {
var parent = this.parent;
if (!parent.closed && !this.closed) {
_get(_getPrototypeOf(InnerRefCountSubscription.prototype), "unsubscribe", this).call(this);
parent.count -= 1;
if (parent.count === 0 && parent.attemptedToUnsubscribe) {
parent.unsubscribe();
}
}
}
}]);
return InnerRefCountSubscription;
}(_Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]); //# sourceMappingURL=groupBy.js.map
/***/
},
/***/
"Opxb":
/*!**************************************************************!*\
!*** ./node_modules/core-js/modules/es7.reflect.metadata.js ***!
\**************************************************************/
/*! no static exports found */
/***/
function Opxb(module, exports, __webpack_require__) {
var $metadata = __webpack_require__(
/*! ./_metadata */
"N6cJ");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var aFunction = __webpack_require__(
/*! ./_a-function */
"2OiF");
var toMetaKey = $metadata.key;
var ordinaryDefineOwnMetadata = $metadata.set;
$metadata.exp({
metadata: function metadata(metadataKey, metadataValue) {
return function decorator(target, targetKey) {
ordinaryDefineOwnMetadata(metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey));
};
}
});
/***/
},
/***/
"OsX3":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/bufferTime.js ***!
\*********************************************************************/
/*! exports provided: bufferTime */
/***/
function OsX3(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bufferTime", function () {
return bufferTime;
});
/* harmony import */
var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../scheduler/async */
"D0XW");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function bufferTime(bufferTimeSpan) {
var length = arguments.length;
var scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(arguments[arguments.length - 1])) {
scheduler = arguments[arguments.length - 1];
length--;
}
var bufferCreationInterval = null;
if (length >= 2) {
bufferCreationInterval = arguments[1];
}
var maxBufferSize = Number.POSITIVE_INFINITY;
if (length >= 3) {
maxBufferSize = arguments[2];
}
return function bufferTimeOperatorFunction(source) {
return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));
};
}
var BufferTimeOperator = /*#__PURE__*/function () {
function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
_classCallCheck(this, BufferTimeOperator);
this.bufferTimeSpan = bufferTimeSpan;
this.bufferCreationInterval = bufferCreationInterval;
this.maxBufferSize = maxBufferSize;
this.scheduler = scheduler;
}
_createClass2(BufferTimeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));
}
}]);
return BufferTimeOperator;
}();
var Context = function Context() {
_classCallCheck(this, Context);
this.buffer = [];
};
var BufferTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_22) {
_inherits(BufferTimeSubscriber, _Subscriber__WEBPACK_22);
var _super64 = _createSuper(BufferTimeSubscriber);
function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
var _this86;
_classCallCheck(this, BufferTimeSubscriber);
_this86 = _super64.call(this, destination);
_this86.bufferTimeSpan = bufferTimeSpan;
_this86.bufferCreationInterval = bufferCreationInterval;
_this86.maxBufferSize = maxBufferSize;
_this86.scheduler = scheduler;
_this86.contexts = [];
var context = _this86.openContext();
_this86.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;
if (_this86.timespanOnly) {
var timeSpanOnlyState = {
subscriber: _assertThisInitialized(_this86),
context: context,
bufferTimeSpan: bufferTimeSpan
};
_this86.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
} else {
var closeState = {
subscriber: _assertThisInitialized(_this86),
context: context
};
var creationState = {
bufferTimeSpan: bufferTimeSpan,
bufferCreationInterval: bufferCreationInterval,
subscriber: _assertThisInitialized(_this86),
scheduler: scheduler
};
_this86.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));
_this86.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));
}
return _this86;
}
_createClass2(BufferTimeSubscriber, [{
key: "_next",
value: function _next(value) {
var contexts = this.contexts;
var len = contexts.length;
var filledBufferContext;
for (var i = 0; i < len; i++) {
var context = contexts[i];
var buffer = context.buffer;
buffer.push(value);
if (buffer.length == this.maxBufferSize) {
filledBufferContext = context;
}
}
if (filledBufferContext) {
this.onBufferFull(filledBufferContext);
}
}
}, {
key: "_error",
value: function _error(err) {
this.contexts.length = 0;
_get(_getPrototypeOf(BufferTimeSubscriber.prototype), "_error", this).call(this, err);
}
}, {
key: "_complete",
value: function _complete() {
var contexts = this.contexts,
destination = this.destination;
while (contexts.length > 0) {
var context = contexts.shift();
destination.next(context.buffer);
}
_get(_getPrototypeOf(BufferTimeSubscriber.prototype), "_complete", this).call(this);
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
this.contexts = null;
}
}, {
key: "onBufferFull",
value: function onBufferFull(context) {
this.closeContext(context);
var closeAction = context.closeAction;
closeAction.unsubscribe();
this.remove(closeAction);
if (!this.closed && this.timespanOnly) {
context = this.openContext();
var bufferTimeSpan = this.bufferTimeSpan;
var timeSpanOnlyState = {
subscriber: this,
context: context,
bufferTimeSpan: bufferTimeSpan
};
this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
}
}
}, {
key: "openContext",
value: function openContext() {
var context = new Context();
this.contexts.push(context);
return context;
}
}, {
key: "closeContext",
value: function closeContext(context) {
this.destination.next(context.buffer);
var contexts = this.contexts;
var spliceIndex = contexts ? contexts.indexOf(context) : -1;
if (spliceIndex >= 0) {
contexts.splice(contexts.indexOf(context), 1);
}
}
}]);
return BufferTimeSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);
function dispatchBufferTimeSpanOnly(state) {
var subscriber = state.subscriber;
var prevContext = state.context;
if (prevContext) {
subscriber.closeContext(prevContext);
}
if (!subscriber.closed) {
state.context = subscriber.openContext();
state.context.closeAction = this.schedule(state, state.bufferTimeSpan);
}
}
function dispatchBufferCreation(state) {
var bufferCreationInterval = state.bufferCreationInterval,
bufferTimeSpan = state.bufferTimeSpan,
subscriber = state.subscriber,
scheduler = state.scheduler;
var context = subscriber.openContext();
var action = this;
if (!subscriber.closed) {
subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, {
subscriber: subscriber,
context: context
}));
action.schedule(state, bufferCreationInterval);
}
}
function dispatchBufferClose(arg) {
var subscriber = arg.subscriber,
context = arg.context;
subscriber.closeContext(context);
} //# sourceMappingURL=bufferTime.js.map
/***/
},
/***/
"PZkE":
/*!**********************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/distinctUntilKeyChanged.js ***!
\**********************************************************************************/
/*! exports provided: distinctUntilKeyChanged */
/***/
function PZkE(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function () {
return distinctUntilKeyChanged;
});
/* harmony import */
var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./distinctUntilChanged */
"/uUt");
function distinctUntilKeyChanged(key, compare) {
return Object(_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__["distinctUntilChanged"])(function (x, y) {
return compare ? compare(x[key], y[key]) : x[key] === y[key];
});
} //# sourceMappingURL=distinctUntilKeyChanged.js.map
/***/
},
/***/
"PfrF":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/bufferWhen.js ***!
\*********************************************************************/
/*! exports provided: bufferWhen */
/***/
function PfrF(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bufferWhen", function () {
return bufferWhen;
});
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscription */
"quSY");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function bufferWhen(closingSelector) {
return function (source) {
return source.lift(new BufferWhenOperator(closingSelector));
};
}
var BufferWhenOperator = /*#__PURE__*/function () {
function BufferWhenOperator(closingSelector) {
_classCallCheck(this, BufferWhenOperator);
this.closingSelector = closingSelector;
}
_createClass2(BufferWhenOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));
}
}]);
return BufferWhenOperator;
}();
var BufferWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP11) {
_inherits(BufferWhenSubscriber, _innerSubscribe__WEBP11);
var _super65 = _createSuper(BufferWhenSubscriber);
function BufferWhenSubscriber(destination, closingSelector) {
var _this87;
_classCallCheck(this, BufferWhenSubscriber);
_this87 = _super65.call(this, destination);
_this87.closingSelector = closingSelector;
_this87.subscribing = false;
_this87.openBuffer();
return _this87;
}
_createClass2(BufferWhenSubscriber, [{
key: "_next",
value: function _next(value) {
this.buffer.push(value);
}
}, {
key: "_complete",
value: function _complete() {
var buffer = this.buffer;
if (buffer) {
this.destination.next(buffer);
}
_get(_getPrototypeOf(BufferWhenSubscriber.prototype), "_complete", this).call(this);
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
this.buffer = undefined;
this.subscribing = false;
}
}, {
key: "notifyNext",
value: function notifyNext() {
this.openBuffer();
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
if (this.subscribing) {
this.complete();
} else {
this.openBuffer();
}
}
}, {
key: "openBuffer",
value: function openBuffer() {
var closingSubscription = this.closingSubscription;
if (closingSubscription) {
this.remove(closingSubscription);
closingSubscription.unsubscribe();
}
var buffer = this.buffer;
if (this.buffer) {
this.destination.next(buffer);
}
this.buffer = [];
var closingNotifier;
try {
var closingSelector = this.closingSelector;
closingNotifier = closingSelector();
} catch (err) {
return this.error(err);
}
closingSubscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
this.closingSubscription = closingSubscription;
this.add(closingSubscription);
this.subscribing = true;
closingSubscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(closingNotifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this)));
this.subscribing = false;
}
}]);
return BufferWhenSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=bufferWhen.js.map
/***/
},
/***/
"PqYM":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/timer.js ***!
\*****************************************************************/
/*! exports provided: timer */
/***/
function PqYM(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "timer", function () {
return timer;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../scheduler/async */
"D0XW");
/* harmony import */
var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../util/isNumeric */
"Y7HM");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function timer() {
var dueTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var periodOrScheduler = arguments.length > 1 ? arguments[1] : undefined;
var scheduler = arguments.length > 2 ? arguments[2] : undefined;
var period = -1;
if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(periodOrScheduler)) {
period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
} else if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(periodOrScheduler)) {
scheduler = periodOrScheduler;
}
if (!Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(scheduler)) {
scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
}
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var due = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(dueTime) ? dueTime : +dueTime - scheduler.now();
return scheduler.schedule(dispatch, due, {
index: 0,
period: period,
subscriber: subscriber
});
});
}
function dispatch(state) {
var index = state.index,
period = state.period,
subscriber = state.subscriber;
subscriber.next(index);
if (subscriber.closed) {
return;
} else if (period === -1) {
return subscriber.complete();
}
state.index = index + 1;
this.schedule(state, period);
} //# sourceMappingURL=timer.js.map
/***/
},
/***/
"Pz8W":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapAction.js ***!
\*********************************************************************/
/*! exports provided: AsapAction */
/***/
function Pz8W(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AsapAction", function () {
return AsapAction;
});
/* harmony import */
var _util_Immediate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/Immediate */
"c7jc");
/* harmony import */
var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./AsyncAction */
"3N8a");
var AsapAction = /*#__PURE__*/function (_AsyncAction__WEBPACK) {
_inherits(AsapAction, _AsyncAction__WEBPACK);
var _super66 = _createSuper(AsapAction);
function AsapAction(scheduler, work) {
var _this88;
_classCallCheck(this, AsapAction);
_this88 = _super66.call(this, scheduler, work);
_this88.scheduler = scheduler;
_this88.work = work;
return _this88;
}
_createClass2(AsapAction, [{
key: "requestAsyncId",
value: function requestAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && delay > 0) {
return _get(_getPrototypeOf(AsapAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
}
scheduler.actions.push(this);
return scheduler.scheduled || (scheduler.scheduled = _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].setImmediate(scheduler.flush.bind(scheduler, null)));
}
}, {
key: "recycleAsyncId",
value: function recycleAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
return _get(_getPrototypeOf(AsapAction.prototype), "recycleAsyncId", this).call(this, scheduler, id, delay);
}
if (scheduler.actions.length === 0) {
_util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].clearImmediate(id);
scheduler.scheduled = undefined;
}
return undefined;
}
}]);
return AsapAction;
}(_AsyncAction__WEBPACK_IMPORTED_MODULE_1__["AsyncAction"]); //# sourceMappingURL=AsapAction.js.map
/***/
},
/***/
"Q3ne":
/*!**************************************************************!*\
!*** ./node_modules/core-js/modules/_array-from-iterable.js ***!
\**************************************************************/
/*! no static exports found */
/***/
function Q3ne(module, exports, __webpack_require__) {
var forOf = __webpack_require__(
/*! ./_for-of */
"SlkY");
module.exports = function (iter, ITERATOR) {
var result = [];
forOf(iter, false, result.push, result, ITERATOR);
return result;
};
/***/
},
/***/
"QIAL":
/*!*************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js ***!
\*************************************************************************/
/*! exports provided: isInteropObservable */
/***/
function QIAL(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isInteropObservable", function () {
return isInteropObservable;
});
/* harmony import */
var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../symbol/observable */
"kJWO");
function isInteropObservable(input) {
return input && typeof input[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]] === 'function';
} //# sourceMappingURL=isInteropObservable.js.map
/***/
},
/***/
"QaDb":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_iter-create.js ***!
\******************************************************/
/*! no static exports found */
/***/
function QaDb(module, exports, __webpack_require__) {
"use strict";
var create = __webpack_require__(
/*! ./_object-create */
"Kuth");
var descriptor = __webpack_require__(
/*! ./_property-desc */
"RjD/");
var setToStringTag = __webpack_require__(
/*! ./_set-to-string-tag */
"fyDq");
var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(
/*! ./_hide */
"Mukb")(IteratorPrototype, __webpack_require__(
/*! ./_wks */
"K0xU")('iterator'), function () {
return this;
});
module.exports = function (Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, {
next: descriptor(1, next)
});
setToStringTag(Constructor, NAME + ' Iterator');
};
/***/
},
/***/
"Qn8I":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/using.js ***!
\*****************************************************************/
/*! exports provided: using */
/***/
function Qn8I(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "using", function () {
return using;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./from */
"Cfvw");
/* harmony import */
var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./empty */
"EY2u");
function using(resourceFactory, observableFactory) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var resource;
try {
resource = resourceFactory();
} catch (err) {
subscriber.error(err);
return undefined;
}
var result;
try {
result = observableFactory(resource);
} catch (err) {
subscriber.error(err);
return undefined;
}
var source = result ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(result) : _empty__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
var subscription = source.subscribe(subscriber);
return function () {
subscription.unsubscribe();
if (resource) {
resource.unsubscribe();
}
};
});
} //# sourceMappingURL=using.js.map
/***/
},
/***/
"QqCr":
/*!************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/bindCallback.js ***!
\************************************************************************/
/*! exports provided: bindCallback */
/***/
function QqCr(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "bindCallback", function () {
return bindCallback;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../AsyncSubject */
"NHP+");
/* harmony import */
var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../operators/map */
"lJxs");
/* harmony import */
var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/canReportError */
"8Qeq");
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../util/isArray */
"DH7j");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function bindCallback(callbackFunc, resultSelector, scheduler) {
if (resultSelector) {
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_5__["isScheduler"])(resultSelector)) {
scheduler = resultSelector;
} else {
return function () {
return bindCallback(callbackFunc, scheduler).apply(void 0, arguments).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(function (args) {
return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_4__["isArray"])(args) ? resultSelector.apply(void 0, _toConsumableArray(args)) : resultSelector(args);
}));
};
}
}
return function () {
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
args[_key15] = arguments[_key15];
}
var context = this;
var subject;
var params = {
context: context,
subject: subject,
callbackFunc: callbackFunc,
scheduler: scheduler
};
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
if (!scheduler) {
if (!subject) {
subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
var handler = function handler() {
for (var _len16 = arguments.length, innerArgs = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
innerArgs[_key16] = arguments[_key16];
}
subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
subject.complete();
};
try {
callbackFunc.apply(context, [].concat(args, [handler]));
} catch (err) {
if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["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 _this89 = 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__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
var handler = function handler() {
for (var _len17 = arguments.length, innerArgs = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
innerArgs[_key17] = arguments[_key17];
}
var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
_this89.add(scheduler.schedule(dispatchNext, 0, {
value: value,
subject: subject
}));
};
try {
callbackFunc.apply(context, [].concat(_toConsumableArray(args), [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
/***/
},
/***/
"RUbi":
/*!************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js ***!
\************************************************************************/
/*! exports provided: AsapScheduler */
/***/
function RUbi(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AsapScheduler", function () {
return AsapScheduler;
});
/* harmony import */
var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsyncScheduler */
"IjjT");
var AsapScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP2) {
_inherits(AsapScheduler, _AsyncScheduler__WEBP2);
var _super67 = _createSuper(AsapScheduler);
function AsapScheduler() {
_classCallCheck(this, AsapScheduler);
return _super67.apply(this, arguments);
}
_createClass2(AsapScheduler, [{
key: "flush",
value: function flush(action) {
this.active = true;
this.scheduled = undefined;
var actions = this.actions;
var error;
var index = -1;
var count = actions.length;
action = action || actions.shift();
do {
if (error = action.execute(action.state, action.delay)) {
break;
}
} while (++index < count && (action = actions.shift()));
this.active = false;
if (error) {
while (++index < count && (action = actions.shift())) {
action.unsubscribe();
}
throw error;
}
}
}]);
return AsapScheduler;
}(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"]); //# sourceMappingURL=AsapScheduler.js.map
/***/
},
/***/
"RYi7":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_to-integer.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function RYi7(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/
},
/***/
"RjD/":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/_property-desc.js ***!
\********************************************************/
/*! no static exports found */
/***/
function RjD(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/
},
/***/
"S/j/":
/*!****************************************************!*\
!*** ./node_modules/core-js/modules/_to-object.js ***!
\****************************************************/
/*! no static exports found */
/***/
function SJ(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(
/*! ./_defined */
"vhPU");
module.exports = function (it) {
return Object(defined(it));
};
/***/
},
/***/
"SeVD":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js ***!
\*****************************************************************/
/*! exports provided: subscribeTo */
/***/
function SeVD(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "subscribeTo", function () {
return subscribeTo;
});
/* harmony import */
var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./subscribeToArray */
"ngJS");
/* harmony import */
var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./subscribeToPromise */
"a7t3");
/* harmony import */
var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./subscribeToIterable */
"pLzU");
/* harmony import */
var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./subscribeToObservable */
"CRDf");
/* harmony import */
var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./isArrayLike */
"I55L");
/* harmony import */
var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./isPromise */
"c2HN");
/* harmony import */
var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./isObject */
"XoHu");
/* harmony import */
var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! ../symbol/iterator */
"Lhse");
/* harmony import */
var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! ../symbol/observable */
"kJWO");
var subscribeTo = function subscribeTo(result) {
if (!!result && typeof result[_symbol_observable__WEBPACK_IMPORTED_MODULE_8__["observable"]] === 'function') {
return Object(_subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__["subscribeToObservable"])(result);
} else if (Object(_isArrayLike__WEBPACK_IMPORTED_MODULE_4__["isArrayLike"])(result)) {
return Object(_subscribeToArray__WEBPACK_IMPORTED_MODULE_0__["subscribeToArray"])(result);
} else if (Object(_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(result)) {
return Object(_subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__["subscribeToPromise"])(result);
} else if (!!result && typeof result[_symbol_iterator__WEBPACK_IMPORTED_MODULE_7__["iterator"]] === 'function') {
return Object(_subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__["subscribeToIterable"])(result);
} else {
var value = Object(_isObject__WEBPACK_IMPORTED_MODULE_6__["isObject"])(result) ? 'an invalid object' : "'".concat(result, "'");
var msg = "You provided ".concat(value, " where a stream was expected.") + ' You can provide an Observable, Promise, Array, or Iterable.';
throw new TypeError(msg);
}
}; //# sourceMappingURL=subscribeTo.js.map
/***/
},
/***/
"SlkY":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/_for-of.js ***!
\*************************************************/
/*! no static exports found */
/***/
function SlkY(module, exports, __webpack_require__) {
var ctx = __webpack_require__(
/*! ./_ctx */
"m0Pp");
var call = __webpack_require__(
/*! ./_iter-call */
"H6hf");
var isArrayIter = __webpack_require__(
/*! ./_is-array-iter */
"M6Qj");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var toLength = __webpack_require__(
/*! ./_to-length */
"ne8i");
var getIterFn = __webpack_require__(
/*! ./core.get-iterator-method */
"J+6e");
var BREAK = {};
var RETURN = {};
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
var iterFn = ITERATOR ? function () {
return iterable;
} : getIterFn(iterable);
var f = ctx(fn, that, entries ? 2 : 1);
var index = 0;
var length, step, iterator, result;
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); // fast case for arrays with default iterator
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
if (result === BREAK || result === RETURN) return result;
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
result = call(iterator, f, step.value, entries);
if (result === BREAK || result === RETURN) return result;
}
};
exports.BREAK = BREAK;
exports.RETURN = RETURN;
/***/
},
/***/
"SpAZ":
/*!**************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/identity.js ***!
\**************************************************************/
/*! exports provided: identity */
/***/
function SpAZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "identity", function () {
return identity;
});
function identity(x) {
return x;
} //# sourceMappingURL=identity.js.map
/***/
},
/***/
"SxV6":
/*!****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/first.js ***!
\****************************************************************/
/*! exports provided: first */
/***/
function SxV6(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "first", function () {
return first;
});
/* harmony import */
var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/EmptyError */
"sVev");
/* harmony import */
var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./filter */
"pLZG");
/* harmony import */
var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./take */
"IzEk");
/* harmony import */
var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./defaultIfEmpty */
"xbPD");
/* harmony import */
var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./throwIfEmpty */
"XDbj");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../util/identity */
"SpAZ");
function first(predicate, defaultValue) {
var hasDefaultValue = arguments.length >= 2;
return function (source) {
return source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
return predicate(v, i, source);
}) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_take__WEBPACK_IMPORTED_MODULE_2__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__["throwIfEmpty"])(function () {
return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
}));
};
} //# sourceMappingURL=first.js.map
/***/
},
/***/
"T39b":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/es6.set.js ***!
\*************************************************/
/*! no static exports found */
/***/
function T39b(module, exports, __webpack_require__) {
"use strict";
var strong = __webpack_require__(
/*! ./_collection-strong */
"wmvG");
var validate = __webpack_require__(
/*! ./_validate-collection */
"s5qY");
var SET = 'Set'; // 23.2 Set Objects
module.exports = __webpack_require__(
/*! ./_collection */
"4LiD")(SET, function (get) {
return function Set() {
return get(this, arguments.length > 0 ? arguments[0] : undefined);
};
}, {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value) {
return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
}
}, strong);
/***/
},
/***/
"UGaM":
/*!**************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/publishBehavior.js ***!
\**************************************************************************/
/*! exports provided: publishBehavior */
/***/
function UGaM(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "publishBehavior", function () {
return publishBehavior;
});
/* harmony import */
var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../BehaviorSubject */
"2Vo4");
/* harmony import */
var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./multicast */
"oB13");
function publishBehavior(value) {
return function (source) {
return Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](value))(source);
};
} //# sourceMappingURL=publishBehavior.js.map
/***/
},
/***/
"UHp3":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/windowTime.js ***!
\*********************************************************************/
/*! exports provided: windowTime */
/***/
function UHp3(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "windowTime", function () {
return windowTime;
});
/* harmony import */
var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subject */
"XNiG");
/* harmony import */
var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../scheduler/async */
"D0XW");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/isNumeric */
"Y7HM");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function windowTime(windowTimeSpan) {
var scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
var windowCreationInterval = null;
var maxWindowSize = Number.POSITIVE_INFINITY;
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[3])) {
scheduler = arguments[3];
}
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[2])) {
scheduler = arguments[2];
} else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[2])) {
maxWindowSize = Number(arguments[2]);
}
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[1])) {
scheduler = arguments[1];
} else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[1])) {
windowCreationInterval = Number(arguments[1]);
}
return function windowTimeOperatorFunction(source) {
return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));
};
}
var WindowTimeOperator = /*#__PURE__*/function () {
function WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
_classCallCheck(this, WindowTimeOperator);
this.windowTimeSpan = windowTimeSpan;
this.windowCreationInterval = windowCreationInterval;
this.maxWindowSize = maxWindowSize;
this.scheduler = scheduler;
}
_createClass2(WindowTimeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));
}
}]);
return WindowTimeOperator;
}();
var CountedSubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP4) {
_inherits(CountedSubject, _Subject__WEBPACK_IMP4);
var _super68 = _createSuper(CountedSubject);
function CountedSubject() {
var _this90;
_classCallCheck(this, CountedSubject);
_this90 = _super68.apply(this, arguments);
_this90._numberOfNextedValues = 0;
return _this90;
}
_createClass2(CountedSubject, [{
key: "next",
value: function next(value) {
this._numberOfNextedValues++;
_get(_getPrototypeOf(CountedSubject.prototype), "next", this).call(this, value);
}
}, {
key: "numberOfNextedValues",
get: function get() {
return this._numberOfNextedValues;
}
}]);
return CountedSubject;
}(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]);
var WindowTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_23) {
_inherits(WindowTimeSubscriber, _Subscriber__WEBPACK_23);
var _super69 = _createSuper(WindowTimeSubscriber);
function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
var _this91;
_classCallCheck(this, WindowTimeSubscriber);
_this91 = _super69.call(this, destination);
_this91.destination = destination;
_this91.windowTimeSpan = windowTimeSpan;
_this91.windowCreationInterval = windowCreationInterval;
_this91.maxWindowSize = maxWindowSize;
_this91.scheduler = scheduler;
_this91.windows = [];
var window = _this91.openWindow();
if (windowCreationInterval !== null && windowCreationInterval >= 0) {
var closeState = {
subscriber: _assertThisInitialized(_this91),
window: window,
context: null
};
var creationState = {
windowTimeSpan: windowTimeSpan,
windowCreationInterval: windowCreationInterval,
subscriber: _assertThisInitialized(_this91),
scheduler: scheduler
};
_this91.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));
_this91.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));
} else {
var timeSpanOnlyState = {
subscriber: _assertThisInitialized(_this91),
window: window,
windowTimeSpan: windowTimeSpan
};
_this91.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));
}
return _this91;
}
_createClass2(WindowTimeSubscriber, [{
key: "_next",
value: function _next(value) {
var windows = this.windows;
var len = windows.length;
for (var i = 0; i < len; i++) {
var _window = windows[i];
if (!_window.closed) {
_window.next(value);
if (_window.numberOfNextedValues >= this.maxWindowSize) {
this.closeWindow(_window);
}
}
}
}
}, {
key: "_error",
value: function _error(err) {
var windows = this.windows;
while (windows.length > 0) {
windows.shift().error(err);
}
this.destination.error(err);
}
}, {
key: "_complete",
value: function _complete() {
var windows = this.windows;
while (windows.length > 0) {
var _window2 = windows.shift();
if (!_window2.closed) {
_window2.complete();
}
}
this.destination.complete();
}
}, {
key: "openWindow",
value: function openWindow() {
var window = new CountedSubject();
this.windows.push(window);
var destination = this.destination;
destination.next(window);
return window;
}
}, {
key: "closeWindow",
value: function closeWindow(window) {
window.complete();
var windows = this.windows;
windows.splice(windows.indexOf(window), 1);
}
}]);
return WindowTimeSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]);
function dispatchWindowTimeSpanOnly(state) {
var subscriber = state.subscriber,
windowTimeSpan = state.windowTimeSpan,
window = state.window;
if (window) {
subscriber.closeWindow(window);
}
state.window = subscriber.openWindow();
this.schedule(state, windowTimeSpan);
}
function dispatchWindowCreation(state) {
var windowTimeSpan = state.windowTimeSpan,
subscriber = state.subscriber,
scheduler = state.scheduler,
windowCreationInterval = state.windowCreationInterval;
var window = subscriber.openWindow();
var action = this;
var context = {
action: action,
subscription: null
};
var timeSpanState = {
subscriber: subscriber,
window: window,
context: context
};
context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);
action.add(context.subscription);
action.schedule(state, windowCreationInterval);
}
function dispatchWindowClose(state) {
var subscriber = state.subscriber,
window = state.window,
context = state.context;
if (context && context.action && context.subscription) {
context.action.remove(context.subscription);
}
subscriber.closeWindow(window);
} //# sourceMappingURL=windowTime.js.map
/***/
},
/***/
"UXbc":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMapTo.js ***!
\*********************************************************************/
/*! exports provided: mergeMapTo */
/***/
function UXbc(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mergeMapTo", function () {
return mergeMapTo;
});
/* harmony import */
var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./mergeMap */
"5+tZ");
function mergeMapTo(innerObservable, resultSelector) {
var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
if (typeof resultSelector === 'function') {
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(function () {
return innerObservable;
}, resultSelector, concurrent);
}
if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(function () {
return innerObservable;
}, concurrent);
} //# sourceMappingURL=mergeMapTo.js.map
/***/
},
/***/
"UXun":
/*!**********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/shareReplay.js ***!
\**********************************************************************/
/*! exports provided: shareReplay */
/***/
function UXun(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "shareReplay", function () {
return shareReplay;
});
/* harmony import */
var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../ReplaySubject */
"jtHE");
function shareReplay(configOrBufferSize, windowTime, scheduler) {
var config;
if (configOrBufferSize && typeof configOrBufferSize === 'object') {
config = configOrBufferSize;
} else {
config = {
bufferSize: configOrBufferSize,
windowTime: windowTime,
refCount: false,
scheduler: scheduler
};
}
return function (source) {
return source.lift(shareReplayOperator(config));
};
}
function shareReplayOperator(_ref4) {
var _ref4$bufferSize = _ref4.bufferSize,
bufferSize = _ref4$bufferSize === void 0 ? Number.POSITIVE_INFINITY : _ref4$bufferSize,
_ref4$windowTime = _ref4.windowTime,
windowTime = _ref4$windowTime === void 0 ? Number.POSITIVE_INFINITY : _ref4$windowTime,
useRefCount = _ref4.refCount,
scheduler = _ref4.scheduler;
var subject;
var refCount = 0;
var subscription;
var hasError = false;
var isComplete = false;
return function shareReplayOperation(source) {
refCount++;
var innerSub;
if (!subject || hasError) {
hasError = false;
subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler);
innerSub = subject.subscribe(this);
subscription = source.subscribe({
next: function next(value) {
subject.next(value);
},
error: function error(err) {
hasError = true;
subject.error(err);
},
complete: function complete() {
isComplete = true;
subscription = undefined;
subject.complete();
}
});
} else {
innerSub = subject.subscribe(this);
}
this.add(function () {
refCount--;
innerSub.unsubscribe();
if (subscription && !isComplete && useRefCount && refCount === 0) {
subscription.unsubscribe();
subscription = undefined;
subject = undefined;
}
});
};
} //# sourceMappingURL=shareReplay.js.map
/***/
},
/***/
"UqcF":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_object-pie.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function UqcF(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/
},
/***/
"VRyK":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/merge.js ***!
\*****************************************************************/
/*! exports provided: merge */
/***/
function VRyK(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "merge", function () {
return merge;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
/* harmony import */
var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../operators/mergeAll */
"bHdf");
/* harmony import */
var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./fromArray */
"yCtX");
function merge() {
var concurrent = Number.POSITIVE_INFINITY;
var scheduler = null;
for (var _len18 = arguments.length, observables = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
observables[_key18] = arguments[_key18];
}
var last = observables[observables.length - 1];
if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(last)) {
scheduler = observables.pop();
if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {
concurrent = observables.pop();
}
} else if (typeof last === 'number') {
concurrent = observables.pop();
}
if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
return observables[0];
}
return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__["mergeAll"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__["fromArray"])(observables, scheduler));
} //# sourceMappingURL=merge.js.map
/***/
},
/***/
"VTer":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/_shared.js ***!
\*************************************************/
/*! no static exports found */
/***/
function VTer(module, exports, __webpack_require__) {
var core = __webpack_require__(
/*! ./_core */
"g3g5");
var global = __webpack_require__(
/*! ./_global */
"dyZX");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(
/*! ./_library */
"LQAc") ? 'pure' : 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
/***/
},
/***/
"VbrY":
/*!*********************************************!*\
!*** ./node_modules/core-js/es6/reflect.js ***!
\*********************************************/
/*! no static exports found */
/***/
function VbrY(module, exports, __webpack_require__) {
__webpack_require__(
/*! ../modules/es6.reflect.apply */
"3xty");
__webpack_require__(
/*! ../modules/es6.reflect.construct */
"I5cv");
__webpack_require__(
/*! ../modules/es6.reflect.define-property */
"iMoV");
__webpack_require__(
/*! ../modules/es6.reflect.delete-property */
"uhZd");
__webpack_require__(
/*! ../modules/es6.reflect.enumerate */
"f/aN");
__webpack_require__(
/*! ../modules/es6.reflect.get */
"0YWM");
__webpack_require__(
/*! ../modules/es6.reflect.get-own-property-descriptor */
"694e");
__webpack_require__(
/*! ../modules/es6.reflect.get-prototype-of */
"LTTk");
__webpack_require__(
/*! ../modules/es6.reflect.has */
"9rMk");
__webpack_require__(
/*! ../modules/es6.reflect.is-extensible */
"IlFx");
__webpack_require__(
/*! ../modules/es6.reflect.own-keys */
"xpiv");
__webpack_require__(
/*! ../modules/es6.reflect.prevent-extensions */
"oZ/O");
__webpack_require__(
/*! ../modules/es6.reflect.set */
"klPD");
__webpack_require__(
/*! ../modules/es6.reflect.set-prototype-of */
"knU9");
module.exports = __webpack_require__(
/*! ../modules/_core */
"g3g5").Reflect;
/***/
},
/***/
"Vpsf":
/*!*******************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameAction.js ***!
\*******************************************************************************/
/*! exports provided: AnimationFrameAction */
/***/
function Vpsf(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AnimationFrameAction", function () {
return AnimationFrameAction;
});
/* harmony import */
var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsyncAction */
"3N8a");
var AnimationFrameAction = /*#__PURE__*/function (_AsyncAction__WEBPACK2) {
_inherits(AnimationFrameAction, _AsyncAction__WEBPACK2);
var _super70 = _createSuper(AnimationFrameAction);
function AnimationFrameAction(scheduler, work) {
var _this92;
_classCallCheck(this, AnimationFrameAction);
_this92 = _super70.call(this, scheduler, work);
_this92.scheduler = scheduler;
_this92.work = work;
return _this92;
}
_createClass2(AnimationFrameAction, [{
key: "requestAsyncId",
value: function requestAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && delay > 0) {
return _get(_getPrototypeOf(AnimationFrameAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
}
scheduler.actions.push(this);
return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(function () {
return scheduler.flush(null);
}));
}
}, {
key: "recycleAsyncId",
value: function recycleAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
return _get(_getPrototypeOf(AnimationFrameAction.prototype), "recycleAsyncId", this).call(this, scheduler, id, delay);
}
if (scheduler.actions.length === 0) {
cancelAnimationFrame(id);
scheduler.scheduled = undefined;
}
return undefined;
}
}]);
return AnimationFrameAction;
}(_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); //# sourceMappingURL=AnimationFrameAction.js.map
/***/
},
/***/
"WMd4":
/*!*************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/Notification.js ***!
\*************************************************************/
/*! exports provided: NotificationKind, Notification */
/***/
function WMd4(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NotificationKind", function () {
return NotificationKind;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Notification", function () {
return Notification;
});
/* harmony import */
var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./observable/empty */
"EY2u");
/* harmony import */
var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./observable/of */
"LRne");
/* harmony import */
var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./observable/throwError */
"z6cu");
var NotificationKind;
(function (NotificationKind) {
NotificationKind["NEXT"] = "N";
NotificationKind["ERROR"] = "E";
NotificationKind["COMPLETE"] = "C";
})(NotificationKind || (NotificationKind = {}));
var Notification = /*#__PURE__*/function () {
function Notification(kind, value, error) {
_classCallCheck(this, Notification);
this.kind = kind;
this.value = value;
this.error = error;
this.hasValue = kind === 'N';
}
_createClass2(Notification, [{
key: "observe",
value: function observe(observer) {
switch (this.kind) {
case 'N':
return observer.next && observer.next(this.value);
case 'E':
return observer.error && observer.error(this.error);
case 'C':
return observer.complete && observer.complete();
}
}
}, {
key: "do",
value: function _do(next, error, complete) {
var kind = this.kind;
switch (kind) {
case 'N':
return next && next(this.value);
case 'E':
return error && error(this.error);
case 'C':
return complete && complete();
}
}
}, {
key: "accept",
value: function accept(nextOrObserver, error, complete) {
if (nextOrObserver && typeof nextOrObserver.next === 'function') {
return this.observe(nextOrObserver);
} else {
return this["do"](nextOrObserver, error, complete);
}
}
}, {
key: "toObservable",
value: function toObservable() {
var kind = this.kind;
switch (kind) {
case 'N':
return Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(this.value);
case 'E':
return Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_2__["throwError"])(this.error);
case 'C':
return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_0__["empty"])();
}
throw new Error('unexpected notification kind value');
}
}], [{
key: "createNext",
value: function createNext(value) {
if (typeof value !== 'undefined') {
return new Notification('N', value);
}
return Notification.undefinedValueNotification;
}
}, {
key: "createError",
value: function createError(err) {
return new Notification('E', undefined, err);
}
}, {
key: "createComplete",
value: function createComplete() {
return Notification.completeNotification;
}
}]);
return Notification;
}();
Notification.completeNotification = new Notification('C');
Notification.undefinedValueNotification = new Notification('N', undefined); //# sourceMappingURL=Notification.js.map
/***/
},
/***/
"WPMC":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/generate.js ***!
\********************************************************************/
/*! exports provided: generate */
/***/
function WPMC(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "generate", function () {
return generate;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/identity */
"SpAZ");
/* harmony import */
var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../util/isScheduler */
"z+Ro");
function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {
var resultSelector;
var initialState;
if (arguments.length == 1) {
var options = initialStateOrOptions;
initialState = options.initialState;
condition = options.condition;
iterate = options.iterate;
resultSelector = options.resultSelector || _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
scheduler = options.scheduler;
} else if (resultSelectorOrObservable === undefined || Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(resultSelectorOrObservable)) {
initialState = initialStateOrOptions;
resultSelector = _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
scheduler = resultSelectorOrObservable;
} else {
initialState = initialStateOrOptions;
resultSelector = resultSelectorOrObservable;
}
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var state = initialState;
if (scheduler) {
return scheduler.schedule(dispatch, 0, {
subscriber: subscriber,
iterate: iterate,
condition: condition,
resultSelector: resultSelector,
state: state
});
}
do {
if (condition) {
var conditionResult = void 0;
try {
conditionResult = condition(state);
} catch (err) {
subscriber.error(err);
return undefined;
}
if (!conditionResult) {
subscriber.complete();
break;
}
}
var value = void 0;
try {
value = resultSelector(state);
} catch (err) {
subscriber.error(err);
return undefined;
}
subscriber.next(value);
if (subscriber.closed) {
break;
}
try {
state = iterate(state);
} catch (err) {
subscriber.error(err);
return undefined;
}
} while (true);
return undefined;
});
}
function dispatch(state) {
var subscriber = state.subscriber,
condition = state.condition;
if (subscriber.closed) {
return undefined;
}
if (state.needIterate) {
try {
state.state = state.iterate(state.state);
} catch (err) {
subscriber.error(err);
return undefined;
}
} else {
state.needIterate = true;
}
if (condition) {
var conditionResult;
try {
conditionResult = condition(state.state);
} catch (err) {
subscriber.error(err);
return undefined;
}
if (!conditionResult) {
subscriber.complete();
return undefined;
}
if (subscriber.closed) {
return undefined;
}
}
var value;
try {
value = state.resultSelector(state.state);
} catch (err) {
subscriber.error(err);
return undefined;
}
if (subscriber.closed) {
return undefined;
}
subscriber.next(value);
if (subscriber.closed) {
return undefined;
}
return this.schedule(state);
} //# sourceMappingURL=generate.js.map
/***/
},
/***/
"WyKG":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js ***!
\******************************************************************/
/*! exports provided: toSubscriber */
/***/
function WyKG(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "toSubscriber", function () {
return toSubscriber;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../symbol/rxSubscriber */
"2QA8");
/* harmony import */
var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../Observer */
"gRHU");
function toSubscriber(nextOrObserver, error, complete) {
if (nextOrObserver) {
if (nextOrObserver instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
return nextOrObserver;
}
if (nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]) {
return nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]();
}
}
if (!nextOrObserver && !error && !complete) {
return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](_Observer__WEBPACK_IMPORTED_MODULE_2__["empty"]);
}
return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](nextOrObserver, error, complete);
} //# sourceMappingURL=toSubscriber.js.map
/***/
},
/***/
"XDbj":
/*!***********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js ***!
\***********************************************************************/
/*! exports provided: throwIfEmpty */
/***/
function XDbj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "throwIfEmpty", function () {
return throwIfEmpty;
});
/* harmony import */
var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/EmptyError */
"sVev");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function throwIfEmpty() {
var errorFactory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultErrorFactory;
return function (source) {
return source.lift(new ThrowIfEmptyOperator(errorFactory));
};
}
var ThrowIfEmptyOperator = /*#__PURE__*/function () {
function ThrowIfEmptyOperator(errorFactory) {
_classCallCheck(this, ThrowIfEmptyOperator);
this.errorFactory = errorFactory;
}
_createClass2(ThrowIfEmptyOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));
}
}]);
return ThrowIfEmptyOperator;
}();
var ThrowIfEmptySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_24) {
_inherits(ThrowIfEmptySubscriber, _Subscriber__WEBPACK_24);
var _super71 = _createSuper(ThrowIfEmptySubscriber);
function ThrowIfEmptySubscriber(destination, errorFactory) {
var _this93;
_classCallCheck(this, ThrowIfEmptySubscriber);
_this93 = _super71.call(this, destination);
_this93.errorFactory = errorFactory;
_this93.hasValue = false;
return _this93;
}
_createClass2(ThrowIfEmptySubscriber, [{
key: "_next",
value: function _next(value) {
this.hasValue = true;
this.destination.next(value);
}
}, {
key: "_complete",
value: function _complete() {
if (!this.hasValue) {
var _err;
try {
_err = this.errorFactory();
} catch (e) {
_err = e;
}
this.destination.error(_err);
} else {
return this.destination.complete();
}
}
}]);
return ThrowIfEmptySubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);
function defaultErrorFactory() {
return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
} //# sourceMappingURL=throwIfEmpty.js.map
/***/
},
/***/
"XKFU":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/_export.js ***!
\*************************************************/
/*! no static exports found */
/***/
function XKFU(module, exports, __webpack_require__) {
var global = __webpack_require__(
/*! ./_global */
"dyZX");
var core = __webpack_require__(
/*! ./_core */
"g3g5");
var hide = __webpack_require__(
/*! ./_hide */
"Mukb");
var redefine = __webpack_require__(
/*! ./_redefine */
"KroJ");
var ctx = __webpack_require__(
/*! ./_ctx */
"m0Pp");
var PROTOTYPE = 'prototype';
var $export = function $export(type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
var key, own, out, exp;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined; // export native or passed
out = (own ? target : source)[key]; // bind timers to global for call from export context
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global
if (target) redefine(target, key, out, type & $export.U); // export
if (exports[key] != out) hide(exports, key, exp);
if (IS_PROTO && expProto[key] != out) expProto[key] = out;
}
};
global.core = core; // type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
/***/
},
/***/
"XMVh":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_iter-detect.js ***!
\******************************************************/
/*! no static exports found */
/***/
function XMVh(module, exports, __webpack_require__) {
var ITERATOR = __webpack_require__(
/*! ./_wks */
"K0xU")('iterator');
var SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function () {
SAFE_CLOSING = true;
}; // eslint-disable-next-line no-throw-literal
Array.from(riter, function () {
throw 2;
});
} catch (e) {
/* empty */
}
module.exports = function (exec, skipClosing) {
if (!skipClosing && !SAFE_CLOSING) return false;
var safe = false;
try {
var arr = [7];
var iter = arr[ITERATOR]();
iter.next = function () {
return {
done: safe = true
};
};
arr[ITERATOR] = function () {
return iter;
};
exec(arr);
} catch (e) {
/* empty */
}
return safe;
};
/***/
},
/***/
"XNiG":
/*!********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/Subject.js ***!
\********************************************************/
/*! exports provided: SubjectSubscriber, Subject, AnonymousSubject */
/***/
function XNiG(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SubjectSubscriber", function () {
return SubjectSubscriber;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Subject", function () {
return Subject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AnonymousSubject", function () {
return AnonymousSubject;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./Observable */
"HDdC");
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./Subscriber */
"7o/Q");
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./Subscription */
"quSY");
/* harmony import */
var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./util/ObjectUnsubscribedError */
"9ppp");
/* harmony import */
var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./SubjectSubscription */
"Ylt2");
/* harmony import */
var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../internal/symbol/rxSubscriber */
"2QA8");
var SubjectSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_25) {
_inherits(SubjectSubscriber, _Subscriber__WEBPACK_25);
var _super72 = _createSuper(SubjectSubscriber);
function SubjectSubscriber(destination) {
var _this94;
_classCallCheck(this, SubjectSubscriber);
_this94 = _super72.call(this, destination);
_this94.destination = destination;
return _this94;
}
return SubjectSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);
var Subject = /*#__PURE__*/function (_Observable__WEBPACK_4) {
_inherits(Subject, _Observable__WEBPACK_4);
var _super73 = _createSuper(Subject);
function Subject() {
var _this95;
_classCallCheck(this, Subject);
_this95 = _super73.call(this);
_this95.observers = [];
_this95.closed = false;
_this95.isStopped = false;
_this95.hasError = false;
_this95.thrownError = null;
return _this95;
}
_createClass2(Subject, [{
key: _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__["rxSubscriber"],
value: function value() {
return new SubjectSubscriber(this);
}
}, {
key: "lift",
value: function lift(operator) {
var subject = new AnonymousSubject(this, this);
subject.operator = operator;
return subject;
}
}, {
key: "next",
value: function next(value) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
}
if (!this.isStopped) {
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].next(value);
}
}
}
}, {
key: "error",
value: function error(err) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
}
this.hasError = true;
this.thrownError = err;
this.isStopped = true;
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].error(err);
}
this.observers.length = 0;
}
}, {
key: "complete",
value: function complete() {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
}
this.isStopped = true;
var observers = this.observers;
var len = observers.length;
var copy = observers.slice();
for (var i = 0; i < len; i++) {
copy[i].complete();
}
this.observers.length = 0;
}
}, {
key: "unsubscribe",
value: function unsubscribe() {
this.isStopped = true;
this.closed = true;
this.observers = null;
}
}, {
key: "_trySubscribe",
value: function _trySubscribe(subscriber) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
} else {
return _get(_getPrototypeOf(Subject.prototype), "_trySubscribe", this).call(this, subscriber);
}
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
if (this.closed) {
throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
} else if (this.hasError) {
subscriber.error(this.thrownError);
return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
} else if (this.isStopped) {
subscriber.complete();
return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
} else {
this.observers.push(subscriber);
return new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__["SubjectSubscription"](this, subscriber);
}
}
}, {
key: "asObservable",
value: function asObservable() {
var observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
observable.source = this;
return observable;
}
}]);
return Subject;
}(_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]);
Subject.create = function (destination, source) {
return new AnonymousSubject(destination, source);
};
var AnonymousSubject = /*#__PURE__*/function (_Subject) {
_inherits(AnonymousSubject, _Subject);
var _super74 = _createSuper(AnonymousSubject);
function AnonymousSubject(destination, source) {
var _this96;
_classCallCheck(this, AnonymousSubject);
_this96 = _super74.call(this);
_this96.destination = destination;
_this96.source = source;
return _this96;
}
_createClass2(AnonymousSubject, [{
key: "next",
value: function next(value) {
var destination = this.destination;
if (destination && destination.next) {
destination.next(value);
}
}
}, {
key: "error",
value: function error(err) {
var destination = this.destination;
if (destination && destination.error) {
this.destination.error(err);
}
}
}, {
key: "complete",
value: function complete() {
var destination = this.destination;
if (destination && destination.complete) {
this.destination.complete();
}
}
}, {
key: "_subscribe",
value: function _subscribe(subscriber) {
var source = this.source;
if (source) {
return this.source.subscribe(subscriber);
} else {
return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
}
}
}]);
return AnonymousSubject;
}(Subject); //# sourceMappingURL=Subject.js.map
/***/
},
/***/
"Xbzi":
/*!**************************************************************!*\
!*** ./node_modules/core-js/modules/_inherit-if-required.js ***!
\**************************************************************/
/*! no static exports found */
/***/
function Xbzi(module, exports, __webpack_require__) {
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var setPrototypeOf = __webpack_require__(
/*! ./_set-proto */
"i5dc").set;
module.exports = function (that, target, C) {
var S = target.constructor;
var P;
if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
setPrototypeOf(that, P);
}
return that;
};
/***/
},
/***/
"XoHu":
/*!**************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isObject.js ***!
\**************************************************************/
/*! exports provided: isObject */
/***/
function XoHu(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isObject", function () {
return isObject;
});
function isObject(x) {
return x !== null && typeof x === 'object';
} //# sourceMappingURL=isObject.js.map
/***/
},
/***/
"XqQ8":
/*!*********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js ***!
\*********************************************************************/
/*! exports provided: exhaustMap */
/***/
function XqQ8(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "exhaustMap", function () {
return exhaustMap;
});
/* harmony import */
var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./map */
"lJxs");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../observable/from */
"Cfvw");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function exhaustMap(project, resultSelector) {
if (resultSelector) {
return function (source) {
return source.pipe(exhaustMap(function (a, i) {
return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
return resultSelector(a, b, i, ii);
}));
}));
};
}
return function (source) {
return source.lift(new ExhaustMapOperator(project));
};
}
var ExhaustMapOperator = /*#__PURE__*/function () {
function ExhaustMapOperator(project) {
_classCallCheck(this, ExhaustMapOperator);
this.project = project;
}
_createClass2(ExhaustMapOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));
}
}]);
return ExhaustMapOperator;
}();
var ExhaustMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP12) {
_inherits(ExhaustMapSubscriber, _innerSubscribe__WEBP12);
var _super75 = _createSuper(ExhaustMapSubscriber);
function ExhaustMapSubscriber(destination, project) {
var _this97;
_classCallCheck(this, ExhaustMapSubscriber);
_this97 = _super75.call(this, destination);
_this97.project = project;
_this97.hasSubscription = false;
_this97.hasCompleted = false;
_this97.index = 0;
return _this97;
}
_createClass2(ExhaustMapSubscriber, [{
key: "_next",
value: function _next(value) {
if (!this.hasSubscription) {
this.tryNext(value);
}
}
}, {
key: "tryNext",
value: function tryNext(value) {
var result;
var index = this.index++;
try {
result = this.project(value, index);
} catch (err) {
this.destination.error(err);
return;
}
this.hasSubscription = true;
this._innerSub(result);
}
}, {
key: "_innerSub",
value: function _innerSub(result) {
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
var destination = this.destination;
destination.add(innerSubscriber);
var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber);
if (innerSubscription !== innerSubscriber) {
destination.add(innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
this.hasCompleted = true;
if (!this.hasSubscription) {
this.destination.complete();
}
this.unsubscribe();
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this.destination.next(innerValue);
}
}, {
key: "notifyError",
value: function notifyError(err) {
this.destination.error(err);
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
this.hasSubscription = false;
if (this.hasCompleted) {
this.destination.complete();
}
}
}]);
return ExhaustMapSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=exhaustMap.js.map
/***/
},
/***/
"Y/cZ":
/*!**********************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/Scheduler.js ***!
\**********************************************************/
/*! exports provided: Scheduler */
/***/
function YCZ(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Scheduler", function () {
return Scheduler;
});
var Scheduler = /*#__PURE__*/function () {
function Scheduler(SchedulerAction) {
var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Scheduler.now;
_classCallCheck(this, Scheduler);
this.SchedulerAction = SchedulerAction;
this.now = now;
}
_createClass2(Scheduler, [{
key: "schedule",
value: function schedule(work) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var state = arguments.length > 2 ? arguments[2] : undefined;
return new this.SchedulerAction(this, work).schedule(state, delay);
}
}]);
return Scheduler;
}();
Scheduler.now = function () {
return Date.now();
}; //# sourceMappingURL=Scheduler.js.map
/***/
},
/***/
"Y6u4":
/*!******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js ***!
\******************************************************************/
/*! exports provided: TimeoutError */
/***/
function Y6u4(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TimeoutError", function () {
return TimeoutError;
});
var TimeoutErrorImpl = function () {
function TimeoutErrorImpl() {
Error.call(this);
this.message = 'Timeout has occurred';
this.name = 'TimeoutError';
return this;
}
TimeoutErrorImpl.prototype = Object.create(Error.prototype);
return TimeoutErrorImpl;
}();
var TimeoutError = TimeoutErrorImpl; //# sourceMappingURL=TimeoutError.js.map
/***/
},
/***/
"Y6wi":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/switchAll.js ***!
\********************************************************************/
/*! exports provided: switchAll */
/***/
function Y6wi(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "switchAll", function () {
return switchAll;
});
/* harmony import */
var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./switchMap */
"eIep");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/identity */
"SpAZ");
function switchAll() {
return Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]);
} //# sourceMappingURL=switchAll.js.map
/***/
},
/***/
"Y7HM":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isNumeric.js ***!
\***************************************************************/
/*! exports provided: isNumeric */
/***/
function Y7HM(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isNumeric", function () {
return isNumeric;
});
/* harmony import */
var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./isArray */
"DH7j");
function isNumeric(val) {
return !Object(_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(val) && val - parseFloat(val) + 1 >= 0;
} //# sourceMappingURL=isNumeric.js.map
/***/
},
/***/
"YTvA":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_shared-key.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function YTvA(module, exports, __webpack_require__) {
var shared = __webpack_require__(
/*! ./_shared */
"VTer")('keys');
var uid = __webpack_require__(
/*! ./_uid */
"ylqs");
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/
},
/***/
"Ylt2":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js ***!
\********************************************************************/
/*! exports provided: SubjectSubscription */
/***/
function Ylt2(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SubjectSubscription", function () {
return SubjectSubscription;
});
/* harmony import */
var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./Subscription */
"quSY");
var SubjectSubscription = /*#__PURE__*/function (_Subscription__WEBPAC4) {
_inherits(SubjectSubscription, _Subscription__WEBPAC4);
var _super76 = _createSuper(SubjectSubscription);
function SubjectSubscription(subject, subscriber) {
var _this98;
_classCallCheck(this, SubjectSubscription);
_this98 = _super76.call(this);
_this98.subject = subject;
_this98.subscriber = subscriber;
_this98.closed = false;
return _this98;
}
_createClass2(SubjectSubscription, [{
key: "unsubscribe",
value: function unsubscribe() {
if (this.closed) {
return;
}
this.closed = true;
var subject = this.subject;
var observers = subject.observers;
this.subject = null;
if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
return;
}
var subscriberIndex = observers.indexOf(this.subscriber);
if (subscriberIndex !== -1) {
observers.splice(subscriberIndex, 1);
}
}
}]);
return SubjectSubscription;
}(_Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]); //# sourceMappingURL=SubjectSubscription.js.map
/***/
},
/***/
"Ymqv":
/*!**************************************************!*\
!*** ./node_modules/core-js/modules/_iobject.js ***!
\**************************************************/
/*! no static exports found */
/***/
function Ymqv(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(
/*! ./_cof */
"LZWt"); // eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
};
/***/
},
/***/
"YuR2":
/*!**********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js ***!
\**********************************************************************/
/*! exports provided: QueueAction */
/***/
function YuR2(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "QueueAction", function () {
return QueueAction;
});
/* harmony import */
var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AsyncAction */
"3N8a");
var QueueAction = /*#__PURE__*/function (_AsyncAction__WEBPACK3) {
_inherits(QueueAction, _AsyncAction__WEBPACK3);
var _super77 = _createSuper(QueueAction);
function QueueAction(scheduler, work) {
var _this99;
_classCallCheck(this, QueueAction);
_this99 = _super77.call(this, scheduler, work);
_this99.scheduler = scheduler;
_this99.work = work;
return _this99;
}
_createClass2(QueueAction, [{
key: "schedule",
value: function schedule(state) {
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
if (delay > 0) {
return _get(_getPrototypeOf(QueueAction.prototype), "schedule", this).call(this, state, delay);
}
this.delay = delay;
this.state = state;
this.scheduler.flush(this);
return this;
}
}, {
key: "execute",
value: function execute(state, delay) {
return delay > 0 || this.closed ? _get(_getPrototypeOf(QueueAction.prototype), "execute", this).call(this, state, delay) : this._execute(state, delay);
}
}, {
key: "requestAsyncId",
value: function requestAsyncId(scheduler, id) {
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
return _get(_getPrototypeOf(QueueAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
}
return scheduler.flush(this);
}
}]);
return QueueAction;
}(_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); //# sourceMappingURL=QueueAction.js.map
/***/
},
/***/
"Z6vF":
/*!***********************************************!*\
!*** ./node_modules/core-js/modules/_meta.js ***!
\***********************************************/
/*! no static exports found */
/***/
function Z6vF(module, exports, __webpack_require__) {
var META = __webpack_require__(
/*! ./_uid */
"ylqs")('meta');
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var has = __webpack_require__(
/*! ./_has */
"aagx");
var setDesc = __webpack_require__(
/*! ./_object-dp */
"hswa").f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var FREEZE = !__webpack_require__(
/*! ./_fails */
"eeVq")(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function setMeta(it) {
setDesc(it, META, {
value: {
i: 'O' + ++id,
// object ID
w: {} // weak collections IDs
}
});
};
var fastKey = function fastKey(it, create) {
// return primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F'; // not necessary to add metadata
if (!create) return 'E'; // add missing metadata
setMeta(it); // return object ID
}
return it[META].i;
};
var getWeak = function getWeak(it, create) {
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true; // not necessary to add metadata
if (!create) return false; // add missing metadata
setMeta(it); // return hash weak collections IDs
}
return it[META].w;
}; // add metadata on freeze-family methods calling
var onFreeze = function onFreeze(it) {
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
return it;
};
var meta = module.exports = {
KEY: META,
NEED: false,
fastKey: fastKey,
getWeak: getWeak,
onFreeze: onFreeze
};
/***/
},
/***/
"ZD67":
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/_collection-weak.js ***!
\**********************************************************/
/*! no static exports found */
/***/
function ZD67(module, exports, __webpack_require__) {
"use strict";
var redefineAll = __webpack_require__(
/*! ./_redefine-all */
"3Lyj");
var getWeak = __webpack_require__(
/*! ./_meta */
"Z6vF").getWeak;
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4");
var anInstance = __webpack_require__(
/*! ./_an-instance */
"9gX7");
var forOf = __webpack_require__(
/*! ./_for-of */
"SlkY");
var createArrayMethod = __webpack_require__(
/*! ./_array-methods */
"CkkT");
var $has = __webpack_require__(
/*! ./_has */
"aagx");
var validate = __webpack_require__(
/*! ./_validate-collection */
"s5qY");
var arrayFind = createArrayMethod(5);
var arrayFindIndex = createArrayMethod(6);
var id = 0; // fallback for uncaught frozen keys
var uncaughtFrozenStore = function uncaughtFrozenStore(that) {
return that._l || (that._l = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function UncaughtFrozenStore() {
this.a = [];
};
var findUncaughtFrozen = function findUncaughtFrozen(store, key) {
return arrayFind(store.a, function (it) {
return it[0] === key;
});
};
UncaughtFrozenStore.prototype = {
get: function get(key) {
var entry = findUncaughtFrozen(this, key);
if (entry) return entry[1];
},
has: function has(key) {
return !!findUncaughtFrozen(this, key);
},
set: function set(key, value) {
var entry = findUncaughtFrozen(this, key);
if (entry) entry[1] = value;else this.a.push([key, value]);
},
'delete': function _delete(key) {
var index = arrayFindIndex(this.a, function (it) {
return it[0] === key;
});
if (~index) this.a.splice(index, 1);
return !!~index;
}
};
module.exports = {
getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
that._i = id++; // collection id
that._l = undefined; // leak store for uncaught frozen objects
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
'delete': function _delete(key) {
if (!isObject(key)) return false;
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
return data && $has(data, this._i) && delete data[this._i];
},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
has: function has(key) {
if (!isObject(key)) return false;
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
return data && $has(data, this._i);
}
});
return C;
},
def: function def(that, key, value) {
var data = getWeak(anObject(key), true);
if (data === true) uncaughtFrozenStore(that).set(key, value);else data[that._i] = value;
return that;
},
ufstore: uncaughtFrozenStore
};
/***/
},
/***/
"ZK94":
/*!*************************************!*\
!*** ./node_modules/wgs84/index.js ***!
\*************************************/
/*! no static exports found */
/***/
function ZK94(module, exports) {
module.exports.RADIUS = 6378137;
module.exports.FLATTENING = 1 / 298.257223563;
module.exports.POLAR_RADIUS = 6356752.3142;
/***/
},
/***/
"ZUHj":
/*!***********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js ***!
\***********************************************************************/
/*! exports provided: subscribeToResult */
/***/
function ZUHj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "subscribeToResult", function () {
return subscribeToResult;
});
/* harmony import */
var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../InnerSubscriber */
"51Dv");
/* harmony import */
var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./subscribeTo */
"SeVD");
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../Observable */
"HDdC");
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex) {
var innerSubscriber = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__["InnerSubscriber"](outerSubscriber, outerValue, outerIndex);
if (innerSubscriber.closed) {
return undefined;
}
if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]) {
return result.subscribe(innerSubscriber);
}
return Object(_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(result)(innerSubscriber);
} //# sourceMappingURL=subscribeToResult.js.map
/***/
},
/***/
"Zy1z":
/*!*******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/pairwise.js ***!
\*******************************************************************/
/*! exports provided: pairwise */
/***/
function Zy1z(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "pairwise", function () {
return pairwise;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function pairwise() {
return function (source) {
return source.lift(new PairwiseOperator());
};
}
var PairwiseOperator = /*#__PURE__*/function () {
function PairwiseOperator() {
_classCallCheck(this, PairwiseOperator);
}
_createClass2(PairwiseOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new PairwiseSubscriber(subscriber));
}
}]);
return PairwiseOperator;
}();
var PairwiseSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_26) {
_inherits(PairwiseSubscriber, _Subscriber__WEBPACK_26);
var _super78 = _createSuper(PairwiseSubscriber);
function PairwiseSubscriber(destination) {
var _this100;
_classCallCheck(this, PairwiseSubscriber);
_this100 = _super78.call(this, destination);
_this100.hasPrev = false;
return _this100;
}
_createClass2(PairwiseSubscriber, [{
key: "_next",
value: function _next(value) {
var pair;
if (this.hasPrev) {
pair = [this.prev, value];
} else {
this.hasPrev = true;
}
this.prev = value;
if (pair) {
this.destination.next(pair);
}
}
}]);
return PairwiseSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=pairwise.js.map
/***/
},
/***/
"Zyez":
/*!************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/sequenceEqual.js ***!
\************************************************************************/
/*! exports provided: sequenceEqual, SequenceEqualOperator, SequenceEqualSubscriber */
/***/
function Zyez(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "sequenceEqual", function () {
return sequenceEqual;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SequenceEqualOperator", function () {
return SequenceEqualOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SequenceEqualSubscriber", function () {
return SequenceEqualSubscriber;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function sequenceEqual(compareTo, comparator) {
return function (source) {
return source.lift(new SequenceEqualOperator(compareTo, comparator));
};
}
var SequenceEqualOperator = /*#__PURE__*/function () {
function SequenceEqualOperator(compareTo, comparator) {
_classCallCheck(this, SequenceEqualOperator);
this.compareTo = compareTo;
this.comparator = comparator;
}
_createClass2(SequenceEqualOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator));
}
}]);
return SequenceEqualOperator;
}();
var SequenceEqualSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_27) {
_inherits(SequenceEqualSubscriber, _Subscriber__WEBPACK_27);
var _super79 = _createSuper(SequenceEqualSubscriber);
function SequenceEqualSubscriber(destination, compareTo, comparator) {
var _this101;
_classCallCheck(this, SequenceEqualSubscriber);
_this101 = _super79.call(this, destination);
_this101.compareTo = compareTo;
_this101.comparator = comparator;
_this101._a = [];
_this101._b = [];
_this101._oneComplete = false;
_this101.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, _assertThisInitialized(_this101))));
return _this101;
}
_createClass2(SequenceEqualSubscriber, [{
key: "_next",
value: function _next(value) {
if (this._oneComplete && this._b.length === 0) {
this.emit(false);
} else {
this._a.push(value);
this.checkValues();
}
}
}, {
key: "_complete",
value: function _complete() {
if (this._oneComplete) {
this.emit(this._a.length === 0 && this._b.length === 0);
} else {
this._oneComplete = true;
}
this.unsubscribe();
}
}, {
key: "checkValues",
value: function checkValues() {
var _a = this._a,
_b = this._b,
comparator = this.comparator;
while (_a.length > 0 && _b.length > 0) {
var a = _a.shift();
var b = _b.shift();
var areEqual = false;
try {
areEqual = comparator ? comparator(a, b) : a === b;
} catch (e) {
this.destination.error(e);
}
if (!areEqual) {
this.emit(false);
}
}
}
}, {
key: "emit",
value: function emit(value) {
var destination = this.destination;
destination.next(value);
destination.complete();
}
}, {
key: "nextB",
value: function nextB(value) {
if (this._oneComplete && this._a.length === 0) {
this.emit(false);
} else {
this._b.push(value);
this.checkValues();
}
}
}, {
key: "completeB",
value: function completeB() {
if (this._oneComplete) {
this.emit(this._a.length === 0 && this._b.length === 0);
} else {
this._oneComplete = true;
}
}
}]);
return SequenceEqualSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);
var SequenceEqualCompareToSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_28) {
_inherits(SequenceEqualCompareToSubscriber, _Subscriber__WEBPACK_28);
var _super80 = _createSuper(SequenceEqualCompareToSubscriber);
function SequenceEqualCompareToSubscriber(destination, parent) {
var _this102;
_classCallCheck(this, SequenceEqualCompareToSubscriber);
_this102 = _super80.call(this, destination);
_this102.parent = parent;
return _this102;
}
_createClass2(SequenceEqualCompareToSubscriber, [{
key: "_next",
value: function _next(value) {
this.parent.nextB(value);
}
}, {
key: "_error",
value: function _error(err) {
this.parent.error(err);
this.unsubscribe();
}
}, {
key: "_complete",
value: function _complete() {
this.parent.completeB();
this.unsubscribe();
}
}]);
return SequenceEqualCompareToSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=sequenceEqual.js.map
/***/
},
/***/
"a7t3":
/*!************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js ***!
\************************************************************************/
/*! exports provided: subscribeToPromise */
/***/
function a7t3(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "subscribeToPromise", function () {
return subscribeToPromise;
});
/* harmony import */
var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./hostReportError */
"NJ4a");
var subscribeToPromise = function subscribeToPromise(promise) {
return function (subscriber) {
promise.then(function (value) {
if (!subscriber.closed) {
subscriber.next(value);
subscriber.complete();
}
}, function (err) {
return subscriber.error(err);
}).then(null, _hostReportError__WEBPACK_IMPORTED_MODULE_0__["hostReportError"]);
return subscriber;
};
}; //# sourceMappingURL=subscribeToPromise.js.map
/***/
},
/***/
"aCFj":
/*!*****************************************************!*\
!*** ./node_modules/core-js/modules/_to-iobject.js ***!
\*****************************************************/
/*! no static exports found */
/***/
function aCFj(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(
/*! ./_iobject */
"Ymqv");
var defined = __webpack_require__(
/*! ./_defined */
"vhPU");
module.exports = function (it) {
return IObject(defined(it));
};
/***/
},
/***/
"aGrj":
/*!**********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/switchMapTo.js ***!
\**********************************************************************/
/*! exports provided: switchMapTo */
/***/
function aGrj(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "switchMapTo", function () {
return switchMapTo;
});
/* harmony import */
var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./switchMap */
"eIep");
function switchMapTo(innerObservable, resultSelector) {
return resultSelector ? Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(function () {
return innerObservable;
}, resultSelector) : Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(function () {
return innerObservable;
});
} //# sourceMappingURL=switchMapTo.js.map
/***/
},
/***/
"aagx":
/*!**********************************************!*\
!*** ./node_modules/core-js/modules/_has.js ***!
\**********************************************/
/*! no static exports found */
/***/
function aagx(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/
},
/***/
"apmT":
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/_to-primitive.js ***!
\*******************************************************/
/*! no static exports found */
/***/
function apmT(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(
/*! ./_is-object */
"0/R4"); // instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/
},
/***/
"bHdf":
/*!*******************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js ***!
\*******************************************************************/
/*! exports provided: mergeAll */
/***/
function bHdf(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "mergeAll", function () {
return mergeAll;
});
/* harmony import */
var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./mergeMap */
"5+tZ");
/* harmony import */
var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/identity */
"SpAZ");
function mergeAll() {
var concurrent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number.POSITIVE_INFINITY;
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"], concurrent);
} //# sourceMappingURL=mergeAll.js.map
/***/
},
/***/
"bOdf":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/concatMap.js ***!
\********************************************************************/
/*! exports provided: concatMap */
/***/
function bOdf(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "concatMap", function () {
return concatMap;
});
/* harmony import */
var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./mergeMap */
"5+tZ");
function concatMap(project, resultSelector) {
return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(project, resultSelector, 1);
} //# sourceMappingURL=concatMap.js.map
/***/
},
/***/
"c2HN":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/isPromise.js ***!
\***************************************************************/
/*! exports provided: isPromise */
/***/
function c2HN(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isPromise", function () {
return isPromise;
});
function isPromise(value) {
return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
} //# sourceMappingURL=isPromise.js.map
/***/
},
/***/
"c6ID":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/sample.js ***!
\*****************************************************************/
/*! exports provided: sample */
/***/
function c6ID(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "sample", function () {
return sample;
});
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function sample(notifier) {
return function (source) {
return source.lift(new SampleOperator(notifier));
};
}
var SampleOperator = /*#__PURE__*/function () {
function SampleOperator(notifier) {
_classCallCheck(this, SampleOperator);
this.notifier = notifier;
}
_createClass2(SampleOperator, [{
key: "call",
value: function call(subscriber, source) {
var sampleSubscriber = new SampleSubscriber(subscriber);
var subscription = source.subscribe(sampleSubscriber);
subscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(this.notifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](sampleSubscriber)));
return subscription;
}
}]);
return SampleOperator;
}();
var SampleSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP13) {
_inherits(SampleSubscriber, _innerSubscribe__WEBP13);
var _super81 = _createSuper(SampleSubscriber);
function SampleSubscriber() {
var _this103;
_classCallCheck(this, SampleSubscriber);
_this103 = _super81.apply(this, arguments);
_this103.hasValue = false;
return _this103;
}
_createClass2(SampleSubscriber, [{
key: "_next",
value: function _next(value) {
this.value = value;
this.hasValue = true;
}
}, {
key: "notifyNext",
value: function notifyNext() {
this.emitValue();
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
this.emitValue();
}
}, {
key: "emitValue",
value: function emitValue() {
if (this.hasValue) {
this.hasValue = false;
this.destination.next(this.value);
}
}
}]);
return SampleSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=sample.js.map
/***/
},
/***/
"c7jc":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/util/Immediate.js ***!
\***************************************************************/
/*! exports provided: Immediate, TestTools */
/***/
function c7jc(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Immediate", function () {
return Immediate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TestTools", function () {
return TestTools;
});
var nextHandle = 1;
var RESOLVED = function () {
return Promise.resolve();
}();
var activeHandles = {};
function findAndClearHandle(handle) {
if (handle in activeHandles) {
delete activeHandles[handle];
return true;
}
return false;
}
var Immediate = {
setImmediate: function setImmediate(cb) {
var handle = nextHandle++;
activeHandles[handle] = true;
RESOLVED.then(function () {
return findAndClearHandle(handle) && cb();
});
return handle;
},
clearImmediate: function clearImmediate(handle) {
findAndClearHandle(handle);
}
};
var TestTools = {
pending: function pending() {
return Object.keys(activeHandles).length;
}
}; //# sourceMappingURL=Immediate.js.map
/***/
},
/***/
"cBqT":
/*!***************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/find.js ***!
\***************************************************************/
/*! exports provided: find, FindValueOperator, FindValueSubscriber */
/***/
function cBqT(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "find", function () {
return find;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "FindValueOperator", function () {
return FindValueOperator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "FindValueSubscriber", function () {
return FindValueSubscriber;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
function find(predicate, thisArg) {
if (typeof predicate !== 'function') {
throw new TypeError('predicate is not a function');
}
return function (source) {
return source.lift(new FindValueOperator(predicate, source, false, thisArg));
};
}
var FindValueOperator = /*#__PURE__*/function () {
function FindValueOperator(predicate, source, yieldIndex, thisArg) {
_classCallCheck(this, FindValueOperator);
this.predicate = predicate;
this.source = source;
this.yieldIndex = yieldIndex;
this.thisArg = thisArg;
}
_createClass2(FindValueOperator, [{
key: "call",
value: function call(observer, source) {
return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));
}
}]);
return FindValueOperator;
}();
var FindValueSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_29) {
_inherits(FindValueSubscriber, _Subscriber__WEBPACK_29);
var _super82 = _createSuper(FindValueSubscriber);
function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {
var _this104;
_classCallCheck(this, FindValueSubscriber);
_this104 = _super82.call(this, destination);
_this104.predicate = predicate;
_this104.source = source;
_this104.yieldIndex = yieldIndex;
_this104.thisArg = thisArg;
_this104.index = 0;
return _this104;
}
_createClass2(FindValueSubscriber, [{
key: "notifyComplete",
value: function notifyComplete(value) {
var destination = this.destination;
destination.next(value);
destination.complete();
this.unsubscribe();
}
}, {
key: "_next",
value: function _next(value) {
var predicate = this.predicate,
thisArg = this.thisArg;
var index = this.index++;
try {
var result = predicate.call(thisArg || this, value, index, this.source);
if (result) {
this.notifyComplete(this.yieldIndex ? index : value);
}
} catch (err) {
this.destination.error(err);
}
}
}, {
key: "_complete",
value: function _complete() {
this.notifyComplete(this.yieldIndex ? -1 : undefined);
}
}]);
return FindValueSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=find.js.map
/***/
},
/***/
"coGc":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/delayWhen.js ***!
\********************************************************************/
/*! exports provided: delayWhen */
/***/
function coGc(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "delayWhen", function () {
return delayWhen;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../OuterSubscriber */
"l7GE");
/* harmony import */
var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/subscribeToResult */
"ZUHj");
function delayWhen(delayDurationSelector, subscriptionDelay) {
if (subscriptionDelay) {
return function (source) {
return new SubscriptionDelayObservable(source, subscriptionDelay).lift(new DelayWhenOperator(delayDurationSelector));
};
}
return function (source) {
return source.lift(new DelayWhenOperator(delayDurationSelector));
};
}
var DelayWhenOperator = /*#__PURE__*/function () {
function DelayWhenOperator(delayDurationSelector) {
_classCallCheck(this, DelayWhenOperator);
this.delayDurationSelector = delayDurationSelector;
}
_createClass2(DelayWhenOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));
}
}]);
return DelayWhenOperator;
}();
var DelayWhenSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB3) {
_inherits(DelayWhenSubscriber, _OuterSubscriber__WEB3);
var _super83 = _createSuper(DelayWhenSubscriber);
function DelayWhenSubscriber(destination, delayDurationSelector) {
var _this105;
_classCallCheck(this, DelayWhenSubscriber);
_this105 = _super83.call(this, destination);
_this105.delayDurationSelector = delayDurationSelector;
_this105.completed = false;
_this105.delayNotifierSubscriptions = [];
_this105.index = 0;
return _this105;
}
_createClass2(DelayWhenSubscriber, [{
key: "notifyNext",
value: function notifyNext(outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {
this.destination.next(outerValue);
this.removeSubscription(innerSub);
this.tryComplete();
}
}, {
key: "notifyError",
value: function notifyError(error, innerSub) {
this._error(error);
}
}, {
key: "notifyComplete",
value: function notifyComplete(innerSub) {
var value = this.removeSubscription(innerSub);
if (value) {
this.destination.next(value);
}
this.tryComplete();
}
}, {
key: "_next",
value: function _next(value) {
var index = this.index++;
try {
var delayNotifier = this.delayDurationSelector(value, index);
if (delayNotifier) {
this.tryDelay(delayNotifier, value);
}
} catch (err) {
this.destination.error(err);
}
}
}, {
key: "_complete",
value: function _complete() {
this.completed = true;
this.tryComplete();
this.unsubscribe();
}
}, {
key: "removeSubscription",
value: function removeSubscription(subscription) {
subscription.unsubscribe();
var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);
if (subscriptionIdx !== -1) {
this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);
}
return subscription.outerValue;
}
}, {
key: "tryDelay",
value: function tryDelay(delayNotifier, value) {
var notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, delayNotifier, value);
if (notifierSubscription && !notifierSubscription.closed) {
var destination = this.destination;
destination.add(notifierSubscription);
this.delayNotifierSubscriptions.push(notifierSubscription);
}
}
}, {
key: "tryComplete",
value: function tryComplete() {
if (this.completed && this.delayNotifierSubscriptions.length === 0) {
this.destination.complete();
}
}
}]);
return DelayWhenSubscriber;
}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]);
var SubscriptionDelayObservable = /*#__PURE__*/function (_Observable__WEBPACK_5) {
_inherits(SubscriptionDelayObservable, _Observable__WEBPACK_5);
var _super84 = _createSuper(SubscriptionDelayObservable);
function SubscriptionDelayObservable(source, subscriptionDelay) {
var _this106;
_classCallCheck(this, SubscriptionDelayObservable);
_this106 = _super84.call(this);
_this106.source = source;
_this106.subscriptionDelay = subscriptionDelay;
return _this106;
}
_createClass2(SubscriptionDelayObservable, [{
key: "_subscribe",
value: function _subscribe(subscriber) {
this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));
}
}]);
return SubscriptionDelayObservable;
}(_Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]);
var SubscriptionDelaySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_30) {
_inherits(SubscriptionDelaySubscriber, _Subscriber__WEBPACK_30);
var _super85 = _createSuper(SubscriptionDelaySubscriber);
function SubscriptionDelaySubscriber(parent, source) {
var _this107;
_classCallCheck(this, SubscriptionDelaySubscriber);
_this107 = _super85.call(this);
_this107.parent = parent;
_this107.source = source;
_this107.sourceSubscribed = false;
return _this107;
}
_createClass2(SubscriptionDelaySubscriber, [{
key: "_next",
value: function _next(unused) {
this.subscribeToSource();
}
}, {
key: "_error",
value: function _error(err) {
this.unsubscribe();
this.parent.error(err);
}
}, {
key: "_complete",
value: function _complete() {
this.unsubscribe();
this.subscribeToSource();
}
}, {
key: "subscribeToSource",
value: function subscribeToSource() {
if (!this.sourceSubscribed) {
this.sourceSubscribed = true;
this.unsubscribe();
this.source.subscribe(this.parent);
}
}
}]);
return SubscriptionDelaySubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=delayWhen.js.map
/***/
},
/***/
"cp0P":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js ***!
\********************************************************************/
/*! exports provided: forkJoin */
/***/
function cp0P(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "forkJoin", function () {
return forkJoin;
});
/* harmony import */
var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Observable */
"HDdC");
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/isArray */
"DH7j");
/* harmony import */
var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../operators/map */
"lJxs");
/* harmony import */
var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../util/isObject */
"XoHu");
/* harmony import */
var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./from */
"Cfvw");
function forkJoin() {
for (var _len19 = arguments.length, sources = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
sources[_key19] = arguments[_key19];
}
if (sources.length === 1) {
var first = sources[0];
if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(first)) {
return forkJoinInternal(first, null);
}
if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_3__["isObject"])(first) && Object.getPrototypeOf(first) === Object.prototype) {
var keys = Object.keys(first);
return forkJoinInternal(keys.map(function (key) {
return first[key];
}), keys);
}
}
if (typeof sources[sources.length - 1] === 'function') {
var resultSelector = sources.pop();
sources = sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(sources[0]) ? sources[0] : sources;
return forkJoinInternal(sources, null).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(function (args) {
return resultSelector.apply(void 0, _toConsumableArray(args));
}));
}
return forkJoinInternal(sources, null);
}
function forkJoinInternal(sources, keys) {
return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
var len = sources.length;
if (len === 0) {
subscriber.complete();
return;
}
var values = new Array(len);
var completed = 0;
var emitted = 0;
var _loop = function _loop(i) {
var source = Object(_from__WEBPACK_IMPORTED_MODULE_4__["from"])(sources[i]);
var hasValue = false;
subscriber.add(source.subscribe({
next: function next(value) {
if (!hasValue) {
hasValue = true;
emitted++;
}
values[i] = value;
},
error: function error(err) {
return subscriber.error(err);
},
complete: function complete() {
completed++;
if (completed === len || !hasValue) {
if (emitted === len) {
subscriber.next(keys ? keys.reduce(function (result, key, i) {
return result[key] = values[i], result;
}, {}) : values);
}
subscriber.complete();
}
}
}));
};
for (var i = 0; i < len; i++) {
_loop(i);
}
});
} //# sourceMappingURL=forkJoin.js.map
/***/
},
/***/
"cx9U":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/single.js ***!
\*****************************************************************/
/*! exports provided: single */
/***/
function cx9U(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "single", function () {
return single;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../util/EmptyError */
"sVev");
function single(predicate) {
return function (source) {
return source.lift(new SingleOperator(predicate, source));
};
}
var SingleOperator = /*#__PURE__*/function () {
function SingleOperator(predicate, source) {
_classCallCheck(this, SingleOperator);
this.predicate = predicate;
this.source = source;
}
_createClass2(SingleOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));
}
}]);
return SingleOperator;
}();
var SingleSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_31) {
_inherits(SingleSubscriber, _Subscriber__WEBPACK_31);
var _super86 = _createSuper(SingleSubscriber);
function SingleSubscriber(destination, predicate, source) {
var _this108;
_classCallCheck(this, SingleSubscriber);
_this108 = _super86.call(this, destination);
_this108.predicate = predicate;
_this108.source = source;
_this108.seenValue = false;
_this108.index = 0;
return _this108;
}
_createClass2(SingleSubscriber, [{
key: "applySingleValue",
value: function applySingleValue(value) {
if (this.seenValue) {
this.destination.error('Sequence contains more than one element');
} else {
this.seenValue = true;
this.singleValue = value;
}
}
}, {
key: "_next",
value: function _next(value) {
var index = this.index++;
if (this.predicate) {
this.tryNext(value, index);
} else {
this.applySingleValue(value);
}
}
}, {
key: "tryNext",
value: function tryNext(value, index) {
try {
if (this.predicate(value, index, this.source)) {
this.applySingleValue(value);
}
} catch (err) {
this.destination.error(err);
}
}
}, {
key: "_complete",
value: function _complete() {
var destination = this.destination;
if (this.index > 0) {
destination.next(this.seenValue ? this.singleValue : undefined);
destination.complete();
} else {
destination.error(new _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__["EmptyError"]());
}
}
}]);
return SingleSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=single.js.map
/***/
},
/***/
"czNK":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/_object-assign.js ***!
\********************************************************/
/*! no static exports found */
/***/
function czNK(module, exports, __webpack_require__) {
"use strict"; // 19.1.2.1 Object.assign(target, source, ...)
var DESCRIPTORS = __webpack_require__(
/*! ./_descriptors */
"nh4g");
var getKeys = __webpack_require__(
/*! ./_object-keys */
"DVgA");
var gOPS = __webpack_require__(
/*! ./_object-gops */
"JiEa");
var pIE = __webpack_require__(
/*! ./_object-pie */
"UqcF");
var toObject = __webpack_require__(
/*! ./_to-object */
"S/j/");
var IObject = __webpack_require__(
/*! ./_iobject */
"Ymqv");
var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(
/*! ./_fails */
"eeVq")(function () {
var A = {};
var B = {}; // eslint-disable-next-line no-undef
var S = Symbol();
var K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) {
B[k] = k;
});
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) {
// eslint-disable-line no-unused-vars
var T = toObject(target);
var aLen = arguments.length;
var index = 1;
var getSymbols = gOPS.f;
var isEnum = pIE.f;
while (aLen > index) {
var S = IObject(arguments[index++]);
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
}
}
return T;
} : $assign;
/***/
},
/***/
"d/Gc":
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/_to-absolute-index.js ***!
\************************************************************/
/*! no static exports found */
/***/
function dGc(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(
/*! ./_to-integer */
"RYi7");
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/
},
/***/
"dkDA":
/*!**********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/materialize.js ***!
\**********************************************************************/
/*! exports provided: materialize */
/***/
function dkDA(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "materialize", function () {
return materialize;
});
/* harmony import */
var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../Subscriber */
"7o/Q");
/* harmony import */
var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../Notification */
"WMd4");
function materialize() {
return function materializeOperatorFunction(source) {
return source.lift(new MaterializeOperator());
};
}
var MaterializeOperator = /*#__PURE__*/function () {
function MaterializeOperator() {
_classCallCheck(this, MaterializeOperator);
}
_createClass2(MaterializeOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new MaterializeSubscriber(subscriber));
}
}]);
return MaterializeOperator;
}();
var MaterializeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_32) {
_inherits(MaterializeSubscriber, _Subscriber__WEBPACK_32);
var _super87 = _createSuper(MaterializeSubscriber);
function MaterializeSubscriber(destination) {
_classCallCheck(this, MaterializeSubscriber);
return _super87.call(this, destination);
}
_createClass2(MaterializeSubscriber, [{
key: "_next",
value: function _next(value) {
this.destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value));
}
}, {
key: "_error",
value: function _error(err) {
var destination = this.destination;
destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err));
destination.complete();
}
}, {
key: "_complete",
value: function _complete() {
var destination = this.destination;
destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete());
destination.complete();
}
}]);
return MaterializeSubscriber;
}(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=materialize.js.map
/***/
},
/***/
"dyZX":
/*!*************************************************!*\
!*** ./node_modules/core-js/modules/_global.js ***!
\*************************************************/
/*! no static exports found */
/***/
function dyZX(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/
},
/***/
"eIep":
/*!********************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/switchMap.js ***!
\********************************************************************/
/*! exports provided: switchMap */
/***/
function eIep(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "switchMap", function () {
return switchMap;
});
/* harmony import */
var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./map */
"lJxs");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../observable/from */
"Cfvw");
/* harmony import */
var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../innerSubscribe */
"zx2A");
function switchMap(project, resultSelector) {
if (typeof resultSelector === 'function') {
return function (source) {
return source.pipe(switchMap(function (a, i) {
return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
return resultSelector(a, b, i, ii);
}));
}));
};
}
return function (source) {
return source.lift(new SwitchMapOperator(project));
};
}
var SwitchMapOperator = /*#__PURE__*/function () {
function SwitchMapOperator(project) {
_classCallCheck(this, SwitchMapOperator);
this.project = project;
}
_createClass2(SwitchMapOperator, [{
key: "call",
value: function call(subscriber, source) {
return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));
}
}]);
return SwitchMapOperator;
}();
var SwitchMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP14) {
_inherits(SwitchMapSubscriber, _innerSubscribe__WEBP14);
var _super88 = _createSuper(SwitchMapSubscriber);
function SwitchMapSubscriber(destination, project) {
var _this109;
_classCallCheck(this, SwitchMapSubscriber);
_this109 = _super88.call(this, destination);
_this109.project = project;
_this109.index = 0;
return _this109;
}
_createClass2(SwitchMapSubscriber, [{
key: "_next",
value: function _next(value) {
var result;
var index = this.index++;
try {
result = this.project(value, index);
} catch (error) {
this.destination.error(error);
return;
}
this._innerSub(result);
}
}, {
key: "_innerSub",
value: function _innerSub(result) {
var innerSubscription = this.innerSubscription;
if (innerSubscription) {
innerSubscription.unsubscribe();
}
var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
var destination = this.destination;
destination.add(innerSubscriber);
this.innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber);
if (this.innerSubscription !== innerSubscriber) {
destination.add(this.innerSubscription);
}
}
}, {
key: "_complete",
value: function _complete() {
var innerSubscription = this.innerSubscription;
if (!innerSubscription || innerSubscription.closed) {
_get(_getPrototypeOf(SwitchMapSubscriber.prototype), "_complete", this).call(this);
}
this.unsubscribe();
}
}, {
key: "_unsubscribe",
value: function _unsubscribe() {
this.innerSubscription = undefined;
}
}, {
key: "notifyComplete",
value: function notifyComplete() {
this.innerSubscription = undefined;
if (this.isStopped) {
_get(_getPrototypeOf(SwitchMapSubscriber.prototype), "_complete", this).call(this);
}
}
}, {
key: "notifyNext",
value: function notifyNext(innerValue) {
this.destination.next(innerValue);
}
}]);
return SwitchMapSubscriber;
}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=switchMap.js.map
/***/
},
/***/
"eNwd":
/*!*************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/scheduler/animationFrame.js ***!
\*************************************************************************/
/*! exports provided: animationFrameScheduler, animationFrame */
/***/
function eNwd(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function () {
return animationFrameScheduler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "animationFrame", function () {
return animationFrame;
});
/* harmony import */
var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./AnimationFrameAction */
"Vpsf");
/* harmony import */
var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./AnimationFrameScheduler */
"znLP");
var animationFrameScheduler = new _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__["AnimationFrameScheduler"](_AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__["AnimationFrameAction"]);
var animationFrame = animationFrameScheduler; //# sourceMappingURL=animationFrame.js.map
/***/
},
/***/
"eeVq":
/*!************************************************!*\
!*** ./node_modules/core-js/modules/_fails.js ***!
\************************************************/
/*! no static exports found */
/***/
function eeVq(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
/***/
},
/***/
"elZq":
/*!******************************************************!*\
!*** ./node_modules/core-js/modules/_set-species.js ***!
\******************************************************/
/*! no static exports found */
/***/
function elZq(module, exports, __webpack_require__) {
"use strict";
var global = __webpack_require__(
/*! ./_global */
"dyZX");
var dP = __webpack_require__(
/*! ./_object-dp */
"hswa");
var DESCRIPTORS = __webpack_require__(
/*! ./_descriptors */
"nh4g");
var SPECIES = __webpack_require__(
/*! ./_wks */
"K0xU")('species');
module.exports = function (KEY) {
var C = global[KEY];
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
configurable: true,
get: function get() {
return this;
}
});
};
/***/
},
/***/
"f/aN":
/*!***************************************************************!*\
!*** ./node_modules/core-js/modules/es6.reflect.enumerate.js ***!
\***************************************************************/
/*! no static exports found */
/***/
function fAN(module, exports, __webpack_require__) {
"use strict"; // 26.1.5 Reflect.enumerate(target)
var $export = __webpack_require__(
/*! ./_export */
"XKFU");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var Enumerate = function Enumerate(iterated) {
this._t = anObject(iterated); // target
this._i = 0; // next index
var keys = this._k = []; // keys
var key;
for (key in iterated) {
keys.push(key);
}
};
__webpack_require__(
/*! ./_iter-create */
"QaDb")(Enumerate, 'Object', function () {
var that = this;
var keys = that._k;
var key;
do {
if (that._i >= keys.length) return {
value: undefined,
done: true
};
} while (!((key = keys[that._i++]) in that._t));
return {
value: key,
done: false
};
});
$export($export.S, 'Reflect', {
enumerate: function enumerate(target) {
return new Enumerate(target);
}
});
/***/
},
/***/
"f29J":
/*!*****************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/concat.js ***!
\*****************************************************************/
/*! exports provided: concat */
/***/
function f29J(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "concat", function () {
return concat;
});
/* harmony import */
var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../observable/concat */
"GyhO");
function concat() {
for (var _len20 = arguments.length, observables = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
observables[_key20] = arguments[_key20];
}
return function (source) {
return source.lift.call(Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"]).apply(void 0, [source].concat(observables)));
};
} //# sourceMappingURL=concat.js.map
/***/
},
/***/
"fFD9":
/*!************************************************************************!*\
!*** ./node_modules/rxjs/_esm2015/internal/operators/combineLatest.js ***!
\************************************************************************/
/*! exports provided: combineLatest */
/***/
function fFD9(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "combineLatest", function () {
return combineLatest;
});
/* harmony import */
var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ../util/isArray */
"DH7j");
/* harmony import */
var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ../observable/combineLatest */
"itXk");
/* harmony import */
var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../observable/from */
"Cfvw");
var none = {};
function combineLatest() {
for (var _len21 = arguments.length, observables = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
observables[_key21] = arguments[_key21];
}
var project = null;
if (typeof observables[observables.length - 1] === 'function') {
project = observables.pop();
}
if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
observables = observables[0].slice();
}
return function (source) {
return source.lift.call(Object(_observable_from__WEBPACK_IMPORTED_MODULE_2__["from"])([source].concat(_toConsumableArray(observables))), new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__["CombineLatestOperator"](project));
};
} //# sourceMappingURL=combineLatest.js.map
/***/
},
/***/
"fN/3":
/*!***************************************************************************!*\
!*** ./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js ***!
\***************************************************************************/
/*! no static exports found */
/***/
function fN3(module, exports, __webpack_require__) {
var metadata = __webpack_require__(
/*! ./_metadata */
"N6cJ");
var anObject = __webpack_require__(
/*! ./_an-object */
"y3w9");
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;
metadata.exp({
getOwnMetadataKeys: function getOwnMetadataKeys(target
/* , targetKey */
) {
return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
}
});
/***/
},
/***/
"fXoL":
/*!******************************************************************!*\
!*** ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js ***!
\******************************************************************/
/*! exports provided: ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgModuleFactoryLoader, NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, SystemJsNgModuleLoader, SystemJsNgModuleLoaderConfig, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, ViewRef, WrappedValue, asNativeElements, assertPlatform, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ɵ0, ɵALLOW_MULTIPLE_PLATFORMS, ɵAPP_ID_RANDOM_PROVIDER, ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__, ɵChangeDetectorStatus, ɵCodegenComponentFactoryResolver, ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__, ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__, ɵCompiler_compileModuleAsync__POST_R3__, ɵCompiler_compileModuleSync__POST_R3__, ɵComponentFactory, ɵConsole, ɵDEFAULT_LOCALE_ID, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵINJECTOR_IMPL__POST_R3__, ɵINJECTOR_SCOPE, ɵLifecycleHooksFeature, ɵLocaleDataIndex, ɵNG_COMP_DEF, ɵNG_DIR_DEF, ɵNG_ELEMENT_ID, ɵNG_INJ_DEF, ɵNG_MOD_DEF, ɵNG_PIPE_DEF, ɵNG_PROV_DEF, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, ɵNO_CHANGE, ɵNgModuleFactory, ɵNoopNgZone, ɵReflectionCapabilities, ɵRender3ComponentFactory, ɵRender3ComponentRef, ɵRender3NgModuleRef, ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__, ɵSWITCH_COMPILE_COMPONENT__POST_R3__, ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__, ɵSWITCH_COMPILE_INJECTABLE__POST_R3__, ɵSWITCH_COMPILE_NGMODULE__POST_R3__, ɵSWITCH_COMPILE_PIPE__POST_R3__, ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__, ɵSWITCH_IVY_ENABLED__POST_R3__, ɵSWITCH_RENDERER2_FACTORY__POST_R3__, ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__, ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__, ɵ_sanitizeHtml, ɵ_sanitizeUrl, ɵallowSanitizationBypassAndThrow, ɵand, ɵangular_packages_core_core_a, ɵangular_packages_core_core_b, ɵangular_packages_core_core_ba, ɵangular_packages_core_core_bb, ɵangular_packages_core_core_bc, ɵangular_packages_core_core_bd, ɵangular_packages_core_core_be, ɵangular_packages_core_core_bf, ɵangular_packages_core_core_bg, ɵangular_packages_core_core_bh, ɵangular_packages_core_core_bi, ɵangular_packages_core_core_bj, ɵangular_packages_core_core_bl, ɵangular_packages_core_core_bm, ɵangular_packages_core_core_bn, ɵangular_packages_core_core_bo, ɵangular_packages_core_core_bp, ɵangular_packages_core_core_bq, ɵangular_packages_core_core_br, ɵangular_packages_core_core_bs, ɵangular_packages_core_core_bv, ɵangular_packages_core_core_bw, ɵangular_packages_core_core_bx, ɵangular_packages_core_core_bz, ɵangular_packages_core_core_c, ɵangular_packages_core_core_cb, ɵangular_packages_core_core_cc, ɵangular_packages_core_core_d, ɵangular_packages_core_core_e, ɵangular_packages_core_core_f, ɵangular_packages_core_core_g, ɵangular_packages_core_core_h, ɵangular_packages_core_core_i, ɵangular_packages_core_core_j, ɵangular_packages_core_core_k, ɵangular_packages_core_core_l, ɵangular_packages_core_core_m, ɵangular_packages_core_core_n, ɵangular_packages_core_core_o, ɵangular_packages_core_core_p, ɵangular_packages_core_core_q, ɵangular_packages_core_core_r, ɵangular_packages_core_core_s, ɵangular_packages_core_core_t, ɵangular_packages_core_core_u, ɵangular_packages_core_core_v, ɵangular_packages_core_core_w, ɵangular_packages_core_core_x, ɵangular_packages_core_core_y, ɵangular_packages_core_core_z, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustResourceUrl, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustUrl, ɵccf, ɵclearOverrides, ɵclearResolutionOfComponentResourcesQueue, ɵcmf, ɵcompileComponent, ɵcompileDirective, ɵcompileNgModule, ɵcompileNgModuleDefs, ɵcompileNgModuleFactory__POST_R3__, ɵcompilePipe, ɵcreateInjector, ɵcrt, ɵdefaultIterableDiffers, ɵdefaultKeyValueDiffers, ɵdetectChanges, ɵdevModeEqual, ɵdid, ɵeld, ɵfindLocaleData, ɵflushModuleScopingQueueAsMuchAsPossible, ɵgetComponentViewDefinitionFactory, ɵgetDebugNodeR2, ɵgetDebugNode__POST_R3__, ɵgetDirectives, ɵgetHostElement, ɵgetInjectableDef, ɵgetLContext, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵgetModuleFactory__POST_R3__, ɵgetSanitizationBypassType, ɵglobal, ɵinitServicesIfNeeded, ɵinlineInterpolate, ɵinterpolate, ɵisBoundToModule__POST_R3__, ɵisDefaultChangeDetectionStrategy, ɵisListLikeIterable, ɵisObservable, ɵisPromise, ɵisSubscribable, ɵivyEnabled, ɵmakeDecorator, ɵmarkDirty, ɵmod, ɵmpd, ɵncd, ɵnoSideEffects, ɵnov, ɵoverrideComponentView, ɵoverrideProvider, ɵpad, ɵpatchComponentDefWithScope, ɵpid, ɵpod, ɵppd, ɵprd, ɵpublishDefaultGlobalUtils, ɵpublishGlobalUtil, ɵqud, ɵregisterLocaleData, ɵregisterModuleFactory, ɵregisterNgModuleType, ɵrenderComponent, ɵresetCompiledComponents, ɵresetJitOptions, ɵresolveComponentResources, ɵsetClassMetadata, ɵsetCurrentInjector, ɵsetDocument, ɵsetLocaleId, ɵstore, ɵstringify, ɵted, ɵtransitiveScopesFor, ɵunregisterLocaleData, ɵunv, ɵunwrapSafeValue, ɵvid, ɵwhenRendered, ɵɵCopyDefinitionFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetFactoryOf, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinjectPipeChangeDetectorRef, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵviewQuery */
/***/
function fXoL(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ANALYZE_FOR_ENTRY_COMPONENTS", function () {
return ANALYZE_FOR_ENTRY_COMPONENTS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "APP_BOOTSTRAP_LISTENER", function () {
return APP_BOOTSTRAP_LISTENER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "APP_ID", function () {
return APP_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "APP_INITIALIZER", function () {
return APP_INITIALIZER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ApplicationInitStatus", function () {
return ApplicationInitStatus;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ApplicationModule", function () {
return ApplicationModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ApplicationRef", function () {
return ApplicationRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Attribute", function () {
return Attribute;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "COMPILER_OPTIONS", function () {
return COMPILER_OPTIONS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "CUSTOM_ELEMENTS_SCHEMA", function () {
return CUSTOM_ELEMENTS_SCHEMA;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ChangeDetectionStrategy", function () {
return ChangeDetectionStrategy;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ChangeDetectorRef", function () {
return ChangeDetectorRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Compiler", function () {
return Compiler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "CompilerFactory", function () {
return CompilerFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Component", function () {
return Component;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ComponentFactory", function () {
return ComponentFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ComponentFactoryResolver", function () {
return ComponentFactoryResolver;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ComponentRef", function () {
return ComponentRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ContentChild", function () {
return ContentChild;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ContentChildren", function () {
return ContentChildren;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "DEFAULT_CURRENCY_CODE", function () {
return DEFAULT_CURRENCY_CODE;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "DebugElement", function () {
return DebugElement;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "DebugEventListener", function () {
return DebugEventListener;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "DebugNode", function () {
return DebugNode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "DefaultIterableDiffer", function () {
return DefaultIterableDiffer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Directive", function () {
return Directive;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ElementRef", function () {
return ElementRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "EmbeddedViewRef", function () {
return EmbeddedViewRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ErrorHandler", function () {
return ErrorHandler;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "EventEmitter", function () {
return EventEmitter;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Host", function () {
return Host;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "HostBinding", function () {
return HostBinding;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "HostListener", function () {
return HostListener;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "INJECTOR", function () {
return INJECTOR$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Inject", function () {
return Inject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "InjectFlags", function () {
return InjectFlags;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Injectable", function () {
return Injectable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "InjectionToken", function () {
return InjectionToken;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Injector", function () {
return Injector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Input", function () {
return Input;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "IterableDiffers", function () {
return IterableDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "KeyValueDiffers", function () {
return KeyValueDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "LOCALE_ID", function () {
return LOCALE_ID$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MissingTranslationStrategy", function () {
return MissingTranslationStrategy;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ModuleWithComponentFactories", function () {
return ModuleWithComponentFactories;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NO_ERRORS_SCHEMA", function () {
return NO_ERRORS_SCHEMA;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgModule", function () {
return NgModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgModuleFactory", function () {
return NgModuleFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgModuleFactoryLoader", function () {
return NgModuleFactoryLoader;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgModuleRef", function () {
return NgModuleRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgProbeToken", function () {
return NgProbeToken;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "NgZone", function () {
return NgZone;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Optional", function () {
return Optional;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Output", function () {
return Output;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PACKAGE_ROOT_URL", function () {
return PACKAGE_ROOT_URL;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PLATFORM_ID", function () {
return PLATFORM_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PLATFORM_INITIALIZER", function () {
return PLATFORM_INITIALIZER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Pipe", function () {
return Pipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PlatformRef", function () {
return PlatformRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Query", function () {
return Query;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "QueryList", function () {
return QueryList;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ReflectiveInjector", function () {
return ReflectiveInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ReflectiveKey", function () {
return ReflectiveKey;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Renderer2", function () {
return Renderer2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "RendererFactory2", function () {
return RendererFactory2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "RendererStyleFlags2", function () {
return RendererStyleFlags2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ResolvedReflectiveFactory", function () {
return ResolvedReflectiveFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Sanitizer", function () {
return Sanitizer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SecurityContext", function () {
return SecurityContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Self", function () {
return Self;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SimpleChange", function () {
return SimpleChange;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SkipSelf", function () {
return SkipSelf;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoader", function () {
return SystemJsNgModuleLoader;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoaderConfig", function () {
return SystemJsNgModuleLoaderConfig;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TRANSLATIONS", function () {
return TRANSLATIONS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TRANSLATIONS_FORMAT", function () {
return TRANSLATIONS_FORMAT;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TemplateRef", function () {
return TemplateRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Testability", function () {
return Testability;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "TestabilityRegistry", function () {
return TestabilityRegistry;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Type", function () {
return Type;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "VERSION", function () {
return VERSION;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "Version", function () {
return Version;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ViewChild", function () {
return ViewChild;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ViewChildren", function () {
return ViewChildren;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ViewContainerRef", function () {
return ViewContainerRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ViewEncapsulation", function () {
return ViewEncapsulation;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ViewRef", function () {
return ViewRef$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "WrappedValue", function () {
return WrappedValue;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "asNativeElements", function () {
return asNativeElements;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "assertPlatform", function () {
return assertPlatform;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "createPlatform", function () {
return createPlatform;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "createPlatformFactory", function () {
return createPlatformFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "defineInjectable", function () {
return defineInjectable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "destroyPlatform", function () {
return destroyPlatform;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "enableProdMode", function () {
return enableProdMode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "forwardRef", function () {
return forwardRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "getDebugNode", function () {
return getDebugNode$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "getModuleFactory", function () {
return getModuleFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "getPlatform", function () {
return getPlatform;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "inject", function () {
return inject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "isDevMode", function () {
return isDevMode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "platformCore", function () {
return platformCore;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "resolveForwardRef", function () {
return resolveForwardRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "setTestabilityGetter", function () {
return setTestabilityGetter;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵ0", function () {
return ɵ0$3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵALLOW_MULTIPLE_PLATFORMS", function () {
return ALLOW_MULTIPLE_PLATFORMS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵAPP_ID_RANDOM_PROVIDER", function () {
return APP_ID_RANDOM_PROVIDER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__", function () {
return CREATE_ATTRIBUTE_DECORATOR__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵChangeDetectorStatus", function () {
return ChangeDetectorStatus;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCodegenComponentFactoryResolver", function () {
return CodegenComponentFactoryResolver;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__", function () {
return Compiler_compileModuleAndAllComponentsAsync__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__", function () {
return Compiler_compileModuleAndAllComponentsSync__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAsync__POST_R3__", function () {
return Compiler_compileModuleAsync__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleSync__POST_R3__", function () {
return Compiler_compileModuleSync__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵComponentFactory", function () {
return ComponentFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵConsole", function () {
return Console;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵDEFAULT_LOCALE_ID", function () {
return DEFAULT_LOCALE_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵEMPTY_ARRAY", function () {
return EMPTY_ARRAY$4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵEMPTY_MAP", function () {
return EMPTY_MAP;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵINJECTOR_IMPL__POST_R3__", function () {
return INJECTOR_IMPL__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵINJECTOR_SCOPE", function () {
return INJECTOR_SCOPE;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵLifecycleHooksFeature", function () {
return LifecycleHooksFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵLocaleDataIndex", function () {
return LocaleDataIndex;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_COMP_DEF", function () {
return NG_COMP_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_DIR_DEF", function () {
return NG_DIR_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_ELEMENT_ID", function () {
return NG_ELEMENT_ID;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_INJ_DEF", function () {
return NG_INJ_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_MOD_DEF", function () {
return NG_MOD_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_PIPE_DEF", function () {
return NG_PIPE_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNG_PROV_DEF", function () {
return NG_PROV_DEF;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", function () {
return NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNO_CHANGE", function () {
return NO_CHANGE;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNgModuleFactory", function () {
return NgModuleFactory$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵNoopNgZone", function () {
return NoopNgZone;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵReflectionCapabilities", function () {
return ReflectionCapabilities;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵRender3ComponentFactory", function () {
return ComponentFactory$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵRender3ComponentRef", function () {
return ComponentRef$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵRender3NgModuleRef", function () {
return NgModuleRef$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__", function () {
return SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_COMPONENT__POST_R3__", function () {
return SWITCH_COMPILE_COMPONENT__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__", function () {
return SWITCH_COMPILE_DIRECTIVE__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_INJECTABLE__POST_R3__", function () {
return SWITCH_COMPILE_INJECTABLE__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_NGMODULE__POST_R3__", function () {
return SWITCH_COMPILE_NGMODULE__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_PIPE__POST_R3__", function () {
return SWITCH_COMPILE_PIPE__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__", function () {
return SWITCH_ELEMENT_REF_FACTORY__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_IVY_ENABLED__POST_R3__", function () {
return SWITCH_IVY_ENABLED__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_RENDERER2_FACTORY__POST_R3__", function () {
return SWITCH_RENDERER2_FACTORY__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__", function () {
return SWITCH_TEMPLATE_REF_FACTORY__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__", function () {
return SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵ_sanitizeHtml", function () {
return _sanitizeHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵ_sanitizeUrl", function () {
return _sanitizeUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵallowSanitizationBypassAndThrow", function () {
return allowSanitizationBypassAndThrow;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵand", function () {
return anchorDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_a", function () {
return isForwardRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_b", function () {
return injectInjectorOnly;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_ba", function () {
return zoneSchedulerFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bb", function () {
return USD_CURRENCY_CODE;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bc", function () {
return _def;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bd", function () {
return DebugContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_be", function () {
return NgOnChangesFeatureImpl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bf", function () {
return SCHEDULER;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bg", function () {
return injectAttributeImpl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bh", function () {
return getLView;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bi", function () {
return getBindingRoot;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bj", function () {
return nextContextImpl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bl", function () {
return pureFunction1Internal;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bm", function () {
return pureFunction2Internal;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bn", function () {
return pureFunction3Internal;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bo", function () {
return pureFunction4Internal;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bp", function () {
return pureFunctionVInternal;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bq", function () {
return getUrlSanitizer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_br", function () {
return makePropDecorator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bs", function () {
return makeParamDecorator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bv", function () {
return getClosureSafeProperty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bw", function () {
return NullInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bx", function () {
return getInjectImplementation;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bz", function () {
return getNativeByTNode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_c", function () {
return attachInjectFlag;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_cb", function () {
return getRootContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_cc", function () {
return i18nPostprocess;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_d", function () {
return ReflectiveInjector_;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_e", function () {
return ReflectiveDependency;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_f", function () {
return resolveReflectiveProviders;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_g", function () {
return _appIdRandomProviderFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_h", function () {
return injectRenderer2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_i", function () {
return injectElementRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_j", function () {
return createElementRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_k", function () {
return getModuleFactory__PRE_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_l", function () {
return injectTemplateRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_m", function () {
return createTemplateRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_n", function () {
return injectViewContainerRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_o", function () {
return DebugNode__PRE_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_p", function () {
return DebugElement__PRE_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_q", function () {
return getDebugNodeR2__PRE_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_r", function () {
return injectChangeDetectorRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_s", function () {
return DefaultIterableDifferFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_t", function () {
return DefaultKeyValueDifferFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_u", function () {
return defaultIterableDiffersFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_v", function () {
return defaultKeyValueDiffersFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_w", function () {
return _iterableDiffersFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_x", function () {
return _keyValueDiffersFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_y", function () {
return _localeFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_z", function () {
return APPLICATION_MODULE_PROVIDERS;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustHtml", function () {
return bypassSanitizationTrustHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustResourceUrl", function () {
return bypassSanitizationTrustResourceUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustScript", function () {
return bypassSanitizationTrustScript;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustStyle", function () {
return bypassSanitizationTrustStyle;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustUrl", function () {
return bypassSanitizationTrustUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵccf", function () {
return createComponentFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵclearOverrides", function () {
return clearOverrides;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵclearResolutionOfComponentResourcesQueue", function () {
return clearResolutionOfComponentResourcesQueue;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcmf", function () {
return createNgModuleFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompileComponent", function () {
return compileComponent;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompileDirective", function () {
return compileDirective;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompileNgModule", function () {
return compileNgModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleDefs", function () {
return compileNgModuleDefs;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleFactory__POST_R3__", function () {
return compileNgModuleFactory__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcompilePipe", function () {
return compilePipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcreateInjector", function () {
return createInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵcrt", function () {
return createRendererType2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵdefaultIterableDiffers", function () {
return defaultIterableDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵdefaultKeyValueDiffers", function () {
return defaultKeyValueDiffers;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵdetectChanges", function () {
return detectChanges;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵdevModeEqual", function () {
return devModeEqual;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵdid", function () {
return directiveDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵeld", function () {
return elementDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵfindLocaleData", function () {
return findLocaleData;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵflushModuleScopingQueueAsMuchAsPossible", function () {
return flushModuleScopingQueueAsMuchAsPossible;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetComponentViewDefinitionFactory", function () {
return getComponentViewDefinitionFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetDebugNodeR2", function () {
return getDebugNodeR2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetDebugNode__POST_R3__", function () {
return getDebugNode__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetDirectives", function () {
return getDirectives;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetHostElement", function () {
return getHostElement;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetInjectableDef", function () {
return getInjectableDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetLContext", function () {
return getLContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetLocaleCurrencyCode", function () {
return getLocaleCurrencyCode;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetLocalePluralCase", function () {
return getLocalePluralCase;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetModuleFactory__POST_R3__", function () {
return getModuleFactory__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵgetSanitizationBypassType", function () {
return getSanitizationBypassType;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵglobal", function () {
return _global;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵinitServicesIfNeeded", function () {
return initServicesIfNeeded;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵinlineInterpolate", function () {
return inlineInterpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵinterpolate", function () {
return interpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisBoundToModule__POST_R3__", function () {
return isBoundToModule__POST_R3__;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisDefaultChangeDetectionStrategy", function () {
return isDefaultChangeDetectionStrategy;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisListLikeIterable", function () {
return isListLikeIterable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisObservable", function () {
return isObservable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisPromise", function () {
return isPromise;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵisSubscribable", function () {
return isSubscribable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵivyEnabled", function () {
return ivyEnabled;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵmakeDecorator", function () {
return makeDecorator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵmarkDirty", function () {
return markDirty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵmod", function () {
return moduleDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵmpd", function () {
return moduleProvideDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵncd", function () {
return ngContentDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵnoSideEffects", function () {
return noSideEffects;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵnov", function () {
return nodeValue;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵoverrideComponentView", function () {
return overrideComponentView;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵoverrideProvider", function () {
return overrideProvider;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpad", function () {
return pureArrayDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpatchComponentDefWithScope", function () {
return patchComponentDefWithScope;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpid", function () {
return pipeDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpod", function () {
return pureObjectDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵppd", function () {
return purePipeDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵprd", function () {
return providerDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpublishDefaultGlobalUtils", function () {
return publishDefaultGlobalUtils;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵpublishGlobalUtil", function () {
return publishGlobalUtil;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵqud", function () {
return queryDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵregisterLocaleData", function () {
return registerLocaleData;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵregisterModuleFactory", function () {
return registerModuleFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵregisterNgModuleType", function () {
return registerNgModuleType;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵrenderComponent", function () {
return renderComponent$1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵresetCompiledComponents", function () {
return resetCompiledComponents;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵresetJitOptions", function () {
return resetJitOptions;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵresolveComponentResources", function () {
return resolveComponentResources;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵsetClassMetadata", function () {
return setClassMetadata;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵsetCurrentInjector", function () {
return setCurrentInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵsetDocument", function () {
return setDocument;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵsetLocaleId", function () {
return setLocaleId;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵstore", function () {
return store;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵstringify", function () {
return stringify;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵted", function () {
return textDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵtransitiveScopesFor", function () {
return transitiveScopesFor;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵunregisterLocaleData", function () {
return unregisterAllLocaleData;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵunv", function () {
return unwrapValue;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵunwrapSafeValue", function () {
return unwrapSafeValue;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵvid", function () {
return viewDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵwhenRendered", function () {
return whenRendered;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵCopyDefinitionFeature", function () {
return ɵɵCopyDefinitionFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵInheritDefinitionFeature", function () {
return ɵɵInheritDefinitionFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵNgOnChangesFeature", function () {
return ɵɵNgOnChangesFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵProvidersFeature", function () {
return ɵɵProvidersFeature;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵadvance", function () {
return ɵɵadvance;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattribute", function () {
return ɵɵattribute;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate1", function () {
return ɵɵattributeInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate2", function () {
return ɵɵattributeInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate3", function () {
return ɵɵattributeInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate4", function () {
return ɵɵattributeInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate5", function () {
return ɵɵattributeInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate6", function () {
return ɵɵattributeInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate7", function () {
return ɵɵattributeInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate8", function () {
return ɵɵattributeInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolateV", function () {
return ɵɵattributeInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMap", function () {
return ɵɵclassMap;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate1", function () {
return ɵɵclassMapInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate2", function () {
return ɵɵclassMapInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate3", function () {
return ɵɵclassMapInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate4", function () {
return ɵɵclassMapInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate5", function () {
return ɵɵclassMapInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate6", function () {
return ɵɵclassMapInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate7", function () {
return ɵɵclassMapInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate8", function () {
return ɵɵclassMapInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolateV", function () {
return ɵɵclassMapInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵclassProp", function () {
return ɵɵclassProp;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵcontentQuery", function () {
return ɵɵcontentQuery;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefineComponent", function () {
return ɵɵdefineComponent;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefineDirective", function () {
return ɵɵdefineDirective;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefineInjectable", function () {
return ɵɵdefineInjectable;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefineInjector", function () {
return ɵɵdefineInjector;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefineNgModule", function () {
return ɵɵdefineNgModule;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdefinePipe", function () {
return ɵɵdefinePipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdirectiveInject", function () {
return ɵɵdirectiveInject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵdisableBindings", function () {
return ɵɵdisableBindings;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelement", function () {
return ɵɵelement;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelementContainer", function () {
return ɵɵelementContainer;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelementContainerEnd", function () {
return ɵɵelementContainerEnd;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelementContainerStart", function () {
return ɵɵelementContainerStart;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelementEnd", function () {
return ɵɵelementEnd;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵelementStart", function () {
return ɵɵelementStart;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵenableBindings", function () {
return ɵɵenableBindings;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵgetCurrentView", function () {
return ɵɵgetCurrentView;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵgetFactoryOf", function () {
return ɵɵgetFactoryOf;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵgetInheritedFactory", function () {
return ɵɵgetInheritedFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵhostProperty", function () {
return ɵɵhostProperty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18n", function () {
return ɵɵi18n;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nApply", function () {
return ɵɵi18nApply;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nAttributes", function () {
return ɵɵi18nAttributes;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nEnd", function () {
return ɵɵi18nEnd;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nExp", function () {
return ɵɵi18nExp;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nPostprocess", function () {
return ɵɵi18nPostprocess;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵi18nStart", function () {
return ɵɵi18nStart;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵinject", function () {
return ɵɵinject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵinjectAttribute", function () {
return ɵɵinjectAttribute;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵinjectPipeChangeDetectorRef", function () {
return ɵɵinjectPipeChangeDetectorRef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactory", function () {
return ɵɵinvalidFactory;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactoryDep", function () {
return ɵɵinvalidFactoryDep;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵlistener", function () {
return ɵɵlistener;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵloadQuery", function () {
return ɵɵloadQuery;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵnamespaceHTML", function () {
return ɵɵnamespaceHTML;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵnamespaceMathML", function () {
return ɵɵnamespaceMathML;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵnamespaceSVG", function () {
return ɵɵnamespaceSVG;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵnextContext", function () {
return ɵɵnextContext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵngDeclareComponent", function () {
return ɵɵngDeclareComponent;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵngDeclareDirective", function () {
return ɵɵngDeclareDirective;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipe", function () {
return ɵɵpipe;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipeBind1", function () {
return ɵɵpipeBind1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipeBind2", function () {
return ɵɵpipeBind2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipeBind3", function () {
return ɵɵpipeBind3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipeBind4", function () {
return ɵɵpipeBind4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpipeBindV", function () {
return ɵɵpipeBindV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵprojection", function () {
return ɵɵprojection;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵprojectionDef", function () {
return ɵɵprojectionDef;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵproperty", function () {
return ɵɵproperty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate", function () {
return ɵɵpropertyInterpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate1", function () {
return ɵɵpropertyInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate2", function () {
return ɵɵpropertyInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate3", function () {
return ɵɵpropertyInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate4", function () {
return ɵɵpropertyInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate5", function () {
return ɵɵpropertyInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate6", function () {
return ɵɵpropertyInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate7", function () {
return ɵɵpropertyInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate8", function () {
return ɵɵpropertyInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolateV", function () {
return ɵɵpropertyInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction0", function () {
return ɵɵpureFunction0;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction1", function () {
return ɵɵpureFunction1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction2", function () {
return ɵɵpureFunction2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction3", function () {
return ɵɵpureFunction3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction4", function () {
return ɵɵpureFunction4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction5", function () {
return ɵɵpureFunction5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction6", function () {
return ɵɵpureFunction6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction7", function () {
return ɵɵpureFunction7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunction8", function () {
return ɵɵpureFunction8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵpureFunctionV", function () {
return ɵɵpureFunctionV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵqueryRefresh", function () {
return ɵɵqueryRefresh;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵreference", function () {
return ɵɵreference;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵresolveBody", function () {
return ɵɵresolveBody;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵresolveDocument", function () {
return ɵɵresolveDocument;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵresolveWindow", function () {
return ɵɵresolveWindow;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵrestoreView", function () {
return ɵɵrestoreView;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeHtml", function () {
return ɵɵsanitizeHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeResourceUrl", function () {
return ɵɵsanitizeResourceUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeScript", function () {
return ɵɵsanitizeScript;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeStyle", function () {
return ɵɵsanitizeStyle;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrl", function () {
return ɵɵsanitizeUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrlOrResourceUrl", function () {
return ɵɵsanitizeUrlOrResourceUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsetComponentScope", function () {
return ɵɵsetComponentScope;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsetNgModuleScope", function () {
return ɵɵsetNgModuleScope;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMap", function () {
return ɵɵstyleMap;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate1", function () {
return ɵɵstyleMapInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate2", function () {
return ɵɵstyleMapInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate3", function () {
return ɵɵstyleMapInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate4", function () {
return ɵɵstyleMapInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate5", function () {
return ɵɵstyleMapInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate6", function () {
return ɵɵstyleMapInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate7", function () {
return ɵɵstyleMapInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate8", function () {
return ɵɵstyleMapInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolateV", function () {
return ɵɵstyleMapInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstyleProp", function () {
return ɵɵstyleProp;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate1", function () {
return ɵɵstylePropInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate2", function () {
return ɵɵstylePropInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate3", function () {
return ɵɵstylePropInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate4", function () {
return ɵɵstylePropInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate5", function () {
return ɵɵstylePropInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate6", function () {
return ɵɵstylePropInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate7", function () {
return ɵɵstylePropInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate8", function () {
return ɵɵstylePropInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolateV", function () {
return ɵɵstylePropInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostListener", function () {
return ɵɵsyntheticHostListener;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostProperty", function () {
return ɵɵsyntheticHostProperty;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtemplate", function () {
return ɵɵtemplate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtemplateRefExtractor", function () {
return ɵɵtemplateRefExtractor;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtext", function () {
return ɵɵtext;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate", function () {
return ɵɵtextInterpolate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate1", function () {
return ɵɵtextInterpolate1;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate2", function () {
return ɵɵtextInterpolate2;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate3", function () {
return ɵɵtextInterpolate3;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate4", function () {
return ɵɵtextInterpolate4;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate5", function () {
return ɵɵtextInterpolate5;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate6", function () {
return ɵɵtextInterpolate6;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate7", function () {
return ɵɵtextInterpolate7;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate8", function () {
return ɵɵtextInterpolate8;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolateV", function () {
return ɵɵtextInterpolateV;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantHtml", function () {
return ɵɵtrustConstantHtml;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantResourceUrl", function () {
return ɵɵtrustConstantResourceUrl;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ɵɵviewQuery", function () {
return ɵɵviewQuery;
});
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! rxjs */
"qCKp");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! rxjs/operators */
"kU1M");
/**
* @license Angular v11.1.2
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function getClosureSafeProperty(objWithPropertyToExtract) {
for (var key in objWithPropertyToExtract) {
if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
return key;
}
}
throw Error('Could not find renamed property on target object.');
}
/**
* Sets properties on a target object from a source object, but only if
* the property doesn't already exist on the target object.
* @param target The target to set properties on
* @param source The source of the property keys and values to set
*/
function fillProperties(target, source) {
for (var key in source) {
if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
target[key] = source[key];
}
}
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function stringify(token) {
if (typeof token === 'string') {
return token;
}
if (Array.isArray(token)) {
return '[' + token.map(stringify).join(', ') + ']';
}
if (token == null) {
return '' + token;
}
if (token.overriddenName) {
return "".concat(token.overriddenName);
}
if (token.name) {
return "".concat(token.name);
}
var res = token.toString();
if (res == null) {
return '' + res;
}
var newLineIndex = res.indexOf('\n');
return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
}
/**
* Concatenates two strings with separator, allocating new strings only when necessary.
*
* @param before before string.
* @param separator separator string.
* @param after after string.
* @returns concatenated string.
*/
function concatStringsWithSpace(before, after) {
return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __forward_ref__ = getClosureSafeProperty({
__forward_ref__: getClosureSafeProperty
});
/**
* Allows to refer to references which are not yet defined.
*
* For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
* DI is declared, but not yet defined. It is also used when the `token` which we use when creating
* a query is not yet defined.
*
* @usageNotes
* ### Example
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
* @publicApi
*/
function forwardRef(forwardRefFn) {
forwardRefFn.__forward_ref__ = forwardRef;
forwardRefFn.toString = function () {
return stringify(this());
};
return forwardRefFn;
}
/**
* Lazily retrieves the reference value from a forwardRef.
*
* Acts as the identity function when given a non-forward-ref value.
*
* @usageNotes
* ### Example
*
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
*
* @see `forwardRef`
* @publicApi
*/
function resolveForwardRef(type) {
return isForwardRef(type) ? type() : type;
}
/** Checks whether a function is wrapped by a `forwardRef`. */
function isForwardRef(fn) {
return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function assertNumber(actual, msg) {
if (!(typeof actual === 'number')) {
throwError(msg, typeof actual, 'number', '===');
}
}
function assertNumberInRange(actual, minInclusive, maxInclusive) {
assertNumber(actual, 'Expected a number');
assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');
assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');
}
function assertString(actual, msg) {
if (!(typeof actual === 'string')) {
throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
}
}
function assertFunction(actual, msg) {
if (!(typeof actual === 'function')) {
throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');
}
}
function assertEqual(actual, expected, msg) {
if (!(actual == expected)) {
throwError(msg, actual, expected, '==');
}
}
function assertNotEqual(actual, expected, msg) {
if (!(actual != expected)) {
throwError(msg, actual, expected, '!=');
}
}
function assertSame(actual, expected, msg) {
if (!(actual === expected)) {
throwError(msg, actual, expected, '===');
}
}
function assertNotSame(actual, expected, msg) {
if (!(actual !== expected)) {
throwError(msg, actual, expected, '!==');
}
}
function assertLessThan(actual, expected, msg) {
if (!(actual < expected)) {
throwError(msg, actual, expected, '<');
}
}
function assertLessThanOrEqual(actual, expected, msg) {
if (!(actual <= expected)) {
throwError(msg, actual, expected, '<=');
}
}
function assertGreaterThan(actual, expected, msg) {
if (!(actual > expected)) {
throwError(msg, actual, expected, '>');
}
}
function assertGreaterThanOrEqual(actual, expected, msg) {
if (!(actual >= expected)) {
throwError(msg, actual, expected, '>=');
}
}
function assertNotDefined(actual, msg) {
if (actual != null) {
throwError(msg, actual, null, '==');
}
}
function assertDefined(actual, msg) {
if (actual == null) {
throwError(msg, actual, null, '!=');
}
}
function throwError(msg, actual, expected, comparison) {
throw new Error("ASSERTION ERROR: ".concat(msg) + (comparison == null ? '' : " [Expected=> ".concat(expected, " ").concat(comparison, " ").concat(actual, " <=Actual]")));
}
function assertDomNode(node) {
// If we're in a worker, `Node` will not be defined.
if (!(typeof Node !== 'undefined' && node instanceof Node) && !(typeof node === 'object' && node != null && node.constructor.name === 'WebWorkerRenderNode')) {
throwError("The provided value must be an instance of a DOM Node but got ".concat(stringify(node)));
}
}
function assertIndexInRange(arr, index) {
assertDefined(arr, 'Array must be defined.');
var maxLen = arr.length;
if (index < 0 || index >= maxLen) {
throwError("Index expected to be less than ".concat(maxLen, " but got ").concat(index));
}
}
function assertOneOf(value) {
for (var _len22 = arguments.length, validValues = new Array(_len22 > 1 ? _len22 - 1 : 0), _key22 = 1; _key22 < _len22; _key22++) {
validValues[_key22 - 1] = arguments[_key22];
}
if (validValues.indexOf(value) !== -1) return true;
throwError("Expected value to be one of ".concat(JSON.stringify(validValues), " but was ").concat(JSON.stringify(value), "."));
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Construct an `InjectableDef` which defines how a token will be constructed by the DI system, and
* in which injectors (if any) it will be available.
*
* This should be assigned to a static `ɵprov` field on a type, which will then be an
* `InjectableType`.
*
* Options:
* * `providedIn` determines which injectors will include the injectable, by either associating it
* with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
* provided in the `'root'` injector, which will be the application-level injector in most apps.
* * `factory` gives the zero argument function which will create an instance of the injectable.
* The factory can call `inject` to access the `Injector` and request injection of dependencies.
*
* @codeGenApi
* @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.
*/
function ɵɵdefineInjectable(opts) {
return {
token: opts.token,
providedIn: opts.providedIn || null,
factory: opts.factory,
value: undefined
};
}
/**
* @deprecated in v8, delete after v10. This API should be used only by generated code, and that
* code should now use ɵɵdefineInjectable instead.
* @publicApi
*/
var defineInjectable = ɵɵdefineInjectable;
/**
* Construct an `InjectorDef` which configures an injector.
*
* This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
* `InjectorType`.
*
* Options:
*
* * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
* create the type must be provided. If that factory function needs to inject arguments, it can
* use the `inject` function.
* * `providers`: an optional array of providers to add to the injector. Each provider must
* either have a factory or point to a type which has a `ɵprov` static property (the
* type must be an `InjectableType`).
* * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
* whose providers will also be added to the injector. Locally provided types will override
* providers from imports.
*
* @codeGenApi
*/
function ɵɵdefineInjector(options) {
return {
factory: options.factory,
providers: options.providers || [],
imports: options.imports || []
};
}
/**
* Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
* inherited value.
*
* @param type A type which may have its own (non-inherited) `ɵprov`.
*/
function getInjectableDef(type) {
return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);
}
/**
* Return definition only if it is defined directly on `type` and is not inherited from a base
* class of `type`.
*/
function getOwnDefinition(type, field) {
return type.hasOwnProperty(field) ? type[field] : null;
}
/**
* Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.
*
* @param type A type which may have `ɵprov`, via inheritance.
*
* @deprecated Will be removed in a future version of Angular, where an error will occur in the
* scenario if we find the `ɵprov` on an ancestor only.
*/
function getInheritedInjectableDef(type) {
var def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
if (def) {
var typeName = getTypeName(type); // TODO(FW-1307): Re-add ngDevMode when closure can handle it
// ngDevMode &&
console.warn("DEPRECATED: DI is instantiating a token \"".concat(typeName, "\" that inherits its @Injectable decorator but does not provide one itself.\n") + "This will become an error in a future version of Angular. Please add @Injectable() to the \"".concat(typeName, "\" class."));
return def;
} else {
return null;
}
}
/** Gets the name of a type, accounting for some cross-browser differences. */
function getTypeName(type) {
// `Function.prototype.name` behaves differently between IE and other browsers. In most browsers
// it'll always return the name of the function itself, no matter how many other functions it
// inherits from. On IE the function doesn't have its own `name` property, but it takes it from
// the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most
// browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around
// the issue by converting the function to a string and parsing its name out that way via a regex.
if (type.hasOwnProperty('name')) {
return type.name;
}
var match = ('' + type).match(/^function\s*([^\s(]+)/);
return match === null ? '' : match[1];
}
/**
* Read the injector def type in a way which is immune to accidentally reading inherited value.
*
* @param type type which may have an injector def (`ɵinj`)
*/
function getInjectorDef(type) {
return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;
}
var NG_PROV_DEF = getClosureSafeProperty({
ɵprov: getClosureSafeProperty
});
var NG_INJ_DEF = getClosureSafeProperty({
ɵinj: getClosureSafeProperty
}); // We need to keep these around so we can read off old defs if new defs are unavailable
var NG_INJECTABLE_DEF = getClosureSafeProperty({
ngInjectableDef: getClosureSafeProperty
});
var NG_INJECTOR_DEF = getClosureSafeProperty({
ngInjectorDef: getClosureSafeProperty
});
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Injection flags for DI.
*
* @publicApi
*/
var InjectFlags;
(function (InjectFlags) {
// TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer
// writes exports of it into ngfactory files.
/** Check self and check parent injector if needed */
InjectFlags[InjectFlags["Default"] = 0] = "Default";
/**
* Specifies that an injector should retrieve a dependency from any injector until reaching the
* host element of the current component. (Only used with Element Injector)
*/
InjectFlags[InjectFlags["Host"] = 1] = "Host";
/** Don't ascend to ancestors of the node requesting injection. */
InjectFlags[InjectFlags["Self"] = 2] = "Self";
/** Skip the node that is requesting injection. */
InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf";
/** Inject `defaultValue` instead if token not found. */
InjectFlags[InjectFlags["Optional"] = 8] = "Optional";
})(InjectFlags || (InjectFlags = {}));
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Current implementation of inject.
*
* By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed
* to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this
* way for two reasons:
* 1. `Injector` should not depend on ivy logic.
* 2. To maintain tree shake-ability we don't want to bring in unnecessary code.
*/
var _injectImplementation;
function getInjectImplementation() {
return _injectImplementation;
}
/**
* Sets the current inject implementation.
*/
function setInjectImplementation(impl) {
var previous = _injectImplementation;
_injectImplementation = impl;
return previous;
}
/**
* Injects `root` tokens in limp mode.
*
* If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to
* `"root"`. This is known as the limp mode injection. In such case the value is stored in the
* `InjectableDef`.
*/
function injectRootLimpMode(token, notFoundValue, flags) {
var injectableDef = getInjectableDef(token);
if (injectableDef && injectableDef.providedIn == 'root') {
return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;
}
if (flags & InjectFlags.Optional) return null;
if (notFoundValue !== undefined) return notFoundValue;
throw new Error("Injector: NOT_FOUND [".concat(stringify(token), "]"));
}
/**
* Assert that `_injectImplementation` is not `fn`.
*
* This is useful, to prevent infinite recursion.
*
* @param fn Function which it should not equal to
*/
function assertInjectImplementationNotEqual(fn) {
ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Convince closure compiler that the wrapped function has no side-effects.
*
* Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
* allow us to execute a function but have closure compiler mark the call as no-side-effects.
* It is important that the return value for the `noSideEffects` function be assigned
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
* compiler.
*/
function noSideEffects(fn) {
return {
toString: fn
}.toString();
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* The strategy that the default change detector uses to detect changes.
* When set, takes effect the next time change detection is triggered.
*
* @see {@link ChangeDetectorRef#usage-notes Change detection usage}
*
* @publicApi
*/
var ChangeDetectionStrategy;
(function (ChangeDetectionStrategy) {
/**
* Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
* until reactivated by setting the strategy to `Default` (`CheckAlways`).
* Change detection can still be explicitly invoked.
* This strategy applies to all child directives and cannot be overridden.
*/
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
/**
* Use the default `CheckAlways` strategy, in which change detection is automatic until
* explicitly deactivated.
*/
ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
/**
* Defines the possible states of the default change detector.
* @see `ChangeDetectorRef`
*/
var ChangeDetectorStatus;
(function (ChangeDetectorStatus) {
/**
* A state in which, after calling `detectChanges()`, the change detector
* state becomes `Checked`, and must be explicitly invoked or reactivated.
*/
ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce";
/**
* A state in which change detection is skipped until the change detector mode
* becomes `CheckOnce`.
*/
ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked";
/**
* A state in which change detection continues automatically until explicitly
* deactivated.
*/
ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways";
/**
* A state in which a change detector sub tree is not a part of the main tree and
* should be skipped.
*/
ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached";
/**
* Indicates that the change detector encountered an error checking a binding
* or calling a directive lifecycle method and is now in an inconsistent state. Change
* detectors in this state do not detect changes.
*/
ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored";
/**
* Indicates that the change detector has been destroyed.
*/
ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed";
})(ChangeDetectorStatus || (ChangeDetectorStatus = {}));
/**
* Reports whether a given strategy is currently the default for change detection.
* @param changeDetectionStrategy The strategy to check.
* @returns True if the given strategy is the current default, false otherwise.
* @see `ChangeDetectorStatus`
* @see `ChangeDetectorRef`
*/
function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
return changeDetectionStrategy == null || changeDetectionStrategy === ChangeDetectionStrategy.Default;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Defines template and style encapsulation options available for Component's {@link Component}.
*
* See {@link Component#encapsulation encapsulation}.
*
* @usageNotes
* ### Example
*
* {@example core/ts/metadata/encapsulation.ts region='longform'}
*
* @publicApi
*/
var ViewEncapsulation;
(function (ViewEncapsulation) {
/**
* Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
* Element and pre-processing the style rules provided via {@link Component#styles styles} or
* {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
* selectors.
*
* This is the default option.
*/
ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
/**
* Don't provide any template or style encapsulation.
*/
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
/**
* Use Shadow DOM to encapsulate styles.
*
* For the DOM this means using modern [Shadow
* DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM) and
* creating a ShadowRoot for Component's Host Element.
*/
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
})(ViewEncapsulation || (ViewEncapsulation = {}));
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __globalThis = typeof globalThis !== 'undefined' && globalThis;
var __window = typeof window !== 'undefined' && window;
var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;
var __global = typeof global !== 'undefined' && global; // Always use __globalThis if available, which is the spec-defined global variable across all
// environments, then fallback to __global first, because in Node tests both __global and
// __window may be defined and _global should be __global in that case.
var _global = __globalThis || __global || __window || __self;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function ngDevModeResetPerfCounters() {
var locationString = typeof location !== 'undefined' ? location.toString() : '';
var newCounters = {
namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,
firstCreatePass: 0,
tNode: 0,
tView: 0,
rendererCreateTextNode: 0,
rendererSetText: 0,
rendererCreateElement: 0,
rendererAddEventListener: 0,
rendererSetAttribute: 0,
rendererRemoveAttribute: 0,
rendererSetProperty: 0,
rendererSetClassName: 0,
rendererAddClass: 0,
rendererRemoveClass: 0,
rendererSetStyle: 0,
rendererRemoveStyle: 0,
rendererDestroy: 0,
rendererDestroyNode: 0,
rendererMoveNode: 0,
rendererRemoveNode: 0,
rendererAppendChild: 0,
rendererInsertBefore: 0,
rendererCreateComment: 0
}; // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
var allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;
_global['ngDevMode'] = allowNgDevModeTrue && newCounters;
return newCounters;
}
/**
* This function checks to see if the `ngDevMode` has been set. If yes,
* then we honor it, otherwise we default to dev mode with additional checks.
*
* The idea is that unless we are doing production build where we explicitly
* set `ngDevMode == false` we should be helping the developer by providing
* as much early warning and errors as possible.
*
* `ɵɵdefineComponent` is guaranteed to have been called before any component template functions
* (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
* is defined for the entire instruction set.
*
* When checking `ngDevMode` on toplevel, always init it before referencing it
* (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
* get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
*
* Details on possible values for `ngDevMode` can be found on its docstring.
*
* NOTE:
* - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.
*/
function initNgDevMode() {
// The below checks are to ensure that calling `initNgDevMode` multiple times does not
// reset the counters.
// If the `ngDevMode` is not an object, then it means we have not created the perf counters
// yet.
if (typeof ngDevMode === 'undefined' || ngDevMode) {
if (typeof ngDevMode !== 'object') {
ngDevModeResetPerfCounters();
}
return typeof ngDevMode !== 'undefined' && !!ngDevMode;
}
return false;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This file contains reuseable "empty" symbols that can be used as default return values
* in different parts of the rendering code. Because the same symbols are returned, this
* allows for identity checks against these values to be consistently used by the framework
* code.
*/
var EMPTY_OBJ = {};
var EMPTY_ARRAY = []; // freezing the values prevents any code from accidentally inserting new values in
if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
// These property accesses can be ignored because ngDevMode will be set to false
// when optimizing code and the whole if statement will be dropped.
// tslint:disable-next-line:no-toplevel-property-access
Object.freeze(EMPTY_OBJ); // tslint:disable-next-line:no-toplevel-property-access
Object.freeze(EMPTY_ARRAY);
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var NG_COMP_DEF = getClosureSafeProperty({
ɵcmp: getClosureSafeProperty
});
var NG_DIR_DEF = getClosureSafeProperty({
ɵdir: getClosureSafeProperty
});
var NG_PIPE_DEF = getClosureSafeProperty({
ɵpipe: getClosureSafeProperty
});
var NG_MOD_DEF = getClosureSafeProperty({
ɵmod: getClosureSafeProperty
});
var NG_LOC_ID_DEF = getClosureSafeProperty({
ɵloc: getClosureSafeProperty
});
var NG_FACTORY_DEF = getClosureSafeProperty({
ɵfac: getClosureSafeProperty
});
/**
* If a directive is diPublic, bloomAdd sets a property on the type with this constant as
* the key and the directive's unique ID as the value. This allows us to map directives to their
* bloom filter bit for DI.
*/
// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
var NG_ELEMENT_ID = getClosureSafeProperty({
__NG_ELEMENT_ID__: getClosureSafeProperty
});
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var _renderCompCount = 0;
/**
* Create a component definition object.
*
*
* # Example
* ```
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
* static ɵcmp = defineComponent({
* ...
* });
* }
* ```
* @codeGenApi
*/
function ɵɵdefineComponent(componentDefinition) {
return noSideEffects(function () {
// Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.
// See the `initNgDevMode` docstring for more information.
(typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
var type = componentDefinition.type;
var typePrototype = type.prototype;
var declaredInputs = {};
var def = {
type: type,
providersResolver: null,
decls: componentDefinition.decls,
vars: componentDefinition.vars,
factory: null,
template: componentDefinition.template || null,
consts: componentDefinition.consts || null,
ngContentSelectors: componentDefinition.ngContentSelectors,
hostBindings: componentDefinition.hostBindings || null,
hostVars: componentDefinition.hostVars || 0,
hostAttrs: componentDefinition.hostAttrs || null,
contentQueries: componentDefinition.contentQueries || null,
declaredInputs: declaredInputs,
inputs: null,
outputs: null,
exportAs: componentDefinition.exportAs || null,
onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,
directiveDefs: null,
pipeDefs: null,
selectors: componentDefinition.selectors || EMPTY_ARRAY,
viewQuery: componentDefinition.viewQuery || null,
features: componentDefinition.features || null,
data: componentDefinition.data || {},
// TODO(misko): convert ViewEncapsulation into const enum so that it can be used
// directly in the next line. Also `None` should be 0 not 2.
encapsulation: componentDefinition.encapsulation || ViewEncapsulation.Emulated,
id: 'c',
styles: componentDefinition.styles || EMPTY_ARRAY,
_: null,
setInput: null,
schemas: componentDefinition.schemas || null,
tView: null
};
var directiveTypes = componentDefinition.directives;
var feature = componentDefinition.features;
var pipeTypes = componentDefinition.pipes;
def.id += _renderCompCount++;
def.inputs = invertObject(componentDefinition.inputs, declaredInputs), def.outputs = invertObject(componentDefinition.outputs), feature && feature.forEach(function (fn) {
return fn(def);
});
def.directiveDefs = directiveTypes ? function () {
return (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes).map(extractDirectiveDef);
} : null;
def.pipeDefs = pipeTypes ? function () {
return (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef);
} : null;
return def;
});
}
/**
* Generated next to NgModules to monkey-patch directive and pipe references onto a component's
* definition, when generating a direct reference in the component file would otherwise create an
* import cycle.
*
* See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.
*
* @codeGenApi
*/
function ɵɵsetComponentScope(type, directives, pipes) {
var def = type.ɵcmp;
def.directiveDefs = function () {
return directives.map(extractDirectiveDef);
};
def.pipeDefs = function () {
return pipes.map(extractPipeDef);
};
}
function extractDirectiveDef(type) {
var def = getComponentDef(type) || getDirectiveDef(type);
if (ngDevMode && !def) {
throw new Error("'".concat(type.name, "' is neither 'ComponentType' or 'DirectiveType'."));
}
return def;
}
function extractPipeDef(type) {
var def = getPipeDef(type);
if (ngDevMode && !def) {
throw new Error("'".concat(type.name, "' is not a 'PipeType'."));
}
return def;
}
var autoRegisterModuleById = {};
/**
* @codeGenApi
*/
function ɵɵdefineNgModule(def) {
var res = {
type: def.type,
bootstrap: def.bootstrap || EMPTY_ARRAY,
declarations: def.declarations || EMPTY_ARRAY,
imports: def.imports || EMPTY_ARRAY,
exports: def.exports || EMPTY_ARRAY,
transitiveCompileScopes: null,
schemas: def.schemas || null,
id: def.id || null
};
if (def.id != null) {
noSideEffects(function () {
autoRegisterModuleById[def.id] = def.type;
});
}
return res;
}
/**
* Adds the module metadata that is necessary to compute the module's transitive scope to an
* existing module definition.
*
* Scope metadata of modules is not used in production builds, so calls to this function can be
* marked pure to tree-shake it from the bundle, allowing for all referenced declarations
* to become eligible for tree-shaking as well.
*
* @codeGenApi
*/
function ɵɵsetNgModuleScope(type, scope) {
return noSideEffects(function () {
var ngModuleDef = getNgModuleDef(type, true);
ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
});
}
/**
* Inverts an inputs or outputs lookup such that the keys, which were the
* minified keys, are part of the values, and the values are parsed so that
* the publicName of the property is the new key
*
* e.g. for
*
* ```
* class Comp {
* @Input()
* propName1: string;
*
* @Input('publicName2')
* declaredPropName2: number;
* }
* ```
*
* will be serialized as
*
* ```
* {
* propName1: 'propName1',
* declaredPropName2: ['publicName2', 'declaredPropName2'],
* }
* ```
*
* which is than translated by the minifier as:
*
* ```
* {
* minifiedPropName1: 'propName1',
* minifiedPropName2: ['publicName2', 'declaredPropName2'],
* }
* ```
*
* becomes: (public name => minifiedName)
*
* ```
* {
* 'propName1': 'minifiedPropName1',
* 'publicName2': 'minifiedPropName2',
* }
* ```
*
* Optionally the function can take `secondary` which will result in: (public name => declared name)
*
* ```
* {
* 'propName1': 'propName1',
* 'publicName2': 'declaredPropName2',
* }
* ```
*
*/
function invertObject(obj, secondary) {
if (obj == null) return EMPTY_OBJ;
var newLookup = {};
for (var minifiedKey in obj) {
if (obj.hasOwnProperty(minifiedKey)) {
var publicName = obj[minifiedKey];
var declaredName = publicName;
if (Array.isArray(publicName)) {
declaredName = publicName[1];
publicName = publicName[0];
}
newLookup[publicName] = minifiedKey;
if (secondary) {
secondary[publicName] = declaredName;
}
}
}
return newLookup;
}
/**
* Create a directive definition object.
*
* # Example
* ```ts
* class MyDirective {
* // Generated by Angular Template Compiler
* // [Symbol] syntax will not be supported by TypeScript until v2.7
* static ɵdir = ɵɵdefineDirective({
* ...
* });
* }
* ```
*
* @codeGenApi
*/
var ɵɵdefineDirective = ɵɵdefineComponent;
/**
* Create a pipe definition object.
*
* # Example
* ```
* class MyPipe implements PipeTransform {
* // Generated by Angular Template Compiler
* static ɵpipe = definePipe({
* ...
* });
* }
* ```
* @param pipeDef Pipe definition generated by the compiler
*
* @codeGenApi
*/
function ɵɵdefinePipe(pipeDef) {
return {
type: pipeDef.type,
name: pipeDef.name,
factory: null,
pure: pipeDef.pure !== false,
onDestroy: pipeDef.type.prototype.ngOnDestroy || null
};
}
/**
* The following getter methods retrieve the definition from the type. Currently the retrieval
* honors inheritance, but in the future we may change the rule to require that definitions are
* explicit. This would require some sort of migration strategy.
*/
function getComponentDef(type) {
return type[NG_COMP_DEF] || null;
}
function getDirectiveDef(type) {
return type[NG_DIR_DEF] || null;
}
function getPipeDef(type) {
return type[NG_PIPE_DEF] || null;
}
function getNgModuleDef(type, throwNotFound) {
var ngModuleDef = type[NG_MOD_DEF] || null;
if (!ngModuleDef && throwNotFound === true) {
throw new Error("Type ".concat(stringify(type), " does not have '\u0275mod' property."));
}
return ngModuleDef;
}
function getNgLocaleIdDef(type) {
return type[NG_LOC_ID_DEF] || null;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Below are constants for LView indices to help us look up LView members
// without having to remember the specific indices.
// Uglify will inline these when minifying so there shouldn't be a cost.
var HOST = 0;
var TVIEW = 1;
var FLAGS = 2;
var PARENT = 3;
var NEXT = 4;
var TRANSPLANTED_VIEWS_TO_REFRESH = 5;
var T_HOST = 6;
var CLEANUP = 7;
var CONTEXT = 8;
var INJECTOR = 9;
var RENDERER_FACTORY = 10;
var RENDERER = 11;
var SANITIZER = 12;
var CHILD_HEAD = 13;
var CHILD_TAIL = 14; // FIXME(misko): Investigate if the three declarations aren't all same thing.
var DECLARATION_VIEW = 15;
var DECLARATION_COMPONENT_VIEW = 16;
var DECLARATION_LCONTAINER = 17;
var PREORDER_HOOK_FLAGS = 18;
var QUERIES = 19;
/**
* Size of LView's header. Necessary to adjust for it when setting slots.
*
* IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate
* instruction index into `LView` index. All other indexes should be in the `LView` index space and
* there should be no need to refer to `HEADER_OFFSET` anywhere else.
*/
var HEADER_OFFSET = 20;
/**
* Converts `TViewType` into human readable text.
* Make sure this matches with `TViewType`
*/
var TViewTypeAsString = ['Root', 'Component', 'Embedded']; // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
var unusedValueExportToPlacateAjd = 1;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Special location which allows easy identification of type. If we have an array which was
* retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
* `LContainer`.
*/
var TYPE = 1;
/**
* Below are constants for LContainer indices to help us look up LContainer members
* without having to remember the specific indices.
* Uglify will inline these when minifying so there shouldn't be a cost.
*/
/**
* Flag to signify that this `LContainer` may have transplanted views which need to be change
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
*
* This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
* a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
* that the `MOVED_VIEWS` are transplanted and on-push.
*/
var HAS_TRANSPLANTED_VIEWS = 2; // PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5
// As we already have these constants in LView, we don't need to re-create them.
// T_HOST is index 6
// We already have this constants in LView, we don't need to re-create it.
var NATIVE = 7;
var VIEW_REFS = 8;
var MOVED_VIEWS = 9;
/**
* Size of LContainer's header. Represents the index after which all views in the
* container will be inserted. We need to keep a record of current views so we know
* which views are already in the DOM (and don't need to be re-added) and so we can
* remove views from the DOM when they are no longer required.
*/
var CONTAINER_HEADER_OFFSET = 10; // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
var unusedValueExportToPlacateAjd$1 = 1;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* True if `value` is `LView`.
* @param value wrapped value of `RNode`, `LView`, `LContainer`
*/
function isLView(value) {
return Array.isArray(value) && typeof value[TYPE] === 'object';
}
/**
* True if `value` is `LContainer`.
* @param value wrapped value of `RNode`, `LView`, `LContainer`
*/
function isLContainer(value) {
return Array.isArray(value) && value[TYPE] === true;
}
function isContentQueryHost(tNode) {
return (tNode.flags & 8
/* hasContentQuery */
) !== 0;
}
function isComponentHost(tNode) {
return (tNode.flags & 2
/* isComponentHost */
) === 2
/* isComponentHost */
;
}
function isDirectiveHost(tNode) {
return (tNode.flags & 1
/* isDirectiveHost */
) === 1
/* isDirectiveHost */
;
}
function isComponentDef(def) {
return def.template !== null;
}
function isRootView(target) {
return (target[FLAGS] & 512
/* IsRoot */
) !== 0;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// [Assert functions do not constraint type when they are guarded by a truthy
// expression.](https://github.com/microsoft/TypeScript/issues/37295)
function assertTNodeForLView(tNode, lView) {
assertTNodeForTView(tNode, lView[TVIEW]);
}
function assertTNodeForTView(tNode, tView) {
assertTNode(tNode);
tNode.hasOwnProperty('tView_') && assertEqual(tNode.tView_, tView, 'This TNode does not belong to this TView.');
}
function assertTNode(tNode) {
assertDefined(tNode, 'TNode must be defined');
if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {
throwError('Not of type TNode, got: ' + tNode);
}
}
function assertTIcu(tIcu) {
assertDefined(tIcu, 'Expected TIcu to be defined');
if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {
throwError('Object is not of TIcu type.');
}
}
function assertComponentType(actual) {
var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.';
if (!getComponentDef(actual)) {
throwError(msg);
}
}
function assertNgModuleType(actual) {
var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.';
if (!getNgModuleDef(actual)) {
throwError(msg);
}
}
function assertCurrentTNodeIsParent(isParent) {
assertEqual(isParent, true, 'currentTNode should be a parent');
}
function assertHasParent(tNode) {
assertDefined(tNode, 'currentTNode should exist!');
assertDefined(tNode.parent, 'currentTNode should have a parent');
}
function assertDataNext(lView, index, arr) {
if (arr == null) arr = lView;
assertEqual(arr.length, index, "index ".concat(index, " expected to be at the end of arr (length ").concat(arr.length, ")"));
}
function assertLContainer(value) {
assertDefined(value, 'LContainer must be defined');
assertEqual(isLContainer(value), true, 'Expecting LContainer');
}
function assertLViewOrUndefined(value) {
value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');
}
function assertLView(value) {
assertDefined(value, 'LView must be defined');
assertEqual(isLView(value), true, 'Expecting LView');
}
function assertFirstCreatePass(tView, errMessage) {
assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');
}
function assertFirstUpdatePass(tView, errMessage) {
assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');
}
/**
* This is a basic sanity check that an object is probably a directive def. DirectiveDef is
* an interface, so we can't do a direct instanceof check.
*/
function assertDirectiveDef(obj) {
if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {
throwError("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.");
}
}
function assertIndexInDeclRange(lView, index) {
var tView = lView[1];
assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);
}
function assertIndexInVarsRange(lView, index) {
var tView = lView[1];
assertBetween(tView.bindingStartIndex, tView.expandoStartIndex, index);
}
function assertIndexInExpandoRange(lView, index) {
var tView = lView[1];
assertBetween(tView.expandoStartIndex, lView.length, index);
}
function assertBetween(lower, upper, index) {
if (!(lower <= index && index < upper)) {
throwError("Index out of range (expecting ".concat(lower, " <= ").concat(index, " < ").concat(upper, ")"));
}
}
/**
* This is a basic sanity check that the `injectorIndex` seems to point to what looks like a
* NodeInjector data structure.
*
* @param lView `LView` which should be checked.
* @param injectorIndex index into the `LView` where the `NodeInjector` is expected.
*/
function assertNodeInjector(lView, injectorIndex) {
assertIndexInExpandoRange(lView, injectorIndex);
assertIndexInExpandoRange(lView, injectorIndex + 8
/* PARENT */
);
assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');
assertNumber(lView[injectorIndex + 8
/* PARENT */
], 'injectorIndex should point to parent injector');
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function getFactoryDef(type, throwNotFound) {
var hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
throw new Error("Type ".concat(stringify(type), " does not have '\u0275fac' property."));
}
return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Base URL for the error details page.
// Keep this value in sync with a similar const in
// `packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.ts`.
var ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
var RuntimeError = /*#__PURE__*/function (_Error) {
_inherits(RuntimeError, _Error);
var _super89 = _createSuper(RuntimeError);
function RuntimeError(code, message) {
var _this110;
_classCallCheck(this, RuntimeError);
_this110 = _super89.call(this, formatRuntimeError(code, message));
_this110.code = code;
return _this110;
}
return RuntimeError;
}( /*#__PURE__*/_wrapNativeSuper(Error)); // Contains a set of error messages that have details guides at angular.io.
// Full list of available error guides can be found at https://angular.io/errors
/* tslint:disable:no-toplevel-property-access */
var RUNTIME_ERRORS_WITH_GUIDES = new Set(["100"
/* EXPRESSION_CHANGED_AFTER_CHECKED */
, "200"
/* CYCLIC_DI_DEPENDENCY */
, "201"
/* PROVIDER_NOT_FOUND */
, "300"
/* MULTIPLE_COMPONENTS_MATCH */
, "301"
/* EXPORT_NOT_FOUND */
, "302"
/* PIPE_NOT_FOUND */
]);
/* tslint:enable:no-toplevel-property-access */
/** Called to format a runtime error */
function formatRuntimeError(code, message) {
var fullCode = code ? "NG0".concat(code, ": ") : '';
var errorMessage = "".concat(fullCode).concat(message); // Some runtime errors are still thrown without `ngDevMode` (for example
// `throwProviderNotFoundError`), so we add `ngDevMode` check here to avoid pulling
// `RUNTIME_ERRORS_WITH_GUIDES` symbol into prod bundles.
// TODO: revisit all instances where `RuntimeError` is thrown and see if `ngDevMode` can be added
// there instead to tree-shake more devmode-only code (and eventually remove `ngDevMode` check
// from this code).
if (ngDevMode && RUNTIME_ERRORS_WITH_GUIDES.has(code)) {
errorMessage = "".concat(errorMessage, ". Find more at ").concat(ERROR_DETAILS_PAGE_BASE_URL, "/NG0").concat(code);
}
return errorMessage;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Used for stringify render output in Ivy.
* Important! This function is very performance-sensitive and we should
* be extra careful not to introduce megamorphic reads in it.
* Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
*/
function renderStringify(value) {
if (typeof value === 'string') return value;
if (value == null) return ''; // Use `String` so that it invokes the `toString` method of the value. Note that this
// appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
return String(value);
}
/**
* Used to stringify a value so that it can be displayed in an error message.
* Important! This function contains a megamorphic read and should only be
* used for error messages.
*/
function stringifyForError(value) {
if (typeof value === 'function') return value.name || value.toString();
if (typeof value === 'object' && value != null && typeof value.type === 'function') {
return value.type.name || value.type.toString();
}
return renderStringify(value);
}
/** Called when directives inject each other (creating a circular dependency) */
function throwCyclicDependencyError(token, path) {
var depPath = path ? ". Dependency path: ".concat(path.join(' > '), " > ").concat(token) : '';
throw new RuntimeError("200"
/* CYCLIC_DI_DEPENDENCY */
, "Circular dependency in DI detected for ".concat(token).concat(depPath));
}
function throwMixedMultiProviderError() {
throw new Error("Cannot mix multi providers and regular providers");
}
function throwInvalidProviderError(ngModuleType, providers, provider) {
var ngModuleDetail = '';
if (ngModuleType && providers) {
var providerDetail = providers.map(function (v) {
return v == provider ? '?' + provider + '?' : '...';
});
ngModuleDetail = " - only instances of Provider and Type are allowed, got: [".concat(providerDetail.join(', '), "]");
}
throw new Error("Invalid provider for the NgModule '".concat(stringify(ngModuleType), "'") + ngModuleDetail);
}
/** Throws an error when a token is not found in DI. */
function throwProviderNotFoundError(token, injectorName) {
var injectorDetails = injectorName ? " in ".concat(injectorName) : '';
throw new RuntimeError("201"
/* PROVIDER_NOT_FOUND */
, "No provider for ".concat(stringifyForError(token), " found").concat(injectorDetails));
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Represents a basic change from a previous to a new value for a single
* property on a directive instance. Passed as a value in a
* {@link SimpleChanges} object to the `ngOnChanges` hook.
*
* @see `OnChanges`
*
* @publicApi
*/
var SimpleChange = /*#__PURE__*/function () {
function SimpleChange(previousValue, currentValue, firstChange) {
_classCallCheck(this, SimpleChange);
this.previousValue = previousValue;
this.currentValue = currentValue;
this.firstChange = firstChange;
}
/**
* Check whether the new value is the first value assigned.
*/
_createClass2(SimpleChange, [{
key: "isFirstChange",
value: function isFirstChange() {
return this.firstChange;
}
}]);
return SimpleChange;
}();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* The NgOnChangesFeature decorates a component with support for the ngOnChanges
* lifecycle hook, so it should be included in any component that implements
* that hook.
*
* If the component or directive uses inheritance, the NgOnChangesFeature MUST
* be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise
* inherited properties will not be propagated to the ngOnChanges lifecycle
* hook.
*
* Example usage:
*
* ```
* static ɵcmp = defineComponent({
* ...
* inputs: {name: 'publicName'},
* features: [NgOnChangesFeature]
* });
* ```
*
* @codeGenApi
*/
function ɵɵNgOnChangesFeature() {
return NgOnChangesFeatureImpl;
}
function NgOnChangesFeatureImpl(definition) {
if (definition.type.prototype.ngOnChanges) {
definition.setInput = ngOnChangesSetInput;
}
return rememberChangeHistoryAndInvokeOnChangesHook;
} // This option ensures that the ngOnChanges lifecycle hook will be inherited
// from superclasses (in InheritDefinitionFeature).
/** @nocollapse */
// tslint:disable-next-line:no-toplevel-property-access
ɵɵNgOnChangesFeature.ngInherit = true;
/**
* This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate
* `ngOnChanges`.
*
* The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are
* found it invokes `ngOnChanges` on the component instance.
*
* @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,
* it is guaranteed to be called with component instance.
*/
function rememberChangeHistoryAndInvokeOnChangesHook() {
var simpleChangesStore = getSimpleChangesStore(this);
var current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;
if (current) {
var previous = simpleChangesStore.previous;
if (previous === EMPTY_OBJ) {
simpleChangesStore.previous = current;
} else {
// New changes are copied to the previous store, so that we don't lose history for inputs
// which were not changed this time
for (var key in current) {
previous[key] = current[key];
}
}
simpleChangesStore.current = null;
this.ngOnChanges(current);
}
}
function ngOnChangesSetInput(instance, value, publicName, privateName) {
var simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {
previous: EMPTY_OBJ,
current: null
});
var current = simpleChangesStore.current || (simpleChangesStore.current = {});
var previous = simpleChangesStore.previous;
var declaredName = this.declaredInputs[publicName];
var previousChange = previous[declaredName];
current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);
instance[privateName] = value;
}
var SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';
function getSimpleChangesStore(instance) {
return instance[SIMPLE_CHANGES_STORE] || null;
}
function setSimpleChangesStore(instance, store) {
return instance[SIMPLE_CHANGES_STORE] = store;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
var MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This property will be monkey-patched on elements, components and directives
*/
var MONKEY_PATCH_KEY_NAME = '__ngContext__';
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Most of the use of `document` in Angular is from within the DI system so it is possible to simply
* inject the `DOCUMENT` token and are done.
*
* Ivy is special because it does not rely upon the DI and must get hold of the document some other
* way.
*
* The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.
* Wherever ivy needs the global document, it calls `getDocument()` instead.
*
* When running ivy outside of a browser environment, it is necessary to call `setDocument()` to
* tell ivy what the global `document` is.
*
* Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`)
* by calling `setDocument()` when providing the `DOCUMENT` token.
*/
var DOCUMENT = undefined;
/**
* Tell ivy what the `document` is for this platform.
*
* It is only necessary to call this if the current platform is not a browser.
*
* @param document The object representing the global `document` in this environment.
*/
function setDocument(document) {
DOCUMENT = document;
}
/**
* Access the object that represents the `document` for this platform.
*
* Ivy calls this whenever it needs to access the `document` object.
* For example to create the renderer or to do sanitization.
*/
function getDocument() {
if (DOCUMENT !== undefined) {
return DOCUMENT;
} else if (typeof document !== 'undefined') {
return document;
} // No "document" can be found. This should only happen if we are running ivy outside Angular and
// the current platform is not a browser. Since this is not a supported scenario at the moment
// this should not happen in Angular apps.
// Once we support running ivy outside of Angular we will need to publish `setDocument()` as a
// public API. Meanwhile we just return `undefined` and let the application fail.
return undefined;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// TODO: cleanup once the code is merged in angular/angular
var RendererStyleFlags3;
(function (RendererStyleFlags3) {
RendererStyleFlags3[RendererStyleFlags3["Important"] = 1] = "Important";
RendererStyleFlags3[RendererStyleFlags3["DashCase"] = 2] = "DashCase";
})(RendererStyleFlags3 || (RendererStyleFlags3 = {}));
/** Returns whether the `renderer` is a `ProceduralRenderer3` */
function isProceduralRenderer(renderer) {
return !!renderer.listen;
}
var ɵ0 = function ɵ0(hostElement, rendererType) {
return getDocument();
};
var domRendererFactory3 = {
createRenderer: ɵ0
}; // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
var unusedValueExportToPlacateAjd$2 = 1;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)
* in same location in `LView`. This is because we don't want to pre-allocate space for it
* because the storage is sparse. This file contains utilities for dealing with such data types.
*
* How do we know what is stored at a given location in `LView`.
* - `Array.isArray(value) === false` => `RNode` (The normal storage value)
* - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.
* - `typeof value[TYPE] === 'object'` => `LView`
* - This happens when we have a component at a given location
* - `typeof value[TYPE] === true` => `LContainer`
* - This happens when we have `LContainer` binding at a given location.
*
*
* NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.
*/
/**
* Returns `RNode`.
* @param value wrapped value of `RNode`, `LView`, `LContainer`
*/
function unwrapRNode(value) {
while (Array.isArray(value)) {
value = value[HOST];
}
return value;
}
/**
* Returns `LView` or `null` if not found.
* @param value wrapped value of `RNode`, `LView`, `LContainer`
*/
function unwrapLView(value) {
while (Array.isArray(value)) {
// This check is same as `isLView()` but we don't call at as we don't want to call
// `Array.isArray()` twice and give JITer more work for inlining.
if (typeof value[TYPE] === 'object') return value;
value = value[HOST];
}
return null;
}
/**
* Returns `LContainer` or `null` if not found.
* @param value wrapped value of `RNode`, `LView`, `LContainer`
*/
function unwrapLContainer(value) {
while (Array.isArray(value)) {
// This check is same as `isLContainer()` but we don't call at as we don't want to call
// `Array.isArray()` twice and give JITer more work for inlining.
if (value[TYPE] === true) return value;
value = value[HOST];
}
return null;
}
/**
* Retrieves an element value from the provided `viewData`, by unwrapping
* from any containers, component views, or style contexts.
*/
function getNativeByIndex(index, lView) {
ngDevMode && assertIndexInRange(lView, index);
ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');
return unwrapRNode(lView[index]);
}
/**
* Retrieve an `RNode` for a given `TNode` and `LView`.
*
* This function guarantees in dev mode to retrieve a non-null `RNode`.
*
* @param tNode
* @param lView
*/
function getNativeByTNode(tNode, lView) {
ngDevMode && assertTNodeForLView(tNode, lView);
ngDevMode && assertIndexInRange(lView, tNode.index);
var node = unwrapRNode(lView[tNode.index]);
ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
return node;
}
/**
* Retrieve an `RNode` or `null` for a given `TNode` and `LView`.
*
* Some `TNode`s don't have associated `RNode`s. For example `Projection`
*
* @param tNode
* @param lView
*/
function getNativeByTNodeOrNull(tNode, lView) {
var index = tNode === null ? -1 : tNode.index;
if (index !== -1) {
ngDevMode && assertTNodeForLView(tNode, lView);
var node = unwrapRNode(lView[index]);
ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
return node;
}
return null;
} // fixme(misko): The return Type should be `TNode|null`
function getTNode(tView, index) {
ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');
ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');
var tNode = tView.data[index];
ngDevMode && tNode !== null && assertTNode(tNode);
return tNode;
}
/** Retrieves a value from any `LView` or `TData`. */
function load(view, index) {
ngDevMode && assertIndexInRange(view, index);
return view[index];
}
function getComponentLViewByIndex(nodeIndex, hostView) {
// Could be an LView or an LContainer. If LContainer, unwrap to find LView.
ngDevMode && assertIndexInRange(hostView, nodeIndex);
var slotValue = hostView[nodeIndex];
var lView = isLView(slotValue) ? slotValue : slotValue[HOST];
return lView;
}
/**
* Returns the monkey-patch value data present on the target (which could be
* a component, directive or a DOM node).
*/
function readPatchedData(target) {
ngDevMode && assertDefined(target, 'Target expected');
return target[MONKEY_PATCH_KEY_NAME] || null;
}
function readPatchedLView(target) {
var value = readPatchedData(target);
if (value) {
return Array.isArray(value) ? value : value.lView;
}
return null;
}
/** Checks whether a given view is in creation mode */
function isCreationMode(view) {
return (view[FLAGS] & 4
/* CreationMode */
) === 4
/* CreationMode */
;
}
/**
* Returns a boolean for whether the view is attached to the change detection tree.
*
* Note: This determines whether a view should be checked, not whether it's inserted
* into a container. For that, you'll want `viewAttachedToContainer` below.
*/
function viewAttachedToChangeDetector(view) {
return (view[FLAGS] & 128
/* Attached */
) === 128
/* Attached */
;
}
/** Returns a boolean for whether the view is attached to a container. */
function viewAttachedToContainer(view) {
return isLContainer(view[PARENT]);
}
function getConstant(consts, index) {
if (index === null || index === undefined) return null;
ngDevMode && assertIndexInRange(consts, index);
return consts[index];
}
/**
* Resets the pre-order hook flags of the view.
* @param lView the LView on which the flags are reset
*/
function resetPreOrderHookFlags(lView) {
lView[PREORDER_HOOK_FLAGS] = 0;
}
/**
* Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents
* whose
* 1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh
* or
* 2. counter goes from 1 to 0, indicating there are no more descendant views to refresh
*/
function updateTransplantedViewCount(lContainer, amount) {
lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
var viewOrContainer = lContainer;
var parent = lContainer[PARENT];
while (parent !== null && (amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1 || amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0)) {
parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
viewOrContainer = parent;
parent = parent[PARENT];
}
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var instructionState = {
lFrame: createLFrame(null),
bindingsEnabled: true,
isInCheckNoChangesMode: false
};
/**
* Returns true if the instruction state stack is empty.
*
* Intended to be called from tests only (tree shaken otherwise).
*/
function specOnlyIsInstructionStateEmpty() {
return instructionState.lFrame.parent === null;
}
function getElementDepthCount() {
return instructionState.lFrame.elementDepthCount;
}
function increaseElementDepthCount() {
instructionState.lFrame.elementDepthCount++;
}
function decreaseElementDepthCount() {
instructionState.lFrame.elementDepthCount--;
}
function getBindingsEnabled() {
return instructionState.bindingsEnabled;
}
/**
* Enables directive matching on elements.
*
* * Example:
* ```
*
* Should match component / directive.
*
*
*
*
* Should not match component / directive because we are in ngNonBindable.
*
*
*
* ```
*
* @codeGenApi
*/
function ɵɵenableBindings() {
instructionState.bindingsEnabled = true;
}
/**
* Disables directive matching on element.
*
* * Example:
* ```
*
* Should match component / directive.
*
*
*
*
* Should not match component / directive because we are in ngNonBindable.
*
*
*
* ```
*
* @codeGenApi
*/
function ɵɵdisableBindings() {
instructionState.bindingsEnabled = false;
}
/**
* Return the current `LView`.
*/
function getLView() {
return instructionState.lFrame.lView;
}
/**
* Return the current `TView`.
*/
function getTView() {
return instructionState.lFrame.tView;
}
/**
* Restores `contextViewData` to the given OpaqueViewState instance.
*
* Used in conjunction with the getCurrentView() instruction to save a snapshot
* of the current view and restore it when listeners are invoked. This allows
* walking the declaration view tree in listeners to get vars from parent views.
*
* @param viewToRestore The OpaqueViewState instance to restore.
*
* @codeGenApi
*/
function ɵɵrestoreView(viewToRestore) {
instructionState.lFrame.contextLView = viewToRestore;
}
function getCurrentTNode() {
var currentTNode = getCurrentTNodePlaceholderOk();
while (currentTNode !== null && currentTNode.type === 64
/* Placeholder */
) {
currentTNode = currentTNode.parent;
}
return currentTNode;
}
function getCurrentTNodePlaceholderOk() {
return instructionState.lFrame.currentTNode;
}
function getCurrentParentTNode() {
var lFrame = instructionState.lFrame;
var currentTNode = lFrame.currentTNode;
return lFrame.isParent ? currentTNode : currentTNode.parent;
}
function setCurrentTNode(tNode, isParent) {
ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);
var lFrame = instructionState.lFrame;
lFrame.currentTNode = tNode;
lFrame.isParent = isParent;
}
function isCurrentTNodeParent() {
return instructionState.lFrame.isParent;
}
function setCurrentTNodeAsNotParent() {
instructionState.lFrame.isParent = false;
}
function setCurrentTNodeAsParent() {
instructionState.lFrame.isParent = true;
}
function getContextLView() {
return instructionState.lFrame.contextLView;
}
function isInCheckNoChangesMode() {
// TODO(misko): remove this from the LView since it is ngDevMode=true mode only.
return instructionState.isInCheckNoChangesMode;
}
function setIsInCheckNoChangesMode(mode) {
instructionState.isInCheckNoChangesMode = mode;
} // top level variables should not be exported for performance reasons (PERF_NOTES.md)
function getBindingRoot() {
var lFrame = instructionState.lFrame;
var index = lFrame.bindingRootIndex;
if (index === -1) {
index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;
}
return index;
}
function getBindingIndex() {
return instructionState.lFrame.bindingIndex;
}
function setBindingIndex(value) {
return instructionState.lFrame.bindingIndex = value;
}
function nextBindingIndex() {
return instructionState.lFrame.bindingIndex++;
}
function incrementBindingIndex(count) {
var lFrame = instructionState.lFrame;
var index = lFrame.bindingIndex;
lFrame.bindingIndex = lFrame.bindingIndex + count;
return index;
}
function isInI18nBlock() {
return instructionState.lFrame.inI18n;
}
function setInI18nBlock(isInI18nBlock) {
instructionState.lFrame.inI18n = isInI18nBlock;
}
/**
* Set a new binding root index so that host template functions can execute.
*
* Bindings inside the host template are 0 index. But because we don't know ahead of time
* how many host bindings we have we can't pre-compute them. For this reason they are all
* 0 index and we just shift the root so that they match next available location in the LView.
*
* @param bindingRootIndex Root index for `hostBindings`
* @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive
* whose `hostBindings` are being processed.
*/
function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {
var lFrame = instructionState.lFrame;
lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;
setCurrentDirectiveIndex(currentDirectiveIndex);
}
/**
* When host binding is executing this points to the directive index.
* `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`
* `LView[getCurrentDirectiveIndex()]` is directive instance.
*/
function getCurrentDirectiveIndex() {
return instructionState.lFrame.currentDirectiveIndex;
}
/**
* Sets an index of a directive whose `hostBindings` are being processed.
*
* @param currentDirectiveIndex `TData` index where current directive instance can be found.
*/
function setCurrentDirectiveIndex(currentDirectiveIndex) {
instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;
}
/**
* Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being
* executed.
*
* @param tData Current `TData` where the `DirectiveDef` will be looked up at.
*/
function getCurrentDirectiveDef(tData) {
var currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;
return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];
}
function getCurrentQueryIndex() {
return instructionState.lFrame.currentQueryIndex;
}
function setCurrentQueryIndex(value) {
instructionState.lFrame.currentQueryIndex = value;
}
/**
* Returns a `TNode` of the location where the current `LView` is declared at.
*
* @param lView an `LView` that we want to find parent `TNode` for.
*/
function getDeclarationTNode(lView) {
var tView = lView[TVIEW]; // Return the declaration parent for embedded views
if (tView.type === 2
/* Embedded */
) {
ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
return tView.declTNode;
} // Components don't have `TView.declTNode` because each instance of component could be
// inserted in different location, hence `TView.declTNode` is meaningless.
// Falling back to `T_HOST` in case we cross component boundary.
if (tView.type === 1
/* Component */
) {
return lView[T_HOST];
} // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.
return null;
}
/**
* This is a light weight version of the `enterView` which is needed by the DI system.
*
* @param lView `LView` location of the DI context.
* @param tNode `TNode` for DI context
* @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration
* tree from `tNode` until we find parent declared `TElementNode`.
* @returns `true` if we have successfully entered DI associated with `tNode` (or with declared
* `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated
* `NodeInjector` can be found and we should instead use `ModuleInjector`.
* - If `true` than this call must be fallowed by `leaveDI`
* - If `false` than this call failed and we should NOT call `leaveDI`
*/
function enterDI(lView, tNode, flags) {
ngDevMode && assertLViewOrUndefined(lView);
if (flags & InjectFlags.SkipSelf) {
ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);
var parentTNode = tNode;
var parentLView = lView;
while (true) {
ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');
parentTNode = parentTNode.parent;
if (parentTNode === null && !(flags & InjectFlags.Host)) {
parentTNode = getDeclarationTNode(parentLView);
if (parentTNode === null) break; // In this case, a parent exists and is definitely an element. So it will definitely
// have an existing lView as the declaration view, which is why we can assume it's defined.
ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');
parentLView = parentLView[DECLARATION_VIEW]; // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives
// We want to skip those and look only at Elements and ElementContainers to ensure
// we're looking at true parent nodes, and not content or other types.
if (parentTNode.type & (2
/* Element */
| 8
/* ElementContainer */
)) {
break;
}
} else {
break;
}
}
if (parentTNode === null) {
// If we failed to find a parent TNode this means that we should use module injector.
return false;
} else {
tNode = parentTNode;
lView = parentLView;
}
}
ngDevMode && assertTNodeForLView(tNode, lView);
var lFrame = instructionState.lFrame = allocLFrame();
lFrame.currentTNode = tNode;
lFrame.lView = lView;
return true;
}
/**
* Swap the current lView with a new lView.
*
* For performance reasons we store the lView in the top level of the module.
* This way we minimize the number of properties to read. Whenever a new view
* is entered we have to store the lView for later, and when the view is
* exited the state has to be restored
*
* @param newView New lView to become active
* @returns the previously active lView;
*/
function enterView(newView) {
ngDevMode && assertNotEqual(newView[0], newView[1], '????');
ngDevMode && assertLViewOrUndefined(newView);
var newLFrame = allocLFrame();
if (ngDevMode) {
assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');
assertEqual(newLFrame.lView, null, 'Expected clean LFrame');
assertEqual(newLFrame.tView, null, 'Expected clean LFrame');
assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');
assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');
assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');
assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');
assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');
assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');
}
var tView = newView[TVIEW];
instructionState.lFrame = newLFrame;
ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);
newLFrame.currentTNode = tView.firstChild;
newLFrame.lView = newView;
newLFrame.tView = tView;
newLFrame.contextLView = newView;
newLFrame.bindingIndex = tView.bindingStartIndex;
newLFrame.inI18n = false;
}
/**
* Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
*/
function allocLFrame() {
var currentLFrame = instructionState.lFrame;
var childLFrame = currentLFrame === null ? null : currentLFrame.child;
var newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
return newLFrame;
}
function createLFrame(parent) {
var lFrame = {
currentTNode: null,
isParent: true,
lView: null,
tView: null,
selectedIndex: -1,
contextLView: null,
elementDepthCount: 0,
currentNamespace: null,
currentDirectiveIndex: -1,
bindingRootIndex: -1,
bindingIndex: -1,
currentQueryIndex: 0,
parent: parent,
child: null,
inI18n: false
};
parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.
return lFrame;
}
/**
* A lightweight version of leave which is used with DI.
*
* This function only resets `currentTNode` and `LView` as those are the only properties
* used with DI (`enterDI()`).
*
* NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where
* as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
*/
function leaveViewLight() {
var oldLFrame = instructionState.lFrame;
instructionState.lFrame = oldLFrame.parent;
oldLFrame.currentTNode = null;
oldLFrame.lView = null;
return oldLFrame;
}
/**
* This is a lightweight version of the `leaveView` which is needed by the DI system.
*
* NOTE: this function is an alias so that we can change the type of the function to have `void`
* return type.
*/
var leaveDI = leaveViewLight;
/**
* Leave the current `LView`
*
* This pops the `LFrame` with the associated `LView` from the stack.
*
* IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is
* because for performance reasons we don't release `LFrame` but rather keep it for next use.
*/
function leaveView() {
var oldLFrame = leaveViewLight();
oldLFrame.isParent = true;
oldLFrame.tView = null;
oldLFrame.selectedIndex = -1;
oldLFrame.contextLView = null;
oldLFrame.elementDepthCount = 0;
oldLFrame.currentDirectiveIndex = -1;
oldLFrame.currentNamespace = null;
oldLFrame.bindingRootIndex = -1;
oldLFrame.bindingIndex = -1;
oldLFrame.currentQueryIndex = 0;
}
function nextContextImpl(level) {
var contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);
return contextLView[CONTEXT];
}
function walkUpViews(nestingLevel, currentView) {
while (nestingLevel > 0) {
ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');
currentView = currentView[DECLARATION_VIEW];
nestingLevel--;
}
return currentView;
}
/**
* Gets the currently selected element index.
*
* Used with {@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
*/
function getSelectedIndex() {
return instructionState.lFrame.selectedIndex;
}
/**
* Sets the most recent index passed to {@link select}
*
* Used with {@link property} instruction (and more in the future) to identify the index in the
* current `LView` to act on.
*
* (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be
* run if and when the provided `index` value is different from the current selected index value.)
*/
function setSelectedIndex(index) {
ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');
ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\'t set index passed end of LView');
instructionState.lFrame.selectedIndex = index;
}
/**
* Gets the `tNode` that represents currently selected element.
*/
function getSelectedTNode() {
var lFrame = instructionState.lFrame;
return getTNode(lFrame.tView, lFrame.selectedIndex);
}
/**
* Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
*
* @codeGenApi
*/
function ɵɵnamespaceSVG() {
instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
}
/**
* Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
*
* @codeGenApi
*/
function ɵɵnamespaceMathML() {
instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
}
/**
* Sets the namespace used to create elements to `null`, which forces element creation to use
* `createElement` rather than `createElementNS`.
*
* @codeGenApi
*/
function ɵɵnamespaceHTML() {
namespaceHTMLInternal();
}
/**
* Sets the namespace used to create elements to `null`, which forces element creation to use
* `createElement` rather than `createElementNS`.
*/
function namespaceHTMLInternal() {
instructionState.lFrame.currentNamespace = null;
}
function getNamespace() {
return instructionState.lFrame.currentNamespace;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.
*
* Must be run *only* on the first template pass.
*
* Sets up the pre-order hooks on the provided `tView`,
* see {@link HookData} for details about the data structure.
*
* @param directiveIndex The index of the directive in LView
* @param directiveDef The definition containing the hooks to setup in tView
* @param tView The current TView
*/
function registerPreOrderHooks(directiveIndex, directiveDef, tView) {
ngDevMode && assertFirstCreatePass(tView);
var _directiveDef$type$pr = directiveDef.type.prototype,
ngOnChanges = _directiveDef$type$pr.ngOnChanges,
ngOnInit = _directiveDef$type$pr.ngOnInit,
ngDoCheck = _directiveDef$type$pr.ngDoCheck;
if (ngOnChanges) {
var wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges);
(tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, wrappedOnChanges);
}
if (ngOnInit) {
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit);
}
if (ngDoCheck) {
(tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck);
(tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, ngDoCheck);
}
}
/**
*
* Loops through the directives on the provided `tNode` and queues hooks to be
* run that are not initialization hooks.
*
* Should be executed during `elementEnd()` and similar to
* preserve hook execution order. Content, view, and destroy hooks for projected
* components and directives must be called *before* their hosts.
*
* Sets up the content, view, and destroy hooks on the provided `tView`,
* see {@link HookData} for details about the data structure.
*
* NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up
* separately at `elementStart`.
*
* @param tView The current TView
* @param tNode The TNode whose directives are to be searched for hooks to queue
*/
function registerPostOrderHooks(tView, tNode) {
ngDevMode && assertFirstCreatePass(tView); // It's necessary to loop through the directives at elementEnd() (rather than processing in
// directiveCreate) so we can preserve the current hook order. Content, view, and destroy
// hooks for projected components and directives must be called *before* their hosts.
for (var i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {
var _directiveDef = tView.data[i];
ngDevMode && assertDefined(_directiveDef, 'Expecting DirectiveDef');
var lifecycleHooks = _directiveDef.type.prototype;
var ngAfterContentInit = lifecycleHooks.ngAfterContentInit,
ngAfterContentChecked = lifecycleHooks.ngAfterContentChecked,
ngAfterViewInit = lifecycleHooks.ngAfterViewInit,
ngAfterViewChecked = lifecycleHooks.ngAfterViewChecked,
ngOnDestroy = lifecycleHooks.ngOnDestroy;
if (ngAfterContentInit) {
(tView.contentHooks || (tView.contentHooks = [])).push(-i, ngAfterContentInit);
}
if (ngAfterContentChecked) {
(tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked);
(tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked);
}
if (ngAfterViewInit) {
(tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit);
}
if (ngAfterViewChecked) {
(tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked);
(tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked);
}
if (ngOnDestroy != null) {
(tView.destroyHooks || (tView.destroyHooks = [])).push(i, ngOnDestroy);
}
}
}
/**
* Executing hooks requires complex logic as we need to deal with 2 constraints.
*
* 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only
* once, across many change detection cycles. This must be true even if some hooks throw, or if
* some recursively trigger a change detection cycle.
* To solve that, it is required to track the state of the execution of these init hooks.
* This is done by storing and maintaining flags in the view: the {@link InitPhaseState},
* and the index within that phase. They can be seen as a cursor in the following structure:
* [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]
* They are are stored as flags in LView[FLAGS].
*
* 2. Pre-order hooks can be executed in batches, because of the select instruction.
* To be able to pause and resume their execution, we also need some state about the hook's array
* that is being processed:
* - the index of the next hook to be executed
* - the number of init hooks already found in the processed part of the array
* They are are stored as flags in LView[PREORDER_HOOK_FLAGS].
*/
/**
* Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were
* executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read
* / write of the init-hooks related flags.
* @param lView The LView where hooks are defined
* @param hooks Hooks to be run
* @param nodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
*/
function executeCheckHooks(lView, hooks, nodeIndex) {
callHooks(lView, hooks, 3
/* InitPhaseCompleted */
, nodeIndex);
}
/**
* Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,
* AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.
* @param lView The LView where hooks are defined
* @param hooks Hooks to be run
* @param initPhase A phase for which hooks should be run
* @param nodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
*/
function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {
ngDevMode && assertNotEqual(initPhase, 3
/* InitPhaseCompleted */
, 'Init pre-order hooks should not be called more than once');
if ((lView[FLAGS] & 3
/* InitPhaseStateMask */
) === initPhase) {
callHooks(lView, hooks, initPhase, nodeIndex);
}
}
function incrementInitPhaseFlags(lView, initPhase) {
ngDevMode && assertNotEqual(initPhase, 3
/* InitPhaseCompleted */
, 'Init hooks phase should not be incremented after all init hooks have been run.');
var flags = lView[FLAGS];
if ((flags & 3
/* InitPhaseStateMask */
) === initPhase) {
flags &= 2047
/* IndexWithinInitPhaseReset */
;
flags += 1
/* InitPhaseStateIncrementer */
;
lView[FLAGS] = flags;
}
}
/**
* Calls lifecycle hooks with their contexts, skipping init hooks if it's not
* the first LView pass
*
* @param currentView The current view
* @param arr The array in which the hooks are found
* @param initPhaseState the current state of the init phase
* @param currentNodeIndex 3 cases depending on the value:
* - undefined: all hooks from the array should be executed (post-order case)
* - null: execute hooks only from the saved index until the end of the array (pre-order case, when
* flushing the remaining hooks)
* - number: execute hooks only from the saved index until that node index exclusive (pre-order
* case, when executing select(number))
*/
function callHooks(currentView, arr, initPhase, currentNodeIndex) {
ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');
var startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535
/* IndexOfTheNextPreOrderHookMaskMask */
: 0;
var nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;
var max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1
var lastNodeIndexFound = 0;
for (var i = startIndex; i < max; i++) {
var hook = arr[i + 1];
if (typeof hook === 'number') {
lastNodeIndexFound = arr[i];
if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {
break;
}
} else {
var isInitHook = arr[i] < 0;
if (isInitHook) currentView[PREORDER_HOOK_FLAGS] += 65536
/* NumberOfInitHooksCalledIncrementer */
;
if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
callHook(currentView, initPhase, arr, i);
currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760
/* NumberOfInitHooksCalledMask */
) + i + 2;
}
i++;
}
}
}
/**
* Execute one hook against the current `LView`.
*
* @param currentView The current view
* @param initPhaseState the current state of the init phase
* @param arr The array in which the hooks are found
* @param i The current index within the hook data array
*/
function callHook(currentView, initPhase, arr, i) {
var isInitHook = arr[i] < 0;
var hook = arr[i + 1];
var directiveIndex = isInitHook ? -arr[i] : arr[i];
var directive = currentView[directiveIndex];
if (isInitHook) {
var indexWithintInitPhase = currentView[FLAGS] >> 11
/* IndexWithinInitPhaseShift */
; // The init phase state must be always checked here as it may have been recursively updated.
if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16
/* NumberOfInitHooksCalledShift */
&& (currentView[FLAGS] & 3
/* InitPhaseStateMask */
) === initPhase) {
currentView[FLAGS] += 2048
/* IndexWithinInitPhaseIncrementer */
;
hook.call(directive);
}
} else {
hook.call(directive);
}
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var NO_PARENT_INJECTOR = -1;
/**
* Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in
* `TView.data`. This allows us to store information about the current node's tokens (which
* can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be
* shared, so they live in `LView`).
*
* Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter
* determines whether a directive is available on the associated node or not. This prevents us
* from searching the directives array at this level unless it's probable the directive is in it.
*
* See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.
*
* Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed
* using interfaces as they were previously. The start index of each `LInjector` and `TInjector`
* will differ based on where it is flattened into the main array, so it's not possible to know
* the indices ahead of time and save their types here. The interfaces are still included here
* for documentation purposes.
*
* export interface LInjector extends Array {
*
* // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
* [0]: number;
*
* // Cumulative bloom for directive IDs 32-63
* [1]: number;
*
* // Cumulative bloom for directive IDs 64-95
* [2]: number;
*
* // Cumulative bloom for directive IDs 96-127
* [3]: number;
*
* // Cumulative bloom for directive IDs 128-159
* [4]: number;
*
* // Cumulative bloom for directive IDs 160 - 191
* [5]: number;
*
* // Cumulative bloom for directive IDs 192 - 223
* [6]: number;
*
* // Cumulative bloom for directive IDs 224 - 255
* [7]: number;
*
* // We need to store a reference to the injector's parent so DI can keep looking up
* // the injector tree until it finds the dependency it's looking for.
* [PARENT_INJECTOR]: number;
* }
*
* export interface TInjector extends Array {
*
* // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
* [0]: number;
*
* // Shared node bloom for directive IDs 32-63
* [1]: number;
*
* // Shared node bloom for directive IDs 64-95
* [2]: number;
*
* // Shared node bloom for directive IDs 96-127
* [3]: number;
*
* // Shared node bloom for directive IDs 128-159
* [4]: number;
*
* // Shared node bloom for directive IDs 160 - 191
* [5]: number;
*
* // Shared node bloom for directive IDs 192 - 223
* [6]: number;
*
* // Shared node bloom for directive IDs 224 - 255
* [7]: number;
*
* // Necessary to find directive indices for a particular node.
* [TNODE]: TElementNode|TElementContainerNode|TContainerNode;
* }
*/
/**
* Factory for creating instances of injectors in the NodeInjector.
*
* This factory is complicated by the fact that it can resolve `multi` factories as well.
*
* NOTE: Some of the fields are optional which means that this class has two hidden classes.
* - One without `multi` support (most common)
* - One with `multi` values, (rare).
*
* Since VMs can cache up to 4 inline hidden classes this is OK.
*
* - Single factory: Only `resolving` and `factory` is defined.
* - `providers` factory: `componentProviders` is a number and `index = -1`.
* - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.
*/
var NodeInjectorFactory = function NodeInjectorFactory(
/**
* Factory to invoke in order to create a new instance.
*/
factory,
/**
* Set to `true` if the token is declared in `viewProviders` (or if it is component).
*/
isViewProvider, injectImplementation) {
_classCallCheck(this, NodeInjectorFactory);
this.factory = factory;
/**
* Marker set to true during factory invocation to see if we get into recursive loop.
* Recursive loop causes an error to be displayed.
*/
this.resolving = false;
ngDevMode && assertDefined(factory, 'Factory not specified');
ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');
this.canSeeViewProviders = isViewProvider;
this.injectImpl = injectImplementation;
};
function isFactory(obj) {
return obj instanceof NodeInjectorFactory;
} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
var unusedValueExportToPlacateAjd$3 = 1;
/**
* Converts `TNodeType` into human readable text.
* Make sure this matches with `TNodeType`
*/
function toTNodeTypeAsString(tNodeType) {
var text = '';
tNodeType & 1
/* Text */
&& (text += '|Text');
tNodeType & 2
/* Element */
&& (text += '|Element');
tNodeType & 4
/* Container */
&& (text += '|Container');
tNodeType & 8
/* ElementContainer */
&& (text += '|ElementContainer');
tNodeType & 16
/* Projection */
&& (text += '|Projection');
tNodeType & 32
/* Icu */
&& (text += '|IcuContainer');
tNodeType & 64
/* Placeholder */
&& (text += '|Placeholder');
return text.length > 0 ? text.substring(1) : text;
} // Note: This hack is necessary so we don't erroneously get a circular dependency
// failure based on types.
var unusedValueExportToPlacateAjd$4 = 1;
/**
* Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.
*
* ```
*
* ```
* and
* ```
* @Directive({
* })
* class MyDirective {
* @Input()
* class: string;
* }
* ```
*
* In the above case it is necessary to write the reconciled styling information into the
* directive's input.
*
* @param tNode
*/
function hasClassInput(tNode) {
return (tNode.flags & 16
/* hasClassInput */
) !== 0;
}
/**
* Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.
*
* ```
*
* ```
* and
* ```
* @Directive({
* })
* class MyDirective {
* @Input()
* class: string;
* }
* ```
*
* In the above case it is necessary to write the reconciled styling information into the
* directive's input.
*
* @param tNode
*/
function hasStyleInput(tNode) {
return (tNode.flags & 32
/* hasStyleInput */
) !== 0;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function assertTNodeType(tNode, expectedTypes, message) {
assertDefined(tNode, 'should be called with a TNode');
if ((tNode.type & expectedTypes) === 0) {
throwError(message || "Expected [".concat(toTNodeTypeAsString(expectedTypes), "] but got ").concat(toTNodeTypeAsString(tNode.type), "."));
}
}
function assertPureTNodeType(type) {
if (!(type === 2
/* Element */
|| //
type === 1
/* Text */
|| //
type === 4
/* Container */
|| //
type === 8
/* ElementContainer */
|| //
type === 32
/* Icu */
|| //
type === 16
/* Projection */
|| //
type === 64
/* Placeholder */
)) {
throwError("Expected TNodeType to have only a single type selected, but got ".concat(toTNodeTypeAsString(type), "."));
}
}
/**
* Assigns all attribute values to the provided element via the inferred renderer.
*
* This function accepts two forms of attribute entries:
*
* default: (key, value):
* attrs = [key1, value1, key2, value2]
*
* namespaced: (NAMESPACE_MARKER, uri, name, value)
* attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]
*
* The `attrs` array can contain a mix of both the default and namespaced entries.
* The "default" values are set without a marker, but if the function comes across
* a marker value then it will attempt to set a namespaced value. If the marker is
* not of a namespaced value then the function will quit and return the index value
* where it stopped during the iteration of the attrs array.
*
* See [AttributeMarker] to understand what the namespace marker value is.
*
* Note that this instruction does not support assigning style and class values to
* an element. See `elementStart` and `elementHostAttrs` to learn how styling values
* are applied to an element.
* @param renderer The renderer to be used
* @param native The element that the attributes will be assigned to
* @param attrs The attribute array of values that will be assigned to the element
* @returns the index value that was last accessed in the attributes array
*/
function setUpAttributes(renderer, _native, attrs) {
var isProc = isProceduralRenderer(renderer);
var i = 0;
while (i < attrs.length) {
var value = attrs[i];
if (typeof value === 'number') {
// only namespaces are supported. Other value types (such as style/class
// entries) are not supported in this function.
if (value !== 0
/* NamespaceURI */
) {
break;
} // we just landed on the marker value ... therefore
// we should skip to the next entry
i++;
var namespaceURI = attrs[i++];
var attrName = attrs[i++];
var attrVal = attrs[i++];
ngDevMode && ngDevMode.rendererSetAttribute++;
isProc ? renderer.setAttribute(_native, attrName, attrVal, namespaceURI) : _native.setAttributeNS(namespaceURI, attrName, attrVal);
} else {
// attrName is string;
var _attrName = value;
var _attrVal = attrs[++i]; // Standard attributes
ngDevMode && ngDevMode.rendererSetAttribute++;
if (isAnimationProp(_attrName)) {
if (isProc) {
renderer.setProperty(_native, _attrName, _attrVal);
}
} else {
isProc ? renderer.setAttribute(_native, _attrName, _attrVal) : _native.setAttribute(_attrName, _attrVal);
}
i++;
}
} // another piece of code may iterate over the same attributes array. Therefore
// it may be helpful to return the exact spot where the attributes array exited
// whether by running into an unsupported marker or if all the static values were
// iterated over.
return i;
}
/**
* Test whether the given value is a marker that indicates that the following
* attribute values in a `TAttributes` array are only the names of attributes,
* and not name-value pairs.
* @param marker The attribute marker to test.
* @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
*/
function isNameOnlyAttributeMarker(marker) {
return marker === 3
/* Bindings */
|| marker === 4
/* Template */
|| marker === 6
/* I18n */
;
}
function isAnimationProp(name) {
// Perf note: accessing charCodeAt to check for the first character of a string is faster as
// compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
// charCodeAt doesn't allocate memory to return a substring.
return name.charCodeAt(0) === 64
/* AT_SIGN */
;
}
/**
* Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.
*
* This merge function keeps the order of attrs same.
*
* @param dst Location of where the merged `TAttributes` should end up.
* @param src `TAttributes` which should be appended to `dst`
*/
function mergeHostAttrs(dst, src) {
if (src === null || src.length === 0) {// do nothing
} else if (dst === null || dst.length === 0) {
// We have source, but dst is empty, just make a copy.
dst = src.slice();
} else {
var srcMarker = -1
/* ImplicitAttributes */
;
for (var i = 0; i < src.length; i++) {
var item = src[i];
if (typeof item === 'number') {
srcMarker = item;
} else {
if (srcMarker === 0
/* NamespaceURI */
) {// Case where we need to consume `key1`, `key2`, `value` items.
} else if (srcMarker === -1
/* ImplicitAttributes */
|| srcMarker === 2
/* Styles */
) {
// Case where we have to consume `key1` and `value` only.
mergeHostAttribute(dst, srcMarker, item, null, src[++i]);
} else {
// Case where we have to consume `key1` only.
mergeHostAttribute(dst, srcMarker, item, null, null);
}
}
}
}
return dst;
}
/**
* Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.
*
* @param dst `TAttributes` to append to.
* @param marker Region where the `key`/`value` should be added.
* @param key1 Key to add to `TAttributes`
* @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)
* @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.
*/
function mergeHostAttribute(dst, marker, key1, key2, value) {
var i = 0; // Assume that new markers will be inserted at the end.
var markerInsertPosition = dst.length; // scan until correct type.
if (marker === -1
/* ImplicitAttributes */
) {
markerInsertPosition = -1;
} else {
while (i < dst.length) {
var dstValue = dst[i++];
if (typeof dstValue === 'number') {
if (dstValue === marker) {
markerInsertPosition = -1;
break;
} else if (dstValue > marker) {
// We need to save this as we want the markers to be inserted in specific order.
markerInsertPosition = i - 1;
break;
}
}
}
} // search until you find place of insertion
while (i < dst.length) {
var item = dst[i];
if (typeof item === 'number') {
// since `i` started as the index after the marker, we did not find it if we are at the next
// marker
break;
} else if (item === key1) {
// We already have same token
if (key2 === null) {
if (value !== null) {
dst[i + 1] = value;
}
return;
} else if (key2 === dst[i + 1]) {
dst[i + 2] = value;
return;
}
} // Increment counter.
i++;
if (key2 !== null) i++;
if (value !== null) i++;
} // insert at location.
if (markerInsertPosition !== -1) {
dst.splice(markerInsertPosition, 0, marker);
i = markerInsertPosition + 1;
}
dst.splice(i++, 0, key1);
if (key2 !== null) {
dst.splice(i++, 0, key2);
}
if (value !== null) {
dst.splice(i++, 0, value);
}
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// Parent Injector Utils ///////////////////////////////////////////////////////////////
function hasParentInjector(parentLocation) {
return parentLocation !== NO_PARENT_INJECTOR;
}
function getParentInjectorIndex(parentLocation) {
ngDevMode && assertNumber(parentLocation, 'Number expected');
ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');
var parentInjectorIndex = parentLocation & 32767
/* InjectorIndexMask */
;
ngDevMode && assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');
return parentLocation & 32767
/* InjectorIndexMask */
;
}
function getParentInjectorViewOffset(parentLocation) {
return parentLocation >> 16
/* ViewOffsetShift */
;
}
/**
* Unwraps a parent injector location number to find the view offset from the current injector,
* then walks up the declaration view tree until the view is found that contains the parent
* injector.
*
* @param location The location of the parent injector, which contains the view offset
* @param startView The LView instance from which to start walking up the view tree
* @returns The LView instance that contains the parent injector
*/
function getParentInjectorView(location, startView) {
var viewOffset = getParentInjectorViewOffset(location);
var parentView = startView; // For most cases, the parent injector can be found on the host node (e.g. for component
// or container), but we must keep the loop here to support the rarer case of deeply nested
// tags or inline views, where the parent injector might live many views
// above the child injector.
while (viewOffset > 0) {
parentView = parentView[DECLARATION_VIEW];
viewOffset--;
}
return parentView;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Defines if the call to `inject` should include `viewProviders` in its resolution.
*
* This is set to true when we try to instantiate a component. This value is reset in
* `getNodeInjectable` to a value which matches the declaration location of the token about to be
* instantiated. This is done so that if we are injecting a token which was declared outside of
* `viewProviders` we don't accidentally pull `viewProviders` in.
*
* Example:
*
* ```
* @Injectable()
* class MyService {
* constructor(public value: String) {}
* }
*
* @Component({
* providers: [
* MyService,
* {provide: String, value: 'providers' }
* ]
* viewProviders: [
* {provide: String, value: 'viewProviders'}
* ]
* })
* class MyComponent {
* constructor(myService: MyService, value: String) {
* // We expect that Component can see into `viewProviders`.
* expect(value).toEqual('viewProviders');
* // `MyService` was not declared in `viewProviders` hence it can't see it.
* expect(myService.value).toEqual('providers');
* }
* }
*
* ```
*/
var includeViewProviders = true;
function setIncludeViewProviders(v) {
var oldValue = includeViewProviders;
includeViewProviders = v;
return oldValue;
}
/**
* The number of slots in each bloom filter (used by DI). The larger this number, the fewer
* directives that will share slots, and thus, the fewer false positives when checking for
* the existence of a directive.
*/
var BLOOM_SIZE = 256;
var BLOOM_MASK = BLOOM_SIZE - 1;
/**
* The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,
* so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash
* number.
*/
var BLOOM_BUCKET_BITS = 5;
/** Counter used to generate unique IDs for directives. */
var nextNgElementId = 0;
/**
* Registers this directive as present in its node's injector by flipping the directive's
* corresponding bit in the injector's bloom filter.
*
* @param injectorIndex The index of the node injector where this token should be registered
* @param tView The TView for the injector's bloom filters
* @param type The directive token to register
*/
function bloomAdd(injectorIndex, tView, type) {
ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
var id;
if (typeof type === 'string') {
id = type.charCodeAt(0) || 0;
} else if (type.hasOwnProperty(NG_ELEMENT_ID)) {
id = type[NG_ELEMENT_ID];
} // Set a unique ID on the directive type, so if something tries to inject the directive,
// we can easily retrieve the ID and hash it into the bloom bit that should be checked.
if (id == null) {
id = type[NG_ELEMENT_ID] = nextNgElementId++;
} // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),
// so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.
var bloomHash = id & BLOOM_MASK; // Create a mask that targets the specific bit associated with the directive.
// JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
// to bit positions 0 - 31 in a 32 bit integer.
var mask = 1 << bloomHash; // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.
// Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask
// should be written to.
tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;
}
/**
* Creates (or gets an existing) injector for a given element or container.
*
* @param tNode for which an injector should be retrieved / created.
* @param lView View where the node is stored
* @returns Node injector
*/
function getOrCreateNodeInjectorForNode(tNode, lView) {
var existingInjectorIndex = getInjectorIndex(tNode, lView);
if (existingInjectorIndex !== -1) {
return existingInjectorIndex;
}
var tView = lView[TVIEW];
if (tView.firstCreatePass) {
tNode.injectorIndex = lView.length;
insertBloom(tView.data, tNode); // foundation for node bloom
insertBloom(lView, null); // foundation for cumulative bloom
insertBloom(tView.blueprint, null);
}
var parentLoc = getParentInjectorLocation(tNode, lView);
var injectorIndex = tNode.injectorIndex; // If a parent injector can't be found, its location is set to -1.
// In that case, we don't need to set up a cumulative bloom
if (hasParentInjector(parentLoc)) {
var parentIndex = getParentInjectorIndex(parentLoc);
var parentLView = getParentInjectorView(parentLoc, lView);
var parentData = parentLView[TVIEW].data; // Creates a cumulative bloom filter that merges the parent's bloom filter
// and its own cumulative bloom (which contains tokens for all ancestors)
for (var i = 0; i < 8
/* BLOOM_SIZE */
; i++) {
lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];
}
}
lView[injectorIndex + 8
/* PARENT */
] = parentLoc;
return injectorIndex;
}
function insertBloom(arr, footer) {
arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);
}
function getInjectorIndex(tNode, lView) {
if (tNode.injectorIndex === -1 || // If the injector index is the same as its parent's injector index, then the index has been
// copied down from the parent node. No injector has been created yet on this node.
tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex || // After the first template pass, the injector index might exist but the parent values
// might not have been calculated yet for this instance
lView[tNode.injectorIndex + 8
/* PARENT */
] === null) {
return -1;
} else {
ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);
return tNode.injectorIndex;
}
}
/**
* Finds the index of the parent injector, with a view offset if applicable. Used to set the
* parent injector initially.
*
* @returns Returns a number that is the combination of the number of LViews that we have to go up
* to find the LView containing the parent inject AND the index of the injector within that LView.
*/
function getParentInjectorLocation(tNode, lView) {
if (tNode.parent && tNode.parent.injectorIndex !== -1) {
// If we have a parent `TNode` and there is an injector associated with it we are done, because
// the parent injector is within the current `LView`.
return tNode.parent.injectorIndex; // ViewOffset is 0
} // When parent injector location is computed it may be outside of the current view. (ie it could
// be pointing to a declared parent location). This variable stores number of declaration parents
// we need to walk up in order to find the parent injector location.
var declarationViewOffset = 0;
var parentTNode = null;
var lViewCursor = lView; // The parent injector is not in the current `LView`. We will have to walk the declared parent
// `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent
// `NodeInjector`.
while (lViewCursor !== null) {
// First determine the `parentTNode` location. The parent pointer differs based on `TView.type`.
var tView = lViewCursor[TVIEW];
var tViewType = tView.type;
if (tViewType === 2
/* Embedded */
) {
ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
parentTNode = tView.declTNode;
} else if (tViewType === 1
/* Component */
) {
// Components don't have `TView.declTNode` because each instance of component could be
// inserted in different location, hence `TView.declTNode` is meaningless.
parentTNode = lViewCursor[T_HOST];
} else {
ngDevMode && assertEqual(tView.type, 0
/* Root */
, 'Root type expected');
parentTNode = null;
}
if (parentTNode === null) {
// If we have no parent, than we are done.
return NO_PARENT_INJECTOR;
}
ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]); // Every iteration of the loop requires that we go to the declared parent.
declarationViewOffset++;
lViewCursor = lViewCursor[DECLARATION_VIEW];
if (parentTNode.injectorIndex !== -1) {
// We found a NodeInjector which points to something.
return parentTNode.injectorIndex | declarationViewOffset << 16
/* ViewOffsetShift */
;
}
}
return NO_PARENT_INJECTOR;
}
/**
* Makes a type or an injection token public to the DI system by adding it to an
* injector's bloom filter.
*
* @param di The node injector in which a directive will be added
* @param token The type or the injection token to be made public
*/
function diPublicInInjector(injectorIndex, tView, token) {
bloomAdd(injectorIndex, tView, token);
}
/**
* Inject static attribute value into directive constructor.
*
* This method is used with `factory` functions which are generated as part of
* `defineDirective` or `defineComponent`. The method retrieves the static value
* of an attribute. (Dynamic attributes are not supported since they are not resolved
* at the time of injection and can change over time.)
*
* # Example
* Given:
* ```
* @Component(...)
* class MyComponent {
* constructor(@Attribute('title') title: string) { ... }
* }
* ```
* When instantiated with
* ```
*
* ```
*
* Then factory method generated is:
* ```
* MyComponent.ɵcmp = defineComponent({
* factory: () => new MyComponent(injectAttribute('title'))
* ...
* })
* ```
*
* @publicApi
*/
function injectAttributeImpl(tNode, attrNameToInject) {
ngDevMode && assertTNodeType(tNode, 12
/* AnyContainer */
| 3
/* AnyRNode */
);
ngDevMode && assertDefined(tNode, 'expecting tNode');
if (attrNameToInject === 'class') {
return tNode.classes;
}
if (attrNameToInject === 'style') {
return tNode.styles;
}
var attrs = tNode.attrs;
if (attrs) {
var attrsLength = attrs.length;
var i = 0;
while (i < attrsLength) {
var value = attrs[i]; // If we hit a `Bindings` or `Template` marker then we are done.
if (isNameOnlyAttributeMarker(value)) break; // Skip namespaced attributes
if (value === 0
/* NamespaceURI */
) {
// we skip the next two values
// as namespaced attributes looks like
// [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',
// 'existValue', ...]
i = i + 2;
} else if (typeof value === 'number') {
// Skip to the first value of the marked attribute.
i++;
while (i < attrsLength && typeof attrs[i] === 'string') {
i++;
}
} else if (value === attrNameToInject) {
return attrs[i + 1];
} else {
i = i + 2;
}
}
}
return null;
}
function notFoundValueOrThrow(notFoundValue, token, flags) {
if (flags & InjectFlags.Optional) {
return notFoundValue;
} else {
throwProviderNotFoundError(token, 'NodeInjector');
}
}
/**
* Returns the value associated to the given token from the ModuleInjector or throws exception
*
* @param lView The `LView` that contains the `tNode`
* @param token The token to look for
* @param flags Injection flags
* @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
* @returns the value from the injector or throws an exception
*/
function lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {
if (flags & InjectFlags.Optional && notFoundValue === undefined) {
// This must be set or the NullInjector will throw for optional deps
notFoundValue = null;
}
if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {
var moduleInjector = lView[INJECTOR]; // switch to `injectInjectorOnly` implementation for module injector, since module injector
// should not have access to Component/Directive DI scope (that may happen through
// `directiveInject` implementation)
var previousInjectImplementation = setInjectImplementation(undefined);
try {
if (moduleInjector) {
return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);
} else {
return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);
}
} finally {
setInjectImplementation(previousInjectImplementation);
}
}
return notFoundValueOrThrow(notFoundValue, token, flags);
}
/**
* Returns the value associated to the given token from the NodeInjectors => ModuleInjector.
*
* Look for the injector providing the token by walking up the node injector tree and then
* the module injector tree.
*
* This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom
* filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)
*
* @param tNode The Node where the search for the injector should start
* @param lView The `LView` that contains the `tNode`
* @param token The token to look for
* @param flags Injection flags
* @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
* @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
*/
function getOrCreateInjectable(tNode, lView, token) {
var flags = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : InjectFlags.Default;
var notFoundValue = arguments.length > 4 ? arguments[4] : undefined;
if (tNode !== null) {
var bloomHash = bloomHashBitOrFactory(token); // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef
// so just call the factory function to create it.
if (typeof bloomHash === 'function') {
if (!enterDI(lView, tNode, flags)) {
// Failed to enter DI, try module injector instead. If a token is injected with the @Host
// flag, the module injector is not searched for that token in Ivy.
return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
}
try {
var value = bloomHash();
if (value == null && !(flags & InjectFlags.Optional)) {
throwProviderNotFoundError(token);
} else {
return value;
}
} finally {
leaveDI();
}
} else if (typeof bloomHash === 'number') {
// A reference to the previous injector TView that was found while climbing the element
// injector tree. This is used to know if viewProviders can be accessed on the current
// injector.
var previousTView = null;
var injectorIndex = getInjectorIndex(tNode, lView);
var parentLocation = NO_PARENT_INJECTOR;
var hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null; // If we should skip this injector, or if there is no injector on this node, start by
// searching the parent injector.
if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {
parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8
/* PARENT */
];
if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {
injectorIndex = -1;
} else {
previousTView = lView[TVIEW];
injectorIndex = getParentInjectorIndex(parentLocation);
lView = getParentInjectorView(parentLocation, lView);
}
} // Traverse up the injector tree until we find a potential match or until we know there
// *isn't* a match.
while (injectorIndex !== -1) {
ngDevMode && assertNodeInjector(lView, injectorIndex); // Check the current injector. If it matches, see if it contains token.
var tView = lView[TVIEW];
ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8
/* TNODE */
], lView);
if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {
// At this point, we have an injector which *may* contain the token, so we step through
// the providers and directives associated with the injector's corresponding node to get
// the instance.
var instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);
if (instance !== NOT_FOUND) {
return instance;
}
}
parentLocation = lView[injectorIndex + 8
/* PARENT */
];
if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8
/* TNODE */
] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {
// The def wasn't found anywhere on this node, so it was a false positive.
// Traverse up the tree and continue searching.
previousTView = tView;
injectorIndex = getParentInjectorIndex(parentLocation);
lView = getParentInjectorView(parentLocation, lView);
} else {
// If we should not search parent OR If the ancestor bloom filter value does not have the
// bit corresponding to the directive we can give up on traversing up to find the specific
// injector.
injectorIndex = -1;
}
}
}
}
return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
}
var NOT_FOUND = {};
function createNodeInjector() {
return new NodeInjector(getCurrentTNode(), getLView());
}
function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {
var currentTView = lView[TVIEW];
var tNode = currentTView.data[injectorIndex + 8
/* TNODE */
]; // First, we need to determine if view providers can be accessed by the starting element.
// There are two possibilities
var canAccessViewProviders = previousTView == null ? // 1) This is the first invocation `previousTView == null` which means that we are at the
// `TNode` of where injector is starting to look. In such a case the only time we are allowed
// to look into the ViewProviders is if:
// - we are on a component
// - AND the injector set `includeViewProviders` to true (implying that the token can see
// ViewProviders because it is the Component or a Service which itself was declared in
// ViewProviders)
isComponentHost(tNode) && includeViewProviders : // 2) `previousTView != null` which means that we are now walking across the parent nodes.
// In such a case we are only allowed to look into the ViewProviders if:
// - We just crossed from child View to Parent View `previousTView != currentTView`
// - AND the parent TNode is an Element.
// This means that we just came from the Component's View and therefore are allowed to see
// into the ViewProviders.
previousTView != currentTView && (tNode.type & 3
/* AnyRNode */
) !== 0; // This special case happens when there is a @host on the inject and when we are searching
// on the host element node.
var isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;
var injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);
if (injectableIdx !== null) {
return getNodeInjectable(lView, currentTView, injectableIdx, tNode);
} else {
return NOT_FOUND;
}
}
/**
* Searches for the given token among the node's directives and providers.
*
* @param tNode TNode on which directives are present.
* @param tView The tView we are currently processing
* @param token Provider token or type of a directive to look for.
* @param canAccessViewProviders Whether view providers should be considered.
* @param isHostSpecialCase Whether the host special case applies.
* @returns Index of a found directive or provider, or null when none found.
*/
function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {
var nodeProviderIndexes = tNode.providerIndexes;
var tInjectables = tView.data;
var injectablesStart = nodeProviderIndexes & 1048575
/* ProvidersStartIndexMask */
;
var directivesStart = tNode.directiveStart;
var directiveEnd = tNode.directiveEnd;
var cptViewProvidersCount = nodeProviderIndexes >> 20
/* CptViewProvidersCountShift */
;
var startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount; // When the host special case applies, only the viewProviders and the component are visible
var endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;
for (var i = startingIndex; i < endIndex; i++) {
var providerTokenOrDef = tInjectables[i];
if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {
return i;
}
}
if (isHostSpecialCase) {
var dirDef = tInjectables[directivesStart];
if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {
return directivesStart;
}
}
return null;
}
/**
* Retrieve or instantiate the injectable from the `LView` at particular `index`.
*
* This function checks to see if the value has already been instantiated and if so returns the
* cached `injectable`. Otherwise if it detects that the value is still a factory it
* instantiates the `injectable` and caches the value.
*/
function getNodeInjectable(lView, tView, index, tNode) {
var value = lView[index];
var tData = tView.data;
if (isFactory(value)) {
var factory = value;
if (factory.resolving) {
throwCyclicDependencyError(stringifyForError(tData[index]));
}
var previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);
factory.resolving = true;
var previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;
var success = enterDI(lView, tNode, InjectFlags.Default);
ngDevMode && assertEqual(success, true, 'Because flags do not contain \`SkipSelf\' we expect this to always succeed.');
try {
value = lView[index] = factory.factory(undefined, tData, lView, tNode); // This code path is hit for both directives and providers.
// For perf reasons, we want to avoid searching for hooks on providers.
// It does no harm to try (the hooks just won't exist), but the extra
// checks are unnecessary and this is a hot path. So we check to see
// if the index of the dependency is in the directive range for this
// tNode. If it's not, we know it's a provider and skip hook registration.
if (tView.firstCreatePass && index >= tNode.directiveStart) {
ngDevMode && assertDirectiveDef(tData[index]);
registerPreOrderHooks(index, tData[index], tView);
}
} finally {
previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);
setIncludeViewProviders(previousIncludeViewProviders);
factory.resolving = false;
leaveDI();
}
}
return value;
}
/**
* Returns the bit in an injector's bloom filter that should be used to determine whether or not
* the directive might be provided by the injector.
*
* When a directive is public, it is added to the bloom filter and given a unique ID that can be
* retrieved on the Type. When the directive isn't public or the token is not a directive `null`
* is returned as the node injector can not possibly provide that token.
*
* @param token the injection token
* @returns the matching bit to check in the bloom filter or `null` if the token is not known.
* When the returned value is negative then it represents special values such as `Injector`.
*/
function bloomHashBitOrFactory(token) {
ngDevMode && assertDefined(token, 'token must be defined');
if (typeof token === 'string') {
return token.charCodeAt(0) || 0;
}
var tokenId = // First check with `hasOwnProperty` so we don't get an inherited ID.
token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined; // Negative token IDs are used for special objects such as `Injector`
if (typeof tokenId === 'number') {
if (tokenId >= 0) {
return tokenId & BLOOM_MASK;
} else {
ngDevMode && assertEqual(tokenId, -1
/* Injector */
, 'Expecting to get Special Injector Id');
return createNodeInjector;
}
} else {
return tokenId;
}
}
function bloomHasToken(bloomHash, injectorIndex, injectorView) {
// Create a mask that targets the specific bit associated with the directive we're looking for.
// JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
// to bit positions 0 - 31 in a 32 bit integer.
var mask = 1 << bloomHash; // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of
// `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset
// that should be used.
var value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)]; // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,
// this injector is a potential match.
return !!(value & mask);
}
/** Returns true if flags prevent parent injector from being searched for tokens */
function shouldSearchParent(flags, isFirstHostTNode) {
return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);
}
var NodeInjector = /*#__PURE__*/function () {
function NodeInjector(_tNode, _lView) {
_classCallCheck(this, NodeInjector);
this._tNode = _tNode;
this._lView = _lView;
}
_createClass2(NodeInjector, [{
key: "get",
value: function get(token, notFoundValue) {
return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue);
}
}]);
return NodeInjector;
}();
/**
* @codeGenApi
*/
function ɵɵgetFactoryOf(type) {
var typeAny = type;
if (isForwardRef(type)) {
return function () {
var factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny));
return factory ? factory() : null;
};
}
var factory = getFactoryDef(typeAny);
if (factory === null) {
var injectorDef = getInjectorDef(typeAny);
factory = injectorDef && injectorDef.factory;
}
return factory || null;
}
/**
* @codeGenApi
*/
function ɵɵgetInheritedFactory(type) {
return noSideEffects(function () {
var ownConstructor = type.prototype.constructor;
var ownFactory = ownConstructor[NG_FACTORY_DEF] || ɵɵgetFactoryOf(ownConstructor);
var objectPrototype = Object.prototype;
var parent = Object.getPrototypeOf(type.prototype).constructor; // Go up the prototype until we hit `Object`.
while (parent && parent !== objectPrototype) {
var factory = parent[NG_FACTORY_DEF] || ɵɵgetFactoryOf(parent); // If we hit something that has a factory and the factory isn't the same as the type,
// we've found the inherited factory. Note the check that the factory isn't the type's
// own factory is redundant in most cases, but if the user has custom decorators on the
// class, this lookup will start one level down in the prototype chain, causing us to
// find the own factory first and potentially triggering an infinite loop downstream.
if (factory && factory !== ownFactory) {
return factory;
}
parent = Object.getPrototypeOf(parent);
} // There is no factory defined. Either this was improper usage of inheritance
// (no Angular decorator on the superclass) or there is no constructor at all
// in the inheritance chain. Since the two cases cannot be distinguished, the
// latter has to be assumed.
return function (t) {
return new t();
};
});
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Facade for the attribute injection from DI.
*
* @codeGenApi
*/
function ɵɵinjectAttribute(attrNameToInject) {
return injectAttributeImpl(getCurrentTNode(), attrNameToInject);
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ANNOTATIONS = '__annotations__';
var PARAMETERS = '__parameters__';
var PROP_METADATA = '__prop__metadata__';
/**
* @suppress {globalThis}
*/
function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function DecoratorFactory() {
for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
args[_key23] = arguments[_key23];
}
if (this instanceof DecoratorFactory) {
metaCtor.call.apply(metaCtor, [this].concat(args));
return this;
}
var annotationInstance = _construct(DecoratorFactory, args);
return function TypeDecorator(cls) {
if (typeFn) typeFn.apply(void 0, [cls].concat(args)); // Use of Object.defineProperty is important since it creates non-enumerable property which
// prevents the property is copied during subclassing.
var annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {
value: []
})[ANNOTATIONS];
annotations.push(annotationInstance);
if (additionalProcessing) additionalProcessing(cls);
return cls;
};
}
if (parentClass) {
DecoratorFactory.prototype = Object.create(parentClass.prototype);
}
DecoratorFactory.prototype.ngMetadataName = name;
DecoratorFactory.annotationCls = DecoratorFactory;
return DecoratorFactory;
});
}
function makeMetadataCtor(props) {
return function ctor() {
if (props) {
var values = props.apply(void 0, arguments);
for (var propName in values) {
this[propName] = values[propName];
}
}
};
}
function makeParamDecorator(name, props, parentClass) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function ParamDecoratorFactory() {
for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
args[_key24] = arguments[_key24];
}
if (this instanceof ParamDecoratorFactory) {
metaCtor.apply(this, args);
return this;
}
var annotationInstance = _construct(ParamDecoratorFactory, args);
ParamDecorator.annotation = annotationInstance;
return ParamDecorator;
function ParamDecorator(cls, unusedKey, index) {
// Use of Object.defineProperty is important since it creates non-enumerable property which
// prevents the property is copied during subclassing.
var parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {
value: []
})[PARAMETERS]; // there might be gaps if some in between parameters do not have annotations.
// we pad with nulls.
while (parameters.length <= index) {
parameters.push(null);
}
(parameters[index] = parameters[index] || []).push(annotationInstance);
return cls;
}
}
if (parentClass) {
ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);
}
ParamDecoratorFactory.prototype.ngMetadataName = name;
ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;
return ParamDecoratorFactory;
});
}
function makePropDecorator(name, props, parentClass, additionalProcessing) {
return noSideEffects(function () {
var metaCtor = makeMetadataCtor(props);
function PropDecoratorFactory() {
for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
args[_key25] = arguments[_key25];
}
if (this instanceof PropDecoratorFactory) {
metaCtor.apply(this, args);
return this;
}
var decoratorInstance = _construct(PropDecoratorFactory, args);
function PropDecorator(target, name) {
var constructor = target.constructor; // Use of Object.defineProperty is important because it creates a non-enumerable property
// which prevents the property from being copied during subclassing.
var meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {
value: {}
})[PROP_METADATA];
meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
meta[name].unshift(decoratorInstance);
if (additionalProcessing) additionalProcessing.apply(void 0, [target, name].concat(args));
}
return PropDecorator;
}
if (parentClass) {
PropDecoratorFactory.prototype = Object.create(parentClass.prototype);
}
PropDecoratorFactory.prototype.ngMetadataName = name;
PropDecoratorFactory.annotationCls = PropDecoratorFactory;
return PropDecoratorFactory;
});
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function CREATE_ATTRIBUTE_DECORATOR__PRE_R3__() {
return makeParamDecorator('Attribute', function (attributeName) {
return {
attributeName: attributeName
};
});
}
function CREATE_ATTRIBUTE_DECORATOR__POST_R3__() {
return makeParamDecorator('Attribute', function (attributeName) {
return {
attributeName: attributeName,
__NG_ELEMENT_ID__: function __NG_ELEMENT_ID__() {
return ɵɵinjectAttribute(attributeName);
}
};
});
}
var CREATE_ATTRIBUTE_DECORATOR_IMPL = CREATE_ATTRIBUTE_DECORATOR__POST_R3__;
/**
* Attribute decorator and metadata.
*
* @Annotation
* @publicApi
*/
var Attribute = CREATE_ATTRIBUTE_DECORATOR_IMPL();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Creates a token that can be used in a DI Provider.
*
* Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
* runtime representation) such as when injecting an interface, callable type, array or
* parameterized type.
*
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
* the `Injector`. This provides additional level of type safety.
*
* ```
* interface MyInterface {...}
* var myInterface = injector.get(new InjectionToken('SomeToken'));
* // myInterface is inferred to be MyInterface.
* ```
*
* When creating an `InjectionToken`, you can optionally specify a factory function which returns
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
* application's root injector. If the factory function, which takes zero arguments, needs to inject
* dependencies, it can do so using the `inject` function. See below for an example.
*
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
* mentioned above, `'root'` is the default value for `providedIn`.
*
* @usageNotes
* ### Basic Example
*
* ### Plain InjectionToken
*
* {@example core/di/ts/injector_spec.ts region='InjectionToken'}
*
* ### Tree-shakable InjectionToken
*
* {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
*
*
* @publicApi
*/
var InjectionToken = /*#__PURE__*/function () {
function InjectionToken(_desc, options) {
_classCallCheck(this, InjectionToken);
this._desc = _desc;
/** @internal */
this.ngMetadataName = 'InjectionToken';
this.ɵprov = undefined;
if (typeof options == 'number') {
(typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here'); // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.
// See `InjectorMarkers`
this.__NG_ELEMENT_ID__ = options;
} else if (options !== undefined) {
this.ɵprov = ɵɵdefineInjectable({
token: this,
providedIn: options.providedIn || 'root',
factory: options.factory
});
}
}
_createClass2(InjectionToken, [{
key: "toString",
value: function toString() {
return "InjectionToken ".concat(this._desc);
}
}]);
return InjectionToken;
}();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* A DI token that you can use to create a virtual [provider](guide/glossary#provider)
* that will populate the `entryComponents` field of components and NgModules
* based on its `useValue` property value.
* All components that are referenced in the `useValue` value (either directly
* or in a nested array or map) are added to the `entryComponents` property.
*
* @usageNotes
*
* The following example shows how the router can populate the `entryComponents`
* field of an NgModule based on a router configuration that refers
* to components.
*
* ```typescript
* // helper function inside the router
* function provideRoutes(routes) {
* return [
* {provide: ROUTES, useValue: routes},
* {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}
* ];
* }
*
* // user code
* let routes = [
* {path: '/root', component: RootComp},
* {path: '/teams', component: TeamsComp}
* ];
*
* @NgModule({
* providers: [provideRoutes(routes)]
* })
* class ModuleWithRoutes {}
* ```
*
* @publicApi
* @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
*/
var ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents'); // Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not
// explicitly set. This value will be changed to `true` in v12.
// TODO(misko): switch the default in v12 to `true`. See: packages/compiler/src/core.ts
var emitDistinctChangesOnlyDefaultValue = false;
/**
* Base class for query metadata.
*
* @see `ContentChildren`.
* @see `ContentChild`.
* @see `ViewChildren`.
* @see `ViewChild`.
*
* @publicApi
*/
var Query = function Query() {
_classCallCheck(this, Query);
};
var ɵ0$1 = function ɵ0$1(selector) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return Object.assign({
selector: selector,
first: false,
isViewQuery: false,
descendants: false,
emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue
}, data);
};
/**
* ContentChildren decorator and metadata.
*
*
* @Annotation
* @publicApi
*/
var ContentChildren = makePropDecorator('ContentChildren', ɵ0$1, Query);
var ɵ1 = function ɵ1(selector) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return Object.assign({
selector: selector,
first: true,
isViewQuery: false,
descendants: true
}, data);
};
/**
* ContentChild decorator and metadata.
*
*
* @Annotation
*
* @publicApi
*/
var ContentChild = makePropDecorator('ContentChild', ɵ1, Query);
var ɵ2 = function ɵ2(selector) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return Object.assign({
selector: selector,
first: false,
isViewQuery: true,
descendants: true,
emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue
}, data);
};
/**
* ViewChildren decorator and metadata.
*
* @Annotation
* @publicApi
*/
var ViewChildren = makePropDecorator('ViewChildren', ɵ2, Query);
var ɵ3 = function ɵ3(selector, data) {
return Object.assign({
selector: selector,
first: true,
isViewQuery: true,
descendants: true
}, data);
};
/**
* ViewChild decorator and metadata.
*
* @Annotation
* @publicApi
*/
var ViewChild = makePropDecorator('ViewChild', ɵ3, Query);
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var R3ResolvedDependencyType;
(function (R3ResolvedDependencyType) {
R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token";
R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute";
R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef";
R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid";
})(R3ResolvedDependencyType || (R3ResolvedDependencyType = {}));
var R3FactoryTarget;
(function (R3FactoryTarget) {
R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive";
R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component";
R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable";
R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe";
R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule";
})(R3FactoryTarget || (R3FactoryTarget = {}));
var ViewEncapsulation$1;
(function (ViewEncapsulation) {
ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function getCompilerFacade() {
var globalNg = _global['ng'];
if (!globalNg || !globalNg.ɵcompilerFacade) {
throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n" + " - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n" + " - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n" + " - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");
}
return globalNg.ɵcompilerFacade;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @description
*
* Represents a type that a Component or other object is instances of.
*
* An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
* the `MyCustomComponent` constructor function.
*
* @publicApi
*/
var Type = Function;
function isType(v) {
return typeof v === 'function';
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Equivalent to ES6 spread, add each item to an array.
*
* @param items The items to add
* @param arr The array to which you want to add the items
*/
function addAllToArray(items, arr) {
for (var i = 0; i < items.length; i++) {
arr.push(items[i]);
}
}
/**
* Determines if the contents of two arrays is identical
*
* @param a first array
* @param b second array
* @param identityAccessor Optional function for extracting stable object identity from a value in
* the array.
*/
function arrayEquals(a, b, identityAccessor) {
if (a.length !== b.length) return false;
for (var i = 0; i < a.length; i++) {
var valueA = a[i];
var valueB = b[i];
if (identityAccessor) {
valueA = identityAccessor(valueA);
valueB = identityAccessor(valueB);
}
if (valueB !== valueA) {
return false;
}
}
return true;
}
/**
* Flattens an array.
*/
function flatten(list, dst) {
if (dst === undefined) dst = list;
for (var i = 0; i < list.length; i++) {
var item = list[i];
if (Array.isArray(item)) {
// we need to inline it.
if (dst === list) {
// Our assumption that the list was already flat was wrong and
// we need to clone flat since we need to write to it.
dst = list.slice(0, i);
}
flatten(item, dst);
} else if (dst !== list) {
dst.push(item);
}
}
return dst;
}
function deepForEach(input, fn) {
input.forEach(function (value) {
return Array.isArray(value) ? deepForEach(value, fn) : fn(value);
});
}
function addToArray(arr, index, value) {
// perf: array.push is faster than array.splice!
if (index >= arr.length) {
arr.push(value);
} else {
arr.splice(index, 0, value);
}
}
function removeFromArray(arr, index) {
// perf: array.pop is faster than array.splice!
if (index >= arr.length - 1) {
return arr.pop();
} else {
return arr.splice(index, 1)[0];
}
}
function newArray(size, value) {
var list = [];
for (var i = 0; i < size; i++) {
list.push(value);
}
return list;
}
/**
* Remove item from array (Same as `Array.splice()` but faster.)
*
* `Array.splice()` is not as fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* https://jsperf.com/fast-array-splice (About 20x faster)
*
* @param array Array to splice
* @param index Index of element in array to remove.
* @param count Number of items to remove.
*/
function arraySplice(array, index, count) {
var length = array.length - count;
while (index < length) {
array[index] = array[index + count];
index++;
}
while (count--) {
array.pop(); // shrink the array
}
}
/**
* Same as `Array.splice(index, 0, value)` but faster.
*
* `Array.splice()` is not fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* @param array Array to splice.
* @param index Index in array where the `value` should be added.
* @param value Value to add to array.
*/
function arrayInsert(array, index, value) {
ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
var end = array.length;
while (end > index) {
var previousEnd = end - 1;
array[end] = array[previousEnd];
end = previousEnd;
}
array[index] = value;
}
/**
* Same as `Array.splice2(index, 0, value1, value2)` but faster.
*
* `Array.splice()` is not fast because it has to allocate an array for the elements which were
* removed. This causes memory pressure and slows down code when most of the time we don't
* care about the deleted items array.
*
* @param array Array to splice.
* @param index Index in array where the `value` should be added.
* @param value1 Value to add to array.
* @param value2 Value to add to array.
*/
function arrayInsert2(array, index, value1, value2) {
ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
var end = array.length;
if (end == index) {
// inserting at the end.
array.push(value1, value2);
} else if (end === 1) {
// corner case when we have less items in array than we have items to insert.
array.push(value2, array[0]);
array[0] = value1;
} else {
end--;
array.push(array[end - 1], array[end]);
while (end > index) {
var previousEnd = end - 2;
array[end] = array[previousEnd];
end--;
}
array[index] = value1;
array[index + 1] = value2;
}
}
/**
* Insert a `value` into an `array` so that the array remains sorted.
*
* NOTE:
* - Duplicates are not allowed, and are ignored.
* - This uses binary search algorithm for fast inserts.
*
* @param array A sorted array to insert into.
* @param value The value to insert.
* @returns index of the inserted value.
*/
function arrayInsertSorted(array, value) {
var index = arrayIndexOfSorted(array, value);
if (index < 0) {
// if we did not find it insert it.
index = ~index;
arrayInsert(array, index, value);
}
return index;
}
/**
* Remove `value` from a sorted `array`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to remove from.
* @param value The value to remove.
* @returns index of the removed value.
* - positive index if value found and removed.
* - negative index if value not found. (`~index` to get the value where it should have been
* inserted)
*/
function arrayRemoveSorted(array, value) {
var index = arrayIndexOfSorted(array, value);
if (index >= 0) {
arraySplice(array, index, 1);
}
return index;
}
/**
* Get an index of an `value` in a sorted `array`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to binary search.
* @param value The value to look for.
* @returns index of the value.
* - positive index if value found.
* - negative index if value not found. (`~index` to get the value where it should have been
* located)
*/
function arrayIndexOfSorted(array, value) {
return _arrayIndexOfSorted(array, value, 0);
}
/**
* Set a `value` for a `key`.
*
* @param keyValueArray to modify.
* @param key The key to locate or create.
* @param value The value to set for a `key`.
* @returns index (always even) of where the value vas set.
*/
function keyValueArraySet(keyValueArray, key, value) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it set it.
keyValueArray[index | 1] = value;
} else {
index = ~index;
arrayInsert2(keyValueArray, index, key, value);
}
return index;
}
/**
* Retrieve a `value` for a `key` (on `undefined` if not found.)
*
* @param keyValueArray to search.
* @param key The key to locate.
* @return The `value` stored at the `key` location or `undefined if not found.
*/
function keyValueArrayGet(keyValueArray, key) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it retrieve it.
return keyValueArray[index | 1];
}
return undefined;
}
/**
* Retrieve a `key` index value in the array or `-1` if not found.
*
* @param keyValueArray to search.
* @param key The key to locate.
* @returns index of where the key is (or should have been.)
* - positive (even) index if key found.
* - negative index if key not found. (`~index` (even) to get the index where it should have
* been inserted.)
*/
function keyValueArrayIndexOf(keyValueArray, key) {
return _arrayIndexOfSorted(keyValueArray, key, 1);
}
/**
* Delete a `key` (and `value`) from the `KeyValueArray`.
*
* @param keyValueArray to modify.
* @param key The key to locate or delete (if exist).
* @returns index of where the key was (or should have been.)
* - positive (even) index if key found and deleted.
* - negative index if key not found. (`~index` (even) to get the index where it should have
* been.)
*/
function keyValueArrayDelete(keyValueArray, key) {
var index = keyValueArrayIndexOf(keyValueArray, key);
if (index >= 0) {
// if we found it remove it.
arraySplice(keyValueArray, index, 2);
}
return index;
}
/**
* INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.
*
* NOTE:
* - This uses binary search algorithm for fast removals.
*
* @param array A sorted array to binary search.
* @param value The value to look for.
* @param shift grouping shift.
* - `0` means look at every location
* - `1` means only look at every other (even) location (the odd locations are to be ignored as
* they are values.)
* @returns index of the value.
* - positive index if value found.
* - negative index if value not found. (`~index` to get the value where it should have been
* inserted)
*/
function _arrayIndexOfSorted(array, value, shift) {
ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');
var start = 0;
var end = array.length >> shift;
while (end !== start) {
var middle = start + (end - start >> 1); // find the middle.
var current = array[middle << shift];
if (value === current) {
return middle << shift;
} else if (current > value) {
end = middle;
} else {
start = middle + 1; // We already searched middle so make it non-inclusive by adding 1
}
}
return ~(end << shift);
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/*
* #########################
* Attention: These Regular expressions have to hold even if the code is minified!
* ##########################
*/
/**
* Regular expression that detects pass-through constructors for ES5 output. This Regex
* intends to capture the common delegation pattern emitted by TypeScript and Babel. Also
* it intends to capture the pattern where existing constructors have been downleveled from
* ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.
*
* ```
* function MyClass() {
* var _this = _super.apply(this, arguments) || this;
* ```
*
* ```
* function MyClass() {
* var _this = _super.apply(this, __spread(arguments)) || this;
* ```
*
* More details can be found in: https://github.com/angular/angular/issues/38453.
*/
var ES5_DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/;
/** Regular expression that detects ES2015 classes which extend from other classes. */
var ES2015_INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/;
/**
* Regular expression that detects ES2015 classes which extend from other classes and
* have an explicit constructor defined.
*/
var ES2015_INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/;
/**
* Regular expression that detects ES2015 classes which extend from other classes
* and inherit a constructor.
*/
var ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;
/**
* Determine whether a stringified type is a class which delegates its constructor
* to its parent.
*
* This is not trivial since compiled code can actually contain a constructor function
* even if the original source code did not. For instance, when the child class contains
* an initialized instance property.
*/
function isDelegateCtor(typeStr) {
return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);
}
var ReflectionCapabilities = /*#__PURE__*/function () {
function ReflectionCapabilities(reflect) {
_classCallCheck(this, ReflectionCapabilities);
this._reflect = reflect || _global['Reflect'];
}
_createClass2(ReflectionCapabilities, [{
key: "isReflectionEnabled",
value: function isReflectionEnabled() {
return true;
}
}, {
key: "factory",
value: function factory(t) {
return function () {
for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
args[_key26] = arguments[_key26];
}
return _construct(t, args);
};
}
/** @internal */
}, {
key: "_zipTypesAndAnnotations",
value: function _zipTypesAndAnnotations(paramTypes, paramAnnotations) {
var result;
if (typeof paramTypes === 'undefined') {
result = newArray(paramAnnotations.length);
} else {
result = newArray(paramTypes.length);
}
for (var i = 0; i < result.length; i++) {
// TS outputs Object for parameters without types, while Traceur omits
// the annotations. For now we preserve the Traceur behavior to aid
// migration, but this can be revisited.
if (typeof paramTypes === 'undefined') {
result[i] = [];
} else if (paramTypes[i] && paramTypes[i] != Object) {
result[i] = [paramTypes[i]];
} else {
result[i] = [];
}
if (paramAnnotations && paramAnnotations[i] != null) {
result[i] = result[i].concat(paramAnnotations[i]);
}
}
return result;
}
}, {
key: "_ownParameters",
value: function _ownParameters(type, parentCtor) {
var typeStr = type.toString(); // If we have no decorators, we only have function.length as metadata.
// In that case, to detect whether a child class declared an own constructor or not,
// we need to look inside of that constructor to check whether it is
// just calling the parent.
// This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
// that sets 'design:paramtypes' to []
// if a class inherits from another class but has no ctor declared itself.
if (isDelegateCtor(typeStr)) {
return null;
} // Prefer the direct API.
if (type.parameters && type.parameters !== parentCtor.parameters) {
return type.parameters;
} // API of tsickle for lowering decorators to properties on the class.
var tsickleCtorParams = type.ctorParameters;
if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {
// Newer tsickle uses a function closure
// Retain the non-function case for compatibility with older tsickle
var ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;
var _paramTypes = ctorParameters.map(function (ctorParam) {
return ctorParam && ctorParam.type;
});
var _paramAnnotations = ctorParameters.map(function (ctorParam) {
return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);
});
return this._zipTypesAndAnnotations(_paramTypes, _paramAnnotations);
} // API for metadata created by invoking the decorators.
var paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];
var paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);
if (paramTypes || paramAnnotations) {
return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
} // If a class has no decorators, at least create metadata
// based on function.length.
// Note: We know that this is a real constructor as we checked
// the content of the constructor above.
return newArray(type.length);
}
}, {
key: "parameters",
value: function parameters(type) {
// Note: only report metadata if we have at least one class decorator
// to stay in sync with the static reflector.
if (!isType(type)) {
return [];
}
var parentCtor = getParentCtor(type);
var parameters = this._ownParameters(type, parentCtor);
if (!parameters && parentCtor !== Object) {
parameters = this.parameters(parentCtor);
}
return parameters || [];
}
}, {
key: "_ownAnnotations",
value: function _ownAnnotations(typeOrFunc, parentCtor) {
// Prefer the direct API.
if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {
var annotations = typeOrFunc.annotations;
if (typeof annotations === 'function' && annotations.annotations) {
annotations = annotations.annotations;
}
return annotations;
} // API of tsickle for lowering decorators to properties on the class.
if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {
return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);
} // API for metadata created by invoking the decorators.
if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {
return typeOrFunc[ANNOTATIONS];
}
return null;
}
}, {
key: "annotations",
value: function annotations(typeOrFunc) {
if (!isType(typeOrFunc)) {
return [];
}
var parentCtor = getParentCtor(typeOrFunc);
var ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
var parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
return parentAnnotations.concat(ownAnnotations);
}
}, {
key: "_ownPropMetadata",
value: function _ownPropMetadata(typeOrFunc, parentCtor) {
// Prefer the direct API.
if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {
var propMetadata = typeOrFunc.propMetadata;
if (typeof propMetadata === 'function' && propMetadata.propMetadata) {
propMetadata = propMetadata.propMetadata;
}
return propMetadata;
} // API of tsickle for lowering decorators to properties on the class.
if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {
var propDecorators = typeOrFunc.propDecorators;
var _propMetadata = {};
Object.keys(propDecorators).forEach(function (prop) {
_propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
});
return _propMetadata;
} // API for metadata created by invoking the decorators.
if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {
return typeOrFunc[PROP_METADATA];
}
return null;
}
}, {
key: "propMetadata",
value: function propMetadata(typeOrFunc) {
if (!isType(typeOrFunc)) {
return {};
}
var parentCtor = getParentCtor(typeOrFunc);
var propMetadata = {};
if (parentCtor !== Object) {
var parentPropMetadata = this.propMetadata(parentCtor);
Object.keys(parentPropMetadata).forEach(function (propName) {
propMetadata[propName] = parentPropMetadata[propName];
});
}
var ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);
if (ownPropMetadata) {
Object.keys(ownPropMetadata).forEach(function (propName) {
var decorators = [];
if (propMetadata.hasOwnProperty(propName)) {
decorators.push.apply(decorators, _toConsumableArray(propMetadata[propName]));
}
decorators.push.apply(decorators, _toConsumableArray(ownPropMetadata[propName]));
propMetadata[propName] = decorators;
});
}
return propMetadata;
}
}, {
key: "ownPropMetadata",
value: function ownPropMetadata(typeOrFunc) {
if (!isType(typeOrFunc)) {
return {};
}
return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};
}
}, {
key: "hasLifecycleHook",
value: function hasLifecycleHook(type, lcProperty) {
return type instanceof Type && lcProperty in type.prototype;
}
}, {
key: "guards",
value: function guards(type) {
return {};
}
}, {
key: "getter",
value: function getter(name) {
return new Function('o', 'return o.' + name + ';');
}
}, {
key: "setter",
value: function setter(name) {
return new Function('o', 'v', 'return o.' + name + ' = v;');
}
}, {
key: "method",
value: function method(name) {
var functionBody = "if (!o.".concat(name, ") throw new Error('\"").concat(name, "\" is undefined');\n return o.").concat(name, ".apply(o, args);");
return new Function('o', 'args', functionBody);
} // There is not a concept of import uri in Js, but this is useful in developing Dart applications.
}, {
key: "importUri",
value: function importUri(type) {
// StaticSymbol
if (typeof type === 'object' && type['filePath']) {
return type['filePath'];
} // Runtime type
return "./".concat(stringify(type));
}
}, {
key: "resourceUri",
value: function resourceUri(type) {
return "./".concat(stringify(type));
}
}, {
key: "resolveIdentifier",
value: function resolveIdentifier(name, moduleUrl, members, runtime) {
return runtime;
}
}, {
key: "resolveEnum",
value: function resolveEnum(enumIdentifier, name) {
return enumIdentifier[name];
}
}]);
return ReflectionCapabilities;
}();
function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
if (!decoratorInvocations) {
return [];
}
return decoratorInvocations.map(function (decoratorInvocation) {
var decoratorType = decoratorInvocation.type;
var annotationCls = decoratorType.annotationCls;
var annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];
return _construct(annotationCls, _toConsumableArray(annotationArgs));
});
}
function getParentCtor(ctor) {
var parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
var parentCtor = parentProto ? parentProto.constructor : null; // Note: We always use `Object` as the null value
// to simplify checking later on.
return parentCtor || Object;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var _THROW_IF_NOT_FOUND = {};
var THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;
/*
* Name of a property (that we patch onto DI decorator), which is used as an annotation of which
* InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators
* in the code, thus making them tree-shakable.
*/
var DI_DECORATOR_FLAG = '__NG_DI_FLAG__';
var NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';
var NG_TOKEN_PATH = 'ngTokenPath';
var NEW_LINE = /\n/gm;
var NO_NEW_LINE = 'ɵ';
var SOURCE = '__source';
var ɵ0$2 = getClosureSafeProperty;
var USE_VALUE = getClosureSafeProperty({
provide: String,
useValue: ɵ0$2
});
/**
* Current injector value used by `inject`.
* - `undefined`: it is an error to call `inject`
* - `null`: `inject` can be called but there is no injector (limp-mode).
* - Injector instance: Use the injector for resolution.
*/
var _currentInjector = undefined;
function setCurrentInjector(injector) {
var former = _currentInjector;
_currentInjector = injector;
return former;
}
function injectInjectorOnly(token) {
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
if (_currentInjector === undefined) {
throw new Error("inject() must be called from an injection context");
} else if (_currentInjector === null) {
return injectRootLimpMode(token, undefined, flags);
} else {
return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);
}
}
function ɵɵinject(token) {
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);
}
/**
* Throws an error indicating that a factory function could not be generated by the compiler for a
* particular class.
*
* This instruction allows the actual error message to be optimized away when ngDevMode is turned
* off, saving bytes of generated code while still providing a good experience in dev mode.
*
* The name of the class is not mentioned here, but will be in the generated factory function name
* and thus in the stack trace.
*
* @codeGenApi
*/
function ɵɵinvalidFactoryDep(index) {
var msg = ngDevMode ? "This constructor is not compatible with Angular Dependency Injection because its dependency at index ".concat(index, " of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ").concat(index, " is correct and 2) the correct Angular decorators are defined for this class and its ancestors.") : 'invalid';
throw new Error(msg);
}
/**
* Injects a token from the currently active injector.
*
* Must be used in the context of a factory function such as one defined for an
* `InjectionToken`. Throws an error if not called from such a context.
*
* Within such a factory function, using this function to request injection of a dependency
* is faster and more type-safe than providing an additional array of dependencies
* (as has been common with `useFactory` providers).
*
* @param token The injection token for the dependency to be injected.
* @param flags Optional flags that control how injection is executed.
* The flags correspond to injection strategies that can be specified with
* parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
* @returns True if injection is successful, null otherwise.
*
* @usageNotes
*
* ### Example
*
* {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
*
* @publicApi
*/
var inject = ɵɵinject;
function injectArgs(types) {
var args = [];
for (var i = 0; i < types.length; i++) {
var arg = resolveForwardRef(types[i]);
if (Array.isArray(arg)) {
if (arg.length === 0) {
throw new Error('Arguments array must have arguments.');
}
var type = undefined;
var flags = InjectFlags.Default;
for (var j = 0; j < arg.length; j++) {
var meta = arg[j];
var flag = getInjectFlag(meta);
if (typeof flag === 'number') {
// Special case when we handle @Inject decorator.
if (flag === -1
/* Inject */
) {
type = meta.token;
} else {
flags |= flag;
}
} else {
type = meta;
}
}
args.push(ɵɵinject(type, flags));
} else {
args.push(ɵɵinject(arg));
}
}
return args;
}
/**
* Attaches a given InjectFlag to a given decorator using monkey-patching.
* Since DI decorators can be used in providers `deps` array (when provider is configured using
* `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we
* attach the flag to make it available both as a static property and as a field on decorator
* instance.
*
* @param decorator Provided DI decorator.
* @param flag InjectFlag that should be applied.
*/
function attachInjectFlag(decorator, flag) {
decorator[DI_DECORATOR_FLAG] = flag;
decorator.prototype[DI_DECORATOR_FLAG] = flag;
return decorator;
}
/**
* Reads monkey-patched property that contains InjectFlag attached to a decorator.
*
* @param token Token that may contain monkey-patched DI flags property.
*/
function getInjectFlag(token) {
return token[DI_DECORATOR_FLAG];
}
function catchInjectorError(e, token, injectorErrorName, source) {
var tokenPath = e[NG_TEMP_TOKEN_PATH];
if (token[SOURCE]) {
tokenPath.unshift(token[SOURCE]);
}
e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source);
e[NG_TOKEN_PATH] = tokenPath;
e[NG_TEMP_TOKEN_PATH] = null;
throw e;
}
function formatError(text, obj, injectorErrorName) {
var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text;
var context = stringify(obj);
if (Array.isArray(obj)) {
context = obj.map(stringify).join(' -> ');
} else if (typeof obj === 'object') {
var parts = [];
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
var value = obj[key];
parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));
}
}
context = "{".concat(parts.join(', '), "}");
}
return "".concat(injectorErrorName).concat(source ? '(' + source + ')' : '', "[").concat(context, "]: ").concat(text.replace(NEW_LINE, '\n '));
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ɵ0$3 = function ɵ0$3(token) {
return {
token: token
};
};
/**
* Inject decorator and metadata.
*
* @Annotation
* @publicApi
*/
var Inject = attachInjectFlag( // Disable tslint because `DecoratorFlags` is a const enum which gets inlined.
// tslint:disable-next-line: no-toplevel-property-access
makeParamDecorator('Inject', ɵ0$3), -1
/* Inject */
);
/**
* Optional decorator and metadata.
*
* @Annotation
* @publicApi
*/
var Optional = // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
// tslint:disable-next-line: no-toplevel-property-access
attachInjectFlag(makeParamDecorator('Optional'), 8
/* Optional */
);
/**
* Self decorator and metadata.
*
* @Annotation
* @publicApi
*/
var Self = // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
// tslint:disable-next-line: no-toplevel-property-access
attachInjectFlag(makeParamDecorator('Self'), 2
/* Self */
);
/**
* `SkipSelf` decorator and metadata.
*
* @Annotation
* @publicApi
*/
var SkipSelf = // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
// tslint:disable-next-line: no-toplevel-property-access
attachInjectFlag(makeParamDecorator('SkipSelf'), 4
/* SkipSelf */
);
/**
* Host decorator and metadata.
*
* @Annotation
* @publicApi
*/
var Host = // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
// tslint:disable-next-line: no-toplevel-property-access
attachInjectFlag(makeParamDecorator('Host'), 1
/* Host */
);
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var _reflect = null;
function getReflect() {
return _reflect = _reflect || new ReflectionCapabilities();
}
function reflectDependencies(type) {
return convertDependencies(getReflect().parameters(type));
}
function convertDependencies(deps) {
var compiler = getCompilerFacade();
return deps.map(function (dep) {
return reflectDependency(compiler, dep);
});
}
function reflectDependency(compiler, dep) {
var meta = {
token: null,
host: false,
optional: false,
resolved: compiler.R3ResolvedDependencyType.Token,
self: false,
skipSelf: false
};
function setTokenAndResolvedType(token) {
meta.resolved = compiler.R3ResolvedDependencyType.Token;
meta.token = token;
}
if (Array.isArray(dep) && dep.length > 0) {
for (var j = 0; j < dep.length; j++) {
var param = dep[j];
if (param === undefined) {
// param may be undefined if type of dep is not set by ngtsc
continue;
}
var proto = Object.getPrototypeOf(param);
if (param instanceof Optional || proto.ngMetadataName === 'Optional') {
meta.optional = true;
} else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {
meta.skipSelf = true;
} else if (param instanceof Self || proto.ngMetadataName === 'Self') {
meta.self = true;
} else if (param instanceof Host || proto.ngMetadataName === 'Host') {
meta.host = true;
} else if (param instanceof Inject) {
meta.token = param.token;
} else if (param instanceof Attribute) {
if (param.attributeName === undefined) {
throw new Error("Attribute name must be defined.");
}
meta.token = param.attributeName;
meta.resolved = compiler.R3ResolvedDependencyType.Attribute;
} else if (param.__ChangeDetectorRef__ === true) {
meta.token = param;
meta.resolved = compiler.R3ResolvedDependencyType.ChangeDetectorRef;
} else {
setTokenAndResolvedType(param);
}
}
} else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {
meta.token = undefined;
meta.resolved = R3ResolvedDependencyType.Invalid;
} else {
setTokenAndResolvedType(dep);
}
return meta;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Used to resolve resource URLs on `@Component` when used with JIT compilation.
*
* Example:
* ```
* @Component({
* selector: 'my-comp',
* templateUrl: 'my-comp.html', // This requires asynchronous resolution
* })
* class MyComponent{
* }
*
* // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
* // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
*
* // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
* // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
*
* // Use browser's `fetch()` function as the default resource resolution strategy.
* resolveComponentResources(fetch).then(() => {
* // After resolution all URLs have been converted into `template` strings.
* renderComponent(MyComponent);
* });
*
* ```
*
* NOTE: In AOT the resolution happens during compilation, and so there should be no need
* to call this method outside JIT mode.
*
* @param resourceResolver a function which is responsible for returning a `Promise` to the
* contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
*/
function resolveComponentResources(resourceResolver) {
// Store all promises which are fetching the resources.
var componentResolved = []; // Cache so that we don't fetch the same resource more than once.
var urlMap = new Map();
function cachedResourceResolve(url) {
var promise = urlMap.get(url);
if (!promise) {
var resp = resourceResolver(url);
urlMap.set(url, promise = resp.then(unwrapResponse));
}
return promise;
}
componentResourceResolutionQueue.forEach(function (component, type) {
var promises = [];
if (component.templateUrl) {
promises.push(cachedResourceResolve(component.templateUrl).then(function (template) {
component.template = template;
}));
}
var styleUrls = component.styleUrls;
var styles = component.styles || (component.styles = []);
var styleOffset = component.styles.length;
styleUrls && styleUrls.forEach(function (styleUrl, index) {
styles.push(''); // pre-allocate array.
promises.push(cachedResourceResolve(styleUrl).then(function (style) {
styles[styleOffset + index] = style;
styleUrls.splice(styleUrls.indexOf(styleUrl), 1);
if (styleUrls.length == 0) {
component.styleUrls = undefined;
}
}));
});
var fullyResolved = Promise.all(promises).then(function () {
return componentDefResolved(type);
});
componentResolved.push(fullyResolved);
});
clearResolutionOfComponentResourcesQueue();
return Promise.all(componentResolved).then(function () {
return undefined;
});
}
var componentResourceResolutionQueue = new Map(); // Track when existing ɵcmp for a Type is waiting on resources.
var componentDefPendingResolution = new Set();
function maybeQueueResolutionOfComponentResources(type, metadata) {
if (componentNeedsResolution(metadata)) {
componentResourceResolutionQueue.set(type, metadata);
componentDefPendingResolution.add(type);
}
}
function isComponentDefPendingResolution(type) {
return componentDefPendingResolution.has(type);
}
function componentNeedsResolution(component) {
return !!(component.templateUrl && !component.hasOwnProperty('template') || component.styleUrls && component.styleUrls.length);
}
function clearResolutionOfComponentResourcesQueue() {
var old = componentResourceResolutionQueue;
componentResourceResolutionQueue = new Map();
return old;
}
function restoreComponentResolutionQueue(queue) {
componentDefPendingResolution.clear();
queue.forEach(function (_, type) {
return componentDefPendingResolution.add(type);
});
componentResourceResolutionQueue = queue;
}
function isComponentResourceResolutionQueueEmpty() {
return componentResourceResolutionQueue.size === 0;
}
function unwrapResponse(response) {
return typeof response == 'string' ? response : response.text();
}
function componentDefResolved(type) {
componentDefPendingResolution["delete"](type);
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* The Trusted Types policy, or null if Trusted Types are not
* enabled/supported, or undefined if the policy has not been created yet.
*/
var policy;
/**
* Returns the Trusted Types policy, or null if Trusted Types are not
* enabled/supported. The first call to this function will create the policy.
*/
function getPolicy() {
if (policy === undefined) {
policy = null;
if (_global.trustedTypes) {
try {
policy = _global.trustedTypes.createPolicy('angular', {
createHTML: function createHTML(s) {
return s;
},
createScript: function createScript(s) {
return s;
},
createScriptURL: function createScriptURL(s) {
return s;
}
});
} catch (_a) {// trustedTypes.createPolicy throws if called with a name that is
// already registered, even in report-only mode. Until the API changes,
// catch the error not to break the applications functionally. In such
// cases, the code will fall back to using strings.
}
}
}
return policy;
}
/**
* Unsafely promote a string to a TrustedHTML, falling back to strings when
* Trusted Types are not available.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that the
* provided string will never cause an XSS vulnerability if used in a context
* that will be interpreted as HTML by a browser, e.g. when assigning to
* element.innerHTML.
*/
function trustedHTMLFromString(html) {
var _a;
return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;
}
/**
* Unsafely promote a string to a TrustedScript, falling back to strings when
* Trusted Types are not available.
* @security In particular, it must be assured that the provided string will
* never cause an XSS vulnerability if used in a context that will be
* interpreted and executed as a script by a browser, e.g. when calling eval.
*/
function trustedScriptFromString(script) {
var _a;
return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;
}
/**
* Unsafely promote a string to a TrustedScriptURL, falling back to strings
* when Trusted Types are not available.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that the
* provided string will never cause an XSS vulnerability if used in a context
* that will cause a browser to load and execute a resource, e.g. when
* assigning to script.src.
*/
function trustedScriptURLFromString(url) {
var _a;
return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;
}
/**
* Unsafely call the Function constructor with the given string arguments. It
* is only available in development mode, and should be stripped out of
* production code.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that it
* is only called from development code, as use in production code can lead to
* XSS vulnerabilities.
*/
function newTrustedFunctionForDev() {
if (typeof ngDevMode === 'undefined') {
throw new Error('newTrustedFunctionForDev should never be called in production');
}
for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
args[_key27] = arguments[_key27];
}
if (!_global.trustedTypes) {
// In environments that don't support Trusted Types, fall back to the most
// straightforward implementation:
return _construct(Function, args);
} // Chrome currently does not support passing TrustedScript to the Function
// constructor. The following implements the workaround proposed on the page
// below, where the Chromium bug is also referenced:
// https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor
var fnArgs = args.slice(0, -1).join(',');
var fnBody = args.pop().toString();
var body = "(function anonymous(".concat(fnArgs, "\n) { ").concat(fnBody, "\n})"); // Using eval directly confuses the compiler and prevents this module from
// being stripped out of JS binaries even if not used. The global['eval']
// indirection fixes that.
var fn = _global['eval'](trustedScriptFromString(body)); // To completely mimic the behavior of calling "new Function", two more
// things need to happen:
// 1. Stringifying the resulting function should return its source code
fn.toString = function () {
return body;
}; // 2. When calling the resulting function, `this` should refer to `global`
return fn.bind(_global); // When Trusted Types support in Function constructors is widely available,
// the implementation of this function can be simplified to:
// return new Function(...args.map(a => trustedScriptFromString(a)));
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* The Trusted Types policy, or null if Trusted Types are not
* enabled/supported, or undefined if the policy has not been created yet.
*/
var policy$1;
/**
* Returns the Trusted Types policy, or null if Trusted Types are not
* enabled/supported. The first call to this function will create the policy.
*/
function getPolicy$1() {
if (policy$1 === undefined) {
policy$1 = null;
if (_global.trustedTypes) {
try {
policy$1 = _global.trustedTypes.createPolicy('angular#unsafe-bypass', {
createHTML: function createHTML(s) {
return s;
},
createScript: function createScript(s) {
return s;
},
createScriptURL: function createScriptURL(s) {
return s;
}
});
} catch (_a) {// trustedTypes.createPolicy throws if called with a name that is
// already registered, even in report-only mode. Until the API changes,
// catch the error not to break the applications functionally. In such
// cases, the code will fall back to using strings.
}
}
}
return policy$1;
}
/**
* Unsafely promote a string to a TrustedHTML, falling back to strings when
* Trusted Types are not available.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that it
* is only passed strings that come directly from custom sanitizers or the
* bypassSecurityTrust* functions.
*/
function trustedHTMLFromStringBypass(html) {
var _a;
return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;
}
/**
* Unsafely promote a string to a TrustedScript, falling back to strings when
* Trusted Types are not available.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that it
* is only passed strings that come directly from custom sanitizers or the
* bypassSecurityTrust* functions.
*/
function trustedScriptFromStringBypass(script) {
var _a;
return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;
}
/**
* Unsafely promote a string to a TrustedScriptURL, falling back to strings
* when Trusted Types are not available.
* @security This is a security-sensitive function; any use of this function
* must go through security review. In particular, it must be assured that it
* is only passed strings that come directly from custom sanitizers or the
* bypassSecurityTrust* functions.
*/
function trustedScriptURLFromStringBypass(url) {
var _a;
return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var SafeValueImpl = /*#__PURE__*/function () {
function SafeValueImpl(changingThisBreaksApplicationSecurity) {
_classCallCheck(this, SafeValueImpl);
this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;
}
_createClass2(SafeValueImpl, [{
key: "toString",
value: function toString() {
return "SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity) + " (see https://g.co/ng/security#xss)";
}
}]);
return SafeValueImpl;
}();
var SafeHtmlImpl = /*#__PURE__*/function (_SafeValueImpl) {
_inherits(SafeHtmlImpl, _SafeValueImpl);
var _super90 = _createSuper(SafeHtmlImpl);
function SafeHtmlImpl() {
_classCallCheck(this, SafeHtmlImpl);
return _super90.apply(this, arguments);
}
_createClass2(SafeHtmlImpl, [{
key: "getTypeName",
value: function getTypeName() {
return "HTML"
/* Html */
;
}
}]);
return SafeHtmlImpl;
}(SafeValueImpl);
var SafeStyleImpl = /*#__PURE__*/function (_SafeValueImpl2) {
_inherits(SafeStyleImpl, _SafeValueImpl2);
var _super91 = _createSuper(SafeStyleImpl);
function SafeStyleImpl() {
_classCallCheck(this, SafeStyleImpl);
return _super91.apply(this, arguments);
}
_createClass2(SafeStyleImpl, [{
key: "getTypeName",
value: function getTypeName() {
return "Style"
/* Style */
;
}
}]);
return SafeStyleImpl;
}(SafeValueImpl);
var SafeScriptImpl = /*#__PURE__*/function (_SafeValueImpl3) {
_inherits(SafeScriptImpl, _SafeValueImpl3);
var _super92 = _createSuper(SafeScriptImpl);
function SafeScriptImpl() {
_classCallCheck(this, SafeScriptImpl);
return _super92.apply(this, arguments);
}
_createClass2(SafeScriptImpl, [{
key: "getTypeName",
value: function getTypeName() {
return "Script"
/* Script */
;
}
}]);
return SafeScriptImpl;
}(SafeValueImpl);
var SafeUrlImpl = /*#__PURE__*/function (_SafeValueImpl4) {
_inherits(SafeUrlImpl, _SafeValueImpl4);
var _super93 = _createSuper(SafeUrlImpl);
function SafeUrlImpl() {
_classCallCheck(this, SafeUrlImpl);
return _super93.apply(this, arguments);
}
_createClass2(SafeUrlImpl, [{
key: "getTypeName",
value: function getTypeName() {
return "URL"
/* Url */
;
}
}]);
return SafeUrlImpl;
}(SafeValueImpl);
var SafeResourceUrlImpl = /*#__PURE__*/function (_SafeValueImpl5) {
_inherits(SafeResourceUrlImpl, _SafeValueImpl5);
var _super94 = _createSuper(SafeResourceUrlImpl);
function SafeResourceUrlImpl() {
_classCallCheck(this, SafeResourceUrlImpl);
return _super94.apply(this, arguments);
}
_createClass2(SafeResourceUrlImpl, [{
key: "getTypeName",
value: function getTypeName() {
return "ResourceURL"
/* ResourceUrl */
;
}
}]);
return SafeResourceUrlImpl;
}(SafeValueImpl);
function unwrapSafeValue(value) {
return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity : value;
}
function allowSanitizationBypassAndThrow(value, type) {
var actualType = getSanitizationBypassType(value);
if (actualType != null && actualType !== type) {
// Allow ResourceURLs in URL contexts, they are strictly more trusted.
if (actualType === "ResourceURL"
/* ResourceUrl */
&& type === "URL"
/* Url */
) return true;
throw new Error("Required a safe ".concat(type, ", got a ").concat(actualType, " (see https://g.co/ng/security#xss)"));
}
return actualType === type;
}
function getSanitizationBypassType(value) {
return value instanceof SafeValueImpl && value.getTypeName() || null;
}
/**
* Mark `html` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {@link htmlSanitizer} to be trusted implicitly.
*
* @param trustedHtml `html` string which needs to be implicitly trusted.
* @returns a `html` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustHtml(trustedHtml) {
return new SafeHtmlImpl(trustedHtml);
}
/**
* Mark `style` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {@link styleSanitizer} to be trusted implicitly.
*
* @param trustedStyle `style` string which needs to be implicitly trusted.
* @returns a `style` hich has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustStyle(trustedStyle) {
return new SafeStyleImpl(trustedStyle);
}
/**
* Mark `script` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {@link scriptSanitizer} to be trusted implicitly.
*
* @param trustedScript `script` string which needs to be implicitly trusted.
* @returns a `script` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustScript(trustedScript) {
return new SafeScriptImpl(trustedScript);
}
/**
* Mark `url` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {@link urlSanitizer} to be trusted implicitly.
*
* @param trustedUrl `url` string which needs to be implicitly trusted.
* @returns a `url` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustUrl(trustedUrl) {
return new SafeUrlImpl(trustedUrl);
}
/**
* Mark `url` string as trusted.
*
* This function wraps the trusted string in `String` and brands it in a way which makes it
* recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
*
* @param trustedResourceUrl `url` string which needs to be implicitly trusted.
* @returns a `url` which has been branded to be implicitly trusted.
*/
function bypassSanitizationTrustResourceUrl(trustedResourceUrl) {
return new SafeResourceUrlImpl(trustedResourceUrl);
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This helper is used to get hold of an inert tree of DOM elements containing dirty HTML
* that needs sanitizing.
* Depending upon browser support we use one of two strategies for doing this.
* Default: DOMParser strategy
* Fallback: InertDocument strategy
*/
function getInertBodyHelper(defaultDoc) {
var inertDocumentHelper = new InertDocumentHelper(defaultDoc);
return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;
}
/**
* Uses DOMParser to create and fill an inert body element.
* This is the default strategy used in browsers that support it.
*/
var DOMParserHelper = /*#__PURE__*/function () {
function DOMParserHelper(inertDocumentHelper) {
_classCallCheck(this, DOMParserHelper);
this.inertDocumentHelper = inertDocumentHelper;
}
_createClass2(DOMParserHelper, [{
key: "getInertBodyElement",
value: function getInertBodyElement(html) {
// We add these extra elements to ensure that the rest of the content is parsed as expected
// e.g. leading whitespace is maintained and tags like `` do not get hoisted to the
// `` tag. Note that the `` tag is closed implicitly to prevent unclosed tags
// in `html` from consuming the otherwise explicit `` tag.
html = '' + html;
try {
var body = new window.DOMParser().parseFromString(trustedHTMLFromString(html), 'text/html').body;
if (body === null) {
// In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only
// becomes available in the following tick of the JS engine. In that case we fall back to
// the `inertDocumentHelper` instead.
return this.inertDocumentHelper.getInertBodyElement(html);
}
body.removeChild(body.firstChild);
return body;
} catch (_a) {
return null;
}
}
}]);
return DOMParserHelper;
}();
/**
* Use an HTML5 `template` element, if supported, or an inert body element created via
* `createHtmlDocument` to create and fill an inert DOM element.
* This is the fallback strategy if the browser does not support DOMParser.
*/
var InertDocumentHelper = /*#__PURE__*/function () {
function InertDocumentHelper(defaultDoc) {
_classCallCheck(this, InertDocumentHelper);
this.defaultDoc = defaultDoc;
this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
if (this.inertDocument.body == null) {
// usually there should be only one body element in the document, but IE doesn't have any, so
// we need to create one.
var inertHtml = this.inertDocument.createElement('html');
this.inertDocument.appendChild(inertHtml);
var inertBodyElement = this.inertDocument.createElement('body');
inertHtml.appendChild(inertBodyElement);
}
}
_createClass2(InertDocumentHelper, [{
key: "getInertBodyElement",
value: function getInertBodyElement(html) {
// Prefer using element if supported.
var templateEl = this.inertDocument.createElement('template');
if ('content' in templateEl) {
templateEl.innerHTML = trustedHTMLFromString(html);
return templateEl;
} // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`
// and we returned the inert `body` node. This was changed, because IE seems to treat setting
// `innerHTML` on an inserted element differently, compared to one that hasn't been inserted
// yet. In particular, IE appears to split some of the text into multiple text nodes rather
// than keeping them in a single one which ends up messing with Ivy's i18n parsing further
// down the line. This has been worked around by creating a new inert `body` and using it as
// the root node in which we insert the HTML.
var inertBody = this.inertDocument.createElement('body');
inertBody.innerHTML = trustedHTMLFromString(html); // Support: IE 11 only
// strip custom-namespaced attributes on IE<=11
if (this.defaultDoc.documentMode) {
this.stripCustomNsAttrs(inertBody);
}
return inertBody;
}
/**
* When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
* attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.
* 'ns1:xlink:foo').
*
* This is undesirable since we don't want to allow any of these custom attributes. This method
* strips them all.
*/
}, {
key: "stripCustomNsAttrs",
value: function stripCustomNsAttrs(el) {
var elAttrs = el.attributes; // loop backwards so that we can support removals.
for (var i = elAttrs.length - 1; 0 < i; i--) {
var attrib = elAttrs.item(i);
var attrName = attrib.name;
if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {
el.removeAttribute(attrName);
}
}
var childNode = el.firstChild;
while (childNode) {
if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(childNode);
childNode = childNode.nextSibling;
}
}
}]);
return InertDocumentHelper;
}();
/**
* We need to determine whether the DOMParser exists in the global context and
* supports parsing HTML; HTML parsing support is not as wide as other formats, see
* https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.
*
* @suppress {uselessCode}
*/
function isDOMParserAvailable() {
try {
return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');
} catch (_a) {
return false;
}
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* A pattern that recognizes a commonly useful subset of URLs that are safe.
*
* This regular expression matches a subset of URLs that will not cause script
* execution if used in URL context within a HTML document. Specifically, this
* regular expression matches if (comment from here on and regex copied from
* Soy's EscapingConventions):
* (1) Either an allowed protocol (http, https, mailto or ftp).
* (2) or no protocol. A protocol must be followed by a colon. The below
* allows that by allowing colons only after one of the characters [/?#].
* A colon after a hash (#) must be in the fragment.
* Otherwise, a colon after a (?) must be in a query.
* Otherwise, a colon after a single solidus (/) must be in a path.
* Otherwise, a colon after a double solidus (//) must be in the authority
* (before port).
*
* The pattern disallows &, used in HTML entity declarations before
* one of the characters in [/?#]. This disallows HTML entities used in the
* protocol name, which should never happen, e.g. "http" for "http".
* It also disallows HTML entities in the first path part of a relative path,
* e.g. "foo<bar/baz". Our existing escaping functions should not produce
* that. More importantly, it disallows masking of a colon,
* e.g. "javascript:...".
*
* This regular expression was taken from the Closure sanitization library.
*/
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
/* A pattern that matches safe srcset values */
var SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
/** A pattern that matches safe data URLs. Only matches image, video and audio types. */
var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
function _sanitizeUrl(url) {
url = String(url);
if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN)) return url;
if (typeof ngDevMode === 'undefined' || ngDevMode) {
console.warn("WARNING: sanitizing unsafe URL value ".concat(url, " (see https://g.co/ng/security#xss)"));
}
return 'unsafe:' + url;
}
function sanitizeSrcset(srcset) {
srcset = String(srcset);
return srcset.split(',').map(function (srcset) {
return _sanitizeUrl(srcset.trim());
}).join(', ');
}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function tagSet(tags) {
var res = {};
var _iterator3 = _createForOfIteratorHelper(tags.split(',')),
_step2;
try {
for (_iterator3.s(); !(_step2 = _iterator3.n()).done;) {
var t = _step2.value;
res[t] = true;
}
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
return res;
}
function merge() {
var res = {};
for (var _len28 = arguments.length, sets = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
sets[_key28] = arguments[_key28];
}
for (var _i7 = 0, _sets = sets; _i7 < _sets.length; _i7++) {
var s = _sets[_i7];
for (var v in s) {
if (s.hasOwnProperty(v)) res[v] = true;
}
}
return res;
} // Good source of info about elements and attributes
// https://html.spec.whatwg.org/#semantics
// https://simon.html5.org/html-elements
// Safe Void Elements - HTML5
// https://html.spec.whatwg.org/#void-elements
var VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr'); // Elements that you can, intentionally, leave open (and which close themselves)
// https://html.spec.whatwg.org/#optional-tags
var OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');
var OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');
var OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS); // Safe Block Elements - HTML5
var BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' + 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul')); // Inline Elements - HTML5
var INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' + 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));
var VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS); // Attributes that have href and hence need to be sanitized
var URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href'); // Attributes that have special href set hence need to be sanitized
var SRCSET_ATTRS = tagSet('srcset');
var HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' + 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' + 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' + 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' + 'valign,value,vspace,width'); // Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)
var ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' + 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' + 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' + 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' + 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' + 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' + 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext'); // NB: This currently consciously doesn't support SVG. SVG sanitization has had several security
// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via
// innerHTML is required, SVG attributes should be added here.
// NB: Sanitization does not allow