import * as i0 from '@angular/core';
import { Pipe, NgModule } from '@angular/core';
import { isNil, declinationOfNumber, checkValueIsEmpty, isNotNil, isTrue } from '@angular-ru/cdk/utils';
import { coerceBoolean } from '@angular-ru/cdk/coercion';
import { dateStringToDate } from '@angular-ru/cdk/date';
import { getValueByPath, isObject, isSimpleObject, isIterable } from '@angular-ru/cdk/object';
import { takeSecondItem, takeThirdItem, uniqueArrayOf, takeFirstItem, hasAtMostOneItem, hasItems, hasManyItems, hasNoItems, hasOneItem } from '@angular-ru/cdk/array';
import { isString, toStringVal } from '@angular-ru/cdk/string';
import { DatePipe } from '@angular/common';
import { isFunctionLike } from '@angular-ru/cdk/function';
import * as i1 from '@angular/platform-browser';
import { isRegexpStr, ensureRegexp } from '@angular-ru/cdk/regexp';
import { numberFormat, toNumber } from '@angular-ru/cdk/number';

class AtPipe {
    transform(array, index) {
        if (isNil(array)) {
            return undefined;
        }
        let limitedIndex = index;
        limitedIndex = Math.trunc(limitedIndex) || 0;
        if (limitedIndex < 0) {
            limitedIndex += array.length;
        }
        if (limitedIndex < 0 || limitedIndex >= array.length) {
            return undefined;
        }
        return array[limitedIndex];
    }
}
/** @nocollapse */ /** @nocollapse */ AtPipe.ɵfac = function AtPipe_Factory(t) { return new (t || AtPipe)(); };
/** @nocollapse */ /** @nocollapse */ AtPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "at", type: AtPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AtPipe, [{
        type: Pipe,
        args: [{ name: 'at' }]
    }], null, null); })();

class AtPipeModule {
}
/** @nocollapse */ /** @nocollapse */ AtPipeModule.ɵfac = function AtPipeModule_Factory(t) { return new (t || AtPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ AtPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: AtPipeModule });
/** @nocollapse */ /** @nocollapse */ AtPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [AtPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AtPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [AtPipe],
                providers: [AtPipe],
                exports: [AtPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AtPipeModule, { declarations: [AtPipe], exports: [AtPipe] }); })();

class BracePipe {
    transform(value) {
        return `(${value})`;
    }
}
/** @nocollapse */ /** @nocollapse */ BracePipe.ɵfac = function BracePipe_Factory(t) { return new (t || BracePipe)(); };
/** @nocollapse */ /** @nocollapse */ BracePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "brace", type: BracePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BracePipe, [{
        type: Pipe,
        args: [{ name: 'brace' }]
    }], null, null); })();

class BracePipeModule {
}
/** @nocollapse */ /** @nocollapse */ BracePipeModule.ɵfac = function BracePipeModule_Factory(t) { return new (t || BracePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ BracePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: BracePipeModule });
/** @nocollapse */ /** @nocollapse */ BracePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [BracePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BracePipeModule, [{
        type: NgModule,
        args: [{
                exports: [BracePipe],
                providers: [BracePipe],
                declarations: [BracePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(BracePipeModule, { declarations: [BracePipe], exports: [BracePipe] }); })();

class CoerceBooleanPipe {
    transform(value) {
        return coerceBoolean(value);
    }
}
/** @nocollapse */ /** @nocollapse */ CoerceBooleanPipe.ɵfac = function CoerceBooleanPipe_Factory(t) { return new (t || CoerceBooleanPipe)(); };
/** @nocollapse */ /** @nocollapse */ CoerceBooleanPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "coerceBoolean", type: CoerceBooleanPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoerceBooleanPipe, [{
        type: Pipe,
        args: [{ name: 'coerceBoolean' }]
    }], null, null); })();

class CoerceBooleanPipeModule {
}
/** @nocollapse */ /** @nocollapse */ CoerceBooleanPipeModule.ɵfac = function CoerceBooleanPipeModule_Factory(t) { return new (t || CoerceBooleanPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ CoerceBooleanPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CoerceBooleanPipeModule });
/** @nocollapse */ /** @nocollapse */ CoerceBooleanPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [CoerceBooleanPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoerceBooleanPipeModule, [{
        type: NgModule,
        args: [{
                exports: [CoerceBooleanPipe],
                providers: [CoerceBooleanPipe],
                declarations: [CoerceBooleanPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoerceBooleanPipeModule, { declarations: [CoerceBooleanPipe], exports: [CoerceBooleanPipe] }); })();

class DateToNativePipe {
    transform(value) {
        return dateStringToDate(value);
    }
}
/** @nocollapse */ /** @nocollapse */ DateToNativePipe.ɵfac = function DateToNativePipe_Factory(t) { return new (t || DateToNativePipe)(); };
/** @nocollapse */ /** @nocollapse */ DateToNativePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "dateNative", type: DateToNativePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateToNativePipe, [{
        type: Pipe,
        args: [{ name: 'dateNative' }]
    }], null, null); })();

class DateToNativePipeModule {
}
/** @nocollapse */ /** @nocollapse */ DateToNativePipeModule.ɵfac = function DateToNativePipeModule_Factory(t) { return new (t || DateToNativePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DateToNativePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DateToNativePipeModule });
/** @nocollapse */ /** @nocollapse */ DateToNativePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DateToNativePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateToNativePipeModule, [{
        type: NgModule,
        args: [{
                exports: [DateToNativePipe],
                providers: [DateToNativePipe],
                declarations: [DateToNativePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DateToNativePipeModule, { declarations: [DateToNativePipe], exports: [DateToNativePipe] }); })();

class DeclinationOfNumberPipe {
    transform(numberValue, dictionary) {
        return declinationOfNumber(numberValue, dictionary);
    }
}
/** @nocollapse */ /** @nocollapse */ DeclinationOfNumberPipe.ɵfac = function DeclinationOfNumberPipe_Factory(t) { return new (t || DeclinationOfNumberPipe)(); };
/** @nocollapse */ /** @nocollapse */ DeclinationOfNumberPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "declinationOfNumber", type: DeclinationOfNumberPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeclinationOfNumberPipe, [{
        type: Pipe,
        args: [{ name: 'declinationOfNumber' }]
    }], null, null); })();

