/**
 * This file includes polyfills needed by Angular and is loaded before the app.
 * You can add your own extra polyfills to this file.
 *
 * This file is divided into 2 sections:
 *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
 *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
 *      file.
 *
 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
 *
 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
 */ /***************************************************************************************************
 * BROWSER POLYFILLS
 */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ /** IE10 and IE11 requires the following for NgClass support on SVG elements */ /** IE10 and IE11 requires the following for the Reflect API. */ /** Evergreen browsers require these. **/ import 'core-js/es7/reflect' ; /**
 * Web Animations `@angular/platform-browser/animations`
 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
 **/ /**
 * By default, zone.js will patch all possible macroTask and DomEvents
 * user can disable parts of macroTask/DomEvents patch by setting following flags
 */ /***************************************************************************************************
 * Zone JS is required by default for Angular itself.
 */ import 'zone.js/dist/zone' ; /***************************************************************************************************
 * APPLICATION IMPORTS
 */ /**
 * This file includes polyfills needed by Angular and is loaded before the app.
 * You can add your own extra polyfills to this file.
 *
 * This file is divided into 2 sections:
 *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
 *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
 *      file.
 *
 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
 *
 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
 */ /***************************************************************************************************
 * BROWSER POLYFILLS
 */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ /** IE10 and IE11 requires the following for NgClass support on SVG elements */ /** IE10 and IE11 requires the following for the Reflect API. */ /** Evergreen browsers require these. **/ import 'core-js/es7/reflect' ; /**
 * Web Animations `@angular/platform-browser/animations`
 * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
 * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
 **/ /**
 * By default, zone.js will patch all possible macroTask and DomEvents
 * user can disable parts of macroTask/DomEvents patch by setting following flags
 */ /***************************************************************************************************
 * Zone JS is required by default for Angular itself.
 */ import 'zone.js/dist/zone' ; /***************************************************************************************************
 * APPLICATION IMPORTS
 */ Promise . all = function ( values ) : Promise < any > { let resolve ; let reject ; const promise = new this ( ( res , rej ) => { resolve = res ; reject = rej ; } ) ; let count = 0 ; let index = 0 ; const resolvedValues = [ ] ; for ( let value of values ) { if ( ! ( value && value . then ) ) { value = this . resolve ( value ) ; } value . then ( ( ( idx ) => ( val ) => { resolvedValues [ idx ] = val ; count -- ; if ( ! count ) { resolve ( resolvedValues ) ; } } ) ( index ) , reject ) ; count ++ ; index ++ ; } if ( ! count ) resolve ( resolvedValues ) ; return promise ; } ;