class DeclinationOfNumberPipeModule {
}
/** @nocollapse */ /** @nocollapse */ DeclinationOfNumberPipeModule.ɵfac = function DeclinationOfNumberPipeModule_Factory(t) { return new (t || DeclinationOfNumberPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DeclinationOfNumberPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DeclinationOfNumberPipeModule });
/** @nocollapse */ /** @nocollapse */ DeclinationOfNumberPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DeclinationOfNumberPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeclinationOfNumberPipeModule, [{
        type: NgModule,
        args: [{
                exports: [DeclinationOfNumberPipe],
                providers: [DeclinationOfNumberPipe],
                declarations: [DeclinationOfNumberPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DeclinationOfNumberPipeModule, { declarations: [DeclinationOfNumberPipe], exports: [DeclinationOfNumberPipe] }); })();

class DeepPathPipe {
    transform(item, path, fallback = '') {
        const result = getValueByPath(item, path);
        return checkValueIsEmpty(result) ? fallback !== null && fallback !== void 0 ? fallback : '' : result;
    }
}
/** @nocollapse */ /** @nocollapse */ DeepPathPipe.ɵfac = function DeepPathPipe_Factory(t) { return new (t || DeepPathPipe)(); };
/** @nocollapse */ /** @nocollapse */ DeepPathPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "deepPath", type: DeepPathPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeepPathPipe, [{
        type: Pipe,
        args: [{ name: 'deepPath' }]
    }], null, null); })();

class DeepPathPipeModule {
}
/** @nocollapse */ /** @nocollapse */ DeepPathPipeModule.ɵfac = function DeepPathPipeModule_Factory(t) { return new (t || DeepPathPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DeepPathPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DeepPathPipeModule });
/** @nocollapse */ /** @nocollapse */ DeepPathPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DeepPathPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeepPathPipeModule, [{
        type: NgModule,
        args: [{
                exports: [DeepPathPipe],
                providers: [DeepPathPipe],
                declarations: [DeepPathPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DeepPathPipeModule, { declarations: [DeepPathPipe], exports: [DeepPathPipe] }); })();

class DefaultValuePipe {
    transform(item, fallback = '-') {
        return checkValueIsEmpty(item) ? fallback : item;
    }
}
/** @nocollapse */ /** @nocollapse */ DefaultValuePipe.ɵfac = function DefaultValuePipe_Factory(t) { return new (t || DefaultValuePipe)(); };
/** @nocollapse */ /** @nocollapse */ DefaultValuePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "defaultValue", type: DefaultValuePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultValuePipe, [{
        type: Pipe,
        args: [{ name: 'defaultValue' }]
    }], null, null); })();

class DefaultValuePipeModule {
}
/** @nocollapse */ /** @nocollapse */ DefaultValuePipeModule.ɵfac = function DefaultValuePipeModule_Factory(t) { return new (t || DefaultValuePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DefaultValuePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DefaultValuePipeModule });
/** @nocollapse */ /** @nocollapse */ DefaultValuePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DefaultValuePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultValuePipeModule, [{
        type: NgModule,
        args: [{
                exports: [DefaultValuePipe],
                providers: [DefaultValuePipe],
                declarations: [DefaultValuePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DefaultValuePipeModule, { declarations: [DefaultValuePipe], exports: [DefaultValuePipe] }); })();

class DetectBrowserPipe {
    static getBrowserMatchers(userAgent) {
        var _a;
        const ua = userAgent !== null && userAgent !== void 0 ? userAgent : navigator.userAgent;
        return (_a = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)) !== null && _a !== void 0 ? _a : [];
    }
    static ensureInternetExplorer(ua) {
        var _a;
        const matcher = /\brv[ :]+(\d+)/g.exec(ua) || [];
        return (_a = `IE ${takeSecondItem(matcher)}`) !== null && _a !== void 0 ? _a : '';
    }
    static ensureChrome(ua) {
        return ua
            .match(/\b(OPR|Edge?)\/(\d+)/)
            .slice(1)
            .join(' ')
            .replace('OPR', 'Opera')
            .replace('Edg ', 'Edge ');
    }
    static ensureOtherBrowser(matchers, ua) {
        var _a;
        const matcher = ua.match(/version\/(\d+)/i);
        const otherMatchers = isNotNil(takeThirdItem(matchers))
            ? [takeSecondItem(matchers), takeThirdItem(matchers)]
            : // TODO: need refactor deprecated method
                // eslint-disable-next-line deprecation/deprecation
                [navigator.appName, navigator.appVersion, '-?'];
        if (matcher !== null) {
            otherMatchers === null || otherMatchers === void 0 ? void 0 : otherMatchers.splice(1, 1, takeSecondItem(matcher));
        }
        return (_a = otherMatchers === null || otherMatchers === void 0 ? void 0 : otherMatchers.join(' ')) !== null && _a !== void 0 ? _a : '';
    }
    transform(userAgent, options) {
        let browser;
        const ua = userAgent !== null && userAgent !== void 0 ? userAgent : navigator.userAgent;
        const matchers = DetectBrowserPipe.getBrowserMatchers(ua);
        if (/trident/i.test(takeSecondItem(matchers))) {
            browser = DetectBrowserPipe.ensureInternetExplorer(ua);
        }
        else if (takeSecondItem(matchers) === 'Chrome' && ua.match(/\b(OPR|Edge?)\/(\d+)/) !== null) {
            browser = DetectBrowserPipe.ensureChrome(ua);
        }
        else {
            browser = DetectBrowserPipe.ensureOtherBrowser(matchers, ua);
        }
        return isTrue(options === null || options === void 0 ? void 0 : options.kebabCase)
            ? browser === null || browser === void 0 ? void 0 : browser.toLowerCase().replace(/\d+/, '').trim().replace(/\s/, '-')
            : browser;
    }
}
/** @nocollapse */ /** @nocollapse */ DetectBrowserPipe.ɵfac = function DetectBrowserPipe_Factory(t) { return new (t || DetectBrowserPipe)(); };
/** @nocollapse */ /** @nocollapse */ DetectBrowserPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "detectBrowser", type: DetectBrowserPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DetectBrowserPipe, [{
        type: Pipe,
        args: [{ name: 'detectBrowser' }]
    }], null, null); })();

class DetectBrowserPipeModule {
}
/** @nocollapse */ /** @nocollapse */ DetectBrowserPipeModule.ɵfac = function DetectBrowserPipeModule_Factory(t) { return new (t || DetectBrowserPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DetectBrowserPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DetectBrowserPipeModule });
/** @nocollapse */ /** @nocollapse */ DetectBrowserPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DetectBrowserPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DetectBrowserPipeModule, [{
        type: NgModule,
        args: [{
                exports: [DetectBrowserPipe],
                providers: [DetectBrowserPipe],
                declarations: [DetectBrowserPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DetectBrowserPipeModule, { declarations: [DetectBrowserPipe], exports: [DetectBrowserPipe] }); })();

class DisplayItemPipe {
    static invalidDisplayKey(displayKey) {
        // noinspection SuspiciousTypeOfGuard
        return checkValueIsEmpty(displayKey) || typeof displayKey !== 'string';
    }
    transform(item, displayKey) {
        return isObject(item) && !Array.isArray(item)
            ? this.parseObject(item, displayKey)
            : this.parseNotObject(item);
    }
    parseObject(item, displayKey) {
        var _a;
        if (DisplayItemPipe.invalidDisplayKey(displayKey)) {
            throw new Error('attribute "displayKey" can not be empty if input item has "object" type');
        }
        const value = (_a = getValueByPath(item, displayKey)) !== null && _a !== void 0 ? _a : '';
        return Array.isArray(value) ? '' : value;
    }
    parseNotObject(item) {
        return isString(item) ? item : '';
    }
}
/** @nocollapse */ /** @nocollapse */ DisplayItemPipe.ɵfac = function DisplayItemPipe_Factory(t) { return new (t || DisplayItemPipe)(); };
/** @nocollapse */ /** @nocollapse */ DisplayItemPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "displayItem", type: DisplayItemPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DisplayItemPipe, [{
        type: Pipe,
        args: [{ name: 'displayItem' }]
    }], null, null); })();

class DisplayItemPipeModule {
}
/** @nocollapse */ /** @nocollapse */ DisplayItemPipeModule.ɵfac = function DisplayItemPipeModule_Factory(t) { return new (t || DisplayItemPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ DisplayItemPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DisplayItemPipeModule });
/** @nocollapse */ /** @nocollapse */ DisplayItemPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [DisplayItemPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DisplayItemPipeModule, [{
        type: NgModule,
        args: [{
                exports: [DisplayItemPipe],
                providers: [DisplayItemPipe],
                declarations: [DisplayItemPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DisplayItemPipeModule, { declarations: [DisplayItemPipe], exports: [DisplayItemPipe] }); })();

class EntrySingleSetPipe {
    transform(key, listKeys) {
        return isTrue(listKeys === null || listKeys === void 0 ? void 0 : listKeys.has(key));
    }
}
/** @nocollapse */ /** @nocollapse */ EntrySingleSetPipe.ɵfac = function EntrySingleSetPipe_Factory(t) { return new (t || EntrySingleSetPipe)(); };
/** @nocollapse */ /** @nocollapse */ EntrySingleSetPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "entrySingleSet", type: EntrySingleSetPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntrySingleSetPipe, [{
        type: Pipe,
        args: [{ name: 'entrySingleSet' }]
    }], null, null); })();

class EntrySingleSetPipeModule {
}
/** @nocollapse */ /** @nocollapse */ EntrySingleSetPipeModule.ɵfac = function EntrySingleSetPipeModule_Factory(t) { return new (t || EntrySingleSetPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ EntrySingleSetPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: EntrySingleSetPipeModule });
/** @nocollapse */ /** @nocollapse */ EntrySingleSetPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [EntrySingleSetPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntrySingleSetPipeModule, [{
        type: NgModule,
        args: [{
                exports: [EntrySingleSetPipe],
                providers: [EntrySingleSetPipe],
                declarations: [EntrySingleSetPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(EntrySingleSetPipeModule, { declarations: [EntrySingleSetPipe], exports: [EntrySingleSetPipe] }); })();

class FileSizePipe {
    constructor() {
        this.units = ['bytes', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb'];
        this.commonPrecision = 2;
        this.byteSize = 1024;
    }
    transform(bytes = 0, precision = this.commonPrecision) {
        let result;
        let calculatedBytes = bytes;
        if (isNaN(parseFloat(String(calculatedBytes))) || !isFinite(calculatedBytes)) {
            result = '?';
        }
        else {
            let unit = 0;
            while (calculatedBytes >= this.byteSize) {
                calculatedBytes /= this.byteSize;
                unit++;
            }
            result = `${calculatedBytes.toFixed(Number(precision))} ${this.units[unit]}`;
        }
        return result;
    }
}
/** @nocollapse */ /** @nocollapse */ FileSizePipe.ɵfac = function FileSizePipe_Factory(t) { return new (t || FileSizePipe)(); };
/** @nocollapse */ /** @nocollapse */ FileSizePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "fileSize", type: FileSizePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileSizePipe, [{
        type: Pipe,
        args: [{ name: 'fileSize' }]
    }], null, null); })();

class FileSizePipeModule {
}
/** @nocollapse */ /** @nocollapse */ FileSizePipeModule.ɵfac = function FileSizePipeModule_Factory(t) { return new (t || FileSizePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ FileSizePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: FileSizePipeModule });
/** @nocollapse */ /** @nocollapse */ FileSizePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [FileSizePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileSizePipeModule, [{
        type: NgModule,
        args: [{
                exports: [FileSizePipe],
                providers: [FileSizePipe],
                declarations: [FileSizePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FileSizePipeModule, { declarations: [FileSizePipe], exports: [FileSizePipe] }); })();

class FilterUniquePipe {
    transform(values, path = '') {
        return uniqueArrayOf(values, path);
    }
}
/** @nocollapse */ /** @nocollapse */ FilterUniquePipe.ɵfac = function FilterUniquePipe_Factory(t) { return new (t || FilterUniquePipe)(); };
/** @nocollapse */ /** @nocollapse */ FilterUniquePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "filterUnique", type: FilterUniquePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterUniquePipe, [{
        type: Pipe,
        args: [{ name: 'filterUnique' }]
    }], null, null); })();

class FilterUniquePipeModule {
}
/** @nocollapse */ /** @nocollapse */ FilterUniquePipeModule.ɵfac = function FilterUniquePipeModule_Factory(t) { return new (t || FilterUniquePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ FilterUniquePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: FilterUniquePipeModule });
/** @nocollapse */ /** @nocollapse */ FilterUniquePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [FilterUniquePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterUniquePipeModule, [{
        type: NgModule,
        args: [{
                exports: [FilterUniquePipe],
                providers: [FilterUniquePipe],
                declarations: [FilterUniquePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FilterUniquePipeModule, { declarations: [FilterUniquePipe], exports: [FilterUniquePipe] }); })();

class FormatDatePipe {
    transform(value, options) {
        var _a, _b, _c, _d;
        let result = value;
        if (isString(result)) {
            result = (_a = takeFirstItem(result.split('+'))) !== null && _a !== void 0 ? _a : '';
        }
        return ((_d = new DatePipe((_b = options === null || options === void 0 ? void 0 : options.locale) !== null && _b !== void 0 ? _b : 'en-US').transform(result, (_c = options === null || options === void 0 ? void 0 : options.dateFormat) !== null && _c !== void 0 ? _c : 'dd.MM.yyyy', options === null || options === void 0 ? void 0 : options.timezone)) !== null && _d !== void 0 ? _d : '');
    }
}
/** @nocollapse */ /** @nocollapse */ FormatDatePipe.ɵfac = function FormatDatePipe_Factory(t) { return new (t || FormatDatePipe)(); };
/** @nocollapse */ /** @nocollapse */ FormatDatePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "formatDate", type: FormatDatePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormatDatePipe, [{
        type: Pipe,
        args: [{ name: 'formatDate' }]
    }], null, null); })();

class FormatDatePipeModule {
}
/** @nocollapse */ /** @nocollapse */ FormatDatePipeModule.ɵfac = function FormatDatePipeModule_Factory(t) { return new (t || FormatDatePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ FormatDatePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: FormatDatePipeModule });
/** @nocollapse */ /** @nocollapse */ FormatDatePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [FormatDatePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormatDatePipeModule, [{
        type: NgModule,
        args: [{
                exports: [FormatDatePipe],
                providers: [FormatDatePipe],
                declarations: [FormatDatePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FormatDatePipeModule, { declarations: [FormatDatePipe], exports: [FormatDatePipe] }); })();

class HasPipe {
    transform(set, entry) {
        var _a;
        return (_a = set === null || set === void 0 ? void 0 : set.has(entry)) !== null && _a !== void 0 ? _a : false;
    }
}
/** @nocollapse */ /** @nocollapse */ HasPipe.ɵfac = function HasPipe_Factory(t) { return new (t || HasPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "has", type: HasPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasPipe, [{
        type: Pipe,
        args: [{
                name: 'has'
            }]
    }], null, null); })();

class HasPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasPipeModule.ɵfac = function HasPipeModule_Factory(t) { return new (t || HasPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasPipeModule });
/** @nocollapse */ /** @nocollapse */ HasPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasPipe],
                providers: [HasPipe],
                exports: [HasPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasPipeModule, { declarations: [HasPipe], exports: [HasPipe] }); })();

class HasAtMostOneItemPipe {
    transform(array) {
        return hasAtMostOneItem(array);
    }
}
/** @nocollapse */ /** @nocollapse */ HasAtMostOneItemPipe.ɵfac = function HasAtMostOneItemPipe_Factory(t) { return new (t || HasAtMostOneItemPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasAtMostOneItemPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "hasAtMostOneItem", type: HasAtMostOneItemPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasAtMostOneItemPipe, [{
        type: Pipe,
        args: [{ name: 'hasAtMostOneItem' }]
    }], null, null); })();

class HasAtMostOneItemPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasAtMostOneItemPipeModule.ɵfac = function HasAtMostOneItemPipeModule_Factory(t) { return new (t || HasAtMostOneItemPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasAtMostOneItemPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasAtMostOneItemPipeModule });
/** @nocollapse */ /** @nocollapse */ HasAtMostOneItemPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasAtMostOneItemPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasAtMostOneItemPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasAtMostOneItemPipe],
                providers: [HasAtMostOneItemPipe],
                exports: [HasAtMostOneItemPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasAtMostOneItemPipeModule, { declarations: [HasAtMostOneItemPipe], exports: [HasAtMostOneItemPipe] }); })();

class HasItemsPipe {
    transform(array) {
        return hasItems(array);
    }
}
/** @nocollapse */ /** @nocollapse */ HasItemsPipe.ɵfac = function HasItemsPipe_Factory(t) { return new (t || HasItemsPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasItemsPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "hasItems", type: HasItemsPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasItemsPipe, [{
        type: Pipe,
        args: [{ name: 'hasItems' }]
    }], null, null); })();

class HasItemsPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasItemsPipeModule.ɵfac = function HasItemsPipeModule_Factory(t) { return new (t || HasItemsPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasItemsPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasItemsPipeModule });
/** @nocollapse */ /** @nocollapse */ HasItemsPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasItemsPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasItemsPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasItemsPipe],
                providers: [HasItemsPipe],
                exports: [HasItemsPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasItemsPipeModule, { declarations: [HasItemsPipe], exports: [HasItemsPipe] }); })();

class HasManyItemsPipe {
    transform(array) {
        return hasManyItems(array);
    }
}
/** @nocollapse */ /** @nocollapse */ HasManyItemsPipe.ɵfac = function HasManyItemsPipe_Factory(t) { return new (t || HasManyItemsPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasManyItemsPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "hasManyItems", type: HasManyItemsPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasManyItemsPipe, [{
        type: Pipe,
        args: [{ name: 'hasManyItems' }]
    }], null, null); })();

class HasManyItemsPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasManyItemsPipeModule.ɵfac = function HasManyItemsPipeModule_Factory(t) { return new (t || HasManyItemsPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasManyItemsPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasManyItemsPipeModule });
/** @nocollapse */ /** @nocollapse */ HasManyItemsPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasManyItemsPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasManyItemsPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasManyItemsPipe],
                providers: [HasManyItemsPipe],
                exports: [HasManyItemsPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasManyItemsPipeModule, { declarations: [HasManyItemsPipe], exports: [HasManyItemsPipe] }); })();

class HasNoItemsPipe {
    transform(array) {
        return hasNoItems(array);
    }
}
/** @nocollapse */ /** @nocollapse */ HasNoItemsPipe.ɵfac = function HasNoItemsPipe_Factory(t) { return new (t || HasNoItemsPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasNoItemsPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "hasNoItems", type: HasNoItemsPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasNoItemsPipe, [{
        type: Pipe,
        args: [{ name: 'hasNoItems' }]
    }], null, null); })();

class HasNoItemsPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasNoItemsPipeModule.ɵfac = function HasNoItemsPipeModule_Factory(t) { return new (t || HasNoItemsPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasNoItemsPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasNoItemsPipeModule });
/** @nocollapse */ /** @nocollapse */ HasNoItemsPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasNoItemsPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasNoItemsPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasNoItemsPipe],
                providers: [HasNoItemsPipe],
                exports: [HasNoItemsPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasNoItemsPipeModule, { declarations: [HasNoItemsPipe], exports: [HasNoItemsPipe] }); })();

class HasOneItemPipe {
    transform(array) {
        return hasOneItem(array);
    }
}
/** @nocollapse */ /** @nocollapse */ HasOneItemPipe.ɵfac = function HasOneItemPipe_Factory(t) { return new (t || HasOneItemPipe)(); };
/** @nocollapse */ /** @nocollapse */ HasOneItemPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "hasOneItem", type: HasOneItemPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasOneItemPipe, [{
        type: Pipe,
        args: [{ name: 'hasOneItem' }]
    }], null, null); })();

class HasOneItemPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HasOneItemPipeModule.ɵfac = function HasOneItemPipeModule_Factory(t) { return new (t || HasOneItemPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HasOneItemPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HasOneItemPipeModule });
/** @nocollapse */ /** @nocollapse */ HasOneItemPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HasOneItemPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasOneItemPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [HasOneItemPipe],
                providers: [HasOneItemPipe],
                exports: [HasOneItemPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HasOneItemPipeModule, { declarations: [HasOneItemPipe], exports: [HasOneItemPipe] }); })();

class HttpReplacerPipe {
    transform(value) {
        let result = value;
        if (isString(result)) {
            result = result === null || result === void 0 ? void 0 : result.replace(/^(http|https):\/\//, '').replace(/\/$/, '').replace('www.', '').replace('/index.php', '').toLocaleLowerCase();
        }
        return result !== null && result !== void 0 ? result : '';
    }
}
/** @nocollapse */ /** @nocollapse */ HttpReplacerPipe.ɵfac = function HttpReplacerPipe_Factory(t) { return new (t || HttpReplacerPipe)(); };
/** @nocollapse */ /** @nocollapse */ HttpReplacerPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "httpReplacer", type: HttpReplacerPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HttpReplacerPipe, [{
        type: Pipe,
        args: [{ name: 'httpReplacer' }]
    }], null, null); })();

class HttpReplacerPipeModule {
}
/** @nocollapse */ /** @nocollapse */ HttpReplacerPipeModule.ɵfac = function HttpReplacerPipeModule_Factory(t) { return new (t || HttpReplacerPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ HttpReplacerPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: HttpReplacerPipeModule });
/** @nocollapse */ /** @nocollapse */ HttpReplacerPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [HttpReplacerPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HttpReplacerPipeModule, [{
        type: NgModule,
        args: [{
                exports: [HttpReplacerPipe],
                providers: [HttpReplacerPipe],
                declarations: [HttpReplacerPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HttpReplacerPipeModule, { declarations: [HttpReplacerPipe], exports: [HttpReplacerPipe] }); })();

class IncludesPipe {
    transform(array, entry) {
        var _a;
        return (_a = array === null || array === void 0 ? void 0 : array.includes(entry)) !== null && _a !== void 0 ? _a : false;
    }
}
/** @nocollapse */ /** @nocollapse */ IncludesPipe.ɵfac = function IncludesPipe_Factory(t) { return new (t || IncludesPipe)(); };
/** @nocollapse */ /** @nocollapse */ IncludesPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "includes", type: IncludesPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IncludesPipe, [{
        type: Pipe,
        args: [{ name: 'includes' }]
    }], null, null); })();

class IncludesPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IncludesPipeModule.ɵfac = function IncludesPipeModule_Factory(t) { return new (t || IncludesPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IncludesPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IncludesPipeModule });
/** @nocollapse */ /** @nocollapse */ IncludesPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IncludesPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IncludesPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [IncludesPipe],
                providers: [IncludesPipe],
                exports: [IncludesPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IncludesPipeModule, { declarations: [IncludesPipe], exports: [IncludesPipe] }); })();

class IsArrayPipe {
    transform(value) {
        return Array.isArray(value);
    }
}
/** @nocollapse */ /** @nocollapse */ IsArrayPipe.ɵfac = function IsArrayPipe_Factory(t) { return new (t || IsArrayPipe)(); };
/** @nocollapse */ /** @nocollapse */ IsArrayPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "isArray", type: IsArrayPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsArrayPipe, [{
        type: Pipe,
        args: [{ name: 'isArray' }]
    }], null, null); })();

class IsArrayPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IsArrayPipeModule.ɵfac = function IsArrayPipeModule_Factory(t) { return new (t || IsArrayPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IsArrayPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IsArrayPipeModule });
/** @nocollapse */ /** @nocollapse */ IsArrayPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IsArrayPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsArrayPipeModule, [{
        type: NgModule,
        args: [{
                exports: [IsArrayPipe],
                providers: [IsArrayPipe],
                declarations: [IsArrayPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IsArrayPipeModule, { declarations: [IsArrayPipe], exports: [IsArrayPipe] }); })();

class IsNilPipe {
    transform(value) {
        return isNil(value);
    }
}
/** @nocollapse */ /** @nocollapse */ IsNilPipe.ɵfac = function IsNilPipe_Factory(t) { return new (t || IsNilPipe)(); };
/** @nocollapse */ /** @nocollapse */ IsNilPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "isNil", type: IsNilPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsNilPipe, [{
        type: Pipe,
        args: [{ name: 'isNil' }]
    }], null, null); })();

class IsNilPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IsNilPipeModule.ɵfac = function IsNilPipeModule_Factory(t) { return new (t || IsNilPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IsNilPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IsNilPipeModule });
/** @nocollapse */ /** @nocollapse */ IsNilPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IsNilPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsNilPipeModule, [{
        type: NgModule,
        args: [{
                exports: [IsNilPipe],
                providers: [IsNilPipe],
                declarations: [IsNilPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IsNilPipeModule, { declarations: [IsNilPipe], exports: [IsNilPipe] }); })();

class IsNotNullPipe {
    transform(value) {
        return !isNil(value);
    }
}
/** @nocollapse */ /** @nocollapse */ IsNotNullPipe.ɵfac = function IsNotNullPipe_Factory(t) { return new (t || IsNotNullPipe)(); };
/** @nocollapse */ /** @nocollapse */ IsNotNullPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "isNotNull", type: IsNotNullPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsNotNullPipe, [{
        type: Pipe,
        args: [{ name: 'isNotNull' }]
    }], null, null); })();

class IsNotNullPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IsNotNullPipeModule.ɵfac = function IsNotNullPipeModule_Factory(t) { return new (t || IsNotNullPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IsNotNullPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IsNotNullPipeModule });
/** @nocollapse */ /** @nocollapse */ IsNotNullPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IsNotNullPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsNotNullPipeModule, [{
        type: NgModule,
        args: [{
                exports: [IsNotNullPipe],
                providers: [IsNotNullPipe],
                declarations: [IsNotNullPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IsNotNullPipeModule, { declarations: [IsNotNullPipe], exports: [IsNotNullPipe] }); })();

class IsObjectPipe {
    transform(value) {
        return isSimpleObject(value);
    }
}
/** @nocollapse */ /** @nocollapse */ IsObjectPipe.ɵfac = function IsObjectPipe_Factory(t) { return new (t || IsObjectPipe)(); };
/** @nocollapse */ /** @nocollapse */ IsObjectPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "isObject", type: IsObjectPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsObjectPipe, [{
        type: Pipe,
        args: [{ name: 'isObject' }]
    }], null, null); })();

class IsObjectPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IsObjectPipeModule.ɵfac = function IsObjectPipeModule_Factory(t) { return new (t || IsObjectPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IsObjectPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IsObjectPipeModule });
/** @nocollapse */ /** @nocollapse */ IsObjectPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IsObjectPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsObjectPipeModule, [{
        type: NgModule,
        args: [{
                exports: [IsObjectPipe],
                providers: [IsObjectPipe],
                declarations: [IsObjectPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IsObjectPipeModule, { declarations: [IsObjectPipe], exports: [IsObjectPipe] }); })();

class IsStringPipe {
    transform(value) {
        return isString(value);
    }
}
/** @nocollapse */ /** @nocollapse */ IsStringPipe.ɵfac = function IsStringPipe_Factory(t) { return new (t || IsStringPipe)(); };
/** @nocollapse */ /** @nocollapse */ IsStringPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "isString", type: IsStringPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsStringPipe, [{
        type: Pipe,
        args: [{ name: 'isString' }]
    }], null, null); })();

class IsStringPipeModule {
}
/** @nocollapse */ /** @nocollapse */ IsStringPipeModule.ɵfac = function IsStringPipeModule_Factory(t) { return new (t || IsStringPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ IsStringPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: IsStringPipeModule });
/** @nocollapse */ /** @nocollapse */ IsStringPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [IsStringPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IsStringPipeModule, [{
        type: NgModule,
        args: [{
                exports: [IsStringPipe],
                providers: [IsStringPipe],
                declarations: [IsStringPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IsStringPipeModule, { declarations: [IsStringPipe], exports: [IsStringPipe] }); })();

class JoinPipe {
    constructor() {
        this.defaultSeparator = ',';
    }
    transform(input, { separator, mapTransformer } = {}) {
        let result = '';
        if (checkValueIsEmpty(input)) {
            return result;
        }
        const currentSeparator = separator !== null && separator !== void 0 ? separator : this.defaultSeparator;
        if (isFunctionLike(mapTransformer)) {
            // eslint-disable-next-line max-params-no-constructor/max-params-no-constructor
            result = input.reduce((prev, next, index, arr) => {
                const transformed = mapTransformer(next, index, arr);
                const separatorOrEmpty = arr.length - 1 === index ? '' : currentSeparator;
                return prev ? `${prev}${transformed}${separatorOrEmpty}` : `${transformed}${separatorOrEmpty}`;
            }, '');
        }
        else {
            result = input.join(currentSeparator);
        }
        return result;
    }
}
/** @nocollapse */ /** @nocollapse */ JoinPipe.ɵfac = function JoinPipe_Factory(t) { return new (t || JoinPipe)(); };
/** @nocollapse */ /** @nocollapse */ JoinPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "join", type: JoinPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JoinPipe, [{
        type: Pipe,
        args: [{ name: 'join' }]
    }], null, null); })();

class JoinPipeModule {
}
/** @nocollapse */ /** @nocollapse */ JoinPipeModule.ɵfac = function JoinPipeModule_Factory(t) { return new (t || JoinPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ JoinPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: JoinPipeModule });
/** @nocollapse */ /** @nocollapse */ JoinPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [JoinPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JoinPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [JoinPipe],
                providers: [JoinPipe],
                exports: [JoinPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(JoinPipeModule, { declarations: [JoinPipe], exports: [JoinPipe] }); })();

class MarkByFilterPipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    transform(value, filter, color = '#ffdd2d') {
        return isNotNil(filter) ? this.search(value, filter, color) : value;
    }
    search(value, filter, color) {
        if (isNotNil(value)) {
            const highlighted = this.highLightingString(toStringVal(value), toStringVal(filter), color);
            return this.sanitizer.bypassSecurityTrustHtml(highlighted);
        }
        else {
            return '';
        }
    }
    highLightingString(value, filter, color) {
        var _a;
        try {
            const regexp = isRegexpStr(filter)
                ? new RegExp(ensureRegexp(filter), 'ig')
                : new RegExp(filter, 'i');
            return (_a = value === null || value === void 0 ? void 0 : value.toString()) === null || _a === void 0 ? void 0 : _a.replace(regexp, (founded) => `<span style="background: ${color}">${founded}</span>`);
        }
        catch (_b) {
            return value;
        }
    }
}
/** @nocollapse */ /** @nocollapse */ MarkByFilterPipe.ɵfac = function MarkByFilterPipe_Factory(t) { return new (t || MarkByFilterPipe)(i0.ɵɵdirectiveInject(i1.DomSanitizer, 16)); };
/** @nocollapse */ /** @nocollapse */ MarkByFilterPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "markByFilter", type: MarkByFilterPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkByFilterPipe, [{
        type: Pipe,
        args: [{ name: 'markByFilter' }]
    }], function () { return [{ type: i1.DomSanitizer }]; }, null); })();

class MarkByFilterPipeModule {
}
/** @nocollapse */ /** @nocollapse */ MarkByFilterPipeModule.ɵfac = function MarkByFilterPipeModule_Factory(t) { return new (t || MarkByFilterPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ MarkByFilterPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: MarkByFilterPipeModule });
/** @nocollapse */ /** @nocollapse */ MarkByFilterPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [MarkByFilterPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkByFilterPipeModule, [{
        type: NgModule,
        args: [{
                exports: [MarkByFilterPipe],
                providers: [MarkByFilterPipe],
                declarations: [MarkByFilterPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MarkByFilterPipeModule, { declarations: [MarkByFilterPipe], exports: [MarkByFilterPipe] }); })();

class MergeCssClassesPipe {
    transform(...descriptors) {
        return Object.assign({}, ...descriptors.map(this.convertToPlainObject.bind(this)));
    }
    convertToPlainObject(descriptor) {
        if (isNil(descriptor)) {
            return {};
        }
        else if (isString(descriptor)) {
            return this.makePlainObjectOfTrues(descriptor.split(/\s+/));
        }
        else if (isIterable(descriptor)) {
            return this.makePlainObjectOfTrues(Array.from(descriptor));
        }
        return descriptor;
    }
    makePlainObjectOfTrues(array) {
        return array.reduce((object, item) => Object.assign(object, { [item]: true }), {});
    }
}
/** @nocollapse */ /** @nocollapse */ MergeCssClassesPipe.ɵfac = function MergeCssClassesPipe_Factory(t) { return new (t || MergeCssClassesPipe)(); };
/** @nocollapse */ /** @nocollapse */ MergeCssClassesPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "mergeCssClasses", type: MergeCssClassesPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MergeCssClassesPipe, [{
        type: Pipe,
        args: [{ name: 'mergeCssClasses' }]
    }], null, null); })();

class MergeCssClassesPipeModule {
}
/** @nocollapse */ /** @nocollapse */ MergeCssClassesPipeModule.ɵfac = function MergeCssClassesPipeModule_Factory(t) { return new (t || MergeCssClassesPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ MergeCssClassesPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: MergeCssClassesPipeModule });
/** @nocollapse */ /** @nocollapse */ MergeCssClassesPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [MergeCssClassesPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MergeCssClassesPipeModule, [{
        type: NgModule,
        args: [{
                declarations: [MergeCssClassesPipe],
                exports: [MergeCssClassesPipe],
                providers: [MergeCssClassesPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MergeCssClassesPipeModule, { declarations: [MergeCssClassesPipe], exports: [MergeCssClassesPipe] }); })();

class MutableTypePipe {
    transform(value) {
        return value;
    }
}
/** @nocollapse */ /** @nocollapse */ MutableTypePipe.ɵfac = function MutableTypePipe_Factory(t) { return new (t || MutableTypePipe)(); };
/** @nocollapse */ /** @nocollapse */ MutableTypePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "mutable", type: MutableTypePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MutableTypePipe, [{
        type: Pipe,
        args: [{ name: 'mutable' }]
    }], null, null); })();

class MutableTypePipeModule {
}
/** @nocollapse */ /** @nocollapse */ MutableTypePipeModule.ɵfac = function MutableTypePipeModule_Factory(t) { return new (t || MutableTypePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ MutableTypePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: MutableTypePipeModule });
/** @nocollapse */ /** @nocollapse */ MutableTypePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [MutableTypePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MutableTypePipeModule, [{
        type: NgModule,
        args: [{
                exports: [MutableTypePipe],
                providers: [MutableTypePipe],
                declarations: [MutableTypePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MutableTypePipeModule, { declarations: [MutableTypePipe], exports: [MutableTypePipe] }); })();

class NumberFormatPipe {
    transform(value, options) {
        return numberFormat(value, options);
    }
}
/** @nocollapse */ /** @nocollapse */ NumberFormatPipe.ɵfac = function NumberFormatPipe_Factory(t) { return new (t || NumberFormatPipe)(); };
/** @nocollapse */ /** @nocollapse */ NumberFormatPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "numberFormat", type: NumberFormatPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberFormatPipe, [{
        type: Pipe,
        args: [{ name: 'numberFormat' }]
    }], null, null); })();

class NumberFormatPipeModule {
}
/** @nocollapse */ /** @nocollapse */ NumberFormatPipeModule.ɵfac = function NumberFormatPipeModule_Factory(t) { return new (t || NumberFormatPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ NumberFormatPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: NumberFormatPipeModule });
/** @nocollapse */ /** @nocollapse */ NumberFormatPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [NumberFormatPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberFormatPipeModule, [{
        type: NgModule,
        args: [{
                exports: [NumberFormatPipe],
                providers: [NumberFormatPipe],
                declarations: [NumberFormatPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NumberFormatPipeModule, { declarations: [NumberFormatPipe], exports: [NumberFormatPipe] }); })();

class ObjectSizePipe {
    transform(obj) {
        return isNil(obj) ? 0 : Object.keys(obj).length;
    }
}
/** @nocollapse */ /** @nocollapse */ ObjectSizePipe.ɵfac = function ObjectSizePipe_Factory(t) { return new (t || ObjectSizePipe)(); };
/** @nocollapse */ /** @nocollapse */ ObjectSizePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "objectSize", type: ObjectSizePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSizePipe, [{
        type: Pipe,
        args: [{ name: 'objectSize' }]
    }], null, null); })();

class ObjectSizePipeModule {
}
/** @nocollapse */ /** @nocollapse */ ObjectSizePipeModule.ɵfac = function ObjectSizePipeModule_Factory(t) { return new (t || ObjectSizePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ ObjectSizePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: ObjectSizePipeModule });
/** @nocollapse */ /** @nocollapse */ ObjectSizePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [ObjectSizePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSizePipeModule, [{
        type: NgModule,
        args: [{
                exports: [ObjectSizePipe],
                providers: [ObjectSizePipe],
                declarations: [ObjectSizePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ObjectSizePipeModule, { declarations: [ObjectSizePipe], exports: [ObjectSizePipe] }); })();

class SafePipe {
    constructor(sanitizer) {
        this.sanitizer = sanitizer;
    }
    // eslint-disable-next-line complexity
    transform(value, type) {
        const prepared = value !== null && value !== void 0 ? value : '';
        switch (type) {
            case "html" /* HTML */:
                return this.sanitizer.bypassSecurityTrustHtml(prepared);
            case "style" /* STYLE */:
                return this.sanitizer.bypassSecurityTrustStyle(prepared);
            case "script" /* SCRIPT */:
                return this.sanitizer.bypassSecurityTrustScript(prepared);
            case "url" /* URL */:
                return this.sanitizer.bypassSecurityTrustUrl(prepared);
            case "resourceUrl" /* RESOURCE_URL */:
                return this.sanitizer.bypassSecurityTrustResourceUrl(prepared);
            default:
                throw new Error(`Invalid safe type specified: ${type}`);
        }
    }
}
/** @nocollapse */ /** @nocollapse */ SafePipe.ɵfac = function SafePipe_Factory(t) { return new (t || SafePipe)(i0.ɵɵdirectiveInject(i1.DomSanitizer, 16)); };
/** @nocollapse */ /** @nocollapse */ SafePipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "safe", type: SafePipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SafePipe, [{
        type: Pipe,
        args: [{ name: 'safe' }]
    }], function () { return [{ type: i1.DomSanitizer }]; }, null); })();

class SafePipeModule {
}
/** @nocollapse */ /** @nocollapse */ SafePipeModule.ɵfac = function SafePipeModule_Factory(t) { return new (t || SafePipeModule)(); };
/** @nocollapse */ /** @nocollapse */ SafePipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: SafePipeModule });
/** @nocollapse */ /** @nocollapse */ SafePipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [SafePipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SafePipeModule, [{
        type: NgModule,
        args: [{
                exports: [SafePipe],
                providers: [SafePipe],
                declarations: [SafePipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SafePipeModule, { declarations: [SafePipe], exports: [SafePipe] }); })();

class TakeFirstItemPipe {
    transform(value) {
        return takeFirstItem(value);
    }
}
/** @nocollapse */ /** @nocollapse */ TakeFirstItemPipe.ɵfac = function TakeFirstItemPipe_Factory(t) { return new (t || TakeFirstItemPipe)(); };
/** @nocollapse */ /** @nocollapse */ TakeFirstItemPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "takeFirstItem", type: TakeFirstItemPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TakeFirstItemPipe, [{
        type: Pipe,
        args: [{ name: 'takeFirstItem' }]
    }], null, null); })();

class TakeFirstItemPipeModule {
}
/** @nocollapse */ /** @nocollapse */ TakeFirstItemPipeModule.ɵfac = function TakeFirstItemPipeModule_Factory(t) { return new (t || TakeFirstItemPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ TakeFirstItemPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: TakeFirstItemPipeModule });
/** @nocollapse */ /** @nocollapse */ TakeFirstItemPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TakeFirstItemPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TakeFirstItemPipeModule, [{
        type: NgModule,
        args: [{
                exports: [TakeFirstItemPipe],
                providers: [TakeFirstItemPipe],
                declarations: [TakeFirstItemPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TakeFirstItemPipeModule, { declarations: [TakeFirstItemPipe], exports: [TakeFirstItemPipe] }); })();

class TakeSecondItemPipe {
    transform(value) {
        return takeSecondItem(value);
    }
}
/** @nocollapse */ /** @nocollapse */ TakeSecondItemPipe.ɵfac = function TakeSecondItemPipe_Factory(t) { return new (t || TakeSecondItemPipe)(); };
/** @nocollapse */ /** @nocollapse */ TakeSecondItemPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "takeSecondItem", type: TakeSecondItemPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TakeSecondItemPipe, [{
        type: Pipe,
        args: [{ name: 'takeSecondItem' }]
    }], null, null); })();

class TakeSecondItemPipeModule {
}
/** @nocollapse */ /** @nocollapse */ TakeSecondItemPipeModule.ɵfac = function TakeSecondItemPipeModule_Factory(t) { return new (t || TakeSecondItemPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ TakeSecondItemPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: TakeSecondItemPipeModule });
/** @nocollapse */ /** @nocollapse */ TakeSecondItemPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TakeSecondItemPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TakeSecondItemPipeModule, [{
        type: NgModule,
        args: [{
                exports: [TakeSecondItemPipe],
                providers: [TakeSecondItemPipe],
                declarations: [TakeSecondItemPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TakeSecondItemPipeModule, { declarations: [TakeSecondItemPipe], exports: [TakeSecondItemPipe] }); })();

class ToNumberPipe {
    transform(value, locale = 'ru-RU') {
        return toNumber(value, locale);
    }
}
/** @nocollapse */ /** @nocollapse */ ToNumberPipe.ɵfac = function ToNumberPipe_Factory(t) { return new (t || ToNumberPipe)(); };
/** @nocollapse */ /** @nocollapse */ ToNumberPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "toNumber", type: ToNumberPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToNumberPipe, [{
        type: Pipe,
        args: [{ name: 'toNumber' }]
    }], null, null); })();

class ToNumberPipeModule {
}
/** @nocollapse */ /** @nocollapse */ ToNumberPipeModule.ɵfac = function ToNumberPipeModule_Factory(t) { return new (t || ToNumberPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ ToNumberPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: ToNumberPipeModule });
/** @nocollapse */ /** @nocollapse */ ToNumberPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [ToNumberPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToNumberPipeModule, [{
        type: NgModule,
        args: [{
                exports: [ToNumberPipe],
                providers: [ToNumberPipe],
                declarations: [ToNumberPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ToNumberPipeModule, { declarations: [ToNumberPipe], exports: [ToNumberPipe] }); })();

class ToStringPipe {
    transform(value, converter) {
        return isNotNil(value) ? toStringVal(value, converter) : '';
    }
}
/** @nocollapse */ /** @nocollapse */ ToStringPipe.ɵfac = function ToStringPipe_Factory(t) { return new (t || ToStringPipe)(); };
/** @nocollapse */ /** @nocollapse */ ToStringPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "toString", type: ToStringPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToStringPipe, [{
        type: Pipe,
        args: [{ name: 'toString' }]
    }], null, null); })();

class ToStringPipeModule {
}
/** @nocollapse */ /** @nocollapse */ ToStringPipeModule.ɵfac = function ToStringPipeModule_Factory(t) { return new (t || ToStringPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ ToStringPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: ToStringPipeModule });
/** @nocollapse */ /** @nocollapse */ ToStringPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [ToStringPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToStringPipeModule, [{
        type: NgModule,
        args: [{
                exports: [ToStringPipe],
                providers: [ToStringPipe],
                declarations: [ToStringPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ToStringPipeModule, { declarations: [ToStringPipe], exports: [ToStringPipe] }); })();

class TypeAsPipe {
    transform(value, _typedValue) {
        return value;
    }
}
/** @nocollapse */ /** @nocollapse */ TypeAsPipe.ɵfac = function TypeAsPipe_Factory(t) { return new (t || TypeAsPipe)(); };
/** @nocollapse */ /** @nocollapse */ TypeAsPipe.ɵpipe = /** @pureOrBreakMyCode */ i0.ɵɵdefinePipe({ name: "typeAs", type: TypeAsPipe, pure: true });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TypeAsPipe, [{
        type: Pipe,
        args: [{ name: 'typeAs' }]
    }], null, null); })();

class TypeAsPipeModule {
}
/** @nocollapse */ /** @nocollapse */ TypeAsPipeModule.ɵfac = function TypeAsPipeModule_Factory(t) { return new (t || TypeAsPipeModule)(); };
/** @nocollapse */ /** @nocollapse */ TypeAsPipeModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: TypeAsPipeModule });
/** @nocollapse */ /** @nocollapse */ TypeAsPipeModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TypeAsPipe] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TypeAsPipeModule, [{
        type: NgModule,
        args: [{
                exports: [TypeAsPipe],
                providers: [TypeAsPipe],
                declarations: [TypeAsPipe]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TypeAsPipeModule, { declarations: [TypeAsPipe], exports: [TypeAsPipe] }); })();

/**
 * Generated bundle index. Do not edit.
 */

export { AtPipe, AtPipeModule, BracePipe, BracePipeModule, CoerceBooleanPipe, CoerceBooleanPipeModule, DateToNativePipe, DateToNativePipeModule, DeclinationOfNumberPipe, DeclinationOfNumberPipeModule, DeepPathPipe, DeepPathPipeModule, DefaultValuePipe, DefaultValuePipeModule, DetectBrowserPipe, DetectBrowserPipeModule, DisplayItemPipe, DisplayItemPipeModule, EntrySingleSetPipe, EntrySingleSetPipeModule, FileSizePipe, FileSizePipeModule, FilterUniquePipe, FilterUniquePipeModule, FormatDatePipe, FormatDatePipeModule, HasAtMostOneItemPipe, HasAtMostOneItemPipeModule, HasItemsPipe, HasItemsPipeModule, HasManyItemsPipe, HasManyItemsPipeModule, HasNoItemsPipe, HasNoItemsPipeModule, HasOneItemPipe, HasOneItemPipeModule, HasPipe, HasPipeModule, HttpReplacerPipe, HttpReplacerPipeModule, IncludesPipe, IncludesPipeModule, IsArrayPipe, IsArrayPipeModule, IsNilPipe, IsNilPipeModule, IsNotNullPipe, IsNotNullPipeModule, IsObjectPipe, IsObjectPipeModule, IsStringPipe, IsStringPipeModule, JoinPipe, JoinPipeModule, MarkByFilterPipe, MarkByFilterPipeModule, MergeCssClassesPipe, MergeCssClassesPipeModule, MutableTypePipe, MutableTypePipeModule, NumberFormatPipe, NumberFormatPipeModule, ObjectSizePipe, ObjectSizePipeModule, SafePipe, SafePipeModule, TakeFirstItemPipe, TakeFirstItemPipeModule, TakeSecondItemPipe, TakeSecondItemPipeModule, ToNumberPipe, ToNumberPipeModule, ToStringPipe, ToStringPipeModule, TypeAsPipe, TypeAsPipeModule };
//# sourceMappingURL=angular-ru-cdk-pipes.js.map
