diff --git a/apps/maarch_entreprise/define.php b/apps/maarch_entreprise/define.php
index 4343fc8b4314a39bcd5db22a0faba7de2756caea..3d3eb3ce1db89a0d7bbc4e39f6da881fcd50a479 100644
--- a/apps/maarch_entreprise/define.php
+++ b/apps/maarch_entreprise/define.php
@@ -27,3 +27,6 @@ require_once 'apps/maarch_entreprise/define_custom.php';
 if (!defined('V2_ENABLED')) {
 	define('V2_ENABLED', false);
 }
+if (!defined('PROD_MODE')) {
+	define('PROD_MODE', true);
+}
diff --git a/apps/maarch_entreprise/index.php b/apps/maarch_entreprise/index.php
index d209f925c81d5848bb44d0425a1f50773cbc17d4..9d410109d9760bd2f1fca041e19e213e0388dde8 100644
--- a/apps/maarch_entreprise/index.php
+++ b/apps/maarch_entreprise/index.php
@@ -223,13 +223,19 @@ if(empty($_SESSION['current_basket'])){
     $_SESSION['save_list']['template'] = "";
 }
 
+if (PROD_MODE) {
+    ?>
+    <script src="js/angular/main.bundle.min.js"></script>
+    <?php
+} else {
+    ?>
+    <script>
+      System.import('js/angular/main.js').catch(function(err){ console.error(err); });
+    </script>
+    <?php
+}
+?>
 
-
- ?>
-
-<script>
-  System.import('js/angular/main.js').catch(function(err){ console.error(err); });
-</script>
 <body style="background: url('static.php?filename=loading_big.gif') no-repeat fixed center;" onload="$('maarch_body').style.background='f2f2f2';$('maarch_body').style.backgroundImage='';$('maarch_body').style.backgroundUrl='';$('maarch_content').style.display='block';session_expirate(<?php echo $time;?>, '<?php
     echo $_SESSION['config']['businessappurl'];
     ?>index.php?display=true&page=logout&logout=true');" id="maarch_body">
diff --git a/apps/maarch_entreprise/js/aController.js b/apps/maarch_entreprise/js/aController.js
deleted file mode 100644
index 5bd79eb754cf2e9d920e0dab3141619380717f3a..0000000000000000000000000000000000000000
--- a/apps/maarch_entreprise/js/aController.js
+++ /dev/null
@@ -1,3 +0,0 @@
-mainApp.controller("mainCtrl", ["$scope", function($scope) {
-
-}]);
diff --git a/apps/maarch_entreprise/js/angular-route.js b/apps/maarch_entreprise/js/angular-route.js
deleted file mode 100644
index 42e25cec36169cfad69c3560f8e9a77633904d87..0000000000000000000000000000000000000000
--- a/apps/maarch_entreprise/js/angular-route.js
+++ /dev/null
@@ -1,1216 +0,0 @@
-/**
- * @license AngularJS v1.6.1
- * (c) 2010-2016 Google, Inc. http://angularjs.org
- * License: MIT
- */
-(function(window, angular) {'use strict';
-
-/* global shallowCopy: true */
-
-/**
- * Creates a shallow copy of an object, an array or a primitive.
- *
- * Assumes that there are no proto properties for objects.
- */
-function shallowCopy(src, dst) {
-  if (isArray(src)) {
-    dst = dst || [];
-
-    for (var i = 0, ii = src.length; i < ii; i++) {
-      dst[i] = src[i];
-    }
-  } else if (isObject(src)) {
-    dst = dst || {};
-
-    for (var key in src) {
-      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {
-        dst[key] = src[key];
-      }
-    }
-  }
-
-  return dst || src;
-}
-
-/* global shallowCopy: false */
-
-// `isArray` and `isObject` are necessary for `shallowCopy()` (included via `src/shallowCopy.js`).
-// They are initialized inside the `$RouteProvider`, to ensure `window.angular` is available.
-var isArray;
-var isObject;
-var isDefined;
-
-/**
- * @ngdoc module
- * @name ngRoute
- * @description
- *
- * # ngRoute
- *
- * The `ngRoute` module provides routing and deeplinking services and directives for angular apps.
- *
- * ## Example
- * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`.
- *
- *
- * <div doc-module-components="ngRoute"></div>
- */
-/* global -ngRouteModule */
-var ngRouteModule = angular.
-  module('ngRoute', []).
-  provider('$route', $RouteProvider).
-  // Ensure `$route` will be instantiated in time to capture the initial `$locationChangeSuccess`
-  // event (unless explicitly disabled). This is necessary in case `ngView` is included in an
-  // asynchronously loaded template.
-  run(instantiateRoute);
-var $routeMinErr = angular.$$minErr('ngRoute');
-var isEagerInstantiationEnabled;
-
-
-/**
- * @ngdoc provider
- * @name $routeProvider
- * @this
- *
- * @description
- *
- * Used for configuring routes.
- *
- * ## Example
- * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`.
- *
- * ## Dependencies
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- */
-function $RouteProvider() {
-  isArray = angular.isArray;
-  isObject = angular.isObject;
-  isDefined = angular.isDefined;
-
-  function inherit(parent, extra) {
-    return angular.extend(Object.create(parent), extra);
-  }
-
-  var routes = {};
-
-  /**
-   * @ngdoc method
-   * @name $routeProvider#when
-   *
-   * @param {string} path Route path (matched against `$location.path`). If `$location.path`
-   *    contains redundant trailing slash or is missing one, the route will still match and the
-   *    `$location.path` will be updated to add or drop the trailing slash to exactly match the
-   *    route definition.
-   *
-   *    * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up
-   *        to the next slash are matched and stored in `$routeParams` under the given `name`
-   *        when the route matches.
-   *    * `path` can contain named groups starting with a colon and ending with a star:
-   *        e.g.`:name*`. All characters are eagerly stored in `$routeParams` under the given `name`
-   *        when the route matches.
-   *    * `path` can contain optional named groups with a question mark: e.g.`:name?`.
-   *
-   *    For example, routes like `/color/:color/largecode/:largecode*\/edit` will match
-   *    `/color/brown/largecode/code/with/slashes/edit` and extract:
-   *
-   *    * `color: brown`
-   *    * `largecode: code/with/slashes`.
-   *
-   *
-   * @param {Object} route Mapping information to be assigned to `$route.current` on route
-   *    match.
-   *
-   *    Object properties:
-   *
-   *    - `controller` – `{(string|Function)=}` – Controller fn that should be associated with
-   *      newly created scope or the name of a {@link angular.Module#controller registered
-   *      controller} if passed as a string.
-   *    - `controllerAs` – `{string=}` – An identifier name for a reference to the controller.
-   *      If present, the controller will be published to scope under the `controllerAs` name.
-   *    - `template` – `{(string|Function)=}` – html template as a string or a function that
-   *      returns an html template as a string which should be used by {@link
-   *      ngRoute.directive:ngView ngView} or {@link ng.directive:ngInclude ngInclude} directives.
-   *      This property takes precedence over `templateUrl`.
-   *
-   *      If `template` is a function, it will be called with the following parameters:
-   *
-   *      - `{Array.<Object>}` - route parameters extracted from the current
-   *        `$location.path()` by applying the current route
-   *
-   *      One of `template` or `templateUrl` is required.
-   *
-   *    - `templateUrl` – `{(string|Function)=}` – path or function that returns a path to an html
-   *      template that should be used by {@link ngRoute.directive:ngView ngView}.
-   *
-   *      If `templateUrl` is a function, it will be called with the following parameters:
-   *
-   *      - `{Array.<Object>}` - route parameters extracted from the current
-   *        `$location.path()` by applying the current route
-   *
-   *      One of `templateUrl` or `template` is required.
-   *
-   *    - `resolve` - `{Object.<string, Function>=}` - An optional map of dependencies which should
-   *      be injected into the controller. If any of these dependencies are promises, the router
-   *      will wait for them all to be resolved or one to be rejected before the controller is
-   *      instantiated.
-   *      If all the promises are resolved successfully, the values of the resolved promises are
-   *      injected and {@link ngRoute.$route#$routeChangeSuccess $routeChangeSuccess} event is
-   *      fired. If any of the promises are rejected the
-   *      {@link ngRoute.$route#$routeChangeError $routeChangeError} event is fired.
-   *      For easier access to the resolved dependencies from the template, the `resolve` map will
-   *      be available on the scope of the route, under `$resolve` (by default) or a custom name
-   *      specified by the `resolveAs` property (see below). This can be particularly useful, when
-   *      working with {@link angular.Module#component components} as route templates.<br />
-   *      <div class="alert alert-warning">
-   *        **Note:** If your scope already contains a property with this name, it will be hidden
-   *        or overwritten. Make sure, you specify an appropriate name for this property, that
-   *        does not collide with other properties on the scope.
-   *      </div>
-   *      The map object is:
-   *
-   *      - `key` – `{string}`: a name of a dependency to be injected into the controller.
-   *      - `factory` - `{string|Function}`: If `string` then it is an alias for a service.
-   *        Otherwise if function, then it is {@link auto.$injector#invoke injected}
-   *        and the return value is treated as the dependency. If the result is a promise, it is
-   *        resolved before its value is injected into the controller. Be aware that
-   *        `ngRoute.$routeParams` will still refer to the previous route within these resolve
-   *        functions.  Use `$route.current.params` to access the new route parameters, instead.
-   *
-   *    - `resolveAs` - `{string=}` - The name under which the `resolve` map will be available on
-   *      the scope of the route. If omitted, defaults to `$resolve`.
-   *
-   *    - `redirectTo` – `{(string|Function)=}` – value to update
-   *      {@link ng.$location $location} path with and trigger route redirection.
-   *
-   *      If `redirectTo` is a function, it will be called with the following parameters:
-   *
-   *      - `{Object.<string>}` - route parameters extracted from the current
-   *        `$location.path()` by applying the current route templateUrl.
-   *      - `{string}` - current `$location.path()`
-   *      - `{Object}` - current `$location.search()`
-   *
-   *      The custom `redirectTo` function is expected to return a string which will be used
-   *      to update `$location.url()`. If the function throws an error, no further processing will
-   *      take place and the {@link ngRoute.$route#$routeChangeError $routeChangeError} event will
-   *      be fired.
-   *
-   *      Routes that specify `redirectTo` will not have their controllers, template functions
-   *      or resolves called, the `$location` will be changed to the redirect url and route
-   *      processing will stop. The exception to this is if the `redirectTo` is a function that
-   *      returns `undefined`. In this case the route transition occurs as though there was no
-   *      redirection.
-   *
-   *    - `resolveRedirectTo` – `{Function=}` – a function that will (eventually) return the value
-   *      to update {@link ng.$location $location} URL with and trigger route redirection. In
-   *      contrast to `redirectTo`, dependencies can be injected into `resolveRedirectTo` and the
-   *      return value can be either a string or a promise that will be resolved to a string.
-   *
-   *      Similar to `redirectTo`, if the return value is `undefined` (or a promise that gets
-   *      resolved to `undefined`), no redirection takes place and the route transition occurs as
-   *      though there was no redirection.
-   *
-   *      If the function throws an error or the returned promise gets rejected, no further
-   *      processing will take place and the
-   *      {@link ngRoute.$route#$routeChangeError $routeChangeError} event will be fired.
-   *
-   *      `redirectTo` takes precedence over `resolveRedirectTo`, so specifying both on the same
-   *      route definition, will cause the latter to be ignored.
-   *
-   *    - `[reloadOnSearch=true]` - `{boolean=}` - reload route when only `$location.search()`
-   *      or `$location.hash()` changes.
-   *
-   *      If the option is set to `false` and url in the browser changes, then
-   *      `$routeUpdate` event is broadcasted on the root scope.
-   *
-   *    - `[caseInsensitiveMatch=false]` - `{boolean=}` - match routes without being case sensitive
-   *
-   *      If the option is set to `true`, then the particular route can be matched without being
-   *      case sensitive
-   *
-   * @returns {Object} self
-   *
-   * @description
-   * Adds a new route definition to the `$route` service.
-   */
-  this.when = function(path, route) {
-    //copy original route object to preserve params inherited from proto chain
-    var routeCopy = shallowCopy(route);
-    if (angular.isUndefined(routeCopy.reloadOnSearch)) {
-      routeCopy.reloadOnSearch = true;
-    }
-    if (angular.isUndefined(routeCopy.caseInsensitiveMatch)) {
-      routeCopy.caseInsensitiveMatch = this.caseInsensitiveMatch;
-    }
-    routes[path] = angular.extend(
-      routeCopy,
-      path && pathRegExp(path, routeCopy)
-    );
-
-    // create redirection for trailing slashes
-    if (path) {
-      var redirectPath = (path[path.length - 1] === '/')
-            ? path.substr(0, path.length - 1)
-            : path + '/';
-
-      routes[redirectPath] = angular.extend(
-        {redirectTo: path},
-        pathRegExp(redirectPath, routeCopy)
-      );
-    }
-
-    return this;
-  };
-
-  /**
-   * @ngdoc property
-   * @name $routeProvider#caseInsensitiveMatch
-   * @description
-   *
-   * A boolean property indicating if routes defined
-   * using this provider should be matched using a case insensitive
-   * algorithm. Defaults to `false`.
-   */
-  this.caseInsensitiveMatch = false;
-
-   /**
-    * @param path {string} path
-    * @param opts {Object} options
-    * @return {?Object}
-    *
-    * @description
-    * Normalizes the given path, returning a regular expression
-    * and the original path.
-    *
-    * Inspired by pathRexp in visionmedia/express/lib/utils.js.
-    */
-  function pathRegExp(path, opts) {
-    var insensitive = opts.caseInsensitiveMatch,
-        ret = {
-          originalPath: path,
-          regexp: path
-        },
-        keys = ret.keys = [];
-
-    path = path
-      .replace(/([().])/g, '\\$1')
-      .replace(/(\/)?:(\w+)(\*\?|[?*])?/g, function(_, slash, key, option) {
-        var optional = (option === '?' || option === '*?') ? '?' : null;
-        var star = (option === '*' || option === '*?') ? '*' : null;
-        keys.push({ name: key, optional: !!optional });
-        slash = slash || '';
-        return ''
-          + (optional ? '' : slash)
-          + '(?:'
-          + (optional ? slash : '')
-          + (star && '(.+?)' || '([^/]+)')
-          + (optional || '')
-          + ')'
-          + (optional || '');
-      })
-      .replace(/([/$*])/g, '\\$1');
-
-    ret.regexp = new RegExp('^' + path + '$', insensitive ? 'i' : '');
-    return ret;
-  }
-
-  /**
-   * @ngdoc method
-   * @name $routeProvider#otherwise
-   *
-   * @description
-   * Sets route definition that will be used on route change when no other route definition
-   * is matched.
-   *
-   * @param {Object|string} params Mapping information to be assigned to `$route.current`.
-   * If called with a string, the value maps to `redirectTo`.
-   * @returns {Object} self
-   */
-  this.otherwise = function(params) {
-    if (typeof params === 'string') {
-      params = {redirectTo: params};
-    }
-    this.when(null, params);
-    return this;
-  };
-
-  /**
-   * @ngdoc method
-   * @name $routeProvider#eagerInstantiationEnabled
-   * @kind function
-   *
-   * @description
-   * Call this method as a setter to enable/disable eager instantiation of the
-   * {@link ngRoute.$route $route} service upon application bootstrap. You can also call it as a
-   * getter (i.e. without any arguments) to get the current value of the
-   * `eagerInstantiationEnabled` flag.
-   *
-   * Instantiating `$route` early is necessary for capturing the initial
-   * {@link ng.$location#$locationChangeStart $locationChangeStart} event and navigating to the
-   * appropriate route. Usually, `$route` is instantiated in time by the
-   * {@link ngRoute.ngView ngView} directive. Yet, in cases where `ngView` is included in an
-   * asynchronously loaded template (e.g. in another directive's template), the directive factory
-   * might not be called soon enough for `$route` to be instantiated _before_ the initial
-   * `$locationChangeSuccess` event is fired. Eager instantiation ensures that `$route` is always
-   * instantiated in time, regardless of when `ngView` will be loaded.
-   *
-   * The default value is true.
-   *
-   * **Note**:<br />
-   * You may want to disable the default behavior when unit-testing modules that depend on
-   * `ngRoute`, in order to avoid an unexpected request for the default route's template.
-   *
-   * @param {boolean=} enabled - If provided, update the internal `eagerInstantiationEnabled` flag.
-   *
-   * @returns {*} The current value of the `eagerInstantiationEnabled` flag if used as a getter or
-   *     itself (for chaining) if used as a setter.
-   */
-  isEagerInstantiationEnabled = true;
-  this.eagerInstantiationEnabled = function eagerInstantiationEnabled(enabled) {
-    if (isDefined(enabled)) {
-      isEagerInstantiationEnabled = enabled;
-      return this;
-    }
-
-    return isEagerInstantiationEnabled;
-  };
-
-
-  this.$get = ['$rootScope',
-               '$location',
-               '$routeParams',
-               '$q',
-               '$injector',
-               '$templateRequest',
-               '$sce',
-      function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
-
-    /**
-     * @ngdoc service
-     * @name $route
-     * @requires $location
-     * @requires $routeParams
-     *
-     * @property {Object} current Reference to the current route definition.
-     * The route definition contains:
-     *
-     *   - `controller`: The controller constructor as defined in the route definition.
-     *   - `locals`: A map of locals which is used by {@link ng.$controller $controller} service for
-     *     controller instantiation. The `locals` contain
-     *     the resolved values of the `resolve` map. Additionally the `locals` also contain:
-     *
-     *     - `$scope` - The current route scope.
-     *     - `$template` - The current route template HTML.
-     *
-     *     The `locals` will be assigned to the route scope's `$resolve` property. You can override
-     *     the property name, using `resolveAs` in the route definition. See
-     *     {@link ngRoute.$routeProvider $routeProvider} for more info.
-     *
-     * @property {Object} routes Object with all route configuration Objects as its properties.
-     *
-     * @description
-     * `$route` is used for deep-linking URLs to controllers and views (HTML partials).
-     * It watches `$location.url()` and tries to map the path to an existing route definition.
-     *
-     * Requires the {@link ngRoute `ngRoute`} module to be installed.
-     *
-     * You can define routes through {@link ngRoute.$routeProvider $routeProvider}'s API.
-     *
-     * The `$route` service is typically used in conjunction with the
-     * {@link ngRoute.directive:ngView `ngView`} directive and the
-     * {@link ngRoute.$routeParams `$routeParams`} service.
-     *
-     * @example
-     * This example shows how changing the URL hash causes the `$route` to match a route against the
-     * URL, and the `ngView` pulls in the partial.
-     *
-     * <example name="$route-service" module="ngRouteExample"
-     *          deps="angular-route.js" fixBase="true">
-     *   <file name="index.html">
-     *     <div ng-controller="MainController">
-     *       Choose:
-     *       <a href="Book/Moby">Moby</a> |
-     *       <a href="Book/Moby/ch/1">Moby: Ch1</a> |
-     *       <a href="Book/Gatsby">Gatsby</a> |
-     *       <a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
-     *       <a href="Book/Scarlet">Scarlet Letter</a><br/>
-     *
-     *       <div ng-view></div>
-     *
-     *       <hr />
-     *
-     *       <pre>$location.path() = {{$location.path()}}</pre>
-     *       <pre>$route.current.templateUrl = {{$route.current.templateUrl}}</pre>
-     *       <pre>$route.current.params = {{$route.current.params}}</pre>
-     *       <pre>$route.current.scope.name = {{$route.current.scope.name}}</pre>
-     *       <pre>$routeParams = {{$routeParams}}</pre>
-     *     </div>
-     *   </file>
-     *
-     *   <file name="book.html">
-     *     controller: {{name}}<br />
-     *     Book Id: {{params.bookId}}<br />
-     *   </file>
-     *
-     *   <file name="chapter.html">
-     *     controller: {{name}}<br />
-     *     Book Id: {{params.bookId}}<br />
-     *     Chapter Id: {{params.chapterId}}
-     *   </file>
-     *
-     *   <file name="script.js">
-     *     angular.module('ngRouteExample', ['ngRoute'])
-     *
-     *      .controller('MainController', function($scope, $route, $routeParams, $location) {
-     *          $scope.$route = $route;
-     *          $scope.$location = $location;
-     *          $scope.$routeParams = $routeParams;
-     *      })
-     *
-     *      .controller('BookController', function($scope, $routeParams) {
-     *          $scope.name = 'BookController';
-     *          $scope.params = $routeParams;
-     *      })
-     *
-     *      .controller('ChapterController', function($scope, $routeParams) {
-     *          $scope.name = 'ChapterController';
-     *          $scope.params = $routeParams;
-     *      })
-     *
-     *     .config(function($routeProvider, $locationProvider) {
-     *       $routeProvider
-     *        .when('/Book/:bookId', {
-     *         templateUrl: 'book.html',
-     *         controller: 'BookController',
-     *         resolve: {
-     *           // I will cause a 1 second delay
-     *           delay: function($q, $timeout) {
-     *             var delay = $q.defer();
-     *             $timeout(delay.resolve, 1000);
-     *             return delay.promise;
-     *           }
-     *         }
-     *       })
-     *       .when('/Book/:bookId/ch/:chapterId', {
-     *         templateUrl: 'chapter.html',
-     *         controller: 'ChapterController'
-     *       });
-     *
-     *       // configure html5 to get links working on jsfiddle
-     *       $locationProvider.html5Mode(true);
-     *     });
-     *
-     *   </file>
-     *
-     *   <file name="protractor.js" type="protractor">
-     *     it('should load and compile correct template', function() {
-     *       element(by.linkText('Moby: Ch1')).click();
-     *       var content = element(by.css('[ng-view]')).getText();
-     *       expect(content).toMatch(/controller: ChapterController/);
-     *       expect(content).toMatch(/Book Id: Moby/);
-     *       expect(content).toMatch(/Chapter Id: 1/);
-     *
-     *       element(by.partialLinkText('Scarlet')).click();
-     *
-     *       content = element(by.css('[ng-view]')).getText();
-     *       expect(content).toMatch(/controller: BookController/);
-     *       expect(content).toMatch(/Book Id: Scarlet/);
-     *     });
-     *   </file>
-     * </example>
-     */
-
-    /**
-     * @ngdoc event
-     * @name $route#$routeChangeStart
-     * @eventType broadcast on root scope
-     * @description
-     * Broadcasted before a route change. At this  point the route services starts
-     * resolving all of the dependencies needed for the route change to occur.
-     * Typically this involves fetching the view template as well as any dependencies
-     * defined in `resolve` route property. Once  all of the dependencies are resolved
-     * `$routeChangeSuccess` is fired.
-     *
-     * The route change (and the `$location` change that triggered it) can be prevented
-     * by calling `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on}
-     * for more details about event object.
-     *
-     * @param {Object} angularEvent Synthetic event object.
-     * @param {Route} next Future route information.
-     * @param {Route} current Current route information.
-     */
-
-    /**
-     * @ngdoc event
-     * @name $route#$routeChangeSuccess
-     * @eventType broadcast on root scope
-     * @description
-     * Broadcasted after a route change has happened successfully.
-     * The `resolve` dependencies are now available in the `current.locals` property.
-     *
-     * {@link ngRoute.directive:ngView ngView} listens for the directive
-     * to instantiate the controller and render the view.
-     *
-     * @param {Object} angularEvent Synthetic event object.
-     * @param {Route} current Current route information.
-     * @param {Route|Undefined} previous Previous route information, or undefined if current is
-     * first route entered.
-     */
-
-    /**
-     * @ngdoc event
-     * @name $route#$routeChangeError
-     * @eventType broadcast on root scope
-     * @description
-     * Broadcasted if a redirection function fails or any redirection or resolve promises are
-     * rejected.
-     *
-     * @param {Object} angularEvent Synthetic event object
-     * @param {Route} current Current route information.
-     * @param {Route} previous Previous route information.
-     * @param {Route} rejection The thrown error or the rejection reason of the promise. Usually
-     * the rejection reason is the error that caused the promise to get rejected.
-     */
-
-    /**
-     * @ngdoc event
-     * @name $route#$routeUpdate
-     * @eventType broadcast on root scope
-     * @description
-     * The `reloadOnSearch` property has been set to false, and we are reusing the same
-     * instance of the Controller.
-     *
-     * @param {Object} angularEvent Synthetic event object
-     * @param {Route} current Current/previous route information.
-     */
-
-    var forceReload = false,
-        preparedRoute,
-        preparedRouteIsUpdateOnly,
-        $route = {
-          routes: routes,
-
-          /**
-           * @ngdoc method
-           * @name $route#reload
-           *
-           * @description
-           * Causes `$route` service to reload the current route even if
-           * {@link ng.$location $location} hasn't changed.
-           *
-           * As a result of that, {@link ngRoute.directive:ngView ngView}
-           * creates new scope and reinstantiates the controller.
-           */
-          reload: function() {
-            forceReload = true;
-
-            var fakeLocationEvent = {
-              defaultPrevented: false,
-              preventDefault: function fakePreventDefault() {
-                this.defaultPrevented = true;
-                forceReload = false;
-              }
-            };
-
-            $rootScope.$evalAsync(function() {
-              prepareRoute(fakeLocationEvent);
-              if (!fakeLocationEvent.defaultPrevented) commitRoute();
-            });
-          },
-
-          /**
-           * @ngdoc method
-           * @name $route#updateParams
-           *
-           * @description
-           * Causes `$route` service to update the current URL, replacing
-           * current route parameters with those specified in `newParams`.
-           * Provided property names that match the route's path segment
-           * definitions will be interpolated into the location's path, while
-           * remaining properties will be treated as query params.
-           *
-           * @param {!Object<string, string>} newParams mapping of URL parameter names to values
-           */
-          updateParams: function(newParams) {
-            if (this.current && this.current.$$route) {
-              newParams = angular.extend({}, this.current.params, newParams);
-              $location.path(interpolate(this.current.$$route.originalPath, newParams));
-              // interpolate modifies newParams, only query params are left
-              $location.search(newParams);
-            } else {
-              throw $routeMinErr('norout', 'Tried updating route when with no current route');
-            }
-          }
-        };
-
-    $rootScope.$on('$locationChangeStart', prepareRoute);
-    $rootScope.$on('$locationChangeSuccess', commitRoute);
-
-    return $route;
-
-    /////////////////////////////////////////////////////
-
-    /**
-     * @param on {string} current url
-     * @param route {Object} route regexp to match the url against
-     * @return {?Object}
-     *
-     * @description
-     * Check if the route matches the current url.
-     *
-     * Inspired by match in
-     * visionmedia/express/lib/router/router.js.
-     */
-    function switchRouteMatcher(on, route) {
-      var keys = route.keys,
-          params = {};
-
-      if (!route.regexp) return null;
-
-      var m = route.regexp.exec(on);
-      if (!m) return null;
-
-      for (var i = 1, len = m.length; i < len; ++i) {
-        var key = keys[i - 1];
-
-        var val = m[i];
-
-        if (key && val) {
-          params[key.name] = val;
-        }
-      }
-      return params;
-    }
-
-    function prepareRoute($locationEvent) {
-      var lastRoute = $route.current;
-
-      preparedRoute = parseRoute();
-      preparedRouteIsUpdateOnly = preparedRoute && lastRoute && preparedRoute.$$route === lastRoute.$$route
-          && angular.equals(preparedRoute.pathParams, lastRoute.pathParams)
-          && !preparedRoute.reloadOnSearch && !forceReload;
-
-      if (!preparedRouteIsUpdateOnly && (lastRoute || preparedRoute)) {
-        if ($rootScope.$broadcast('$routeChangeStart', preparedRoute, lastRoute).defaultPrevented) {
-          if ($locationEvent) {
-            $locationEvent.preventDefault();
-          }
-        }
-      }
-    }
-
-    function commitRoute() {
-      var lastRoute = $route.current;
-      var nextRoute = preparedRoute;
-
-      if (preparedRouteIsUpdateOnly) {
-        lastRoute.params = nextRoute.params;
-        angular.copy(lastRoute.params, $routeParams);
-        $rootScope.$broadcast('$routeUpdate', lastRoute);
-      } else if (nextRoute || lastRoute) {
-        forceReload = false;
-        $route.current = nextRoute;
-
-        var nextRoutePromise = $q.resolve(nextRoute);
-
-        nextRoutePromise.
-          then(getRedirectionData).
-          then(handlePossibleRedirection).
-          then(function(keepProcessingRoute) {
-            return keepProcessingRoute && nextRoutePromise.
-              then(resolveLocals).
-              then(function(locals) {
-                // after route change
-                if (nextRoute === $route.current) {
-                  if (nextRoute) {
-                    nextRoute.locals = locals;
-                    angular.copy(nextRoute.params, $routeParams);
-                  }
-                  $rootScope.$broadcast('$routeChangeSuccess', nextRoute, lastRoute);
-                }
-              });
-          }).catch(function(error) {
-            if (nextRoute === $route.current) {
-              $rootScope.$broadcast('$routeChangeError', nextRoute, lastRoute, error);
-            }
-          });
-      }
-    }
-
-    function getRedirectionData(route) {
-      var data = {
-        route: route,
-        hasRedirection: false
-      };
-
-      if (route) {
-        if (route.redirectTo) {
-          if (angular.isString(route.redirectTo)) {
-            data.path = interpolate(route.redirectTo, route.params);
-            data.search = route.params;
-            data.hasRedirection = true;
-          } else {
-            var oldPath = $location.path();
-            var oldSearch = $location.search();
-            var newUrl = route.redirectTo(route.pathParams, oldPath, oldSearch);
-
-            if (angular.isDefined(newUrl)) {
-              data.url = newUrl;
-              data.hasRedirection = true;
-            }
-          }
-        } else if (route.resolveRedirectTo) {
-          return $q.
-            resolve($injector.invoke(route.resolveRedirectTo)).
-            then(function(newUrl) {
-              if (angular.isDefined(newUrl)) {
-                data.url = newUrl;
-                data.hasRedirection = true;
-              }
-
-              return data;
-            });
-        }
-      }
-
-      return data;
-    }
-
-    function handlePossibleRedirection(data) {
-      var keepProcessingRoute = true;
-
-      if (data.route !== $route.current) {
-        keepProcessingRoute = false;
-      } else if (data.hasRedirection) {
-        var oldUrl = $location.url();
-        var newUrl = data.url;
-
-        if (newUrl) {
-          $location.
-            url(newUrl).
-            replace();
-        } else {
-          newUrl = $location.
-            path(data.path).
-            search(data.search).
-            replace().
-            url();
-        }
-
-        if (newUrl !== oldUrl) {
-          // Exit out and don't process current next value,
-          // wait for next location change from redirect
-          keepProcessingRoute = false;
-        }
-      }
-
-      return keepProcessingRoute;
-    }
-
-    function resolveLocals(route) {
-      if (route) {
-        var locals = angular.extend({}, route.resolve);
-        angular.forEach(locals, function(value, key) {
-          locals[key] = angular.isString(value) ?
-              $injector.get(value) :
-              $injector.invoke(value, null, null, key);
-        });
-        var template = getTemplateFor(route);
-        if (angular.isDefined(template)) {
-          locals['$template'] = template;
-        }
-        return $q.all(locals);
-      }
-    }
-
-    function getTemplateFor(route) {
-      var template, templateUrl;
-      if (angular.isDefined(template = route.template)) {
-        if (angular.isFunction(template)) {
-          template = template(route.params);
-        }
-      } else if (angular.isDefined(templateUrl = route.templateUrl)) {
-        if (angular.isFunction(templateUrl)) {
-          templateUrl = templateUrl(route.params);
-        }
-        if (angular.isDefined(templateUrl)) {
-          route.loadedTemplateUrl = $sce.valueOf(templateUrl);
-          template = $templateRequest(templateUrl);
-        }
-      }
-      return template;
-    }
-
-    /**
-     * @returns {Object} the current active route, by matching it against the URL
-     */
-    function parseRoute() {
-      // Match a route
-      var params, match;
-      angular.forEach(routes, function(route, path) {
-        if (!match && (params = switchRouteMatcher($location.path(), route))) {
-          match = inherit(route, {
-            params: angular.extend({}, $location.search(), params),
-            pathParams: params});
-          match.$$route = route;
-        }
-      });
-      // No route matched; fallback to "otherwise" route
-      return match || routes[null] && inherit(routes[null], {params: {}, pathParams:{}});
-    }
-
-    /**
-     * @returns {string} interpolation of the redirect path with the parameters
-     */
-    function interpolate(string, params) {
-      var result = [];
-      angular.forEach((string || '').split(':'), function(segment, i) {
-        if (i === 0) {
-          result.push(segment);
-        } else {
-          var segmentMatch = segment.match(/(\w+)(?:[?*])?(.*)/);
-          var key = segmentMatch[1];
-          result.push(params[key]);
-          result.push(segmentMatch[2] || '');
-          delete params[key];
-        }
-      });
-      return result.join('');
-    }
-  }];
-}
-
-instantiateRoute.$inject = ['$injector'];
-function instantiateRoute($injector) {
-  if (isEagerInstantiationEnabled) {
-    // Instantiate `$route`
-    $injector.get('$route');
-  }
-}
-
-ngRouteModule.provider('$routeParams', $RouteParamsProvider);
-
-
-/**
- * @ngdoc service
- * @name $routeParams
- * @requires $route
- * @this
- *
- * @description
- * The `$routeParams` service allows you to retrieve the current set of route parameters.
- *
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- *
- * The route parameters are a combination of {@link ng.$location `$location`}'s
- * {@link ng.$location#search `search()`} and {@link ng.$location#path `path()`}.
- * The `path` parameters are extracted when the {@link ngRoute.$route `$route`} path is matched.
- *
- * In case of parameter name collision, `path` params take precedence over `search` params.
- *
- * The service guarantees that the identity of the `$routeParams` object will remain unchanged
- * (but its properties will likely change) even when a route change occurs.
- *
- * Note that the `$routeParams` are only updated *after* a route change completes successfully.
- * This means that you cannot rely on `$routeParams` being correct in route resolve functions.
- * Instead you can use `$route.current.params` to access the new route's parameters.
- *
- * @example
- * ```js
- *  // Given:
- *  // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby
- *  // Route: /Chapter/:chapterId/Section/:sectionId
- *  //
- *  // Then
- *  $routeParams ==> {chapterId:'1', sectionId:'2', search:'moby'}
- * ```
- */
-function $RouteParamsProvider() {
-  this.$get = function() { return {}; };
-}
-
-ngRouteModule.directive('ngView', ngViewFactory);
-ngRouteModule.directive('ngView', ngViewFillContentFactory);
-
-
-/**
- * @ngdoc directive
- * @name ngView
- * @restrict ECA
- *
- * @description
- * # Overview
- * `ngView` is a directive that complements the {@link ngRoute.$route $route} service by
- * including the rendered template of the current route into the main layout (`index.html`) file.
- * Every time the current route changes, the included view changes with it according to the
- * configuration of the `$route` service.
- *
- * Requires the {@link ngRoute `ngRoute`} module to be installed.
- *
- * @animations
- * | Animation                        | Occurs                              |
- * |----------------------------------|-------------------------------------|
- * | {@link ng.$animate#enter enter}  | when the new element is inserted to the DOM |
- * | {@link ng.$animate#leave leave}  | when the old element is removed from to the DOM  |
- *
- * The enter and leave animation occur concurrently.
- *
- * @scope
- * @priority 400
- * @param {string=} onload Expression to evaluate whenever the view updates.
- *
- * @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll
- *                  $anchorScroll} to scroll the viewport after the view is updated.
- *
- *                  - If the attribute is not set, disable scrolling.
- *                  - If the attribute is set without value, enable scrolling.
- *                  - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
- *                    as an expression yields a truthy value.
- * @example
-    <example name="ngView-directive" module="ngViewExample"
-             deps="angular-route.js;angular-animate.js"
-             animations="true" fixBase="true">
-      <file name="index.html">
-        <div ng-controller="MainCtrl as main">
-          Choose:
-          <a href="Book/Moby">Moby</a> |
-          <a href="Book/Moby/ch/1">Moby: Ch1</a> |
-          <a href="Book/Gatsby">Gatsby</a> |
-          <a href="Book/Gatsby/ch/4?key=value">Gatsby: Ch4</a> |
-          <a href="Book/Scarlet">Scarlet Letter</a><br/>
-
-          <div class="view-animate-container">
-            <div ng-view class="view-animate"></div>
-          </div>
-          <hr />
-
-          <pre>$location.path() = {{main.$location.path()}}</pre>
-          <pre>$route.current.templateUrl = {{main.$route.current.templateUrl}}</pre>
-          <pre>$route.current.params = {{main.$route.current.params}}</pre>
-          <pre>$routeParams = {{main.$routeParams}}</pre>
-        </div>
-      </file>
-
-      <file name="book.html">
-        <div>
-          controller: {{book.name}}<br />
-          Book Id: {{book.params.bookId}}<br />
-        </div>
-      </file>
-
-      <file name="chapter.html">
-        <div>
-          controller: {{chapter.name}}<br />
-          Book Id: {{chapter.params.bookId}}<br />
-          Chapter Id: {{chapter.params.chapterId}}
-        </div>
-      </file>
-
-      <file name="animations.css">
-        .view-animate-container {
-          position:relative;
-          height:100px!important;
-          background:white;
-          border:1px solid black;
-          height:40px;
-          overflow:hidden;
-        }
-
-        .view-animate {
-          padding:10px;
-        }
-
-        .view-animate.ng-enter, .view-animate.ng-leave {
-          transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-
-          display:block;
-          width:100%;
-          border-left:1px solid black;
-
-          position:absolute;
-          top:0;
-          left:0;
-          right:0;
-          bottom:0;
-          padding:10px;
-        }
-
-        .view-animate.ng-enter {
-          left:100%;
-        }
-        .view-animate.ng-enter.ng-enter-active {
-          left:0;
-        }
-        .view-animate.ng-leave.ng-leave-active {
-          left:-100%;
-        }
-      </file>
-
-      <file name="script.js">
-        angular.module('ngViewExample', ['ngRoute', 'ngAnimate'])
-          .config(['$routeProvider', '$locationProvider',
-            function($routeProvider, $locationProvider) {
-              $routeProvider
-                .when('/Book/:bookId', {
-                  templateUrl: 'book.html',
-                  controller: 'BookCtrl',
-                  controllerAs: 'book'
-                })
-                .when('/Book/:bookId/ch/:chapterId', {
-                  templateUrl: 'chapter.html',
-                  controller: 'ChapterCtrl',
-                  controllerAs: 'chapter'
-                });
-
-              $locationProvider.html5Mode(true);
-          }])
-          .controller('MainCtrl', ['$route', '$routeParams', '$location',
-            function MainCtrl($route, $routeParams, $location) {
-              this.$route = $route;
-              this.$location = $location;
-              this.$routeParams = $routeParams;
-          }])
-          .controller('BookCtrl', ['$routeParams', function BookCtrl($routeParams) {
-            this.name = 'BookCtrl';
-            this.params = $routeParams;
-          }])
-          .controller('ChapterCtrl', ['$routeParams', function ChapterCtrl($routeParams) {
-            this.name = 'ChapterCtrl';
-            this.params = $routeParams;
-          }]);
-
-      </file>
-
-      <file name="protractor.js" type="protractor">
-        it('should load and compile correct template', function() {
-          element(by.linkText('Moby: Ch1')).click();
-          var content = element(by.css('[ng-view]')).getText();
-          expect(content).toMatch(/controller: ChapterCtrl/);
-          expect(content).toMatch(/Book Id: Moby/);
-          expect(content).toMatch(/Chapter Id: 1/);
-
-          element(by.partialLinkText('Scarlet')).click();
-
-          content = element(by.css('[ng-view]')).getText();
-          expect(content).toMatch(/controller: BookCtrl/);
-          expect(content).toMatch(/Book Id: Scarlet/);
-        });
-      </file>
-    </example>
- */
-
-
-/**
- * @ngdoc event
- * @name ngView#$viewContentLoaded
- * @eventType emit on the current ngView scope
- * @description
- * Emitted every time the ngView content is reloaded.
- */
-ngViewFactory.$inject = ['$route', '$anchorScroll', '$animate'];
-function ngViewFactory($route, $anchorScroll, $animate) {
-  return {
-    restrict: 'ECA',
-    terminal: true,
-    priority: 400,
-    transclude: 'element',
-    link: function(scope, $element, attr, ctrl, $transclude) {
-        var currentScope,
-            currentElement,
-            previousLeaveAnimation,
-            autoScrollExp = attr.autoscroll,
-            onloadExp = attr.onload || '';
-
-        scope.$on('$routeChangeSuccess', update);
-        update();
-
-        function cleanupLastView() {
-          if (previousLeaveAnimation) {
-            $animate.cancel(previousLeaveAnimation);
-            previousLeaveAnimation = null;
-          }
-
-          if (currentScope) {
-            currentScope.$destroy();
-            currentScope = null;
-          }
-          if (currentElement) {
-            previousLeaveAnimation = $animate.leave(currentElement);
-            previousLeaveAnimation.done(function(response) {
-              if (response !== false) previousLeaveAnimation = null;
-            });
-            currentElement = null;
-          }
-        }
-
-        function update() {
-          var locals = $route.current && $route.current.locals,
-              template = locals && locals.$template;
-
-          if (angular.isDefined(template)) {
-            var newScope = scope.$new();
-            var current = $route.current;
-
-            // Note: This will also link all children of ng-view that were contained in the original
-            // html. If that content contains controllers, ... they could pollute/change the scope.
-            // However, using ng-view on an element with additional content does not make sense...
-            // Note: We can't remove them in the cloneAttchFn of $transclude as that
-            // function is called before linking the content, which would apply child
-            // directives to non existing elements.
-            var clone = $transclude(newScope, function(clone) {
-              $animate.enter(clone, null, currentElement || $element).done(function onNgViewEnter(response) {
-                if (response !== false && angular.isDefined(autoScrollExp)
-                  && (!autoScrollExp || scope.$eval(autoScrollExp))) {
-                  $anchorScroll();
-                }
-              });
-              cleanupLastView();
-            });
-
-            currentElement = clone;
-            currentScope = current.scope = newScope;
-            currentScope.$emit('$viewContentLoaded');
-            currentScope.$eval(onloadExp);
-          } else {
-            cleanupLastView();
-          }
-        }
-    }
-  };
-}
-
-// This directive is called during the $transclude call of the first `ngView` directive.
-// It will replace and compile the content of the element with the loaded template.
-// We need this directive so that the element content is already filled when
-// the link function of another directive on the same element as ngView
-// is called.
-ngViewFillContentFactory.$inject = ['$compile', '$controller', '$route'];
-function ngViewFillContentFactory($compile, $controller, $route) {
-  return {
-    restrict: 'ECA',
-    priority: -400,
-    link: function(scope, $element) {
-      var current = $route.current,
-          locals = current.locals;
-
-      $element.html(locals.$template);
-
-      var link = $compile($element.contents());
-
-      if (current.controller) {
-        locals.$scope = scope;
-        var controller = $controller(current.controller, locals);
-        if (current.controllerAs) {
-          scope[current.controllerAs] = controller;
-        }
-        $element.data('$ngControllerController', controller);
-        $element.children().data('$ngControllerController', controller);
-      }
-      scope[current.resolveAs || '$resolve'] = locals;
-
-      link(scope);
-    }
-  };
-}
-
-
-})(window, window.angular);
diff --git a/apps/maarch_entreprise/js/angular.min.js b/apps/maarch_entreprise/js/angular.min.js
deleted file mode 100644
index bfd28ef3623d2ab8c321ba7e76f4ff73cfb83d3e..0000000000000000000000000000000000000000
--- a/apps/maarch_entreprise/js/angular.min.js
+++ /dev/null
@@ -1,330 +0,0 @@
-/*
- AngularJS v1.6.1
- (c) 2010-2016 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(z){'use strict';function M(a,b){b=b||Error;return function(){var d=arguments[0],c;c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.6.1/"+(a?a+"/":"")+d;for(d=1;d<arguments.length;d++){c=c+(1==d?"?":"&")+"p"+(d-1)+"=";var f=encodeURIComponent,e;e=arguments[d];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=f(e)}return new b(c)}}function ta(a){if(null==a||Wa(a))return!1;if(C(a)||E(a)||D&&a instanceof
-D)return!0;var b="length"in Object(a)&&a.length;return Y(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"===typeof a.item)}function q(a,b,d){var c,f;if(a)if(y(a))for(c in a)"prototype"!==c&&"length"!==c&&"name"!==c&&a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else if(C(a)||ta(a)){var e="object"!==typeof a;c=0;for(f=a.length;c<f;c++)(e||c in a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==q)a.forEach(b,d,a);else if(Dc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&&
-b.call(d,a[c],c,a);else for(c in a)va.call(a,c)&&b.call(d,a[c],c,a);return a}function Ec(a,b,d){for(var c=Object.keys(a).sort(),f=0;f<c.length;f++)b.call(d,a[c[f]],c[f]);return c}function Fc(a){return function(b,d){a(d,b)}}function ie(){return++rb}function Sb(a,b,d){for(var c=a.$$hashKey,f=0,e=b.length;f<e;++f){var g=b[f];if(F(g)||y(g))for(var h=Object.keys(g),k=0,l=h.length;k<l;k++){var m=h[k],n=g[m];d&&F(n)?fa(n)?a[m]=new Date(n.valueOf()):Xa(n)?a[m]=new RegExp(n):n.nodeName?a[m]=n.cloneNode(!0):
-Tb(n)?a[m]=n.clone():(F(a[m])||(a[m]=C(n)?[]:{}),Sb(a[m],[n],!0)):a[m]=n}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function R(a){return Sb(a,wa.call(arguments,1),!1)}function je(a){return Sb(a,wa.call(arguments,1),!0)}function Z(a){return parseInt(a,10)}function Ub(a,b){return R(Object.create(a),b)}function w(){}function Ya(a){return a}function ma(a){return function(){return a}}function Vb(a){return y(a.toString)&&a.toString!==na}function x(a){return"undefined"===typeof a}function v(a){return"undefined"!==
-typeof a}function F(a){return null!==a&&"object"===typeof a}function Dc(a){return null!==a&&"object"===typeof a&&!Gc(a)}function E(a){return"string"===typeof a}function Y(a){return"number"===typeof a}function fa(a){return"[object Date]"===na.call(a)}function y(a){return"function"===typeof a}function Xa(a){return"[object RegExp]"===na.call(a)}function Wa(a){return a&&a.window===a}function Za(a){return a&&a.$evalAsync&&a.$watch}function Ia(a){return"boolean"===typeof a}function ke(a){return a&&Y(a.length)&&
-le.test(na.call(a))}function Tb(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function me(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}function xa(a){return P(a.nodeName||a[0]&&a[0].nodeName)}function $a(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function Fa(a,b){function d(a,b){var d=b.$$hashKey,e;if(C(a)){e=0;for(var f=a.length;e<f;e++)b.push(c(a[e]))}else if(Dc(a))for(e in a)b[e]=c(a[e]);else if(a&&"function"===typeof a.hasOwnProperty)for(e in a)a.hasOwnProperty(e)&&
-(b[e]=c(a[e]));else for(e in a)va.call(a,e)&&(b[e]=c(a[e]));d?b.$$hashKey=d:delete b.$$hashKey;return b}function c(a){if(!F(a))return a;var b=e.indexOf(a);if(-1!==b)return g[b];if(Wa(a)||Za(a))throw Ga("cpws");var b=!1,c=f(a);void 0===c&&(c=C(a)?[]:Object.create(Gc(a)),b=!0);e.push(a);g.push(c);return b?d(a,c):c}function f(a){switch(na.call(a)){case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return new a.constructor(c(a.buffer),
-a.byteOffset,a.length);case "[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);(new Uint8Array(b)).set(new Uint8Array(a));return b}return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":return new a.constructor(a.valueOf());case "[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^/]*$/)[0]),b.lastIndex=a.lastIndex,b;case "[object Blob]":return new a.constructor([a],{type:a.type})}if(y(a.cloneNode))return a.cloneNode(!0)}
-var e=[],g=[];if(b){if(ke(b)||"[object ArrayBuffer]"===na.call(b))throw Ga("cpta");if(a===b)throw Ga("cpi");C(b)?b.length=0:q(b,function(a,d){"$$hashKey"!==d&&delete b[d]});e.push(a);g.push(b);return d(a,b)}return c(a)}function qa(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d===typeof b&&"object"===d)if(C(a)){if(!C(b))return!1;if((d=a.length)===b.length){for(c=0;c<d;c++)if(!qa(a[c],b[c]))return!1;return!0}}else{if(fa(a))return fa(b)?qa(a.getTime(),
-b.getTime()):!1;if(Xa(a))return Xa(b)?a.toString()===b.toString():!1;if(Za(a)||Za(b)||Wa(a)||Wa(b)||C(b)||fa(b)||Xa(b))return!1;d=W();for(c in a)if("$"!==c.charAt(0)&&!y(a[c])){if(!qa(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&v(b[c])&&!y(b[c]))return!1;return!0}return!1}function ab(a,b,d){return a.concat(wa.call(b,d))}function bb(a,b){var d=2<arguments.length?wa.call(arguments,2):[];return!y(b)||b instanceof RegExp?b:d.length?function(){return arguments.length?b.apply(a,
-ab(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function Hc(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=void 0:Wa(b)?d="$WINDOW":b&&z.document===b?d="$DOCUMENT":Za(b)&&(d="$SCOPE");return d}function cb(a,b){if(!x(a))return Y(b)||(b=b?2:null),JSON.stringify(a,Hc,b)}function Ic(a){return E(a)?JSON.parse(a):a}function Jc(a,b){a=a.replace(ne,"");var d=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return ga(d)?b:d}function Wb(a,
-b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=Jc(b,c);d*=b-c;a=new Date(a.getTime());a.setMinutes(a.getMinutes()+d);return a}function ya(a){a=D(a).clone();try{a.empty()}catch(b){}var d=D("<div>").append(a).html();try{return a[0].nodeType===Ja?P(d):d.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(a,b){return"<"+P(b)})}catch(c){return P(d)}}function Kc(a){try{return decodeURIComponent(a)}catch(b){}}function Lc(a){var b={};q((a||"").split("&"),function(a){var c,f,e;a&&(f=a=a.replace(/\+/g,"%20"),
-c=a.indexOf("="),-1!==c&&(f=a.substring(0,c),e=a.substring(c+1)),f=Kc(f),v(f)&&(e=v(e)?Kc(e):!0,va.call(b,f)?C(b[f])?b[f].push(e):b[f]=[b[f],e]:b[f]=e))});return b}function Xb(a){var b=[];q(a,function(a,c){C(a)?q(a,function(a){b.push(ka(c,!0)+(!0===a?"":"="+ka(a,!0)))}):b.push(ka(c,!0)+(!0===a?"":"="+ka(a,!0)))});return b.length?b.join("&"):""}function db(a){return ka(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ka(a,b){return encodeURIComponent(a).replace(/%40/gi,
-"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function oe(a,b){var d,c,f=Ka.length;for(c=0;c<f;++c)if(d=Ka[c]+b,E(d=a.getAttribute(d)))return d;return null}function pe(a,b){var d,c,f={};q(Ka,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});q(Ka,function(b){b+="app";var f;!d&&(f=a.querySelector("["+b.replace(":","\\:")+"]"))&&(d=f,c=f.getAttribute(b))});d&&(qe?(f.strictDi=null!==oe(d,"strict-di"),
-b(d,c?[c]:[],f)):z.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function Mc(a,b,d){F(d)||(d={});d=R({strictDi:!1},d);var c=function(){a=D(a);if(a.injector()){var c=a[0]===z.document?"document":ya(a);throw Ga("btstrpd",c.replace(/</,"&lt;").replace(/>/,"&gt;"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);
-b.unshift("ng");c=eb(b,d.strictDi);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,d,c){a.$apply(function(){b.data("$injector",c);d(b)(a)})}]);return c},f=/^NG_ENABLE_DEBUG_INFO!/,e=/^NG_DEFER_BOOTSTRAP!/;z&&f.test(z.name)&&(d.debugInfoEnabled=!0,z.name=z.name.replace(f,""));if(z&&!e.test(z.name))return c();z.name=z.name.replace(e,"");$.resumeBootstrap=function(a){q(a,function(a){b.push(a)});return c()};y($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function re(){z.name=
-"NG_ENABLE_DEBUG_INFO!"+z.name;z.location.reload()}function se(a){a=$.element(a).injector();if(!a)throw Ga("test");return a.get("$$testability")}function Nc(a,b){b=b||"_";return a.replace(te,function(a,c){return(c?b:"")+a.toLowerCase()})}function ue(){var a;if(!Oc){var b=sb();(oa=x(b)?z.jQuery:b?z[b]:void 0)&&oa.fn.on?(D=oa,R(oa.fn,{scope:Oa.scope,isolateScope:Oa.isolateScope,controller:Oa.controller,injector:Oa.injector,inheritedData:Oa.inheritedData}),a=oa.cleanData,oa.cleanData=function(b){for(var c,
-f=0,e;null!=(e=b[f]);f++)(c=oa._data(e,"events"))&&c.$destroy&&oa(e).triggerHandler("$destroy");a(b)}):D=X;$.element=D;Oc=!0}}function fb(a,b,d){if(!a)throw Ga("areq",b||"?",d||"required");return a}function tb(a,b,d){d&&C(a)&&(a=a[a.length-1]);fb(y(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Pa(a,b){if("hasOwnProperty"===a)throw Ga("badname",b);}function Pc(a,b,d){if(!b)return a;b=b.split(".");for(var c,f=a,e=b.length,g=0;g<e;g++)c=
-b[g],a&&(a=(f=a)[c]);return!d&&y(a)?bb(f,a):a}function ub(a){for(var b=a[0],d=a[a.length-1],c,f=1;b!==d&&(b=b.nextSibling);f++)if(c||a[f]!==b)c||(c=D(wa.call(a,0,f))),c.push(b);return c||a}function W(){return Object.create(null)}function Yb(a){if(null==a)return"";switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=!Vb(a)||C(a)||fa(a)?cb(a):a.toString()}return a}function ve(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=M("$injector"),c=M("ng");a=b(a,"angular",Object);a.$$minErr=
-a.$$minErr||M;return b(a,"module",function(){var a={};return function(e,g,h){if("hasOwnProperty"===e)throw c("badname","module");g&&a.hasOwnProperty(e)&&(a[e]=null);return b(a,e,function(){function a(b,d,e,f){f||(f=c);return function(){f[e||"push"]([b,d,arguments]);return J}}function b(a,d,f){f||(f=c);return function(b,c){c&&y(c)&&(c.$$moduleName=e);f.push([a,d,arguments]);return J}}if(!g)throw d("nomod",e);var c=[],f=[],p=[],r=a("$injector","invoke","push",f),J={_invokeQueue:c,_configBlocks:f,_runBlocks:p,
-requires:g,name:e,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator",f),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:r,run:function(a){p.push(a);return this}};h&&r(h);return J})}})}
-function ra(a,b){if(C(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(F(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function we(a){var b=[];return JSON.stringify(a,function(a,c){c=Hc(a,c);if(F(c)){if(0<=b.indexOf(c))return"...";b.push(c)}return c})}function xe(a){R(a,{bootstrap:Mc,copy:Fa,extend:R,merge:je,equals:qa,element:D,forEach:q,injector:eb,noop:w,bind:bb,toJson:cb,fromJson:Ic,identity:Ya,isUndefined:x,isDefined:v,isString:E,isFunction:y,
-isObject:F,isNumber:Y,isElement:Tb,isArray:C,version:ye,isDate:fa,lowercase:P,uppercase:vb,callbacks:{$$counter:0},getTestability:se,reloadWithDebugInfo:re,$$minErr:M,$$csp:za,$$encodeUriSegment:db,$$encodeUriQuery:ka,$$stringify:Yb});Zb=ve(z);Zb("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:ze});a.provider("$compile",Qc).directive({a:Ae,input:Rc,textarea:Rc,form:Be,script:Ce,select:De,option:Ee,ngBind:Fe,ngBindHtml:Ge,ngBindTemplate:He,ngClass:Ie,ngClassEven:Je,ngClassOdd:Ke,
-ngCloak:Le,ngController:Me,ngForm:Ne,ngHide:Oe,ngIf:Pe,ngInclude:Qe,ngInit:Re,ngNonBindable:Se,ngPluralize:Te,ngRepeat:Ue,ngShow:Ve,ngStyle:We,ngSwitch:Xe,ngSwitchWhen:Ye,ngSwitchDefault:Ze,ngOptions:$e,ngTransclude:af,ngModel:bf,ngList:cf,ngChange:df,pattern:Sc,ngPattern:Sc,required:Tc,ngRequired:Tc,minlength:Uc,ngMinlength:Uc,maxlength:Vc,ngMaxlength:Vc,ngValue:ef,ngModelOptions:ff}).directive({ngInclude:gf}).directive(wb).directive(Wc);a.provider({$anchorScroll:hf,$animate:jf,$animateCss:kf,$$animateJs:lf,
-$$animateQueue:mf,$$AnimateRunner:nf,$$animateAsyncRun:of,$browser:pf,$cacheFactory:qf,$controller:rf,$document:sf,$$isDocumentHidden:tf,$exceptionHandler:uf,$filter:Xc,$$forceReflow:vf,$interpolate:wf,$interval:xf,$http:yf,$httpParamSerializer:zf,$httpParamSerializerJQLike:Af,$httpBackend:Bf,$xhrFactory:Cf,$jsonpCallbacks:Df,$location:Ef,$log:Ff,$parse:Gf,$rootScope:Hf,$q:If,$$q:Jf,$sce:Kf,$sceDelegate:Lf,$sniffer:Mf,$templateCache:Nf,$templateRequest:Of,$$testability:Pf,$timeout:Qf,$window:Rf,$$rAF:Sf,
-$$jqLite:Tf,$$HashMap:Uf,$$cookieReader:Vf})}])}function gb(a,b){return b.toUpperCase()}function xb(a){return a.replace(Wf,gb)}function Yc(a){a=a.nodeType;return 1===a||!a||9===a}function Zc(a,b){var d,c,f=b.createDocumentFragment(),e=[];if($b.test(a)){d=f.appendChild(b.createElement("div"));c=(Xf.exec(a)||["",""])[1].toLowerCase();c=ha[c]||ha._default;d.innerHTML=c[1]+a.replace(Yf,"<$1></$2>")+c[2];for(c=c[0];c--;)d=d.lastChild;e=ab(e,d.childNodes);d=f.firstChild;d.textContent=""}else e.push(b.createTextNode(a));
-f.textContent="";f.innerHTML="";q(e,function(a){f.appendChild(a)});return f}function X(a){if(a instanceof X)return a;var b;E(a)&&(a=S(a),b=!0);if(!(this instanceof X)){if(b&&"<"!==a.charAt(0))throw ac("nosel");return new X(a)}if(b){b=z.document;var d;a=(d=Zf.exec(a))?[b.createElement(d[1])]:(d=Zc(a,b))?d.childNodes:[];bc(this,a)}else y(a)?$c(a):bc(this,a)}function cc(a){return a.cloneNode(!0)}function yb(a,b){b||hb(a);if(a.querySelectorAll)for(var d=a.querySelectorAll("*"),c=0,f=d.length;c<f;c++)hb(d[c])}
-function ad(a,b,d,c){if(v(c))throw ac("offargs");var f=(c=zb(a))&&c.events,e=c&&c.handle;if(e)if(b){var g=function(b){var c=f[b];v(d)&&$a(c||[],d);v(d)&&c&&0<c.length||(a.removeEventListener(b,e),delete f[b])};q(b.split(" "),function(a){g(a);Ab[a]&&g(Ab[a])})}else for(b in f)"$destroy"!==b&&a.removeEventListener(b,e),delete f[b]}function hb(a,b){var d=a.ng339,c=d&&ib[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),ad(a)),delete ib[d],a.ng339=void 0))}function zb(a,
-b){var d=a.ng339,d=d&&ib[d];b&&!d&&(a.ng339=d=++$f,d=ib[d]={events:{},data:{},handle:void 0});return d}function dc(a,b,d){if(Yc(a)){var c,f=v(d),e=!f&&b&&!F(b),g=!b;a=(a=zb(a,!e))&&a.data;if(f)a[xb(b)]=d;else{if(g)return a;if(e)return a&&a[xb(b)];for(c in b)a[xb(c)]=b[c]}}}function Bb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Cb(a,b){b&&a.setAttribute&&q(b.split(" "),function(b){a.setAttribute("class",S((" "+(a.getAttribute("class")||
-"")+" ").replace(/[\n\t]/g," ").replace(" "+S(b)+" "," ")))})}function Db(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");q(b.split(" "),function(a){a=S(a);-1===d.indexOf(" "+a+" ")&&(d+=a+" ")});a.setAttribute("class",S(d))}}function bc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function bd(a,b){return Eb(a,"$"+(b||"ngController")+
-"Controller")}function Eb(a,b,d){9===a.nodeType&&(a=a.documentElement);for(b=C(b)?b:[b];a;){for(var c=0,f=b.length;c<f;c++)if(v(d=D.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function cd(a){for(yb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Fb(a,b){b||yb(a);var d=a.parentNode;d&&d.removeChild(a)}function ag(a,b){b=b||z;if("complete"===b.document.readyState)b.setTimeout(a);else D(b).on("load",a)}function $c(a){function b(){z.document.removeEventListener("DOMContentLoaded",
-b);z.removeEventListener("load",b);a()}"complete"===z.document.readyState?z.setTimeout(a):(z.document.addEventListener("DOMContentLoaded",b),z.addEventListener("load",b))}function dd(a,b){var d=Gb[b.toLowerCase()];return d&&ed[xa(a)]&&d}function bg(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=b[d||c.type],g=e?e.length:0;if(g){if(x(c.immediatePropagationStopped)){var h=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=
-!0;c.stopPropagation&&c.stopPropagation();h&&h.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var k=e.specialHandlerWrapper||cg;1<g&&(e=ra(e));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||k(a,c,e[l])}};d.elem=a;return d}function cg(a,b,d){d.call(a,b)}function dg(a,b,d){var c=b.relatedTarget;c&&(c===a||eg.call(a,c))||d.call(a,b)}function Tf(){this.$get=function(){return R(X,{hasClass:function(a,b){a.attr&&(a=a[0]);return Bb(a,b)},addClass:function(a,
-b){a.attr&&(a=a[0]);return Db(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Cb(a,b)}})}}function la(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"===d||"object"===d&&null!==a?a.$$hashKey=d+":"+(b||ie)():d+":"+a}function Qa(a,b){if(b){var d=0;this.nextUid=function(){return++d}}q(a,this.put,this)}function fd(a){a=(Function.prototype.toString.call(a)+" ").replace(fg,"");return a.match(gg)||a.match(hg)}function ig(a){return(a=fd(a))?
-"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function eb(a,b){function d(a){return function(b,c){if(F(b))q(b,Fc(a));else return a(b,c)}}function c(a,b){Pa(a,"service");if(y(b)||C(b))b=p.instantiate(b);if(!b.$get)throw da("pget",a);return n[a+"Provider"]=b}function f(a,b){return function(){var c=O.invoke(b,this);if(x(c))throw da("undef",a);return c}}function e(a,b,d){return c(a,{$get:!1!==d?f(a,b):b})}function g(a){fb(x(a)||C(a),"modulesToLoad","not an array");var b=[],c;q(a,function(a){function d(a){var b,
-c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=p.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{E(a)?(c=Zb(a),b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):y(a)?b.push(p.invoke(a)):C(a)?b.push(p.invoke(a)):tb(a,"module")}catch(e){throw C(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),da("modulerr",a,e.stack||e.message||e);}}});return b}function h(a,c){function d(b,e){if(a.hasOwnProperty(b)){if(a[b]===
-k)throw da("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,e),a[b]}catch(f){throw a[b]===k&&delete a[b],f;}finally{l.shift()}}function e(a,c,f){var g=[];a=eb.$$annotate(a,b,f);for(var h=0,k=a.length;h<k;h++){var l=a[h];if("string"!==typeof l)throw da("itkn",l);g.push(c&&c.hasOwnProperty(l)?c[l]:d(l,f))}return g}return{invoke:function(a,b,c,d){"string"===typeof c&&(d=c,c=null);c=e(a,c,d);C(a)&&(a=a[a.length-1]);d=a;if(La||"function"!==typeof d)d=!1;else{var f=d.$$ngIsClass;
-Ia(f)||(f=d.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(d)+" "));d=f}return d?(c.unshift(null),new (Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=C(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new (Function.prototype.bind.apply(d,a))},get:d,annotate:eb.$$annotate,has:function(b){return n.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new Qa([],!0),n={$provide:{provider:d(c),factory:d(e),
-service:d(function(a,b){return e(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return e(a,ma(b),!1)}),constant:d(function(a,b){Pa(a,"constant");n[a]=b;r[a]=b}),decorator:function(a,b){var c=p.get(a+"Provider"),d=c.$get;c.$get=function(){var a=O.invoke(d,c);return O.invoke(b,null,{$delegate:a})}}}},p=n.$injector=h(n,function(a,b){$.isString(b)&&l.push(b);throw da("unpr",l.join(" <- "));}),r={},J=h(r,function(a,b){var c=p.get(a+"Provider",b);return O.invoke(c.$get,c,
-void 0,a)}),O=J;n.$injectorProvider={$get:ma(J)};var u=g(a),O=J.get("$injector");O.strictDi=b;q(u,function(a){a&&O.invoke(a)});return O}function hf(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function f(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===xa(a))return b=a,!0});return b}function e(a){if(a){a.scrollIntoView();var c;c=g.yOffset;y(c)?c=c():Tb(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):
-Y(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=E(a)?a:Y(a)?a.toString():d.hash();var b;a?(b=h.getElementById(a))?e(b):(b=f(h.getElementsByName(a)))?e(b):"top"===a&&e(null):e(null)}var h=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||ag(function(){c.$evalAsync(g)})});return g}]}function jb(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;C(a)&&(a=a.join(" "));C(b)&&(b=b.join(" "));return a+" "+b}function jg(a){E(a)&&
-(a=a.split(" "));var b=W();q(a,function(a){a.length&&(b[a]=!0)});return b}function Aa(a){return F(a)?a:{}}function kg(a,b,d,c){function f(a){try{a.apply(null,wa.call(arguments,1))}finally{if(J--,0===J)for(;O.length;)try{O.pop()()}catch(b){d.error(b)}}}function e(){ia=null;g();h()}function g(){u=A();u=x(u)?null:u;qa(u,B)&&(u=B);B=u}function h(){if(U!==k.url()||H!==u)U=k.url(),H=u,q(K,function(a){a(k.url(),u)})}var k=this,l=a.location,m=a.history,n=a.setTimeout,p=a.clearTimeout,r={};k.isMock=!1;var J=
-0,O=[];k.$$completeOutstandingRequest=f;k.$$incOutstandingRequestCount=function(){J++};k.notifyWhenNoOutstandingRequests=function(a){0===J?a():O.push(a)};var u,H,U=l.href,t=b.find("base"),ia=null,A=c.history?function(){try{return m.state}catch(a){}}:w;g();H=u;k.url=function(b,d,e){x(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f=H===e;if(U===b&&(!c.history||f))return k;var h=U&&Ba(U)===Ba(b);U=b;H=e;!c.history||h&&f?(h||(ia=b),d?l.replace(b):h?(d=l,e=b.indexOf("#"),
-e=-1===e?"":b.substr(e),d.hash=e):l.href=b,l.href!==b&&(ia=b)):(m[d?"replaceState":"pushState"](e,"",b),g(),H=u);ia&&(ia=b);return k}return ia||l.href.replace(/%27/g,"'")};k.state=function(){return u};var K=[],I=!1,B=null;k.onUrlChange=function(b){if(!I){if(c.history)D(a).on("popstate",e);D(a).on("hashchange",e);I=!0}K.push(b);return b};k.$$applicationDestroyed=function(){D(a).off("hashchange popstate",e)};k.$$checkUrlChange=h;k.baseHref=function(){var a=t.attr("href");return a?a.replace(/^(https?:)?\/\/[^/]*/,
-""):""};k.defer=function(a,b){var c;J++;c=n(function(){delete r[c];f(a)},b||0);r[c]=!0;return c};k.defer.cancel=function(a){return r[a]?(delete r[a],p(a),f(w),!0):!1}}function pf(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new kg(a,c,b,d)}]}function qf(){this.$get=function(){function a(a,c){function f(a){a!==n&&(p?p===a&&(p=a.n):p=a,e(a.n,a.p),e(a,n),n=a,n.n=null)}function e(a,b){a!==b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw M("$cacheFactory")("iid",a);var g=0,h=
-R({},c,{id:a}),k=W(),l=c&&c.capacity||Number.MAX_VALUE,m=W(),n=null,p=null;return b[a]={put:function(a,b){if(!x(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});f(c)}a in k||g++;k[a]=b;g>l&&this.remove(p.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;f(b)}return k[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b===n&&(n=b.p);b===p&&(p=b.n);e(b.n,b.p);delete m[a]}a in k&&(delete k[a],g--)},removeAll:function(){k=W();g=0;m=W();n=p=null},destroy:function(){m=
-h=k=null;delete b[a]},info:function(){return R({},h,{size:g})}}}var b={};a.info=function(){var a={};q(b,function(b,f){a[f]=b.info()});return a};a.get=function(a){return b[a]};return a}}function Nf(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Qc(a,b){function d(a,b,c){var d=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,e=W();q(a,function(a,f){if(a in n)e[f]=n[a];else{var g=a.match(d);if(!g)throw ea("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]=
-{mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f};g[4]&&(n[a]=e[f])}});return e}function c(a){var b=a.charAt(0);if(!b||b!==P(b))throw ea("baddir",a);if(a!==a.trim())throw ea("baddir",a);}function f(a){var b=a.require||a.controller&&a.name;!C(b)&&F(b)&&q(b,function(a,c){var d=a.match(l);a.substring(d[0].length)||(b[c]=d[0]+c)});return b}var e={},g=/^\s*directive:\s*([\w-]+)\s+(.*)$/,h=/(([\w-]+)(?::([^;]+))?;?)/,k=me("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,
-m=/^(on[a-z]+|formaction)$/,n=W();this.directive=function U(b,d){fb(b,"name");Pa(b,"directive");E(b)?(c(b),fb(d,"directiveFactory"),e.hasOwnProperty(b)||(e[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var d=[];q(e[b],function(e,g){try{var h=a.invoke(e);y(h)?h={compile:ma(h)}:!h.compile&&h.link&&(h.compile=ma(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=f(h);var k=h,l=h.restrict;if(l&&(!E(l)||!/[EACM]/.test(l)))throw ea("badrestrict",l,b);k.restrict=
-l||"EA";h.$$moduleName=e.$$moduleName;d.push(h)}catch(m){c(m)}});return d}])),e[b].push(d)):q(b,Fc(U));return this};this.component=function(a,b){function c(a){function e(b){return y(b)||C(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:b}var f=b.template||b.templateUrl?b.template:"",g={controller:d,controllerAs:lg(b.controller)||b.controllerAs||"$ctrl",template:e(f),templateUrl:e(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};
-q(b,function(a,b){"$"===b.charAt(0)&&(g[b]=a)});return g}var d=b.controller||function(){};q(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,y(d)&&(d[b]=a))});c.$inject=["$injector"];return this.directive(a,c)};this.aHrefSanitizationWhitelist=function(a){return v(a)?(b.aHrefSanitizationWhitelist(a),this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(a){return v(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var p=!0;this.debugInfoEnabled=function(a){return v(a)?
-(p=a,this):p};var r=!1;this.preAssignBindingsEnabled=function(a){return v(a)?(r=a,this):r};var J=10;this.onChangesTtl=function(a){return arguments.length?(J=a,this):J};var O=!0;this.commentDirectivesEnabled=function(a){return arguments.length?(O=a,this):O};var u=!0;this.cssClassDirectivesEnabled=function(a){return arguments.length?(u=a,this):u};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,
-b,c,f,n,I,B,L,N,G){function T(){try{if(!--za)throw da=void 0,ea("infchng",J);B.$apply(function(){for(var a=[],b=0,c=da.length;b<c;++b)try{da[b]()}catch(d){a.push(d)}da=void 0;if(a.length)throw a;})}finally{za++}}function s(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a}function Q(a,b,c){ua.innerHTML="<span "+b+">";b=ua.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);d.value=c;a.attributes.setNamedItem(d)}function Ma(a,
-b){try{a.addClass(b)}catch(c){}}function ba(a,b,c,d,e){a instanceof D||(a=D(a));var f=Na(a,b,a,c,d,e);ba.$$addScopeClass(a);var g=null;return function(b,c,d){if(!a)throw ea("multilink");fb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var h=d.parentBoundTranscludeFn,k=d.transcludeControllers;d=d.futureParentElement;h&&h.$$boundTransclude&&(h=h.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==xa(d)&&na.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==g?D(ha(g,D("<div>").append(a).html())):
-c?Oa.clone.call(a):a;if(k)for(var l in k)d.data("$"+l+"Controller",k[l].instance);ba.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,h);c||(a=f=null);return d}}function Na(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,m,n,p,r;if(K)for(r=Array(c.length),m=0;m<h.length;m+=3)f=h[m],r[f]=c[f];else r=c;m=0;for(n=h.length;m<n;)k=r[h[m++]],c=h[m++],f=h[m++],c?(c.scope?(l=a.$new(),ba.$$addScopeInfo(D(k),l)):l=a,p=c.transcludeOnThisElement?ja(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?ja(a,b):null,c(f,l,
-k,d,p)):f&&f(a,k.childNodes,void 0,e)}for(var h=[],k=C(a)||a instanceof D,l,m,n,p,K,r=0;r<a.length;r++){l=new s;11===La&&M(a,r,k);m=fc(a[r],[],l,0===r?d:void 0,e);(f=m.length?X(m,a[r],l,b,c,null,[],[],f):null)&&f.scope&&ba.$$addScopeClass(l.$$element);l=f&&f.terminal||!(n=a[r].childNodes)||!n.length?null:Na(n,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||l)h.push(r,f,l),p=!0,K=K||f;f=null}return p?g:null}function M(a,b,c){var d=a[b],e=d.parentNode,f;if(d.nodeType===
-Ja)for(;;){f=e?d.nextSibling:a[b+1];if(!f||f.nodeType!==Ja)break;d.nodeValue+=f.nodeValue;f.parentNode&&f.parentNode.removeChild(f);c&&f===a[b+1]&&a.splice(b+1,1)}}function ja(a,b,c){function d(e,f,g,h,k){e||(e=a.$new(!1,k),e.$$transcluded=!0);return b(e,f,{parentBoundTranscludeFn:c,transcludeControllers:g,futureParentElement:h})}var e=d.$$slots=W(),f;for(f in b.$$slots)e[f]=b.$$slots[f]?ja(a,b.$$slots[f],c):null;return d}function fc(a,b,c,d,e){var f=c.$attr,g;switch(a.nodeType){case 1:g=xa(a);Y(b,
-Ca(g),"E",d,e);for(var k,l,m,n,p=a.attributes,K=0,r=p&&p.length;K<r;K++){var A=!1,B=!1;k=p[K];l=k.name;m=k.value;k=Ca(l);(n=Ha.test(k))&&(l=l.replace(gd,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()}));(k=k.match(Ka))&&Z(k[1])&&(A=l,B=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6));k=Ca(l.toLowerCase());f[k]=l;if(n||!c.hasOwnProperty(k))c[k]=m,dd(a,k)&&(c[k]=!0);ra(a,b,m,k,n);Y(b,k,"A",d,e,A,B)}"input"===g&&"hidden"===a.getAttribute("type")&&a.setAttribute("autocomplete",
-"off");if(!Ga)break;f=a.className;F(f)&&(f=f.animVal);if(E(f)&&""!==f)for(;a=h.exec(f);)k=Ca(a[2]),Y(b,k,"C",d,e)&&(c[k]=S(a[3])),f=f.substr(a.index+a[0].length);break;case Ja:ma(b,a.nodeValue);break;case 8:if(!Fa)break;kb(a,b,c,d,e)}b.sort(ka);return b}function kb(a,b,c,d,e){try{var f=g.exec(a.nodeValue);if(f){var h=Ca(f[1]);Y(b,h,"M",d,e)&&(c[h]=S(f[2]))}}catch(k){}}function hd(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ea("uterdir",b,c);1===a.nodeType&&(a.hasAttribute(b)&&
-e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return D(d)}function id(a,b,c){return function(d,e,f,g,h){e=hd(e[0],b,c);return a(d,e,f,g,h)}}function gc(a,b,c,d,e,f){var g;return a?ba(b,c,d,e,f):function(){g||(g=ba(b,c,d,e,f),b=c=f=null);return g.apply(this,arguments)}}function X(a,b,d,e,f,g,h,k,l){function m(a,b,c,d){if(a){c&&(a=id(a,c,d));a.require=t.require;a.directiveName=L;if(B===t||t.$$isolateScope)a=sa(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=id(b,c,d));b.require=
-t.require;b.directiveName=L;if(B===t||t.$$isolateScope)b=sa(b,{isolateScope:!0});k.push(b)}}function n(a,e,f,g,l){function m(a,b,c,d){var e;Za(a)||(d=c,c=b,b=a,a=void 0);U&&(e=N);c||(c=U?L.parent():L);if(d){var f=l.$$slots[d];if(f)return f(a,b,e,c,Q);if(x(f))throw ea("noslot",d,ya(L));}else return l(a,b,e,c,Q)}var p,t,u,G,J,N,T,L;b===f?(g=d,L=d.$$element):(L=D(f),g=new s(L,d));J=e;B?G=e.$new(!0):K&&(J=e.$parent);l&&(T=m,T.$$boundTransclude=l,T.isSlotFilled=function(a){return!!l.$$slots[a]});A&&(N=
-ca(L,g,T,A,G,e,B));B&&(ba.$$addScopeInfo(L,G,!0,!(I&&(I===B||I===B.$$originalDirective))),ba.$$addScopeClass(L,!0),G.$$isolateBindings=B.$$isolateBindings,t=oa(e,g,G,G.$$isolateBindings,B),t.removeWatches&&G.$on("$destroy",t.removeWatches));for(p in N){t=A[p];u=N[p];var Hb=t.$$bindings.bindToController;if(r){u.bindingInfo=Hb?oa(J,g,u.instance,Hb,t):{};var O=u();O!==u.instance&&(u.instance=O,L.data("$"+t.name+"Controller",O),u.bindingInfo.removeWatches&&u.bindingInfo.removeWatches(),u.bindingInfo=
-oa(J,g,u.instance,Hb,t))}else u.instance=u(),L.data("$"+t.name+"Controller",u.instance),u.bindingInfo=oa(J,g,u.instance,Hb,t)}q(A,function(a,b){var c=a.require;a.bindToController&&!C(c)&&F(c)&&R(N[b].instance,V(b,c,L,N))});q(N,function(a){var b=a.instance;if(y(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(d){c(d)}if(y(b.$onInit))try{b.$onInit()}catch(e){c(e)}y(b.$doCheck)&&(J.$watch(function(){b.$doCheck()}),b.$doCheck());y(b.$onDestroy)&&J.$on("$destroy",function(){b.$onDestroy()})});
-p=0;for(t=h.length;p<t;p++)u=h[p],ta(u,u.isolateScope?G:e,L,g,u.require&&V(u.directiveName,u.require,L,N),T);var Q=e;B&&(B.template||null===B.templateUrl)&&(Q=G);a&&a(Q,f.childNodes,void 0,l);for(p=k.length-1;0<=p;p--)u=k[p],ta(u,u.isolateScope?G:e,L,g,u.require&&V(u.directiveName,u.require,L,N),T);q(N,function(a){a=a.instance;y(a.$postLink)&&a.$postLink()})}l=l||{};for(var p=-Number.MAX_VALUE,K=l.newScopeDirective,A=l.controllerDirectives,B=l.newIsolateScopeDirective,I=l.templateDirective,u=l.nonTlbTranscludeDirective,
-J=!1,N=!1,U=l.hasElementTranscludeDirective,G=d.$$element=D(b),t,L,T,O=e,Q,v=!1,Ma=!1,w,z=0,E=a.length;z<E;z++){t=a[z];var Na=t.$$start,M=t.$$end;Na&&(G=hd(b,Na,M));T=void 0;if(p>t.priority)break;if(w=t.scope)t.templateUrl||(F(w)?($("new/isolated scope",B||K,t,G),B=t):$("new/isolated scope",B,t,G)),K=K||t;L=t.name;if(!v&&(t.replace&&(t.templateUrl||t.template)||t.transclude&&!t.$$tlb)){for(w=z+1;v=a[w++];)if(v.transclude&&!v.$$tlb||v.replace&&(v.templateUrl||v.template)){Ma=!0;break}v=!0}!t.templateUrl&&
-t.controller&&(A=A||W(),$("'"+L+"' controller",A[L],t,G),A[L]=t);if(w=t.transclude)if(J=!0,t.$$tlb||($("transclusion",u,t,G),u=t),"element"===w)U=!0,p=t.priority,T=G,G=d.$$element=D(ba.$$createComment(L,d[L])),b=G[0],la(f,wa.call(T,0),b),T[0].$$parentNode=T[0].parentNode,O=gc(Ma,T,e,p,g&&g.name,{nonTlbTranscludeDirective:u});else{var ja=W();if(F(w)){T=[];var P=W(),kb=W();q(w,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a;P[a]=b;ja[b]=null;kb[b]=c});q(G.contents(),function(a){var b=P[Ca(xa(a))];
-b?(kb[b]=!0,ja[b]=ja[b]||[],ja[b].push(a)):T.push(a)});q(kb,function(a,b){if(!a)throw ea("reqslot",b);});for(var ec in ja)ja[ec]&&(ja[ec]=gc(Ma,ja[ec],e))}else T=D(cc(b)).contents();G.empty();O=gc(Ma,T,e,void 0,void 0,{needsNewScope:t.$$isolateScope||t.$$newScope});O.$$slots=ja}if(t.template)if(N=!0,$("template",I,t,G),I=t,w=y(t.template)?t.template(G,d):t.template,w=Ea(w),t.replace){g=t;T=$b.test(w)?jd(ha(t.templateNamespace,S(w))):[];b=T[0];if(1!==T.length||1!==b.nodeType)throw ea("tplrt",L,"");
-la(f,G,b);E={$attr:{}};w=fc(b,[],E);var Y=a.splice(z+1,a.length-(z+1));(B||K)&&aa(w,B,K);a=a.concat(w).concat(Y);fa(d,E);E=a.length}else G.html(w);if(t.templateUrl)N=!0,$("template",I,t,G),I=t,t.replace&&(g=t),n=ga(a.splice(z,a.length-z),G,d,f,J&&O,h,k,{controllerDirectives:A,newScopeDirective:K!==t&&K,newIsolateScopeDirective:B,templateDirective:I,nonTlbTranscludeDirective:u}),E=a.length;else if(t.compile)try{Q=t.compile(G,d,O);var Z=t.$$originalDirective||t;y(Q)?m(null,bb(Z,Q),Na,M):Q&&m(bb(Z,Q.pre),
-bb(Z,Q.post),Na,M)}catch(da){c(da,ya(G))}t.terminal&&(n.terminal=!0,p=Math.max(p,t.priority))}n.scope=K&&!0===K.scope;n.transcludeOnThisElement=J;n.templateOnThisElement=N;n.transclude=O;l.hasElementTranscludeDirective=U;return n}function V(a,b,c,d){var e;if(E(b)){var f=b.match(l);b=b.substring(f[0].length);var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;if(!e){var h="$"+b+"Controller";e=g?c.inheritedData(h):c.data(h)}if(!e&&!f)throw ea("ctreq",b,a);}else if(C(b))for(e=
-[],g=0,f=b.length;g<f;g++)e[g]=V(a,b[g],c,d);else F(b)&&(e={},q(b,function(b,f){e[f]=V(a,b,c,d)}));return e||null}function ca(a,b,c,d,e,f,g){var h=W(),k;for(k in d){var l=d[k],m={$scope:l===g||l.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},n=l.controller;"@"===n&&(n=b[l.name]);m=I(n,m,!0,l.controllerAs);h[l.name]=m;a.data("$"+l.name+"Controller",m.instance)}return h}function aa(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=Ub(a[d],{$$isolateScope:b,$$newScope:c})}function Y(b,c,f,g,h,k,l){if(c===
-h)return null;var m=null;if(e.hasOwnProperty(c)){h=a.get(c+"Directive");for(var n=0,p=h.length;n<p;n++)if(c=h[n],(x(g)||g>c.priority)&&-1!==c.restrict.indexOf(f)){k&&(c=Ub(c,{$$start:k,$$end:l}));if(!c.$$bindings){var K=m=c,r=c.name,A={isolateScope:null,bindToController:null};F(K.scope)&&(!0===K.bindToController?(A.bindToController=d(K.scope,r,!0),A.isolateScope={}):A.isolateScope=d(K.scope,r,!1));F(K.bindToController)&&(A.bindToController=d(K.bindToController,r,!0));if(A.bindToController&&!K.controller)throw ea("noctrl",
-r);m=m.$$bindings=A;F(m.isolateScope)&&(c.$$isolateBindings=m.isolateScope)}b.push(c);m=c}}return m}function Z(b){if(e.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0;return!1}function fa(a,b){var c=b.$attr,d=a.$attr;q(a,function(d,e){"$"!==e.charAt(0)&&(b[e]&&b[e]!==d&&(d=d.length?d+(("style"===e?";":" ")+b[e]):b[e]),a.$set(e,d,!0,c[e]))});q(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}
-function ga(a,b,d,e,g,h,k,l){var m=[],n,p,K=b[0],r=a.shift(),u=Ub(r,{templateUrl:null,transclude:null,replace:null,$$originalDirective:r}),t=y(r.templateUrl)?r.templateUrl(b,d):r.templateUrl,B=r.templateNamespace;b.empty();f(t).then(function(c){var f,A;c=Ea(c);if(r.replace){c=$b.test(c)?jd(ha(B,S(c))):[];f=c[0];if(1!==c.length||1!==f.nodeType)throw ea("tplrt",r.name,t);c={$attr:{}};la(e,b,f);var I=fc(f,[],c);F(r.scope)&&aa(I,!0);a=I.concat(a);fa(d,c)}else f=K,b.html(c);a.unshift(u);n=X(a,f,d,g,b,
-r,h,k,l);q(e,function(a,c){a===f&&(e[c]=b[0])});for(p=Na(b[0].childNodes,g);m.length;){c=m.shift();A=m.shift();var G=m.shift(),J=m.shift(),I=b[0];if(!c.$$destroyed){if(A!==K){var N=A.className;l.hasElementTranscludeDirective&&r.replace||(I=cc(f));la(G,D(A),I);Ma(D(I),N)}A=n.transcludeOnThisElement?ja(c,n.transclude,J):J;n(p,c,I,e,A)}}m=null}).catch(function(a){a instanceof Error&&c(a)}).catch(w);return function(a,b,c,d,e){a=e;b.$$destroyed||(m?m.push(b,c,d,a):(n.transcludeOnThisElement&&(a=ja(b,n.transclude,
-e)),n(p,b,c,d,a)))}}function ka(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function $(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw ea("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,ya(d));}function ma(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&ba.$$addBindingClass(a);return function(a,c){var e=c.parent();b||ba.$$addBindingClass(e);ba.$$addBindingInfo(e,d.expressions);
-a.$watch(d,function(a){c[0].nodeValue=a})}}})}function ha(a,b){a=P(a||"html");switch(a){case "svg":case "math":var c=z.document.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function pa(a,b){if("srcdoc"===b)return L.HTML;var c=xa(a);if("src"===b||"ngSrc"===b){if(-1===["img","video","audio","source","track"].indexOf(c))return L.RESOURCE_URL}else if("xlinkHref"===b||"form"===c&&"action"===b||"link"===c&&"href"===b)return L.RESOURCE_URL}function ra(a,
-c,d,e,f){var g=pa(a,e),h=k[e]||f,l=b(d,!f,g,h);if(l){if("multiple"===e&&"select"===xa(a))throw ea("selmulti",ya(a));if(m.test(e))throw ea("nodomevents");c.push({priority:100,compile:function(){return{pre:function(a,c,f){c=f.$$observers||(f.$$observers=W());var k=f[e];k!==d&&(l=k&&b(k,!0,g,h),d=k);l&&(f[e]=l(a),(c[e]||(c[e]=[])).$$inter=!0,(f.$$observers&&f.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!==b?f.$updateClass(a,b):f.$set(e,a)}))}}}})}}function la(a,b,c){var d=b[0],e=
-b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]===d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=z.document.createDocumentFragment();for(g=0;g<e;g++)a.appendChild(b[g]);D.hasData(d)&&(D.data(c,D.data(d)),D(d).off("$destroy"));D.cleanData(a.querySelectorAll("*"));for(g=1;g<e;g++)delete b[g];b[0]=c;b.length=1}function sa(a,b){return R(function(){return a.apply(null,arguments)},
-a,b)}function ta(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ya(d))}}function oa(a,c,d,e,f){function g(b,c,e){!y(d.$onChanges)||c===e||c!==c&&e!==e||(da||(a.$$postDigest(T),da=[]),m||(m={},da.push(h)),m[b]&&(e=m[b].previousValue),m[b]=new Ib(e,c))}function h(){d.$onChanges(m);m=void 0}var k=[],l={},m;q(e,function(e,h){var m=e.attrName,p=e.optional,r,A,u,B;switch(e.mode){case "@":p||va.call(c,m)||(d[h]=c[m]=void 0);p=c.$observe(m,function(a){if(E(a)||Ia(a))g(h,a,d[h]),d[h]=a});c.$$observers[m].$$scope=
-a;r=c[m];E(r)?d[h]=b(r)(a):Ia(r)&&(d[h]=r);l[h]=new Ib(hc,d[h]);k.push(p);break;case "=":if(!va.call(c,m)){if(p)break;c[m]=void 0}if(p&&!c[m])break;A=n(c[m]);B=A.literal?qa:function(a,b){return a===b||a!==a&&b!==b};u=A.assign||function(){r=d[h]=A(a);throw ea("nonassign",c[m],m,f.name);};r=d[h]=A(a);p=function(b){B(b,d[h])||(B(b,r)?u(a,b=d[h]):d[h]=b);return r=b};p.$stateful=!0;p=e.collection?a.$watchCollection(c[m],p):a.$watch(n(c[m],p),null,A.literal);k.push(p);break;case "<":if(!va.call(c,m)){if(p)break;
-c[m]=void 0}if(p&&!c[m])break;A=n(c[m]);var I=A.literal,G=d[h]=A(a);l[h]=new Ib(hc,d[h]);p=a.$watch(A,function(a,b){if(b===a){if(b===G||I&&qa(b,G))return;b=G}g(h,a,b);d[h]=a},I);k.push(p);break;case "&":A=c.hasOwnProperty(m)?n(c[m]):w;if(A===w&&p)break;d[h]=function(b){return A(a,b)}}});return{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var Da=/^\w/,ua=z.document.createElement("div"),Fa=O,Ga=u,za=J,da;s.prototype={$normalize:Ca,$addClass:function(a){a&&
-0<a.length&&N.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&N.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=kd(a,b);c&&c.length&&N.addClass(this.$$element,c);(c=kd(b,a))&&c.length&&N.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=dd(this.$$element[0],a),g=ld[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Nc(a,"-"));f=xa(this.$$element);if("a"===f&&("href"===a||"xlinkHref"===
-a)||"img"===f&&"src"===a)this[a]=b=G(b,"src"===a);else if("img"===f&&"srcset"===a&&v(b)){for(var f="",g=S(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,k=/\s/.test(g)?k:/(,)/,g=g.split(k),k=Math.floor(g.length/2),l=0;l<k;l++)var m=2*l,f=f+G(S(g[m]),!0),f=f+(" "+S(g[m+1]));g=S(g[2*l]).split(/\s/);f+=G(S(g[0]),!0);2===g.length&&(f+=" "+S(g[1]));this[a]=b=f}!1!==d&&(null===b||x(b)?this.$$element.removeAttr(e):Da.test(e)?this.$$element.attr(e,b):Q(this.$$element[0],e,b));(a=this.$$observers)&&q(a[h],function(a){try{a(b)}catch(d){c(d)}})},
-$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=W()),e=d[a]||(d[a]=[]);e.push(b);B.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||x(c[a])||b(c[a])});return function(){$a(e,b)}}};var Aa=b.startSymbol(),Ba=b.endSymbol(),Ea="{{"===Aa&&"}}"===Ba?Ya:function(a){return a.replace(/\{\{/g,Aa).replace(/}}/g,Ba)},Ha=/^ngAttr[A-Z]/,Ka=/^(.+)Start$/;ba.$$addBindingInfo=p?function(a,b){var c=a.data("$binding")||[];C(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:w;ba.$$addBindingClass=
-p?function(a){Ma(a,"ng-binding")}:w;ba.$$addScopeInfo=p?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:w;ba.$$addScopeClass=p?function(a,b){Ma(a,b?"ng-isolate-scope":"ng-scope")}:w;ba.$$createComment=function(a,b){var c="";p&&(c=" "+(a||"")+": ",b&&(c+=b+" "));return z.document.createComment(c)};return ba}]}function Ib(a,b){this.previousValue=a;this.currentValue=b}function Ca(a){return a.replace(gd,"").replace(mg,gb)}function kd(a,b){var d="",c=a.split(/\s+/),
-f=b.split(/\s+/),e=0;a:for(;e<c.length;e++){for(var g=c[e],h=0;h<f.length;h++)if(g===f[h])continue a;d+=(0<d.length?" ":"")+g}return d}function jd(a){a=D(a);var b=a.length;if(1>=b)return a;for(;b--;){var d=a[b];(8===d.nodeType||d.nodeType===Ja&&""===d.nodeValue.trim())&&ng.call(a,b,1)}return a}function lg(a,b){if(b&&E(b))return b;if(E(a)){var d=md.exec(a);if(d)return d[3]}}function rf(){var a={},b=!1;this.has=function(b){return a.hasOwnProperty(b)};this.register=function(b,c){Pa(b,"controller");F(b)?
-R(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=["$injector","$window",function(d,c){function f(a,b,c,d){if(!a||!F(a.$scope))throw M("$controller")("noscp",d,b);a.$scope[b]=c}return function(e,g,h,k){var l,m,n;h=!0===h;k&&E(k)&&(n=k);if(E(e)){k=e.match(md);if(!k)throw nd("ctrlfmt",e);m=k[1];n=n||k[3];e=a.hasOwnProperty(m)?a[m]:Pc(g.$scope,m,!0)||(b?Pc(c,m,!0):void 0);if(!e)throw nd("ctrlreg",m);tb(e,m,!0)}if(h)return h=(C(e)?e[e.length-1]:e).prototype,l=Object.create(h||null),n&&f(g,n,
-l,m||e.name),R(function(){var a=d.invoke(e,l,g,m);a!==l&&(F(a)||y(a))&&(l=a,n&&f(g,n,l,m||e.name));return l},{instance:l,identifier:n});l=d.instantiate(e,g,m);n&&f(g,n,l,m||e.name);return l}}]}function sf(){this.$get=["$window",function(a){return D(a.document)}]}function tf(){this.$get=["$document","$rootScope",function(a,b){function d(){f=c.hidden}var c=a[0],f=c&&c.hidden;a.on("visibilitychange",d);b.$on("$destroy",function(){a.off("visibilitychange",d)});return function(){return f}}]}function uf(){this.$get=
-["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function ic(a){return F(a)?fa(a)?a.toISOString():cb(a):a}function zf(){this.$get=function(){return function(a){if(!a)return"";var b=[];Ec(a,function(a,c){null===a||x(a)||(C(a)?q(a,function(a){b.push(ka(c)+"="+ka(ic(a)))}):b.push(ka(c)+"="+ka(ic(a))))});return b.join("&")}}}function Af(){this.$get=function(){return function(a){function b(a,f,e){null===a||x(a)||(C(a)?q(a,function(a,c){b(a,f+"["+(F(a)?c:"")+"]")}):F(a)&&!fa(a)?Ec(a,
-function(a,c){b(a,f+(e?"":"[")+c+(e?"":"]"))}):d.push(ka(f)+"="+ka(ic(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function jc(a,b){if(E(a)){var d=a.replace(og,"").trim();if(d){var c=b("Content-Type");(c=c&&0===c.indexOf(od))||(c=(c=d.match(pg))&&qg[c[0]].test(d));c&&(a=Ic(d))}}return a}function pd(a){var b=W(),d;E(a)?q(a.split("\n"),function(a){d=a.indexOf(":");var f=P(S(a.substr(0,d)));a=S(a.substr(d+1));f&&(b[f]=b[f]?b[f]+", "+a:a)}):F(a)&&q(a,function(a,d){var e=P(d),g=S(a);e&&
-(b[e]=b[e]?b[e]+", "+g:g)});return b}function qd(a){var b;return function(d){b||(b=pd(a));return d?(d=b[P(d)],void 0===d&&(d=null),d):b}}function rd(a,b,d,c){if(y(c))return c(a,b,d);q(c,function(c){a=c(a,b,d)});return a}function yf(){var a=this.defaults={transformResponse:[jc],transformRequest:[function(a){return F(a)&&"[object File]"!==na.call(a)&&"[object Blob]"!==na.call(a)&&"[object FormData]"!==na.call(a)?cb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ra(kc),put:ra(kc),
-patch:ra(kc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},b=!1;this.useApplyAsync=function(a){return v(a)?(b=!!a,this):b};var d=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(c,f,e,g,h,k,l,m){function n(b){function d(a,b){for(var c=0,e=b.length;c<e;){var f=b[c++],g=b[c++];a=a.then(f,g)}b.length=0;return a}function e(a,b){var c,
-d={};q(a,function(a,e){y(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}function f(a){var b=R({},a);b.data=rd(a.data,a.headers,a.status,g.transformResponse);a=a.status;return 200<=a&&300>a?b:k.reject(b)}if(!F(b))throw M("$http")("badreq",b);if(!E(m.valueOf(b.url)))throw M("$http")("badreq",b.url);var g=R({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer,jsonpCallbackParam:a.jsonpCallbackParam},b);g.headers=function(b){var c=
-a.headers,d=R({},b.headers),f,g,h,c=R({},c.common,c[P(b.method)]);a:for(f in c){g=P(f);for(h in d)if(P(h)===g)continue a;d[f]=c[f]}return e(d,ra(b))}(b);g.method=vb(g.method);g.paramSerializer=E(g.paramSerializer)?l.get(g.paramSerializer):g.paramSerializer;c.$$incOutstandingRequestCount();var h=[],n=[];b=k.resolve(g);q(u,function(a){(a.request||a.requestError)&&h.unshift(a.request,a.requestError);(a.response||a.responseError)&&n.push(a.response,a.responseError)});b=d(b,h);b=b.then(function(b){var c=
-b.headers,d=rd(b.data,qd(c),void 0,b.transformRequest);x(d)&&q(c,function(a,b){"content-type"===P(b)&&delete c[b]});x(b.withCredentials)&&!x(a.withCredentials)&&(b.withCredentials=a.withCredentials);return p(b,d).then(f,f)});b=d(b,n);return b=b.finally(function(){c.$$completeOutstandingRequest(w)})}function p(c,d){function g(a){if(a){var c={};q(a,function(a,d){c[d]=function(c){function d(){a(c)}b?h.$applyAsync(d):h.$$phase?d():h.$apply(d)}});return c}}function l(a,c,d,e){function f(){p(c,a,d,e)}N&&
-(200<=a&&300>a?N.put(Q,[a,c,pd(d),e]):N.remove(Q));b?h.$applyAsync(f):(f(),h.$$phase||h.$apply())}function p(a,b,d,e){b=-1<=b?b:0;(200<=b&&300>b?B.resolve:B.reject)({data:a,status:b,headers:qd(d),config:c,statusText:e})}function K(a){p(a.data,a.status,ra(a.headers()),a.statusText)}function u(){var a=n.pendingRequests.indexOf(c);-1!==a&&n.pendingRequests.splice(a,1)}var B=k.defer(),L=B.promise,N,G,T=c.headers,s="jsonp"===P(c.method),Q=c.url;s?Q=m.getTrustedResourceUrl(Q):E(Q)||(Q=m.valueOf(Q));Q=r(Q,
-c.paramSerializer(c.params));s&&(Q=J(Q,c.jsonpCallbackParam));n.pendingRequests.push(c);L.then(u,u);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(N=F(c.cache)?c.cache:F(a.cache)?a.cache:O);N&&(G=N.get(Q),v(G)?G&&y(G.then)?G.then(K,K):C(G)?p(G[1],G[0],ra(G[2]),G[3]):p(G,200,{},"OK"):N.put(Q,L));x(G)&&((G=sd(c.url)?e()[c.xsrfCookieName||a.xsrfCookieName]:void 0)&&(T[c.xsrfHeaderName||a.xsrfHeaderName]=G),f(c.method,Q,d,l,T,c.timeout,c.withCredentials,c.responseType,g(c.eventHandlers),
-g(c.uploadEventHandlers)));return L}function r(a,b){0<b.length&&(a+=(-1===a.indexOf("?")?"?":"&")+b);return a}function J(a,b){if(/[&?][^=]+=JSON_CALLBACK/.test(a))throw td("badjsonp",a);if((new RegExp("[&?]"+b+"=")).test(a))throw td("badjsonp",b,a);return a+=(-1===a.indexOf("?")?"?":"&")+b+"=JSON_CALLBACK"}var O=g("$http");a.paramSerializer=E(a.paramSerializer)?l.get(a.paramSerializer):a.paramSerializer;var u=[];q(d,function(a){u.unshift(E(a)?l.get(a):l.invoke(a))});n.pendingRequests=[];(function(a){q(arguments,
-function(a){n[a]=function(b,c){return n(R({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){q(arguments,function(a){n[a]=function(b,c,d){return n(R({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");n.defaults=a;return n}]}function Cf(){this.$get=function(){return function(){return new z.XMLHttpRequest}}}function Bf(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(a,b,d,c){return rg(a,c,a.defer,b,d[0])}]}function rg(a,b,d,c,f){function e(a,
-b,d){a=a.replace("JSON_CALLBACK",b);var e=f.createElement("script"),m=null;e.type="text/javascript";e.src=a;e.async=!0;m=function(a){e.removeEventListener("load",m);e.removeEventListener("error",m);f.body.removeChild(e);e=null;var g=-1,r="unknown";a&&("load"!==a.type||c.wasCalled(b)||(a={type:"error"}),r=a.type,g="error"===a.type?404:200);d&&d(g,r)};e.addEventListener("load",m);e.addEventListener("error",m);f.body.appendChild(e);return m}return function(f,h,k,l,m,n,p,r,J,O){function u(){U&&U();t&&
-t.abort()}h=h||a.url();if("jsonp"===P(f))var H=c.createCallback(h),U=e(h,H,function(a,b){var e=200===a&&c.getResponse(H);v(A)&&d.cancel(A);U=t=null;l(a,e,"",b);c.removeCallback(H)});else{var t=b(f,h);t.open(f,h,!0);q(m,function(a,b){v(a)&&t.setRequestHeader(b,a)});t.onload=function(){var a=t.statusText||"",b="response"in t?t.response:t.responseText,c=1223===t.status?204:t.status;0===c&&(c=b?200:"file"===Da(h).protocol?404:0);var e=t.getAllResponseHeaders();v(A)&&d.cancel(A);U=t=null;l(c,b,e,a)};f=
-function(){v(A)&&d.cancel(A);U=t=null;l(-1,null,null,"")};t.onerror=f;t.onabort=f;t.ontimeout=f;q(J,function(a,b){t.addEventListener(b,a)});q(O,function(a,b){t.upload.addEventListener(b,a)});p&&(t.withCredentials=!0);if(r)try{t.responseType=r}catch(s){if("json"!==r)throw s;}t.send(x(k)?null:k)}if(0<n)var A=d(u,n);else n&&y(n.then)&&n.then(u)}}function wf(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler",
-"$sce",function(d,c,f){function e(a){return"\\\\\\"+a}function g(c){return c.replace(n,a).replace(p,b)}function h(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function k(e,k,n,p){function H(a){try{var b=a;a=n?f.getTrusted(n,b):f.valueOf(b);return p&&!v(a)?a:Yb(a)}catch(d){c(Ea.interr(e,d))}}if(!e.length||-1===e.indexOf(a)){var q;k||(k=g(e),q=ma(k),q.exp=e,q.expressions=[],q.$$watchDelegate=h);return q}p=!!p;var t,s,A=0,K=[],I=[];q=e.length;for(var B=[],L=[];A<q;)if(-1!==(t=e.indexOf(a,
-A))&&-1!==(s=e.indexOf(b,t+l)))A!==t&&B.push(g(e.substring(A,t))),A=e.substring(t+l,s),K.push(A),I.push(d(A,H)),A=s+m,L.push(B.length),B.push("");else{A!==q&&B.push(g(e.substring(A)));break}n&&1<B.length&&Ea.throwNoconcat(e);if(!k||K.length){var N=function(a){for(var b=0,c=K.length;b<c;b++){if(p&&x(a[b]))return;B[L[b]]=a[b]}return B.join("")};return R(function(a){var b=0,d=K.length,f=Array(d);try{for(;b<d;b++)f[b]=I[b](a);return N(f)}catch(g){c(Ea.interr(e,g))}},{exp:e,expressions:K,$$watchDelegate:function(a,
-b){var c;return a.$watchGroup(I,function(d,e){var f=N(d);y(b)&&b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=a.length,m=b.length,n=new RegExp(a.replace(/./g,e),"g"),p=new RegExp(b.replace(/./g,e),"g");k.startSymbol=function(){return a};k.endSymbol=function(){return b};return k}]}function xf(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,d,c,f){function e(e,k,l,m){function n(){p?e.apply(null,r):e(u)}var p=4<arguments.length,r=p?wa.call(arguments,4):[],J=b.setInterval,q=b.clearInterval,
-u=0,H=v(m)&&!m,U=(H?c:d).defer(),t=U.promise;l=v(l)?l:0;t.$$intervalId=J(function(){H?f.defer(n):a.$evalAsync(n);U.notify(u++);0<l&&u>=l&&(U.resolve(u),q(t.$$intervalId),delete g[t.$$intervalId]);H||a.$apply()},k);g[t.$$intervalId]=U;return t}var g={};e.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].promise.catch(w),g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1};return e}]}function lc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=
-db(a[b]);return a.join("/")}function ud(a,b){var d=Da(a);b.$$protocol=d.protocol;b.$$host=d.hostname;b.$$port=Z(d.port)||sg[d.protocol]||null}function vd(a,b){if(tg.test(a))throw lb("badpath",a);var d="/"!==a.charAt(0);d&&(a="/"+a);var c=Da(a);b.$$path=decodeURIComponent(d&&"/"===c.pathname.charAt(0)?c.pathname.substring(1):c.pathname);b.$$search=Lc(c.search);b.$$hash=decodeURIComponent(c.hash);b.$$path&&"/"!==b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function mc(a,b){return a.slice(0,b.length)===
-b}function sa(a,b){if(mc(b,a))return b.substr(a.length)}function Ba(a){var b=a.indexOf("#");return-1===b?a:a.substr(0,b)}function mb(a){return a.replace(/(#.+)|#$/,"$1")}function nc(a,b,d){this.$$html5=!0;d=d||"";ud(a,this);this.$$parse=function(a){var d=sa(b,a);if(!E(d))throw lb("ipthprfx",a,b);vd(d,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Xb(this.$$search),d=this.$$hash?"#"+db(this.$$hash):"";this.$$url=lc(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+
-this.$$url.substr(1)};this.$$parseLinkUrl=function(c,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,g;v(e=sa(a,c))?(g=e,g=d&&v(e=sa(d,e))?b+(sa("/",e)||e):a+g):v(e=sa(b,c))?g=b+e:b===c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function oc(a,b,d){ud(a,this);this.$$parse=function(c){var f=sa(a,c)||sa(b,c),e;x(f)||"#"!==f.charAt(0)?this.$$html5?e=f:(e="",x(f)&&(a=c,this.replace())):(e=sa(d,f),x(e)&&(e=f));vd(e,this);c=this.$$path;var f=a,g=/^\/[A-Z]:(\/.*)/;mc(e,f)&&(e=e.replace(f,""));g.exec(e)||
-(c=(e=g.exec(c))?e[1]:c);this.$$path=c;this.$$compose()};this.$$compose=function(){var b=Xb(this.$$search),f=this.$$hash?"#"+db(this.$$hash):"";this.$$url=lc(this.$$path)+(b?"?"+b:"")+f;this.$$absUrl=a+(this.$$url?d+this.$$url:"")};this.$$parseLinkUrl=function(b,d){return Ba(a)===Ba(b)?(this.$$parse(b),!0):!1}}function wd(a,b,d){this.$$html5=!0;oc.apply(this,arguments);this.$$parseLinkUrl=function(c,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,g;a===Ba(c)?e=c:(g=sa(b,c))?e=a+d+g:b===
-c+"/"&&(e=b);e&&this.$$parse(e);return!!e};this.$$compose=function(){var b=Xb(this.$$search),f=this.$$hash?"#"+db(this.$$hash):"";this.$$url=lc(this.$$path)+(b?"?"+b:"")+f;this.$$absUrl=a+d+this.$$url}}function Jb(a){return function(){return this[a]}}function xd(a,b){return function(d){if(x(d))return this[a];this[a]=b(d);this.$$compose();return this}}function Ef(){var a="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return v(b)?(a=b,this):a};this.html5Mode=function(a){if(Ia(a))return b.enabled=
-a,this;if(F(a)){Ia(a.enabled)&&(b.enabled=a.enabled);Ia(a.requireBase)&&(b.requireBase=a.requireBase);if(Ia(a.rewriteLinks)||E(a.rewriteLinks))b.rewriteLinks=a.rewriteLinks;return this}return b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,c,f,e,g){function h(a,b,d){var e=l.url(),f=l.$$state;try{c.url(a,b,d),l.$$state=c.state()}catch(g){throw l.url(e),l.$$state=f,g;}}function k(a,b){d.$broadcast("$locationChangeSuccess",l.absUrl(),a,l.$$state,b)}var l,m;m=c.baseHref();
-var n=c.url(),p;if(b.enabled){if(!m&&b.requireBase)throw lb("nobase");p=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(m||"/");m=f.history?nc:wd}else p=Ba(n),m=oc;var r=p.substr(0,Ba(p).lastIndexOf("/")+1);l=new m(p,r,"#"+a);l.$$parseLinkUrl(n,n);l.$$state=c.state();var J=/^\s*(javascript|mailto):/i;e.on("click",function(a){var f=b.rewriteLinks;if(f&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!==a.which&&2!==a.button){for(var h=D(a.target);"a"!==xa(h[0]);)if(h[0]===e[0]||!(h=h.parent())[0])return;if(!E(f)||
-!x(h.attr(f))){var f=h.prop("href"),k=h.attr("href")||h.attr("xlink:href");F(f)&&"[object SVGAnimatedString]"===f.toString()&&(f=Da(f.animVal).href);J.test(f)||!f||h.attr("target")||a.isDefaultPrevented()||!l.$$parseLinkUrl(f,k)||(a.preventDefault(),l.absUrl()!==c.url()&&(d.$apply(),g.angular["ff-684208-preventDefault"]=!0))}}});mb(l.absUrl())!==mb(n)&&c.url(l.absUrl(),!0);var q=!0;c.onUrlChange(function(a,b){mc(a,r)?(d.$evalAsync(function(){var c=l.absUrl(),e=l.$$state,f;a=mb(a);l.$$parse(a);l.$$state=
-b;f=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;l.absUrl()===a&&(f?(l.$$parse(c),l.$$state=e,h(c,!1,e)):(q=!1,k(c,e)))}),d.$$phase||d.$digest()):g.location.href=a});d.$watch(function(){var a=mb(c.url()),b=mb(l.absUrl()),e=c.state(),g=l.$$replace,m=a!==b||l.$$html5&&f.history&&e!==l.$$state;if(q||m)q=!1,d.$evalAsync(function(){var b=l.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,l.$$state,e).defaultPrevented;l.absUrl()===b&&(c?(l.$$parse(a),l.$$state=e):(m&&h(b,g,e===l.$$state?
-null:l.$$state),k(a,e)))});l.$$replace=!1});return l}]}function Ff(){var a=!0,b=this;this.debugEnabled=function(b){return v(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function f(a){var b=d.console||{},f=b[a]||b.log||w;a=!1;try{a=!!f.apply}catch(k){}return a?function(){var a=[];q(arguments,function(b){a.push(c(b))});
-return f.apply(b,a)}:function(a,b){f(a,null==b?"":b)}}return{log:f("log"),info:f("info"),warn:f("warn"),error:f("error"),debug:function(){var c=f("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function ug(a){return a+""}function vg(a,b){return"undefined"!==typeof a?a:b}function yd(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function V(a,b){var d,c,f;switch(a.type){case s.Program:d=!0;q(a.body,function(a){V(a.expression,b);d=d&&a.expression.constant});a.constant=d;break;
-case s.Literal:a.constant=!0;a.toWatch=[];break;case s.UnaryExpression:V(a.argument,b);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case s.BinaryExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case s.LogicalExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case s.ConditionalExpression:V(a.test,b);V(a.alternate,b);V(a.consequent,
-b);a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case s.Identifier:a.constant=!1;a.toWatch=[a];break;case s.MemberExpression:V(a.object,b);a.computed&&V(a.property,b);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=[a];break;case s.CallExpression:d=f=a.filter?!b(a.callee.name).$stateful:!1;c=[];q(a.arguments,function(a){V(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=f?c:[a];
-break;case s.AssignmentExpression:V(a.left,b);V(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case s.ArrayExpression:d=!0;c=[];q(a.elements,function(a){V(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=c;break;case s.ObjectExpression:d=!0;c=[];q(a.properties,function(a){V(a.value,b);d=d&&a.value.constant&&!a.computed;a.value.constant||c.push.apply(c,a.value.toWatch)});a.constant=d;a.toWatch=c;break;case s.ThisExpression:a.constant=
-!1;a.toWatch=[];break;case s.LocalsExpression:a.constant=!1,a.toWatch=[]}}function zd(a){if(1===a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:void 0}}function Ad(a){return a.type===s.Identifier||a.type===s.MemberExpression}function Bd(a){if(1===a.body.length&&Ad(a.body[0].expression))return{type:s.AssignmentExpression,left:a.body[0].expression,right:{type:s.NGValueParameter},operator:"="}}function Cd(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===
-s.Literal||a.body[0].expression.type===s.ArrayExpression||a.body[0].expression.type===s.ObjectExpression)}function Dd(a,b){this.astBuilder=a;this.$filter=b}function Ed(a,b){this.astBuilder=a;this.$filter=b}function pc(a){return y(a.valueOf)?a.valueOf():wg.call(a)}function Gf(){var a=W(),b={"true":!0,"false":!1,"null":null,undefined:void 0},d,c;this.addLiteral=function(a,c){b[a]=c};this.setIdentifierFns=function(a,b){d=a;c=b;return this};this.$get=["$filter",function(f){function e(a,b){return null==
-a||null==b?a===b:"object"===typeof a&&(a=pc(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function g(a,b,c,d,f){var g=d.inputs,h;if(1===g.length){var k=e,g=g[0];return a.$watch(function(a){var b=g(a);e(b,k)||(h=d(a,void 0,void 0,[b]),k=b&&pc(b));return h},b,c,f)}for(var l=[],m=[],n=0,I=g.length;n<I;n++)l[n]=e,m[n]=null;return a.$watch(function(a){for(var b=!1,c=0,f=g.length;c<f;c++){var k=g[c](a);if(b||(b=!e(k,l[c])))m[c]=k,l[c]=k&&pc(k)}b&&(h=d(a,void 0,void 0,m));return h},b,c,f)}function h(a,
-b,c,d,e){function f(a){return d(a)}function h(a,c,d){l=a;y(b)&&b(a,c,d);v(a)&&d.$$postDigest(function(){v(l)&&k()})}var k,l;return k=d.inputs?g(a,h,c,d,e):a.$watch(f,h,c)}function k(a,b,c,d){function e(a){var b=!0;q(a,function(a){v(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;y(b)&&b(a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function l(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function m(a,b){if(!b)return a;var c=
-a.$$watchDelegate,d=!1,c=c!==k&&c!==h?function(c,e,f,g){f=d&&g?g[0]:a(c,e,f,g);return b(f,c,e)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return v(e)?c:e},d=!a.inputs;a.$$watchDelegate&&a.$$watchDelegate!==g?(c.$$watchDelegate=a.$$watchDelegate,c.inputs=a.inputs):b.$stateful||(c.$$watchDelegate=g,c.inputs=a.inputs?a.inputs:[a]);return c}var n={csp:za().noUnsafeEval,literals:Fa(b),isIdentifierStart:y(d)&&d,isIdentifierContinue:y(c)&&c};return function(b,c){var d,e,u;switch(typeof b){case "string":return u=
-b=b.trim(),d=a[u],d||(":"===b.charAt(0)&&":"===b.charAt(1)&&(e=!0,b=b.substring(2)),d=new qc(n),d=(new rc(d,f,n)).parse(b),d.constant?d.$$watchDelegate=l:e?d.$$watchDelegate=d.literal?k:h:d.inputs&&(d.$$watchDelegate=g),a[u]=d),m(d,c);case "function":return m(b,c);default:return m(w,c)}}}]}function If(){var a=!0;this.$get=["$rootScope","$exceptionHandler",function(b,d){return Fd(function(a){b.$evalAsync(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return v(b)?(a=b,this):a}}function Jf(){var a=
-!0;this.$get=["$browser","$exceptionHandler",function(b,d){return Fd(function(a){b.defer(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return v(b)?(a=b,this):a}}function Fd(a,b,d){function c(){return new f}function f(){var a=this.promise=new e;this.resolve=function(b){k(a,b)};this.reject=function(b){m(a,b)};this.notify=function(b){p(a,b)}}function e(){this.$$state={status:0}}function g(){for(;!v&&t.length;){var a=t.shift();if(!a.pur){a.pur=!0;var c=a.value,c="Possibly unhandled rejection: "+
-("function"===typeof c?c.toString().replace(/ \{[\s\S]*$/,""):x(c)?"undefined":"string"!==typeof c?we(c):c);a.value instanceof Error?b(a.value,c):b(c)}}}function h(b){!d||b.pending||2!==b.status||b.pur||(0===v&&0===t.length&&a(g),t.push(b));!b.processScheduled&&b.pending&&(b.processScheduled=!0,++v,a(function(){var c,e,f;f=b.pending;b.processScheduled=!1;b.pending=void 0;try{for(var h=0,l=f.length;h<l;++h){b.pur=!0;e=f[h][0];c=f[h][b.status];try{y(c)?k(e,c(b.value)):1===b.status?k(e,b.value):m(e,
-b.value)}catch(n){m(e,n)}}}finally{--v,d&&0===v&&a(g)}}))}function k(a,b){a.$$state.status||(b===a?n(a,H("qcycle",b)):l(a,b))}function l(a,b){function c(b){g||(g=!0,l(a,b))}function d(b){g||(g=!0,n(a,b))}function e(b){p(a,b)}var f,g=!1;try{if(F(b)||y(b))f=b.then;y(f)?(a.$$state.status=-1,f.call(b,c,d,e)):(a.$$state.value=b,a.$$state.status=1,h(a.$$state))}catch(k){d(k)}}function m(a,b){a.$$state.status||n(a,b)}function n(a,b){a.$$state.value=b;a.$$state.status=2;h(a.$$state)}function p(c,d){var e=
-c.$$state.pending;0>=c.$$state.status&&e&&e.length&&a(function(){for(var a,c,f=0,g=e.length;f<g;f++){c=e[f][0];a=e[f][3];try{p(c,y(a)?a(d):d)}catch(h){b(h)}}})}function r(a){var b=new e;m(b,a);return b}function J(a,b,c){var d=null;try{y(c)&&(d=c())}catch(e){return r(e)}return d&&y(d.then)?d.then(function(){return b(a)},r):b(a)}function s(a,b,c,d){var f=new e;k(f,a);return f.then(b,c,d)}function u(a){if(!y(a))throw H("norslvr",a);var b=new e;a(function(a){k(b,a)},function(a){m(b,a)});return b}var H=
-M("$q",TypeError),v=0,t=[];R(e.prototype,{then:function(a,b,c){if(x(a)&&x(b)&&x(c))return this;var d=new e;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&h(this.$$state);return d},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return J(b,w,a)},function(b){return J(b,r,a)},b)}});var w=s;u.prototype=e.prototype;u.defer=c;u.reject=r;u.when=s;u.resolve=w;u.all=function(a){var b=new e,c=0,d=C(a)?
-[]:{};q(a,function(a,e){c++;s(a).then(function(a){d[e]=a;--c||k(b,d)},function(a){m(b,a)})});0===c&&k(b,d);return b};u.race=function(a){var b=c();q(a,function(a){s(a).then(b.resolve,b.reject)});return b.promise};return u}function Sf(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,f=!!d,e=f?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=
-b(a,16.66,!1);return function(){b.cancel(c)}};e.supported=f;return e}]}function Hf(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++rb;this.$$ChildScope=null}b.prototype=a;return b}var b=10,d=M("$rootScope"),c=null,f=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",function(e,g,h){function k(a){a.currentScope.$$destroyed=
-!0}function l(a){9===La&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++rb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function n(a){if(H.$$phase)throw d("inprog",
-H.$$phase);H.$$phase=a}function p(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function r(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function J(){}function s(){for(;ia.length;)try{ia.shift()()}catch(a){e(a)}f=null}function u(){null===f&&(f=h.defer(function(){H.$apply(s)}))}m.prototype={constructor:m,$new:function(b,c){var d;c=c||this;b?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);
-d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!==this)&&d.$on("$destroy",k);return d},$watch:function(a,b,d,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,f,a);var h=this,k=h.$$watchers,l={fn:b,last:J,get:f,exp:e||a,eq:!!d};c=null;y(b)||(l.fn=w);k||(k=h.$$watchers=[],k.$$digestWatchIndex=-1);k.unshift(l);k.$$digestWatchIndex++;p(this,1);return function(){var a=$a(k,l);0<=a&&(p(h,-1),
-a<k.$$digestWatchIndex&&k.$$digestWatchIndex--);c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});q(a,function(a,b){var k=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(k)});return function(){for(;f.length;)f.shift()()}},
-$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!x(e)){if(F(e))if(ta(e))for(f!==n&&(f=n,u=f.length=0,l++),a=e.length,u!==a&&(l++,f.length=u=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==p&&(f=p={},u=0,l++);a=0;for(b in e)va.call(e,b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(u++,f[b]=g,l++));if(u>a)for(b in l++,f)va.call(e,b)||(u--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$stateful=!0;var d=this,e,f,h,k=1<b.length,l=0,m=
-g(a,c),n=[],p={},r=!0,u=0;return this.$watch(m,function(){r?(r=!1,b(e,e,d)):b(e,h,d);if(k)if(F(e))if(ta(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)va.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,g,k,l,m,p,r,u=b,q,w=[],x,ia;n("$digest");h.$$checkUrlChange();this===H&&null!==f&&(h.defer.cancel(f),s());c=null;do{r=!1;q=this;for(p=0;p<v.length;p++){try{ia=v[p],ia.scope.$eval(ia.expression,ia.locals)}catch(z){e(z)}c=null}v.length=0;a:do{if(p=q.$$watchers)for(p.$$digestWatchIndex=
-p.length;p.$$digestWatchIndex--;)try{if(a=p[p.$$digestWatchIndex])if(m=a.get,(g=m(q))!==(k=a.last)&&!(a.eq?qa(g,k):ga(g)&&ga(k)))r=!0,c=a,a.last=a.eq?Fa(g,null):g,l=a.fn,l(g,k===J?g:k,q),5>u&&(x=4-u,w[x]||(w[x]=[]),w[x].push({msg:y(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:g,oldVal:k}));else if(a===c){r=!1;break a}}catch(D){e(D)}if(!(p=q.$$watchersCount&&q.$$childHead||q!==this&&q.$$nextSibling))for(;q!==this&&!(p=q.$$nextSibling);)q=q.$parent}while(q=p);if((r||v.length)&&!u--)throw H.$$phase=
-null,d("infdig",b,w);}while(r||v.length);for(H.$$phase=null;A<t.length;)try{t[A++]()}catch(E){e(E)}t.length=A=0},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===H&&h.$$applicationDestroyed();p(this,-this.$$watchersCount);for(var b in this.$$listenerCount)r(this,this.$$listenerCount[b],b);a&&a.$$childHead===this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail===this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=
-this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=w;this.$on=this.$watch=this.$watchGroup=function(){return w};this.$$listeners={};this.$$nextSibling=null;l(this)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){H.$$phase||v.length||h.defer(function(){v.length&&H.$digest()});v.push({scope:this,expression:g(a),locals:b})},$$postDigest:function(a){t.push(a)},$apply:function(a){try{n("$apply");
-try{return this.$eval(a)}finally{H.$$phase=null}}catch(b){e(b)}finally{try{H.$digest()}catch(c){throw e(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&ia.push(b);a=g(a);u()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,r(e,1,a))}},$emit:function(a,b){var c=[],d,f=this,
-g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=ab([h],arguments,1),l,m;do{d=f.$$listeners[a]||c;h.currentScope=f;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(n){e(n)}else d.splice(l,1),l--,m--;if(g)return h.currentScope=null,h;f=f.$parent}while(f);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},
-defaultPrevented:!1};if(!this.$$listenerCount[a])return f;for(var g=ab([f],arguments,1),h,k;c=d;){f.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){e(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}f.currentScope=null;return f}};var H=new m,v=H.$$asyncQueue=[],t=H.$$postDigestQueue=[],ia=H.$$applyAsyncQueue=[],A=0;return H}]}function ze(){var a=
-/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return v(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return v(a)?(b=a,this):b};this.$get=function(){return function(d,c){var f=c?b:a,e;e=Da(d).href;return""===e||e.match(f)?d:"unsafe:"+e}}}function xg(a){if("self"===a)return a;if(E(a)){if(-1<a.indexOf("***"))throw ua("iwcard",a);a=Gd(a).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*");return new RegExp("^"+
-a+"$")}if(Xa(a))return new RegExp("^"+a.source+"$");throw ua("imatcher");}function Hd(a){var b=[];v(a)&&q(a,function(a){b.push(xg(a))});return b}function Lf(){this.SCE_CONTEXTS=pa;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&(a=Hd(b));return a};this.resourceUrlBlacklist=function(a){arguments.length&&(b=Hd(a));return b};this.$get=["$injector",function(d){function c(a,b){return"self"===a?sd(b):!!a.exec(b.href)}function f(a){var b=function(a){this.$$unwrapTrustedValue=
-function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var e=function(a){throw ua("unsafe");};d.has("$sanitize")&&(e=d.get("$sanitize"));var g=f(),h={};h[pa.HTML]=f(g);h[pa.CSS]=f(g);h[pa.URL]=f(g);h[pa.JS]=f(g);h[pa.RESOURCE_URL]=f(h[pa.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw ua("icontext",a,b);if(null===b||x(b)||
-""===b)return b;if("string"!==typeof b)throw ua("itype",a);return new c(b)},getTrusted:function(d,f){if(null===f||x(f)||""===f)return f;var g=h.hasOwnProperty(d)?h[d]:null;if(g&&f instanceof g)return f.$$unwrapTrustedValue();if(d===pa.RESOURCE_URL){var g=Da(f.toString()),n,p,r=!1;n=0;for(p=a.length;n<p;n++)if(c(a[n],g)){r=!0;break}if(r)for(n=0,p=b.length;n<p;n++)if(c(b[n],g)){r=!1;break}if(r)return f;throw ua("insecurl",f.toString());}if(d===pa.HTML)return e(f);throw ua("unsafe");},valueOf:function(a){return a instanceof
-g?a.$$unwrapTrustedValue():a}}}]}function Kf(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>La)throw ua("iequirks");var c=ra(pa);c.isEnabled=function(){return a};c.trustAs=d.trustAs;c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b},c.valueOf=Ya);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var f=c.parseAs,
-e=c.getTrusted,g=c.trustAs;q(pa,function(a,b){var d=P(b);c[("parse_as_"+d).replace(sc,gb)]=function(b){return f(a,b)};c[("get_trusted_"+d).replace(sc,gb)]=function(b){return e(a,b)};c[("trust_as_"+d).replace(sc,gb)]=function(b){return g(a,b)}});return c}]}function Mf(){this.$get=["$window","$document",function(a,b){var d={},c=!(a.chrome&&(a.chrome.app&&a.chrome.app.runtime||!a.chrome.app&&a.chrome.runtime&&a.chrome.runtime.id))&&a.history&&a.history.pushState,f=Z((/android (\d+)/.exec(P((a.navigator||
-{}).userAgent))||[])[1]),e=/Boxee/i.test((a.navigator||{}).userAgent),g=b[0]||{},h=g.body&&g.body.style,k=!1,l=!1;h&&(k=!!("transition"in h||"webkitTransition"in h),l=!!("animation"in h||"webkitAnimation"in h));return{history:!(!c||4>f||e),hasEvent:function(a){if("input"===a&&La)return!1;if(x(d[a])){var b=g.createElement("div");d[a]="on"+a in b}return d[a]},csp:za(),transitions:k,animations:l,android:f}}]}function Of(){var a;this.httpOptions=function(b){return b?(a=b,this):a};this.$get=["$exceptionHandler",
-"$templateCache","$http","$q","$sce",function(b,d,c,f,e){function g(h,k){g.totalPendingRequests++;if(!E(h)||x(d.get(h)))h=e.getTrustedResourceUrl(h);var l=c.defaults&&c.defaults.transformResponse;C(l)?l=l.filter(function(a){return a!==jc}):l===jc&&(l=null);return c.get(h,R({cache:d,transformResponse:l},a)).finally(function(){g.totalPendingRequests--}).then(function(a){d.put(h,a.data);return a.data},function(a){k||(a=yg("tpload",h,a.status,a.statusText),b(a));return f.reject(a)})}g.totalPendingRequests=
-0;return g}]}function Pf(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];q(a,function(a){var c=$.element(a).data("$binding");c&&q(c,function(c){d?(new RegExp("(^|\\s)"+Gd(b)+"(\\s|\\||$)")).test(c)&&g.push(a):-1!==c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-","data-ng-","ng\\:"],h=0;h<g.length;++h){var k=a.querySelectorAll("["+g[h]+"model"+(d?"=":"*=")+'"'+b+'"]');
-if(k.length)return k}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Qf(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,d,c,f){function e(e,k,l){y(e)||(l=k,k=e,e=w);var m=wa.call(arguments,3),n=v(l)&&!l,p=(n?c:d).defer(),r=p.promise,q;q=b.defer(function(){try{p.resolve(e.apply(null,m))}catch(b){p.reject(b),f(b)}finally{delete g[r.$$timeoutId]}n||
-a.$apply()},k);r.$$timeoutId=q;g[q]=p;return r}var g={};e.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].promise.catch(w),g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1};return e}]}function Da(a){La&&(ca.setAttribute("href",a),a=ca.href);ca.setAttribute("href",a);return{href:ca.href,protocol:ca.protocol?ca.protocol.replace(/:$/,""):"",host:ca.host,search:ca.search?ca.search.replace(/^\?/,""):"",hash:ca.hash?ca.hash.replace(/^#/,""):
-"",hostname:ca.hostname,port:ca.port,pathname:"/"===ca.pathname.charAt(0)?ca.pathname:"/"+ca.pathname}}function sd(a){a=E(a)?Da(a):a;return a.protocol===Id.protocol&&a.host===Id.host}function Rf(){this.$get=ma(z)}function Jd(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},c={},f="";return function(){var a,g,h,k,l;try{a=d.cookie||""}catch(m){a=""}if(a!==f)for(f=a,a=f.split("; "),c={},h=0;h<a.length;h++)g=a[h],k=g.indexOf("="),0<k&&(l=b(g.substring(0,k)),x(c[l])&&
-(c[l]=b(g.substring(k+1))));return c}}function Vf(){this.$get=Jd}function Xc(a){function b(d,c){if(F(d)){var f={};q(d,function(a,c){f[c]=b(c,a)});return f}return a.factory(d+"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Kd);b("date",Ld);b("filter",zg);b("json",Ag);b("limitTo",Bg);b("lowercase",Cg);b("number",Md);b("orderBy",Nd);b("uppercase",Dg)}function zg(){return function(a,b,d,c){if(!ta(a)){if(null==a)return a;throw M("filter")("notarray",
-a);}c=c||"$";var f;switch(tc(b)){case "function":break;case "boolean":case "null":case "number":case "string":f=!0;case "object":b=Eg(b,d,c,f);break;default:return a}return Array.prototype.filter.call(a,b)}}function Eg(a,b,d,c){var f=F(a)&&d in a;!0===b?b=qa:y(b)||(b=function(a,b){if(x(a))return!1;if(null===a||null===b)return a===b;if(F(b)||F(a)&&!Vb(a))return!1;a=P(""+a);b=P(""+b);return-1!==a.indexOf(b)});return function(e){return f&&!F(e)?Ha(e,a[d],b,d,!1):Ha(e,a,b,d,c)}}function Ha(a,b,d,c,f,
-e){var g=tc(a),h=tc(b);if("string"===h&&"!"===b.charAt(0))return!Ha(a,b.substring(1),d,c,f);if(C(a))return a.some(function(a){return Ha(a,b,d,c,f)});switch(g){case "object":var k;if(f){for(k in a)if("$"!==k.charAt(0)&&Ha(a[k],b,d,c,!0))return!0;return e?!1:Ha(a,b,d,c,!1)}if("object"===h){for(k in b)if(e=b[k],!y(e)&&!x(e)&&(g=k===c,!Ha(g?a:a[k],e,d,c,g,g)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function tc(a){return null===a?"null":typeof a}function Kd(a){var b=
-a.NUMBER_FORMATS;return function(a,c,f){x(c)&&(c=b.CURRENCY_SYM);x(f)&&(f=b.PATTERNS[1].maxFrac);return null==a?a:Od(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,f).replace(/\u00A4/g,c)}}function Md(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Od(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function Fg(a){var b=0,d,c,f,e,g;-1<(c=a.indexOf(Pd))&&(a=a.replace(Pd,""));0<(f=a.search(/e/i))?(0>c&&(c=f),c+=+a.slice(f+1),a=a.substring(0,f)):0>c&&(c=a.length);for(f=0;a.charAt(f)===uc;f++);
-if(f===(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)===uc;)g--;c-=f;d=[];for(e=0;f<=g;f++,e++)d[e]=+a.charAt(f)}c>Qd&&(d=d.splice(0,Qd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function Gg(a,b,d,c){var f=a.d,e=f.length-a.i;b=x(b)?Math.min(Math.max(d,e),c):+b;d=b+a.i;c=f[d];if(0<d){f.splice(Math.max(a.i,d));for(var g=d;g<f.length;g++)f[g]=0}else for(e=Math.max(0,e),a.i=1,f.length=Math.max(1,d=b+1),f[0]=0,g=1;g<d;g++)f[g]=0;if(5<=c)if(0>d-1){for(c=0;c>d;c--)f.unshift(0),a.i++;f.unshift(1);a.i++}else f[d-
-1]++;for(;e<Math.max(0,b);e++)f.push(0);if(b=f.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))f.unshift(b),a.i++}function Od(a,b,d,c,f){if(!E(a)&&!Y(a)||isNaN(a))return"";var e=!isFinite(a),g=!1,h=Math.abs(a)+"",k="";if(e)k="\u221e";else{g=Fg(h);Gg(g,f,b.minFrac,b.maxFrac);k=g.d;h=g.i;f=g.e;e=[];for(g=k.reduce(function(a,b){return a&&!b},!0);0>h;)k.unshift(0),h++;0<h?e=k.splice(h,k.length):(e=k,k=[0]);h=[];for(k.length>=b.lgSize&&h.unshift(k.splice(-b.lgSize,k.length).join(""));k.length>
-b.gSize;)h.unshift(k.splice(-b.gSize,k.length).join(""));k.length&&h.unshift(k.join(""));k=h.join(d);e.length&&(k+=c+e.join(""));f&&(k+="e+"+f)}return 0>a&&!g?b.negPre+k+b.negSuf:b.posPre+k+b.posSuf}function Kb(a,b,d,c){var f="";if(0>a||c&&0>=a)c?a=-a+1:(a=-a,f="-");for(a=""+a;a.length<b;)a=uc+a;d&&(a=a.substr(a.length-b));return f+a}function aa(a,b,d,c,f){d=d||0;return function(e){e=e["get"+a]();if(0<d||e>-d)e+=d;0===e&&-12===d&&(e=12);return Kb(e,b,c,f)}}function nb(a,b,d){return function(c,f){var e=
-c["get"+a](),g=vb((d?"STANDALONE":"")+(b?"SHORT":"")+a);return f[g][e]}}function Rd(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Sd(a){return function(b){var d=Rd(b.getFullYear());b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+d;b=1+Math.round(b/6048E5);return Kb(b,a)}}function vc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Ld(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var e=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,
-k=b[8]?a.setUTCHours:a.setHours;b[9]&&(e=Z(b[9]+b[10]),g=Z(b[9]+b[11]));h.call(a,Z(b[1]),Z(b[2])-1,Z(b[3]));e=Z(b[4]||0)-e;g=Z(b[5]||0)-g;h=Z(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));k.call(a,e,g,h,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,e){var g="",h=[],k,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;E(c)&&(c=Hg.test(c)?Z(c):b(c));Y(c)&&(c=new Date(c));if(!fa(c)||!isFinite(c.getTime()))return c;
-for(;d;)(l=Ig.exec(d))?(h=ab(h,l,1),d=h.pop()):(h.push(d),d=null);var m=c.getTimezoneOffset();e&&(m=Jc(e,m),c=Wb(c,e,!0));q(h,function(b){k=Jg[b];g+=k?k(c,a.DATETIME_FORMATS,m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Ag(){return function(a,b){x(b)&&(b=2);return cb(a,b)}}function Bg(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):Z(b);if(ga(b))return a;Y(a)&&(a=a.toString());if(!ta(a))return a;d=!d||isNaN(d)?0:Z(d);d=0>d?Math.max(0,a.length+
-d):d;return 0<=b?wc(a,d,d+b):0===d?wc(a,b,a.length):wc(a,Math.max(0,d+b),d)}}function wc(a,b,d){return E(a)?a.slice(b,d):wa.call(a,b,d)}function Nd(a){function b(b){return b.map(function(b){var c=1,d=Ya;if(y(b))d=b;else if(E(b)){if("+"===b.charAt(0)||"-"===b.charAt(0))c="-"===b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(d=a(b),d.constant))var f=d(),d=function(a){return a[f]}}return{get:d,descending:c}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}
-function c(a,b){var c=0,d=a.type,k=b.type;if(d===k){var k=a.value,l=b.value;"string"===d?(k=k.toLowerCase(),l=l.toLowerCase()):"object"===d&&(F(k)&&(k=a.index),F(l)&&(l=b.index));k!==l&&(c=k<l?-1:1)}else c=d<k?-1:1;return c}return function(a,e,g,h){if(null==a)return a;if(!ta(a))throw M("orderBy")("notarray",a);C(e)||(e=[e]);0===e.length&&(e=["+"]);var k=b(e),l=g?-1:1,m=y(h)?h:c;a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:k.map(function(c){var e=
-c.get(a);c=typeof e;if(null===e)c="string",e="null";else if("object"===c)a:{if(y(e.valueOf)&&(e=e.valueOf(),d(e)))break a;Vb(e)&&(e=e.toString(),d(e))}return{value:e,type:c,index:b}})}});a.sort(function(a,b){for(var c=0,d=k.length;c<d;c++){var e=m(a.predicateValues[c],b.predicateValues[c]);if(e)return e*k[c].descending*l}return m(a.tieBreaker,b.tieBreaker)*l});return a=a.map(function(a){return a.value})}}function Ra(a){y(a)&&(a={link:a});a.restrict=a.restrict||"AC";return ma(a)}function Lb(a,b,d,
-c,f){this.$$controls=[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=f(b.name||b.ngForm||"")(d);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=Mb;this.$$element=a;this.$$animate=c;Td(this)}function Td(a){a.$$classCache={};a.$$classCache[Ud]=!(a.$$classCache[ob]=a.$$element.hasClass(ob))}function Vd(a){function b(a,b,c){c&&!a.$$classCache[b]?(a.$$animate.addClass(a.$$element,b),a.$$classCache[b]=!0):!c&&a.$$classCache[b]&&(a.$$animate.removeClass(a.$$element,
-b),a.$$classCache[b]=!1)}function d(a,c,d){c=c?"-"+Nc(c,"-"):"";b(a,ob+c,!0===d);b(a,Ud+c,!1===d)}var c=a.set,f=a.unset;a.clazz.prototype.$setValidity=function(a,g,h){x(g)?(this.$pending||(this.$pending={}),c(this.$pending,a,h)):(this.$pending&&f(this.$pending,a,h),Wd(this.$pending)&&(this.$pending=void 0));Ia(g)?g?(f(this.$error,a,h),c(this.$$success,a,h)):(c(this.$error,a,h),f(this.$$success,a,h)):(f(this.$error,a,h),f(this.$$success,a,h));this.$pending?(b(this,"ng-pending",!0),this.$valid=this.$invalid=
-void 0,d(this,"",null)):(b(this,"ng-pending",!1),this.$valid=Wd(this.$error),this.$invalid=!this.$valid,d(this,"",this.$valid));g=this.$pending&&this.$pending[a]?void 0:this.$error[a]?!1:this.$$success[a]?!0:null;d(this,a,g);this.$$parentForm.$setValidity(a,g,this)}}function Wd(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function xc(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function Sa(a,b,d,c,f,e){var g=P(b[0].type);if(!f.android){var h=!1;b.on("compositionstart",
-function(){h=!0});b.on("compositionend",function(){h=!1;l()})}var k,l=function(a){k&&(e.defer.cancel(k),k=null);if(!h){var f=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||(f=S(f));(c.$viewValue!==f||""===f&&c.$$hasNativeValidators)&&c.$setViewValue(f,a)}};if(f.hasEvent("input"))b.on("input",l);else{var m=function(a,b,c){k||(k=e.defer(function(){k=null;b&&b.value===c||l(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(f.hasEvent("paste"))b.on("paste cut",
-m)}b.on("change",l);if(Xd[g]&&c.$$hasNativeValidators&&g===d.type)b.on("keydown wheel mousedown",function(a){if(!k){var b=this.validity,c=b.badInput,d=b.typeMismatch;k=e.defer(function(){k=null;b.badInput===c&&b.typeMismatch===d||l(a)})}});c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Nb(a,b){return function(d,c){var f,e;if(fa(d))return d;if(E(d)){'"'===d.charAt(0)&&'"'===d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(Kg.test(d))return new Date(d);
-a.lastIndex=0;if(f=a.exec(d))return f.shift(),e=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},q(f,function(a,c){c<b.length&&(e[b[c]]=+a)}),new Date(e.yyyy,e.MM-1,e.dd,e.HH,e.mm,e.ss||0,1E3*e.sss||0)}return NaN}}function pb(a,b,d,c){return function(f,e,g,h,k,l,m){function n(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function p(a){return v(a)&&!fa(a)?d(a)||
-void 0:a}yc(f,e,g,h);Sa(f,e,g,h,k,l);var r=h&&h.$options.getOption("timezone"),q;h.$$parserName=a;h.$parsers.push(function(a){if(h.$isEmpty(a))return null;if(b.test(a))return a=d(a,q),r&&(a=Wb(a,r)),a});h.$formatters.push(function(a){if(a&&!fa(a))throw qb("datefmt",a);if(n(a))return(q=a)&&r&&(q=Wb(q,r,!0)),m("date")(a,c,r);q=null;return""});if(v(g.min)||g.ngMin){var s;h.$validators.min=function(a){return!n(a)||x(s)||d(a)>=s};g.$observe("min",function(a){s=p(a);h.$validate()})}if(v(g.max)||g.ngMax){var u;
-h.$validators.max=function(a){return!n(a)||x(u)||d(a)<=u};g.$observe("max",function(a){u=p(a);h.$validate()})}}}function yc(a,b,d,c){(c.$$hasNativeValidators=F(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput||c.typeMismatch?void 0:a})}function Yd(a){a.$$parserName="number";a.$parsers.push(function(b){if(a.$isEmpty(b))return null;if(Lg.test(b))return parseFloat(b)});a.$formatters.push(function(b){if(!a.$isEmpty(b)){if(!Y(b))throw qb("numfmt",b);b=b.toString()}return b})}
-function Ta(a){v(a)&&!Y(a)&&(a=parseFloat(a));return ga(a)?void 0:a}function zc(a){var b=a.toString(),d=b.indexOf(".");return-1===d?-1<a&&1>a&&(a=/e-(\d+)$/.exec(b))?Number(a[1]):0:b.length-d-1}function Zd(a,b,d){a=Number(a);if((a|0)!==a||(b|0)!==b||(d|0)!==d){var c=Math.max(zc(a),zc(b),zc(d)),c=Math.pow(10,c);a*=c;b*=c;d*=c}return 0===(a-b)%d}function $d(a,b,d,c,f){if(v(c)){a=a(c);if(!a.constant)throw qb("constexpr",d,c);return a(b)}return f}function Ac(a,b){function d(a,b){if(!a||!a.length)return[];
-if(!b||!b.length)return a;var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e===b[f])continue a;c.push(e)}return c}function c(a){var b=a;C(a)?b=a.map(c).join(" "):F(a)&&(b=Object.keys(a).filter(function(b){return a[b]}).join(" "));return b}function f(a){var b=a;if(C(a))b=a.map(f);else if(F(a)){var c=!1,b=Object.keys(a).filter(function(b){b=a[b];!c&&x(b)&&(c=!0);return b});c&&b.push(void 0)}return b}a="ngClass"+a;var e;return["$parse",function(g){return{restrict:"AC",link:function(h,
-k,l){function m(a,b){var c=[];q(a,function(a){if(0<b||H[a])H[a]=(H[a]||0)+b,H[a]===+(0<b)&&c.push(a)});return c.join(" ")}function n(a){if(a===b){var c=t,c=m(c&&c.split(" "),1);l.$addClass(c)}else c=t,c=m(c&&c.split(" "),-1),l.$removeClass(c);w=a}function p(a){a=c(a);a!==t&&r(a)}function r(a){if(w===b){var c=t&&t.split(" "),e=a&&a.split(" "),f=d(c,e),c=d(e,c),f=m(f,-1),c=m(c,1);l.$addClass(c);l.$removeClass(f)}t=a}var s=l[a].trim(),v=":"===s.charAt(0)&&":"===s.charAt(1),s=g(s,v?f:c),u=v?p:r,H=k.data("$classCounts"),
-w=!0,t;H||(H=W(),k.data("$classCounts",H));"ngClass"!==a&&(e||(e=g("$index",function(a){return a&1})),h.$watch(e,n));h.$watch(s,u,v)}}}]}function Ob(a,b,d,c,f,e,g,h,k){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;
-this.$name=k(d.name||"",!1)(a);this.$$parentForm=Mb;this.$options=Pb;this.$$parsedNgModel=f(d.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=void 0;this.$$currentValidationRunId=0;this.$$scope=a;this.$$attr=d;this.$$element=c;this.$$animate=e;this.$$timeout=g;this.$$parse=f;this.$$q=h;this.$$exceptionHandler=b;Td(this);Mg(this)}function Mg(a){a.$$scope.$watch(function(){var b=
-a.$$ngModelGet(a.$$scope);if(b!==a.$modelValue&&(a.$modelValue===a.$modelValue||b===b)){a.$modelValue=a.$$rawModelValue=b;a.$$parserValid=void 0;for(var d=a.$formatters,c=d.length,f=b;c--;)f=d[c](f);a.$viewValue!==f&&(a.$$updateEmptyClasses(f),a.$viewValue=a.$$lastCommittedViewValue=f,a.$render(),a.$$runValidators(a.$modelValue,a.$viewValue,w))}return b})}function Bc(a){this.$$options=a}function ae(a,b){q(b,function(b,c){v(a[c])||(a[c]=b)})}var Ng=/^\/(.+)\/([a-z]*)$/,va=Object.prototype.hasOwnProperty,
-P=function(a){return E(a)?a.toLowerCase():a},vb=function(a){return E(a)?a.toUpperCase():a},La,D,oa,wa=[].slice,ng=[].splice,Og=[].push,na=Object.prototype.toString,Gc=Object.getPrototypeOf,Ga=M("ng"),$=z.angular||(z.angular={}),Zb,rb=0;La=z.document.documentMode;var ga=Number.isNaN||function(a){return a!==a};w.$inject=[];Ya.$inject=[];var C=Array.isArray,le=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,S=function(a){return E(a)?a.trim():a},Gd=function(a){return a.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,
-"\\$1").replace(/\x08/g,"\\x08")},za=function(){if(!v(za.rules)){var a=z.document.querySelector("[ng-csp]")||z.document.querySelector("[data-ng-csp]");if(a){var b=a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");za.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=za;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return za.rules},sb=function(){if(v(sb.name_))return sb.name_;var a,b,d=Ka.length,
-c,f;for(b=0;b<d;++b)if(c=Ka[b],a=z.document.querySelector("["+c.replace(":","\\:")+"jq]")){f=a.getAttribute(c+"jq");break}return sb.name_=f},ne=/:/g,Ka=["ng-","data-ng-","ng:","x-ng-"],qe=function(a){if(!a.currentScript)return!0;var b=a.currentScript.getAttribute("src"),d=a.createElement("a");d.href=b;if(a.location.origin===d.origin)return!0;switch(d.protocol){case "http:":case "https:":case "ftp:":case "blob:":case "file:":case "data:":return!0;default:return!1}}(z.document),te=/[A-Z]/g,Oc=!1,Ja=
-3,ye={full:"1.6.1",major:1,minor:6,dot:1,codeName:"promise-rectification"};X.expando="ng339";var ib=X.cache={},$f=1;X._data=function(a){return this.cache[a[this.expando]]||{}};var Wf=/-([a-z])/g,Pg=/^-ms-/,Ab={mouseleave:"mouseout",mouseenter:"mouseover"},ac=M("jqLite"),Zf=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,$b=/<|&#?\w+;/,Xf=/<([\w:-]+)/,Yf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ha={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],
-col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ha.optgroup=ha.option;ha.tbody=ha.tfoot=ha.colgroup=ha.caption=ha.thead;ha.th=ha.td;var eg=z.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Oa=X.prototype={ready:$c,toString:function(){var a=[];q(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?D(this[a]):D(this[this.length+
-a])},length:0,push:Og,sort:[].sort,splice:[].splice},Gb={};q("multiple selected checked disabled readOnly required open".split(" "),function(a){Gb[P(a)]=a});var ed={};q("input select option textarea button form details".split(" "),function(a){ed[a]=!0});var ld={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};q({data:dc,removeData:hb,hasData:function(a){for(var b in ib[a.ng339])return!0;return!1},cleanData:function(a){for(var b=0,d=a.length;b<
-d;b++)hb(a[b])}},function(a,b){X[b]=a});q({data:dc,inheritedData:Eb,scope:function(a){return D.data(a,"$scope")||Eb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return D.data(a,"$isolateScope")||D.data(a,"$isolateScopeNoTemplate")},controller:bd,injector:function(a){return Eb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Bb,css:function(a,b,d){b=xb(b.replace(Pg,"ms-"));if(v(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;
-if(c!==Ja&&2!==c&&8!==c&&a.getAttribute){var c=P(b),f=Gb[c];if(v(d))null===d||!1===d&&f?a.removeAttribute(b):a.setAttribute(b,f?c:d);else return a=a.getAttribute(b),f&&null!==a&&(a=c),null===a?void 0:a}},prop:function(a,b,d){if(v(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(x(d)){var c=a.nodeType;return 1===c||c===Ja?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(x(b)){if(a.multiple&&"select"===xa(a)){var d=[];q(a.options,function(a){a.selected&&d.push(a.value||
-a.text)});return d}return a.value}a.value=b},html:function(a,b){if(x(b))return a.innerHTML;yb(a,!0);a.innerHTML=b},empty:cd},function(a,b){X.prototype[b]=function(b,c){var f,e,g=this.length;if(a!==cd&&x(2===a.length&&a!==Bb&&a!==bd?b:c)){if(F(b)){for(f=0;f<g;f++)if(a===dc)a(this[f],b);else for(e in b)a(this[f],e,b[e]);return this}f=a.$dv;g=x(f)?Math.min(g,1):g;for(e=0;e<g;e++){var h=a(this[e],b,c);f=f?f+h:h}return f}for(f=0;f<g;f++)a(this[f],b,c);return this}});q({removeData:hb,on:function(a,b,d,
-c){if(v(c))throw ac("onargs");if(Yc(a)){c=zb(a,!0);var f=c.events,e=c.handle;e||(e=c.handle=bg(a,f));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length,h=function(b,c,g){var h=f[b];h||(h=f[b]=[],h.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,e));h.push(d)};g--;)b=c[g],Ab[b]?(h(Ab[b],dg),h(b,void 0,!0)):h(b)}},off:ad,one:function(a,b,d){a=D(a);a.on(b,function f(){a.off(b,d);a.off(b,f)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;yb(a);q(new X(b),function(b){d?
-c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];q(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new X(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;q(new X(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){var d=D(b).eq(0).clone()[0],c=a.parentNode;
-c&&c.replaceChild(d,a);d.appendChild(a)},remove:Fb,detach:function(a){Fb(a,!0)},after:function(a,b){var d=a,c=a.parentNode;if(c){b=new X(b);for(var f=0,e=b.length;f<e;f++){var g=b[f];c.insertBefore(g,d.nextSibling);d=g}}},addClass:Db,removeClass:Cb,toggleClass:function(a,b,d){b&&q(b.split(" "),function(b){var f=d;x(f)&&(f=!Bb(a,b));(f?Db:Cb)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?
-a.getElementsByTagName(b):[]},clone:cc,triggerHandler:function(a,b,d){var c,f,e=b.type||b,g=zb(a);if(g=(g=g&&g.events)&&g[e])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:w,type:e,target:a},b.type&&(c=R(c,b)),b=ra(g),f=d?[c].concat(d):[c],q(b,function(b){c.isImmediatePropagationStopped()||
-b.apply(a,f)})}},function(a,b){X.prototype[b]=function(b,c,f){for(var e,g=0,h=this.length;g<h;g++)x(e)?(e=a(this[g],b,c,f),v(e)&&(e=D(e))):bc(e,a(this[g],b,c,f));return v(e)?e:this}});X.prototype.bind=X.prototype.on;X.prototype.unbind=X.prototype.off;Qa.prototype={put:function(a,b){this[la(a,this.nextUid)]=b},get:function(a){return this[la(a,this.nextUid)]},remove:function(a){var b=this[a=la(a,this.nextUid)];delete this[a];return b}};var Uf=[function(){this.$get=[function(){return Qa}]}],gg=/^([^(]+?)=>/,
-hg=/^[^(]*\(\s*([^)]*)\)/m,Qg=/,/,Rg=/^\s*(_?)(\S+?)\1\s*$/,fg=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,da=M("$injector");eb.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw E(d)&&d||(d=a.name||ig(a)),da("strictdi",d);b=fd(a);q(b[1].split(Qg),function(a){a.replace(Rg,function(a,b,d){c.push(d)})})}a.$inject=c}}else C(a)?(b=a.length-1,tb(a[b],"fn"),c=a.slice(0,b)):tb(a,"fn",!0);return c};var be=M("$animate"),lf=function(){this.$get=w},mf=function(){var a=
-new Qa,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function f(a,b,c){var d=!1;b&&(b=E(b)?b.split(" "):C(b)?b:[],q(b,function(b){b&&(d=!0,a[b]=c)}));return d}function e(){q(b,function(b){var c=a.get(b);if(c){var d=jg(b.attr("class")),e="",f="";q(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});q(b,function(a){e&&Db(a,e);f&&Cb(a,f)});a.remove(b)}});b.length=0}return{enabled:w,on:w,off:w,pin:w,push:function(g,h,k,l){l&&l();k=k||{};k.from&&g.css(k.from);
-k.to&&g.css(k.to);if(k.addClass||k.removeClass)if(h=k.addClass,l=k.removeClass,k=a.get(g)||{},h=f(k,h,!0),l=f(k,l,!1),h||l)a.put(g,k),b.push(g),1===b.length&&c.$$postDigest(e);g=new d;g.complete();return g}}}]},jf=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null);this.register=function(d,c){if(d&&"."!==d.charAt(0))throw be("notcsel",d);var f=d+"-animation";b.$$registeredAnimations[d.substr(1)]=f;a.factory(f,c)};this.classNameFilter=function(a){if(1===arguments.length&&
-(this.$$classNameFilter=a instanceof RegExp?a:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw be("nongcls","ng-animate");return this.$$classNameFilter};this.$get=["$$animateQueue",function(a){function b(a,c,d){if(d){var h;a:{for(h=0;h<d.length;h++){var k=d[h];if(1===k.nodeType){h=k;break a}}h=void 0}!h||h.parentNode||h.previousElementSibling||(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},
-enter:function(f,e,g,h){e=e&&D(e);g=g&&D(g);e=e||g.parent();b(f,e,g);return a.push(f,"enter",Aa(h))},move:function(f,e,g,h){e=e&&D(e);g=g&&D(g);e=e||g.parent();b(f,e,g);return a.push(f,"move",Aa(h))},leave:function(b,c){return a.push(b,"leave",Aa(c),function(){b.remove()})},addClass:function(b,c,g){g=Aa(g);g.addClass=jb(g.addclass,c);return a.push(b,"addClass",g)},removeClass:function(b,c,g){g=Aa(g);g.removeClass=jb(g.removeClass,c);return a.push(b,"removeClass",g)},setClass:function(b,c,g,h){h=Aa(h);
-h.addClass=jb(h.addClass,c);h.removeClass=jb(h.removeClass,g);return a.push(b,"setClass",h)},animate:function(b,c,g,h,k){k=Aa(k);k.from=k.from?R(k.from,c):c;k.to=k.to?R(k.to,g):g;k.tempClasses=jb(k.tempClasses,h||"ng-inline-animate");return a.push(b,"animate",k)}}}]}],of=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},nf=function(){this.$get=
-["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(a,b,d,c,f){function e(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){c()?f(a,0,!1):b(a)};this._state=0}e.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};e.all=function(a,b){function c(f){e=e&&f;++d===a.length&&b(e)}var d=0,e=!0;q(a,function(a){a.done(c)})};e.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===
-this._state?a():this._doneCallbacks.push(a)},progress:w,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&
-this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(q(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return e}]},kf=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,f){function e(){a(function(){g.addClass&&(b.addClass(g.addClass),g.addClass=
-null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null);g.to&&(b.css(g.to),g.to=null);h||k.complete();h=!0});return k}var g=f||{};g.$$prepared||(g=Fa(g));g.cleanupStyles&&(g.from=g.to=null);g.from&&(b.css(g.from),g.from=null);var h,k=new d;return{start:e,end:e}}}]},ea=M("$compile"),hc=new function(){};Qc.$inject=["$provide","$$sanitizeUriProvider"];Ib.prototype.isFirstChange=function(){return this.previousValue===hc};var gd=/^((?:x|data)[:\-_])/i,mg=/[:\-_]+(.)/g,nd=M("$controller"),
-md=/^(\S+)(\s+as\s+([\w$]+))?$/,vf=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof D&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},od="application/json",kc={"Content-Type":od+";charset=utf-8"},pg=/^\[|^\{(?!\{)/,qg={"[":/]$/,"{":/}$/},og=/^\)]\}',?\n/,td=M("$http"),Ea=$.$interpolateMinErr=M("$interpolate");Ea.throwNoconcat=function(a){throw Ea("noconcat",a);};Ea.interr=function(a,b){return Ea("interr",a,b.toString())};var Df=function(){this.$get=["$window",
-function(a){function b(a){var b=function(a){b.data=a;b.called=!0};b.id=a;return b}var d=a.angular.callbacks,c={};return{createCallback:function(a){a="_"+(d.$$counter++).toString(36);var e="angular.callbacks."+a,g=b(a);c[e]=d[a]=g;return e},wasCalled:function(a){return c[a].called},getResponse:function(a){return c[a].data},removeCallback:function(a){delete d[c[a].id];delete c[a]}}}]},Sg=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,sg={http:80,https:443,ftp:21},lb=M("$location"),tg=/^\s*[\\/]{2,}/,Tg={$$absUrl:"",
-$$html5:!1,$$replace:!1,absUrl:Jb("$$absUrl"),url:function(a){if(x(a))return this.$$url;var b=Sg.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||"");this.hash(b[5]||"");return this},protocol:Jb("$$protocol"),host:Jb("$$host"),port:Jb("$$port"),path:xd("$$path",function(a){a=null!==a?a.toString():"";return"/"===a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(E(a)||Y(a))a=a.toString(),this.$$search=
-Lc(a);else if(F(a))a=Fa(a,{}),q(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw lb("isrcharg");break;default:x(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();return this},hash:xd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};q([wd,oc,nc],function(a){a.prototype=Object.create(Tg);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==nc||!this.$$html5)throw lb("nostate");this.$$state=
-x(b)?null:b;return this}});var Ua=M("$parse"),wg={}.constructor.prototype.valueOf,Qb=W();q("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Qb[a]=!0});var Ug={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},qc=function(a){this.options=a};qc.prototype={constructor:qc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();
-else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Qb[b],f=Qb[d];Qb[a]||c||f?(a=f?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=
-a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?
-this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var d=a.charCodeAt(0),c=b.charCodeAt(0);return 55296<=d&&56319>=d&&56320<=c&&57343>=c?a+b:a},isExpOperator:function(a){return"-"===
-a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=v(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw Ua("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=P(this.text.charAt(this.index));if("."===d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"===d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"===a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||
-c&&this.isNumber(c)||"e"!==a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;
-for(var d="",c=a,f=!1;this.index<this.text.length;){var e=this.text.charAt(this.index),c=c+e;if(f)"u"===e?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=Ug[e]||e,f=!1;else if("\\"===e)f=!0;else{if(e===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=e}this.index++}this.throwError("Unterminated quote",b)}};var s=function(a,b){this.lexer=
-a;this.options=b};s.Program="Program";s.ExpressionStatement="ExpressionStatement";s.AssignmentExpression="AssignmentExpression";s.ConditionalExpression="ConditionalExpression";s.LogicalExpression="LogicalExpression";s.BinaryExpression="BinaryExpression";s.UnaryExpression="UnaryExpression";s.CallExpression="CallExpression";s.MemberExpression="MemberExpression";s.Identifier="Identifier";s.Literal="Literal";s.ArrayExpression="ArrayExpression";s.Property="Property";s.ObjectExpression="ObjectExpression";
-s.ThisExpression="ThisExpression";s.LocalsExpression="LocalsExpression";s.NGValueParameter="NGValueParameter";s.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:s.Program,body:a}},expressionStatement:function(){return{type:s.ExpressionStatement,
-expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();if(this.expect("=")){if(!Ad(a))throw Ua("lval");a={type:s.AssignmentExpression,left:a,right:this.assignment(),operator:"="}}return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))?(d=this.expression(),{type:s.ConditionalExpression,
-test:a,alternate:b,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:s.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:s.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.relational()};
-return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:s.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},
-unary:function(){var a;return(a=this.expect("+","-","!"))?{type:s.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=Fa(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:s.Literal,value:this.options.literals[this.consume().text]}:
-this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:s.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:s.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:s.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");
-return a},filter:function(a){a=[a];for(var b={type:s.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.filterChain());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:s.Identifier,name:a.text}},constant:function(){return{type:s.Literal,value:this.consume().value}},
-arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:s.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;b={type:s.Property,kind:"init"};this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?
-(this.consume(":"),b.value=this.expression()):b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),b.value=this.expression()):this.throwError("invalid key",this.peek());a.push(b)}while(this.expect(","))}this.consume("}");return{type:s.ObjectExpression,properties:a}},throwError:function(a,b){throw Ua("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));},consume:function(a){if(0===this.tokens.length)throw Ua("ueoe",
-this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw Ua("ueoe",this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,f){if(this.tokens.length>a){a=this.tokens[a];var e=a.text;if(e===b||e===d||e===c||e===f||!(b||d||c||f))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},selfReferential:{"this":{type:s.ThisExpression},
-$locals:{type:s.LocalsExpression}}};Dd.prototype={compile:function(a){var b=this;a=this.astBuilder.ast(a);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};V(a,b.$filter);var d="",c;this.stage="assign";if(c=Bd(a))this.state.computing="assign",d=this.nextId(),this.recurse(c,d),this.return_(d),d="fn.assign="+this.generateFunction("assign","s,v,l");c=zd(a.body);b.stage="inputs";q(c,function(a,c){var d="fn"+c;b.state[d]={vars:[],body:[],own:{}};b.state.computing=
-d;var h=b.nextId();b.recurse(a,h);b.return_(h);b.state.inputs.push(d);a.watchId=c});this.state.computing="fn";this.stage="main";this.recurse(a);d='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+d+this.watchFns()+"return fn;";d=(new Function("$filter","getStringValue","ifDefined","plus",d))(this.$filter,ug,vg,yd);this.state=this.stage=void 0;d.literal=Cd(a);d.constant=a.constant;return d},USE:"use",STRICT:"strict",watchFns:function(){var a=[],
-b=this.state.inputs,d=this;q(b,function(b){a.push("var "+b+"="+d.generateFunction(b,"s"))});b.length&&a.push("fn.inputs=["+b.join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;q(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+
-";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,c,f,e){var g,h,k=this,l,m,n;c=c||w;if(!e&&v(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,f,!0));else switch(a.type){case s.Program:q(a.body,function(b,c){k.recurse(b.expression,void 0,void 0,function(a){h=a});c!==a.body.length-1?k.current().body.push(h,";"):k.return_(h)});break;case s.Literal:m=this.escape(a.value);this.assign(b,m);c(b||m);
-break;case s.UnaryExpression:this.recurse(a.argument,void 0,void 0,function(a){h=a});m=a.operator+"("+this.ifDefined(h,0)+")";this.assign(b,m);c(m);break;case s.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){g=a});this.recurse(a.right,void 0,void 0,function(a){h=a});m="+"===a.operator?this.plus(g,h):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(h,0):"("+g+")"+a.operator+"("+h+")";this.assign(b,m);c(m);break;case s.LogicalExpression:b=b||this.nextId();k.recurse(a.left,
-b);k.if_("&&"===a.operator?b:k.not(b),k.lazyRecurse(a.right,b));c(b);break;case s.ConditionalExpression:b=b||this.nextId();k.recurse(a.test,b);k.if_(b,k.lazyRecurse(a.alternate,b),k.lazyRecurse(a.consequent,b));c(b);break;case s.Identifier:b=b||this.nextId();d&&(d.context="inputs"===k.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);k.if_("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),function(){k.if_("inputs"===k.stage||"s",function(){f&&
-1!==f&&k.if_(k.isNull(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(b,k.nonComputedMember("s",a.name))})},b&&k.lazyAssign(b,k.nonComputedMember("l",a.name)));c(b);break;case s.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();k.recurse(a.object,g,void 0,function(){k.if_(k.notNull(g),function(){a.computed?(h=k.nextId(),k.recurse(a.property,h),k.getStringValue(h),f&&1!==f&&k.if_(k.not(k.computedMember(g,h)),k.lazyAssign(k.computedMember(g,
-h),"{}")),m=k.computedMember(g,h),k.assign(b,m),d&&(d.computed=!0,d.name=h)):(f&&1!==f&&k.if_(k.isNull(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}")),m=k.nonComputedMember(g,a.property.name),k.assign(b,m),d&&(d.computed=!1,d.name=a.property.name))},function(){k.assign(b,"undefined")});c(b)},!!f);break;case s.CallExpression:b=b||this.nextId();a.filter?(h=k.filter(a.callee.name),l=[],q(a.arguments,function(a){var b=k.nextId();k.recurse(a,b);l.push(b)}),
-m=h+"("+l.join(",")+")",k.assign(b,m),c(b)):(h=k.nextId(),g={},l=[],k.recurse(a.callee,h,g,function(){k.if_(k.notNull(h),function(){q(a.arguments,function(b){k.recurse(b,a.constant?void 0:k.nextId(),void 0,function(a){l.push(a)})});m=g.name?k.member(g.context,g.name,g.computed)+"("+l.join(",")+")":h+"("+l.join(",")+")";k.assign(b,m)},function(){k.assign(b,"undefined")});c(b)}));break;case s.AssignmentExpression:h=this.nextId();g={};this.recurse(a.left,void 0,g,function(){k.if_(k.notNull(g.context),
-function(){k.recurse(a.right,h);m=k.member(g.context,g.name,g.computed)+a.operator+h;k.assign(b,m);c(b||m)})},1);break;case s.ArrayExpression:l=[];q(a.elements,function(b){k.recurse(b,a.constant?void 0:k.nextId(),void 0,function(a){l.push(a)})});m="["+l.join(",")+"]";this.assign(b,m);c(b||m);break;case s.ObjectExpression:l=[];n=!1;q(a.properties,function(a){a.computed&&(n=!0)});n?(b=b||this.nextId(),this.assign(b,"{}"),q(a.properties,function(a){a.computed?(g=k.nextId(),k.recurse(a.key,g)):g=a.key.type===
-s.Identifier?a.key.name:""+a.key.value;h=k.nextId();k.recurse(a.value,h);k.assign(k.member(b,g,a.computed),h)})):(q(a.properties,function(b){k.recurse(b.value,a.constant?void 0:k.nextId(),void 0,function(a){l.push(k.escape(b.key.type===s.Identifier?b.key.name:""+b.key.value)+":"+a)})}),m="{"+l.join(",")+"}",this.assign(b,m));c(b||m);break;case s.ThisExpression:this.assign(b,"s");c(b||"s");break;case s.LocalsExpression:this.assign(b,"l");c(b||"l");break;case s.NGValueParameter:this.assign(b,"v"),c(b||
-"v")}},getHasOwnProperty:function(a,b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",
-a,";")},if_:function(a,b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},isNull:function(a){return a+"==null"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var d=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,
-b):this.nonComputedMember(a,b)},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},lazyRecurse:function(a,b,d,c,f,e){var g=this;return function(){g.recurse(a,b,d,c,f,e)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(E(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(Y(a))return a.toString();
-if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw Ua("esc");},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};Ed.prototype={compile:function(a){var b=this;a=this.astBuilder.ast(a);V(a,b.$filter);var d,c;if(d=Bd(a))c=this.recurse(d);d=zd(a.body);var f;d&&(f=[],q(d,function(a,c){var d=b.recurse(a);a.input=d;f.push(d);
-a.watchId=c}));var e=[];q(a.body,function(a){e.push(b.recurse(a.expression))});d=0===a.body.length?w:1===a.body.length?e[0]:function(a,b){var c;q(e,function(d){c=d(a,b)});return c};c&&(d.assign=function(a,b,d){return c(a,d,b)});f&&(d.inputs=f);d.literal=Cd(a);d.constant=a.constant;return d},recurse:function(a,b,d){var c,f,e=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case s.Literal:return this.value(a.value,b);case s.UnaryExpression:return f=this.recurse(a.argument),this["unary"+
-a.operator](f,b);case s.BinaryExpression:return c=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](c,f,b);case s.LogicalExpression:return c=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](c,f,b);case s.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case s.Identifier:return e.identifier(a.name,b,d);case s.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||(f=a.property.name),
-a.computed&&(f=this.recurse(a.property)),a.computed?this.computedMember(c,f,b,d):this.nonComputedMember(c,f,b,d);case s.CallExpression:return g=[],q(a.arguments,function(a){g.push(e.recurse(a))}),a.filter&&(f=this.$filter(a.callee.name)),a.filter||(f=this.recurse(a.callee,!0)),a.filter?function(a,c,d,e){for(var n=[],p=0;p<g.length;++p)n.push(g[p](a,c,d,e));a=f.apply(void 0,n,e);return b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,e){var n=f(a,c,d,e),p;if(null!=n.value){p=[];for(var r=0;r<
-g.length;++r)p.push(g[r](a,c,d,e));p=n.value.apply(n.context,p)}return b?{value:p}:p};case s.AssignmentExpression:return c=this.recurse(a.left,!0,1),f=this.recurse(a.right),function(a,d,e,g){var n=c(a,d,e,g);a=f(a,d,e,g);n.context[n.name]=a;return b?{value:a}:a};case s.ArrayExpression:return g=[],q(a.elements,function(a){g.push(e.recurse(a))}),function(a,c,d,e){for(var f=[],p=0;p<g.length;++p)f.push(g[p](a,c,d,e));return b?{value:f}:f};case s.ObjectExpression:return g=[],q(a.properties,function(a){a.computed?
-g.push({key:e.recurse(a.key),computed:!0,value:e.recurse(a.value)}):g.push({key:a.key.type===s.Identifier?a.key.name:""+a.key.value,computed:!1,value:e.recurse(a.value)})}),function(a,c,d,e){for(var f={},p=0;p<g.length;++p)g[p].computed?f[g[p].key(a,c,d,e)]=g[p].value(a,c,d,e):f[g[p].key]=g[p].value(a,c,d,e);return b?{value:f}:f};case s.ThisExpression:return function(a){return b?{value:a}:a};case s.LocalsExpression:return function(a,c){return b?{value:c}:c};case s.NGValueParameter:return function(a,
-c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(d,c,f,e){d=a(d,c,f,e);d=v(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,f,e){d=a(d,c,f,e);d=v(d)?-d:-0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,f,e){d=!a(d,c,f,e);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,f,e,g){var h=a(c,f,e,g);c=b(c,f,e,g);h=yd(h,c);return d?{value:h}:h}},"binary-":function(a,b,d){return function(c,f,e,g){var h=a(c,f,e,g);c=b(c,f,e,g);
-h=(v(h)?h:0)-(v(c)?c:0);return d?{value:h}:h}},"binary*":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)*b(c,f,e,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)/b(c,f,e,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)%b(c,f,e,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)===b(c,f,e,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,f,e,g){c=a(c,
-f,e,g)!==b(c,f,e,g);return d?{value:c}:c}},"binary==":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)==b(c,f,e,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)!=b(c,f,e,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)<b(c,f,e,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)>b(c,f,e,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,
-g)<=b(c,f,e,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)>=b(c,f,e,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)&&b(c,f,e,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,f,e,g){c=a(c,f,e,g)||b(c,f,e,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(f,e,g,h){f=a(f,e,g,h)?b(f,e,g,h):d(f,e,g,h);return c?{value:f}:f}},value:function(a,b){return function(){return b?{context:void 0,
-name:void 0,value:a}:a}},identifier:function(a,b,d){return function(c,f,e,g){c=f&&a in f?f:c;d&&1!==d&&c&&null==c[a]&&(c[a]={});f=c?c[a]:void 0;return b?{context:c,name:a,value:f}:f}},computedMember:function(a,b,d,c){return function(f,e,g,h){var k=a(f,e,g,h),l,m;null!=k&&(l=b(f,e,g,h),l+="",c&&1!==c&&k&&!k[l]&&(k[l]={}),m=k[l]);return d?{context:k,name:l,value:m}:m}},nonComputedMember:function(a,b,d,c){return function(f,e,g,h){f=a(f,e,g,h);c&&1!==c&&f&&null==f[b]&&(f[b]={});e=null!=f?f[b]:void 0;
-return d?{context:f,name:b,value:e}:e}},inputs:function(a,b){return function(d,c,f,e){return e?e[b]:a(d,c,f)}}};var rc=function(a,b,d){this.lexer=a;this.$filter=b;this.options=d;this.ast=new s(a,d);this.astCompiler=d.csp?new Ed(this.ast,b):new Dd(this.ast,b)};rc.prototype={constructor:rc,parse:function(a){return this.astCompiler.compile(a)}};var ua=M("$sce"),pa={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},sc=/_([a-z])/g,yg=M("$compile"),ca=z.document.createElement("a"),Id=
-Da(z.location.href);Jd.$inject=["$document"];Xc.$inject=["$provide"];var Qd=22,Pd=".",uc="0";Kd.$inject=["$locale"];Md.$inject=["$locale"];var Jg={yyyy:aa("FullYear",4,0,!1,!0),yy:aa("FullYear",2,0,!0,!0),y:aa("FullYear",1,0,!1,!0),MMMM:nb("Month"),MMM:nb("Month",!0),MM:aa("Month",2,1),M:aa("Month",1,1),LLLL:nb("Month",!1,!0),dd:aa("Date",2),d:aa("Date",1),HH:aa("Hours",2),H:aa("Hours",1),hh:aa("Hours",2,-12),h:aa("Hours",1,-12),mm:aa("Minutes",2),m:aa("Minutes",1),ss:aa("Seconds",2),s:aa("Seconds",
-1),sss:aa("Milliseconds",3),EEEE:nb("Day"),EEE:nb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Kb(Math[0<a?"floor":"ceil"](a/60),2)+Kb(Math.abs(a%60),2))},ww:Sd(2),w:Sd(1),G:vc,GG:vc,GGG:vc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},Ig=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Hg=/^-?\d+$/;Ld.$inject=["$locale"];var Cg=ma(P),Dg=ma(vb);Nd.$inject=
-["$parse"];var Ae=ma({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var f="[object SVGAnimatedString]"===na.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(f)||a.preventDefault()})}}}}),wb={};q(Gb,function(a,b){function d(a,d,f){a.$watch(f[c],function(a){f.$set(b,!!a)})}if("multiple"!==a){var c=Ca("ng-"+b),f=d;"checked"===a&&(f=function(a,b,f){f.ngModel!==f[c]&&d(a,b,f)});wb[c]=function(){return{restrict:"A",
-priority:100,link:f}}}});q(ld,function(a,b){wb[b]=function(){return{priority:100,link:function(a,c,f){if("ngPattern"===b&&"/"===f.ngPattern.charAt(0)&&(c=f.ngPattern.match(Ng))){f.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(f[b],function(a){f.$set(b,a)})}}}});q(["src","srcset","href"],function(a){var b=Ca("ng-"+a);wb[b]=function(){return{priority:99,link:function(d,c,f){var e=a,g=a;"href"===a&&"[object SVGAnimatedString]"===na.call(c.prop("href"))&&(g="xlinkHref",f.$attr[g]="xlink:href",
-e=null);f.$observe(b,function(b){b?(f.$set(g,b),La&&e&&c.prop(e,f[g])):"href"===a&&f.$set(g,null)})}}}});var Mb={$addControl:w,$$renameControl:function(a,b){a.$name=b},$removeControl:w,$setValidity:w,$setDirty:w,$setPristine:w,$setSubmitted:w};Lb.$inject=["$element","$attrs","$scope","$animate","$interpolate"];Lb.prototype={$rollbackViewValue:function(){q(this.$$controls,function(a){a.$rollbackViewValue()})},$commitViewValue:function(){q(this.$$controls,function(a){a.$commitViewValue()})},$addControl:function(a){Pa(a.$name,
-"input");this.$$controls.push(a);a.$name&&(this[a.$name]=a);a.$$parentForm=this},$$renameControl:function(a,b){var d=a.$name;this[d]===a&&delete this[d];this[b]=a;a.$name=b},$removeControl:function(a){a.$name&&this[a.$name]===a&&delete this[a.$name];q(this.$pending,function(b,d){this.$setValidity(d,null,a)},this);q(this.$error,function(b,d){this.$setValidity(d,null,a)},this);q(this.$$success,function(b,d){this.$setValidity(d,null,a)},this);$a(this.$$controls,a);a.$$parentForm=Mb},$setDirty:function(){this.$$animate.removeClass(this.$$element,
-Va);this.$$animate.addClass(this.$$element,Rb);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Va,Rb+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;q(this.$$controls,function(a){a.$setPristine()})},$setUntouched:function(){q(this.$$controls,function(a){a.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted");this.$submitted=!0;this.$$parentForm.$setSubmitted()}};
-Vd({clazz:Lb,set:function(a,b,d){var c=a[b];c?-1===c.indexOf(d)&&c.push(d):a[b]=[d]},unset:function(a,b,d){var c=a[b];c&&($a(c,d),0===c.length&&delete a[b])}});var ce=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||w}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Lb,compile:function(d,e){d.addClass(Va).addClass(ob);var g=e.name?"name":a&&e.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var n=f[0];if(!("action"in
-e)){var p=function(b){a.$apply(function(){n.$commitViewValue();n.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",p);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",p)},0,!1)})}(f[1]||n.$$parentForm).$addControl(n);var r=g?c(n.$name):w;g&&(r(a,n),e.$observe(g,function(b){n.$name!==b&&(r(a,void 0),n.$$parentForm.$$renameControl(n,b),r=c(n.$name),r(a,n))}));d.on("$destroy",function(){n.$$parentForm.$removeControl(n);r(a,void 0);R(n,Mb)})}}}}}]},Be=ce(),
-Ne=ce(!0),Kg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Vg=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Wg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Lg=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,de=/^(\d{4,})-(\d{2})-(\d{2})$/,ee=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,
-Cc=/^(\d{4,})-W(\d\d)$/,fe=/^(\d{4,})-(\d\d)$/,ge=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Xd=W();q(["date","datetime-local","month","time","week"],function(a){Xd[a]=!0});var he={text:function(a,b,d,c,f,e){Sa(a,b,d,c,f,e);xc(c)},date:pb("date",de,Nb(de,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":pb("datetimelocal",ee,Nb(ee,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:pb("time",ge,Nb(ge,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:pb("week",Cc,function(a,b){if(fa(a))return a;
-if(E(a)){Cc.lastIndex=0;var d=Cc.exec(a);if(d){var c=+d[1],f=+d[2],e=d=0,g=0,h=0,k=Rd(c),f=7*(f-1);b&&(d=b.getHours(),e=b.getMinutes(),g=b.getSeconds(),h=b.getMilliseconds());return new Date(c,0,k.getDate()+f,d,e,g,h)}}return NaN},"yyyy-Www"),month:pb("month",fe,Nb(fe,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,f,e){yc(a,b,d,c);Yd(c);Sa(a,b,d,c,f,e);var g,h;if(v(d.min)||d.ngMin)c.$validators.min=function(a){return c.$isEmpty(a)||x(g)||a>=g},d.$observe("min",function(a){g=Ta(a);c.$validate()});
-if(v(d.max)||d.ngMax)c.$validators.max=function(a){return c.$isEmpty(a)||x(h)||a<=h},d.$observe("max",function(a){h=Ta(a);c.$validate()});if(v(d.step)||d.ngStep){var k;c.$validators.step=function(a,b){return c.$isEmpty(b)||x(k)||Zd(b,g||0,k)};d.$observe("step",function(a){k=Ta(a);c.$validate()})}},url:function(a,b,d,c,f,e){Sa(a,b,d,c,f,e);xc(c);c.$$parserName="url";c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)||Vg.test(d)}},email:function(a,b,d,c,f,e){Sa(a,b,d,c,f,e);xc(c);c.$$parserName=
-"email";c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||Wg.test(d)}},radio:function(a,b,d,c){var f=!d.ngTrim||"false"!==S(d.ngTrim);x(d.name)&&b.attr("name",++rb);b.on("click",function(a){var g;b[0].checked&&(g=d.value,f&&(g=S(g)),c.$setViewValue(g,a&&a.type))});c.$render=function(){var a=d.value;f&&(a=S(a));b[0].checked=a===c.$viewValue};d.$observe("value",c.$render)},range:function(a,b,d,c,f,e){function g(a,c){b.attr(a,d[a]);d.$observe(a,c)}function h(a){n=Ta(a);ga(c.$modelValue)||
-(m?(a=b.val(),n>a&&(a=n,b.val(a)),c.$setViewValue(a)):c.$validate())}function k(a){p=Ta(a);ga(c.$modelValue)||(m?(a=b.val(),p<a&&(b.val(p),a=p<n?n:p),c.$setViewValue(a)):c.$validate())}function l(a){r=Ta(a);ga(c.$modelValue)||(m&&c.$viewValue!==b.val()?c.$setViewValue(b.val()):c.$validate())}yc(a,b,d,c);Yd(c);Sa(a,b,d,c,f,e);var m=c.$$hasNativeValidators&&"range"===b[0].type,n=m?0:void 0,p=m?100:void 0,r=m?1:void 0,q=b[0].validity;a=v(d.min);f=v(d.max);e=v(d.step);var s=c.$render;c.$render=m&&v(q.rangeUnderflow)&&
-v(q.rangeOverflow)?function(){s();c.$setViewValue(b.val())}:s;a&&(c.$validators.min=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||x(n)||b>=n},g("min",h));f&&(c.$validators.max=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||x(p)||b<=p},g("max",k));e&&(c.$validators.step=m?function(){return!q.stepMismatch}:function(a,b){return c.$isEmpty(b)||x(r)||Zd(b,n||0,r)},g("step",l))},checkbox:function(a,b,d,c,f,e,g,h){var k=$d(h,a,"ngTrueValue",d.ngTrueValue,!0),l=$d(h,a,"ngFalseValue",
-d.ngFalseValue,!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return qa(a,k)});c.$parsers.push(function(a){return a?k:l})},hidden:w,button:w,submit:w,reset:w,file:w},Rc=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(f,e,g,h){h[0]&&(he[P(g.type)]||he.text)(f,e,g,h[0],b,a,d,c)}}}}],Xg=/^(true|false|\d+)$/,
-ef=function(){return{restrict:"A",priority:100,compile:function(a,b){return Xg.test(b.ngValue)?function(a,b,f){a=a.$eval(f.ngValue);b.prop("value",a);f.$set("value",a)}:function(a,b,f){a.$watch(f.ngValue,function(a){b.prop("value",a);f.$set("value",a)})}}}},Fe=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,f){a.$$addBindingInfo(c,f.ngBind);c=c[0];b.$watch(f.ngBind,function(a){c.textContent=Yb(a)})}}}}],He=["$interpolate","$compile",function(a,
-b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];e.$observe("ngBindTemplate",function(a){d.textContent=x(a)?"":a})}}}}],Ge=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,f){var e=b(f.ngBindHtml),g=b(f.ngBindHtml,function(b){return a.valueOf(b)});d.$$addBindingClass(c);return function(b,c,f){d.$$addBindingInfo(c,f.ngBindHtml);b.$watch(g,function(){var d=e(b);
-c.html(a.getTrustedHtml(d)||"")})}}}}],df=ma({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),Ie=Ac("",!0),Ke=Ac("Odd",0),Je=Ac("Even",1),Le=Ra({compile:function(a,b){b.$set("ngCloak",void 0);a.removeClass("ng-cloak")}}),Me=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Wc={},Yg={blur:!0,focus:!0};q("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),
-function(a){var b=Ca("ng-"+a);Wc[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(f,e){var g=d(e[b],null,!0);return function(b,d){d.on(a,function(d){var e=function(){g(b,{$event:d})};Yg[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Pe=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(d,c,f,e,g){var h,k,l;d.$watch(f.ngIf,function(d){d?k||g(function(d,e){k=e;d[d.length++]=
-b.$$createComment("end ngIf",f.ngIf);h={clone:d};a.enter(d,c.parent(),c)}):(l&&(l.remove(),l=null),k&&(k.$destroy(),k=null),h&&(l=ub(h.clone),a.leave(l).done(function(a){!1!==a&&(l=null)}),h=null))})}}}],Qe=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.noop,compile:function(c,f){var e=f.ngInclude||f.src,g=f.onload||"",h=f.autoscroll;return function(c,f,m,n,p){var q=0,s,w,u,H=function(){w&&(w.remove(),
-w=null);s&&(s.$destroy(),s=null);u&&(d.leave(u).done(function(a){!1!==a&&(w=null)}),w=u,u=null)};c.$watch(e,function(e){var m=function(a){!1===a||!v(h)||h&&!c.$eval(h)||b()},w=++q;e?(a(e,!0).then(function(a){if(!c.$$destroyed&&w===q){var b=c.$new();n.template=a;a=p(b,function(a){H();d.enter(a,null,f).done(m)});s=b;u=a;s.$emit("$includeContentLoaded",e);c.$eval(g)}},function(){c.$$destroyed||w!==q||(H(),c.$emit("$includeContentError",e))}),c.$emit("$includeContentRequested",e)):(H(),n.template=null)})}}}}],
-gf=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(b,d,c,f){na.call(d[0]).match(/SVG/)?(d.empty(),a(Zc(f.template,z.document).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),a(d.contents())(b))}}}],Re=Ra({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),cf=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var f=d.ngList||", ",e="false"!==d.ngTrim,g=
-e?S(f):f;c.$parsers.push(function(a){if(!x(a)){var b=[];a&&q(a.split(g),function(a){a&&b.push(e?S(a):a)});return b}});c.$formatters.push(function(a){if(C(a))return a.join(f)});c.$isEmpty=function(a){return!a||!a.length}}}},ob="ng-valid",Ud="ng-invalid",Va="ng-pristine",Rb="ng-dirty",qb=M("ngModel");Ob.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");Ob.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var a=
-this.$$parse(this.$$attr.ngModel+"()"),b=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(b){var c=this.$$parsedNgModel(b);y(c)&&(c=a(b));return c};this.$$ngModelSet=function(a,c){y(this.$$parsedNgModel(a))?b(a,{$$$p:c}):this.$$parsedNgModelAssign(a,c)}}else if(!this.$$parsedNgModel.assign)throw qb("nonassign",this.$$attr.ngModel,ya(this.$$element));},$render:w,$isEmpty:function(a){return x(a)||""===a||null===a||a!==a},$$updateEmptyClasses:function(a){this.$isEmpty(a)?(this.$$animate.removeClass(this.$$element,
-"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,Rb);this.$$animate.addClass(this.$$element,Va)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,Va);this.$$animate.addClass(this.$$element,Rb);this.$$parentForm.$setDirty()},
-$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!ga(this.$modelValue)){var a=this.$$lastCommittedViewValue,b=this.$$rawModelValue,
-d=this.$valid,c=this.$modelValue,f=this.$options.getOption("allowInvalid"),e=this;this.$$runValidators(b,a,function(a){f||d===a||(e.$modelValue=a?b:void 0,e.$modelValue!==c&&e.$$writeModelToScope())})}},$$runValidators:function(a,b,d){function c(){var c=!0;q(k.$validators,function(d,f){var g=Boolean(d(a,b));c=c&&g;e(f,g)});return c?!0:(q(k.$asyncValidators,function(a,b){e(b,null)}),!1)}function f(){var c=[],d=!0;q(k.$asyncValidators,function(f,g){var h=f(a,b);if(!h||!y(h.then))throw qb("nopromise",
-h);e(g,void 0);c.push(h.then(function(){e(g,!0)},function(){d=!1;e(g,!1)}))});c.length?k.$$q.all(c).then(function(){g(d)},w):g(!0)}function e(a,b){h===k.$$currentValidationRunId&&k.$setValidity(a,b)}function g(a){h===k.$$currentValidationRunId&&d(a)}this.$$currentValidationRunId++;var h=this.$$currentValidationRunId,k=this;(function(){var a=k.$$parserName||"parse";if(x(k.$$parserValid))e(a,null);else return k.$$parserValid||(q(k.$validators,function(a,b){e(b,null)}),q(k.$asyncValidators,function(a,
-b){e(b,null)})),e(a,k.$$parserValid),k.$$parserValid;return!0})()?c()?f():g(!1):g(!1)},$commitViewValue:function(){var a=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);if(this.$$lastCommittedViewValue!==a||""===a&&this.$$hasNativeValidators)this.$$updateEmptyClasses(a),this.$$lastCommittedViewValue=a,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()},$$parseAndValidate:function(){var a=this.$$lastCommittedViewValue,b=this;if(this.$$parserValid=x(a)?void 0:!0)for(var d=0;d<
-this.$parsers.length;d++)if(a=this.$parsers[d](a),x(a)){this.$$parserValid=!1;break}ga(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var c=this.$modelValue,f=this.$options.getOption("allowInvalid");this.$$rawModelValue=a;f&&(this.$modelValue=a,b.$modelValue!==c&&b.$$writeModelToScope());this.$$runValidators(a,this.$$lastCommittedViewValue,function(d){f||(b.$modelValue=d?a:void 0,b.$modelValue!==c&&b.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,
-this.$modelValue);q(this.$viewChangeListeners,function(a){try{a()}catch(b){this.$$exceptionHandler(b)}},this)},$setViewValue:function(a,b){this.$viewValue=a;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(b)},$$debounceViewValueCommit:function(a){var b=this.$options.getOption("debounce");Y(b[a])?b=b[a]:Y(b["default"])&&(b=b["default"]);this.$$timeout.cancel(this.$$pendingDebounce);var d=this;0<b?this.$$pendingDebounce=this.$$timeout(function(){d.$commitViewValue()},b):this.$$scope.$root.$$phase?
-this.$commitViewValue():this.$$scope.$apply(function(){d.$commitViewValue()})}};Vd({clazz:Ob,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]}});var bf=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ob,priority:1,compile:function(b){b.addClass(Va).addClass("ng-untouched").addClass(ob);return{pre:function(a,b,f,e){var g=e[0];b=e[1]||g.$$parentForm;if(e=e[2])g.$options=e.$options;g.$$initGetterSetters();b.$addControl(g);f.$observe("name",
-function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,f,e){function g(){h.$setTouched()}var h=e[0];if(h.$options.getOption("updateOn"))c.on(h.$options.getOption("updateOn"),function(a){h.$$debounceViewValueCommit(a&&a.type)});c.on("blur",function(){h.$touched||(a.$$phase?b.$evalAsync(g):b.$apply(g))})}}}}}],Pb,Zg=/(\s+|^)default(\s+|$)/;Bc.prototype={getOption:function(a){return this.$$options[a]},createChild:function(a){var b=
-!1;a=R({},a);q(a,function(d,c){"$inherit"===d?"*"===c?b=!0:(a[c]=this.$$options[c],"updateOn"===c&&(a.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===c&&(a.updateOnDefault=!1,a[c]=S(d.replace(Zg,function(){a.updateOnDefault=!0;return" "})))},this);b&&(delete a["*"],ae(a,this.$$options));ae(a,Pb.$$options);return new Bc(a)}};Pb=new Bc({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ff=function(){function a(a,d){this.$$attrs=a;this.$$scope=
-d}a.$inject=["$attrs","$scope"];a.prototype={$onInit:function(){var a=this.parentCtrl?this.parentCtrl.$options:Pb,d=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=a.createChild(d)}};return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:a}},Se=Ra({terminal:!0,priority:1E3}),$g=M("ngOptions"),ah=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
-$e=["$compile","$document","$parse",function(a,b,d){function c(a,b,c){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}function f(a){var b;if(!q&&ta(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var n=a.match(ah);if(!n)throw $g("iexp",a,ya(b));var p=n[5]||n[7],q=n[6];a=/ as /.test(n[0])&&n[1];var s=n[9];b=d(n[2]?n[1]:p);var v=a&&d(a)||b,u=s&&d(s),w=s?function(a,b){return u(c,b)}:function(a){return la(a)},
-x=function(a,b){return w(a,B(a,b))},t=d(n[2]||n[1]),z=d(n[3]||""),A=d(n[4]||""),K=d(n[8]),I={},B=q?function(a,b){I[q]=b;I[p]=a;return I}:function(a){I[p]=a;return I};return{trackBy:s,getTrackByValue:x,getWatchables:d(K,function(a){var b=[];a=a||[];for(var d=f(a),e=d.length,g=0;g<e;g++){var h=a===d?g:d[g],l=a[h],h=B(l,h),l=w(l,h);b.push(l);if(n[2]||n[1])l=t(c,h),b.push(l);n[4]&&(h=A(c,h),b.push(h))}return b}),getOptions:function(){for(var a=[],b={},d=K(c)||[],g=f(d),h=g.length,n=0;n<h;n++){var p=d===
-g?n:g[n],q=B(d[p],p),r=v(c,q),p=w(r,q),u=t(c,q),I=z(c,q),q=A(c,q),r=new e(p,r,u,I,q);a.push(r);b[p]=r}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[x(a)]},getViewValueFromOption:function(a){return s?Fa(a.viewValue):a.viewValue}}}}}var f=z.document.createElement("option"),e=z.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=w},post:function(d,h,k,l){function m(a){var b=(a=t.getOptionFromViewValue(a))&&
-a.element;b&&!b.selected&&(b.selected=!0);return a}function n(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);b.value=a.selectValue}function p(){var a=t&&r.readValue();if(t)for(var b=t.items.length-1;0<=b;b--){var c=t.items[b];v(c.group)?Fb(c.element.parentNode):Fb(c.element)}t=y.getOptions();var d={};z&&h.prepend(r.emptyOption);t.items.forEach(function(a){var b;if(v(a.group)){b=d[a.group];b||(b=e.cloneNode(!1),A.appendChild(b),b.label=null===a.group?
-"null":a.group,d[a.group]=b);var c=f.cloneNode(!1)}else b=A,c=f.cloneNode(!1);b.appendChild(c);n(a,c)});h[0].appendChild(A);s.$render();s.$isEmpty(a)||(b=r.readValue(),(y.trackBy||w?qa(a,b):a===b)||(s.$setViewValue(b),s.$render()))}var r=l[0],s=l[1],w=k.multiple;l=0;for(var u=h.children(),x=u.length;l<x;l++)if(""===u[l].value){r.hasEmptyOption=!0;r.emptyOption=u.eq(l);break}var z=!!r.emptyOption;D(f.cloneNode(!1)).val("?");var t,y=c(k.ngOptions,h,d),A=b[0].createDocumentFragment();r.generateUnknownOptionValue=
-function(a){return"?"};w?(r.writeValue=function(a){var b=a&&a.map(m)||[];t.items.forEach(function(a){a.element.selected&&-1===Array.prototype.indexOf.call(b,a)&&(a.element.selected=!1)})},r.readValue=function(){var a=h.val()||[],b=[];q(a,function(a){(a=t.selectValueMap[a])&&!a.disabled&&b.push(t.getViewValueFromOption(a))});return b},y.trackBy&&d.$watchCollection(function(){if(C(s.$viewValue))return s.$viewValue.map(function(a){return y.getTrackByValue(a)})},function(){s.$render()})):(r.writeValue=
-function(a){var b=t.selectValueMap[h.val()],c=t.getOptionFromViewValue(a);b&&b.element.removeAttribute("selected");c?(h[0].value!==c.selectValue&&(r.removeUnknownOption(),r.unselectEmptyOption(),h[0].value=c.selectValue,c.element.selected=!0),c.element.setAttribute("selected","selected")):z?r.selectEmptyOption():r.unknownOption.parent().length?r.updateUnknownOption(a):r.renderUnknownOption(a)},r.readValue=function(){var a=t.selectValueMap[h.val()];return a&&!a.disabled?(r.unselectEmptyOption(),r.removeUnknownOption(),
-t.getViewValueFromOption(a)):null},y.trackBy&&d.$watch(function(){return y.getTrackByValue(s.$viewValue)},function(){s.$render()}));z&&(r.emptyOption.remove(),a(r.emptyOption)(d),8===r.emptyOption[0].nodeType?(r.hasEmptyOption=!1,r.registerOption=function(a,b){""===b.val()&&(r.hasEmptyOption=!0,r.emptyOption=b,r.emptyOption.removeClass("ng-scope"),s.$render(),b.on("$destroy",function(){r.hasEmptyOption=!1;r.emptyOption=void 0}))}):r.emptyOption.removeClass("ng-scope"));h.empty();p();d.$watchCollection(y.getWatchables,
-p)}}}}],Te=["$locale","$interpolate","$log",function(a,b,d){var c=/{}/g,f=/^when(Minus)?(.+)$/;return{link:function(e,g,h){function k(a){g.text(a||"")}var l=h.count,m=h.$attr.when&&g.attr(h.$attr.when),n=h.offset||0,p=e.$eval(m)||{},r={},s=b.startSymbol(),v=b.endSymbol(),u=s+l+"-"+n+v,H=$.noop,y;q(h,function(a,b){var c=f.exec(b);c&&(c=(c[1]?"-":"")+P(c[2]),p[c]=g.attr(h.$attr[b]))});q(p,function(a,d){r[d]=b(a.replace(c,u))});e.$watch(l,function(b){var c=parseFloat(b),f=ga(c);f||c in p||(c=a.pluralCat(c-
-n));c===y||f&&ga(y)||(H(),f=r[c],x(f)?(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),H=w,k()):H=e.$watch(f,k),y=c)})}}}],Ue=["$parse","$animate","$compile",function(a,b,d){var c=M("ngRepeat"),f=function(a,b,c,d,f,m,n){a[c]=d;f&&(a[f]=m);a.$index=b;a.$first=0===b;a.$last=b===n-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(e,g){var h=g.ngRepeat,k=d.$$createComment("end ngRepeat",
-h),l=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!l)throw c("iexp",h);var m=l[1],n=l[2],p=l[3],r=l[4],l=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!l)throw c("iidexp",m);var s=l[3]||l[1],v=l[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw c("badident",p);var u,w,x,t,y={$id:la};r?u=a(r):(x=function(a,b){return la(b)},
-t=function(a){return a});return function(a,d,e,g,l){u&&(w=function(b,c,d){v&&(y[v]=b);y[s]=c;y.$index=d;return u(a,y)});var m=W();a.$watchCollection(n,function(e){var g,n,r=d[0],u,y=W(),z,D,E,B,F,C,I;p&&(a[p]=e);if(ta(e))F=e,n=w||x;else for(I in n=w||t,F=[],e)va.call(e,I)&&"$"!==I.charAt(0)&&F.push(I);z=F.length;I=Array(z);for(g=0;g<z;g++)if(D=e===F?g:F[g],E=e[D],B=n(D,E,g),m[B])C=m[B],delete m[B],y[B]=C,I[g]=C;else{if(y[B])throw q(I,function(a){a&&a.scope&&(m[a.id]=a)}),c("dupes",h,B,E);I[g]={id:B,
-scope:void 0,clone:void 0};y[B]=!0}for(u in m){C=m[u];B=ub(C.clone);b.leave(B);if(B[0].parentNode)for(g=0,n=B.length;g<n;g++)B[g].$$NG_REMOVED=!0;C.scope.$destroy()}for(g=0;g<z;g++)if(D=e===F?g:F[g],E=e[D],C=I[g],C.scope){u=r;do u=u.nextSibling;while(u&&u.$$NG_REMOVED);C.clone[0]!==u&&b.move(ub(C.clone),null,r);r=C.clone[C.clone.length-1];f(C.scope,g,s,E,v,D,z)}else l(function(a,c){C.scope=c;var d=k.cloneNode(!1);a[a.length++]=d;b.enter(a,null,r);r=d;C.clone=a;y[C.id]=C;f(C.scope,g,s,E,v,D,z)});m=
-y})}}}}],Ve=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Oe=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],We=Ra(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&q(d,function(a,c){b.css(c,"")});a&&b.css(a)},
-!0)}),Xe=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(d,c,f,e){var g=[],h=[],k=[],l=[],m=function(a,b){return function(c){!1!==c&&a.splice(b,1)}};d.$watch(f.ngSwitch||f.on,function(c){for(var d,f;k.length;)a.cancel(k.pop());d=0;for(f=l.length;d<f;++d){var s=ub(h[d].clone);l[d].$destroy();(k[d]=a.leave(s)).done(m(k,d))}h.length=0;l.length=0;(g=e.cases["!"+c]||e.cases["?"])&&q(g,function(c){c.transclude(function(d,e){l.push(e);
-var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");h.push({clone:d});a.enter(d,f.parent(),f)})})})}}}],Ye=Ra({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,f){a=d.ngSwitchWhen.split(d.ngSwitchWhenSeparator).sort().filter(function(a,b,c){return c[b-1]!==a});q(a,function(a){c.cases["!"+a]=c.cases["!"+a]||[];c.cases["!"+a].push({transclude:f,element:b})})}}),Ze=Ra({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,
-b,d,c,f){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:f,element:b})}}),bh=M("ngTransclude"),af=["$compile",function(a){return{restrict:"EAC",terminal:!0,compile:function(b){var d=a(b.contents());b.empty();return function(a,b,e,g,h){function k(){d(a,function(a){b.append(a)})}if(!h)throw bh("orphan",ya(b));e.ngTransclude===e.$attr.ngTransclude&&(e.ngTransclude="");e=e.ngTransclude||e.ngTranscludeSlot;h(function(a,c){var d;if(d=a.length)a:{d=0;for(var e=a.length;d<e;d++){var g=a[d];if(g.nodeType!==
-Ja||g.nodeValue.trim()){d=!0;break a}}d=void 0}d?b.append(a):(k(),c.$destroy())},null,e);e&&!h.isSlotFilled(e)&&k()}}}}],Ce=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"===d.type&&a.put(d.id,b[0].text)}}}],ch={$setViewValue:w,$render:w},dh=["$element","$scope",function(a,b){function d(){h||(h=!0,b.$$postDigest(function(){h=!1;e.ngModelCtrl.$render()}))}function c(a){k||(k=!0,b.$$postDigest(function(){b.$$destroyed||(k=!1,e.ngModelCtrl.$setViewValue(e.readValue()),
-a&&e.ngModelCtrl.$render())}))}function f(a){a.prop("selected",!0);a.attr("selected",!0)}var e=this,g=new Qa;e.selectValueMap={};e.ngModelCtrl=ch;e.multiple=!1;e.unknownOption=D(z.document.createElement("option"));e.hasEmptyOption=!1;e.emptyOption=void 0;e.renderUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);a.prepend(e.unknownOption);f(e.unknownOption);a.val(b)};e.updateUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);f(e.unknownOption);
-a.val(b)};e.generateUnknownOptionValue=function(a){return"? "+la(a)+" ?"};e.removeUnknownOption=function(){e.unknownOption.parent()&&e.unknownOption.remove()};e.selectEmptyOption=function(){e.emptyOption&&(a.val(""),f(e.emptyOption))};e.unselectEmptyOption=function(){e.hasEmptyOption&&e.emptyOption.removeAttr("selected")};b.$on("$destroy",function(){e.renderUnknownOption=w});e.readValue=function(){var b=a.val(),b=b in e.selectValueMap?e.selectValueMap[b]:b;return e.hasOption(b)?b:null};e.writeValue=
-function(b){var c=a[0].options[a[0].selectedIndex];c&&c.removeAttribute("selected");e.hasOption(b)?(e.removeUnknownOption(),c=la(b),a.val(c in e.selectValueMap?c:b),f(D(a[0].options[a[0].selectedIndex]))):null==b&&e.emptyOption?(e.removeUnknownOption(),e.selectEmptyOption()):e.unknownOption.parent().length?e.updateUnknownOption(b):e.renderUnknownOption(b)};e.addOption=function(a,b){if(8!==b[0].nodeType){Pa(a,'"option value"');""===a&&(e.hasEmptyOption=!0,e.emptyOption=b);var c=g.get(a)||0;g.put(a,
-c+1);d()}};e.removeOption=function(a){var b=g.get(a);b&&(1===b?(g.remove(a),""===a&&(e.hasEmptyOption=!1,e.emptyOption=void 0)):g.put(a,b-1))};e.hasOption=function(a){return!!g.get(a)};var h=!1,k=!1;e.registerOption=function(a,b,d,f,g){if(d.$attr.ngValue){var h,k=NaN;d.$observe("value",function(a){var d,f=b.prop("selected");v(k)&&(e.removeOption(h),delete e.selectValueMap[k],d=!0);k=la(a);h=a;e.selectValueMap[k]=a;e.addOption(a,b);b.attr("value",k);d&&f&&c()})}else f?d.$observe("value",function(a){e.readValue();
-var d,f=b.prop("selected");v(h)&&(e.removeOption(h),d=!0);h=a;e.addOption(a,b);d&&f&&c()}):g?a.$watch(g,function(a,f){d.$set("value",a);var g=b.prop("selected");f!==a&&e.removeOption(f);e.addOption(a,b);f&&g&&c()}):e.addOption(d.value,b);d.$observe("disabled",function(a){if("true"===a||a&&b.prop("selected"))e.multiple?c(!0):(e.ngModelCtrl.$setViewValue(null),e.ngModelCtrl.$render())});b.on("$destroy",function(){var a=e.readValue(),b=d.value;e.removeOption(b);e.ngModelCtrl.$render();(e.multiple&&a&&
--1!==a.indexOf(b)||a===b)&&c(!0)})}}],De=function(){return{restrict:"E",require:["select","?ngModel"],controller:dh,priority:1,link:{pre:function(a,b,d,c){var f=c[0],e=c[1];if(e){if(f.ngModelCtrl=e,b.on("change",function(){f.removeUnknownOption();a.$apply(function(){e.$setViewValue(f.readValue())})}),d.multiple){f.multiple=!0;f.readValue=function(){var a=[];q(b.find("option"),function(b){b.selected&&!b.disabled&&(b=b.value,a.push(b in f.selectValueMap?f.selectValueMap[b]:b))});return a};f.writeValue=
-function(a){var c=new Qa(a);q(b.find("option"),function(a){a.selected=v(c.get(a.value))||v(c.get(f.selectValueMap[a.value]))})};var g,h=NaN;a.$watch(function(){h!==e.$viewValue||qa(g,e.$viewValue)||(g=ra(e.$viewValue),e.$render());h=e.$viewValue});e.$isEmpty=function(a){return!a||0===a.length}}}else f.registerOption=w},post:function(a,b,d,c){var f=c[1];if(f){var e=c[0];f.$render=function(){e.writeValue(f.$viewValue)}}}}}},Ee=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,
-d){var c,f;v(d.ngValue)||(v(d.value)?c=a(d.value,!0):(f=a(b.text(),!0))||d.$set("value",b.text()));return function(a,b,d){var k=b.parent();(k=k.data("$selectController")||k.parent().data("$selectController"))&&k.registerOption(a,b,d,c,f)}}}}],Tc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},Sc=function(){return{restrict:"A",require:"?ngModel",
-link:function(a,b,d,c){if(c){var f,e=d.ngPattern||d.pattern;d.$observe("pattern",function(a){E(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw M("ngPattern")("noregexp",e,a,ya(b));f=a||void 0;c.$validate()});c.$validators.pattern=function(a,b){return c.$isEmpty(b)||x(f)||f.test(b)}}}}},Vc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var f=-1;d.$observe("maxlength",function(a){a=Z(a);f=ga(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>
-f||c.$isEmpty(b)||b.length<=f}}}}},Uc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var f=0;d.$observe("minlength",function(a){f=Z(a)||0;c.$validate()});c.$validators.minlength=function(a,b){return c.$isEmpty(b)||b.length>=f}}}}};z.angular.bootstrap?z.console&&console.log("WARNING: Tried to load angular more than once."):(ue(),xe($),$.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",
-{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),
-WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,
-c){var f=a|0,e=c;void 0===e&&(e=Math.min(b(a),3));Math.pow(10,e);return 1==f&&0==e?"one":"other"}})}]),D(function(){pe(z.document,Mc)}))})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');
-//# sourceMappingURL=angular.min.js.map
diff --git a/apps/maarch_entreprise/js/angular/app/app.module.ts b/apps/maarch_entreprise/js/angular/app/app.module.ts
index 0c65effb31544c76a8e84ed22fdfe02a1ed7240b..07f7c111fb9bab108f03fbcf200207cfee9fe0a3 100644
--- a/apps/maarch_entreprise/js/angular/app/app.module.ts
+++ b/apps/maarch_entreprise/js/angular/app/app.module.ts
@@ -1,8 +1,7 @@
 import { NgModule }      from '@angular/core';
 import { BrowserModule } from '@angular/platform-browser';
-import { RouterModule, Routes } from '@angular/router';
+import { RouterModule } from '@angular/router';
 import { HttpModule } from '@angular/http';
-import { HashLocationStrategy, Location, LocationStrategy } from '@angular/common';
 
 import { AppComponent }  from './app.component';
 import { SignatureBookComponent, SafeUrlPipe }  from './signature-book.component';
diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..720e5f3c1e605b16a9e4dabd1da6fcdb1ce1b318
--- /dev/null
+++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js
@@ -0,0 +1,43 @@
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return i(r?r:e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=function(){function t(){}return t=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"}),i("design:paramtypes",[])],t)}();r.AppComponent=s},{"@angular/core":7}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/platform-browser"),a=t("@angular/router"),u=t("@angular/http"),c=t("./app.component"),p=t("./signature-book.component"),l=function(){function t(){}return t=n([o.NgModule({imports:[s.BrowserModule,a.RouterModule.forRoot([{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),u.HttpModule],declarations:[c.AppComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]}),i("design:paramtypes",[])],t)}();r.AppModule=l},{"./app.component":1,"./signature-book.component":3,"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router"),c=t("rxjs/Rx");t("rxjs/add/operator/map");var p=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t=n([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],t)}();r.SafeUrlPipe=p;var l=function(){function t(t,e,r){this.http=t,this.route=e,this.router=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showAttachmentEditionPanel=!1}return t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),c.Observable.interval(5e4).subscribe(function(){return lockDocument(t.resId)}),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){t.signatureBook=e,t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.showLeftPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentEditionPanel=!1})})})},t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("98%")},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){0>t?this.showAttachmentEditionPanel=!0:(this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.showAttachmentEditionPanel=!1),this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1):"RESLEFT"==t&&(this.showResLeftPanel=!this.showResLeftPanel)},t.prototype.prepareSignFile=function(t){0==t.res_id?this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&this.signatureBookSignFile(t.res_id,0)},t.prototype.signatureBookSignFile=function(t,e){var r=this,n="";0==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e&&(n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t),this.http.get(n).map(function(t){return t.json()}).subscribe(function(t){0==t.status?(r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+t.new_id,r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN"):alert(t.error)})},t.prototype.unsignFile=function(t){var e,r,n=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(r=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+r,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="A_TRA"):alert(t.error)})},t.prototype.backToBasket=function(){location.hash="",location.reload()},t.prototype.changeLocation=function(t){var e="/"+this.basketId+"/signatureBook/"+t;this.router.navigate([e])},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value&&(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value]))},t=n([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router])],t)}();r.SignatureBookComponent=l},{"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11,"rxjs/Rx":20,"rxjs/add/operator/map":93}],4:[function(t){"use strict";var e=t("@angular/platform-browser-dynamic"),r=t("@angular/core"),n=t("./app/app.module");r.enableProdMode(),e.platformBrowserDynamic().bootstrapModule(n.AppModule)},{"./app/app.module":2,"@angular/core":7,"@angular/platform-browser-dynamic":9}],5:[function(e,r,n){(function(i){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.common=i.ng.common||{}),i.ng.core)}(this,function(t,e){"use strict";function r(t){return t.name||typeof t}function n(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(){if(!L)if(M.Symbol&&Symbol.iterator)L=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(L=r)}return L}function c(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function p(t){return t.replace(/\/index.html$/,"")}function l(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function h(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(r)),o=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?G.One:G.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?G.One:G.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===r?G.One:G.Other;case"ar":return 0===r?G.Zero:1===r?G.One:2===r?G.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?G.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?G.Many:G.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?G.One:G.Other;case"be":return r%10===1&&r%100!==11?G.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?G.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?G.Many:G.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?G.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?G.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?G.Few:0!==r&&r%1e6===0?G.Many:G.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?G.Few:G.Other;case"cs":case"sk":return 1===i&&0===o?G.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?G.Few:0!==o?G.Many:G.Other;case"cy":return 0===r?G.Zero:1===r?G.One:2===r?G.Two:3===r?G.Few:6===r?G.Many:G.Other;case"da":return 1===r||0!==a&&(0===i||1===i)?G.One:G.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?G.One:0===o&&i%100===2||s%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?G.Few:G.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?G.One:G.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?G.One:G.Other;case"ga":return 1===r?G.One:2===r?G.Two:r===Math.floor(r)&&r>=3&&6>=r?G.Few:r===Math.floor(r)&&r>=7&&10>=r?G.Many:G.Other;case"gd":return 1===r||11===r?G.One:2===r||12===r?G.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?G.Few:G.Other;case"gv":return 0===o&&i%10===1?G.One:0===o&&i%10===2?G.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?G.Many:G.Other:G.Few;case"he":return 1===i&&0===o?G.One:2===i&&0===o?G.Two:0!==o||r>=0&&10>=r||r%10!==0?G.Other:G.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?G.One:G.Other;case"ksh":return 0===r?G.Zero:1===r?G.One:G.Other;case"kw":case"naq":case"se":case"smn":return 1===r?G.One:2===r?G.Two:G.Other;case"lag":return 0===r?G.Zero:0!==i&&1!==i||0===r?G.Other:G.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?G.Few:0!==s?G.Many:G.Other:G.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?G.Zero:r%10===1&&r%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?G.One:G.Other;case"mk":return 0===o&&i%10===1||s%10===1?G.One:G.Other;case"mt":return 1===r?G.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?G.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?G.Many:G.Other;case"pl":return 1===i&&0===o?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&1>=i%10||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&14>=i%100?G.Many:G.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?G.One:G.Other;case"ro":return 1===i&&0===o?G.One:0!==o||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?G.Few:G.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&14>=i%100?G.Many:G.Other;case"shi":return 0===i||1===r?G.One:r===Math.floor(r)&&r>=2&&10>=r?G.Few:G.Other;case"si":return 0===r||1===r||0===i&&1===s?G.One:G.Other;case"sl":return 0===o&&i%100===1?G.One:0===o&&i%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?G.Few:G.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?G.One:G.Other;default:return G.Other}}function f(t){return a(t)?Array.isArray(t)||!(t instanceof Map)&&u()in t:!1}function d(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function v(t){return function(e,r){return t(e,r).split(" ")[1]}}function y(t){return function(e,r){return t(e,r).split(" ")[0]}}function m(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function b(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=m(t,r,e);return n?n.substring(3):""}}function g(t,e){return t.hour12=e,t}function _(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function w(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function S(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function E(t){return function(e,r){return m(e,r,t)}}function O(t,e,r){var n=wt[t];if(n)return n(e,r);var i=t,o=Et.get(i);if(!o){o=[];var s=void 0;for(_t.exec(t);t;)s=_t.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);Et.set(i,o)}return o.reduce(function(t,n){var i=St[n];return t+(i?i(e,r):x(n))},"")}function x(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function C(t){return null==t||""===t}function T(t){return t instanceof Date&&!isNaN(t.valueOf())}function A(t){var e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),i.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function R(t,e,r,n,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&D.isNumeric(r)?+r:r,"number"!=typeof r)throw new ht(t,r);var a,u,c;if(n!==bt.Currency&&(a=1,u=0,c=3),i){var p=i.match(kt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=D.parseIntAutoRadix(p[1])),null!=p[3]&&(u=D.parseIntAutoRadix(p[3])),null!=p[5]&&(c=D.parseIntAutoRadix(p[5]))}return gt.format(r,e,n,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var M,k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),I=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),N=new e.OpaqueToken("appBaseHref");M="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var j=M;j.assert=function(){};var D=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),L=null,V=function(){function t(r){var n=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(p(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(c(this._baseHref,p(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:I}]},t}(),F=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},U=function(t){function r(e,r){t.call(this),this._platformLocation=e,this._baseHref="",n(r)&&(this._baseHref=r)}return F(r,t),r.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},r.prototype.getBaseHref=function(){return this._baseHref},r.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return n(e)||(e="#"),e.length>0?e.substring(1):e},r.prototype.prepareExternalUrl=function(t){var e=V.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},r.prototype.pushState=function(t,e,r,n){var i=this.prepareExternalUrl(r+V.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},r.prototype.replaceState=function(t,e,r,n){var i=this.prepareExternalUrl(r+V.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},r.prototype.forward=function(){this._platformLocation.forward()},r.prototype.back=function(){this._platformLocation.back()},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[N]}]}]},r}(I),B=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},H=function(t){function r(e,r){if(t.call(this),this._platformLocation=e,o(r)&&(r=this._platformLocation.getBaseHrefFromDOM()),o(r))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}return B(r,t),r.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},r.prototype.getBaseHref=function(){return this._baseHref},r.prototype.prepareExternalUrl=function(t){return V.joinWithSlash(this._baseHref,t)},r.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},r.prototype.pushState=function(t,e,r,n){var i=this.prepareExternalUrl(r+V.normalizeQueryParams(n));this._platformLocation.pushState(t,e,i)},r.prototype.replaceState=function(t,e,r,n){var i=this.prepareExternalUrl(r+V.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,i)},r.prototype.forward=function(){this._platformLocation.forward()},r.prototype.back=function(){this._platformLocation.back()},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[N]}]}]},r}(I),q=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},z=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),W=function(t){function r(e){t.call(this),this._locale=e}return q(r,t),r.prototype.getPluralCategory=function(t){var e=h(this._locale,t);switch(e){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},r}(z),G={};G.Zero=0,G.One=1,G.Two=2,G.Few=3,G.Many=4,G.Other=5,G[G.Zero]="Zero",G[G.One]="One",G[G.Two]="Two",G[G.Few]="Few",G[G.Many]="Many",G[G.Other]="Other";var K=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(f(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+s(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,e)})},t.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),X=function(){function t(t,e,r){this.$implicit=t,this.index=e,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Y=function(){function t(t,e,r,n){this._viewContainer=t,this._template=e,this._differs=r,this._cdr=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this._cdr,this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+r(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new X(null,null,null),i),s=new Q(t,o);r.push(s)}else if(null==i)e._viewContainer.remove(n);else{var o=e._viewContainer.get(n);e._viewContainer.move(o,i);var s=new Q(t,o);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,i=this._viewContainer.length;i>n;n++){var o=this._viewContainer.get(n);o.context.index=n,o.context.count=i}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers},{type:e.ChangeDetectorRef}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Q=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=function(){function t(t,e){this._viewContainer=t,this._template=e,this._hasView=!1}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){t&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!t&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}]},t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),J=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var r=this._defaultViews[e];r.enforceState(t)}}},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),tt=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input
+}]},t}(),et=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t}(),rt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=l(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),nt=function(){function t(t,e,r,n){this.value=t;var i=!isNaN(Number(t));n.addCase(i?"="+t:t,new Z(r,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:rt,decorators:[{type:e.Host}]}]},t}(),it=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],i=r[1];e=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),st=[K,Y,$,ot,it,J,tt,et,rt,nt],at=e.__core_private__.isPromise,ut=e.__core_private__.isObservable,ct=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pt=function(t){function e(e){t.call(this,e);var r=new Error(e);this._nativeError=r}return ct(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),lt=(function(t){function e(e,r){t.call(this,e+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return ct(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(pt),this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ht=function(t){function e(e,r){t.call(this,"Invalid argument '"+r+"' for pipe '"+s(e)+"'")}return lt(e,t),e}(pt),ft=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),dt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),vt=new dt,yt=new ft,mt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(e){if(at(e))return vt;if(ut(e))return yt;throw new ht(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),bt={};bt.Decimal=0,bt.Percent=1,bt.Currency=2,bt[bt.Decimal]="Decimal",bt[bt.Percent]="Percent",bt[bt.Currency]="Currency";var gt=function(){function t(){}return t.format=function(t,e,r,n){var i=void 0===n?{}:n,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:bt[r].toLowerCase()};return r==bt.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),_t=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,wt={yMMMdjms:E(S([_("year",1),w("month",3),_("day",1),_("hour",1),_("minute",1),_("second",1)])),yMdjm:E(S([_("year",1),_("month",1),_("day",1),_("hour",1),_("minute",1)])),yMMMMEEEEd:E(S([_("year",1),w("month",4),w("weekday",4),_("day",1)])),yMMMMd:E(S([_("year",1),w("month",4),_("day",1)])),yMMMd:E(S([_("year",1),w("month",3),_("day",1)])),yMd:E(S([_("year",1),_("month",1),_("day",1)])),jms:E(S([_("hour",1),_("second",1),_("minute",1)])),jm:E(S([_("hour",1),_("minute",1)]))},St={yyyy:E(_("year",4)),yy:E(_("year",2)),y:E(_("year",1)),MMMM:E(w("month",4)),MMM:E(w("month",3)),MM:E(_("month",2)),M:E(_("month",1)),LLLL:E(w("month",4)),L:E(w("month",1)),dd:E(_("day",2)),d:E(_("day",1)),HH:d(y(E(g(_("hour",2),!1)))),H:y(E(g(_("hour",1),!1))),hh:d(y(E(g(_("hour",2),!0)))),h:y(E(g(_("hour",1),!0))),jj:E(_("hour",2)),j:E(_("hour",1)),mm:d(E(_("minute",2))),m:E(_("minute",1)),ss:d(E(_("second",2))),s:E(_("second",1)),sss:E(_("second",3)),EEEE:E(w("weekday",4)),EEE:E(w("weekday",3)),EE:E(w("weekday",2)),E:E(w("weekday",1)),a:v(E(g(_("hour",1),!0))),Z:b("short"),z:b("long"),ww:E({}),w:E({}),G:E(w("era",1)),GG:E(w("era",2)),GGG:E(w("era",3)),GGGG:E(w("era",4))},Et=new Map,Ot=function(){function t(){}return t.format=function(t,e,r){return O(r,t,e)},t}(),xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(C(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),T(e))n=e;else if(D.isNumeric(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];n=new Date(o,s-1,a)}else n=new Date(e);if(!T(n)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw new ht(t,e);n=A(u)}return Ot.format(n,this._locale,t._ALIASES[r]||r)},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Tt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw new ht(t,r);var n=l(e,Object.keys(r),this._localization);return r[n].replace(Tt,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),Pt=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw new ht(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Mt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,It=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return void 0===r&&(r=null),R(t,this._locale,e,bt.Decimal,r)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Nt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return void 0===r&&(r=null),R(t,this._locale,e,bt.Percent,r)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),jt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,i){return void 0===r&&(r="USD"),void 0===n&&(n=!1),void 0===i&&(i=null),R(t,this._locale,e,bt.Currency,i,r,n)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Dt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw new ht(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Lt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Vt=[mt,Lt,Mt,Rt,Dt,It,Nt,jt,Ct,At,Pt],Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[st,Vt],exports:[st,Vt],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Ut=new e.Version("2.4.9");t.NgLocalization=z,t.CommonModule=Ft,t.NgClass=K,t.NgFor=Y,t.NgIf=$,t.NgPlural=rt,t.NgPluralCase=nt,t.NgStyle=it,t.NgSwitch=J,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.AsyncPipe=mt,t.DatePipe=Ct,t.I18nPluralPipe=At,t.I18nSelectPipe=Pt,t.JsonPipe=Rt,t.LowerCasePipe=Mt,t.CurrencyPipe=jt,t.DecimalPipe=It,t.PercentPipe=Nt,t.SlicePipe=Dt,t.UpperCasePipe=Lt,t.VERSION=Ut,t.Version=e.Version,t.PlatformLocation=k,t.LocationStrategy=I,t.APP_BASE_HREF=N,t.HashLocationStrategy=U,t.PathLocationStrategy=H,t.Location=V})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/core":7}],6:[function(e,r,n){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.compiler=i.ng.compiler||{}),i.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],i=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=i(t);e&&n.push(e)}),n}function n(t){return null!=t}function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===eo}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(t){return!a(t)}function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function l(t){return null===t?null:p(t)[0]}function h(t,e){return t?":"+t+":"+e:e}function f(t){return Yo[t.toLowerCase()]||Qo}function d(t){return t.replace(ss,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[1].toUpperCase()})}function v(t,e){return m(t,":",e)}function y(t,e){return m(t,".",e)}function m(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function b(t,e,r){return Array.isArray(t)?e.visitArray(t,r):o(t)?e.visitStringMap(t,r):null==t||u(t)?e.visitPrimitive(t,r):e.visitOther(t,r)}function g(t){return t.replace(/\W/g,"_")}function _(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Ji)return e.name;if(e.__anonymousType)return e.__anonymousType;var r=s(e);return r.indexOf("(")>=0?(r="anonymous_"+Es++,e.__anonymousType=r):r=g(r),r}function w(t){var e=t.reference;return e instanceof Ji?e.filePath:To.importUri(e)}function S(t){return n(t.value)?g(t.value):_(t.identifier)}function E(t){return n(t.identifier)?t.identifier.reference:t.value}function O(t,r){var n=Zo.parse(r.selector)[0].getMatchingElementTemplate();return Ts.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Cs({encapsulation:e.ViewEncapsulation.None,template:n,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function x(t){return t||[]}function C(t){return t>=Is&&Vs>=t||t==Ma}function T(t){return t>=sa&&aa>=t}function A(t){return t>=ba&&Ta>=t||t>=ua&&ha>=t}function P(t){return t>=ba&&_a>=t||t>=ua&&pa>=t||T(t)}function R(){return function(t){return t}}function M(t,r){if(e.isDevMode()&&!i(r)){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function k(t,r){if(n(r)&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&!i(r)){var o=r[0],s=r[1];Ia.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function I(t,e){return new du(t,lu.Character,e,String.fromCharCode(e))}function N(t,e){return new du(t,lu.Identifier,0,e)}function j(t,e){return new du(t,lu.Keyword,0,e)}function D(t,e){return new du(t,lu.Operator,0,e)}function L(t,e){return new du(t,lu.String,0,e)}function V(t,e){return new du(t,lu.Number,e,"")}function F(t,e){return new du(t,lu.Error,0,e)}function U(t){return t>=ba&&Ta>=t||t>=ua&&ha>=t||t==ma||t==Hs}function B(t){if(0==t.length)return!1;var e=new yu(t);if(!U(e.peek))return!1;for(e.advance();e.peek!==ks;){if(!H(e.peek))return!1;e.advance()}return!0}function H(t){return A(t)||T(t)||t==ma||t==Hs}function q(t){return t==ga||t==ca}function z(t){return t==$s||t==Ys}function W(t){return t===Ws||t===Us||t===ka}function G(t){switch(t){case wa:return Ns;case _a:return Ds;case Sa:return Ls;case Ea:return Is;case xa:return js;default:return t}}function K(t){var e=c(t.start)+"([\\s\\S]*?)"+c(t.end);return new RegExp(e,"g")}function X(t,e,r){void 0===r&&(r=null);var n=[],i=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=i(t);e&&n.push(e)}),n}function Y(t,e,r,n,i){return void 0===n&&(n=!1),void 0===i&&(i=ja),new Hu(new xu(t,e),r,n,i).tokenize()}function Q(t){var e=t===ks?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function $(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function Z(t){return!C(t)||t===ks}function J(t){return C(t)||t===ia||t===Js||t===Ws||t===Us||t===na}function tt(t){return(ba>t||t>Ta)&&(ua>t||t>ha)&&(sa>t||t>aa)}function et(t){return t==ea||t==ks||!P(t)}function rt(t){return t==ea||t==ks||!A(t)}function nt(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Aa&&!n}function it(t){return t===na||A(t)}function ot(t,e){return st(t)==st(e)}function st(t){return t>=ba&&Ta>=t?t-ba+ua:t}function at(t){for(var e,r=[],n=0;n<t.length;n++){var i=t[n];e&&e.type==Du.TEXT&&i.type==Du.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,r.push(e))}return r}function ut(t,e){return t.length>0&&t[t.length-1]===e}function ct(t){var e=new ic(nc,t);return function(t,r,n){return e.toI18nMessage(t,r,n)}}function pt(t){return t.split(oc)[1]}function lt(t,e,r,n){var i=new fc(r,n);return i.extract(t,e)}function ht(t,e,r,n,i){var o=new fc(n,i);return o.merge(t,e,r)}function ft(t){return t instanceof Nu&&t.value&&t.value.startsWith("i18n")}function dt(t){return t instanceof Nu&&t.value&&"/i18n"===t.value}function vt(t){return t.attrs.find(function(t){return t.name===uc})||null}function yt(t){if(!t)return["",""];var e=t.indexOf("|");return-1==e?["",t]:[t.slice(0,e),t.slice(e+1)]}function mt(){return vc}function bt(t){return wt(_t(t.nodes).join("")+("["+t.meaning+"]"))}function gt(t){var e=new wc,r=t.nodes.map(function(t){return t.visit(e,null)});return Ot(r.join(""),t.meaning)}function _t(t){return t.map(function(t){return t.visit(_c,null)})}function wt(t){var e=Tt(t),r=jt(e,Sc.Big),n=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],p=o[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var l=0;l<r.length;l+=16){for(var h=[s,a,u,c,p],f=h[0],d=h[1],v=h[2],y=h[3],m=h[4],b=0;80>b;b++){i[b]=16>b?r[l+b]:It(i[b-3]^i[b-8]^i[b-14]^i[b-16],1);var g=St(b,a,u,c),_=g[0],w=g[1],S=[It(s,5),_,p,w,i[b]].reduce(Pt);E=[c,u,It(a,30),s,S],p=E[0],c=E[1],u=E[2],a=E[3],s=E[4]}O=[Pt(s,f),Pt(a,d),Pt(u,v),Pt(c,y),Pt(p,m)],s=O[0],a=O[1],u=O[2],c=O[3],p=O[4]}return Ut(Vt([s,a,u,c,p]));var E,O}function St(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Et(t){var e=Tt(t),r=[xt(e,0),xt(e,102072)],n=r[0],i=r[1];return 0!=n||0!=i&&1!=i||(n=319790063^n,i=-1801410264^i),[n,i]}function Ot(t,e){var r=Et(t),n=r[0],i=r[1];if(e){var o=Et(e),s=o[0],a=o[1];u=Mt(Nt([n,i],1),[s,a]),n=u[0],i=u[1]}return Bt(Vt([2147483647&n,i]));var u}function xt(t,e){var r,n=[2654435769,2654435769],i=n[0],o=n[1],s=t.length;for(r=0;s>=r+12;r+=12)i=Pt(i,Lt(t,r,Sc.Little)),o=Pt(o,Lt(t,r+4,Sc.Little)),e=Pt(e,Lt(t,r+8,Sc.Little)),a=Ct([i,o,e]),i=a[0],o=a[1],e=a[2];return i=Pt(i,Lt(t,r,Sc.Little)),o=Pt(o,Lt(t,r+4,Sc.Little)),e=Pt(e,s),e=Pt(e,Lt(t,r+8,Sc.Little)<<8),Ct([i,o,e])[2];var a}function Ct(t){var e=t[0],r=t[1],n=t[2];return e=kt(e,r),e=kt(e,n),e^=n>>>13,r=kt(r,n),r=kt(r,e),r^=e<<8,n=kt(n,e),n=kt(n,r),n^=r>>>13,e=kt(e,r),e=kt(e,n),e^=n>>>12,r=kt(r,n),r=kt(r,e),r^=e<<16,n=kt(n,e),n=kt(n,r),n^=r>>>5,e=kt(e,r),e=kt(e,n),e^=n>>>3,r=kt(r,n),r=kt(r,e),r^=e<<10,n=kt(n,e),n=kt(n,r),n^=r>>>15,[e,r,n]}function Tt(t){for(var e="",r=0;r<t.length;r++){var n=At(t,r);127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(192|n>>>6,128|63&n):65535>=n?e+=String.fromCharCode(224|n>>>12,128|n>>>6&63,128|63&n):2097151>=n&&(e+=String.fromCharCode(240|n>>>18,128|n>>>12&63,128|n>>>6&63,128|63&n))}return e}function At(t,e){if(0>e||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var r=t.charCodeAt(e);if(r>=55296&&57343>=r&&t.length>e+1){var n=Dt(t,e+1);if(n>=56320&&57343>=n)return 1024*(r-55296)+n-56320+65536}return r}function Pt(t,e){return Rt(t,e)[1]}function Rt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Mt(t,e){var r=t[0],n=t[1],i=e[0],o=e[1],s=Rt(n,o),a=s[0],u=s[1],c=Pt(Pt(r,i),a);return[c,u]}function kt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function It(t,e){return t<<e|t>>>32-e}function Nt(t,e){var r=t[0],n=t[1],i=r<<e|n>>>32-e,o=n<<e|r>>>32-e;return[i,o]}function jt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Lt(t,4*n,e);return r}function Dt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Lt(t,e,r){var n=0;if(r===Sc.Big)for(var i=0;4>i;i++)n+=Dt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)n+=Dt(t,e+i)<<8*i;return n}function Vt(t){return t.reduce(function(t,e){return t+Ft(e)},"")}function Ft(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function Ut(t){for(var e="",r=0;r<t.length;r++){var n=Dt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function Bt(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=Ht(e,qt(Dt(t,n),r)),r=qt(256,r);return e.split("").reverse().join("")}function Ht(t,e){for(var r="",n=Math.max(t.length,e.length),i=0,o=0;n>i||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,r+=s-10):(o=0,r+=s)}return r}function qt(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=Ht(r,n)),n=Ht(n,n);return r}function zt(t){return t.map(function(t){return t.visit(Cc)}).join("")}function Wt(t){return kc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Gt(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Kt(t){return gt(t)}function Xt(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t+"/index":"@angular/"+t+"/"+r+"/"+e}function Yt(t){return To.resolveIdentifier(t.name,t.moduleUrl,t.runtime)}function Qt(t){var e=To.resolveIdentifier(t.name,t.moduleUrl,t.runtime);return{reference:e}}function $t(t){return{identifier:t}}function Zt(t){return $t(Qt(t))}function Jt(t,e){var r=To.resolveEnum(Yt(t),e);return{reference:r}}function te(t){var e=new Op;return new Sp(X(e,t),e.isExpanded,e.errors)}function ee(t,e){var r=t.cases.map(function(t){-1!=wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Ep(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wp.join(", ")));var r=te(t.expression);return e.push.apply(e,r.errors),new Iu("template",[new ku("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new ku("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Iu("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function re(t,e){var r=t.cases.map(function(t){var r=te(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Iu("template",[new ku("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Iu("template",[new ku("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new ku("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Iu("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ne(t,e){var r=e.useExisting,n=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:i,multi:t.multi}}function ie(t,e){var r=e.eager,n=e.providers;return new Yi(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function oe(t,e,r){var n=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};se([i],t.isComponent?Qi.Component:Qi.Directive,!0,e,r,n)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){se(t.providers,Qi.PublicService,!1,e,r,n),se(t.viewProviders,Qi.PrivateService,!1,e,r,n)}),n}function se(t,e,r,i,o,s){t.forEach(function(t){var a=s.get(E(t.token));if(n(a)&&!!a.multiProvider!=!!t.multi&&o.push(new Cp("Mixing multi and non multi provider is not possible for token "+S(a.token),i)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var u=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];a=new Yi(t.token,t.multi,r||u.length>0,[t],e,u,i),s.set(E(t.token),a)}})}function ae(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ce(e,t)}),e}function ue(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return ce(e,t)})}),e}function ce(t,e){e.selectors.forEach(function(r){var n=t.get(E(r));n||(n=[],t.set(E(r),n)),n.push(e)})}function pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Np);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,r){var n=[],i=r.replace(Ip,"").replace(kp,function(){for(var r=[],i=0;i<arguments.length;i++)r[i-0]=arguments[i];var o=r[1]||r[2];return pe(o)?(n.push(t.resolve(e,o)),""):r[0]});return new Mp(i,n)}function he(t){return"@"==t[0]}function fe(t,r,n,i){var o=[];return Zo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,n,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function de(t){var e=null,r=null,n=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Wp?e=t.value:s==Yp?r=t.value:s==Xp?n=t.value:t.name==Jp?i=!0:t.name==tl&&t.value.length>0&&(o=t.value)}),e=ve(e);var s=t.name.toLowerCase(),a=el.OTHER;return p(s)[1]==Gp?a=el.NG_CONTENT:s==$p?a=el.STYLE:s==Zp?a=el.SCRIPT:s==Kp&&n==Qp&&(a=el.STYLESHEET),new rl(a,e,r,i,o)}function ve(t){return null===t||0===t.length?"*":t}function ye(t){return t.trim().split(/\s+/g)}function me(t,e){var r=new Zo,n=p(t)[1];r.setElement(n);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];if(r.addAttribute(s,a),o.toLowerCase()==_l){var u=ye(a);u.forEach(function(t){return r.addClassName(t)})}}return r}function be(t){return t instanceof Pu&&0==t.value.trim().length}function ge(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function _e(t,e,r){var n=xe(t.styles,{},e,r,!1),i=new ql(n),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new Fl(t,i)})}function we(t,e,r,n){var i=new Yl,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,Ee(t,n))});var a=Oe(t.steps),u=Ce(a,e,r,n),c=Me(u,0,i,e,n);0==n.length&&ke(c,i,n);var p=c instanceof Wl?c:new Kl([c]);return new Bl(o,p)}function Se(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new rh('the transition alias value "'+t+'" is not supported')),"* => *"}}function Ee(t,e){var r=[];":"==t[0]&&(t=Se(t,e));var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!n(i)||i.length<4)return e.push(new rh("the provided "+t+" is not of a supported format")),r;var o=i[1],s=i[2],a=i[3];r.push(new Ul(o,a));var u=o==jo&&a==jo;return"<"!=s[0]||u||r.push(new Ul(a,o)),r}function Oe(t){return Array.isArray(t)?new ws(t):t}function xe(t,e,r,n,i){var o=t.offset;(o>1||0>o)&&n.push(new rh("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,Pe(t,e,n)):n.push(new rh("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=r.normalizeAnimationStyleProperty(t),i=r.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&n.push(new rh(s)),a[e]=i.value}),s.push(a)}}),s}function Ce(t,e,r,n){var i=Ae(t,e,r,n);return t instanceof Ss?new Ss(i):new ws(i)}function Te(t,e){if("object"==typeof e&&null!==e&&t.length>0){var r=t.length-1,n=t[r];if("object"==typeof n&&null!==n)return void(t[r]=no.merge(n,e))}t.push(e)}function Ae(t,e,r,i){var o;if(!(t instanceof _s))return[t];o=t.steps;var s,a=[];return o.forEach(function(t){if(t instanceof bs)n(s)||(s=[]),xe(t,e,r,i,!0).forEach(function(t){Te(s,t)});else{if(n(s)&&(a.push(new bs(0,s)),s=null),t instanceof gs){var o=t.styles;o instanceof bs?o.styles=xe(o,e,r,i,!0):o instanceof ms&&o.steps.forEach(function(t){t.styles=xe(t,e,r,i,!0)})}else if(t instanceof _s){var u=Ae(t,e,r,i);t=t instanceof Ss?new Ss(u):new ws(u)}a.push(t)}}),n(s)&&a.push(new bs(0,s)),a}function Pe(t,e,r){var i=[];if(":"!=t[0])r.push(new rh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),s=e[o];n(s)?s.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):r.push(new rh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Re(t,e,r,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=n(t.offset)?1:0}),a>0&&s>a&&(o.push(new rh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,p=[],l=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,r={};t.styles.forEach(function(t){Object.keys(t).forEach(function(e){"offset"!=e&&(r[e]=t[e])})}),n(e)?h=h||f>e:e=l==u?th:c*l,p.push([e,r]),f=e,l++}),h&&p.sort(function(t,e){return t[0]<=e[0]?-1:1});var d=p[0];d[0]!=Jl&&p.splice(0,0,d=[Jl,{}]);var v=d[1];u=p.length-1;var y=p[u];y[0]!=th&&(p.push(y=[th,{}]),u++);for(var m=y[1],b=1;u>=b;b++){var g=p[b],_=g[1];Object.keys(_).forEach(function(t){n(v[t])||(v[t]=Vo)})}for(var w=function(t){var e=p[t],r=e[1];Object.keys(r).forEach(function(t){n(m[t])||(m[t]=r[t])})},b=u-1;b>=0;b--)w(b);return p.map(function(t){return new zl(t[0],new ql([t[1]]))})}function Me(t,e,r,i,o){var s,a=0,u=e;if(t instanceof _s){var c,p=0,l=[],h=t instanceof Ss;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof bs)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){r.insertAtTime(t,s,e[t])})}),void(c=t.styles);var f=Me(t,s,r,i,o);if(n(c)){if(t instanceof _s){var d=new ql(c);l.push(new Hl(d,[],0,0,""))}else{var v=f;(m=v.startingStyles.styles).push.apply(m,c)}c=null}var y=f.playTime;e+=y,a+=y,p=Math.max(y,p),l.push(f);var m}),n(c)){var f=new ql(c);l.push(new Hl(f,[],0,0,""))}h?(s=new Gl(l),a=p,e=u+a):s=new Kl(l)}else if(t instanceof gs){var d=Ie(t.timings,o),v=t.styles,y=void 0;if(v instanceof ms)y=Re(v,e,r,i,o);else{var m=v,b=th,g=new ql(m.styles),_=new zl(b,g);y=[_];
+
+}s=new Hl(new ql([]),y,d.duration,d.delay,d.easing),a=d.duration+d.delay,e+=a,y.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(n){r.insertAtTime(n,e,t[n])})})})}else s=new Hl(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function ke(t,e,r){if(t instanceof Hl&&t.keyframes.length>0){var n=t.keyframes;if(1==n.length){var i=n[0],o=Ne(i,t.startTime,t.playTime,e,r);t.keyframes=[o,i]}}else t instanceof Wl&&t.steps.forEach(function(t){return ke(t,e,r)})}function Ie(t,e){var r,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(o);if(null===u)return e.push(new rh('The provided timing value "'+t+'" is invalid.')),new oh(0,0,null);var c=parseFloat(u[1]),p=u[2];"s"==p&&(c*=eh),r=Math.floor(c);var l=u[3],h=u[4];if(n(l)){var f=parseFloat(l);n(h)&&"s"==h&&(f*=eh),s=Math.floor(f)}var d=u[5];i(d)||(a=d)}else r=t;return new oh(r,s,a)}function Ne(t,e,r,i,o){var s={},a=e+r;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(r){var u=t[r];if("offset"!=r){var c,p,l,h=i.indexOfAtOrBeforeTime(r,e);n(h)?(c=i.getByIndex(r,h),l=c.value,p=i.getByIndex(r,h+1)):l=Vo,n(p)&&!p.matches(a,u)&&o.push(new rh('The animated CSS property "'+r+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+p.time+'ms"')),s[r]=l}})}),new zl(Jl,new ql([s]))}function je(){return new ph}function De(){return new ph(".")}function Le(t){var e=Fe(t);return e&&e[hh.Scheme]||""}function Ve(t,e,r,i,o,s,a){var u=[];return n(t)&&u.push(t+":"),n(r)&&(u.push("//"),n(e)&&u.push(e+"@"),u.push(r),n(i)&&u.push(":"+i)),n(o)&&u.push(o),n(s)&&u.push("?"+s),n(a)&&u.push("#"+a),u.join("")}function Fe(t){return t.match(lh)}function Ue(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),i=[],o=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-->0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+r}function Be(t){var e=t[hh.Path];return e=i(e)?"":Ue(e),t[hh.Path]=e,Ve(t[hh.Scheme],t[hh.UserInfo],t[hh.Domain],t[hh.Port],e,t[hh.QueryData],t[hh.Fragment])}function He(t,e){var r=Fe(encodeURI(e)),o=Fe(t);if(n(r[hh.Scheme]))return Be(r);r[hh.Scheme]=o[hh.Scheme];for(var s=hh.Scheme;s<=hh.Port;s++)i(r[s])&&(r[s]=o[s]);if("/"==r[hh.Path][0])return Be(r);var a=o[hh.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+r[hh.Path],r[hh.Path]=a,Be(r)}function qe(t){return t instanceof e.Directive}function ze(t,e,r){var n=new xf(t,e);return r.visitExpression(n,null)}function We(t){var e=new Cf;return e.visitAllStatements(t,null),e.varNames}function Ge(t,e){return void 0===e&&(e=null),new Lh(t,e)}function Ke(t,e){return void 0===e&&(e=null),new Gh(t,null,e)}function Xe(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),n(t)?Ye(Ke(t),e,r):null}function Ye(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),n(t)?new xh(t,e,r):null}function Qe(t,e){return void 0===e&&(e=null),new ef(t,e)}function $e(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new nf(t.map(function(t){return new rf(t[0],t[1],r)}),e)}function Ze(t){return new Xh(t)}function Je(t,e,r){return void 0===r&&(r=null),new $h(t,e,r)}function tr(t,e){return void 0===e&&(e=null),new Wh(t,e)}function er(t){var e=""+t.fields.length,r=nr(e);return t.fields.push(new yf(r.name,null,[cf.Private])),t.ctorStmts.push(of.prop(r.name).set(Ke(Qt(gp.UNINITIALIZED))).toStmt()),new Tf(r,e)}function rr(t,e,r,n){var i=Ke(Qt(gp.checkBinding)).callFn([r,e,t.currValExpr]);return t.forceUpdate&&(i=t.forceUpdate.or(i)),t.stmts.concat([new _f(i,n.concat([of.prop(e.name).set(t.currValExpr).toStmt()]))])}function nr(t){return of.prop("_expr_"+t)}function ir(t){return n(t.value)?tr(t.value):Ke(t.identifier)}function or(t){if(0===t.length)return Ke(Qt(gp.EMPTY_INLINE_ARRAY));var e=Math.log(t.length)/Math.log(2),r=Math.ceil(e),n=r<gp.inlineArrays.length?gp.inlineArrays[r]:gp.InlineArrayDynamic,i=Qt(n);return Ke(i).instantiate([tr(t.length)].concat(t))}function sr(t,e,r,n){n.fields.push(new yf(r.name,null));var i=e<gp.pureProxies.length?gp.pureProxies[e]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+e);n.ctorStmts.push(of.prop(r.name).set(Ke(Qt(i)).callFn([t])).toStmt())}function ar(t,e){var r=Object.keys(t.runtime).find(function(r){return t.runtime[r]===e});if(!r)throw new Error("Unknown enum value "+e+" in "+t.name);return Ke(Jt(t,r))}function ur(t,e,r,n,i){var o=_r(i),s=[];e||(e=new Nf);var a=new If(t,e,r,Af,i,!1),u=n.visit(a,kf.Expression);if(!u)return null;if(a.temporaryCount)for(var c=0;c<a.temporaryCount;c++)s.push(hr(i,c));if(a.needsValueUnwrapper){var p=Af.callMethod("reset",[]).toStmt();s.push(p)}return s.push(o.set(u).toDeclStmt(null,[cf.Final])),a.needsValueUnwrapper?new Rf(s,o,Af.prop("hasWrappedValue")):new Rf(s,o,null)}function cr(t,e,r,n,i){e||(e=new Nf);var o=new If(t,e,r,null,i,!0),s=[];mr(n.visit(o,kf.Statement),s),fr(o.temporaryCount,i,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],p=Sr(c);p&&(u=wr(i),s[a]=u.set(p.cast(Ah).notIdentical(tr(!1))).toDeclStmt(null,[cf.Final]))}return new Mf(s,u)}function pr(t){var e=[],r=We(t);return r.has(Af.name)&&e.push(Af.set(Ke(Qt(gp.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[cf.Final])),e}function lr(t,e){return"tmp_"+t+"_"+e}function hr(t,e){return new lf(lr(t,e),af)}function fr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift(hr(e,n))}function dr(t,e){if(t!==kf.Statement)throw new Error("Expected a statement, but saw "+e)}function vr(t,e){if(t!==kf.Expression)throw new Error("Expected an expression, but saw "+e)}function yr(t,e){return t===kf.Statement?e.toStmt():e}function mr(t,e){Array.isArray(t)?t.forEach(function(t){return mr(t,e)}):e.push(t)}function br(t,e){if(0===e.length)return Ke(Qt(gp.EMPTY_ARRAY));for(var r=of.prop("_arr_"+t.fields.length),n=[],i=[],o=0;o<e.length;o++){var s="p"+o;n.push(new Qh(s)),i.push(Ge(s))}return sr(Je(n,[new df(Qe(i))],new Ch(Ah)),e.length,r,t),r.callFn(e)}function gr(t,e){if(0===e.length)return Ke(Qt(gp.EMPTY_MAP));for(var r=of.prop("_map_"+t.fields.length),n=[],i=[],o=[],s=0;s<e.length;s++){var a="p"+s;n.push(new Qh(a)),i.push([e[s][0],Ge(a)]),o.push(e[s][1])}return sr(Je(n,[new df($e(i))],new Th(Ah)),e.length,r,t),r.callFn(o)}function _r(t){return Ge("currVal_"+t)}function wr(t){return Ge("pd_"+t)}function Sr(t){return t instanceof ff?t.expr:t instanceof df?t.value:null}function Er(t,e,r,i,o,s){var a=[],u=t.prop("renderer");switch(i=Or(t,e,i,s),e.type){case Zi.Property:o&&a.push(Ke(Qt(gp.setBindingDebugInfo)).callFn([u,r,tr(e.name),i]).toStmt()),a.push(u.callMethod("setElementProperty",[r,tr(e.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional(af,i.callMethod("toString",[])),a.push(u.callMethod("setElementAttribute",[r,tr(e.name),i]).toStmt());break;case Zi.Class:a.push(u.callMethod("setElementClass",[r,tr(e.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);n(e.unit)&&(c=c.plus(tr(e.unit))),i=i.isBlank().conditional(af,c),a.push(u.callMethod("setElementStyle",[r,tr(e.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return a}function Or(t,r,n,i){if(r.securityContext===e.SecurityContext.NONE)return n;if(r.needsRuntimeSecurityContext||(i=ar(gp.SecurityContext,r.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+r.name);var o=t.prop("viewUtils").prop("sanitizer"),s=[i,n];return o.callMethod("sanitize",s)}function xr(t,e,r,n,i,o,s,a){var u=[],c=[],p=r.name,l=e.prop("componentType").prop("animations").key(tr(p)),h=tr(Lo),f=Ke(Qt(gp.UNINITIALIZED)),d=Ge("animationTransition_"+p);c.push(d.set(l.callFn([t,o,a.equals(f).conditional(h,a),s.equals(f).conditional(h,s)])).toDeclStmt()),u.push(d.set(l.callFn([t,o,a,h])).toDeclStmt());var v=[],y=n.find(function(t){return t.isAnimation&&t.name==p&&"start"==t.phase});y&&v.push(d.callMethod("onStart",[i.callMethod(Bh.Bind,[t,tr(Hi.calcFullName(p,null,"start"))])]).toStmt());var m=n.find(function(t){return t.isAnimation&&t.name==p&&"done"==t.phase});return m&&v.push(d.callMethod("onDone",[i.callMethod(Bh.Bind,[t,tr(Hi.calcFullName(p,null,"done"))])]).toStmt()),c.push.apply(c,v),u.push.apply(u,v),{updateStmts:c,detachStmts:u}}function Cr(t){var e=t.parentArgs||[],r=t.parent?[sf.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),i=new mf(null,t.ctorParams||[],r.concat(n.ctorStmts));return new gf(t.name,t.parent,n.fields,n.getters,i,n.methods,t.modifiers||[])}function Tr(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(r=[]).concat.apply(r,t.map(function(t){return t.methods||[]})),getters:(n=[]).concat.apply(n,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,r,n,i}function Ar(t){var e=Ge("changed"),r=[e.set(of.prop(Uf)).toDeclStmt(),of.prop(Uf).set(tr(!1)).toStmt()],n=[];if(t.genChanges){var i=[];t.ngOnChanges&&i.push(of.prop(Vf).callMethod("ngOnChanges",[of.prop(Ff)]).toStmt()),t.compilerConfig.logBindingUpdate&&i.push(Ke(Qt(gp.setBindingDebugInfoForChanges)).callFn([Wf.prop("renderer"),Kf,of.prop(Ff)]).toStmt()),i.push(Yf),n.push(new _f(e,i))}t.ngOnInit&&n.push(new _f(Wf.prop("numberOfChecks").identical(new Wh(0)),[of.prop(Vf).callMethod("ngOnInit",[]).toStmt()])),t.ngDoCheck&&n.push(of.prop(Vf).callMethod("ngDoCheck",[]).toStmt()),n.length>0&&r.push(new _f(Ze(qf),n)),r.push(new df(e)),t.methods.push(new mf("ngDoCheck",[new Qh(Wf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Kf.name,Ah),new Qh(qf.name,Ph)],r,Ph))}function Pr(t,e){var r=er(e),n=[of.prop(Uf).set(tr(!0)).toStmt(),of.prop(Vf).prop(t).set(Hf).toStmt()];e.genChanges&&n.push(of.prop(Ff).key(tr(t)).set(Ke(Qt(gp.SimpleChange)).instantiate([r.expression,Hf])).toStmt());var i=rr({currValExpr:Hf,forceUpdate:zf,stmts:[]},r.expression,qf,n);e.methods.push(new mf("check_"+t,[new Qh(Hf.name,Ah),new Qh(qf.name,Ph),new Qh(zf.name,Ph)],i))}function Rr(t,e,r){var n=[],i=[new Qh(Wf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Gf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Kf.name,Ah),new Qh(qf.name,Ph)];t.forEach(function(t){var o=er(r),s=ur(r,null,of.prop(Vf),t.value,o.bindingId);if(s){var a;t.needsRuntimeSecurityContext&&(a=Ge("secCtx_"+i.length),i.push(new Qh(a.name,Xe(Qt(gp.SecurityContext)))));var u;if(t.isAnimation){var c=xr(Wf,Gf,t,e,of.prop(Bf).or(Ke(Qt(gp.noop))),Kf,s.currValExpr,o.expression),p=c.updateStmts,l=c.detachStmts;u=p,(h=r.detachStmts).push.apply(h,l)}else u=Er(Wf,t,Kf,s.currValExpr,r.compilerConfig.logBindingUpdate,a);n.push.apply(n,rr(s,o.expression,qf,u));var h}}),r.methods.push(new mf("checkHost",i,n))}function Mr(t,e){var r=Ge("result"),n=[r.set(tr(!0)).toDeclStmt(Ph)];t.forEach(function(t,i){var o=cr(e,null,of.prop(Vf),t.handler,"sub_"+i),s=o.stmts;o.preventDefault&&s.push(r.set(o.preventDefault.and(r)).toStmt()),n.push(new _f(Xf.equals(tr(t.fullName)),s))}),n.push(new df(r)),e.methods.push(new mf("handleEvent",[new Qh(Xf.name,Mh),new Qh(Pf.event.name,Ah)],n,Ph))}function kr(t,e){var r=[new Qh(Wf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Bf,Ah)],n=[of.prop(Bf).set(Ge(Bf)).toStmt()];Object.keys(t.outputs).forEach(function(i,o){var s=t.outputs[i],a="emit"+o;r.push(new Qh(a,Ph));var u="subscription"+o;e.fields.push(new yf(u,Ah)),n.push(new _f(Ge(a),[of.prop(u).set(of.prop(Vf).prop(i).callMethod(Bh.SubscribeObservable,[Ge(Bf).callMethod(Bh.Bind,[Wf,tr(s)])])).toStmt()])),e.destroyStmts.push(of.prop(u).and(of.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new mf("subscribe",r,n))}function Ir(t,e,r){var n=[],i=new qp(e,ja,r,[],n),o=w(t.type),s=o?"in Directive "+_(t.type)+" in "+o:"in Directive "+_(t.type),a=new xu("",s),u=new Cu(new Ou(a,null,null,null),new Ou(a,null,null,null)),c=i.createDirectiveHostPropertyAsts(t.toSummary(),u),p=i.createDirectiveHostEventAsts(t.toSummary(),u);return new Zf(c,p,n)}function Nr(t){var e=t.filter(function(t){return t.level===Tu.WARNING}),r=t.filter(function(t){return t.level===Tu.FATAL});if(e.length>0&&this._console.warn("Directive parse warnings:\n"+e.join("\n")),r.length>0)throw new Error("Directive parse errors:\n"+r.join("\n"))}function jr(t,e){return To.hasLifecycleHook(e,Dr(t))}function Dr(t){switch(t){case ao.OnInit:return"ngOnInit";case ao.OnDestroy:return"ngOnDestroy";case ao.DoCheck:return"ngDoCheck";case ao.OnChanges:return"ngOnChanges";case ao.AfterContentInit:return"ngAfterContentInit";case ao.AfterContentChecked:return"ngAfterContentChecked";case ao.AfterViewInit:return"ngAfterViewInit";case ao.AfterViewChecked:return"ngAfterViewChecked"}}function Lr(t){return t instanceof e.NgModule}function Vr(t){return t instanceof e.Pipe}function Fr(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var i=e.resolveForwardRef(t[n]);Array.isArray(i)?Fr(i,r):r.push(i)}return r}function Ur(t){return t?Array.from(new Set(t)):[]}function Br(t){return Ur(Fr(t))}function Hr(t){return t instanceof Ji||t instanceof e.Type}function qr(t,e,r){if(e instanceof Ji)return e.filePath;var n=r.moduleId;if("string"==typeof n){var i=Le(n);return i?n:"package:"+n+os}if(null!==n&&void 0!==n)throw new cs('moduleId should be a string in "'+Wr(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function zr(t,e){b(t,new dd,e)}function Wr(t){return t instanceof Ji?t.name+" in "+t.filePath:s(t)}function Gr(t,e){return void 0===e&&(e=null),b(t,new yd,e)}function Kr(t,e,r){if(void 0===r&&(r=!0),i(t))return null;var n=t.replace(xd,function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!Cd.test(n);return o?"'"+n+"'":n}function Xr(t){for(var e="",r=0;t>r;r++)e+="  ";return e}function Yr(t){var e=new jd(Id),r=Rd.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof pf)t.visitStatement(e,r);else if(t instanceof jh)t.visitExpression(e,r);else{if(!(t instanceof Sh))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Qr(t,e){for(var r=0,n=e;r<n.length;r++){var i=n[r];Dd[i.toLowerCase()]=t}}function $r(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Zr(t){return t.replace(lv,"")}function Jr(t){var e=t.match(hv);return e?e[0]:""}function tn(t,e){var r=en(t),n=0;return r.escapedString.replace(fv,function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+mv)&&(s=r.blocks[n++],a=a.substring(mv.length+1),u="{");var c=e(new bv(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function en(t){for(var e=t.split(dv),r=[],n=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==yv&&i--,i>0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(mv),o=[]),r.push(a)),a==vv&&i++}return o.length>0&&(n.push(o.join("")),r.push(mv)),new gv(r.join(""),n)}function rn(t){var e="styles";return t&&(e+="_"+_(t.type)),e}function nn(t,e,r){if(e===r)return t;for(var n=of,i=e;i!==r&&i.declarationElement.view;)i=i.declarationElement.view,n=n.prop("parentView");if(i!==r)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new Iv(n,r),null)}function on(t,e,r){var n;n=t.viewType===bo.HOST?of:of.prop("parentView");var i=[ir(e),of.prop("parentIndex")];return r&&i.push(af),n.callMethod("injectorGet",i)}function sn(t,e){return"View_"+_(t.type)+e}function an(t){return"handleEvent_"+t}function un(t){return io.flatten(t.values.map(function(t){return t instanceof Nv?cn(t.view.declarationElement.viewContainer,t.view,un(t)):t}))}function cn(t,e,r){var n=r.map(function(t){return ze(of.name,Ge("nestedView"),t)});return t.callMethod("mapNestedViews",[Ge(e.className),Je([new Qh("nestedView",e.classType)],[new df(Qe(n))],Ah)])}function pn(t,e){e.fields.push(new yf(t,Xe(Qt(gp.QueryList),[Ah])));var r=of.prop(t);return e.createMethod.addStmt(of.prop(t).set(Ke(Qt(gp.QueryList),[Ah]).instantiate([])).toStmt()),r}function ln(t,e){e.meta.selectors.forEach(function(r){var n=t.get(E(r));n||(n=[],t.set(E(r),n)),n.push(e)})}function hn(t,e,r,n){var i;return i=e>0?tr(t).lowerEquals(Bv.requestNodeIndex).and(Bv.requestNodeIndex.lowerEquals(tr(t+e))):tr(t).identical(Bv.requestNodeIndex),new _f(Bv.token.identical(ir(r.token)).and(i),[new df(n)])}function fn(t,e,r,n,i){var o,s,a=i.view;if(r?(o=Qe(e),s=new Ch(Ah)):(o=e[0],s=e[0].type),s||(s=Ah),n)a.fields.push(new yf(t,s)),a.createMethod.addStmt(of.prop(t).set(o).toStmt());else{var u="_"+t;a.fields.push(new yf(u,s));var c=new Mv(a);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new _f(of.prop(u).isBlank(),[of.prop(u).set(o).toStmt()])),c.addStmt(new df(of.prop(u))),a.getters.push(new bf(t,c.finish(),s))}return of.prop(t)}function dn(t,e){for(var r=null,n=t.pipeMetas.length-1;n>=0;n--){var i=t.pipeMetas[n];if(i.name==e){r=i;break}}if(!r)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return r}function vn(t,e){return e>0?bo.EMBEDDED:t.isHost?bo.HOST:bo.COMPONENT}function yn(t,e,r,n){var i=mn(t,e);return i.size?(n&&bn(i,r),gn(i,e,r),_n(t,e,r),!0):!1}function mn(t,e){var r=new Map;return t.forEach(function(t){r.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){r.set(t.fullName,t)})}),r}function bn(t,e){var r=[];if(t.forEach(function(t){t.phase||r.push(tr(t.name),tr(t.target))}),r.length){var n=Ge("disposable_"+e.view.disposables.length);e.view.disposables.push(n),e.view.createMethod.addStmt(n.set(Ke(Qt(gp.subscribeToRenderElement)).callFn([of,e.renderNode,or(r),wn(e)])).toDeclStmt(kh,[cf.Private]))}}function gn(t,e,r){var n=Array.from(t.keys());e.forEach(function(t){var e=r.directiveWrapperInstance.get(t.directive.type.reference);r.view.createMethod.addStmts(Jf.subscribe(t.directive,t.hostProperties,n,e,of,wn(r)))})}function _n(t,e,r){var n=e.some(function(t){return t.hostEvents.some(function(){return t.directive.isComponent})}),i=n?r.compViewExpr:of,o=new Mv(r.view);o.resetDebugInfo(r.nodeIndex,r.sourceAst),o.push(i.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var s=Ge("eventName"),a=Ge("result");o.push(a.set(tr(!0)).toDeclStmt(Ph)),e.forEach(function(t){var e=r.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&o.push(a.set(Jf.handleEvent(t.hostEvents,e,s,Pf.event).and(a)).toStmt())}),t.forEach(function(t,e){var n=cr(r.view,r.view,r.view.componentContext,t.handler,"sub_"+e),i=n.stmts;n.preventDefault&&i.push(a.set(n.preventDefault.and(a)).toStmt()),o.push(new _f(s.equals(tr(t.fullName)),i))}),o.push(new df(a)),r.view.methods.push(new mf(an(r.nodeIndex),[new Qh(s.name,Mh),new Qh(Pf.event.name,Ah)],o.finish(),Ph))}function wn(t){var e=an(t.nodeIndex);return of.callMethod("eventHandler",[of.prop(e)])}function Sn(t,e,r){var n=r.view,i=t.type.lifecycleHooks,o=n.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),-1!==i.indexOf(ao.AfterContentInit)&&o.addStmt(new _f(Jv,[e.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterContentChecked)&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function En(t,e,r){var n=r.view,i=t.type.lifecycleHooks,o=n.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),-1!==i.indexOf(ao.AfterViewInit)&&o.addStmt(new _f(Jv,[e.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterViewChecked)&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function On(t,e,r){r.view.destroyMethod.addStmts(Jf.ngOnDestroy(t.directive,e)),r.view.detachMethod.addStmts(Jf.ngOnDetach(t.hostProperties,e,of,r.compViewExpr||of,r.renderNode))}function xn(t,e,r){var n=r.view.destroyMethod;n.resetDebugInfo(r.nodeIndex,r.sourceAst),t.providerType!==Qi.Directive&&t.providerType!==Qi.Component&&-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&n.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Cn(t,e,r){var n=r.destroyMethod;-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)&&n.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Tn(t,e,r){var n=er(r),i=ur(r,r,r.componentContext,t.value,n.bindingId);return i?(r.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void r.detectChangesRenderPropertiesMethod.addStmts(rr(i,n.expression,Hv.throwOnChange,[of.prop("renderer").callMethod("setText",[e.renderNode,i.currValExpr]).toStmt()]))):null}function An(t,e,r,n){var i=n.view,o=n.renderNode;t.forEach(function(t){var s=er(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(n.nodeIndex,t);var a=ur(i,i,n.view.componentContext,t.value,s.bindingId);if(a){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(t.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,Er(of,t,o,a.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var p=xr(of,of,t,e,(r?of.prop(an(n.nodeIndex)):Ke(Qt(gp.noop))).callMethod(Bh.Bind,[of]),n.renderNode,a.currValExpr,s.expression),l=p.updateStmts,h=p.detachStmts;u.push.apply(u,l),i.detachMethod.addStmts(h)}c.addStmts(rr(a,s.expression,Hv.throwOnChange,u))}})}function Pn(t,e,r,n,i){var o=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case Zi.Property:e=i.securityContext(n,t.name,!1);break;case Zi.Attribute:e=i.securityContext(n,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return ar(gp.SecurityContext,e)});r.view.detectChangesRenderPropertiesMethod.addStmts(Jf.checkHost(t.hostProperties,e,of,r.compViewExpr||of,r.renderNode,Hv.throwOnChange,o))}function Rn(t,e,r,n){var i=n.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),t.inputs.forEach(function(t,s){var a=n.nodeIndex+"_"+r+"_"+s;o.resetDebugInfo(n.nodeIndex,t);var u=ur(i,i,i.componentContext,t.value,a);u&&(o.addStmts(u.stmts),o.addStmt(e.callMethod("check_"+t.directiveName,[u.currValExpr,Hv.throwOnChange,u.forceUpdate||tr(!1)]).toStmt()))});var s=t.directive.isComponent&&!oo(t.directive.changeDetection),a=Jf.ngDoCheck(e,of,n.renderNode,Hv.throwOnChange),u=s?new _f(a,[n.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):a.toStmt();o.addStmt(u)}function Mn(t){var e=[];t.getProviderTokens().forEach(function(r){var n=t.getQueriesFor(r);e.push.apply(e,n.map(function(t){return new ty(t,r)}))}),Object.keys(t.referenceTokens).forEach(function(r){var n={value:r};e.push.apply(e,t.getQueriesFor(n).map(function(t){return new ty(t,n)}))}),e.forEach(function(e){var r;if(e.read.identifier)r=t.instances.get(E(e.read));else{var n=t.referenceTokens[e.read.value];r=n?t.instances.get(E(n)):t.elementRef}r&&e.query.addValue(r,t.view)})}function kn(t,e,n){var i=new ey(t,n);r(i,e),t.pipes.forEach(function(t){Cn(t.meta,t.instance,t.view)})}function In(t,e,n){var i=new uy(t,n),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return r(i,e,o),(t.viewType===bo.EMBEDDED||t.viewType===bo.HOST)&&(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Nn(t,e){t.nodes.forEach(function(t){t instanceof Xv&&(t.finish(),t.hasEmbeddedView&&Nn(t.embeddedView,e))}),t.finish(),Bn(t,e)}function jn(t){for(var e=t.view;Ln(t.parent,e);)t=t.parent;return t}function Dn(t){for(var e=t.view;Ln(t,e);)t=t.parent;return t}function Ln(t,e){return!t.isNull()&&t.sourceAst.name===oy&&t.view===e}function Vn(t,e){var r={};Object.keys(t).forEach(function(e){r[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=r[e];r[e]=n(o)?Un(e,o,i):i})});var i=[];return Object.keys(r).sort().forEach(function(t){i.push(t,r[t])}),i}function Fn(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Un(t,e,r){return t==ny||t==iy?e+" "+r:r}function Bn(t,e){var r=af;t.genConfig.genDebugInfo&&(r=Ge("nodeDebugInfos_"+_(t.component.type)+t.viewIndex),e.push(r.set(Qe(t.nodes.map(Hn),new Ch(Xe(Qt(gp.StaticNodeDebugInfo)),[wh.Const]))).toDeclStmt(null,[cf.Final])));var n=Ge("renderType_"+_(t.component.type));if(0===t.viewIndex){var i=void 0;i=t.component.template.templateUrl==w(t.component.type)?w(t.component.type)+" class "+_(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(n.set(Ke(Qt(gp.createRenderComponentType)).callFn([tr(t.genConfig.genDebugInfo?i:""),tr(t.component.template.ngContentSelectors.length),Lv.fromValue(t.component.template.encapsulation),t.styles,$e(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(Xe(Qt(gp.RenderComponentType))))}var o=qn(t,n,r);e.push(o)}function Hn(t){var e=t instanceof Xv?t:null,r=[],i=af,o=[];return n(e)&&(r=e.getProviderTokens().map(function(t){return ir(t)}),n(e.component)&&(i=ir($t(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var r=e.referenceTokens[t];o.push([t,n(r)?ir(r):af])})),Ke(Qt(gp.StaticNodeDebugInfo)).instantiate([Qe(r,new Ch(Ah,[wh.Const])),i,$e(o,new Th(Ah,[wh.Const]))],Xe(Qt(gp.StaticNodeDebugInfo),null,[wh.Const]))}function qn(t,e,r){var n=[new Qh(Fv.viewUtils.name,Xe(Qt(gp.ViewUtils))),new Qh(Fv.parentView.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Fv.parentIndex.name,Rh),new Qh(Fv.parentElement.name,Ah)],i=[Ge(t.className),e,Dv.fromValue(t.viewType),Fv.viewUtils,Fv.parentView,Fv.parentIndex,Fv.parentElement,Vv.fromValue(Yn(t))];t.genConfig.genDebugInfo&&i.push(r),t.viewType===bo.EMBEDDED&&(n.push(new Qh("declaredViewContainer",Xe(Qt(gp.ViewContainer)))),i.push(Ge("declaredViewContainer")));var o=[new mf("createInternal",[new Qh(ay.name,Mh)],Wn(t),Xe(Qt(gp.ComponentRef),[Ah])),new mf("injectorGetInternal",[new Qh(Bv.token.name,Ah),new Qh(Bv.requestNodeIndex.name,Rh),new Qh(Bv.notFoundResult.name,Ah)],Kn(t.injectorGetMethod.finish(),Bv.notFoundResult),Ah),new mf("detectChangesInternal",[new Qh(Hv.throwOnChange.name,Ph)],Gn(t)),new mf("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new mf("destroyInternal",[],zn(t)),new mf("detachInternal",[],t.detachMethod.finish()),Qn(t),$n(t),Jn(t)].filter(function(t){return t.body.length>0}),s=t.genConfig.genDebugInfo?gp.DebugAppView:gp.AppView,a=Cr({name:t.className,parent:Ke(Qt(s),[Xn(t)]),parentArgs:i,ctorParams:n,builders:[{methods:o},t]});return a}function zn(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function Wn(t){var e=af,r=[];t.viewType===bo.COMPONENT&&(e=Uv.renderer.callMethod("createViewRoot",[of.prop("parentElement")]),r=[sy.set(e).toDeclStmt(Xe(t.genConfig.renderTypes.renderNode),[cf.Final])]);var n;if(t.viewType===bo.HOST){var i=t.nodes[0];n=Ke(Qt(gp.ComponentRef_),[Ah]).instantiate([tr(i.nodeIndex),of,i.renderNode,i.getComponent()])}else n=af;var o=Uv.renderer.cast(Ah).prop("directRenderer").conditional(af,Qe(t.nodes.map(function(t){return t.renderNode})));return r.concat(t.createMethod.finish(),[of.callMethod("init",[t.lastRenderNode,o,t.disposables.length?Qe(t.disposables):af]).toStmt(),new df(n)])}function Gn(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e;e.push.apply(e,t.animationBindingsMethod.finish()),e.push.apply(e,t.detectChangesInInputsMethod.finish()),t.viewContainers.forEach(function(t){e.push(t.callMethod("detectChangesInNestedViews",[Hv.throwOnChange]).toStmt())});var r=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());r.length>0&&e.push(new _f(Ze(Hv.throwOnChange),r)),e.push.apply(e,t.detectChangesRenderPropertiesMethod.finish()),t.viewChildren.forEach(function(t){e.push(t.callMethod("internalDetectChanges",[Hv.throwOnChange]).toStmt())});var n=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());n.length>0&&e.push(new _f(Ze(Hv.throwOnChange),n));var i=[],o=We(e);return o.has(Hv.changed.name)&&i.push(Hv.changed.set(tr(!0)).toDeclStmt(Ph)),o.has(Hv.changes.name)&&i.push(Hv.changes.set(af).toDeclStmt(new Th(Xe(Qt(gp.SimpleChange))))),i.push.apply(i,pr(e)),i.concat(e)}function Kn(t,e){return t.length>0?t.concat([new df(e)]):t}function Xn(t){return t.viewType===bo.COMPONENT?Xe(t.component.type):Ah}function Yn(t){var e;return e=t.viewType===bo.COMPONENT?oo(t.component.changeDetection)?so.CheckAlways:so.CheckOnce:so.CheckAlways}function Qn(t){var e=Ge("cb"),r=Ge("ctx"),n=Zn(t.rootNodes,e,r);return new mf("visitRootNodesInternal",[new Qh(e.name,Ah),new Qh(r.name,Ah)],n)}function $n(t){var e=Ge("nodeIndex"),r=Ge("ngContentIndex"),n=Ge("cb"),i=Ge("ctx"),o=[];return t.nodes.forEach(function(t){t instanceof Xv&&t.component&&t.contentNodesByNgContentIndex.forEach(function(s,a){o.push(new _f(e.equals(tr(t.nodeIndex)).and(r.equals(tr(a))),Zn(s,n,i)))})}),new mf("visitProjectableNodesInternal",[new Qh(e.name,Rh),new Qh(r.name,Rh),new Qh(n.name,Ah),new Qh(i.name,Ah)],o)}function Zn(t,e,r){var n=[];return t.forEach(function(t){switch(t.type){case Qv.Node:n.push(e.callFn([t.expr,r]).toStmt());break;case Qv.ViewContainer:n.push(e.callFn([t.expr.prop("nativeElement"),r]).toStmt()),n.push(t.expr.callMethod("visitNestedViewRootNodes",[e,r]).toStmt());break;case Qv.NgContent:n.push(of.callMethod("visitProjectedNodes",[tr(t.ngContentIndex),e,r]).toStmt())}}),n}function Jn(t){var e=Ge("nodeIndex"),r=[];return t.nodes.forEach(function(t){t instanceof Xv&&t.embeddedView&&r.push(new _f(e.equals(tr(t.nodeIndex)),[new df(t.embeddedView.classExpr.instantiate([Uv.viewUtils,of,tr(t.nodeIndex),t.renderNode,t.viewContainer]))]))}),r.length>0&&r.push(new df(af)),new mf("createEmbeddedViewInternal",[new Qh(e.name,Rh)],r,Xe(Qt(gp.AppView),[Ah]))}function ti(t,e){var r=tr(Lo);switch(e){case Lo:return t.equals(r);case jo:return tr(!0);default:return t.equals(tr(e))}}function ei(t){if(t instanceof Hl&&t.duration>0&&2==t.keyframes.length){var e=ri(t.keyframes[0])[0],r=ri(t.keyframes[1])[0];return 0===Object.keys(e).length&&0===Object.keys(r).length}return!1}function ri(t){return t.styles.styles}function ni(t,e,r,n,i){var o=new Dy(t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var s=0;s<o.symbols.length;s++){var a=o.symbols[s];if(!t.isSourceFile(a.filePath)){var u=e.resolveSummary(a);if(!u){var c=r.resolveSymbol(a);c&&(u={symbol:c.symbol,metadata:c.metadata})}u&&o.addOrMergeSummary(u)}}return i.forEach(function(r){if(o.addOrMergeSummary({symbol:r.type.reference,metadata:{__symbolic:"class"},type:r}),r.summaryKind===Os.NgModule){var n=r;n.exportedDirectives.concat(n.exportedPipes).forEach(function(r){var n=r.reference;t.isSourceFile(n.filePath)||o.addOrMergeSummary(e.resolveSummary(n))})}}),o.serialize()}function ii(t,e){var r=new Ly(t);return r.deserialize(e)}function oi(t){var e=t.replace(jy,"");return e+".ngsummary.json"}function si(t,e){return e.dependencies.forEach(function(e){if(e instanceof qv){var r=e;r.placeholder.reference=t.getStaticSymbol(ui(w(r.comp)),e.name)}else if(e instanceof zv){var n=e;n.placeholder.reference=t.getStaticSymbol(ui(w(n.comp)),ci(n.comp));
+
+}else if(e instanceof Wv){var i=e;i.placeholder.reference=t.getStaticSymbol(ui(w(i.dir)),i.name)}}),e.statements}function ai(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(pi(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function ui(t){var e=hi(t);return e[0]+".ngfactory"+e[1]}function ci(t){return _(t)+"NgFactory"}function pi(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function li(t){if(!t.isComponent)throw new Error("Could not compile '"+_(t.type)+"' because it is not a component.")}function hi(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function fi(t,e,r){var n=mi(t,e,r),i=n.ngModules,o=n.symbolsMissingModule;return vi(t,i,o,r)}function di(t,e,r){var n=fi(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var i=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"!"});throw new Error(i.join("\n"))}return n}function vi(t,e,r,n){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,p=new Set;t.forEach(function(t){var e=t.filePath;p.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;p.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;p.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;p.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),o.set(e.reference,t)})});var l=[];return p.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],i=c.get(t)||[];l.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:i})}),{ngModuleByPipeOrDirective:o,files:l,ngModules:e,symbolsMissingModule:r}}function yi(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),i=r.metadata;i&&"error"!=i.__symbolic&&n.push(r.symbol)})}),n}function mi(t,e,r){var n=new Map,i=[],o=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var i=r.getNgModuleMetadata(t,!1);return i&&(n.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function bi(t){return"object"==typeof t&&t.name&&t.filePath}function gi(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function _i(t){return"Error encountered resolving symbol values statically. "+gi(t)}function wi(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var i=e(t[n],n);Ei(i)||(Hy.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:i}):r[n]=i)}),r}function Si(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Ei(t){return t&&"ignore"==t.__symbolic}function Oi(t,e,r,n){var i=new Error(t);return i.fileName=e,i.line=r,i.column=n,i}function xi(t,r){var n=r.translations||"",i=De(),o=new to,s=new Qy(t,o),a=new Yy(t,o,s),u=new qy(a);Fy.install(u);var c=new dp(new lp,n,r.i18nFormat),p=new kl({genDebugInfo:r.debug===!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),l=new vh({get:function(e){return t.loadResource(e)}},i,c,p),h=new wu(new fu),f=new Gd,d=new Co,v=new xl(h,f,c,d,[]),y=new fd(new rd(u),new gh(u),new od(u),s,f,l,u),m=new Vy(t,y,v,new Av(i),new hy(p,f),new Qf(p,h,f,d),new wd,new Nd(t),s,r.locale,r.i18nFormat,new ih(f),a);return{compiler:m,reflector:u}}function Ci(t,e){var r=t.concat([new df(Ge(e))]),i=new $y(null,null,null,new Map),o=new Jy,s=o.visitAllStatements(r,i);return n(s)?s.value:null}function Ti(t,e,r,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var u=o.visitAllStatements(r,s);return n(u)?u.value:null}function Ai(t,e,r){var n={};t.getters.forEach(function(i){n[i.name]={configurable:!1,get:function(){var n=new $y(e,this,t.name,e.vars);return Ti([],[],i.body,n,r)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});n[i.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s-0]=arguments[s];var a=new $y(e,this,t.name,e.vars);return Ti(o,n,i.body,a,r)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var n=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new $y(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Ti(i,o,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return o.prototype=Object.create(s.prototype,n),o}function Pi(t,e,r,n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Ti(t,i,e,r,n)}}function Ri(t,e,r,n){var i=r+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in n)o.push(a),s.push(n[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Mi(t,e,r){var n=new om,i=Rd.createRoot([r]);return n.visitAllStatements(e,i),Ri(t,r,i.toSource(),n.getArgs())}function ki(t){if(!t.isComponent)throw new Error("Could not compile '"+_(t.type)+"' because it is not a component.")}function Ii(){To.reflectionCapabilities=new Po}function Ni(t){return{useDebug:ji(t.map(function(t){return t.useDebug})),useJit:ji(t.map(function(t){return t.useJit})),defaultEncapsulation:ji(t.map(function(t){return t.defaultEncapsulation})),providers:Di(t.map(function(t){return t.providers}))}}function ji(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Di(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Li=new e.Version("2.4.9"),Vi=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Fi=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ui=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Bi=function(){function t(t,e,r,n,i,o,s){this.name=t,this.type=e,this.securityContext=r,this.needsRuntimeSecurityContext=n,this.value=i,this.unit=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Zi.Animation},enumerable:!0,configurable:!0}),t}(),Hi=function(){function t(t,e,r,n,i){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=i}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),qi=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),zi=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Wi=function(){function t(t,e,r,n,i,o,s,a,u,c,p,l){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=p,this.endSourceSpan=l}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Gi=function(){function t(t,e,r,n,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),Ki=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Xi=function(){function t(t,e,r,n,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Yi=function(){function t(t,e,r,n,i,o,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),Qi={};Qi.PublicService=0,Qi.PrivateService=1,Qi.Component=2,Qi.Directive=3,Qi.Builtin=4,Qi[Qi.PublicService]="PublicService",Qi[Qi.PrivateService]="PrivateService",Qi[Qi.Component]="Component",Qi[Qi.Directive]="Directive",Qi[Qi.Builtin]="Builtin";var $i=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Zi={};Zi.Property=0,Zi.Attribute=1,Zi.Class=2,Zi.Style=3,Zi.Animation=4,Zi[Zi.Property]="Property",Zi[Zi.Attribute]="Attribute",Zi[Zi.Class]="Class",Zi[Zi.Style]="Style",Zi[Zi.Animation]="Animation";var Ji=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t}(),to=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",i='"'+t+'".'+e+n,o=this.cache.get(i);return o||(o=new Ji(t,e,r),this.cache.set(i,o)),o},t}(),eo=Object.getPrototypeOf({}),ro=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),no=function(){function t(){}return t.merge=function(t,e){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];r[o]=e[o]}return r},t.equals=function(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return!1}return!0},t}(),io=function(){function t(){}return t.findLast=function(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null},t.removeAll=function(t,e){for(var r=0;r<e.length;++r){var n=t.indexOf(e[r]);n>-1&&t.splice(n,1)}},t.remove=function(t,e){var r=t.indexOf(e);return r>-1?(t.splice(r,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,r){var n=Array.isArray(r)?t.flatten(r):r;return e.concat(n)},[])},t}(),oo=e.__core_private__.isDefaultChangeDetectionStrategy,so=e.__core_private__.ChangeDetectorStatus,ao=e.__core_private__.LifecycleHooks,uo=e.__core_private__.LIFECYCLE_HOOKS_VALUES,co=e.__core_private__.ReflectorReader,po=e.__core_private__.ViewContainer,lo=e.__core_private__.CodegenComponentFactoryResolver,ho=e.__core_private__.ComponentRef_,fo=e.__core_private__.AppView,vo=e.__core_private__.DebugAppView,yo=e.__core_private__.NgModuleInjector,mo=e.__core_private__.registerModuleFactory,bo=e.__core_private__.ViewType,go=e.__core_private__.view_utils,_o=e.__core_private__.DebugContext,wo=e.__core_private__.StaticNodeDebugInfo,So=e.__core_private__.devModeEqual,Eo=e.__core_private__.UNINITIALIZED,Oo=e.__core_private__.ValueUnwrapper,xo=e.__core_private__.TemplateRef_,Co=e.__core_private__.Console,To=e.__core_private__.reflector,Ao=e.__core_private__.Reflector,Po=e.__core_private__.ReflectionCapabilities,Ro=e.__core_private__.NoOpAnimationPlayer,Mo=e.__core_private__.AnimationSequencePlayer,ko=e.__core_private__.AnimationGroupPlayer,Io=e.__core_private__.AnimationKeyframe,No=e.__core_private__.AnimationStyles,jo=e.__core_private__.ANY_STATE,Do=e.__core_private__.DEFAULT_STATE,Lo=e.__core_private__.EMPTY_STATE,Vo=e.__core_private__.FILL_STYLE_FLAG,Fo=e.__core_private__.prepareFinalAnimationStyles,Uo=e.__core_private__.balanceAnimationKeyframes,Bo=e.__core_private__.clearStyles,Ho=e.__core_private__.collectAndResolveStyles,qo=e.__core_private__.renderStyles,zo=e.__core_private__.ComponentStillLoadingError,Wo=e.__core_private__.AnimationTransition,Go={};Go.RAW_TEXT=0,Go.ESCAPABLE_RAW_TEXT=1,Go.PARSABLE_DATA=2,Go[Go.RAW_TEXT]="RAW_TEXT",Go[Go.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Go[Go.PARSABLE_DATA]="PARSABLE_DATA";var Ko={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},Xo=function(){function t(t){var e=this,r=void 0===t?{}:t,n=r.closedByChildren,i=r.requiredParents,o=r.implicitNamespacePrefix,s=r.contentType,a=void 0===s?Go.PARSABLE_DATA:s,u=r.closedByParent,c=void 0===u?!1:u,p=r.isVoid,l=void 0===p?!1:p,h=r.ignoreFirstLf,f=void 0===h?!1:h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=c||l,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Yo={base:new Xo({isVoid:!0}),meta:new Xo({isVoid:!0}),area:new Xo({isVoid:!0}),embed:new Xo({isVoid:!0}),link:new Xo({isVoid:!0}),img:new Xo({isVoid:!0}),input:new Xo({isVoid:!0}),param:new Xo({isVoid:!0}),hr:new Xo({isVoid:!0}),br:new Xo({isVoid:!0}),source:new Xo({isVoid:!0}),track:new Xo({isVoid:!0}),wbr:new Xo({isVoid:!0}),p:new Xo({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Xo({closedByChildren:["tbody","tfoot"]}),tbody:new Xo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Xo({closedByChildren:["tbody"],closedByParent:!0}),tr:new Xo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Xo({closedByChildren:["td","th"],closedByParent:!0}),th:new Xo({closedByChildren:["td","th"],closedByParent:!0}),col:new Xo({requiredParents:["colgroup"],isVoid:!0}),svg:new Xo({implicitNamespacePrefix:"svg"}),math:new Xo({implicitNamespacePrefix:"math"}),li:new Xo({closedByChildren:["li"],closedByParent:!0}),dt:new Xo({closedByChildren:["dt","dd"]}),dd:new Xo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Xo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Xo({closedByChildren:["optgroup"],closedByParent:!0}),option:new Xo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Xo({ignoreFirstLf:!0}),listing:new Xo({ignoreFirstLf:!0}),style:new Xo({contentType:Go.RAW_TEXT}),script:new Xo({contentType:Go.RAW_TEXT}),title:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT}),textarea:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Qo=new Xo,$o=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),Zo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for($o.lastIndex=0;r=$o.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[5]),r[6]&&(a=!1,s=o),r[7]){if(a)throw new Error("Multiple selectors in :not are not supported");i(n,o),o=s=new t}}return i(n,o),n},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var i=this.attrs[n],o=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+i+o}return f(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Jo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new ts(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,i=t.element,o=t.classNames,s=t.attrs,a=new es(t,e,r);if(i){var u=0===s.length&&0===o.length;u?this._addTerminal(n._elementMap,i,a):n=this._addPartial(n._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,p=o[c];u?this._addTerminal(n._classMap,p,a):n=this._addPartial(n._classPartialMap,p)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,l=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(l);d||(d=new Map,f.set(l,d)),this._addTerminal(d,h,a)}else{var v=n._attrValuePartialMap,y=v.get(l);y||(y=new Map,v.set(l,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,i)for(var s=0;s<i.length;s++){var a=i[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(o)for(var s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],p=this._attrValueMap.get(u);c&&(r=this._matchTerminal(p,"",t,e)||r),r=this._matchTerminal(p,c,t,e)||r;var l=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(l,"",t,e)||r),r=this._matchPartial(l,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return i?i.match(r,n):!1},t}(),ts=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),es=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=Jo.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),rs=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ns=function(t){function e(e){t.call(this,e);var r=new Error(e);this._nativeError=r}return rs(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),is=(function(t){function e(e,r){t.call(this,e+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return rs(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(ns),this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),os="",ss=/-+([a-z0-9])/g,as=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return b(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(i){n[i]=b(t[i],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),us=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),cs=function(t){function e(){t.apply(this,arguments)}return is(e,t),e}(ns),ps=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ls=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,hs=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),fs=function(){function t(){}return t}(),ds=function(t){function e(e,r){t.call(this),this.stateNameExpr=e,this.styles=r}return ps(e,t),e}(fs),vs=function(t){function e(e,r){t.call(this),this.stateChangeExpr=e,this.steps=r}return ps(e,t),e}(fs),ys=function(){function t(){}return t}(),ms=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return ps(e,t),e}(ys),bs=function(t){function e(e,r){void 0===r&&(r=null),t.call(this),this.offset=e,this.styles=r}return ps(e,t),e}(ys),gs=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null),t.call(this),this.timings=e,this.styles=r}return ps(e,t),e}(ys),_s=function(t){function e(e){void 0===e&&(e=null),t.call(this),this.steps=e}return ps(e,t),e}(ys),ws=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(_s),Ss=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(_s),Es=0,Os={};Os.Pipe=0,Os.Directive=1,Os.NgModule=2,Os.Injectable=3,Os[Os.Pipe]="Pipe",Os[Os.Directive]="Directive",Os[Os.NgModule]="NgModule",Os[Os.Injectable]="Injectable";var xs=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,i=e.styleUrls;this.moduleUrl=r,this.styles=x(n),this.styleUrls=x(i)}return t}(),Cs=function(){function t(t){var e=void 0===t?{}:t,r=e.encapsulation,n=e.template,i=e.templateUrl,o=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,p=e.interpolation;if(this.encapsulation=r,this.template=n,this.templateUrl=i,this.styles=x(o),this.styleUrls=x(s),this.externalStylesheets=x(a),this.animations=u?io.flatten(u):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ts=function(){function t(t){var e=void 0===t?{}:t,r=e.isHost,n=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,p=e.hostListeners,l=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,v=e.queries,y=e.viewQueries,m=e.entryComponents,b=e.template;this.isHost=!!r,this.type=n,this.isComponent=i,this.selector=o,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=h,this.providers=x(f),this.viewProviders=x(d),this.queries=x(v),this.viewQueries=x(y),this.entryComponents=x(m),this.template=b}return t.create=function(e){var r=void 0===e?{}:e,i=r.isHost,o=r.type,s=r.isComponent,a=r.selector,u=r.exportAs,c=r.changeDetection,p=r.inputs,l=r.outputs,h=r.host,f=r.providers,d=r.viewProviders,y=r.queries,m=r.viewQueries,b=r.entryComponents,g=r.template,_={},w={},S={};n(h)&&Object.keys(h).forEach(function(t){var e=h[t],r=t.match(ls);null===r?S[t]=e:n(r[1])?w[r[1]]=e:n(r[2])&&(_[r[2]]=e)});var E={};n(p)&&p.forEach(function(t){var e=v(t,[t,t]);E[e[0]]=e[1]});var O={};return n(l)&&l.forEach(function(t){var e=v(t,[t,t]);O[e[0]]=e[1]}),new t({isHost:i,type:o,isComponent:!!s,selector:a,exportAs:u,changeDetection:c,inputs:E,outputs:O,hostListeners:_,hostProperties:w,hostAttributes:S,providers:f,viewProviders:d,queries:y,viewQueries:m,entryComponents:b,template:g})},t.prototype.toSummary=function(){return{summaryKind:Os.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},t}(),As=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.name,i=e.pure;this.type=r,this.name=n,this.pure=!!i}return t.prototype.toSummary=function(){return{summaryKind:Os.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Ps=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.providers,i=e.declaredDirectives,o=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,p=e.importedModules,l=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=r,this.declaredDirectives=x(i),this.exportedDirectives=x(o),this.declaredPipes=x(s),this.exportedPipes=x(a),this.providers=x(n),this.entryComponents=x(u),this.bootstrapComponents=x(c),this.importedModules=x(p),this.exportedModules=x(l),this.schemas=x(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Os.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Rs=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t));
+
+},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.reference)||(this.entryComponentsSet.add(t.reference),this.entryComponents.push(t))},t}(),Ms=function(){function t(t,e){var r=e.useClass,n=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return t}(),ks=0,Is=9,Ns=10,js=11,Ds=12,Ls=13,Vs=32,Fs=33,Us=34,Bs=35,Hs=36,qs=37,zs=38,Ws=39,Gs=40,Ks=41,Xs=42,Ys=43,Qs=44,$s=45,Zs=46,Js=47,ta=58,ea=59,ra=60,na=61,ia=62,oa=63,sa=48,aa=57,ua=65,ca=69,pa=70,la=88,ha=90,fa=91,da=92,va=93,ya=94,ma=95,ba=97,ga=101,_a=102,wa=110,Sa=114,Ea=116,Oa=117,xa=118,Ca=120,Ta=122,Aa=123,Pa=124,Ra=125,Ma=160,ka=96,Ia=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Na=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(k("interpolation",e),new t(e[0],e[1])):ja},t}(),ja=new Na("{{","}}"),Da=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},La=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),Va=function(){function t(t,e){this.start=t,this.end=e}return t}(),Fa=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Ua=function(t){function e(e,r,n,i){t.call(this,e),this.prefix=r,this.uninterpretedExpression=n,this.location=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fa),Ba=function(t){function e(){t.apply(this,arguments)}return Da(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fa),Ha=function(t){function e(){t.apply(this,arguments)}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fa),qa=function(t){function e(e,r){t.call(this,e),this.expressions=r}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fa),za=function(t){function e(e,r,n,i){t.call(this,e),this.condition=r,this.trueExp=n,this.falseExp=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fa),Wa=function(t){function e(e,r,n){t.call(this,e),this.receiver=r,this.name=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fa),Ga=function(t){function e(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.value=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fa),Ka=function(t){function e(e,r,n){t.call(this,e),this.receiver=r,this.name=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fa),Xa=function(t){function e(e,r,n){t.call(this,e),this.obj=r,this.key=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fa),Ya=function(t){function e(e,r,n,i){t.call(this,e),this.obj=r,this.key=n,this.value=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fa),Qa=function(t){function e(e,r,n,i){t.call(this,e),this.exp=r,this.name=n,this.args=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fa),$a=function(t){function e(e,r){t.call(this,e),this.value=r}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fa),Za=function(t){function e(e,r){t.call(this,e),this.expressions=r}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fa),Ja=function(t){function e(e,r,n){t.call(this,e),this.keys=r,this.values=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fa),tu=function(t){function e(e,r,n){t.call(this,e),this.strings=r,this.expressions=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fa),eu=function(t){function e(e,r,n,i){t.call(this,e),this.operation=r,this.left=n,this.right=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fa),ru=function(t){function e(e,r){t.call(this,e),this.expression=r}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fa),nu=function(t){function e(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.args=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fa),iu=function(t){function e(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.args=i}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fa),ou=function(t){function e(e,r,n){t.call(this,e),this.target=r,this.args=n}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fa),su=function(t){function e(e,r,n,o){t.call(this,new Va(0,i(r)?0:r.length)),this.ast=e,this.source=r,this.location=n,this.errors=o}return Da(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fa),au=function(){function t(t,e,r,n,i){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=i}return t}(),uu=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),cu=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},pu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lu={};lu.Character=0,lu.Identifier=1,lu.Keyword=2,lu.String=3,lu.Operator=4,lu.Number=5,lu.Error=6,lu[lu.Character]="Character",lu[lu.Identifier]="Identifier",lu[lu.Keyword]="Keyword",lu[lu.String]="String",lu[lu.Operator]="Operator",lu[lu.Number]="Number",lu[lu.Error]="Error";var hu=["var","let","null","undefined","true","false","if","else","this"],fu=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new yu(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t=cu([R(),pu("design:paramtypes",[])],t)}(),du=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==lu.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==lu.Number},t.prototype.isString=function(){return this.type==lu.String},t.prototype.isOperator=function(t){return this.type==lu.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==lu.Identifier},t.prototype.isKeyword=function(){return this.type==lu.Keyword},t.prototype.isKeywordLet=function(){return this.type==lu.Keyword&&"let"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==lu.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==lu.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==lu.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==lu.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==lu.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==lu.Error},t.prototype.toNumber=function(){return this.type==lu.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case lu.Character:case lu.Identifier:case lu.Keyword:case lu.Operator:case lu.String:case lu.Error:return this.strValue;case lu.Number:return this.numValue.toString();default:return null}},t}(),vu=new du(-1,lu.Character,0,""),yu=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?ks:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Vs>=r;){if(++n>=e){r=ks;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(U(r))return this.scanIdentifier();if(T(r))return this.scanNumber(n);var i=n;switch(r){case Zs:return this.advance(),T(this.peek)?this.scanNumber(i):I(i,Zs);case Gs:case Ks:case Aa:case Ra:case fa:case va:case Qs:case ta:case ea:return this.scanCharacter(i,r);case Ws:case Us:return this.scanString();case Bs:case Ys:case $s:case Xs:case Js:case qs:case ya:return this.scanOperator(i,String.fromCharCode(r));case oa:return this.scanComplexOperator(i,"?",Zs,".");case ra:case ia:return this.scanComplexOperator(i,String.fromCharCode(r),na,"=");case Fs:case na:return this.scanComplexOperator(i,String.fromCharCode(r),na,"=",na,"=");case zs:return this.scanComplexOperator(i,"&",zs,"&");case Pa:return this.scanComplexOperator(i,"|",Pa,"|");case Ma:for(;C(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),I(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),D(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,i,o){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=i&&this.peek==i&&(this.advance(),s+=o),D(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();H(this.peek);)this.advance();var e=this.input.substring(t,this.index);return hu.indexOf(e)>-1?j(t,e):N(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(T(this.peek));else if(this.peek==Zs)e=!1;else{if(!q(this.peek))break;if(this.advance(),z(this.peek)&&this.advance(),!T(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?ro.parseIntAutoRadix(r):parseFloat(r);return V(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,i=this.input;this.peek!=e;)if(this.peek==da){r+=i.substring(n,this.index),this.advance();var o=void 0;if(this.peek==Oa){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else o=G(this.peek),this.advance();r+=String.fromCharCode(o),n=this.index}else{if(this.peek==ks)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(n,this.index);return this.advance(),L(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return F(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),mu=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},bu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},gu=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),_u=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),wu=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=ja),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Su(t,e,i,n.length,!0,this.errors,t.length-n.length).parseChain();return new su(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=ja);var n=this._parseBindingAst(t,e,r);return new su(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=ja);var n=this._parseBindingAst(t,e,r),i=Eu.check(n);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new su(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new La(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var i=this._parseQuote(t,e);if(n(i))return i;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),s=this._lexer.tokenize(o);return new Su(t,e,s,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(i(t))return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!B(n))return null;var o=t.substring(r+1);return new Ua(new Va(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,i)}return new Su(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=ja);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],s=0;s<n.expressions.length;++s){var a=n.expressions[s],u=this._stripComments(a),c=this._lexer.tokenize(this._stripComments(n.expressions[s])),p=new Su(t,e,c,u.length,!1,this.errors,n.offsets[s]+(a.length-u.length)).parseChain();o.push(p)}return new su(new tu(new Va(0,i(t)?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=ja);var n=K(r),i=t.split(n);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var p=i[c];c%2===0?(o.push(p),u+=p.length):p.trim().length>0?(u+=r.start.length,s.push(p),a.push(u),u+=p.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,r)+" in",e),s.push("$implict"),a.push(u))}return new gu(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new su(new $a(new Va(0,i(t)?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return n(e)?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Js&&o==Js&&i(e))return r;e===n?e=null:i(e)&&W(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=K(r),i=t.split(n);i.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",i=0;e>i;i++)n+=i%2===0?t[i]:""+r.start+t[i]+r.end;return n.length},t=mu([R(),bu("design:paramtypes",[fu])],t)}(),Su=function(){function t(t,e,r,n,i,o,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:vu},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Va(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(ea))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(ea););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ba(this.span(e)):1==t.length?t[0]:new qa(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(ta);)r.push(this.parseExpression());t=new Qa(this.span(t.span.start),t,e,r)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(ta))n=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),n=new Ba(this.span(t))}return new za(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new eu(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new eu(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new eu(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new eu(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new eu(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new eu(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==lu.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new eu(this.span(t),e,new $a(new Va(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new ru(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Zs))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(fa)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(va),this.optionalOperator("=")){var r=this.parseConditional();t=new Ya(this.span(t.span.start),t,e,r)}else t=new Xa(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Gs))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(Ks),t=new ou(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Gs)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Ks),e}if(this.next.isKeywordNull())return this.advance(),new $a(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $a(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $a(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $a(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ha(this.span(t));if(this.optionalCharacter(fa)){this.rbracketsExpected++;var r=this.parseExpressionList(va);return this.rbracketsExpected--,this.expectCharacter(va),new Za(this.span(t),r)}if(this.next.isCharacter(Aa))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ha(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new $a(this.span(t),n)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $a(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ba(this.span(t))):(this.error("Unexpected token "+this.next),new Ba(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Qs));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Aa),!this.optionalCharacter(Ra)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(ta),e.push(this.parsePipe())}while(this.optionalCharacter(Qs));this.rbracesExpected--,this.expectCharacter(Ra)}return new Ja(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Gs)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(Ks),this.rparensExpected--;var o=this.span(r);return e?new iu(o,t,n,i):new nu(o,t,n,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ba(this.span(r))):new Ka(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ba(this.span(r));var s=this.parseConditional();return new Ga(this.span(r),t,n,s)}return new Wa(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(Ks))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Qs));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index<this.tokens.length;){var n=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey();i||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(ta);var s=null,a=null;if(i)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==vu&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);a=new su(c,p,this.location,this.errors)}t.push(new au(this.span(n),o,i,s,a)),this.optionalCharacter(ea)||this.optionalCharacter(Qs)}return new _u(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new La(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),i(t)&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(ea)&&(this.rparensExpected<=0||!t.isCharacter(Ks))&&(this.rbracesExpected<=0||!t.isCharacter(Ra))&&(this.rbracketsExpected<=0||!t.isCharacter(va));)this.next.isError()&&this.errors.push(new La(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Eu=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),Ou=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return n(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,i=this.offset,o=this.line,s=this.col;i>0&&0>e;){i--,e++;var a=r.charCodeAt(i);if(a==Ns){o--;var u=r.substr(0,i-1).lastIndexOf(String.fromCharCode(Ns));s=u>0?i-u:i}else s--}for(;n>i&&e>0;){var a=r.charCodeAt(i);i++,e--,a==Ns?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var r=this.file.content,i=this.offset;if(n(i)){i>r.length-1&&(i=r.length-1);for(var o=i,s=0,a=0;t>s&&i>0&&(i--,s++,"\n"!=r[i]||++a!=e););for(s=0,a=0;t>s&&o<r.length-1&&(o++,s++,"\n"!=r[o]||++a!=e););return{before:r.substring(i,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),xu=function(){function t(t,e){this.content=t,this.url=e}return t}(),Cu=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Tu={};Tu.WARNING=0,Tu.FATAL=1,Tu[Tu.WARNING]="WARNING",Tu[Tu.FATAL]="FATAL";var Au=function(){function t(t,e,r){void 0===r&&(r=Tu.FATAL),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"[ERROR ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Pu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ru=function(){function t(t,e,r,n,i){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Mu=function(){function t(t,e,r,n,i){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ku=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Iu=function(){function t(t,e,r,n,i,o){this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Nu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ju=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Du={};Du.TAG_OPEN_START=0,Du.TAG_OPEN_END=1,Du.TAG_OPEN_END_VOID=2,Du.TAG_CLOSE=3,Du.TEXT=4,Du.ESCAPABLE_RAW_TEXT=5,Du.RAW_TEXT=6,Du.COMMENT_START=7,Du.COMMENT_END=8,Du.CDATA_START=9,Du.CDATA_END=10,Du.ATTR_NAME=11,Du.ATTR_VALUE=12,Du.DOC_TYPE=13,Du.EXPANSION_FORM_START=14,Du.EXPANSION_CASE_VALUE=15,Du.EXPANSION_CASE_EXP_START=16,Du.EXPANSION_CASE_EXP_END=17,Du.EXPANSION_FORM_END=18,Du.EOF=19,Du[Du.TAG_OPEN_START]="TAG_OPEN_START",Du[Du.TAG_OPEN_END]="TAG_OPEN_END",Du[Du.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Du[Du.TAG_CLOSE]="TAG_CLOSE",Du[Du.TEXT]="TEXT",Du[Du.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Du[Du.RAW_TEXT]="RAW_TEXT",Du[Du.COMMENT_START]="COMMENT_START",Du[Du.COMMENT_END]="COMMENT_END",Du[Du.CDATA_START]="CDATA_START",Du[Du.CDATA_END]="CDATA_END",Du[Du.ATTR_NAME]="ATTR_NAME",Du[Du.ATTR_VALUE]="ATTR_VALUE",Du[Du.DOC_TYPE]="DOC_TYPE",Du[Du.EXPANSION_FORM_START]="EXPANSION_FORM_START",Du[Du.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Du[Du.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Du[Du.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Du[Du.EXPANSION_FORM_END]="EXPANSION_FORM_END",Du[Du.EOF]="EOF";var Lu=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),Vu=function(t){
+function e(e,r,n){t.call(this,n,e),this.tokenType=r}return ju(e,t),e}(Au),Fu=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Uu=/\r\n?/g,Bu=function(){function t(t){this.error=t}return t}(),Hu=function(){function t(t,e,r,n){void 0===n&&(n=ja),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Uu,"\n")},t.prototype.tokenize=function(){for(;this._peek!==ks;){var t=this._getLocation();try{this._attemptCharCode(ra)?this._attemptCharCode(Fs)?this._attemptCharCode(fa)?this._consumeCdata(t):this._attemptCharCode($s)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Js)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Bu))throw e;this.errors.push(e.error)}}return this._beginToken(Du.EOF),this._endToken([]),new Fu(at(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(nt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(it(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ra){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Ou(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Cu(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new Lu(this._currentTokenType,t,new Cu(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new Vu(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Bu(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Q(ks),this._getSpan());this._peek===Ns?(this._line++,this._column=0):this._peek!==Ns&&this._peek!==Ls&&this._column++,this._index++,this._peek=this._index>=this._length?ks:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?ks:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return ot(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Q(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Q(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(Q(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===zs)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Bs)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(rt),this._peek!=ea)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=Ko[r];if(!n)throw this._createError($(r),this._getSpan(t));return n}var i=this._attemptCharCode(Ca)||this._attemptCharCode(la),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(et),this._peek!=ea)throw this._createError(Q(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError($(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,i=this._getLocation();this._beginToken(t?Du.ESCAPABLE_RAW_TEXT:Du.RAW_TEXT,i);for(var o=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&o.push(this._input.substring(n.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Du.COMMENT_START,t),this._requireCharCode($s),this._endToken([]);var r=this._consumeRawText(!1,$s,function(){return e._attemptStr("->")});this._beginToken(Du.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Du.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,va,function(){return e._attemptStr("]>")});this._beginToken(Du.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Du.DOC_TYPE,t),this._attemptUntilChar(ia),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==ta&&!tt(this._peek);)this._advance();var r;this._peek===ta?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(J,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!A(this._peek))throw this._createError(Q(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(Z);this._peek!==Js&&this._peek!==ia;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Z),this._attemptCharCode(na)&&(this._attemptCharCodeUntilFn(Z),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Z);this._consumeTagOpenEnd()}catch(o){if(o instanceof Bu)return this._restorePosition(n),this._beginToken(Du.TEXT,t),void this._endToken(["<"]);throw o}var s=this._getTagDefinition(e).contentType;s===Go.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===Go.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,ra,function(){return r._attemptCharCode(Js)?(r._attemptCharCodeUntilFn(Z),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(Z),r._attemptCharCode(ia)):!1):!1});this._beginToken(Du.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Du.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Du.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Du.ATTR_VALUE);var t;if(this._peek===Ws||this._peek===Us){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(J,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Js)?Du.TAG_OPEN_END_VOID:Du.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ia),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Du.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Z);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Z),this._requireCharCode(ia),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Du.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Aa),this._endToken([]),this._expansionCaseStack.push(Du.EXPANSION_FORM_START),this._beginToken(Du.RAW_TEXT,this._getLocation());var t=this._readUntil(Qs);this._endToken([t],this._getLocation()),this._requireCharCode(Qs),this._attemptCharCodeUntilFn(Z),this._beginToken(Du.RAW_TEXT,this._getLocation());var e=this._readUntil(Qs);this._endToken([e],this._getLocation()),this._requireCharCode(Qs),this._attemptCharCodeUntilFn(Z)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Du.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Aa).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._beginToken(Du.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Aa),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.push(Du.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Du.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ra),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Du.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ra),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Du.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===ra||this._peek===ks)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(nt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ra&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Du.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Du.EXPANSION_FORM_START},t}(),qu=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},zu=function(t){function e(e,r,n){t.call(this,r,n),this.elementName=e}return qu(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}(Au),Wu=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Gu=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=ja);var i=Y(t,e,this.getTagDefinition,r,n),o=new Ku(i.tokens,this.getTagDefinition).build();return new Wu(o.rootNodes,i.errors.concat(o.errors))},t}(),Ku=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Du.EOF;)this._peek.type===Du.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Du.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Du.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Du.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Du.TEXT||this._peek.type===Du.RAW_TEXT||this._peek.type===Du.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Du.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Wu(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(Du.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Du.RAW_TEXT);this._advanceIf(Du.COMMENT_END);var r=n(e)?e.parts[0].trim():null;this._addToParent(new Nu(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===Du.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;n.push(i)}if(this._peek.type!==Du.EXPANSION_FORM_END)return void this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new Cu(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Ru(e.parts[0],r.parts[0],n,o,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Du.EXPANSION_CASE_EXP_START)return this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var i=this._advance();n.push(new Lu(Du.EOF,[],i.sourceSpan));var o=new t(n,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Cu(e.sourceSpan.start,i.sourceSpan.end),a=new Cu(r.sourceSpan.start,i.sourceSpan.end);return new Mu(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[Du.EXPANSION_CASE_EXP_START];;){if((this._peek.type===Du.EXPANSION_FORM_START||this._peek.type===Du.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===Du.EXPANSION_CASE_EXP_END){if(!ut(r,Du.EXPANSION_CASE_EXP_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===Du.EXPANSION_FORM_END){if(!ut(r,Du.EXPANSION_FORM_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===Du.EOF)return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();n(r)&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Pu(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===Du.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,r,this._getParentElement()),o=!1;if(this._peek.type===Du.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==l(i)||s.isVoid||this._errors.push(zu.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Du.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Cu(t.sourceSpan.start,a),c=new Iu(i,n,[],u,u,null);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),i=n.parent,o=n.container;if(i&&r.requireExtraParent(i.name)){var s=new Iu(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(zu.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(zu.create(e,t.sourceSpan,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,r=h(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i="";if(this._peek.type===Du.ATTR_VALUE){var o=this._advance();i=o.parts[0],n=o.sourceSpan.end,e=o.sourceSpan}return new ku(r,i,new Cu(t.sourceSpan.start,n),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();n(e)?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return i(t)&&(t=this.getTagDefinition(e).implicitNamespacePrefix,i(t)&&n(r)&&(t=l(r.name))),h(t,e)},t}(),Xu=function(){function t(t,e,r,n,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=i}return t}(),Yu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qu=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),$u=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),Zu=function(){function t(t,e,r,n,i,o,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ju=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),tc=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ec={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},rc=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var i=t.toUpperCase(),o=ec[i]||"TAG_"+i,s=this._generateUniqueName(r?o:"START_"+o);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ec[r]||"TAG_"+r,i=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var i=this._generateUniqueName(r);return this._signatureToName[n]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,i=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),o=r?"/>":"></"+t+">";return n+i+o},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),nc=new wu(new fu),ic=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r){this._isIcu=1==t.length&&t[0]instanceof Ru,this._icuDepth=0,this._placeholderRegistry=new rc,this._placeholderToContent={},this._placeholderToMessage={};var n=X(this,t,{});return new Xu(n,this._placeholderToContent,this._placeholderToMessage,e,r)},t.prototype.visitElement=function(t){var e=X(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=f(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[i]=t.sourceSpan.toString();var o="";return n||(o=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[o]="</"+t.name+">"),new Zu(t.name,r,i,o,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},i=new $u(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new Qu(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var o=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=o,this._placeholderToContent[o]=e.switchValue,i}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"",""),new tc(i,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new Yu(t,e);for(var n=[],i=new Qu(n,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],p=pt(c)||"INTERPOLATION",l=this._placeholderRegistry.getPlaceholderName(p,c);r.strings[u].length&&n.push(new Yu(r.strings[u],e)),n.push(new Ju(c,l,e)),this._placeholderToContent[l]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new Yu(r.strings[h],e)),i},t}(),oc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,sc=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ac=function(t){function e(e,r){t.call(this,e,r)}return sc(e,t),e}(Au),uc="i18n",cc="i18n-",pc=/^i18n:?/,lc=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),hc={};hc.Extract=0,hc.Merge=1,hc[hc.Extract]="Extract",hc[hc.Merge]="Merge";var fc=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(hc.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new lc(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(hc.Merge,r),this._translations=e;var n=new Iu("wrapper",[],t,null,null,null),i=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Wu(i.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=X(this,t.expression,e);return this._mode===hc.Merge?new Mu(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=X(this,t.cases,e);return this._mode===hc.Merge&&(t=new Ru(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=ft(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=dt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,n);return X(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(pc,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n,i=this._inI18nNode,o=this._inImplicitNode,s=[],a=vt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==hc.Extract&&X(this,t.children);else{if(a||p){this._inI18nNode=!0;var l=this._addMessage(t.children,u);n=this._translateMessage(t,l)}if(this._mode==hc.Extract){var h=a||p;h&&this._openTranslatableSection(t),X(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===hc.Merge){var f=n||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(s=s.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===hc.Merge){var d=this._translateAttributes(t);return new Iu(t.name,d,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=ct(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(cc)}).forEach(function(t){return r[t.name.slice(cc.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof ku&&!t[0].value)){var r=yt(e),n=r[0],i=r[1],o=this._createI18nMessage(t,n,i);return this._messages.push(o),o}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===hc.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(cc)&&(n[t.name.slice(cc.length)]=yt(t.value)[0])});var i=[];return r.forEach(function(r){if(r.name!==uc&&!r.name.startsWith(cc))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var o=n[r.name],s=e._createI18nMessage([r],o,""),a=e._translations.get(s);if(a)if(0==a.length)i.push(new ku(r.name,"",r.sourceSpan));else if(a[0]instanceof Pu){var u=a[0].value;i.push(new ku(r.name,u,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+e._translations.digest(s)+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+e._translations.digest(s)+'")')}else i.push(r)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Nu?0:1)},0);if(1==n)for(var i=this._messages.length-1;i>=r;i--){var o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof Yu)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dc=function(){function t(){this.closedByParent=!1,this.contentType=Go.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),vc=new dc,yc=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},mc=function(t){function e(){t.call(this,mt)}return yc(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n,null)},e}(Gu),bc=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},gc=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;
+
+return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),_c=new gc,wc=function(t){function e(){t.apply(this,arguments)}return bc(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(gc),Sc={};Sc.Little=0,Sc.Big=1,Sc[Sc.Little]="Little",Sc[Sc.Big]="Big";var Ec=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Oc=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},xc=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),Cc=new xc,Tc=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=Wt(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Ac=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Pc=function(){function t(t,e,r){var n=this;void 0===e&&(e={}),void 0===r&&(r=[]),this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=Wt(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Rc=function(){function t(t){this.value=Wt(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Mc=function(t){function e(e){void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))}return Oc(e,t),e}(Rc),kc=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],Ic=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Nc="1.2",jc="urn:oasis:names:tc:xliff:document:1.2",Dc="en",Lc="x",Vc="source",Fc="target",Uc="trans-unit",Bc=function(t){function e(){t.apply(this,arguments)}return Ic(e,t),e.prototype.write=function(t){var e=this,r=new Hc,n={},i=[];t.forEach(function(t){var o=e.digest(t);if(!n[o]){n[o]=!0;var s=new Pc(Uc,{id:o,datatype:"html"});s.children.push(new Mc(8),new Pc(Vc,{},r.serialize(t.nodes)),new Mc(8),new Pc(Fc)),t.description&&s.children.push(new Mc(8),new Pc("note",{priority:"1",from:"description"},[new Rc(t.description)])),t.meaning&&s.children.push(new Mc(8),new Pc("note",{priority:"1",from:"meaning"},[new Rc(t.meaning)])),s.children.push(new Mc(6)),i.push(new Mc(6),s)}});var o=new Pc("body",{},i.concat([new Mc(4)])),s=new Pc("file",{"source-language":Dc,datatype:"plaintext",original:"ng2.template"},[new Mc(4),o,new Mc(2)]),a=new Pc("xliff",{version:Nc,xmlns:jc},[new Mc(2),s,new Mc]);return zt([new Tc({version:"1.0",encoding:"UTF-8"}),new Mc,a,new Mc])},e.prototype.load=function(t,e){var r=new qc,n=r.parse(t,e),i=n.mlNodesByMsgId,o=n.errors,s={},a=new zc;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),r=e.i18nNodes,n=e.errors;o.push.apply(o,n),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return bt(t)},e}(Ec),Hc=function(){function t(){}return t.prototype.visitText=function(t){return[new Rc(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=Gt(t.tag),r=new Pc(Lc,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new Pc(Lc,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new Pc(Lc,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Pc(Lc,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,(r=[]).concat.apply(r,t.map(function(t){return t.visit(e)}));var r},t}(),qc=function(){function t(){}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var r=(new mc).parse(t,e,!1);return this._errors=r.errors,X(this,r.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case Uc:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(X(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[r]=this._unitMlNodes:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+Uc+'> misses the "id" attribute');break;case Vc:break;case Fc:this._unitMlNodes=t.children;break;default:X(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),zc=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Yu(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Lc){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+Lc+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),Wc=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Gc="messagebundle",Kc="msg",Xc="ph",Yc="ex",Qc='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',$c=function(t){function e(){t.apply(this,arguments)}return Wc(e,t),e.prototype.write=function(t){var e=this,r=new Jc,n=new Zc,i={},o=new Pc(Gc);return t.forEach(function(t){var r=e.digest(t);if(!i[r]){i[r]=!0;var s=e.createNameMapper(t),a={id:r};t.description&&(a.desc=t.description),t.meaning&&(a.meaning=t.meaning),o.children.push(new Mc(2),new Pc(Kc,a,n.serialize(t.nodes,{mapper:s})))}}),o.children.push(new Mc),zt([new Tc({version:"1.0",encoding:"UTF-8"}),new Mc,new Ac(Gc,Qc),new Mc,r.addDefaultExamples(o),new Mc])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Ec),Zc=function(){function t(){}return t.prototype.visitText=function(t){return[new Rc(t.value)]},t.prototype.visitContainer=function(t,e){var r=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(r,e))}),n},t.prototype.visitIcu=function(t,e){var r=this,n=[new Rc("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(i){n.push.apply(n,[new Rc(i+" {")].concat(t.cases[i].visit(r,e),[new Rc("} ")]))}),n.push(new Rc("}")),n},t.prototype.visitTagPlaceholder=function(t,e){var r=new Pc(Yc,{},[new Rc("<"+t.tag+">")]),n=e.mapper.toPublicName(t.startName),i=new Pc(Xc,{name:n},[r]);if(t.isVoid)return[i];var o=new Pc(Yc,{},[new Rc("</"+t.tag+">")]);n=e.mapper.toPublicName(t.closeName);var s=new Pc(Xc,{name:n},[o]);return[i].concat(this.serialize(t.children,e),[s])},t.prototype.visitPlaceholder=function(t,e){var r=e.mapper.toPublicName(t.name);return[new Pc(Xc,{name:r})]},t.prototype.visitIcuPlaceholder=function(t,e){var r=e.mapper.toPublicName(t.name);return[new Pc(Xc,{name:r})]},t.prototype.serialize=function(t,e){var r=this;return(n=[]).concat.apply(n,t.map(function(t){return t.visit(r,e)}));var n},t}(),Jc=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Xc){if(!t.children||0==t.children.length){var r=new Rc(t.attrs.name||"...");t.children=[new Pc(Yc,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),tp=function(){function t(t){var e=this;this.internalToXmb={},this.xmbToNextId={},this.xmbToInternal={},t.nodes.forEach(function(t){return t.visit(e)})}return t.prototype.toPublicName=function(t){return this.internalToXmb.hasOwnProperty(t)?this.internalToXmb[t]:null},t.prototype.toInternalName=function(t){return this.xmbToInternal.hasOwnProperty(t)?this.xmbToInternal[t]:null},t.prototype.visitText=function(){return null},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;this.addPlaceholder(t.startName),t.children.forEach(function(t){return t.visit(e)}),this.addPlaceholder(t.closeName)},t.prototype.visitPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.visitIcuPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.addPlaceholder=function(t){if(t&&!this.internalToXmb.hasOwnProperty(t)){var e=t.toUpperCase().replace(/[^A-Z0-9_]/g,"_");if(this.xmbToInternal.hasOwnProperty(e)){var r=this.xmbToNextId[e];this.xmbToNextId[e]=r+1,e=e+"_"+r}else this.xmbToNextId[e]=1;this.internalToXmb[t]=e,this.xmbToInternal[e]=t}},t}(),ep=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},rp="translationbundle",np="translation",ip="ph",op=function(t){function e(){t.apply(this,arguments)}return ep(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new sp,n=r.parse(t,e),i=n.mlNodesByMsgId,o=n.errors,s={},a=new ap;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),r=e.i18nNodes,n=e.errors;o.push.apply(o,n),s[t]=r}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Ec),sp=function(){function t(){}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._mlNodesByMsgId={};var r=(new mc).parse(t,e,!0);return this._errors=r.errors,X(this,r.rootNodes),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case rp:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+rp+"> elements can not be nested"),X(this,t.children,null),this._bundleDepth--;break;case np:var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):this._mlNodesByMsgId[r]=t.children}else this._addError(t,"<"+np+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),ap=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Yu(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return X(this,t.cases).forEach(function(r){e[r.value]=new Qu(r.nodes,t.sourceSpan)}),new $u(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===ip){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+ip+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),up=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},cp=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},pp=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lp=function(t){function e(){t.call(this,f)}return up(e,t),e.prototype.parse=function(e,r,n,i){return void 0===n&&(n=!1),void 0===i&&(i=ja),t.prototype.parse.call(this,e,r,n,i)},e=cp([R(),pp("design:paramtypes",[])],e)}(Gu),hp=function(){function t(t,e,r){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this.digest=e,this.mapperFactory=r,this._i18nToHtml=new fp(t,e,r)}return t.load=function(e,r,n){var i=n.load(e,r),o=function(t){return n.digest(t)},s=function(t){return n.createNameMapper(t)};return new t(i,o,s)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),fp=function(){function t(t,e,r){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._digest=e,this._mapperFactory=r,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new lp).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,"Unknown placeholder"),"")},t.prototype.visitTagPlaceholder=function(){throw"unreachable code"},t.prototype.visitIcuPlaceholder=function(){throw"unreachable code"},t.prototype._convertToText=function(t){var e=this,r=this._digest(t),n=this._mapperFactory?this._mapperFactory(t):null;if(this._i18nNodesByMsgId.hasOwnProperty(r)){this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._mapper=function(t){return n?n.toInternalName(t):t};var i=this._i18nNodesByMsgId[r],o=i.map(function(t){return t.visit(e)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o}return this._addError(t.nodes[0],"Missing translation for message "+r),""},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dp=function(){function t(t,e,r){this._htmlParser=t,this._translations=e,this._translationsFormat=r}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=ja);var i=this._htmlParser.parse(t,e,r,n);if(!this._translations||""===this._translations)return i;if(i.errors.length)return new Wu(i.rootNodes,i.errors);var o=this._createSerializer(),s=hp.load(this._translations,e,o);return ht(i.rootNodes,s,n,[],{})},t.prototype._createSerializer=function(){var t=(this._translationsFormat||"xlf").toLowerCase();switch(t){case"xmb":return new $c;case"xtb":return new op;case"xliff":case"xlf":default:return new Bc}},t}(),vp=Xt("core","linker/view"),yp=Xt("core","linker/view_utils"),mp=Xt("core","change_detection/change_detection"),bp=Xt("core","animation/animation_style_util"),gp=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Xt("core","metadata/di"),runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},t.ViewUtils={name:"ViewUtils",moduleUrl:Xt("core","linker/view_utils"),runtime:go.ViewUtils},t.AppView={name:"AppView",moduleUrl:vp,runtime:fo},t.DebugAppView={name:"DebugAppView",moduleUrl:vp,runtime:vo},t.ViewContainer={name:"ViewContainer",moduleUrl:Xt("core","linker/view_container"),runtime:po},t.ElementRef={name:"ElementRef",moduleUrl:Xt("core","linker/element_ref"),runtime:e.ElementRef},t.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Xt("core","linker/view_container_ref"),runtime:e.ViewContainerRef},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Xt("core","change_detection/change_detector_ref"),runtime:e.ChangeDetectorRef},t.RenderComponentType={name:"RenderComponentType",moduleUrl:Xt("core","render/api"),runtime:e.RenderComponentType},t.QueryList={name:"QueryList",moduleUrl:Xt("core","linker/query_list"),runtime:e.QueryList},t.TemplateRef={name:"TemplateRef",moduleUrl:Xt("core","linker/template_ref"),runtime:e.TemplateRef},t.TemplateRef_={name:"TemplateRef_",moduleUrl:Xt("core","linker/template_ref"),runtime:xo},t.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:lo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:e.ComponentFactoryResolver},t.ComponentFactory={name:"ComponentFactory",runtime:e.ComponentFactory,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef_={name:"ComponentRef_",runtime:ho,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef={name:"ComponentRef",runtime:e.ComponentRef,moduleUrl:Xt("core","linker/component_factory")},t.NgModuleFactory={name:"NgModuleFactory",runtime:e.NgModuleFactory,moduleUrl:Xt("core","linker/ng_module_factory")},t.NgModuleInjector={name:"NgModuleInjector",runtime:yo,moduleUrl:Xt("core","linker/ng_module_factory")},t.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:mo,moduleUrl:Xt("core","linker/ng_module_factory_loader")},t.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:mp,runtime:Oo},t.Injector={name:"Injector",moduleUrl:Xt("core","di/injector"),runtime:e.Injector},t.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Xt("core","metadata/view"),runtime:e.ViewEncapsulation},t.ViewType={name:"ViewType",moduleUrl:Xt("core","linker/view_type"),runtime:bo},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:mp,runtime:e.ChangeDetectionStrategy},t.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:Xt("core","linker/debug_context"),runtime:wo},t.DebugContext={name:"DebugContext",moduleUrl:Xt("core","linker/debug_context"),runtime:_o},t.Renderer={name:"Renderer",moduleUrl:Xt("core","render/api"),runtime:e.Renderer},t.SimpleChange={name:"SimpleChange",moduleUrl:mp,runtime:e.SimpleChange},t.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:mp,runtime:Eo},t.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:mp,runtime:so},t.checkBinding={name:"checkBinding",moduleUrl:yp,runtime:go.checkBinding},t.devModeEqual={name:"devModeEqual",moduleUrl:mp,runtime:So},t.inlineInterpolate={name:"inlineInterpolate",moduleUrl:yp,runtime:go.inlineInterpolate},t.interpolate={name:"interpolate",moduleUrl:yp,runtime:go.interpolate},t.castByValue={name:"castByValue",moduleUrl:yp,runtime:go.castByValue},t.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:yp,runtime:go.EMPTY_ARRAY},t.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:yp,runtime:go.EMPTY_MAP},t.createRenderElement={name:"createRenderElement",moduleUrl:yp,runtime:go.createRenderElement},t.selectOrCreateRenderHostElement={name:"selectOrCreateRenderHostElement",moduleUrl:yp,runtime:go.selectOrCreateRenderHostElement},t.pureProxies=[null,{name:"pureProxy1",moduleUrl:yp,runtime:go.pureProxy1},{name:"pureProxy2",moduleUrl:yp,runtime:go.pureProxy2},{name:"pureProxy3",moduleUrl:yp,runtime:go.pureProxy3},{name:"pureProxy4",moduleUrl:yp,runtime:go.pureProxy4},{name:"pureProxy5",moduleUrl:yp,runtime:go.pureProxy5},{name:"pureProxy6",moduleUrl:yp,runtime:go.pureProxy6},{name:"pureProxy7",moduleUrl:yp,runtime:go.pureProxy7},{name:"pureProxy8",moduleUrl:yp,runtime:go.pureProxy8},{name:"pureProxy9",moduleUrl:yp,runtime:go.pureProxy9},{name:"pureProxy10",moduleUrl:yp,runtime:go.pureProxy10}],t.SecurityContext={name:"SecurityContext",moduleUrl:Xt("core","security"),runtime:e.SecurityContext},t.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:Xt("core","animation/animation_keyframe"),runtime:Io},t.AnimationStyles={name:"AnimationStyles",moduleUrl:Xt("core","animation/animation_styles"),runtime:No},t.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:Xt("core","animation/animation_player"),runtime:Ro},t.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:Xt("core","animation/animation_group_player"),runtime:ko},t.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:Xt("core","animation/animation_sequence_player"),runtime:Mo},t.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:bp,runtime:Fo},t.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:bp,runtime:Uo},t.clearStyles={name:"clearStyles",moduleUrl:bp,runtime:Bo},t.renderStyles={name:"renderStyles",moduleUrl:bp,runtime:qo},t.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:bp,runtime:Ho},t.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Xt("core","i18n/tokens"),runtime:e.LOCALE_ID},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Xt("core","i18n/tokens"),runtime:e.TRANSLATIONS_FORMAT},t.setBindingDebugInfo={name:"setBindingDebugInfo",moduleUrl:yp,runtime:go.setBindingDebugInfo},t.setBindingDebugInfoForChanges={name:"setBindingDebugInfoForChanges",moduleUrl:yp,runtime:go.setBindingDebugInfoForChanges},t.AnimationTransition={name:"AnimationTransition",moduleUrl:Xt("core","animation/animation_transition"),runtime:Wo},t.InlineArray={name:"InlineArray",moduleUrl:yp,runtime:null},t.inlineArrays=[{name:"InlineArray2",moduleUrl:yp,runtime:go.InlineArray2},{name:"InlineArray2",moduleUrl:yp,runtime:go.InlineArray2},{name:"InlineArray4",moduleUrl:yp,runtime:go.InlineArray4},{name:"InlineArray8",moduleUrl:yp,runtime:go.InlineArray8},{name:"InlineArray16",moduleUrl:yp,runtime:go.InlineArray16}],t.EMPTY_INLINE_ARRAY={name:"EMPTY_INLINE_ARRAY",moduleUrl:yp,runtime:go.EMPTY_INLINE_ARRAY},t.InlineArrayDynamic={name:"InlineArrayDynamic",moduleUrl:yp,runtime:go.InlineArrayDynamic},t.subscribeToRenderElement={name:"subscribeToRenderElement",moduleUrl:yp,runtime:go.subscribeToRenderElement},t.createRenderComponentType={name:"createRenderComponentType",moduleUrl:yp,runtime:go.createRenderComponentType},t.noop={name:"noop",moduleUrl:yp,runtime:go.noop},t}(),_p=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},wp=["zero","one","two","few","many","other"],Sp=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),Ep=function(t){function e(e,r){t.call(this,e,r)}return _p(e,t),e}(Au),Op=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Iu(t.name,t.attrs,X(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ee(t,this.errors):re(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),xp=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Cp=function(t){function e(e,r){t.call(this,r,e)}return xp(e,t),e}(Au),Tp=function(){function t(t,e){var r=this;this.component=t,this.sourceSpan=e,this.errors=[],this.viewQueries=ae(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){i(r.viewProviders.get(E(t.token)))&&r.viewProviders.set(E(t.token),!0)})}return t}(),Ap=function(){function t(t,e,r,i,o,s,a){var u=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=i,this._sourceSpan=a,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},o.forEach(function(t){return u._attrs[t.name]=t.value});var c=i.map(function(t){return t.directive});this._allProviders=oe(c,a,t.errors),this._contentQueries=ue(c);var p=new Map;Array.from(this._allProviders.values()).forEach(function(t){u._addQueryReadsTo(t.token,p)}),s.forEach(function(t){u._addQueryReadsTo({value:t.name},p)}),n(p.get(Yt(gp.ViewContainerRef)))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||n(p.get(E(t.token)));e&&u._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e){this._getQueriesFor(t).forEach(function(r){var n=r.read||t;i(e.get(E(n)))&&e.set(E(n),!0)})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,i=0;null!==n;)e=n._contentQueries.get(E(t)),e&&r.push.apply(r,e.filter(function(t){return t.descendants||1>=i})),n._directiveAsts.length>0&&i++,n=n._parent;return e=this.viewContext.viewQueries.get(E(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var i=this,o=this._allProviders.get(E(e));if(!o||(t===Qi.Directive||t===Qi.PublicService)&&o.providerType===Qi.PrivateService||(t===Qi.PrivateService||t===Qi.PublicService)&&o.providerType===Qi.Builtin)return null;var s=this._transformedProviders.get(E(e));if(s)return s;if(n(this._seenProviders.get(E(e))))return this.viewContext.errors.push(new Cp("Cannot instantiate cyclic dependency! "+S(e),this._sourceSpan)),null;this._seenProviders.set(E(e),!0);var a=o.providers.map(function(t){var e,s=t.useValue,a=t.useExisting;if(n(t.useExisting)){var u=i._getDependency(o.providerType,{token:t.useExisting},r);n(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,r)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,r)})}return ne(t,{useExisting:a,useValue:s,deps:e})});return s=ie(o,{eager:r,providers:a}),this._transformedProviders.set(E(e),s),s},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=null),e.isAttribute){var i=this._attrs[e.token.value];return{isValue:!0,value:null==i?null:i}}if(n(e.token)){if(t===Qi.Directive||t===Qi.Component){if(E(e.token)===Yt(gp.Renderer)||E(e.token)===Yt(gp.ElementRef)||E(e.token)===Yt(gp.ChangeDetectorRef)||E(e.token)===Yt(gp.TemplateRef))return e;E(e.token)===Yt(gp.ViewContainerRef)&&(this._hasViewContainer=!0)}if(E(e.token)===Yt(gp.Injector))return e;if(n(this._getOrCreateLocalProvider(t,e.token,r)))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=null);var i=this,o=r,s=null;if(e.isSkipSelf||(s=this._getLocalDependency(t,e,r)),e.isSelf)!s&&e.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(Qi.PublicService,e,o)}s||(s=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===E(e.token)||n(this.viewContext.viewProviders.get(E(e.token)))?e:e.isOptional?s={isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new Cp("No provider for "+S(e.token),this._sourceSpan)),s},t}(),Pp=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};se([e],Qi.PublicService,!0,r,n._errors,n._allProviders)}),se(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),Qi.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,i=this._allProviders.get(E(t));if(!i)return null;var o=this._transformedProviders.get(E(t));if(o)return o;if(n(this._seenProviders.get(E(t))))return this._errors.push(new Cp("Cannot instantiate cyclic dependency! "+S(t),i.sourceSpan)),null;this._seenProviders.set(E(t),!0);var s=i.providers.map(function(t){var o,s=t.useValue,a=t.useExisting;
+
+if(n(t.useExisting)){var u=r._getDependency({token:t.useExisting},e,i.sourceSpan);n(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;o=c.map(function(t){return r._getDependency(t,e,i.sourceSpan)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;o=c.map(function(t){return r._getDependency(t,e,i.sourceSpan)})}return ne(t,{useExisting:a,useValue:s,deps:o})});return o=ie(i,{eager:e,providers:s}),this._transformedProviders.set(E(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=null);var i=!1;!t.isSkipSelf&&n(t.token)&&(E(t.token)===Yt(gp.Injector)||E(t.token)===Yt(gp.ComponentFactoryResolver)?i=!0:n(this._getOrCreateLocalProvider(t.token,e))&&(i=!0));var o=t;return t.isSelf&&!i&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Cp("No provider for "+S(t.token),r))),o},t}(),Rp=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),Mp=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),kp=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Ip=/\/\*.+?\*\//g,Np=/^([^:\/?#]+):/,jp=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Dp=".",Lp="attr",Vp="class",Fp="style",Up="animate-",Bp={};Bp.DEFAULT=0,Bp.LITERAL_ATTR=1,Bp.ANIMATION=2,Bp[Bp.DEFAULT]="DEFAULT",Bp[Bp.LITERAL_ATTR]="LITERAL_ATTR",Bp[Bp.ANIMATION]="ANIMATION";var Hp=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Bp.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Bp.ANIMATION},enumerable:!0,configurable:!0}),t}(),qp=function(){function t(t,e,r,n,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=i,this.pipesByName=new Map,n.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.createDirectiveHostPropertyAsts=function(t,e){var r=this;if(t.hostProperties){var n=[];return Object.keys(t.hostProperties).forEach(function(i){var o=t.hostProperties[i];"string"==typeof o?r.parsePropertyBinding(i,o,!0,e,[],n):r._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),n.map(function(e){return r.createElementPropertyAst(t.selector,e)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?r.parseEvent(i,o,e,[],n):r._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),n}},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,i,o){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new zi(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,i):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,i))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,i=r.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,r),o.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),o.warnings.forEach(function(t){n._reportError(t,r,Tu.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,i){he(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Tu.FATAL),this._parseAnimation(t,e,r,n,i)):i.push(new Hp(t,this._exprParser.wrapLiteralPrimitive(e,""),Bp.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,i,o){var s=!1;t.startsWith(Up)?(s=!0,t=t.substring(Up.length)):he(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,i,o):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,i){var o=this.parseInterpolation(e,r);return o?(this._parsePropertyAst(t,o,r,n,i),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,i){n.push([t,e.source]),i.push(new Hp(t,e,Bp.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,i){var o=this._parseBinding(e||"null",!1,r);n.push([t,o.source]),i.push(new Hp(t,o,Bp.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,r),this._checkPipes(i,r),i}catch(o){return this._reportError(""+o,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new Bi(r.name,Zi.Animation,e.SecurityContext.NONE,!1,r.expression,null,r.sourceSpan);var n,i,o=null,s=null,a=r.name.split(Dp);if(a.length>1)if(a[0]==Lp){s=a[1],this._validatePropertyOrAttributeName(s,r.sourceSpan,!0),i=fe(this._schemaRegistry,t,s,!0);var u=s.indexOf(":");if(u>-1){var c=s.substring(0,u),p=s.substring(u+1);s=h(c,p)}n=Zi.Attribute}else a[0]==Vp?(s=a[1],n=Zi.Class,i=[e.SecurityContext.NONE]):a[0]==Fp&&(o=a.length>2?a[2]:null,s=a[1],n=Zi.Style,i=[e.SecurityContext.STYLE]);return null===s&&(s=this._schemaRegistry.getMappedPropName(r.name),i=fe(this._schemaRegistry,t,s,!1),n=Zi.Property,this._validatePropertyOrAttributeName(s,r.sourceSpan,!1)),new Bi(s,n,1===i.length?i[0]:null,i.length>1,r.expression,o,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,i){he(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,i)):this._parseEvent(t,e,r,n,i)},t.prototype._parseAnimationEvent=function(t,e,r,n){var i=y(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new Hi(o,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,i){var o=v(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,r);n.push([t,u.source]),i.push(new Hi(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof Ba?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Tu.FATAL),this._targetErrors.push(new Au(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var i=n[r];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new zp;t.visit(n),n.pipes.forEach(function(t,n){r.pipesByName.has(n)||r._reportError("The pipe '"+n+"' could not be found",new Cu(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Tu.FATAL)},t}(),zp=function(t){function e(){t.apply(this,arguments),this.pipes=new Map}return jp(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(uu),Wp="select",Gp="ng-content",Kp="link",Xp="rel",Yp="href",Qp="stylesheet",$p="style",Zp="script",Jp="ngNonBindable",tl="ngProjectAs",el={};el.NG_CONTENT=0,el.STYLE=1,el.STYLESHEET=2,el.SCRIPT=3,el.OTHER=4,el[el.NG_CONTENT]="NG_CONTENT",el[el.STYLE]="STYLE",el[el.STYLESHEET]="STYLESHEET",el[el.SCRIPT]="SCRIPT",el[el.OTHER]="OTHER";var rl=function(){function t(t,e,r,n,i){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=i}return t}(),nl=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},il=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ol=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},sl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,al=1,ul=2,cl=3,pl=4,ll=5,hl=6,fl=7,dl=8,vl=9,yl=10,ml="template",bl="template",gl="*",_l="class",wl=Zo.parse("*")[0],Sl=new e.OpaqueToken("TemplateTransforms"),El=function(t){function e(e,r,n){t.call(this,r,e,n)}return nl(e,t),e}(Au),Ol=function(){function t(t,e){this.templateAst=t,this.errors=e}return t}(),xl=function(){function t(t,e,r,n,i){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=r,this._console=n,this.transforms=i}return t.prototype.parse=function(t,e,r,n,i,o){var s=this.tryParse(t,e,r,n,i,o),a=s.errors.filter(function(t){return t.level===Tu.WARNING}),u=s.errors.filter(function(t){return t.level===Tu.FATAL});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new cs("Template parse errors:\n"+c)}return s.templateAst},t.prototype.tryParse=function(t,e,r,n,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,e,r,n,i,o)},t.prototype.tryParseHtml=function(t,e,n,i,o,s){var a,u=t.errors;if(t.rootNodes.length>0){var c=ge(i),p=ge(o),l=new Tp(e,t.rootNodes[0].sourceSpan),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new qp(this._exprParser,h,this._schemaRegistry,p,u),d=new Cl(l,c,f,this._schemaRegistry,s,u);a=X(d,t.rootNodes,Rl),u.push.apply(u,l.errors)}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Ol(a,u):(this.transforms&&this.transforms.forEach(function(t){a=r(t,a)}),new Ol(a,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=te(t.rootNodes);r.push.apply(r,n.errors),t=new Wu(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Na.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var i=new El('Reference "#'+n+'" is defined several times',t.sourceSpan,Tu.FATAL);e.push(i)}})})},t.ctorParameters=function(){return[{type:wu},{type:Rp},{type:dp},{type:Co},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Sl]}]}]},t=il([R(),ol("design:paramtypes",[wu,Rp,dp,Co,Array])],t)}(),Cl=function(){function t(t,e,r,n,i,o){var s=this;this.providerViewContext=t,this._bindingParser=r,this._schemaRegistry=n,this._schemas=i,this._targetErrors=o,this.selectorMatcher=new Jo,this.directivesIndex=new Map,this.ngContentCount=0,e.forEach(function(t,e){var r=Zo.parse(t.selector);s.selectorMatcher.addSelectables(r,t),s.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(wl),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new Fi(n,r,t.sourceSpan):new Vi(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,i=t.name,o=de(t);if(o.type===el.SCRIPT||o.type===el.STYLE)return null;if(o.type===el.STYLESHEET&&pe(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],v=!1,y=[],m=p(i.toLowerCase())[1],b=m==ml;t.attrs.forEach(function(t){var e,i,o=r._parseAttr(b,t,s,a,l,u,c),p=r._normalizeAttributeName(t.name);p==bl?e=t.value:p.startsWith(gl)&&(e=t.value,i=p.substring(gl.length)+":");var m=n(e);m&&(v&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),v=!0,r._bindingParser.parseInlineTemplateBinding(i,e,t.sourceSpan,f,h,d)),o||m||(y.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var g=me(i,s),_=this._parseDirectives(this.selectorMatcher,g),w=_.directives,S=_.matchElement,E=[],O=this._createDirectiveAsts(b,t.name,w,a,u,t.sourceSpan,E),x=this._createElementPropertyAsts(t.name,a,O),C=e.isTemplateElement||v,T=new Ap(this.providerViewContext,e.providerContext,C,O,y,E,t.sourceSpan),A=X(o.nonBindable?Ml:this,t.children,Pl.create(b,O,b?e.providerContext:T));T.afterElement();var P,R=n(o.projectAs)?Zo.parse(o.projectAs)[0]:g,M=e.findNgContentIndex(R);if(o.type===el.NG_CONTENT)t.children&&!t.children.every(be)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),P=new $i(this.ngContentCount++,v?null:M,t.sourceSpan);else if(b)this._assertAllEventsPublishedByDirectives(O,l),this._assertNoComponentsNorElementBindingsOnTemplate(O,x,t.sourceSpan),P=new Gi(y,l,E,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,A,v?null:M,t.sourceSpan);else{this._assertElementExists(S,t),this._assertOnlyOneComponent(O,t.sourceSpan);var k=v?null:e.findNgContentIndex(R);P=new Wi(i,y,x,l,E,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,A,v?null:k,t.sourceSpan,t.endSourceSpan),this._findComponentDirectives(O).forEach(function(t){return r._validateElementAnimationInputOutputs(t.hostProperties,t.hostEvents,t.directive.template)});var I=T.viewContext.component.template;this._validateElementAnimationInputOutputs(x,l,I.toSummary())}if(v){var N=me(ml,f),j=this._parseDirectives(this.selectorMatcher,N).directives,D=this._createDirectiveAsts(!0,t.name,j,h,[],t.sourceSpan,[]),L=this._createElementPropertyAsts(t.name,h,D);this._assertNoComponentsNorElementBindingsOnTemplate(D,L,t.sourceSpan);var V=new Ap(this.providerViewContext,e.providerContext,e.isTemplateElement,D,[],[],t.sourceSpan);V.afterElement(),P=new Gi([],[],[],d,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,[P],M,t.sourceSpan)}return P},t.prototype._validateElementAnimationInputOutputs=function(t,e,r){var n=this,i=new Set;r.animations.forEach(function(t){i.add(t)});var o=t.filter(function(t){return t.isAnimation});o.forEach(function(t){var e=t.name;i.has(e)||n._reportError("Couldn't find an animation entry for \""+e+'"',t.sourceSpan)}),e.forEach(function(t){if(t.isAnimation){var e=o.find(function(e){return e.name==t.name});e||n._reportError("Unable to listen on (@"+t.name+"."+t.phase+") because the animation trigger [@"+t.name+"] isn't being used on the same element",t.sourceSpan)}})},t.prototype._parseAttr=function(t,e,r,i,o,s,a){var u=this._normalizeAttributeName(e.name),c=e.value,p=e.sourceSpan,l=u.match(sl),h=!1;if(null!==l)if(h=!0,n(l[al]))this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,r,i);else if(l[ul])if(t){var f=l[fl];this._parseVariable(f,c,p,a)}else this._reportError('"let-" is only supported on template elements.',p);else if(l[cl]){var f=l[fl];this._parseReference(f,c,p,s)}else l[pl]?this._bindingParser.parseEvent(l[fl],c,p,r,o):l[ll]?(this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,r,i),this._parseAssignmentEvent(l[fl],c,p,r,o)):l[hl]?this._bindingParser.parseLiteralAttr(u,c,p,r,i):l[dl]?(this._bindingParser.parsePropertyBinding(l[dl],c,!1,p,r,i),this._parseAssignmentEvent(l[dl],c,p,r,o)):l[vl]?this._bindingParser.parsePropertyBinding(l[vl],c,!1,p,r,i):l[yl]&&this._bindingParser.parseEvent(l[yl],c,p,r,o);else h=this._bindingParser.parsePropertyInterpolation(u,c,p,r,i);return h||this._bindingParser.parseLiteralAttr(u,c,p,r,i),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new zi(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Al(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,i)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,r,n,i,o,s){var a=this,u=new Set,c=null,p=r.map(function(t){var r=new Cu(o.start,o.end,"Directive "+_(t.type));t.isComponent&&(c=t);var p=[],l=a._bindingParser.createDirectiveHostPropertyAsts(t,r);a._checkPropertiesInSchema(e,l);var h=a._bindingParser.createDirectiveHostEventAsts(t,r);return a._createDirectivePropertyAsts(t.inputs,n,p),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new qi(e.name,$t(t.type),e.sourceSpan)),u.add(e.name))}),new Xi(t,p,l,h,r)});return i.forEach(function(e){if(e.value.length>0)u.has(e.name)||a._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!c){var r=null;t&&(r=Zt(gp.TemplateRef)),s.push(new qi(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r){if(t){var n=new Map;e.forEach(function(t){var e=n.get(t.name);(!e||e.isLiteral)&&n.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],o=n.get(i);o&&r.push(new Ki(e,o.name,o.expression,o.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,i=[],o=new Map;return r.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){e.isLiteral||o.get(e.name)||i.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i),i},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return _(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n"+("1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+r+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.");this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,i=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];i.add(r)})}),e.forEach(function(t){(n(t.target)||!i.has(t.name))&&r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;e.forEach(function(e){if(e.type===Zi.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n")),r._reportError(n,e.sourceSpan)}})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Tu.FATAL),this._targetErrors.push(new Au(e,t,r))},t}(),Tl=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=de(t);if(r.type===el.SCRIPT||r.type===el.STYLE||r.type===el.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),i=me(t.name,n),o=e.findNgContentIndex(i),s=X(this,t.children,Rl);return new Wi(t.name,X(this,t.attrs),[],[],[],[],[],!1,s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(wl);return new Vi(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Al=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Pl=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var i=new Jo,o=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?o=u:i.addSelectables(Zo.parse(a[u]),u)}return new t(e,i,o,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),n(this._wildcardNgContentIndex)&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Rl=new Pl(!0,new Jo,null,null),Ml=new Tl,kl=function(){function t(t){var r=void 0===t?{}:t,n=r.renderTypes,i=void 0===n?new Nl:n,o=r.defaultEncapsulation,s=void 0===o?e.ViewEncapsulation.Emulated:o,a=r.genDebugInfo,u=r.logBindingUpdate,c=r.useJit,p=void 0===c?!0:c;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=u,this.useJit=p}return Object.defineProperty(t.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?e.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?e.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),t}(),Il=function(){function t(){}return t.prototype.renderer=function(){},t.prototype.renderText=function(){},t.prototype.renderElement=function(){},t.prototype.renderComment=function(){},t.prototype.renderNode=function(){},t.prototype.renderEvent=function(){},t}(),Nl=function(){function t(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(t.prototype,"renderer",{get:function(){return Qt(gp.Renderer)},enumerable:!0,configurable:!0}),t}(),jl=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Dl=function(){function t(){this.startTime=0,this.playTime=0}return t.prototype.visit=function(){},t}(),Ll=function(t){function e(){t.apply(this,arguments)}return jl(e,t),e.prototype.visit=function(){},e}(Dl),Vl=function(t){function e(e,r,n){t.call(this),this.name=e,this.stateDeclarations=r,this.stateTransitions=n}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationEntry(this,e)},e}(Dl),Fl=function(t){function e(e,r){t.call(this),this.stateName=e,this.styles=r}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateDeclaration(this,e)},e}(Ll),Ul=function(){function t(t,e){this.fromState=t,this.toState=e}return t}(),Bl=function(t){function e(e,r){t.call(this),this.stateChanges=e,this.animation=r}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateTransition(this,e)},e}(Ll),Hl=function(t){function e(e,r,n,i,o){t.call(this),this.startingStyles=e,this.keyframes=r,this.duration=n,this.delay=i,this.easing=o}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStep(this,e)},e}(Dl),ql=function(t){function e(e){t.call(this),this.styles=e}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStyles(this,e)},e}(Dl),zl=function(t){function e(e,r){t.call(this),this.offset=e,this.styles=r}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationKeyframe(this,e)},e}(Dl),Wl=function(t){function e(e){t.call(this),this.steps=e}return jl(e,t),e}(Dl),Gl=function(t){function e(e){t.call(this,e)}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationGroup(this,e)},e}(Wl),Kl=function(t){function e(e){t.call(this,e)}return jl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationSequence(this,e)},e}(Wl),Xl=function(){function t(t,e){this.time=t,this.value=e}return t.prototype.matches=function(t,e){return t==this.time&&e==this.value},t}(),Yl=function(){function t(){this.styles={}}return t.prototype.insertAtTime=function(t,e,r){var i=new Xl(e,r),o=this.styles[t];n(o)||(o=this.styles[t]=[]);for(var s=0,a=o.length-1;a>=0;a--)if(o[a].time<=e){s=a+1;break}o.splice(s,0,i)},t.prototype.getByIndex=function(t,e){var r=this.styles[t];return n(r)?e>=r.length?null:r[e]:null},t.prototype.indexOfAtOrBeforeTime=function(t,e){var r=this.styles[t];if(n(r))for(var i=r.length-1;i>=0;i--)if(r[i].time<=e)return i;return null},t}(),Ql=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},$l=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Zl=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Jl=0,th=1,eh=1e3,rh=function(t){function e(e){t.call(this,null,e)}return Ql(e,t),e.prototype.toString=function(){return""+this.msg},e}(Au),nh=function(){function t(t,e){this.ast=t,this.errors=e}return t}(),ih=function(){function t(t){this._schema=t}return t.prototype.parseComponent=function(t){var e=this,r=[],n=_(t.type),i=new Set,o=t.template.animations.map(function(t){var o=e.parseEntry(t),s=o.ast,a=s.name;if(i.has(a)?o.errors.push(new rh('The animation trigger "'+a+'" has already been registered for the '+n+" component")):i.add(a),o.errors.length>0){var u='- Unable to parse the animation sequence for "'+a+'" on the '+n+" component due to the following errors:";o.errors.forEach(function(t){u+="\n-- "+t.msg}),r.push(u)}return s});if(r.length>0){var s=r.join("\n");throw new Error("Animation parse errors:\n"+s)}return o},t.prototype.parseEntry=function(t){var e=this,r=[],n={},i=[],o=[];t.definitions.forEach(function(t){t instanceof ds?_e(t,e._schema,r).forEach(function(t){o.push(t),n[t.stateName]=t.styles}):i.push(t)});var s=i.map(function(t){return we(t,n,e._schema,r)}),a=new Vl(t.name,o,s);return new nh(a,r)},t=$l([R(),Zl("design:paramtypes",[Rp])],t)}(),oh=function(){function t(t,e,r){this.duration=t,this.delay=e,this.easing=r}return t}(),sh=function(){function t(){}return t.prototype.get=function(){return null},t}(),ah=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},uh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ch={provide:e.PACKAGE_ROOT_URL,useValue:"/"},ph=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;n(t)&&t.length>0&&(r=He(t,r));var i=Fe(r),o=this._packagePrefix;if(n(o)&&n(i)&&"package"==i[hh.Scheme]){var s=i[hh.Path];return o=o.replace(/\/+$/,""),s=s.replace(/^\/+/,""),o+"/"+s}return r},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]},t=ah([R(),uh("design:paramtypes",[String])],t)}(),lh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),hh={};hh.Scheme=1,hh.UserInfo=2,hh.Domain=3,hh.Port=4,hh.Path=5,hh.QueryData=6,hh.Fragment=7,hh[hh.Scheme]="Scheme",hh[hh.UserInfo]="UserInfo",hh[hh.Domain]="Domain",hh[hh.Port]="Port",hh[hh.Path]="Path",hh[hh.QueryData]="QueryData",hh[hh.Fragment]="Fragment";var fh=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},dh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},vh=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e,r=this,i=null;if(n(t.template))i=this.normalizeTemplateSync(t),e=Promise.resolve(i);else{if(!t.templateUrl)throw new cs("No template specified for component "+s(t.componentType));
+
+e=this.normalizeTemplateAsync(t)}return i&&0===i.styleUrls.length?new us(i):new us(null,e.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=Na.fromArray(t.interpolation),a=this._htmlParser.parse(r,s(t.componentType),!0,o);if(a.errors.length>0){var u=a.errors.join("\n");throw new cs("Template parse errors:\n"+u)}var c=this.normalizeStylesheet(new xs({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),p=new yh;X(p,a.rootNodes);var l=this.normalizeStylesheet(new xs({styles:p.styles,styleUrls:p.styleUrls,moduleUrl:n})),h=t.encapsulation;i(h)&&(h=this._config.defaultEncapsulation);var f=c.styles.concat(l.styles),d=c.styleUrls.concat(l.styleUrls);return h===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(h=e.ViewEncapsulation.None),new Cs({encapsulation:h,template:r,templateUrl:n,styles:f,styleUrls:d,ngContentSelectors:p.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Cs({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var i=r.normalizeStylesheet(new xs({styles:[n],moduleUrl:t}));return e.set(t,i),r._loadMissingExternalStylesheets(i.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.styleUrls.filter(pe).map(function(r){return e._urlResolver.resolve(t.moduleUrl,r)}),n=t.styles.map(function(n){var i=le(e._urlResolver,t.moduleUrl,n);return r.push.apply(r,i.styleUrls),i.style});return new xs({styles:n,styleUrls:r,moduleUrl:t.moduleUrl})},t=fh([R(),dh("design:paramtypes",[sh,ph,lp,kl])],t)}(),yh=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=de(t);switch(e.type){case el.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case el.STYLE:var r="";t.children.forEach(function(t){t instanceof Pu&&(r+=t.value)}),this.styles.push(r);break;case el.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,X(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){X(this,t.cases)},t.prototype.visitExpansionCase=function(t){X(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),mh=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},bh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},gh=function(){function t(t){void 0===t&&(t=To),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(qe)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var i=io.findLast(n,qe);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(r)throw new Error("No Directive annotation found on "+s(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var i=[],o=[],s={},a={};return Object.keys(r).forEach(function(t){var n=io.findLast(r[t],function(t){return t instanceof e.Input});n&&i.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=io.findLast(r[t],function(t){return t instanceof e.Output});u&&o.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var p=r[t].filter(function(t){return t&&t instanceof e.HostListener});p.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var l=io.findLast(r[t],function(t){return t instanceof e.Query});l&&(a[t]=l)}),this._merge(t,i,o,s,a,n)},t.prototype._extractPublicName=function(t){return v(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var i=t[n],o=this._extractPublicName(i);e.has(o)||(e.add(o),r.push(i))}return r.reverse()},t.prototype._merge=function(t,r,n,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?no.merge(t.host,i):i,c=t.queries?no.merge(t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t=mh([R(),bh("design:paramtypes",[co])],t)}(),_h=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},wh={};wh.Const=0,wh[wh.Const]="Const";var Sh=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Eh={};Eh.Dynamic=0,Eh.Bool=1,Eh.String=2,Eh.Int=3,Eh.Number=4,Eh.Function=5,Eh.Null=6,Eh[Eh.Dynamic]="Dynamic",Eh[Eh.Bool]="Bool",Eh[Eh.String]="String",Eh[Eh.Int]="Int",Eh[Eh.Number]="Number",Eh[Eh.Function]="Function",Eh[Eh.Null]="Null";var Oh=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.name=e}return _h(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Sh),xh=function(t){function e(e,r,n){void 0===r&&(r=null),void 0===n&&(n=null),t.call(this,n),this.value=e,this.typeParams=r}return _h(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Sh),Ch=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.of=e}return _h(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Sh),Th=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.valueType=e}return _h(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Sh),Ah=new Oh(Eh.Dynamic),Ph=new Oh(Eh.Bool),Rh=(new Oh(Eh.Int),new Oh(Eh.Number)),Mh=new Oh(Eh.String),kh=new Oh(Eh.Function),Ih=new Oh(Eh.Null),Nh={};Nh.Equals=0,Nh.NotEquals=1,Nh.Identical=2,Nh.NotIdentical=3,Nh.Minus=4,Nh.Plus=5,Nh.Divide=6,Nh.Multiply=7,Nh.Modulo=8,Nh.And=9,Nh.Or=10,Nh.Lower=11,Nh.LowerEquals=12,Nh.Bigger=13,Nh.BiggerEquals=14,Nh[Nh.Equals]="Equals",Nh[Nh.NotEquals]="NotEquals",Nh[Nh.Identical]="Identical",Nh[Nh.NotIdentical]="NotIdentical",Nh[Nh.Minus]="Minus",Nh[Nh.Plus]="Plus",Nh[Nh.Divide]="Divide",Nh[Nh.Multiply]="Multiply",Nh[Nh.Modulo]="Modulo",Nh[Nh.And]="And",Nh[Nh.Or]="Or",Nh[Nh.Lower]="Lower",Nh[Nh.LowerEquals]="LowerEquals",Nh[Nh.Bigger]="Bigger",Nh[Nh.BiggerEquals]="BiggerEquals";var jh=function(){function t(t){this.type=t}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t){return new Jh(this,t)},t.prototype.key=function(t,e){return void 0===e&&(e=null),new tf(this,t,e)},t.prototype.callMethod=function(t,e){return new Hh(this,t,e)},t.prototype.callFn=function(t){return new qh(this,t)},t.prototype.instantiate=function(t,e){return void 0===e&&(e=null),new zh(this,t,e)},t.prototype.conditional=function(t,e){return void 0===e&&(e=null),new Kh(this,t,e)},t.prototype.equals=function(t){return new Zh(Nh.Equals,this,t)},t.prototype.notEquals=function(t){return new Zh(Nh.NotEquals,this,t)},t.prototype.identical=function(t){return new Zh(Nh.Identical,this,t)},t.prototype.notIdentical=function(t){return new Zh(Nh.NotIdentical,this,t)},t.prototype.minus=function(t){return new Zh(Nh.Minus,this,t)},t.prototype.plus=function(t){return new Zh(Nh.Plus,this,t)},t.prototype.divide=function(t){return new Zh(Nh.Divide,this,t)},t.prototype.multiply=function(t){return new Zh(Nh.Multiply,this,t)},t.prototype.modulo=function(t){return new Zh(Nh.Modulo,this,t)},t.prototype.and=function(t){return new Zh(Nh.And,this,t)},t.prototype.or=function(t){return new Zh(Nh.Or,this,t)},t.prototype.lower=function(t){return new Zh(Nh.Lower,this,t)},t.prototype.lowerEquals=function(t){return new Zh(Nh.LowerEquals,this,t)},t.prototype.bigger=function(t){return new Zh(Nh.Bigger,this,t)},t.prototype.biggerEquals=function(t){return new Zh(Nh.BiggerEquals,this,t)},t.prototype.isBlank=function(){return this.equals(uf)},t.prototype.cast=function(t){return new Yh(this,t)},t.prototype.toStmt=function(){return new ff(this)},t}(),Dh={};Dh.This=0,Dh.Super=1,Dh.CatchError=2,Dh.CatchStack=3,Dh[Dh.This]="This",Dh[Dh.Super]="Super",Dh[Dh.CatchError]="CatchError",Dh[Dh.CatchStack]="CatchStack";var Lh=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),"string"==typeof e?(this.name=e,this.builtin=null):(this.name=null,this.builtin=e)}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new Vh(this.name,t)},e}(jh),Vh=function(t){function e(e,r,n){void 0===n&&(n=null),t.call(this,n||r.type),this.name=e,this.value=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new lf(this.name,this.value,t,e)},e}(jh),Fh=function(t){function e(e,r,n,i){void 0===i&&(i=null),t.call(this,i||n.type),this.receiver=e,this.index=r,this.value=n}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(jh),Uh=function(t){function e(e,r,n,i){void 0===i&&(i=null),t.call(this,i||n.type),this.receiver=e,this.name=r,this.value=n}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(jh),Bh={};Bh.ConcatArray=0,Bh.SubscribeObservable=1,Bh.Bind=2,Bh[Bh.ConcatArray]="ConcatArray",Bh[Bh.SubscribeObservable]="SubscribeObservable",Bh[Bh.Bind]="Bind";var Hh=function(t){function e(e,r,n,i){void 0===i&&(i=null),t.call(this,i),this.receiver=e,this.args=n,"string"==typeof r?(this.name=r,this.builtin=null):(this.name=null,this.builtin=r)}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(jh),qh=function(t){function e(e,r,n){void 0===n&&(n=null),t.call(this,n),this.fn=e,this.args=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(jh),zh=function(t){function e(e,r,n){t.call(this,n),this.classExpr=e,this.args=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(jh),Wh=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.value=e}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(jh),Gh=function(t){function e(e,r,n){void 0===r&&(r=null),void 0===n&&(n=null),t.call(this,r),this.value=e,this.typeParams=n}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(jh),Kh=function(t){function e(e,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),t.call(this,i||r.type),this.condition=e,this.falseCase=n,this.trueCase=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(jh),Xh=function(t){function e(e){t.call(this,Ph),this.condition=e}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(jh),Yh=function(t){function e(e,r){t.call(this,r),this.value=e}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(jh),Qh=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),$h=function(t){function e(e,r,n){void 0===n&&(n=null),t.call(this,n),this.params=e,this.statements=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new hf(t,this.params,this.statements,this.type,e)},e}(jh),Zh=function(t){function e(e,r,n,i){void 0===i&&(i=null),t.call(this,i||r.type),this.operator=e,this.rhs=n,this.lhs=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(jh),Jh=function(t){function e(e,r,n){void 0===n&&(n=null),t.call(this,n),this.receiver=e,this.name=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Uh(this.receiver,this.name,t)},e}(jh),tf=function(t){function e(e,r,n){void 0===n&&(n=null),t.call(this,n),this.receiver=e,this.index=r}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fh(this.receiver,this.index,t)},e}(jh),ef=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.entries=e}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(jh),rf=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),nf=function(t){function e(e,r){void 0===r&&(r=null),t.call(this,r),this.entries=e,this.valueType=null,n(r)&&(this.valueType=r.valueType)}return _h(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(jh),of=new Lh(Dh.This),sf=new Lh(Dh.Super),af=(new Lh(Dh.CatchError),new Lh(Dh.CatchStack),new Wh(null,null)),uf=new Wh(null,Ih),cf={};cf.Final=0,cf.Private=1,cf[cf.Final]="Final",cf[cf.Private]="Private";var pf=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),lf=function(t){function e(e,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),t.call(this,i),this.name=e,this.value=r,this.type=n||r.type}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(pf),hf=function(t){function e(e,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,o),this.name=e,this.params=r,this.statements=n,this.type=i}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(pf),ff=function(t){function e(e){t.call(this),this.expr=e}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(pf),df=function(t){function e(e){t.call(this),this.value=e}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(pf),vf=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),yf=function(t){function e(e,r,n){void 0===r&&(r=null),void 0===n&&(n=null),t.call(this,r,n),this.name=e}return _h(e,t),e}(vf),mf=function(t){function e(e,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,i,o),this.name=e,this.params=r,this.body=n}return _h(e,t),e}(vf),bf=function(t){function e(e,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),t.call(this,n,i),this.name=e,this.body=r}return _h(e,t),e}(vf),gf=function(t){function e(e,r,n,i,o,s,a){void 0===a&&(a=null),t.call(this,a),this.name=e,this.parent=r,this.fields=n,this.getters=i,this.constructorMethod=o,this.methods=s}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(pf),_f=function(t){function e(e,r,n){void 0===n&&(n=[]),t.call(this),this.condition=e,this.trueCase=r,this.falseCase=n}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(pf),wf=(function(t){function e(e){t.call(this),this.comment=e}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(pf),function(t){function e(e,r){t.call(this),this.bodyStmts=e,this.catchStmts=r}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(pf)),Sf=function(t){function e(e){t.call(this),this.error=e}return _h(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(pf),Ef=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return new Vh(t.name,t.value.visitExpression(this,e))},t.prototype.visitWriteKeyExpr=function(t,e){return new Fh(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e))},t.prototype.visitWritePropExpr=function(t,e){return new Uh(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e))},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return new Hh(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInvokeFunctionExpr=function(t,e){return new qh(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInstantiateExpr=function(t,e){return new zh(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return new Kh(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e))},t.prototype.visitNotExpr=function(t,e){return new Xh(t.condition.visitExpression(this,e))},t.prototype.visitCastExpr=function(t,e){return new Yh(t.value.visitExpression(this,e),e)},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return new Zh(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type)},t.prototype.visitReadPropExpr=function(t,e){return new Jh(t.receiver.visitExpression(this,e),t.name,t.type)},t.prototype.visitReadKeyExpr=function(t,e){return new tf(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type)},t.prototype.visitLiteralArrayExpr=function(t,e){return new ef(this.visitAllExpressions(t.entries,e))},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new rf(t.key,t.value.visitExpression(r,e),t.quoted)});return new nf(n)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return new lf(t.name,t.value.visitExpression(this,e),t.type,t.modifiers)},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return new ff(t.expr.visitExpression(this,e))},t.prototype.visitReturnStmt=function(t,e){return new df(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return new _f(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e))},t.prototype.visitTryCatchStmt=function(t,e){return new wf(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e))},t.prototype.visitThrowStmt=function(t,e){return new Sf(t.error.visitExpression(this,e))},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),Of=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),xf=function(t){function e(e,r){t.call(this),this._varName=e,this._newValue=r}return _h(e,t),e.prototype.visitReadVarExpr=function(t){return t.name==this._varName?this._newValue:t},e}(Ef),Cf=function(t){function e(){t.apply(this,arguments),this.varNames=new Set}return _h(e,t),e.prototype.visitReadVarExpr=function(t){return this.varNames.add(t.name),null},e}(Of),Tf=function(){function t(t,e){this.expression=t,this.bindingId=e}return t}(),Af=Ge("valUnwrapper"),Pf=function(){function t(){}return t.event=Ge("$event"),t}(),Rf=function(){function t(t,e,r){this.stmts=t,this.currValExpr=e,this.forceUpdate=r}return t}(),Mf=function(){function t(t,e){this.stmts=t,this.preventDefault=e}return t}(),kf={};kf.Statement=0,kf.Expression=1,kf[kf.Statement]="Statement",kf[kf.Expression]="Expression";var If=function(){function t(t,e,r,n,i,o){this._builder=t,this._nameResolver=e,this._implicitReceiver=r,this._valueUnwrapper=n,this.bindingId=i,this.isAction=o,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=Nh.Plus;break;case"-":r=Nh.Minus;break;case"*":r=Nh.Multiply;break;case"/":r=Nh.Divide;break;case"%":r=Nh.Modulo;break;case"&&":r=Nh.And;break;case"||":r=Nh.Or;break;case"==":r=Nh.Equals;break;case"!=":r=Nh.NotEquals;break;case"===":r=Nh.Identical;break;case"!==":r=Nh.NotIdentical;break;case"<":r=Nh.Lower;break;case">":r=Nh.Bigger;break;case"<=":r=Nh.LowerEquals;break;case">=":r=Nh.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return yr(e,new Zh(r,this.visit(t.left,kf.Expression),this.visit(t.right,kf.Expression)))},t.prototype.visitChain=function(t,e){return dr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,kf.Expression);return yr(e,r.conditional(this.visit(t.trueExp,kf.Expression),this.visit(t.falseExp,kf.Expression)))},t.prototype.visitPipe=function(t,e){var r=this.visit(t.exp,kf.Expression),n=this.visitAll(t.args,kf.Expression),i=this._nameResolver.callPipe(t.name,r,n);if(!i)throw new Error("Illegal state: Pipe "+t.name+" is not allowed here!");return this.needsValueUnwrapper=!0,yr(e,this._valueUnwrapper.callMethod("unwrap",[i]))},t.prototype.visitFunctionCall=function(t,e){return yr(e,this.visit(t.target,kf.Expression).callFn(this.visitAll(t.args,kf.Expression)))},t.prototype.visitImplicitReceiver=function(t,e){return vr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){vr(e,t);for(var r=[tr(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(tr(t.strings[n])),r.push(this.visit(t.expressions[n],kf.Expression));return r.push(tr(t.strings[t.strings.length-1])),t.expressions.length<=9?Ke(Qt(gp.inlineInterpolate)).callFn(r):Ke(Qt(gp.interpolate)).callFn([r[0],Qe(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):yr(e,this.visit(t.obj,kf.Expression).key(this.visit(t.key,kf.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,kf.Expression),n=this.visit(t.key,kf.Expression),i=this.visit(t.value,kf.Expression);return yr(e,r.key(n).set(i))},t.prototype.visitLiteralArray=function(t,e){var r=this.visitAll(t.expressions,e),n=this.isAction?Qe(r):br(this._builder,r);return yr(e,n)},t.prototype.visitLiteralMap=function(t,e){for(var r=[],n=0;n<t.keys.length;n++)r.push([t.keys[n],this.visit(t.values[n],kf.Expression)]);var i=this.isAction?$e(r):gr(this._builder,r);return yr(e,i)},t.prototype.visitLiteralPrimitive=function(t,e){return yr(e,tr(t.value))},t.prototype._getLocal=function(t){return this.isAction&&t==Pf.event.name?Pf.event:this._nameResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,kf.Expression),o=null,s=this.visit(t.receiver,kf.Expression);if(s===this._implicitReceiver){var a=this._getLocal(t.name);a&&(o=a.callFn(n))}return i(o)&&(o=s.callMethod(t.name,n)),yr(e,o)},t.prototype.visitPrefixNot=function(t,e){return yr(e,Ze(this.visit(t.expression,kf.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,kf.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),i(n)&&(n=o.prop(t.name)),yr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,kf.Expression);if(r===this._implicitReceiver){var n=this._getLocal(t.name);if(n)throw new Error("Cannot assign to a reference or variable!")}return yr(e,r.prop(t.name).set(this.visit(t.value,kf.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r?r:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n,i=this.visit(e.receiver,kf.Expression);this.needsTemporary(e.receiver)&&(n=this.allocateTemporary(),i=n.set(i),this._resultMap.set(e.receiver,n));var o=i.isBlank();e instanceof iu?this._nodeMap.set(e,new nu(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Wa(e.span,e.receiver,e.name));var s=this.visit(t,kf.Expression);return this._nodeMap["delete"](e),n&&this.releaseTemporary(n),yr(r,o.conditional(tr(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Lh(lr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=lr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),Nf=function(){function t(){}return t.prototype.callPipe=function(){return null},t.prototype.getLocal=function(){
+return null},t}(),jf=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Df=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Lf=function(){function t(t,e){this.statements=t,this.dirWrapperClassVar=e}return t}(),Vf="context",Ff="_changes",Uf="_changed",Bf="_eventHandler",Hf=Ge("currValue"),qf=Ge("throwOnChange"),zf=Ge("forceUpdate"),Wf=Ge("view"),Gf=Ge("componentView"),Kf=Ge("el"),Xf=Ge("eventName"),Yf=of.prop(Ff).set($e([])).toStmt(),Qf=function(){function t(t,e,r,n){this.compilerConfig=t,this._exprParser=e,this._schemaRegistry=r,this._console=n}return t.dirWrapperClassName=function(t){return"Wrapper_"+_(t)},t.prototype.compile=function(t){var e=Ir(t,this._exprParser,this._schemaRegistry);Nr(e.errors,this._console);var r=new $f(this.compilerConfig,t);Object.keys(t.inputs).forEach(function(t){Pr(t,r)}),Ar(r),Rr(e.hostProps,e.hostListeners,r),Mr(e.hostListeners,r),kr(t,r);var n=r.build();return new Lf([n],n.name)},t=jf([R(),Df("design:paramtypes",[kl,wu,Rp,Co])],t)}(),$f=function(){function t(t,e){this.compilerConfig=t,this.dirMeta=e,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this.detachStmts=[],this.destroyStmts=[];var r=e.type.lifecycleHooks;this.genChanges=-1!==r.indexOf(ao.OnChanges)||this.compilerConfig.logBindingUpdate,this.ngOnChanges=-1!==r.indexOf(ao.OnChanges),this.ngOnInit=-1!==r.indexOf(ao.OnInit),this.ngDoCheck=-1!==r.indexOf(ao.DoCheck),this.ngOnDestroy=-1!==r.indexOf(ao.OnDestroy),this.ngOnDestroy&&this.destroyStmts.push(of.prop(Vf).callMethod("ngOnDestroy",[]).toStmt())}return t.prototype.build=function(){for(var t=[],e=0;e<this.dirMeta.type.diDeps.length;e++)t.push("p"+e);var r=[new mf("ngOnDetach",[new Qh(Wf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Gf.name,Xe(Qt(gp.AppView),[Ah])),new Qh(Kf.name,Ah)],this.detachStmts),new mf("ngOnDestroy",[],this.destroyStmts)],n=[new yf(Bf,kh,[cf.Private]),new yf(Vf,Xe(this.dirMeta.type)),new yf(Uf,Ph,[cf.Private])],i=[of.prop(Uf).set(tr(!1)).toStmt()];return this.genChanges&&(n.push(new yf(Ff,new Th(Ah),[cf.Private])),i.push(Yf)),i.push(of.prop(Vf).set(Ke(this.dirMeta.type).instantiate(t.map(function(t){return Ge(t)}))).toStmt()),Cr({name:Qf.dirWrapperClassName(this.dirMeta.type),ctorParams:t.map(function(t){return new Qh(t,Ah)}),builders:[{fields:n,ctorStmts:i,methods:r},this]})},t}(),Zf=function(){function t(t,e,r){this.hostProps=t,this.hostListeners=e,this.errors=r}return t}(),Jf=function(){function t(){}return t.create=function(t,e){return Ke(t).instantiate(e,Xe(t))},t.context=function(t){return t.prop(Vf)},t.ngDoCheck=function(t,e,r,n){return t.callMethod("ngDoCheck",[e,r,n])},t.checkHost=function(t,e,r,n,i,o,s){return t.length?[e.callMethod("checkHost",[r,n,i,o].concat(s)).toStmt()]:[]},t.ngOnDetach=function(t,e,r,n,i){return t.some(function(t){return t.isAnimation})?[e.callMethod("ngOnDetach",[r,n,i]).toStmt()]:[]},t.ngOnDestroy=function(t,e){return-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)||Object.keys(t.outputs).length>0?[e.callMethod("ngOnDestroy",[]).toStmt()]:[]},t.subscribe=function(t,e,r,n,i,o){var s=!1,a=[];return Object.keys(t.outputs).forEach(function(e){var n=t.outputs[e],i=r.indexOf(n)>-1;s=s||i,a.push(tr(i))}),e.forEach(function(t){t.isAnimation&&r.length>0&&(s=!0)}),s?[n.callMethod("subscribe",[i,o].concat(a)).toStmt()]:[]},t.handleEvent=function(t,e,r,n){return e.callMethod("handleEvent",[r,n])},t}(),td=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ed=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},rd=function(){function t(t){void 0===t&&(t=To),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Lr)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=io.findLast(this._reflector.annotations(t),Lr);if(r)return r;if(e)throw new Error("No NgModule metadata found for '"+s(t)+"'.");return null},t=td([R(),ed("design:paramtypes",[co])],t)}(),nd=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},id=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},od=function(){function t(t){void 0===t&&(t=To),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Vr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var i=io.findLast(n,Vr);if(i)return i}if(r)throw new Error("No Pipe decorator found on "+s(t));return null},t=nd([R(),id("design:paramtypes",[co])],t)}(),sd=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ad=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ud=function(){function t(){}return t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t=sd([R(),ad("design:paramtypes",[])],t)}(),cd=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pd=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ld=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},hd=new e.OpaqueToken("ErrorCollector"),fd=function(){function t(t,e,r,n,i,o,s,a){void 0===s&&(s=To),this._ngModuleResolver=t,this._directiveResolver=e,this._pipeResolver=r,this._summaryResolver=n,this._schemaRegistry=i,this._directiveNormalizer=o,this._reflector=s,this._errorCollector=a,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype.getAnimationEntryMetadata=function(t){var e=this,r=t.definitions.map(function(t){return e._getAnimationStateMetadata(t)});return new hs(t.name,r)},t.prototype._getAnimationStateMetadata=function(t){if(t instanceof e.AnimationStateDeclarationMetadata){var r=this._getAnimationStyleMetadata(t.styles);return new ds(t.stateNameExpr,r)}return t instanceof e.AnimationStateTransitionMetadata?new vs(t.stateChangeExpr,this._getAnimationMetadata(t.steps)):null},t.prototype._getAnimationStyleMetadata=function(t){return new bs(t.offset,t.styles)},t.prototype._getAnimationMetadata=function(t){var r=this;if(t instanceof e.AnimationStyleMetadata)return this._getAnimationStyleMetadata(t);if(t instanceof e.AnimationKeyframesSequenceMetadata)return new ms(t.steps.map(function(t){return r._getAnimationStyleMetadata(t)}));if(t instanceof e.AnimationAnimateMetadata){var n=this._getAnimationMetadata(t.styles);return new gs(t.timings,n)}if(t instanceof e.AnimationWithStepsMetadata){var i=t.steps.map(function(t){return r._getAnimationMetadata(t)});return t instanceof e.AnimationGroupMetadata?new Ss(i):new ws(i)}return null},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r){var n=this;if(!this._directiveCache.has(t)){t=e.resolveForwardRef(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.annotation,s=i.metadata,a=function(e){var r=new Ts({type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,template:e});return n._directiveCache.set(t,r),n._summaryCache.set(t,r.toSummary()),r};if(s.isComponent){var u=this._directiveNormalizer.normalizeTemplate({componentType:t,moduleUrl:qr(this._reflector,t,o),encapsulation:s.template.encapsulation,template:s.template.template,templateUrl:s.template.templateUrl,styles:s.template.styles,styleUrls:s.template.styleUrls,animations:s.template.animations,interpolation:s.template.interpolation});return u.syncResult?(a(u.syncResult),null):r?(this._reportError(new zo(t),t),null):u.asyncResult.then(a)}return a(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;t=e.resolveForwardRef(t);var i=this._directiveResolver.resolve(t);if(!i)return null;var o;if(i instanceof e.Component){M("styles",i.styles),M("styleUrls",i.styleUrls),k("interpolation",i.interpolation);var s=i.animations?i.animations.map(function(t){return r.getAnimationEntryMetadata(t)}):null;o=new Cs({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:s,interpolation:i.interpolation})}var a=null,u=[],c=[],p=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+Wr(t)+'"',[],t)),i.entryComponents&&(c=Br(i.entryComponents).map(function(t){return r._getIdentifierMetadata(t)}).concat(c)),p||(p=this._schemaRegistry.getDefaultComponentElementName())):p||(this._reportError(new cs("Directive "+Wr(t)+" has no selector, please add it!"),t),p="error");var l=[];n(i.providers)&&(l=this._getProvidersMetadata(i.providers,c,'providers for "'+Wr(t)+'"',[],t));var h=[],f=[];n(i.queries)&&(h=this._getQueriesMetadata(i.queries,!1,t),f=this._getQueriesMetadata(i.queries,!0,t));var d=Ts.create({selector:p,exportAs:i.exportAs,isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:l,viewProviders:u,queries:h,viewQueries:f,entryComponents:c});return{metadata:d,annotation:i}},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(new cs("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Wr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Os.Directive);return e||this._reportError(new cs("Illegal state: Could not load the summary for directive "+Wr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Os.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var i=this.getNgModuleMetadata(t,r),o=[];return i&&(i.declaredDirectives.forEach(function(t){var r=n._loadDirectiveMetadata(t.reference,e);r&&o.push(r)}),i.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,r);if(!o)return null;var s=[],a=[],u=[],c=[],p=[],l=[],h=[],f=[],d=[];o.imports&&Br(o.imports).forEach(function(e){var r;if(Hr(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&l.push.apply(l,n._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+Wr(r)+"'",[],e))}if(!r)return void n._reportError(new cs("Unexpected value '"+Wr(e)+"' imported by the module '"+Wr(t)+"'"),t);var o=n.getNgModuleSummary(r);return o?void c.push(o):void n._reportError(new cs("Unexpected "+n._getTypeDescriptor(e)+" '"+Wr(e)+"' imported by the module '"+Wr(t)+"'"),t)}),o.exports&&Br(o.exports).forEach(function(e){if(!Hr(e))return void n._reportError(new cs("Unexpected value '"+Wr(e)+"' exported by the module '"+Wr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?p.push(r):a.push(n._getIdentifierMetadata(e))});var v=this._getTransitiveNgModuleMetadata(c,p);o.declarations&&Br(o.declarations).forEach(function(e){if(!Hr(e))return void n._reportError(new cs("Unexpected value '"+Wr(e)+"' declared by the module '"+Wr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))v.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(new cs("Unexpected "+n._getTypeDescriptor(e)+" '"+Wr(e)+"' declared by the module '"+Wr(t)+"'"),t);v.addPipe(r),v.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],m=[];return a.forEach(function(e){v.directivesSet.has(e.reference)?(y.push(e),v.addExportedDirective(e)):v.pipesSet.has(e.reference)?(m.push(e),v.addExportedPipe(e)):n._reportError(new cs("Can't export "+n._getTypeDescriptor(e.reference)+" "+Wr(e.reference)+" from "+Wr(t)+" as it was neither declared nor imported!"),t)}),o.providers&&l.push.apply(l,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Wr(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Br(o.entryComponents).map(function(t){return n._getIdentifierMetadata(t)})),o.bootstrap&&Br(o.bootstrap).forEach(function(e){return Hr(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(new cs("Unexpected value '"+Wr(e)+"' used in the bootstrap property of module '"+Wr(t)+"'"),t)}),h.push.apply(h,f),o.schemas&&d.push.apply(d,Br(o.schemas)),i=new Ps({type:this._getTypeMetadata(t),providers:l,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:m,importedModules:c,exportedModules:p,transitiveModule:v,id:o.id}),h.forEach(function(t){return v.addEntryComponent(t)}),l.forEach(function(t){return v.addProvider(t,i.type)}),v.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);r&&r!==e&&this._reportError(new cs("Type "+Wr(t)+" is part of the declarations of 2 modules: "+Wr(r)+" and "+Wr(e)+"! "+("Please consider moving "+Wr(t)+" to a higher module that imports "+Wr(r)+" and "+Wr(e)+". ")+("You can also create a new NgModule that exports and includes "+Wr(t)+" then import that NgModule in "+Wr(r)+" and "+Wr(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Rs,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=E(t.provider.token),o=n.get(i);o||(o=new Set,n.set(i,o));var s=t.module.reference;(e.has(i)||!o.has(s))&&(o.add(s),e.add(i),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Os.Injectable,type:this._getTypeMetadata(t)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Os.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e){void 0===e&&(e=null);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e),lifecycleHooks:uo.filter(function(t){return jr(t,r.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(new cs("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Wr(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Os.Pipe);return e||this._reportError(new cs("Illegal state: Could not load the summary for pipe "+Wr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new As({type:this._getTypeMetadata(t),name:r.name,pure:r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r){var n=this,o=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,s=!1,a=!1,u=!1,c=!1,p=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?s=!0:t instanceof e.Self?a=!0:t instanceof e.SkipSelf?u=!0:t instanceof e.Optional?c=!0:t instanceof e.Attribute?(r=!0,p=t.attributeName):t instanceof e.Inject?p=t.token:Hr(t)&&i(p)&&(p=t)}):p=t,i(p)?(o=!0,null):{isAttribute:r,isHost:s,isSelf:a,isSkipSelf:u,isOptional:c,token:n._getTokenMetadata(p)}});if(o){var u=a.map(function(t){return t?Wr(t.token):"?"}).join(", ");this._reportError(new cs("Can't resolve all parameters for "+Wr(t)+": ("+u+")."),t)}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,i);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))c=new Ms(a.provide,a);else if(Hr(a))c=new Ms(a,{useClass:a});else{var p=t.reduce(function(t,e,r){return u>r?t.push(""+Wr(e)):r==u?t.push("?"+Wr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");s._reportError(new cs("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+p+"]"),o)}c.token===Yt(gp.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(zr(t.useValue,i),i.forEach(function(t){(r._directiveResolver.isDirective(t.reference)||r._loadSummary(t.reference,Os.Directive))&&n.push(t)}),n):(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype.getProviderMetadata=function(t){var e,r=null,n=null,i=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(i={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:i,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(n._getQueryMetadata(s,o,r))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,i=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):(t.selector||this._reportError(new cs("Can't construct a query for the property \""+e+'" of "'+Wr(r)+"\" since the query selector wasn't defined."),r),n=[this._getTokenMetadata(t.selector)]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t.ctorParameters=function(){return[{type:rd},{type:gh},{type:od},{type:ud},{type:Rp},{type:vh},{type:co},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[hd]}]}]},t=pd([R(),ld("design:paramtypes",[rd,gh,od,ud,Rp,vh,co,Function])],t)}(),dd=function(t){function e(){t.apply(this,arguments)}return cd(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(as),vd="$quoted$",yd=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return Qe(t.map(function(t){return b(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],i=new Set(t&&t[vd]);return Object.keys(t).forEach(function(e){n.push(new rf(e,b(t[e],r,null),i.has(e)))}),new nf(n,e)},t.prototype.visitPrimitive=function(t,e){return tr(t,e)},t.prototype.visitOther=function(t){return t instanceof jh?t:Ke({reference:t})},t}(),md=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},bd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},gd=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),_d=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),wd=function(){function t(){}return t.prototype.compile=function(t,e){var r=w(t.type),i=n(r)?"in NgModule "+_(t.type)+" in "+r:"in NgModule "+_(t.type),o=new xu("",i),s=new Cu(new Ou(o,null,null,null),new Ou(o,null,null,null)),a=[],u=[],c=t.transitiveModule.entryComponents.map(function(e){var r={reference:null};return t.bootstrapComponents.some(function(t){return t.reference===e.reference})&&u.push(r),a.push(new gd(e,r)),r}),p=new Sd(t,c,u,s),l=new Pp(t,e,s);l.parse().forEach(function(t){return p.addProvider(t)});var h=p.build(),f=_(t.type)+"NgFactory",d=Ge(f).set(Ke(Qt(gp.NgModuleFactory)).instantiate([Ge(h.name),Ke(t.type)],Xe(Qt(gp.NgModuleFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final]),v=[h,d];if(t.id){var y=Ke(Qt(gp.RegisterModuleFactoryFn)).callFn([tr(t.id),Ge(f)]).toStmt();v.push(y)}return new _d(v,f,a)},t=md([R(),bd("design:paramtypes",[])],t)}(),Sd=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var e=this,r=t.providers.map(function(t){return e._getProviderValue(t)}),n="_"+S(t.token)+"_"+this._instances.size,i=this._createProviderProperty(n,t,r,t.multiProvider,t.eager);-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&this._destroyStmts.push(i.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(t.token),this._instances.set(E(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(E(e));return new _f(Od.token.identical(ir(e)),[new df(r)])}),r=[new mf("createInternal",[],this._createStmts.concat(new df(this._instances.get(this._ngModuleMeta.type.reference))),Xe(this._ngModuleMeta.type)),new mf("getInternal",[new Qh(Od.token.name,Ah),new Qh(Od.notFoundResult.name,Ah)],e.concat([new df(Od.notFoundResult)]),Ah),new mf("destroyInternal",[],this._destroyStmts)],n=[Ge(Ed.parent.name),Qe(this._entryComponentFactories.map(function(t){return Ke(t)})),Qe(this._bootstrapComponentFactories.map(function(t){return Ke(t)}))],i=_(this._ngModuleMeta.type)+"Injector";return Cr({name:i,ctorParams:[new Qh(Ed.parent.name,Xe(Qt(gp.Injector)))],parent:Ke(Qt(gp.NgModuleInjector),[Xe(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(n(t.useExisting))e=this._getDependency({token:t.useExisting});else if(n(t.useFactory)){var i=t.deps||t.useFactory.diDeps,o=i.map(function(t){return r._getDependency(t)});e=Ke(t.useFactory).callFn(o)}else if(n(t.useClass)){var i=t.deps||t.useClass.diDeps,o=i.map(function(t){return r._getDependency(t)});e=Ke(t.useClass).instantiate(o,Xe(t.useClass))}else e=Gr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,i){var o,s;if(n?(o=Qe(r),s=new Ch(Ah)):(o=r[0],s=r[0].type),s||(s=Ah),i)this.fields.push(new yf(t,s)),this._createStmts.push(of.prop(t).set(o).toStmt());else{var a="_"+t;this.fields.push(new yf(a,s));var u=[new _f(of.prop(a).isBlank(),[of.prop(a).set(o).toStmt()]),new df(of.prop(a))];this.getters.push(new bf(t,u,s))}return of.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=tr(t.value)),t.isSkipSelf||(!t.token||E(t.token)!==Yt(gp.Injector)&&E(t.token)!==Yt(gp.ComponentFactoryResolver)||(e=of),e||(e=this._instances.get(E(t.token)))),!e){var r=[ir(t.token)];t.isOptional&&r.push(af),e=Ed.parent.callMethod("get",r)}return e},t}(),Ed=function(){function t(){}return t.parent=of.prop("parent"),t}(),Od=function(){function t(){}return t.token=Ge("token"),t.notFoundResult=Ge("notFoundResult"),t}(),xd=/'|\\|\n|\r|\$/g,Cd=/^[$A-Z_][0-9A-Z_$]*$/i,Td=Ge("error"),Ad=Ge("stack"),Pd=function(){function t(t){this.indent=t,this.parts=[]}return t}(),Rd=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new Pd(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t){void 0===t&&(t=""),this.print(t,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e){void 0===e&&(e=!1),t.length>0&&this._currentLine.parts.push(t),e&&this._lines.push(new Pd(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){var t=this._lines;return 0===t[t.length-1].parts.length&&(t=t.slice(0,t.length-1)),t.map(function(t){return t.parts.length>0?Xr(t.indent)+t.parts.join(""):""}).join("\n")},t}(),Md=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print("return "),t.value.visitExpression(this,e),e.println(";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print("if ("),t.condition.visitExpression(this,e),e.print(") {");var r=n(t.falseCase)&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(" "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(" ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println("} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println("}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print("throw "),t.error.visitExpression(this,e),e.println(";"),null},t.prototype.visitCommentStmt=function(t,e){var r=t.comment.split("\n");return r.forEach(function(t){e.println("// "+t)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),e.print(t.name+" = "),t.value.visitExpression(this,e),r||e.print(")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("] = "),t.value.visitExpression(this,e),r||e.print(")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),t.receiver.visitExpression(this,e),e.print("."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return n(t.builtin)&&(r=this.getBuiltinMethodName(t.builtin),i(r))?null:(e.print("."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(n(t.builtin))switch(t.builtin){case Dh.Super:r="super";break;case Dh.This:r="this";break;case Dh.CatchError:r=Td.name;break;case Dh.CatchStack:r=Ad.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print("new "),t.classExpr.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return e.print("string"==typeof r?Kr(r,this._escapeDollarInStrings):""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){
+return e.print("("),t.condition.visitExpression(this,e),e.print("? "),t.trueCase.visitExpression(this,e),e.print(": "),t.falseCase.visitExpression(this,e),e.print(")"),null},t.prototype.visitNotExpr=function(t,e){return e.print("!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Nh.Equals:r="==";break;case Nh.Identical:r="===";break;case Nh.NotEquals:r="!=";break;case Nh.NotIdentical:r="!==";break;case Nh.And:r="&&";break;case Nh.Or:r="||";break;case Nh.Plus:r="+";break;case Nh.Minus:r="-";break;case Nh.Divide:r="/";break;case Nh.Multiply:r="*";break;case Nh.Modulo:r="%";break;case Nh.Lower:r="<";break;case Nh.LowerEquals:r="<=";break;case Nh.Bigger:r=">";break;case Nh.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print("("),t.lhs.visitExpression(this,e),e.print(" "+r+" "),t.rhs.visitExpression(this,e),e.print(")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("."),e.print(t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print("[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print("]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print("{",n),e.incIndent(),this.visitAllObjects(function(t){e.print(Kr(t.key,r._escapeDollarInStrings,t.quoted)+": "),t.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print("}",n),null},t.prototype.visitAllExpressions=function(t,e,r,n){var i=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,i){void 0===i&&(i=!1);for(var o=0;o<e.length;o++)o>0&&r.print(n,i),t(e[o]);i&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),kd=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Id="/debug/lib",Nd=function(){function t(t){this._importGenerator=t}return t.prototype.emitStatements=function(t,e,r){var n=this,i=new jd(t),o=Rd.createRoot(r);i.visitAllStatements(e,o);var s=[];return i.importsWithPrefixes.forEach(function(e,r){s.push("imp"+("ort * as "+e+" from '"+n._importGenerator.fileNameToModuleName(r,t)+"';"))}),s.push(o.toSource()),s.join("\n")},t}(),jd=function(t){function e(e){t.call(this,!1),this._moduleUrl=e,this.importsWithPrefixes=new Map}return kd(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),n(t)?t.visitType(this,e):e.print(r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return i(n)&&e.type!=Ih?(r.print("("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print("(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(" as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print(t.hasModifier(cf.Final)?"const":"var"),e.print(" "+t.name+":"),this.visitType(t.type,e),e.print(" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return e.print("(<"),t.type.visitType(this,e),e.print(">"),t.value.visitExpression(this,e),e.print(")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print("export "),e.print("class "+t.name),n(t.parent)&&(e.print(" extends "),t.parent.visitExpression(this,e)),e.println(" {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),n(t.constructorMethod)&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println("}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(cf.Private)&&e.print("/*private*/ "),e.print(t.name),e.print(":"),this.visitType(t.type,e),e.println(";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print("get "+t.name+"()"),e.print(":"),this.visitType(t.type,e),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassConstructor=function(t,e){e.print("constructor("),this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print(t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype.visitFunctionExpr=function(t,e){return e.print("("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print("function "+t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Td.name+") {"),e.incIndent();var r=[Ad.set(Td.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println("}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case Eh.Bool:r="boolean";break;case Eh.Dynamic:r="any";break;case Eh.Function:r="Function";break;case Eh.Number:r="number";break;case Eh.Int:r="number";break;case Eh.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(r),null},e.prototype.visitExpressionType=function(t,e){var r=this;return t.value.visitExpression(this,e),n(t.typeParams)&&t.typeParams.length>0&&(e.print("<"),this.visitAllObjects(function(t){return t.visitType(r,e)},t.typeParams,e,","),e.print(">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print("[]"),null},e.prototype.visitMapType=function(t,e){return e.print("{[key: string]:"),this.visitType(t.valueType,e),e.print("}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(t.name),e.print(":"),r.visitType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,r){var o=this,s=_(t),a=w(t);if(i(s))throw new Error("Internal error: unknown identifier "+t);if(n(a)&&a!=this._moduleUrl){var u=this.importsWithPrefixes.get(a);i(u)&&(u="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a,u)),r.print(u+".")}t.reference&&t.reference.members&&t.reference.members.length?(r.print(t.reference.name),r.print("."),r.print(t.reference.members.join("."))):r.print(s),n(e)&&e.length>0&&(r.print("<"),this.visitAllObjects(function(t){return t.visitType(o,r)},e,r,","),r.print(">"))},e}(Md),Dd={};Qr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Qr(e.SecurityContext.STYLE,["*|style"]),Qr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Qr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Ld=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Vd=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Fd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Ud="boolean",Bd="number",Hd="string",qd="object",zd=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Wd={"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Gd=function(t){function r(){var e=this;t.call(this),this._schema={},zd.forEach(function(t){var r={},n=t.split("|"),i=n[0],o=n[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var p=c&&e._schema[c.toLowerCase()];p&&Object.keys(p).forEach(function(t){r[t]=p[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=Ud;break;case"#":r[t.substring(1)]=Bd;break;case"%":r[t.substring(1)]=qd;break;default:r[t]=Hd}})})}return Ld(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[t.toLowerCase()]||this._schema.unknown;return!!i[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var i=Dd[t+"|"+r];return i?i:(i=Dd["*|"+r],i?i:e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Wd[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},r.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return d(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",i=r.toString().trim(),o=null;if($r(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+r)}return{error:o,value:i+n}},r=Vd([R(),Fd("design:paramtypes",[])],r)}(Rp),Kd=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Jr(t);return t=Zr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Qd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),t=t+"\n"+n,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for($d.lastIndex=0;null!==(e=$d.exec(t));){var n=e[0].replace(e[2],"").replace(e[1],e[4]);r+=n+"\n\n"}return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,ev,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,rv,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(t[2]){for(var n=t[2].split(","),i=[],o=0;o<n.length;o++){var s=n[o].trim();if(!s)break;i.push(r(nv,s,t[3]))}return i.join(",")}return nv+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(Zd)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(Zd,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return ov.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return tn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=n._scopeSelectors(t.content,e,r)),new bv(i,o)})},t.prototype._scopeSelector=function(t,e,r,n){var i=this;return t.split(",").map(function(t){return t.trim().split(sv)}).map(function(t){var o=t[0],s=t.slice(1),a=function(t){return i._selectorNeedsScoping(t,e)?n?i._applyStrictSelectorScope(t,e,r):i._applySelectorScope(t,e,r):t};return[a(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+av,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(uv.lastIndex=0,uv.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(iv,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,i){return e+n+r+i})}).replace(uv,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var o="["+e+"]",s=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(nv)>-1)i=n._applySimpleSelectorScope(t,e,r);else{var s=t.replace(uv,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new Xd(t);t=a.content();for(var u,c="",p=0,l=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(nv);null!==(u=l.exec(t));){var f=u[1],d=t.slice(p,u.index).trim(),v=p>=h?s(d):d;c+=v+" "+f+" ",p=l.lastIndex}return c+=s(t.substring(p)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(pv,Jd).replace(cv,Zd)},t}(),Xd=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var i="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Yd=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Qd=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$d=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Zd="-shadowcsshost",Jd="-shadowcsscontext",tv=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ev=new RegExp("("+Zd+tv,"gim"),rv=new RegExp("("+Jd+tv,"gim"),nv=Zd+"-no-combinator",iv=/-shadowcsshost-no-combinator([^\s]*)/,ov=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],sv=/(?:>>>)|(?:\/deep\/)/g,av="([>\\s~+[.,{:][\\s\\S]*)?$",uv=/-shadowcsshost/gim,cv=/:host/gim,pv=/:host-context/gim,lv=/\/\*\s*[\s\S]*?\*\//g,hv=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,fv=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,dv=/([{}])/g,vv="{",yv="}",mv="%BLOCK%",bv=function(){function t(t,e){this.selector=t,this.content=e}return t}(),gv=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),_v=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},wv=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Sv="%COMP%",Ev="_nghost-"+Sv,Ov="_ngcontent-"+Sv,xv=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),Cv=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Tv=function(){function t(t,e,r,n,i){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=i}return t}(),Av=function(){function t(t){this._urlResolver=t,this._shadowCss=new Kd}return t.prototype.compileComponent=function(t){var e=this,r=[],n=this._compileStyles(t,new xs({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:w(t.type)}),!0);return t.template.externalStylesheets.forEach(function(n){var i=e._compileStyles(t,n,!1);r.push(i)}),new Cv(n,r)},t.prototype._compileStyles=function(t,r,n){for(var i=this,o=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return tr(i._shimIfNeeded(t,o))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new xv(rn(null),r.styleUrls[u],o,c)),s.push(new Gh(c))}var p=rn(n?t:null),l=Ge(p).set(Qe(s,new Ch(Ah,[wh.Const]))).toDeclStmt(null,[cf.Final]);return new Tv([l],p,a,o,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,Ov,Ev):t},t=_v([R(),wv("design:paramtypes",[ph])],t)}(),Pv=function(){function t(t,e){this.nodeIndex=t,this.sourceAst=e}return t}(),Rv=new Pv(null,null),Mv=function(){function t(t){this._view=t,this._newState=Rv,this._currState=Rv,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return t.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var t=this._updateDebugContext(this._newState);t&&this._bodyStatements.push(t.toStmt())}},t.prototype._updateDebugContext=function(t){if(this._currState=this._newState=t,this._debugEnabled){var e=t.sourceAst?t.sourceAst.sourceSpan.start:null;return of.callMethod("debug",[tr(t.nodeIndex),e?tr(e.line):af,e?tr(e.col):af])}return null},t.prototype.resetDebugInfoExpr=function(t,e){var r=this._updateDebugContext(new Pv(t,e));return r||af},t.prototype.resetDebugInfo=function(t,e){this._newState=new Pv(t,e)},t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];this.addStmts(t)},t.prototype.addStmt=function(t){this._updateDebugContextIfNeeded(),this._bodyStatements.push(t)},t.prototype.addStmts=function(t){this._updateDebugContextIfNeeded(),(e=this._bodyStatements).push.apply(e,t);var e},t.prototype.finish=function(){return this._bodyStatements},t.prototype.isEmpty=function(){return 0===this._bodyStatements.length},t}(),kv=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Iv=function(t){function e(e,r){t.call(this),this._viewExpr=e,this._view=r}return kv(e,t),e.prototype._isThis=function(t){return t instanceof Lh&&t.builtin===Dh.This},e.prototype.visitReadVarExpr=function(t){return this._isThis(t)?this._viewExpr:t},e.prototype.visitReadPropExpr=function(e,r){return this._isThis(e.receiver)&&(this._view.fields.some(function(t){return t.name==e.name})||this._view.getters.some(function(t){return t.name==e.name}))?this._viewExpr.cast(this._view.classType).prop(e.name):t.prototype.visitReadPropExpr.call(this,e,r)},e}(Ef),Nv=function(){function t(t,e){this.view=t,this.values=e}return t}(),jv=function(){function t(t,e,r,n){this.meta=t,this.queryList=e,this.ownerDirectiveExpression=r,this.view=n,this._values=new Nv(n,[])}return t.prototype.addValue=function(t,e){for(var r=e,n=[];r&&r!==this.view;){var i=r.declarationElement;n.unshift(i),r=i.view;
+
+}var o=nn(this.queryList,e,this.view),s=this._values;n.forEach(function(t){var e=s.values.length>0?s.values[s.values.length-1]:null;if(e instanceof Nv&&e.view===t.embeddedView)s=e;else{var r=new Nv(t.embeddedView,[]);s.values.push(r),s=r}}),s.values.push(t),n.length>0&&e.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},t.prototype._isStatic=function(){return!this._values.values.some(function(t){return t instanceof Nv})},t.prototype.generateStatements=function(t,e){var r=un(this._values),n=[this.queryList.callMethod("reset",[Qe(r)]).toStmt()];if(this.ownerDirectiveExpression){var i=this.meta.first?this.queryList.prop("first"):this.queryList;n.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||n.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?t.addStmts(n):e.addStmt(new _f(this.queryList.prop("dirty"),n))},t}(),Dv=function(){function t(){}return t.fromValue=function(t){return ar(gp.ViewType,t)},t}(),Lv=function(){function t(){}return t.fromValue=function(t){return ar(gp.ViewEncapsulation,t)},t}(),Vv=function(){function t(){}return t.fromValue=function(t){return ar(gp.ChangeDetectorStatus,t)},t}(),Fv=function(){function t(){}return t.viewUtils=Ge("viewUtils"),t.parentView=Ge("parentView"),t.parentIndex=Ge("parentIndex"),t.parentElement=Ge("parentElement"),t}(),Uv=function(){function t(){}return t.renderer=of.prop("renderer"),t.viewUtils=of.prop("viewUtils"),t}(),Bv=function(){function t(){}return t.token=Ge("token"),t.requestNodeIndex=Ge("requestNodeIndex"),t.notFoundResult=Ge("notFoundResult"),t}(),Hv=function(){function t(){}return t.throwOnChange=Ge("throwOnChange"),t.changes=Ge("changes"),t.changed=Ge("changed"),t}(),qv=function(){function t(t,e,r){this.comp=t,this.name=e,this.placeholder=r}return t}(),zv=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),Wv=function(){function t(t,e,r){this.dir=t,this.name=e,this.placeholder=r}return t}(),Gv=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Kv=function(){function t(t,e,r,n,i){this.parent=t,this.view=e,this.nodeIndex=r,this.renderNode=n,this.sourceAst=i}return t.prototype.isNull=function(){return!this.renderNode},t.prototype.isRootElement=function(){return this.view!=this.parent.view},t}(),Xv=function(t){function e(e,r,n,i,o,s,a,u,c,p,l){var h=this;t.call(this,e,r,n,i,o),this.component=s,this._directives=a,this._resolvedProvidersArray=u,this.hasViewContainer=c,this.hasEmbeddedView=p,this.compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this.contentNodesByNgContentIndex=null,this.referenceTokens={},l.forEach(function(t){return h.referenceTokens[t.name]=t.value}),this.elementRef=Ke(Qt(gp.ElementRef)).instantiate([this.renderNode]),this.instances.set(Yt(gp.ElementRef),this.elementRef),this.instances.set(Yt(gp.Injector),of.callMethod("injector",[tr(this.nodeIndex)])),this.instances.set(Yt(gp.Renderer),of.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView)&&this._createViewContainer(),this.component&&this._createComponentFactoryResolver()}return Gv(e,t),e.createNull=function(){return new e(null,null,null,null,null,null,[],[],!1,!1,[])},e.prototype._createViewContainer=function(){var t="_vc_"+this.nodeIndex,e=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new yf(t,Xe(Qt(gp.ViewContainer)),[cf.Private]));var r=of.prop(t).set(Ke(Qt(gp.ViewContainer)).instantiate([tr(this.nodeIndex),tr(e),of,this.renderNode])).toStmt();this.view.createMethod.addStmt(r),this.viewContainer=of.prop(t),this.instances.set(Yt(gp.ViewContainer),this.viewContainer),this.view.viewContainers.push(this.viewContainer)},e.prototype._createComponentFactoryResolver=function(){var t=this,e=this.component.entryComponents.map(function(e){var r={reference:null};return t.view.targetDependencies.push(new zv(e,r)),r});if(e&&0!==e.length){var r=Ke(Qt(gp.CodegenComponentFactoryResolver)).instantiate([Qe(e.map(function(t){return Ke(t)})),on(this.view,Zt(gp.ComponentFactoryResolver),!1)]),n={token:Zt(gp.ComponentFactoryResolver),useValue:r};this._resolvedProvidersArray.unshift(new Yi(n.token,!1,!0,[n],Qi.PrivateService,[],this.sourceAst.sourceSpan))}},e.prototype.setComponentView=function(t){this.compViewExpr=t,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var e=0;e<this.contentNodesByNgContentIndex.length;e++)this.contentNodesByNgContentIndex[e]=[]},e.prototype.setEmbeddedView=function(t){if(this.embeddedView=t,n(t)){var e=Ke(Qt(gp.TemplateRef_)).instantiate([of,tr(this.nodeIndex),this.renderNode]),r={token:Zt(gp.TemplateRef),useValue:e};this._resolvedProvidersArray.unshift(new Yi(r.token,!1,!0,[r],Qi.Builtin,[],this.sourceAst.sourceSpan))}},e.prototype.beforeChildren=function(){var t=this;this.hasViewContainer&&this.instances.set(Yt(gp.ViewContainerRef),this.viewContainer.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(e){return t._resolvedProviders.set(E(e.token),e)}),Array.from(this._resolvedProviders.values()).forEach(function(e){var r=e.providerType===Qi.Component||e.providerType===Qi.Directive,n=e.providers.map(function(n){if(n.useExisting)return t._getDependency(e.providerType,{token:n.useExisting});if(n.useFactory){var i=n.deps||n.useFactory.diDeps,o=i.map(function(r){return t._getDependency(e.providerType,r)});return Ke(n.useFactory).callFn(o)}if(n.useClass){var i=n.deps||n.useClass.diDeps,o=i.map(function(r){return t._getDependency(e.providerType,r)});if(r){var s={reference:null};return t.view.targetDependencies.push(new Wv(n.useClass,Qf.dirWrapperClassName(n.useClass),s)),Jf.create(s,o)}return Ke(n.useClass).instantiate(o,Xe(n.useClass))}return Gr(n.useValue)}),i="_"+S(e.token)+"_"+t.nodeIndex+"_"+t.instances.size,o=fn(i,n,e.multiProvider,e.eager,t);r?(t.directiveWrapperInstance.set(E(e.token),o),t.instances.set(E(e.token),Jf.context(o))):t.instances.set(E(e.token),o)});for(var e=function(e){var n=r._directives[e],i=r.instances.get(E($t(n.type)));n.queries.forEach(function(e){t._addQuery(e,i)})},r=this,n=0;n<this._directives.length;n++)e(n);Object.keys(this.referenceTokens).forEach(function(e){var r,n=t.referenceTokens[e];r=n?t.instances.get(E(n)):t.renderNode,t.view.locals.set(e,r)})},e.prototype.afterChildren=function(t){var e=this;Array.from(this._resolvedProviders.values()).forEach(function(r){var n=e.instances.get(E(r.token)),i=r.providerType===Qi.PrivateService?0:t;e.view.injectorGetMethod.addStmt(hn(e.nodeIndex,i,r,n))})},e.prototype.finish=function(){var t=this;Array.from(this._queries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.view.createMethod,t.view.updateContentQueriesMethod)})})},e.prototype.addContentNode=function(t,e){this.contentNodesByNgContentIndex[t].push(e)},e.prototype.getComponent=function(){return n(this.component)?this.instances.get(E($t(this.component.type))):null},e.prototype.getProviderTokens=function(){return Array.from(this._resolvedProviders.values()).map(function(t){return t.token})},e.prototype.getQueriesFor=function(t){for(var e,r=[],i=this,o=0;!i.isNull();)e=i._queries.get(E(t)),n(e)&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),i._directives.length>0&&o++,i=i.parent;return e=this.view.componentView.viewQueries.get(E(t)),n(e)&&r.push.apply(r,e),r},e.prototype._addQuery=function(t,e){var r="_query_"+S(t.selectors[0])+"_"+this.nodeIndex+"_"+this._queryCount++,n=pn(r,this.view),i=new jv(t,n,e,this.view);return ln(this._queries,i),i},e.prototype._getLocalDependency=function(t,e){var r=null;if(n(e.token)){if(!r&&E(e.token)===Yt(gp.ChangeDetectorRef))return t===Qi.Component?this.compViewExpr.prop("ref"):nn(of.prop("ref"),this.view,this.view.componentView);if(!r){var i=this._resolvedProviders.get(E(e.token));if(i&&(t===Qi.Directive||t===Qi.PublicService)&&i.providerType===Qi.PrivateService)return null;r=this.instances.get(E(e.token))}}return r},e.prototype._getDependency=function(t,e){var r=this,n=null;for(e.isValue&&(n=tr(e.value)),n||e.isSkipSelf||(n=this._getLocalDependency(t,e));!n&&!r.parent.isNull();)r=r.parent,n=r._getLocalDependency(Qi.PublicService,{token:e.token});return n||(n=on(this.view,e.token,e.isOptional)),n||(n=af),nn(n,this.view,r.view)},e}(Kv),Yv=function(){function t(t,e){var r=this;this.view=t,this.meta=e,this._purePipeProxyCount=0,this.instance=of.prop("_pipe_"+e.name+"_"+t.pipeCount++);var n=this.meta.type.diDeps.map(function(e){return E(e.token)===Yt(gp.ChangeDetectorRef)?nn(of.prop("ref"),r.view,r.view.componentView):on(t,e.token,!1)});this.view.fields.push(new yf(this.instance.name,Xe(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(of.prop(this.instance.name).set(Ke(this.meta.type).instantiate(n)).toStmt())}return t.call=function(e,r,n){var i,o=e.componentView,s=dn(o,r);return s.pure?(i=o.purePipes.get(r),i||(i=new t(o,s),o.purePipes.set(r,i),o.pipes.push(i))):(i=new t(e,s),e.pipes.push(i)),i._call(e,n)},Object.defineProperty(t.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),t.prototype._call=function(t,e){if(this.meta.pure){var r=of.prop(this.instance.name+"_"+this._purePipeProxyCount++),n=nn(this.instance,t,this.view);return sr(n.prop("transform").callMethod(Bh.Bind,[n]),e.length,r,{fields:t.fields,ctorStmts:t.createMethod}),Ke(Qt(gp.castByValue)).callFn([r,n.prop("transform")]).callFn(e)}return nn(this.instance,t,this.view).callMethod("transform",e)},t}(),Qv={};Qv.Node=0,Qv.ViewContainer=1,Qv.NgContent=2,Qv[Qv.Node]="Node",Qv[Qv.ViewContainer]="ViewContainer",Qv[Qv.NgContent]="NgContent";var $v=function(){function t(t,e,r){this.type=t,this.expr=e,this.ngContentIndex=r}return t}(),Zv=function(){function t(t,e,r,n,i,o,s,a,u){var c=this;this.component=t,this.genConfig=e,this.pipeMetas=r,this.styles=n,this.animations=i,this.viewIndex=o,this.declarationElement=s,this.templateVariableBindings=a,this.targetDependencies=u,this.viewChildren=[],this.nodes=[],this.rootNodes=[],this.lastRenderNode=af,this.viewContainers=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new Mv(this),this.animationBindingsMethod=new Mv(this),this.injectorGetMethod=new Mv(this),this.updateContentQueriesMethod=new Mv(this),this.dirtyParentQueriesMethod=new Mv(this),this.updateViewQueriesMethod=new Mv(this),this.detectChangesInInputsMethod=new Mv(this),this.detectChangesRenderPropertiesMethod=new Mv(this),this.afterContentLifecycleCallbacksMethod=new Mv(this),this.afterViewLifecycleCallbacksMethod=new Mv(this),this.destroyMethod=new Mv(this),this.detachMethod=new Mv(this),this.viewType=vn(t,o),this.className=sn(t,o),this.classType=Ye(Ge(this.className)),this.classExpr=Ge(this.className),this.componentView=this.viewType===bo.COMPONENT||this.viewType===bo.HOST?this:this.declarationElement.view.componentView,this.componentContext=nn(of.prop("context"),this,this.componentView);var p=new Map;if(this.viewType===bo.COMPONENT){var l=of.prop("context");this.component.viewQueries.forEach(function(t,e){var r="_viewQuery_"+S(t.selectors[0])+"_"+e,n=pn(r,c),i=new jv(t,n,l,c);ln(p,i)})}this.viewQueries=p,a.forEach(function(t){c.locals.set(t[1],of.prop("context").prop(t[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return t.prototype.callPipe=function(t,e,r){return Yv.call(this,t,[e].concat(r))},t.prototype.getLocal=function(t){if(t==Pf.event.name)return Pf.event;for(var e=this,r=e.locals.get(t);!r&&n(e.declarationElement.view);)e=e.declarationElement.view,r=e.locals.get(t);return n(r)?nn(r,this,e):null},t.prototype.finish=function(){var t=this;Array.from(this.viewQueries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.createMethod,t.updateViewQueriesMethod)})})},t}(),Jv=of.prop("numberOfChecks").identical(new Wh(0)),ty=(Ze(Hv.throwOnChange),function(){function t(t,e){this.query=t,this.read=t.meta.read||e}return t}()),ey=function(){function t(t,e){this.view=t,this._schemaRegistry=e,this._nodeIndex=0}return t.prototype.visitBoundText=function(t){var e=this.view.nodes[this._nodeIndex++];return Tn(t,e,this.view),null},t.prototype.visitText=function(){return this._nodeIndex++,null},t.prototype.visitNgContent=function(){return null},t.prototype.visitElement=function(t){var e=this,n=this.view.nodes[this._nodeIndex++];Mn(n);var i=yn(t.outputs,t.directives,n,!0);return An(t.inputs,t.outputs,i,n),t.directives.forEach(function(r,i){var o=n.directiveWrapperInstance.get(r.directive.type.reference);Rn(r,o,i,n),Pn(r,o,n,t.name,e._schemaRegistry)}),r(this,t.children,n),t.directives.forEach(function(t){var e=n.instances.get(t.directive.type.reference),r=n.directiveWrapperInstance.get(t.directive.type.reference);Sn(t.directive,e,n),En(t.directive,e,n),On(t,r,n)}),t.providers.forEach(function(t){var e=n.instances.get(E(t.token));xn(t,e,n)}),null},t.prototype.visitEmbeddedTemplate=function(t){var e=this.view.nodes[this._nodeIndex++];return Mn(e),yn(t.outputs,t.directives,e,!1),t.directives.forEach(function(t,r){var n=e.instances.get(t.directive.type.reference),i=e.directiveWrapperInstance.get(t.directive.type.reference);Rn(t,i,r,e),Sn(t.directive,n,e),En(t.directive,n,e),On(t,i,e)}),t.providers.forEach(function(t){var r=e.instances.get(E(t.token));xn(t,r,e)}),kn(e.embeddedView,t.children,this._schemaRegistry),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),ry="$implicit",ny="class",iy="style",oy="ng-container",sy=Ge("parentRenderNode"),ay=Ge("rootSelector"),uy=function(){function t(t,e){this.view=t,this.targetDependencies=e,this.nestedViewCount=0}return t.prototype._isRootNode=function(t){return t.view!==this.view},t.prototype._addRootNodeAndProject=function(t){var e=jn(t),r=e.parent,i=e.sourceAst.ngContentIndex,o=t instanceof Xv&&t.hasViewContainer?t.viewContainer:null;this._isRootNode(r)?this.view.viewType!==bo.COMPONENT&&this.view.rootNodes.push(new $v(o?Qv.ViewContainer:Qv.Node,o||t.renderNode)):n(r.component)&&n(i)&&r.addContentNode(i,new $v(o?Qv.ViewContainer:Qv.Node,o||t.renderNode))},t.prototype._getParentRenderNode=function(t){return t=Dn(t),this._isRootNode(t)?this.view.viewType===bo.COMPONENT?sy:af:n(t.component)&&t.component.template.encapsulation!==e.ViewEncapsulation.Native?af:t.renderNode},t.prototype.getOrCreateLastRenderNode=function(){var t=this.view;if(0===t.rootNodes.length||t.rootNodes[t.rootNodes.length-1].type!==Qv.Node){var e="_el_"+t.nodes.length;t.fields.push(new yf(e,Xe(t.genConfig.renderTypes.renderElement))),t.createMethod.addStmt(of.prop(e).set(Uv.renderer.callMethod("createTemplateAnchor",[af,af])).toStmt()),t.rootNodes.push(new $v(Qv.Node,of.prop(e)))}return t.rootNodes[t.rootNodes.length-1].expr},t.prototype.visitBoundText=function(t,e){return this._visitText(t,"",e)},t.prototype.visitText=function(t,e){return this._visitText(t,t.value,e)},t.prototype._visitText=function(t,e,r){var n="_text_"+this.view.nodes.length;this.view.fields.push(new yf(n,Xe(this.view.genConfig.renderTypes.renderText)));var i=of.prop(n),o=new Kv(r,this.view,this.view.nodes.length,i,t),s=of.prop(n).set(Uv.renderer.callMethod("createText",[this._getParentRenderNode(r),tr(e),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,t)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},t.prototype.visitNgContent=function(t,e){this.view.createMethod.resetDebugInfo(null,t);var r=this._getParentRenderNode(e);return r!==af?this.view.createMethod.addStmt(of.callMethod("projectNodes",[r,tr(t.index)]).toStmt()):this._isRootNode(e)?this.view.viewType!==bo.COMPONENT&&this.view.rootNodes.push(new $v(Qv.NgContent,null,t.index)):n(e.component)&&n(t.ngContentIndex)&&e.addContentNode(t.ngContentIndex,new $v(Qv.NgContent,null,t.index)),null},t.prototype.visitElement=function(t,e){var i,o=this.view.nodes.length,s=this.view.createMethod.resetDebugInfoExpr(o,t),a=t.directives.map(function(t){return t.directive}),u=a.find(function(t){return t.isComponent});if(t.name===oy)i=Uv.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),s]);else{var c=Fn(t.attrs),p=or(Vn(c,a).map(function(t){return tr(t)}));i=0===o&&this.view.viewType===bo.HOST?Ke(Qt(gp.selectOrCreateRenderHostElement)).callFn([Uv.renderer,tr(t.name),p,ay,s]):Ke(Qt(gp.createRenderElement)).callFn([Uv.renderer,this._getParentRenderNode(e),tr(t.name),p,s])}var l="_el_"+o;this.view.fields.push(new yf(l,Xe(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(of.prop(l).set(i).toStmt());var h=of.prop(l),f=new Xv(e,this.view,o,h,t,u,a,t.providers,t.hasViewContainer,!1,t.references);this.view.nodes.push(f);var d=null;if(n(u)){var v={reference:null};this.targetDependencies.push(new qv(u.type,sn(u,0),v)),d=of.prop("compView_"+o),this.view.fields.push(new yf(d.name,Xe(Qt(gp.AppView),[Xe(u.type)]))),this.view.viewChildren.push(d),f.setComponentView(d),this.view.createMethod.addStmt(d.set(Ke(v).instantiate([Uv.viewUtils,of,tr(o),h])).toStmt())}return f.beforeChildren(),this._addRootNodeAndProject(f),r(this,t.children,f),f.afterChildren(this.view.nodes.length-o-1),n(d)&&this.view.createMethod.addStmt(d.callMethod("create",[f.getComponent()]).toStmt()),null},t.prototype.visitEmbeddedTemplate=function(t,e){var r=this.view.nodes.length,n="_anchor_"+r;this.view.fields.push(new yf(n,Xe(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(of.prop(n).set(Uv.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),this.view.createMethod.resetDebugInfoExpr(r,t)])).toStmt());var i=of.prop(n),o=t.variables.map(function(t){return[t.value.length>0?t.value:ry,t.name]}),s=t.directives.map(function(t){return t.directive}),a=new Xv(e,this.view,r,i,t,null,s,t.providers,t.hasViewContainer,!0,t.references);this.view.nodes.push(a),this.nestedViewCount++;var u=new Zv(this.view.component,this.view.genConfig,this.view.pipeMetas,af,this.view.animations,this.view.viewIndex+this.nestedViewCount,a,o,this.targetDependencies);return this.nestedViewCount+=In(u,t.children,this.targetDependencies),a.beforeChildren(),this._addRootNodeAndProject(a),a.afterChildren(0),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),cy=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},py=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ly=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.dependencies=r}return t}(),hy=function(){function t(t,e){this._genConfig=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n,i){var o=[],s=new Zv(t,this._genConfig,n,r,i,0,Xv.createNull(),[],o),a=[];return In(s,e,o),kn(s,e,this._schemaRegistry),Nn(s,a),new ly(a,s.classExpr.name,o)},t=cy([R(),py("design:paramtypes",[kl,Rp])],t)}(),fy=function(){function t(t,e,r){this.name=t,this.statements=e,this.fnExp=r}return t}(),dy=function(){function t(){}return t.prototype.compile=function(t,e){return e.map(function(e){var r=t+"_"+e.name,n=new Ry(e.name,r);return n.build(e)})},t}(),vy=Ge("element"),yy=Ge("defaultStateStyles"),my=Ge("view"),by=my.prop("animationContext"),gy=my.prop("renderer"),_y=Ge("currentState"),wy=Ge("nextState"),Sy=Ge("player"),Ey=Ge("totalTime"),Oy=Ge("startStateStyles"),xy=Ge("endStateStyles"),Cy=Ge("collectedStyles"),Ty=Ge("previousPlayers"),Ay=$e([]),Py=Qe([]),Ry=function(){function t(t,e){this.animationName=t,this._fnVarName=e+"_factory",this._statesMapVarName=e+"_states",this._statesMapVar=Ge(this._statesMapVarName)}return t.prototype.visitAnimationStyles=function(t,e){var r=[];return e.isExpectingFirstStyleStep&&(r.push(Oy),e.isExpectingFirstStyleStep=!1),t.styles.forEach(function(t){var e=Object.keys(t).map(function(e){return[e,tr(t[e])]});r.push($e(e,null,!0))}),Ke(Qt(gp.AnimationStyles)).instantiate([Ke(Qt(gp.collectAndResolveStyles)).callFn([Cy,Qe(r)])])},t.prototype.visitAnimationKeyframe=function(t,e){return Ke(Qt(gp.AnimationKeyframe)).instantiate([tr(t.offset),t.styles.visit(this,e)])},t.prototype.visitAnimationStep=function(t,e){var r=this;if(e.endStateAnimateStep===t)return this._visitEndStateAnimation(t,e);var n=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(r,e)});return this._callAnimateMethod(t,n,Qe(i),e)},t.prototype._visitEndStateAnimation=function(t,e){var r=this,n=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(r,e)}),o=Ke(Qt(gp.balanceAnimationKeyframes)).callFn([Cy,xy,Qe(i)]);return this._callAnimateMethod(t,n,o,e)},t.prototype._callAnimateMethod=function(t,e,r,n){var i=Py;return n.isExpectingFirstAnimateStep&&(i=Ty,n.isExpectingFirstAnimateStep=!1),n.totalTransitionTime+=t.duration+t.delay,gy.callMethod("animate",[vy,e,r,tr(t.duration),tr(t.delay),tr(t.easing),i])},t.prototype.visitAnimationSequence=function(t,e){var r=this,n=t.steps.map(function(t){return t.visit(r,e)});return Ke(Qt(gp.AnimationSequencePlayer)).instantiate([Qe(n)])},t.prototype.visitAnimationGroup=function(t,e){var r=this,n=t.steps.map(function(t){return t.visit(r,e)});return Ke(Qt(gp.AnimationGroupPlayer)).instantiate([Qe(n)])},t.prototype.visitAnimationStateDeclaration=function(t,e){var r={};ri(t).forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})}),e.stateMap.registerState(t.stateName,r)},t.prototype.visitAnimationStateTransition=function(t,e){var r=t.animation.steps,n=r[r.length-1];ei(n)&&(e.endStateAnimateStep=n),e.totalTransitionTime=0,e.isExpectingFirstStyleStep=!0,e.isExpectingFirstAnimateStep=!0;var i=[];t.stateChanges.forEach(function(t){i.push(ti(_y,t.fromState).and(ti(wy,t.toState))),t.fromState!=jo&&e.stateMap.registerState(t.fromState),t.toState!=jo&&e.stateMap.registerState(t.toState)});var o=t.animation.visit(this,e),s=i.reduce(function(t,e){return t.or(e)}),a=Sy.equals(af).and(s),u=Sy.set(o).toStmt(),c=Ey.set(tr(e.totalTransitionTime)).toStmt();return new _f(a,[u,c])},t.prototype.visitAnimationEntry=function(t,e){var r=this;t.stateDeclarations.forEach(function(t){return t.visit(r,e)}),e.stateMap.registerState(Do,{});var n=[];n.push(Ty.set(by.callMethod("getAnimationPlayers",[vy,wy.equals(tr(Lo)).conditional(af,tr(this.animationName))])).toDeclStmt()),n.push(Cy.set(Ay).toDeclStmt()),n.push(Sy.set(af).toDeclStmt()),n.push(Ey.set(tr(0)).toDeclStmt()),n.push(yy.set(this._statesMapVar.key(tr(Do))).toDeclStmt()),n.push(Oy.set(this._statesMapVar.key(_y)).toDeclStmt()),n.push(new _f(Oy.equals(af),[Oy.set(yy).toStmt()])),n.push(xy.set(this._statesMapVar.key(wy)).toDeclStmt()),n.push(new _f(xy.equals(af),[xy.set(yy).toStmt()]));var i=Ke(Qt(gp.renderStyles));return t.stateTransitions.forEach(function(t){return n.push(t.visit(r,e))}),n.push(new _f(Sy.equals(af),[Sy.set(Ke(Qt(gp.NoOpAnimationPlayer)).instantiate([])).toStmt()])),n.push(Sy.callMethod("onDone",[Je([],[Sy.callMethod("destroy",[]).toStmt(),i.callFn([vy,gy,Ke(Qt(gp.prepareFinalAnimationStyles)).callFn([Oy,xy])]).toStmt()])]).toStmt()),n.push(Ke(Qt(gp.AnimationSequencePlayer)).instantiate([Ty]).callMethod("destroy",[]).toStmt()),n.push(i.callFn([vy,gy,Ke(Qt(gp.clearStyles)).callFn([Oy])]).toStmt()),n.push(by.callMethod("queueAnimation",[vy,tr(this.animationName),Sy]).toStmt()),n.push(new df(Ke(Qt(gp.AnimationTransition)).instantiate([Sy,_y,wy,Ey]))),Je([new Qh(my.name,Xe(Qt(gp.AppView),[Ah])),new Qh(vy.name,Ah),new Qh(_y.name,Ah),new Qh(wy.name,Ah)],n,Xe(Qt(gp.AnimationTransition)))},t.prototype.build=function(t){var e=new My,r=t.visit(this,e).toDeclStmt(this._fnVarName),i=Ge(this._fnVarName),o=[];Object.keys(e.stateMap.states).forEach(function(t){var r=e.stateMap.states[t],i=Ay;if(n(r)){var s=[];Object.keys(r).forEach(function(t){s.push([t,tr(r[t])])}),i=$e(s,null,!0)}o.push([t,i])});var s=this._statesMapVar.set($e(o,null,!0)).toDeclStmt(),a=[s,r];return new fy(this.animationName,a,i)},t}(),My=function(){function t(){this.stateMap=new ky,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.isExpectingFirstAnimateStep=!1,this.totalTransitionTime=0}return t}(),ky=function(){function t(){this._states={}}return Object.defineProperty(t.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),t.prototype.registerState=function(t,e){void 0===e&&(e=null);var r=this._states[t];r||(this._states[t]=e)},t}(),Iy=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Ny=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},jy=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Dy=function(t){function e(e){t.call(this),this.host=e,this.symbols=[],this.indexBySymbol=new Map,this.processedSummaryBySymbol=new Map,this.processedSummaries=[]}return Ny(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics});var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this;return JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(e,r){return{__symbol:r,name:e.name,filePath:t.host.getOutputFileName(e.filePath)}})})},e.prototype.processValue=function(t){return b(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof Ji){var e=this.indexBySymbol.get(t);return null==e&&(e=this.indexBySymbol.size,this.indexBySymbol.set(t,e),this.symbols.push(t)),{__symbol:e}}},e}(as),Ly=function(t){function e(e){t.call(this),this.symbolCache=e}return Ny(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t);return this.symbols=r.symbols.map(function(t){return e.symbolCache.get(t.filePath,t.name)}),b(r.summaries,this,null)},e.prototype.visitStringMap=function(e,r){return"__symbol"in e?this.symbols[e.__symbol]:t.prototype.visitStringMap.call(this,e,r)},e}(as),Vy=function(){function t(t,e,r,n,i,o,s,a,u,c,p,l,h){this._host=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=i,this._dirWrapperCompiler=o,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=p,this._animationParser=l,this._symbolResolver=h,this._animationCompiler=new dy}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=yi(this._symbolResolver,t,this._host),n=di(r,this._host,this._metadataResolver),i=n.ngModuleByPipeOrDirective,o=n.files,s=n.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=o.map(function(t){return e._compileSrcFile(t.srcUrl,i,t.directives,t.pipes,t.ngModules,t.injectables)});return io.flatten(t)})},t.prototype._compileSrcFile=function(t,e,r,n,i,o){var s=this,a=hi(t)[1],u=[],c=[],p=[];if(p.push(this._createSummary(t,r,n,i,o)),c.push.apply(c,i.map(function(t){return s._compileModule(t,u)})),c.push.apply(c,r.map(function(t){return s._compileDirectiveWrapper(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var i=e.get(r);if(!i)throw new Error("Internal Error: cannot determine the module for component "+_(n.type)+"!");li(n);var o=s._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(e){p.push(s._codgenStyles(t,e,a))}),c.push(s._compileComponentFactory(n,i,a,u),s._compileComponent(n,i,i.transitiveModule.directives,o.componentStylesheet,a,u))}),u.length>0){var l=this._codegenSourceModule(t,ui(t),u,c);p.unshift(l)}return p},t.prototype._createSummary=function(t,e,r,n,i){var o=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return o._symbolResolver.resolveSymbol(t)}),a=n.map(function(t){return o._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return o._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return o._metadataResolver.getPipeSummary(t)}),i.map(function(t){return o._metadataResolver.getInjectableSummary(t)})),u=ni(this._host,this._summaryResolver,this._symbolResolver,s,a);return new Iy(t,oi(t),u)},t.prototype._compileModule=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),i=[];this._localeId&&i.push({token:Zt(gp.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&i.push({token:Zt(gp.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,i);return o.dependencies.forEach(function(t){t.placeholder.reference=r._symbolResolver.getStaticSymbol(ui(w(t.comp)),ci(t.comp))}),e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileDirectiveWrapper=function(t,e){var r=this._metadataResolver.getDirectiveMetadata(t),n=this._dirWrapperCompiler.compile(r);return e.push.apply(e,n.statements),n.dirWrapperClassVar},t.prototype._compileComponentFactory=function(t,e,r,n){var i=O(this._symbolResolver.getStaticSymbol(w(t.type),_(t.type)+"_Host"),t),o=this._compileComponent(i,e,[t.type],null,r,n),s=ci(t.type);return n.push(Ge(s).set(Ke(Qt(gp.ComponentFactory),[Xe(t.type)]).instantiate([tr(t.selector),Ge(o),Ke(t.type)],Xe(Qt(gp.ComponentFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final])),s},t.prototype._compileComponent=function(t,e,r,n,i,o){var s=this,a=this._animationParser.parseComponent(t),u=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),c=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),p=this._templateParser.parse(t,t.template.template,u,c,e.schemas,_(t.type)),l=n?Ge(n.stylesVar):Qe([]),h=this._animationCompiler.compile(_(t.type),a),f=this._viewCompiler.compileComponent(t,p,l,c,h);return n&&o.push.apply(o,ai(this._symbolResolver,n,i)),h.forEach(function(t){return o.push.apply(o,t.statements)}),o.push.apply(o,si(this._symbolResolver,f)),f.viewClassVar},t.prototype._codgenStyles=function(t,e,r){return ai(this._symbolResolver,e,r),this._codegenSourceModule(t,pi(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new Iy(t,e,this._outputEmitter.emitStatements(e,r,n))},t}(),Fy=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new Po}return t.install=function(e){To.updateCapabilities(new t(e))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t);
+
+},t.prototype.hasLifecycleHook=function(t,e){return bi(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return bi(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return bi(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return bi(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resolveIdentifier=function(t,e){return this.staticDelegate.resolveIdentifier(t,e)},t.prototype.resolveEnum=function(t,e){return bi(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Uy=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},By={coreDecorators:"@angular/core/src/metadata",diDecorators:"@angular/core/src/di/metadata",diMetadata:"@angular/core/src/di/metadata",diOpaqueToken:"@angular/core/src/di/opaque_token",animationMetadata:"@angular/core/src/animation/metadata",provider:"@angular/core/src/di/provider"},Hy=/^\$.*\$$/,qy=function(){function t(t,e,r,n){var i=this;void 0===e&&(e=[]),void 0===r&&(r=[]),this.symbolResolver=t,this.errorRecorder=n,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resolveIdentifier=function(t,e){return this.findDeclaration(e,t)},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof Ji?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t;return this.getStaticSymbol(r.filePath,r.name,[e])},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var r=this.getTypeMetadata(t);if(r["extends"]){var n=this.annotations(this.simplify(t,r["extends"]));e.push.apply(e,n)}if(r.decorators){var i=this.simplify(t,r.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);if(r={},n["extends"]){var i=this.propMetadata(this.simplify(t,n["extends"]));Object.keys(i).forEach(function(t){r[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(n){var i=o[n],s=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,s&&s.decorators&&a.push.apply(a,e.simplify(t,s.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof Ji))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=r?r.members:null,i=n?n.__ctor__:null;if(i){var o=i.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,o.parameters||[]),a=this.simplify(t,o.parameterDecorators||[]);e=[],s.forEach(function(t,r){var n=[];t&&n.push(t);var i=a?a[r]:null;i&&n.push.apply(n,i),e.push(n)})}else r["extends"]&&(e=this.parameters(this.simplify(t,r["extends"])));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(u){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+u),u}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);if(e={},r["extends"]){var n=this._methodNames(this.simplify(t,r["extends"]));Object.keys(n).forEach(function(t){e[t]=n[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof Ji||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(r){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+r),r}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){{var t=By.coreDecorators,r=By.diDecorators,n=By.diMetadata,i=By.diOpaqueToken,o=By.animationMetadata;By.provider}this.opaqueToken=this.findDeclaration(i,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(r,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(t,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(n,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(o,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(o,"state"),e.state),this._registerFunction(this.findDeclaration(o,"transition"),e.transition),this._registerFunction(this.findDeclaration(o,"style"),e.style),this._registerFunction(this.findDeclaration(o,"animate"),e.animate),this._registerFunction(this.findDeclaration(o,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(o,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(o,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,i,a){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=i.value;if(u&&(0!=n||"error"!=u.__symbolic)){var p=i.parameters,l=i.defaults;a=a.map(function(e){return r(t,e,n+1)}),l&&l.length>a.length&&a.push.apply(a,l.slice(a.length).map(function(t){return c(t)}));for(var h=zy.build(),f=0;f<p.length;f++)h.define(p[f],a[f]);var d,v=o;try{o=h.done(),d=r(e,u,n+1)}finally{o=v}return d}}finally{s["delete"](e)}}return 0===n?{__symbolic:"ignore"}:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Si(e))return e;if(e instanceof Array){for(var s=[],p=0,l=e;p<l.length;p++){var h=l[p];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,v=f;d<v.length;d++){var y=v[d];s.push(y)}continue}}var m=c(h);Ei(m)||s.push(m)}return s}if(e instanceof Ji){if(e===i.opaqueToken||i.conversionMap.has(e))return e;var b=e,g=a(b);return g?r(b,g,n+1):b}if(e){if(e.__symbolic){var b=void 0;switch(e.__symbolic){case"binop":var _=c(e.left);if(Ei(_))return _;var w=c(e.right);if(Ei(w))return w;switch(e.operator){case"&&":return _&&w;case"||":return _||w;case"|":return _|w;case"^":return _^w;case"&":return _&w;case"==":return _==w;case"!=":return _!=w;case"===":return _===w;case"!==":return _!==w;case"<":return w>_;case">":return _>w;case"<=":return w>=_;case">=":return _>=w;case"<<":return _<<w;case">>":return _>>w;case"+":return _+w;case"-":return _-w;case"*":return _*w;case"/":return _/w;case"%":return _%w}return null;case"if":var S=c(e.condition);return c(S?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Ei(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var O=c(e.expression),x=c(e.index);return O&&Si(x)?O[x]:null;case"select":var C=e.member,T=t,A=c(e.expression);if(A instanceof Ji){var P=A.members.concat(C);T=i.getStaticSymbol(A.filePath,A.name,P);var g=a(T);return g?r(T,g,n+1):T}return A&&Si(C)?r(T,A[C],n+1):null;case"reference":var R=e.name,M=o.resolve(R);if(M!=zy.missing)return M;break;case"class":return t;case"function":return t;case"new":case"call":if(b=r(t,e.expression,n+1),b instanceof Ji){if(b===i.opaqueToken)return t;var k=e.arguments||[],I=i.conversionMap.get(b);if(I){var N=k.map(function(e){return r(t,e,n+1)});return I(t,N)}var j=a(b);return u(b,j,k)}break;case"error":var D=_i(e);if(e.line)throw D=D+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",Oi(D,t.filePath,e.line,e.character);throw new Error(D)}return null}return wi(e,function(t){return c(t)})}return null}try{return c(e)}catch(p){var l=t.members.length?"."+t.members.join("."):"",h=p.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(p.fileName)throw Oi(h,p.fileName,p.line,p.column);throw new cs(h)}}var n=this,i=this,o=zy.empty,s=new Map,a=function(t,e,i){try{return r(t,e,i)}catch(o){n.reportError(o,t)}},u=this.errorRecorder?a(t,e,0):r(t,e,0);return Ei(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),zy=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new Wy(e):t.empty}}},t.missing={},t.empty={resolve:function(){return t.missing}},t}(),Wy=function(t){function e(e){t.call(this),this.bindings=e}return Uy(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):zy.missing},e}(zy),Gy=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ky=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Xy=3,Yy=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);return e||(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)),e},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof Ji)return new Ky(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var i=n,o=0;o<e.length&&i;o++)i=i[e[o]];return new Ky(t,i)}return n.statics&&1===e.length?new Ky(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Ky(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata&&Object.keys(n.metadata).forEach(function(i){var o=n.metadata[i];r.push(e.createResolvedSymbol(e.getStaticSymbol(t,i),o))}),n.exports)for(var i=function(n){if(n["export"])n["export"].forEach(function(i){var o;o="string"==typeof i?i:i.as;var s=o;"string"!=typeof i&&(s=i.name);var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);r.push(new Ky(c,u))}});else{var i=o.resolveModule(n.from,t);if(i){var s=o.getSymbolsOf(i);s.forEach(function(n){var i=e.getStaticSymbol(t,n.name);r.push(new Ky(i,n))})}}},o=this,s=0,a=n.exports;s<a.length;s++){var u=a[s];i(u)}r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)})}},t.prototype.createResolvedSymbol=function(t,e){var r=this,n=function(e){function n(){e.apply(this,arguments)}return Gy(n,e),n.prototype.visitStringMap=function(n,i){var o=n.__symbolic;if("function"===o){var s=i.length;i.push.apply(i,n.parameters||[]);var a=e.prototype.visitStringMap.call(this,n,i);return i.length=s,a}if("reference"===o){var u=n.module,c=n.name;if(!c)return null;var p=void 0;if(u){if(p=r.resolveModule(u,t.filePath),!p)return{__symbolic:"error",message:"Could not resolve "+u+" relative to "+t.filePath+"."}}else{var l=i.indexOf(c)>=0;l||(p=t.filePath)}return p?r.getStaticSymbol(p,c):{__symbolic:"reference",name:c}}return e.prototype.visitStringMap.call(this,n,i)},n}(as),i=b(e,new n,[]);return new Ky(t,i)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Xy,module:t,metadata:{}}),e.version!=Xy){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Xy;this.reportError(new Error(i),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n            containingFile\n          } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(new r,null,e)}},t}(),Qy=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set}return t.prototype._assertNoMembers=function(t){if(t.members.length)throw new Error("Internal state: StaticSymbols in summaries can't have members! "+JSON.stringify(t))},t.prototype.resolveSummary=function(t){this._assertNoMembers(t);var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),!this.host.isSourceFile(t))){var r=oi(t),n=void 0;try{n=this.host.loadSummary(r)}catch(i){throw console.error("Error loading summary file "+r),i}if(n){var o=ii(this.staticSymbolCache,n);o.forEach(function(t){e.summaryCache.set(t.symbol,t)})}}},t}(),$y=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Zy=function(){function t(t){this.value=t}return t}(),Jy=function(){function t(){}return t.prototype.debugAst=function(t){return Yr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(n(t.builtin))switch(t.builtin){case Dh.Super:return e.instance.__proto__;case Dh.This:return e.instance;case Dh.CatchError:r=tm;break;case Dh.CatchStack:r=em;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var i=e;null!=i;){if(i.vars.has(r))return i.vars.get(r);i=i.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return r[n]=i,i},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,i=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(n(t.builtin))switch(t.builtin){case Bh.ConcatArray:r=i.concat.apply(i,o);break;case Bh.SubscribeObservable:r=i.subscribe({next:o[0]});break;case Bh.Bind:r=i.bind.apply(i,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=i[t.name].apply(i,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;if(n instanceof Lh&&n.builtin===Dh.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,r),null;var i=t.fn.visitExpression(this,e);return i.apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new Zy(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Ai(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var r=t.condition.visitExpression(this,e);return r?this.visitAllStatements(t.trueCase,e):n(t.falseCase)?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(tm,r),n.vars.set(em,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):n(t.falseCase)?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var r=t.params.map(function(t){return t.name});return Pi(r,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Pi(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},i=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case Nh.Equals:return n()==i();case Nh.Identical:return n()===i();case Nh.NotEquals:return n()!=i();case Nh.NotIdentical:return n()!==i();case Nh.And:return n()&&i();case Nh.Or:return n()||i();case Nh.Plus:return n()+i();case Nh.Minus:return n()-i();case Nh.Divide:return n()/i();case Nh.Multiply:return n()*i();case Nh.Modulo:return n()%i();case Nh.Lower:return n()<i();case Nh.LowerEquals:return n()<=i();case Nh.Bigger:return n()>i();case Nh.BiggerEquals:return n()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=n.visitStatement(this,e);if(i instanceof Zy)return i}return null},t}(),tm="error",em="stack",rm=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},nm=function(t){function e(){t.call(this,!1)}return rm(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),n(t.parent)&&(e.print(t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print("function "+t.name+"("),n(t.constructorMethod)&&this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),n(t.constructorMethod)&&t.constructorMethod.body.length>0&&(e.println("var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println("}")},e.prototype._visitClassGetter=function(t,e,r){r.println("Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println("}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(") {"),r.incIndent(),e.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println("};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===Dh.This)r.print("self");else{if(e.builtin===Dh.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print("var "+t.name+" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof Lh&&n.builtin===Dh.Super?(r.currentClass.parent.visitExpression(this,r),r.print(".call(this"),e.args.length>0&&(r.print(", "),this.visitAllExpressions(e.args,r,",")),r.print(")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print("function("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print("function "+t.name+"("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Td.name+") {"),e.incIndent();var r=[Ad.set(Td.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println("}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Md),im=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},om=function(t){function e(){t.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return im(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var i=_(t.value)||"val";this._evalArgNames.push("jit_"+i+n)}return e.print(this._evalArgNames[n]),null},e}(nm),sm=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},am=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},um=function(){function t(t,e,r,n,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=i,this._ngModuleCompiler=o,this._directiveWrapperCompiler=s,this._compilerConfig=a,this._animationParser=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationCompiler=new dy}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+s(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),i=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new us(i()):new us(null,n.then(i))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,i=this._loadModules(t,r),o=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new us(o()):new us(null,i.then(o))},t.prototype._loadModules=function(t,e){var r=this,n=[],i=this._metadataResolver.getNgModuleMetadata(t);return i.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new Ms(e.Compiler,{useFactory:function(){return new pm(r,i.type.reference)}}))],s=this._ngModuleCompiler.compile(i,o);s.dependencies.forEach(function(t){t.placeholder.reference=r._assertComponentKnown(t.comp.reference,!0).proxyComponentFactory}),n=this._compilerConfig.useJit?Mi("/"+_(i.type)+"/module.ngfactory.js",s.statements,s.ngModuleFactoryVar):Ci(s.statements,s.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){i.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(r._compileDirectiveWrapper(s,n),s.isComponent&&(o.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);o.add(a),e.push(a.proxyComponentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(r._createCompiledHostTemplate(t.reference,e))})}),e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(r._createCompiledHostTemplate(t.reference,e))})}),o.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+s(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var n=this._metadataResolver.getDirectiveMetadata(t);ki(n);var i=function(){};i.overriddenName=_(n.type)+"_Host";var o=O(i,n);r=new cm(!0,n.selector,n.type,o,e,[n.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(ki(t),r=new cm(!1,t.selector,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._assertComponentKnown=function(t,e){var r=e?this._compiledHostTemplateCache.get(t):this._compiledTemplateCache.get(t);if(!r)throw new Error("Illegal state: Compiled view for component "+s(t)+" (host: "+e+") does not exist!");return r},t.prototype._assertDirectiveWrapper=function(t){var e=this._compiledDirectiveWrapperCache.get(t);if(!e)throw new Error("Illegal state: Directive wrapper for "+s(t)+" has not been compiled!");
+
+return e},t.prototype._compileDirectiveWrapper=function(t,e){var r,n=this._directiveWrapperCompiler.compile(t),i=n.statements;r=this._compilerConfig.useJit?Mi("/"+_(e.type)+"/"+_(t.type)+"/wrapper.ngfactory.js",i,n.dirWrapperClassVar):Ci(i,n.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(t.type.reference,r)},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,i=this._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(i.componentStylesheet,n);var o=this._animationParser.parseComponent(r),s=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),a=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),u=this._templateParser.parse(r,r.template.template,s,a,t.ngModule.schemas,_(r.type)),c=this._animationCompiler.compile(_(r.type),o),p=this._viewCompiler.compileComponent(r,u,Ge(i.componentStylesheet.stylesVar),a,c);p.dependencies.forEach(function(t){var r;if(t instanceof qv){var n=t;r=e._assertComponentKnown(n.comp.reference,!1),n.placeholder.reference=r.proxyViewClass}else if(t instanceof zv){var i=t;r=e._assertComponentKnown(i.comp.reference,!0),i.placeholder.reference=r.proxyComponentFactory}else if(t instanceof Wv){var o=t;o.placeholder.reference=e._assertDirectiveWrapper(o.dir.reference)}});var l,h=(f=i.componentStylesheet.statements).concat.apply(f,c.map(function(t){return t.statements})).concat(p.statements);l=this._compilerConfig.useJit?Mi("/"+_(t.ngModule.type)+"/"+_(t.compType)+"/"+(t.isHost?"host":"component")+".ngfactory.js",h,p.viewClassVar):Ci(h,p.viewClassVar),t.compiled(l);var f}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t){var n=e.get(t.moduleUrl),i=r._resolveAndEvalStylesCompileResult(n,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Mi("/"+t.meta.moduleUrl+".ngstyle.js",t.statements,t.stylesVar):Ci(t.statements,t.stylesVar)},t=sm([R(),am("design:paramtypes",[e.Injector,fd,xl,Av,hy,wd,Qf,kl,ih])],t)}(),cm=function(){function t(t,r,n,i,o,a){this.isHost=t,this.compType=n,this.compMeta=i,this.ngModule=o,this.directives=a,this._viewClass=null,this.isCompiled=!1;var u=this;this.proxyViewClass=function(){if(!u._viewClass)throw new Error("Illegal state: CompiledTemplate for "+s(u.compType)+" is not compiled yet!");return u._viewClass.apply(this,arguments)},this.proxyComponentFactory=t?new e.ComponentFactory(r,this.proxyViewClass,n.reference):null}return t.prototype.compiled=function(t){this._viewClass=t,this.proxyViewClass.prototype=t.prototype,this.isCompiled=!0},t}(),pm=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),lm=function(){function t(t,e,r){this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var i=lt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);if(i.errors.length)return i.errors;(o=this._messages).push.apply(o,i.messages);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){return t.write(this._messages)},t}(),hm=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=yi(this.staticSymbolResolver,t,this.host),n=di(r,this.host,this.metadataResolver),i=n.files,o=n.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(i.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var i=n.template.template,o=Na.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,r.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r){var n=new dp(new lp),i=De(),o=new to,s=new Qy(r,o),a=new Yy(r,o,s),u=new qy(a);Fy.install(u);var c=new kl({genDebugInfo:!1,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),p=new vh({get:function(t){return r.loadResource(t)}},i,n,c),l=new Gd,h=new fd(new rd(u),new gh(u),new od(u),s,l,p,u),f=new lm(n,[],{}),d=new t(r,a,f,h);return{extractor:d,staticReflector:u}},t}(),fm=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},dm=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},vm={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},ym=new e.OpaqueToken("HtmlParser"),mm=[{provide:Ao,useValue:To},{provide:co,useExisting:Ao},{provide:sh,useValue:vm},ud,Co,fu,wu,{provide:ym,useClass:lp},{provide:dp,useFactory:function(t,e,r){return new dp(t,e,r)},deps:[ym,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)]]},{provide:lp,useExisting:dp},xl,vh,fd,ch,Av,hy,wd,Qf,{provide:kl,useValue:new kl},um,{provide:e.Compiler,useExisting:um},Gd,{provide:Rp,useExisting:Gd},ph,gh,od,rd,ih],bm=function(){function t(t){this._defaultOptions=[{useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated}].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Ni(this._defaultOptions.concat(t)),n=e.ReflectiveInjector.resolveAndCreate([mm,{provide:kl,useFactory:function(){return new kl({genDebugInfo:r.useDebug,useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,logBindingUpdate:r.useDebug})},deps:[]},r.providers]);return n.get(e.Compiler)},t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]},t=fm([R(),dm("design:paramtypes",[Array])],t)}(),gm=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:bm},{provide:e.PLATFORM_INITIALIZER,useValue:Ii,multi:!0}]),_m=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t}();t.VERSION=Li,t.TextAst=Vi,t.BoundTextAst=Fi,t.AttrAst=Ui,t.BoundElementPropertyAst=Bi,t.BoundEventAst=Hi,t.ReferenceAst=qi,t.VariableAst=zi,t.ElementAst=Wi,t.EmbeddedTemplateAst=Gi,t.BoundDirectivePropertyAst=Ki,t.DirectiveAst=Xi,t.ProviderAst=Yi,t.ProviderAstType=Qi,t.NgContentAst=$i,t.PropertyBindingType=Zi,t.templateVisitAll=r,t.TEMPLATE_TRANSFORMS=Sl,t.CompilerConfig=kl,t.RenderTypes=Il,t.CompileAnimationEntryMetadata=hs,t.CompileAnimationStateMetadata=fs,t.CompileAnimationStateDeclarationMetadata=ds,t.CompileAnimationStateTransitionMetadata=vs,t.CompileAnimationMetadata=ys,t.CompileAnimationKeyframesSequenceMetadata=ms,t.CompileAnimationStyleMetadata=bs,t.CompileAnimationAnimateMetadata=gs,t.CompileAnimationWithStepsMetadata=_s,t.CompileAnimationSequenceMetadata=ws,t.CompileAnimationGroupMetadata=Ss,t.identifierName=_,t.identifierModuleUrl=w,t.CompileSummaryKind=Os,t.tokenName=S,t.tokenReference=E,t.CompileStylesheetMetadata=xs,t.CompileTemplateMetadata=Cs,t.CompileDirectiveMetadata=Ts,t.createHostComponentMeta=O,t.CompilePipeMetadata=As,t.CompileNgModuleMetadata=Ps,t.TransitiveCompileNgModuleMetadata=Rs,t.ProviderMeta=Ms,t.createAotCompiler=xi,t.AotCompiler=Vy,t.analyzeNgModules=fi,t.analyzeAndValidateNgModules=di,t.extractProgramSymbols=yi,t.StaticReflector=qy,t.StaticAndDynamicReflectionCapabilities=Fy,t.StaticSymbol=Ji,t.StaticSymbolCache=to,t.ResolvedStaticSymbol=Ky,t.StaticSymbolResolver=Yy,t.AotSummaryResolver=Qy,t.SummaryResolver=ud,t.JitCompiler=um,t.COMPILER_PROVIDERS=mm,t.JitCompilerFactory=bm,t.platformCoreDynamic=gm,t.createUrlResolverWithoutPackagePrefix=je,t.createOfflineCompileUrlResolver=De,t.DEFAULT_PACKAGE_URL_PROVIDER=ch,t.UrlResolver=ph,t.getUrlScheme=Le,t.ResourceLoader=sh,t.DirectiveResolver=gh,t.PipeResolver=od,t.NgModuleResolver=rd,t.DEFAULT_INTERPOLATION_CONFIG=ja,t.InterpolationConfig=Na,t.ElementSchemaRegistry=Rp,t.Extractor=hm,t.I18NHtmlParser=dp,t.MessageBundle=lm,t.Serializer=Ec,t.Xliff=Bc,t.Xmb=$c,t.Xtb=op,t.DirectiveNormalizer=vh,t.TokenType=lu,t.Lexer=fu,t.Token=du,t.EOF=vu,t.isIdentifier=B,t.isQuote=W,t.SplitInterpolation=gu,t.TemplateBindingParseResult=_u,t.Parser=wu,t._ParseAST=Su,t.ERROR_COLLECTOR_TOKEN=hd,t.CompileMetadataResolver=fd,t.componentModuleUrl=qr,t.ParseTreeResult=Wu,t.TreeError=zu,t.HtmlParser=lp,t.NgModuleCompiler=wd,t.DirectiveWrapperCompiler=Qf,t.ImportResolver=_m,t.debugOutputAstAsTypeScript=Yr,t.TypeScriptEmitter=Nd,t.ParseLocation=Ou,t.ParseSourceFile=xu,t.ParseSourceSpan=Cu,t.ParseErrorLevel=Tu,t.ParseError=Au,t.DomElementSchemaRegistry=Gd,t.CssSelector=Zo,t.SelectorMatcher=Jo,t.SelectorListContext=ts,t.SelectorContext=es,t.StylesCompileDependency=xv,t.StylesCompileResult=Cv,t.CompiledStylesheet=Tv,t.StyleCompiler=Av,t.TemplateParseError=El,t.TemplateParseResult=Ol,t.TemplateParser=xl,t.splitClasses=ye,t.createElementCssSelector=me,t.removeSummaryDuplicates=ge,t.ViewCompiler=hy,t.AnimationParser=ih,t.SyntaxError=cs})},{"@angular/core":7}],7:[function(e,r,n){(function(i){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("rxjs/symbol/observable"),e("rxjs/Subject"),e("rxjs/Observable")):"function"==typeof t&&t.amd?t(["exports","rxjs/symbol/observable","rxjs/Subject","rxjs/Observable"],o):o((i.ng=i.ng||{},i.ng.core=i.ng.core||{}),i.rxjs_symbol_observable,i.Rx,i.Rx)}(this,function(t,e,r){"use strict";function n(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function o(t){return t.name||typeof t}function s(t){return null!=t}function a(t){return null==t}function u(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function c(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function p(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function l(t){console.log(t)}function h(t){console.warn(t)}function f(){if(!fe)if(le.Symbol&&Symbol.iterator)fe=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(fe=r)}return fe}function d(t){return!p(t)}function v(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function y(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+u(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,i=t[n];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+u(i)+"'");if(n!=i.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+i.length+") in the function: "+u(i));for(var o=[],s=0,a=r.length-1;a>s;s++){var c=[];o.push(c);var p=r[s];if(Array.isArray(p))for(var l=0;l<p.length;l++)c.push(v(p[l]));else c.push("function"==typeof p?v(p):p)}return ve.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+u(t)+"'")}function m(t){var e=y(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+u(t["extends"]));e.prototype=r=Object.create(t["extends"].prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=y(t[n],n));this&&this.annotations instanceof Array&&ve.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+de++),e}function b(t,e,r,n){function i(t){if(!ve||!ve.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=ve.getOwnMetadata("annotations",t)||[];return r.push(e),ve.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=m,n&&n(s),s}void 0===n&&(n=null);var o=g([e]);return r&&(i.prototype=Object.create(r.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function g(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];t.forEach(function(t,n){var i=r[n];if(Array.isArray(t))e[t[0]]=void 0===i?t[1]:i;else for(var o in t)e[o]=i&&i.hasOwnProperty(o)?i[o]:t[o]})}}function _(t,e,r){function n(){function t(t,e,r){for(var n=ve.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(o),ve.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];if(this instanceof n)return i.apply(this,e),this;var o=new((s=n).bind.apply(s,[void 0].concat(e)));return t.annotation=o,t;var s}var i=g(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function w(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(this instanceof n)return i.apply(this,t),this;var r=new((o=n).bind.apply(o,[void 0].concat(t)));return function(t,e){var n=ve.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),ve.defineMetadata("propMetadata",n,t.constructor)};var o}var i=g(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function S(t){return a(t)||t===Re.Default}function E(t){return t.__forward_ref__=E,t.toString=function(){return u(this())},t}function O(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===E?t():t}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function C(t){if(t.length>1){var e=x(t.slice().reverse()),r=e.map(function(t){return u(t.token)});return" ("+r.join(" -> ")+")"}return""}function T(t){return"function"==typeof t}function A(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function P(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}function R(t){var e,r;if(t.useClass){var n=O(t.useClass);e=Tr.factory(n),r=D(n)}else t.useExisting?(e=function(t){return t},r=[Ar.fromKey(br.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=j(t.useFactory,t.deps)):(e=function(){return t.useValue},r=Pr);return new Mr(e,r)}function M(t){return new Rr(br.get(t.provide),[R(t)],t.multi)}function k(t){var e=N(t,[]),r=e.map(M),n=I(r,new Map);return Array.from(n.values())}function I(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=e.get(n.key.id);if(i){if(n.multiProvider!==i.multiProvider)throw new mr(i,n);if(n.multiProvider)for(var o=0;o<n.resolvedFactories.length;o++)i.resolvedFactories.push(n.resolvedFactories[o]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new Rr(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function N(t,e){return t.forEach(function(t){if(t instanceof wr)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw new dr(t);N(t,e)}}),e}function j(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return L(t,e,r)})}return D(t)}function D(t){var e=Tr.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw new vr(t,e);return e.map(function(r){return L(t,r,e)})}function L(t,e,r){var n=null,i=!1;if(!Array.isArray(e))return e instanceof ye?V(e.token,i,null):V(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof wr?n=a:a instanceof ye?n=a.token:a instanceof me?i=!0:(a instanceof ge||a instanceof _e)&&(o=a)}if(n=O(n),null!=n)return V(n,i,o);throw new vr(t,r)}function V(t,e,r){return new Ar(br.get(t),e,r)}function F(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function U(t){return p(t)?Array.isArray(t)||!(t instanceof Map)&&f()in t:!1}function B(t,e,r){for(var n=t[f()](),i=e[f()]();;){var o=n.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!r(o.value,s.value))return!1}}function H(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[f()](),i=void 0;!(i=n.next()).done;)e(i.value)}function q(t){return!!t&&"function"==typeof t.then}function z(t){return!(!t||!t[e.$$observable])}function W(){return""+G()+G()+G()}function G(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function K(){throw new Error("Runtime compiler is not loaded")}function X(t,e,r){var n=t.previousIndex;if(null===n)return n;var i=0;return r&&n<r.length&&(i=r[n]),n+e+i}function Y(t,e){return U(t)&&U(e)?B(t,e,Y):U(t)||d(t)||U(e)||d(e)?c(t,e):!0}function Q(t,e,r,n,i){return new xn(""+Fn++,t,e,r,n,i)}function $(t,e){e.push(t)}function Z(t,e){for(var r="",n=0;2*t>n;n+=2)r=r+e[n]+tt(e[n+1]);return r+e[2*t]}function J(t,e,r,n,i,o,s,a,u,c,p,l,h,f,d,v,y,m,b,g){switch(t){case 1:return e+tt(r)+n;case 2:return e+tt(r)+n+tt(i)+o;case 3:return e+tt(r)+n+tt(i)+o+tt(s)+a;case 4:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c;case 5:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l;case 6:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f;case 7:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+v;case 8:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+v+tt(y)+m;case 9:return e+tt(r)+n+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+v+tt(y)+m+tt(b)+g;default:throw new Error("Does not support more than 9 expressions")}}function tt(t){return null!=t?t.toString():""}function et(t,e,r){if(t){if(!Y(e,r))throw new jn(e,r);return!1}return!c(e,r)}function rt(t){return t}function nt(t){var e,r=yn;return function(n){return c(r,n)||(r=n,e=t(n)),e}}function it(t){var e,r=yn,n=yn;return function(i,o){return c(r,i)&&c(n,o)||(r=i,n=o,e=t(i,o)),e}}function ot(t){var e,r=yn,n=yn,i=yn;return function(o,s,a){return c(r,o)&&c(n,s)&&c(i,a)||(r=o,n=s,i=a,e=t(o,s,a)),e}}function st(t){var e,r,n,i,o;return r=n=i=o=yn,function(s,a,u,p){return c(r,s)&&c(n,a)&&c(i,u)&&c(o,p)||(r=s,n=a,i=u,o=p,e=t(s,a,u,p)),e}}function at(t){var e,r,n,i,o,s;return r=n=i=o=s=yn,function(a,u,p,l,h){return c(r,a)&&c(n,u)&&c(i,p)&&c(o,l)&&c(s,h)||(r=a,n=u,i=p,o=l,s=h,e=t(a,u,p,l,h)),e}}function ut(t){var e,r,n,i,o,s,a;return r=n=i=o=s=a=yn,function(u,p,l,h,f,d){return c(r,u)&&c(n,p)&&c(i,l)&&c(o,h)&&c(s,f)&&c(a,d)||(r=u,n=p,i=l,o=h,s=f,a=d,e=t(u,p,l,h,f,d)),e}}function ct(t){var e,r,n,i,o,s,a,u;return r=n=i=o=s=a=u=yn,function(p,l,h,f,d,v,y){return c(r,p)&&c(n,l)&&c(i,h)&&c(o,f)&&c(s,d)&&c(a,v)&&c(u,y)||(r=p,n=l,i=h,o=f,s=d,a=v,u=y,e=t(p,l,h,f,d,v,y)),e}}function pt(t){var e,r,n,i,o,s,a,u,p;return r=n=i=o=s=a=u=p=yn,function(l,h,f,d,v,y,m,b){return c(r,l)&&c(n,h)&&c(i,f)&&c(o,d)&&c(s,v)&&c(a,y)&&c(u,m)&&c(p,b)||(r=l,n=h,i=f,o=d,s=v,a=y,u=m,p=b,e=t(l,h,f,d,v,y,m,b)),e}}function lt(t){var e,r,n,i,o,s,a,u,p,l;return r=n=i=o=s=a=u=p=l=yn,function(h,f,d,v,y,m,b,g,_){return c(r,h)&&c(n,f)&&c(i,d)&&c(o,v)&&c(s,y)&&c(a,m)&&c(u,b)&&c(p,g)&&c(l,_)||(r=h,n=f,i=d,o=v,s=y,a=m,u=b,p=g,l=_,e=t(h,f,d,v,y,m,b,g,_)),e}}function ht(t){var e,r,n,i,o,s,a,u,p,l,h;return r=n=i=o=s=a=u=p=l=h=yn,function(f,d,v,y,m,b,g,_,w,S){return c(r,f)&&c(n,d)&&c(i,v)&&c(o,y)&&c(s,m)&&c(a,b)&&c(u,g)&&c(p,_)&&c(l,w)&&c(h,S)||(r=f,n=d,i=v,o=y,s=m,a=b,u=g,p=_,l=w,h=S,e=t(f,d,v,y,m,b,g,_,w,S)),e}}function ft(t,e,r){Object.keys(r).forEach(function(n){dt(t,e,n,r[n].currentValue)})}function dt(t,e,r,n){try{t.setBindingDebugInfo(e,"ng-reflect-"+vt(r),n?n.toString():null)}catch(i){t.setBindingDebugInfo(e,"ng-reflect-"+vt(r),"[ERROR] Exception while trying to serialize the value")}}function vt(t){return t.replace(Hn,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return"-"+t[1].toLowerCase()})}function yt(t,e,r,n,i){for(var o=t.createElement(e,r,i),s=0;s<n.length;s+=2)t.setElementAttribute(o,n.get(s),n.get(s+1));return o}function mt(t,e,r,n,i){var o;if(s(n)){o=t.selectRootElement(n,i);for(var a=0;a<r.length;a+=2)t.setElementAttribute(o,r.get(a),r.get(a+1));t.setElementAttribute(o,"ng-version",er.full)}else o=yt(t,null,e,r,i);return o}function bt(t,e,r,n){for(var i=wt(r.length/2),o=0;o<r.length;o+=2){var s=r.get(o),a=r.get(o+1),u=void 0;u=a?t.renderer.listenGlobal(a,s,n.bind(t,a+":"+s)):t.renderer.listen(e,s,n.bind(t,s)),i.set(o/2,u)}return gt.bind(null,i)}function gt(t){for(var e=0;e<t.length;e++)t.get(e)()}function _t(){}function wt(t){var e;return new(e=2>=t?zn:4>=t?Wn:8>=t?Gn:16>=t?Kn:Xn)(t)}function St(){var t=he.wtf;return t&&(Rn=t.trace)?(Mn=Rn.events,!0):!1}function Et(t,e){return void 0===e&&(e=null),Mn.createScope(t,e)}function Ot(t,e){return Rn.leaveScope(t,e),e}function xt(t,e){return Rn.beginTimeRange(t,e)}function Ct(t){Rn.endTimeRange(t)}function Tt(){return null}function At(t){di=t}function Pt(){if(mi)throw new Error("Cannot enable prod mode after platform setup.");yi=!1}function Rt(){return mi=!0,yi}function Mt(t){if(kn&&!kn.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kn=t.get(gi);var e=t.get(qr,null);return e&&e.forEach(function(t){return t()}),kn}function kt(t,e,r){void 0===r&&(r=[]);var n=new Se("Platform: "+e);return function(e){return void 0===e&&(e=[]),jt()||(t?t(r.concat(e).concat({provide:n,useValue:!0})):Mt(Ir.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),It(n)}}function It(t){var e=jt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Nt(){kn&&!kn.destroyed&&kn.destroy()}function jt(){return kn&&!kn.destroyed?kn:null}function Dt(t,e){try{var r=e();return q(r)?r["catch"](function(e){throw t.handleError(e),e}):r}catch(n){throw t.handleError(n),n}}function Lt(t,e){var r=Pi.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);Pi.set(t,e)}function Vt(t){var e=Pi.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function Ft(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function Ut(t){return t.map(function(t){return t.nativeElement})}function Bt(t,e,r){t.childNodes.forEach(function(t){t instanceof Xi&&(e(t)&&r.push(t),Bt(t,e,r))})}function Ht(t,e,r){t instanceof Xi&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof Xi&&Ht(t,e,r)})}function qt(t){return Yi.get(t)}function zt(t){Yi.set(t.nativeNode,t)}function Wt(t){Yi["delete"](t.nativeNode)}function Gt(){return Tr}function Kt(){return En}function Xt(){return On}function Yt(t){return t||"en-US"}function Qt(t,e){void 0===e&&(e=null);var r=e;if(!s(r)){var n={};r=new _o([n],1)}return new wo(t,r)}function $t(t){return new Oo(t)}function Zt(t){return new Eo(t)}function Jt(t){var e,r=null;return"string"==typeof t?e=[t]:(e=Array.isArray(t)?t:[t],e.forEach(function(t){var e=t.offset;s(e)&&(r=null==r?parseFloat(e):r)})),new _o(e,r)}function te(t,e){return new yo(t,e)}function ee(t){return new go(t)}function re(t,e){var r=Array.isArray(e)?new Eo(e):e;return new mo(t,r)}function ne(t,e){return new fo(t,e)}function ie(t,e,r){void 0===r&&(r=null);var n={};return Object.keys(e).forEach(function(t){var i=e[t];n[t]=i==ho?r:i.toString()}),Object.keys(t).forEach(function(t){s(n[t])||(n[t]=r)}),n}function oe(t,e,r){var n=r.length-1,i=r[0],o=ce(i.styles.styles),a={},u=!1;Object.keys(t).forEach(function(e){var r=t[e];o[e]||(o[e]=r,a[e]=r,u=!0)});var c=Lr.merge({},o),p=r[n];p.styles.styles.unshift(e);var l=ce(p.styles.styles),h={},f=!1;return Object.keys(c).forEach(function(t){s(l[t])||(h[t]=ho,f=!0)}),f&&p.styles.styles.push(h),Object.keys(l).forEach(function(t){s(o[t])||(a[t]=ho,u=!0)}),u&&i.styles.styles.push(a),ae(t,[e]),r}function se(t){var e={};return Object.keys(t).forEach(function(t){e[t]=null}),e}function ae(t,e){return e.map(function(e){var r={};return Object.keys(e).forEach(function(n){var i=e[n];i==ro&&(i=t[n],s(i)||(i=ho)),t[n]=i,r[n]=i}),r})}function ue(t,e,r){Object.keys(r).forEach(function(n){e.setElementStyle(t,n,r[n])})}function ce(t){var e={};return t.forEach(function(t){Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function pe(t,e){t instanceof so||t instanceof po?t.players.forEach(function(t){return pe(t,e)}):e.push(t)}var le;le="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var he=le;he.assert=function(){};var fe=null,de=0,ve=he.Reflect,ye=_("Inject",[["token",void 0]]),me=_("Optional",[]),be=b("Injectable",[]),ge=_("Self",[]),_e=_("SkipSelf",[]),we=_("Host",[]),Se=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t.decorators=[{type:be}],t.ctorParameters=function(){return[null]},t}(),Ee=new Se("AnalyzeForEntryComponents"),Oe=_("Attribute",[["attributeName",void 0]]),xe=function(){function t(){}return t}(),Ce=w("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],xe),Te=w("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],xe),Ae=w("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],xe),Pe=w("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],xe),Re={};Re.OnPush=0,Re.Default=1,Re[Re.OnPush]="OnPush",Re[Re.Default]="Default";var Me={};Me.CheckOnce=0,Me.Checked=1,Me.CheckAlways=2,Me.Detached=3,Me.Errored=4,Me.Destroyed=5,Me[Me.CheckOnce]="CheckOnce",Me[Me.Checked]="Checked",Me[Me.CheckAlways]="CheckAlways",Me[Me.Detached]="Detached",Me[Me.Errored]="Errored",Me[Me.Destroyed]="Destroyed";var ke=b("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Ie=b("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:Re.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},ke),Ne=b("Pipe",{name:void 0,pure:!0}),je=w("Input",[["bindingPropertyName",void 0]]),De=w("Output",[["bindingPropertyName",void 0]]),Le=w("HostBinding",[["hostPropertyName",void 0]]),Ve=w("HostListener",[["eventName",void 0],["args",[]]]),Fe={};Fe.OnInit=0,Fe.OnDestroy=1,Fe.DoCheck=2,Fe.OnChanges=3,Fe.AfterContentInit=4,Fe.AfterContentChecked=5,Fe.AfterViewInit=6,Fe.AfterViewChecked=7,Fe[Fe.OnInit]="OnInit",Fe[Fe.OnDestroy]="OnDestroy",Fe[Fe.DoCheck]="DoCheck",Fe[Fe.OnChanges]="OnChanges",Fe[Fe.AfterContentInit]="AfterContentInit",Fe[Fe.AfterContentChecked]="AfterContentChecked",Fe[Fe.AfterViewInit]="AfterViewInit",Fe[Fe.AfterViewChecked]="AfterViewChecked";var Ue=[Fe.OnInit,Fe.OnDestroy,Fe.DoCheck,Fe.OnChanges,Fe.AfterContentInit,Fe.AfterContentChecked,Fe.AfterViewInit,Fe.AfterViewChecked],Be=function(){function t(){}return t.prototype.ngOnChanges=function(){},t}(),He=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),qe=function(){function t(){}return t.prototype.ngDoCheck=function(){},t}(),ze=function(){function t(){}return t.prototype.ngOnDestroy=function(){},t}(),We=function(){function t(){}return t.prototype.ngAfterContentInit=function(){},t}(),Ge=function(){function t(){}return t.prototype.ngAfterContentChecked=function(){},t}(),Ke=function(){function t(){}return t.prototype.ngAfterViewInit=function(){},t}(),Xe=function(){function t(){}return t.prototype.ngAfterViewChecked=function(){},t}(),Ye={name:"custom-elements"},Qe={name:"no-errors-schema"},$e=b("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Ze={};Ze.Emulated=0,Ze.Native=1,Ze.None=2,Ze[Ze.Emulated]="Emulated",Ze[Ze.Native]="Native",Ze[Ze.None]="None";var Je=function(){function t(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,i=e.encapsulation,o=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return t}(),tr=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),er=new tr("2.4.9"),rr=new Object,nr=rr,ir=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=rr),e===rr)throw new Error("No provider for "+u(t)+"!");return e},t}(),or=function(){function t(){}return t.prototype.get=function(){},t.THROW_IF_NOT_FOUND=rr,t.NULL=new ir,t}(),sr=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ar=function(t){function e(e){t.call(this,e);var r=new Error(e);this._nativeError=r}return sr(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),ur=function(t){function e(e,r){t.call(this,e+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return sr(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(ar),cr=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pr=function(t){function e(e,r,n){t.call(this,"DI Error"),this.keys=[r],this.injectors=[e],this.constructResolvingMessage=n,
+this.message=this.constructResolvingMessage(this.keys)}return cr(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},e}(ar),lr=function(t){function e(e,r){t.call(this,e,r,function(t){var e=u(t[0].token);return"No provider for "+e+"!"+C(t)})}return cr(e,t),e}(pr),hr=function(t){function e(e,r){t.call(this,e,r,function(t){return"Cannot instantiate cyclic dependency!"+C(t)})}return cr(e,t),e}(pr),fr=function(t){function e(e,r,n,i){t.call(this,"DI Error",r),this.keys=[i],this.injectors=[e]}return cr(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e)},Object.defineProperty(e.prototype,"message",{get:function(){var t=u(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+t+"!"+C(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),e}(ur),dr=function(t){function e(e){t.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+e)}return cr(e,t),e}(ar),vr=function(t){function e(r,n){t.call(this,e._genMessage(r,n))}return cr(e,t),e._genMessage=function(t,e){for(var r=[],n=0,i=e.length;i>n;n++){var o=e[n];r.push(o&&0!=o.length?o.map(u).join(" "):"?")}return"Cannot resolve all parameters for '"+u(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable."},e}(ar),yr=function(t){function e(e){t.call(this,"Index "+e+" is out-of-bounds.")}return cr(e,t),e}(ar),mr=function(t){function e(e,r){t.call(this,"Cannot mix multi providers and regular providers, got: "+e.toString()+" "+r.toString())}return cr(e,t),e}(ar),br=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return u(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return _r.get(O(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return _r.numberOfKeys},enumerable:!0,configurable:!0}),t}(),gr=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof br)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new br(t,br.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),_r=new gr,wr=Function,Sr=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Er=function(){function t(t){this._reflect=t||he.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r=new Array("undefined"==typeof t?e.length:t.length);for(var n=0;n<r.length;n++)r[n]="undefined"==typeof t?[]:t[n]!=Object?[t[n]]:[],e&&s(e[n])&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(Sr.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"==typeof r?r():r,i=n.map(function(t){return t&&t.type}),o=n.map(function(t){return t&&A(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(s(this._reflect)&&s(this._reflect.getOwnMetadata)){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!T(t))return[];var e=P(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?A(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):void 0},t.prototype.annotations=function(t){if(!T(t))return[];var e=P(t),r=this._ownAnnotations(t,e)||[],n=e!==Object?this.annotations(e):[];return n.concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,i={};return Object.keys(n).forEach(function(t){i[t]=A(n[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):void 0},t.prototype.propMetadata=function(t){if(!T(t))return{};var e=P(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,i[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof wr&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+u(t)},t.prototype.resolveIdentifier=function(t,e,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Or=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),xr=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Cr=function(t){function e(e){t.call(this),this.reflectionCapabilities=e}return xr(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resolveIdentifier=function(t,e,r){return this.reflectionCapabilities.resolveIdentifier(t,e,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Or),Tr=new Cr(new Er),Ar=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Pr=[],Rr=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),Mr=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),kr=new Object,Ir=function(){function t(){}return t.resolve=function(t){return k(t)},t.resolveAndCreate=function(e,r){void 0===r&&(r=null);var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return void 0===e&&(e=null),new Nr(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),Nr=function(){function t(t,e){void 0===e&&(e=null),this._constructionCounter=0,this._providers=t,this._parent=e;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;r>n;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=kr}return t.prototype.get=function(t,e){return void 0===e&&(e=nr),this._getByKey(br.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=Ir.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Ir.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw new yr(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw new hr(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n=this,i=e.factory;try{r=e.dependencies.map(function(t){return n._getByReflectiveDependency(t)})}catch(o){throw(o instanceof pr||o instanceof fr)&&o.addKey(this,t.key),o}var s;try{s=i.apply(void 0,r)}catch(o){throw new fr(this,o,o.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:nr)},t.prototype._getByKey=function(t,e,r){return t===jr?this:e instanceof ge?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===kr&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return kr},t.prototype._throwOrNull=function(t,e){if(e!==nr)return e;throw new lr(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==kr?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var i;for(i=n instanceof _e?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==kr)return s;i=o._parent}return null!==i?i.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=F(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),jr=br.get(or),Dr=function(){function t(t){void 0===t&&(t=!0),this._console=console,this.rethrowError=t}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findOriginalStack(t),n=this._findContext(t);if(this._console.error("EXCEPTION: "+this._extractMessage(t)),e&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(e)),r&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(r)),n&&(this._console.error("ERROR CONTEXT:"),this._console.error(n)),this.rethrowError)throw t},t.prototype._extractMessage=function(t){return t instanceof Error?t.message:t.toString()},t.prototype._findContext=function(t){return t?t.context?t.context:this._findContext(t.originalError):null},t.prototype._findOriginalError=function(t){for(var e=t.originalError;e&&e.originalError;)e=e.originalError;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof Error))return null;for(var e=t,r=e.stack;e instanceof Error&&e.originalError;)e=e.originalError,e instanceof Error&&e.stack&&(r=e.stack);return r},t}(),Lr=function(){function t(){}return t.merge=function(t,e){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];r[o]=e[o]}return r},t.equals=function(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return!1}return!0},t}(),Vr=function(){function t(){}return t.findLast=function(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null},t.removeAll=function(t,e){for(var r=0;r<e.length;++r){var n=t.indexOf(e[r]);n>-1&&t.splice(n,1)}},t.remove=function(t,e){var r=t.indexOf(e);return r>-1?(t.splice(r,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,r){var n=Array.isArray(r)?t.flatten(r):r;return e.concat(n)},[])},t}(),Fr=new Se("Application Initializer"),Ur=function(){function t(t){var e=this;this._done=!1;var r=[];if(t)for(var n=0;n<t.length;n++){var i=t[n]();q(i)&&r.push(i)}this._donePromise=Promise.all(r).then(function(){e._done=!0}),0===r.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t.decorators=[{type:be}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:ye,args:[Fr]},{type:me}]}]},t}(),Br=new Se("AppId"),Hr={provide:Br,useFactory:W,deps:[]},qr=new Se("Platform Initializer"),zr=new Se("appBootstrapListener"),Wr=new Se("Application Packages Root URL"),Gr=function(){function t(){}return t.prototype.log=function(t){l(t)},t.prototype.warn=function(t){h(t)},t.decorators=[{type:be}],t.ctorParameters=function(){return[]},t}(),Kr=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Xr=function(t){function e(e){t.call(this,"Can't compile synchronously as "+u(e)+" is still being loaded!"),this.compType=e}return Kr(e,t),e}(ar),Yr=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Qr=function(){function t(){}return t.prototype.compileModuleSync=function(){throw K()},t.prototype.compileModuleAsync=function(){throw K()},t.prototype.compileModuleAndAllComponentsSync=function(){throw K()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw K()},t.prototype.getNgContentSelectors=function(){throw K()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t.decorators=[{type:be}],t.ctorParameters=function(){return[]},t}(),$r=new Se("compilerOptions"),Zr=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Jr=function(){function t(t){this.nativeElement=t}return t}(),tn=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},en=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return tn(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var i,o=function(){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(o=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,i,o,s)},e}(r.Subject),rn=function(){function t(t){var e=t.enableLongStackTrace,r=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new en(!1),this._onMicrotaskEmpty=new en(!1),this._onStable=new en(!1),this._onErrorEvents=new en(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,i,o,s){try{return t.onEnter(),e.invokeTask(n,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,i,o,s,a){try{return t.onEnter(),e.invoke(n,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,i){e.hasTask(n,i),r===n&&("microTask"==i.change?t.setHasMicrotask(i.microTask):"macroTask"==i.change&&t.setHasMacrotask(i.macroTask))},onHandleError:function(e,r,n,i){return e.handleError(n,i),t.triggerError(i),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),nn=function(){function t(t){this._zone=t,this.entries=[]}return t.prototype.enqueue=function(t){this.entries.push(t)},t.prototype.flush=function(){var t=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return t._triggerAnimations()})})},t.prototype._triggerAnimations=function(){for(rn.assertNotInAngularZone();this.entries.length;){var t=this.entries.shift();t.hasStarted()||t.play()}},t.decorators=[{type:be}],t.ctorParameters=function(){return[{type:rn}]},t}(),on=function(){function t(){}return t.prototype.supports=function(t){return U(t)},t.prototype.create=function(t,e){return new an(e)},t}(),sn=function(t,e){return e},an=function(){function t(t){this._trackByFn=t,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=this._trackByFn||sn}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,r=this._removalsHead,n=0,i=null;e||r;){var o=!r||e&&e.currentIndex<X(r,n,i)?e:r,s=X(o,n,i),a=o.currentIndex;if(o===r)n--,r=r._nextRemoved;else if(e=e._next,null==o.previousIndex)n++;else{i||(i=[]);var u=s-n,c=a-n;if(u!=c){for(var p=0;u>p;p++){var l=p<i.length?i[p]:i[p]=0,h=l+p;h>=c&&u>h&&(i[p]=l+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(a(t)&&(t=[]),!U(t))throw new Error("Error trying to diff '"+t+"'");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r,n,i,o=this._itHead,s=!1;if(Array.isArray(t)){var a=t;this._length=t.length;for(var u=0;u<this._length;u++)n=a[u],i=this._trackByFn(u,n),null!==o&&c(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,n,i,u)),c(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,i,u),s=!0),o=o._next}else r=0,H(t,function(t){i=e._trackByFn(r,t),null!==o&&c(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,r)),c(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,r),s=!0),o=o._next,r++}),this._length=r;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,r,n){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,n)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,n)):t=this._addAfter(new un(e,r),i,n)),t},t.prototype._verifyReinsertion=function(t,e,r,n){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r);return null!==i?t=this._reinsertAfter(i,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,i=t._nextRemoved;return null===n?this._removalsHead=i:n._nextRemoved=i,null===i?this._removalsTail=n:i._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._moveAfter=function(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._addAfter=function(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,r){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pn),this._linkedRecords.put(t),t.currentIndex=r,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var r=[];this.forEachAddedItem(function(t){return r.push(t)});var n=[];this.forEachMovedItem(function(t){return n.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),un=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?u(this.item):u(this.item)+"["+u(this.previousIndex)+"->"+u(this.currentIndex)+"]"},t}(),cn=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<r.currentIndex)&&c(r.trackById,t))return r;return null},t.prototype.remove=function(t){var e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head},t}(),pn=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,r=this.map.get(e);r||(r=new cn,this.map.set(e,r)),r.add(t)},t.prototype.get=function(t,e){void 0===e&&(e=null);var r=t,n=this.map.get(r);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,r=this.map.get(e);return r.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+u(this.map)+")"},t}(),ln=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||p(t)},t.prototype.create=function(){return new hn},t}(),hn=function(){function t(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||p(t)))throw new Error("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r=this._records,n=this._mapHead,i=null,o=null,s=!1;return this._forEach(t,function(t,a){var u;n&&a===n.key?(u=n,e._maybeAddToChanges(u,t)):(s=!0,null!==n&&(e._removeFromSeq(i,n),e._addToRemovals(n)),r.has(a)?(u=r.get(a),e._maybeAddToChanges(u,t)):(u=new fn(a),r.set(a,u),u.currentValue=t,e._addToAdditions(u))),s&&(e._isInRemovals(u)&&e._removeFromRemovals(u),null==o?e._mapHead=u:o._next=u),i=n,o=u,n=n&&n._next}),this._truncate(i,n),this.isDirty},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var r=e._next;this._addToRemovals(e),t=e,e=r}for(var n=this._removalsHead;null!==n;n=n._nextRemoved)n.previousValue=n.currentValue,n.currentValue=null,this._records["delete"](n.key)},t.prototype._maybeAddToChanges=function(t,e){c(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},t.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},t.prototype._removeFromSeq=function(t,e){var r=e._next;null===t?this._mapHead=r:t._next=r,e._next=null},t.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,r=t._nextRemoved;null===e?this._removalsHead=r:e._nextRemoved=r,null===r?this._removalsTail=e:r._prevRemoved=e,
+t._prevRemoved=t._nextRemoved=null},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],r=[],n=[],i=[],o=[];for(t=this._mapHead;null!==t;t=t._next)e.push(u(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)r.push(u(t));for(t=this._changesHead;null!==t;t=t._nextChanged)n.push(u(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)i.push(u(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)o.push(u(t));return"map: "+e.join(", ")+"\nprevious: "+r.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},t}(),fn=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return c(this.previousValue,this.currentValue)?u(this.key):u(this.key)+"["+u(this.previousValue)+"->"+u(this.currentValue)+"]"},t}(),dn=function(){function t(t){this.factories=t}return t.create=function(e,r){if(s(r)){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new _e,new me]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+o(t)+"'")},t}(),vn=function(){function t(t){this.factories=t}return t.create=function(e,r){if(s(r)){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new _e,new me]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),yn={toString:function(){return"CD_INIT_VALUE"}},mn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),bn=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof mn?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),gn=function(){function t(t,e){this.previousValue=t,this.currentValue=e}return t.prototype.isFirstChange=function(){return this.previousValue===yn},t}(),_n=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),wn=[new ln],Sn=[new on],En=new dn(Sn),On=new vn(wn),xn=function(){function t(t,e,r,n,i,o){this.id=t,this.templateUrl=e,this.slotCount=r,this.encapsulation=n,this.styles=i,this.animations=o}return t}(),Cn=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),Tn=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),An=function(){function t(){}return t.prototype.renderComponent=function(){},t}(),Pn={};Pn.NONE=0,Pn.HTML=1,Pn.STYLE=2,Pn.SCRIPT=3,Pn.URL=4,Pn.RESOURCE_URL=5,Pn[Pn.NONE]="NONE",Pn[Pn.HTML]="HTML",Pn[Pn.STYLE]="STYLE",Pn[Pn.SCRIPT]="SCRIPT",Pn[Pn.URL]="URL",Pn[Pn.RESOURCE_URL]="RESOURCE_URL";var Rn,Mn,kn,In=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Nn=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},jn=function(t){function e(e,r){var n="Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";e===yn&&(n+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),t.call(this,n)}return Nn(e,t),e}(ar),Dn=function(t){function e(e,r){t.call(this,"Error in "+r.source,e),this.context=r}return Nn(e,t),e}(ur),Ln=function(t){function e(e){t.call(this,"Attempt to use a destroyed view: "+e)}return Nn(e,t),e}(ar),Vn=function(){function t(t,e,r){this._renderer=t,this.animationQueue=r,this.sanitizer=e}return t.prototype.renderComponent=function(t){return this._renderer.renderComponent(t)},t.decorators=[{type:be}],t.ctorParameters=function(){return[{type:An},{type:In},{type:nn}]},t}(),Fn=0,Un=[],Bn={},Hn=/([A-Z])/g,qn=function(){function t(){this.length=0}return t.prototype.get=function(){return void 0},t.prototype.set=function(){},t}(),zn=function(){function t(t,e,r){this.length=t,this._v0=e,this._v1=r}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e}},t}(),Wn=function(){function t(t,e,r,n,i){this.length=t,this._v0=e,this._v1=r,this._v2=n,this._v3=i}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e}},t}(),Gn=function(){function t(t,e,r,n,i,o,s,a,u){this.length=t,this._v0=e,this._v1=r,this._v2=n,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e}},t}(),Kn=function(){function t(t,e,r,n,i,o,s,a,u,c,p,l,h,f,d,v,y){this.length=t,this._v0=e,this._v1=r,this._v2=n,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u,this._v8=c,this._v9=p,this._v10=l,this._v11=h,this._v12=f,this._v13=d,this._v14=v,this._v15=y}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e;break;case 8:this._v8=e;break;case 9:this._v9=e;break;case 10:this._v10=e;break;case 11:this._v11=e;break;case 12:this._v12=e;break;case 13:this._v13=e;break;case 14:this._v14=e;break;case 15:this._v15=e}},t}(),Xn=function(){function t(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.length=t,this._values=e}return t.prototype.get=function(t){return this._values[t]},t.prototype.set=function(t,e){this._values[t]=e},t}(),Yn=new qn,Qn=Object.freeze({ViewUtils:Vn,createRenderComponentType:Q,addToArray:$,interpolate:Z,inlineInterpolate:J,checkBinding:et,castByValue:rt,EMPTY_ARRAY:Un,EMPTY_MAP:Bn,pureProxy1:nt,pureProxy2:it,pureProxy3:ot,pureProxy4:st,pureProxy5:at,pureProxy6:ut,pureProxy7:ct,pureProxy8:pt,pureProxy9:lt,pureProxy10:ht,setBindingDebugInfoForChanges:ft,setBindingDebugInfo:dt,createRenderElement:yt,selectOrCreateRenderHostElement:mt,subscribeToRenderElement:bt,noop:_t,InlineArray2:zn,InlineArray4:Wn,InlineArray8:Gn,InlineArray16:Kn,InlineArrayDynamic:Xn,EMPTY_INLINE_ARRAY:Yn}),$n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Zn=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Jn=function(t){function e(e,r,n,i){t.call(this),this._index=e,this._parentView=r,this._nativeElement=n,this._component=i}return $n(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Jr(this._nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._parentView.injector(this._index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._parentView.detachAndDestroy()},e.prototype.onDestroy=function(t){this.hostView.onDestroy(t)},e}(Zn),ti=function(){function t(t,e,r){this.selector=t,this._viewClass=e,this._componentType=r}return Object.defineProperty(t.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),t.prototype.create=function(t,e,r){void 0===e&&(e=null),void 0===r&&(r=null);var n=t.get(Vn);e||(e=[]);var i=new this._viewClass(n,null,null,null);return i.createHostView(r,t,e)},t}(),ei=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ri=function(t){function e(e){t.call(this,"No component factory found for "+u(e)+". Did you add it to @NgModule.entryComponents?"),this.component=e}return ei(e,t),e}(ar),ni=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw new ri(t)},t}(),ii=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t.NULL=new ni,t}(),oi=function(){function t(t,e){this._parent=e,this._factories=new Map;for(var r=0;r<t.length;r++){var n=t[r];this._factories.set(n.componentType,n)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);return e||(e=this._parent.resolveComponentFactory(t)),e},t}(),si=St(),ai=si?Et:function(){return Tt},ui=si?Ot:function(t,e){return e},ci=si?xt:function(){return null},pi=si?Ct:function(){return null},li=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){rn.assertNotInAngularZone(),n(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?n(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t.decorators=[{type:be}],t.ctorParameters=function(){return[{type:rn}]},t}(),hi=function(){function t(){this._applications=new Map,di.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),di.findTestabilityInTree(this,t,e)},t.decorators=[{type:be}],t.ctorParameters=function(){return[]},t}(),fi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),di=new fi,vi=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},yi=!0,mi=!1,bi=function(){function t(t,e){this.name=t,this.token=e}return t}(),gi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),_i=function(t){function e(e){t.call(this),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return vi(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t,null)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new rn({enableLongStackTrace:Rt()})),e.run(function(){var n=Ir.resolveAndCreate([{provide:rn,useValue:e}],r.injector),i=t.create(n),o=i.injector.get(Dr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Vr.remove(r._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),Dt(o,function(){var t=i.injector.get(Ur);return t.donePromise.then(function(){return r._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e,null)},e.prototype._bootstrapModuleWithZone=function(t,e,r,n){var i=this;void 0===e&&(e=[]);var o=this.injector.get(Zr),s=o.createCompiler(Array.isArray(e)?e:[e]);return n?s.compileModuleAndAllComponentsAsync(t).then(function(t){var e=t.ngModuleFactory,o=t.componentFactories;return n(o),i._bootstrapModuleFactoryWithZone(e,r)}):s.compileModuleAsync(t).then(function(t){return i._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(wi);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+u(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e.decorators=[{type:be}],e.ctorParameters=function(){return[{type:or}]},e}(gi),wi=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t}(),Si=function(t){function e(e,r,n,i,o,s,a,u){var c=this;t.call(this),this._zone=e,this._console=r,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=Rt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return vi(e,t),e.prototype.attachView=function(t){var e=t.internalView;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t.internalView;Vr.remove(this._views,e),e.detach()},e.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof ti?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r.create(this._injector,[],r.selector);n.onDestroy(function(){e._unloadComponent(n)});var i=n.injector.get(li,null);return i&&n.injector.get(hi).registerApplication(n.location.nativeElement,i),this._loadComponent(n),Rt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),n},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(zr,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),Vr.remove(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.ref.checkNoChanges()})}finally{this._runningTick=!1,ui(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),e._tickScope=ai("ApplicationRef#tick()"),e.decorators=[{type:be}],e.ctorParameters=function(){return[{type:rn},{type:Gr},{type:or},{type:Dr},{type:ii},{type:Ur},{type:hi,decorators:[{type:me}]},{type:li,decorators:[{type:me}]}]},e}(wi),Ei=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Oi=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),xi=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){t||(t=or.NULL);var e=new this._injectorClass(t);return e.create(),e},t}(),Ci=new Object,Ti=function(t){function e(e,r,n){t.call(this,r,e.get(ii,ii.NULL)),this.parent=e,this.bootstrapFactories=n,this._destroyListeners=[],this._destroyed=!1}return Ei(e,t),e.prototype.create=function(){this.instance=this.createInternal()},e.prototype.createInternal=function(){},e.prototype.get=function(t,e){if(void 0===e&&(e=nr),t===or||t===ii)return this;var r=this.getInternal(t,Ci);return r===Ci?this.parent.get(t,e):r},e.prototype.getInternal=function(){},Object.defineProperty(e.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+u(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},e.prototype.destroyInternal=function(){},e}(oi),Ai=function(){function t(){}return t.prototype.load=function(){},t}(),Pi=new Map,Ri=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new en}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[f()]=function(){return this._results[f()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=Vr.flatten(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),Mi="#",ki="NgFactory",Ii=function(){function t(){}return t}(),Ni={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ji=function(){function t(t,e){this._compiler=t,this._config=e||Ni}return t.prototype.load=function(t){var e=this._compiler instanceof Qr;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split(Mi),n=r[0],i=r[1];return void 0===i&&(i="default"),System["import"](n).then(function(t){return t[i]}).then(function(t){return Ft(t,n,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(Mi),r=e[0],n=e[1],i=ki;return void 0===n&&(n="default",i=""),System["import"](this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[n+i]}).then(function(t){return Ft(t,r,n)})},t.decorators=[{type:be}],t.ctorParameters=function(){return[{type:Qr},{type:Ii,decorators:[{type:me}]}]},t}(),Di=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Li=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),Vi=function(t){function e(e,r,n){t.call(this),this._parentView=e,this._nodeIndex=r,this._nativeElement=n}return Di(e,t),e.prototype.createEmbeddedView=function(t){var e=this._parentView.createEmbeddedViewInternal(this._nodeIndex);return e.create(t||{}),e.ref},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Jr(this._nativeElement)},enumerable:!0,configurable:!0}),e}(Li),Fi=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),Ui=function(){function t(t){this._element=t,this._createComponentInContainerScope=ai("ViewContainerRef#createComponent()"),this._insertScope=ai("ViewContainerRef#insert()"),this._removeScope=ai("ViewContainerRef#remove()"),this._detachScope=ai("ViewContainerRef#detach()")}return t.prototype.get=function(t){return this._element.nestedViews[t].ref},Object.defineProperty(t.prototype,"length",{get:function(){var t=this._element.nestedViews;return s(t)?t.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,r){void 0===e&&(e=null),void 0===r&&(r=-1);var n=t.createEmbeddedView(e);return this.insert(n,r),n},t.prototype.createComponent=function(t,e,r,n){void 0===e&&(e=-1),void 0===r&&(r=null),void 0===n&&(n=null);var i=this._createComponentInContainerScope(),o=r||this._element.parentInjector,s=t.create(o,n);return this.insert(s.hostView,e),ui(i,s)},t.prototype.insert=function(t,e){void 0===e&&(e=-1);var r=this._insertScope();-1==e&&(e=this.length);var n=t;return this._element.attachView(n.internalView,e),ui(r,n)},t.prototype.move=function(t,e){var r=this._insertScope();if(-1!=e){var n=t;return this._element.moveView(n.internalView,e),ui(r,n)}},t.prototype.indexOf=function(t){return this.length?this._element.nestedViews.indexOf(t.internalView):-1},t.prototype.remove=function(t){void 0===t&&(t=-1);var e=this._removeScope();-1==t&&(t=this.length-1);var r=this._element.detachView(t);r.destroy(),ui(e)},t.prototype.detach=function(t){void 0===t&&(t=-1);var e=this._detachScope();-1==t&&(t=this.length-1);var r=this._element.detachView(t);return ui(e,r.ref)},t.prototype.clear=function(){for(var t=this.length-1;t>=0;t--)this.remove(t)},t}(),Bi=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Hi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_n),qi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Hi),zi=function(){function t(t,e){this._view=t,this.animationQueue=e,this._view=t,this._originalMode=this._view.cdMode}return Object.defineProperty(t.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},t.prototype.detach=function(){this._view.cdMode=Me.Detached},t.prototype.detectChanges=function(){this._view.detectChanges(!1),this.animationQueue.flush()},t.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},t.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._view.detachAndDestroy()},t}(),Wi=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Gi=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ki=function(){function t(t,e,r){this._debugInfo=r,this.nativeNode=t,e&&e instanceof Xi?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugInfo?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugInfo?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugInfo?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugInfo?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugInfo?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._debugInfo?this._debugInfo.source:null},enumerable:!0,configurable:!0}),t}(),Xi=function(t){function e(e,r,n){t.call(this,e,r,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}return Wi(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var r=this.childNodes.indexOf(t);if(-1!==r){var n=this.childNodes.slice(0,r+1),i=this.childNodes.slice(r+1);this.childNodes=n.concat(e,i);for(var o=0;o<e.length;++o){var s=e[o];s.parent&&s.parent.removeChild(s),s.parent=this}}},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Bt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Ht(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(r){r.name==t&&r.callback(e)})},e}(Ki),Yi=new Map,Qi=[_i,{provide:gi,useExisting:_i},{
+provide:Cr,useFactory:Gt,deps:[]},{provide:Or,useExisting:Cr},hi,Gr],$i=kt(null,"core",Qi),Zi=new Se("LocaleId"),Ji=new Se("Translations"),to=new Se("TranslationsFormat"),eo=function(){function t(){}return t.decorators=[{type:$e,args:[{providers:[Si,{provide:wi,useExisting:Si},Ur,Qr,Hr,Vn,nn,{provide:dn,useFactory:Kt},{provide:vn,useFactory:Xt},{provide:Zi,useFactory:Yt,deps:[[new ye(Zi),new me,new _e]]}]}]}],t.ctorParameters=function(){return[]},t}(),ro="true",no="*",io="*",oo="void",so=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null;var r=0,i=this._players.length;0==i?n(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++r>=i&&e._onFinish()})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0)},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var r=e.getPosition();t=Math.min(r,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),ao=function(){function t(t,e){this.offset=t,this.styles=e}return t}(),uo=function(){function t(){}return t.prototype.onDone=function(){},t.prototype.onStart=function(){},t.prototype.init=function(){},t.prototype.hasStarted=function(){},t.prototype.play=function(){},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){},Object.defineProperty(t.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),t}(),co=function(){function t(){var t=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,n(function(){return t._onFinish()})}return t.prototype._onFinish=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]),this._started=!0},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){return 0},t}(),po=function(){function t(t){var e=this;this._players=t,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(t){t.parentPlayer=e}),this._onNext(!1)}return t.prototype._onNext=function(t){var e=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new co,n(function(){return e._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new co,this._onFinish();else{var r=this._players[this._currentIndex++];r.onDone(function(){return e._onNext(!0)}),this._activePlayer=r,t&&r.play()}},t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},t.prototype.pause=function(){this._activePlayer.pause()},t.prototype.restart=function(){this.reset(),this._players.length>0&&this._players[0].restart()},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0,this._activePlayer=new co)},t.prototype.setPosition=function(t){this._players[0].setPosition(t)},t.prototype.getPosition=function(){return this._players[0].getPosition()},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),lo=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ho="*",fo=function(){function t(t,e){this.name=t,this.definitions=e}return t}(),vo=function(){function t(){}return t}(),yo=function(t){function e(e,r){t.call(this),this.stateNameExpr=e,this.styles=r}return lo(e,t),e}(vo),mo=function(t){function e(e,r){t.call(this),this.stateChangeExpr=e,this.steps=r}return lo(e,t),e}(vo),bo=function(){function t(){}return t}(),go=function(t){function e(e){t.call(this),this.steps=e}return lo(e,t),e}(bo),_o=function(t){function e(e,r){void 0===r&&(r=null),t.call(this),this.styles=e,this.offset=r}return lo(e,t),e}(bo),wo=function(t){function e(e,r){t.call(this),this.timings=e,this.styles=r}return lo(e,t),e}(bo),So=function(t){function e(){t.call(this)}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),e}(bo),Eo=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(So),Oo=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(So),xo=function(){function t(t){this.styles=t}return t}(),Co=function(){function t(t){var e=t.fromState,r=t.toState,n=t.totalTime,i=t.phaseName;this.fromState=e,this.toState=r,this.totalTime=n,this.phaseName=i}return t}(),To=function(){function t(t,e,r,n){this._player=t,this._fromState=e,this._toState=r,this._totalTime=n}return t.prototype._createEvent=function(t){return new Co({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:t})},t.prototype.onStart=function(t){var e=this,r=Zone.current.wrap(function(){return t(e._createEvent("start"))},"player.onStart");this._player.onStart(r)},t.prototype.onDone=function(t){var e=this,r=Zone.current.wrap(function(){return t(e._createEvent("done"))},"player.onDone");this._player.onDone(r)},t}(),Ao=function(){function t(t){this._delegate=t}return t.prototype.renderComponent=function(t){return new Po(this._delegate.renderComponent(t))},t}(),Po=function(){function t(t){this._delegate=t}return t.prototype.selectRootElement=function(t,e){var r=this._delegate.selectRootElement(t,e),n=new Xi(r,null,e);return zt(n),r},t.prototype.createElement=function(t,e,r){var n=this._delegate.createElement(t,e,r),i=new Xi(n,qt(t),r);return i.name=e,zt(i),n},t.prototype.createViewRoot=function(t){return this._delegate.createViewRoot(t)},t.prototype.createTemplateAnchor=function(t,e){var r=this._delegate.createTemplateAnchor(t,e),n=new Ki(r,qt(t),e);return zt(n),r},t.prototype.createText=function(t,e,r){var n=this._delegate.createText(t,e,r),i=new Ki(n,qt(t),r);return zt(i),n},t.prototype.projectNodes=function(t,e){var r=qt(t);if(s(r)&&r instanceof Xi){var n=r;e.forEach(function(t){n.addChild(qt(t))})}this._delegate.projectNodes(t,e)},t.prototype.attachViewAfter=function(t,e){var r=qt(t);if(s(r)){var n=r.parent;if(e.length>0&&s(n)){var i=[];e.forEach(function(t){return i.push(qt(t))}),n.insertChildrenAfter(r,i)}}this._delegate.attachViewAfter(t,e)},t.prototype.detachView=function(t){t.forEach(function(t){var e=qt(t);s(e)&&s(e.parent)&&e.parent.removeChild(e)}),this._delegate.detachView(t)},t.prototype.destroyView=function(t,e){e=e||[],e.forEach(function(t){Wt(qt(t))}),this._delegate.destroyView(t,e)},t.prototype.listen=function(t,e,r){var n=qt(t);return s(n)&&n.listeners.push(new Gi(e,r)),this._delegate.listen(t,e,r)},t.prototype.listenGlobal=function(t,e,r){return this._delegate.listenGlobal(t,e,r)},t.prototype.setElementProperty=function(t,e,r){var n=qt(t);s(n)&&n instanceof Xi&&(n.properties[e]=r),this._delegate.setElementProperty(t,e,r)},t.prototype.setElementAttribute=function(t,e,r){var n=qt(t);s(n)&&n instanceof Xi&&(n.attributes[e]=r),this._delegate.setElementAttribute(t,e,r)},t.prototype.setBindingDebugInfo=function(t,e,r){this._delegate.setBindingDebugInfo(t,e,r)},t.prototype.setElementClass=function(t,e,r){var n=qt(t);s(n)&&n instanceof Xi&&(n.classes[e]=r),this._delegate.setElementClass(t,e,r)},t.prototype.setElementStyle=function(t,e,r){var n=qt(t);s(n)&&n instanceof Xi&&(n.styles[e]=r),this._delegate.setElementStyle(t,e,r)},t.prototype.invokeElementMethod=function(t,e,r){this._delegate.invokeElementMethod(t,e,r)},t.prototype.setText=function(t,e){this._delegate.setText(t,e)},t.prototype.animate=function(t,e,r,n,i,o,s){return void 0===s&&(s=[]),this._delegate.animate(t,e,r,n,i,o,s)},t}(),Ro={};Ro.HOST=0,Ro.COMPONENT=1,Ro.EMBEDDED=2,Ro[Ro.HOST]="HOST",Ro[Ro.COMPONENT]="COMPONENT",Ro[Ro.EMBEDDED]="EMBEDDED";var Mo=function(){function t(t,e,r){this.providerTokens=t,this.componentToken=e,this.refTokens=r}return t}(),ko=function(){function t(t,e,r,n){this._view=t,this._nodeIndex=e,this._tplRow=r,this._tplCol=n}return Object.defineProperty(t.prototype,"_staticNodeInfo",{get:function(){return s(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){var t=this._staticNodeInfo;return s(t)&&s(t.componentToken)?this.injector.get(t.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){for(var t=this._view;s(t.parentView)&&t.type!==Ro.COMPONENT;)t=t.parentView;return t.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return s(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=this._staticNodeInfo;return s(t)?t.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t=this,e={},r=this._staticNodeInfo;if(s(r)){var n=r.refTokens;Object.keys(n).forEach(function(r){var i,o=n[r];i=a(o)?t._view.allNodes?t._view.allNodes[t._nodeIndex]:null:t._view.injectorGet(o,t._nodeIndex,null),e[r]=i})}return e},enumerable:!0,configurable:!0}),t}(),Io=function(){function t(){this._map=new Map,this._allPlayers=[]}return t.prototype.find=function(t,e){var r=this._map.get(t);return s(r)?r[e]:void 0},t.prototype.findAllPlayersByElement=function(t){var e=this._map.get(t);return e?Object.keys(e).map(function(t){return e[t]}):[]},t.prototype.set=function(t,e,r){var n=this._map.get(t);s(n)||(n={});var i=n[e];s(i)&&this.remove(t,e),n[e]=r,this._allPlayers.push(r),this._map.set(t,n)},t.prototype.getAllPlayers=function(){return this._allPlayers},t.prototype.remove=function(t,e,r){void 0===r&&(r=null);var n=this._map.get(t);if(n){var i=n[e];if(!r||i===r){delete n[e];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(n).length&&this._map["delete"](t)}}},t}(),No=function(){function t(t){this._animationQueue=t,this._players=new Io}return t.prototype.onAllActiveAnimationsDone=function(t){var e=this._players.getAllPlayers();e.length?new so(e).onDone(function(){return t()}):t()},t.prototype.queueAnimation=function(t,e,r){var n=this;this._animationQueue.enqueue(r),this._players.set(t,e,r),r.onDone(function(){return n._players.remove(t,e,r)})},t.prototype.getAnimationPlayers=function(t,e){void 0===e&&(e=null);var r=[];if(e){var n=this._players.find(t,e);n&&pe(n,r)}else this._players.findAllPlayersByElement(t).forEach(function(t){return pe(t,r)});return r},t}(),jo=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Do=function(t){function e(e,r){t.call(this),this._view=e,this._nodeIndex=r}return jo(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=nr),this._view.injectorGet(t,this._nodeIndex,e)},e}(or),Lo=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Vo=ai("AppView#check(ascii id)"),Fo=new Object,Uo=new Object,Bo=function(){function t(t,e,r,n,i,o,s,a,u){void 0===u&&(u=null),this.clazz=t,this.componentType=e,this.type=r,this.viewUtils=n,this.parentView=i,this.parentIndex=o,this.parentElement=s,this.cdMode=a,this.declaredViewContainer=u,this.numberOfChecks=0,this.ref=new zi(this,n.animationQueue),this.renderer=r===Ro.COMPONENT||r===Ro.HOST?n.renderComponent(e):i.renderer,this._directRenderer=this.renderer.directRenderer}return Object.defineProperty(t.prototype,"animationContext",{get:function(){return this._animationContext||(this._animationContext=new No(this.viewUtils.animationQueue)),this._animationContext},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this.cdMode===Me.Destroyed},enumerable:!0,configurable:!0}),t.prototype.create=function(t){return this.context=t,this.createInternal(null)},t.prototype.createHostView=function(t,e,r){return this.context=Fo,this._hasExternalHostElement=s(t),this._hostInjector=e,this._hostProjectableNodes=r,this.createInternal(t)},t.prototype.createInternal=function(){return null},t.prototype.createEmbeddedViewInternal=function(){return null},t.prototype.init=function(t,e,r){this.lastRootNode=t,this.allNodes=e,this.disposables=r,this.type===Ro.COMPONENT&&this.dirtyParentQueriesInternal()},t.prototype.injectorGet=function(t,e,r){void 0===r&&(r=nr);for(var n=Uo,i=this;n===Uo;)s(e)&&(n=i.injectorGetInternal(t,e,Uo)),n===Uo&&i.type===Ro.HOST&&(n=i._hostInjector.get(t,r)),e=i.parentIndex,i=i.parentView;return n},t.prototype.injectorGetInternal=function(t,e,r){return r},t.prototype.injector=function(t){return new Do(this,t)},t.prototype.detachAndDestroy=function(){this.viewContainer?this.viewContainer.detachView(this.viewContainer.nestedViews.indexOf(this)):this.appRef?this.appRef.detachView(this.ref):this._hasExternalHostElement&&this.detach(),this.destroy()},t.prototype.destroy=function(){var t=this;if(this.cdMode!==Me.Destroyed){var e=this.type===Ro.COMPONENT?this.parentElement:null;if(this.disposables)for(var r=0;r<this.disposables.length;r++)this.disposables[r]();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t.renderer.destroyView(e,t.allNodes)}):this.renderer.destroyView(e,this.allNodes),this.cdMode=Me.Destroyed}},t.prototype.destroyInternal=function(){},t.prototype.detachInternal=function(){},t.prototype.detach=function(){var t=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){var e=this.declaredViewContainer.projectedViews,r=e.indexOf(this);r>=e.length-1?e.pop():e.splice(r,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},t.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},t.prototype.attachToAppRef=function(t){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=t,this.dirtyParentQueriesInternal()},t.prototype.attachAfter=function(t,e){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(t,e),this.viewContainer=t,this.declaredViewContainer&&this.declaredViewContainer!==t&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},t.prototype.moveAfter=function(t,e){this._renderAttach(t,e),this.dirtyParentQueriesInternal()},t.prototype._renderAttach=function(t,e){var r=e?e.lastRootNode:t.nativeElement;if(this._directRenderer){var n=this._directRenderer.nextSibling(r);if(n)this.visitRootNodesInternal(this._directRenderer.insertBefore,n);else{var i=this._directRenderer.parentElement(r);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(r,this.flatRootNodes)},Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flatRootNodes",{get:function(){var t=[];return this.visitRootNodesInternal($,t),t},enumerable:!0,configurable:!0}),t.prototype.projectNodes=function(t,e){if(this._directRenderer)this.visitProjectedNodes(e,this._directRenderer.appendChild,t);else{var r=[];this.visitProjectedNodes(e,$,r),this.renderer.projectNodes(t,r)}},t.prototype.visitProjectedNodes=function(t,e,r){switch(this.type){case Ro.EMBEDDED:this.parentView.visitProjectedNodes(t,e,r);break;case Ro.COMPONENT:if(this.parentView.type===Ro.HOST)for(var n=this.parentView._hostProjectableNodes[t]||[],i=0;i<n.length;i++)e(n[i],r);else this.parentView.visitProjectableNodesInternal(this.parentIndex,t,e,r)}},t.prototype.visitRootNodesInternal=function(){},t.prototype.visitProjectableNodesInternal=function(){},t.prototype.dirtyParentQueriesInternal=function(){},t.prototype.internalDetectChanges=function(t){this.cdMode!==Me.Detached&&this.detectChanges(t)},t.prototype.detectChanges=function(t){var e=Vo(this.clazz);this.cdMode!==Me.Checked&&this.cdMode!==Me.Errored&&(this.cdMode===Me.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(t),this.cdMode===Me.CheckOnce&&(this.cdMode=Me.Checked),this.numberOfChecks++,ui(e))},t.prototype.detectChangesInternal=function(){},t.prototype.markAsCheckOnce=function(){this.cdMode=Me.CheckOnce},t.prototype.markPathToRootAsCheckOnce=function(){for(var t=this;s(t)&&t.cdMode!==Me.Detached;)t.cdMode===Me.Checked&&(t.cdMode=Me.CheckOnce),t=t.type===Ro.COMPONENT?t.parentView:t.viewContainer?t.viewContainer.parentView:null},t.prototype.eventHandler=function(t){return t},t.prototype.throwDestroyedError=function(t){throw new Ln(t)},t}(),Ho=function(t){function e(e,r,n,i,o,s,a,u,c,p){void 0===p&&(p=null),t.call(this,e,r,n,i,o,s,a,u,p),this.staticNodeDebugInfos=c,this._currentDebugContext=null}return Lo(e,t),e.prototype.create=function(e){this._resetDebug();try{return t.prototype.create.call(this,e)}catch(r){throw this._rethrowWithContext(r),r}},e.prototype.createHostView=function(e,r,n){void 0===n&&(n=null),this._resetDebug();try{return t.prototype.createHostView.call(this,e,r,n)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.injectorGet=function(e,r,n){this._resetDebug();try{return t.prototype.injectorGet.call(this,e,r,n)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.detach=function(){this._resetDebug();try{t.prototype.detach.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.destroy=function(){this._resetDebug();try{t.prototype.destroy.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.detectChanges=function(e){this._resetDebug();try{t.prototype.detectChanges.call(this,e)}catch(r){throw this._rethrowWithContext(r),r}},e.prototype._resetDebug=function(){this._currentDebugContext=null},e.prototype.debug=function(t,e,r){return this._currentDebugContext=new ko(this,t,e,r)},e.prototype._rethrowWithContext=function(t){if(!(t instanceof Dn)&&(t instanceof jn||(this.cdMode=Me.Errored),s(this._currentDebugContext)))throw new Dn(t,this._currentDebugContext)},e.prototype.eventHandler=function(e){var r=this,n=t.prototype.eventHandler.call(this,e);return function(t,e){r._resetDebug();try{return n.call(r,t,e)}catch(i){throw r._rethrowWithContext(i),i}}},e}(Bo),qo=function(){function t(t,e,r,n){this.index=t,this.parentIndex=e,this.parentView=r,this.nativeElement=n}return Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Jr(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vcRef",{get:function(){return new Ui(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),t.prototype.detectChangesInNestedViews=function(t){if(this.nestedViews)for(var e=0;e<this.nestedViews.length;e++)this.nestedViews[e].detectChanges(t)},t.prototype.destroyNestedViews=function(){if(this.nestedViews)for(var t=0;t<this.nestedViews.length;t++)this.nestedViews[t].destroy()},t.prototype.visitNestedViewRootNodes=function(t,e){if(this.nestedViews)for(var r=0;r<this.nestedViews.length;r++)this.nestedViews[r].visitRootNodesInternal(t,e)},t.prototype.mapNestedViews=function(t,e){var r=[];if(this.nestedViews)for(var n=0;n<this.nestedViews.length;n++){var i=this.nestedViews[n];i.clazz===t&&r.push(e(i))}if(this.projectedViews)for(var n=0;n<this.projectedViews.length;n++){var o=this.projectedViews[n];o.clazz===t&&r.push(e(o))}return r},t.prototype.moveView=function(t,e){var r=this.nestedViews.indexOf(t);if(t.type===Ro.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),n.splice(r,1),n.splice(e,0,t);var i=e>0?n[e-1]:null;t.moveAfter(this,i)},t.prototype.attachView=function(t,e){if(t.type===Ro.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),e>=r.length?r.push(t):r.splice(e,0,t);var n=e>0?r[e-1]:null;t.attachAfter(this,n)},t.prototype.detachView=function(t){var e=this.nestedViews[t];if(t>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(t,1),e.type===Ro.COMPONENT)throw new Error("Component views can't be moved!");return e.detach(),e},t}(),zo={isDefaultChangeDetectionStrategy:S,ChangeDetectorStatus:Me,constructDependencies:j,LifecycleHooks:Fe,LIFECYCLE_HOOKS_VALUES:Ue,ReflectorReader:Or,CodegenComponentFactoryResolver:oi,ComponentRef_:Jn,ViewContainer:qo,AppView:Bo,DebugAppView:Ho,NgModuleInjector:Ti,registerModuleFactory:Lt,ViewType:Ro,view_utils:Qn,ViewMetadata:Je,DebugContext:ko,StaticNodeDebugInfo:Mo,devModeEqual:Y,UNINITIALIZED:yn,ValueUnwrapper:bn,RenderDebugInfo:Cn,TemplateRef_:Vi,ReflectionCapabilities:Er,makeDecorator:b,DebugDomRootRenderer:Ao,Console:Gr,reflector:Tr,Reflector:Cr,NoOpAnimationPlayer:co,AnimationPlayer:uo,AnimationSequencePlayer:po,AnimationGroupPlayer:so,AnimationKeyframe:ao,prepareFinalAnimationStyles:ie,balanceAnimationKeyframes:oe,flattenStyles:ce,clearStyles:se,renderStyles:ue,collectAndResolveStyles:ae,APP_ID_RANDOM_PROVIDER:Hr,AnimationStyles:xo,ANY_STATE:no,DEFAULT_STATE:io,EMPTY_STATE:oo,FILL_STYLE_FLAG:ro,ComponentStillLoadingError:Xr,isPromise:q,isObservable:z,AnimationTransition:To};t.createPlatform=Mt,t.assertPlatform=It,t.destroyPlatform=Nt,t.getPlatform=jt,t.PlatformRef=gi,t.ApplicationRef=wi,t.enableProdMode=Pt,t.isDevMode=Rt,t.createPlatformFactory=kt,t.NgProbeToken=bi,t.APP_ID=Br,t.PACKAGE_ROOT_URL=Wr,t.PLATFORM_INITIALIZER=qr,t.APP_BOOTSTRAP_LISTENER=zr,t.APP_INITIALIZER=Fr,t.ApplicationInitStatus=Ur,t.DebugElement=Xi,t.DebugNode=Ki,t.asNativeElements=Ut,t.getDebugNode=qt,t.Testability=li,t.TestabilityRegistry=hi,t.setTestabilityGetter=At,t.TRANSLATIONS=Ji,t.TRANSLATIONS_FORMAT=to,t.LOCALE_ID=Zi,t.ApplicationModule=eo,t.wtfCreateScope=ai,t.wtfLeave=ui,t.wtfStartTimeRange=ci,t.wtfEndTimeRange=pi,t.Type=wr,t.EventEmitter=en,t.ErrorHandler=Dr,t.AnimationTransitionEvent=Co,t.AnimationPlayer=uo,t.AnimationStyles=xo,t.AnimationKeyframe=ao,t.Sanitizer=In,t.SecurityContext=Pn,t.ANALYZE_FOR_ENTRY_COMPONENTS=Ee,t.Attribute=Oe,t.ContentChild=Te,t.ContentChildren=Ce,t.Query=xe,t.ViewChild=Pe,t.ViewChildren=Ae,t.Component=Ie,t.Directive=ke,t.HostBinding=Le,t.HostListener=Ve,t.Input=je,t.Output=De,t.Pipe=Ne,t.AfterContentChecked=Ge,t.AfterContentInit=We,t.AfterViewChecked=Xe,t.AfterViewInit=Ke,t.DoCheck=qe,t.OnChanges=Be,t.OnDestroy=ze,t.OnInit=He,t.CUSTOM_ELEMENTS_SCHEMA=Ye,t.NO_ERRORS_SCHEMA=Qe,t.NgModule=$e,t.ViewEncapsulation=Ze,t.Version=tr,t.VERSION=er,t.Class=m,t.forwardRef=E,t.resolveForwardRef=O,t.Injector=or,t.ReflectiveInjector=Ir,t.ResolvedReflectiveFactory=Mr,t.ReflectiveKey=br,t.OpaqueToken=Se,t.Inject=ye,t.Optional=me,t.Injectable=be,t.Self=ge,t.SkipSelf=_e,t.Host=we,t.NgZone=rn,t.RenderComponentType=xn,t.Renderer=Tn,t.RootRenderer=An,t.COMPILER_OPTIONS=$r,t.Compiler=Qr,t.CompilerFactory=Zr,t.ModuleWithComponentFactories=Yr,t.ComponentFactory=ti,t.ComponentRef=Zn,t.ComponentFactoryResolver=ii,t.ElementRef=Jr,t.NgModuleFactory=xi,t.NgModuleRef=Oi,t.NgModuleFactoryLoader=Ai,t.getModuleFactory=Vt,t.QueryList=Ri,t.SystemJsNgModuleLoader=ji,t.SystemJsNgModuleLoaderConfig=Ii,t.TemplateRef=Li,t.ViewContainerRef=Fi,t.EmbeddedViewRef=qi,t.ViewRef=Hi,t.ChangeDetectionStrategy=Re,t.ChangeDetectorRef=_n,t.CollectionChangeRecord=un,t.DefaultIterableDiffer=an,t.IterableDiffers=dn,t.KeyValueChangeRecord=fn,t.KeyValueDiffers=vn,t.SimpleChange=gn,t.WrappedValue=mn,t.platformCore=$i,t.__core_private__=zo,t.AUTO_STYLE=ho,t.AnimationEntryMetadata=fo,t.AnimationStateMetadata=vo,t.AnimationStateDeclarationMetadata=yo,t.AnimationStateTransitionMetadata=mo,t.AnimationMetadata=bo,t.AnimationKeyframesSequenceMetadata=go,t.AnimationStyleMetadata=_o,t.AnimationAnimateMetadata=wo,t.AnimationWithStepsMetadata=So,t.AnimationSequenceMetadata=Eo,t.AnimationGroupMetadata=Oo,t.animate=Qt,t.group=$t,t.sequence=Zt,t.style=Jt,t.state=te,t.keyframes=ee,t.transition=re,t.trigger=ne})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":16,"rxjs/Subject":22,"rxjs/symbol/observable":318}],8:[function(e,r,n){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.http=i.ng.http||{}),i.ng.core,i.Rx,i.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";function i(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return y.Get;case"POST":return y.Post;case"PUT":return y.Put;case"DELETE":return y.Delete;case"OPTIONS":return y.Options;case"HEAD":return y.Head;case"PATCH":return y.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function o(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),r=0,n=t.length;n>r;r++)e[r]=t.charCodeAt(r);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var r=t.split("&");r.forEach(function(t){var r=t.indexOf("="),n=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)],i=n[0],o=n[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[j]={}),D}function p(t,e){return t.createConnection(e).response}function l(t,e,r,n){var i=t;return i.merge(e?new Q({method:e.method||r,url:e.url||n,search:e.search,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new Q({method:r,url:n}))}function h(){return new K}function f(t,e){return new st(t,e)}function d(t,e){return new at(t,e)}var v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),y={};y.Get=0,y.Post=1,y.Put=2,y.Delete=3,y.Options=4,y.Head=5,y.Patch=6,y[y.Get]="Get",y[y.Post]="Post",y[y.Put]="Put",y[y.Delete]="Delete",y[y.Options]="Options",y[y.Head]="Head",y[y.Patch]="Patch";var m={};m.Unsent=0,m.Open=1,m.HeadersReceived=2,m.Loading=3,m.Done=4,m.Cancelled=5,m[m.Unsent]="Unsent",m[m.Open]="Open",m[m.HeadersReceived]="HeadersReceived",m[m.Loading]="Loading",m[m.Done]="Done",m[m.Cancelled]="Cancelled";var b={};b.Basic=0,b.Cors=1,b.Default=2,b.Error=3,b.Opaque=4,b[b.Basic]="Basic",b[b.Cors]="Cors",b[b.Default]="Default",b[b.Error]="Error",b[b.Opaque]="Opaque";var g={};g.NONE=0,g.JSON=1,g.FORM=2,g.FORM_DATA=3,g.TEXT=4,g.BLOB=5,g.ARRAY_BUFFER=6,g[g.NONE]="NONE",g[g.JSON]="JSON",g[g.FORM]="FORM",g[g.FORM_DATA]="FORM_DATA",g[g.TEXT]="TEXT",g[g.BLOB]="BLOB",g[g.ARRAY_BUFFER]="ARRAY_BUFFER";var _={};_.Text=0,_.Json=1,_.ArrayBuffer=2,_.Blob=3,_[_.Text]="Text",_[_.Json]="Json",_[_.ArrayBuffer]="ArrayBuffer",_[_.Blob]="Blob";var w=function(){function t(e){var r=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return r.append(e,t)})}):void Object.keys(e).forEach(function(t){var n=Array.isArray(e[t])?e[t]:[e[t]];r["delete"](t),n.forEach(function(e){return r.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var r=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),i=t.slice(e+1).trim();r.set(n,i)}}),r},t.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();
+
+this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(r,n){return t(r,e._normalizedNames.get(n),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(r,n){var i=[];r.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(n)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),S=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},E=function(){function t(t){var e=void 0===t?{}:t,r=e.body,n=e.status,i=e.headers,o=e.statusText,s=e.type,a=e.url;this.body=null!=r?r:null,this.status=null!=n?n:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),O=function(t){function r(){t.call(this,{status:200,statusText:"Ok",type:b.Default,headers:new w})}return S(r,t),r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[]},r}(E),x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),C=function(){function t(){}return t}(),T=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},P=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new P),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],i=0;i<t.length;++i)n.push(t[i]);e.paramsMap.set(r,n)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0;for(var i=0;i<t.length;++i)n.push(t[i]);e.paramsMap.set(r,n)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return e.push(t.queryEncoder.encodeKey(n)+"="+t.queryEncoder.encodeValue(r))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),M=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof R?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(t){function e(e){t.call(this),this._body=e.body,this.status=e.status,this.ok=this.status>=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}return k(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(M),N=0,j="__ng_jsonp__",D=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+N++},t.prototype.requestCallback=function(t){return j+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var r=c();r[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),V=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},F="JSONP injected script did not invoke callback.",U="JSONP requests must use GET request method.",B=function(){function t(){}return t.prototype.finished=function(){},t}(),H=function(t){function e(e,n,i){var o=this;if(t.call(this),this._dom=n,this.baseResponseOptions=i,this._finished=!1,e.method!==y.Get)throw new TypeError(U);this.request=e,this.response=new r.Observable(function(t){o.readyState=m.Loading;var r=o._id=n.nextRequestID();n.exposeConnection(r,o);var s=n.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=o._script=n.build(a),c=function(){if(o.readyState!==m.Cancelled){if(o.readyState=m.Done,n.cleanup(u),!o._finished){var e=new E({body:F,type:b.Error,url:a});return i&&(e=i.merge(e)),void t.error(new I(e))}var r=new E({body:o._responseData,url:a});o.baseResponseOptions&&(r=o.baseResponseOptions.merge(r)),t.next(new I(r)),t.complete()}},p=function(e){if(o.readyState!==m.Cancelled){o.readyState=m.Done,n.cleanup(u);var r=new E({body:e.message,type:b.Error});i&&(r=i.merge(r)),t.error(new I(r))}};return u.addEventListener("load",c),u.addEventListener("error",p),n.send(u),function(){o.readyState=m.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",p),o._dom.cleanup(u)}})}return V(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==m.Cancelled&&(this._responseData=t)},e}(B),q=function(t){function e(){t.apply(this,arguments)}return V(e,t),e}(x),z=function(t){function r(e,r){t.call(this),this._browserJSONP=e,this._baseResponseOptions=r}return V(r,t),r.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:L},{type:E}]},r}(q),W=/^\)\]\}',?\n/,G=function(){function t(t,e,n){var i=this;this.request=t,this.response=new r.Observable(function(r){var s=e.build();s.open(y[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,i=null;204!==e&&(i="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof i&&(i=i.replace(W,""))),0===e&&(e=i?200:0);var a=w.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",p=new E({body:i,status:e,headers:a,statusText:c,url:u});null!=n&&(p=n.merge(p));var l=new I(p);return l.ok=A(e),l.ok?(r.next(l),void r.complete()):void r.error(l)},u=function(t){var e=new E({body:t,type:b.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),r.error(new I(e))};if(i.setDetectedContentType(t,s),null==t.headers&&(t.headers=new w),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case _.ArrayBuffer:s.responseType="arraybuffer";break;case _.Json:s.responseType="json";break;case _.Text:s.responseType="text";break;case _.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(i.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case g.NONE:break;case g.JSON:e.setRequestHeader("content-type","application/json");break;case g.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case g.TEXT:e.setRequestHeader("content-type","text/plain");break;case g.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},t}(),K=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=n.__platform_browser_private__.getDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),X=function(){function t(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new G(t,this._browserXHR,this._baseResponseOptions)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:v},{type:E},{type:T}]},t}(),Y=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Q=function(){function t(t){var e=void 0===t?{}:t,r=e.method,n=e.headers,o=e.body,s=e.url,a=e.search,u=e.withCredentials,c=e.responseType;this.method=null!=r?i(r):null,this.headers=null!=n?n:null,this.body=null!=o?o:null,this.url=null!=s?s:null,this.search=null!=a?"string"==typeof a?new R(a):a:null,this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new w(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,search:e&&null!=e.search?"string"==typeof e.search?new R(e.search):e.search.clone():this.search,withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t}(),$=function(t){function r(){t.call(this,{method:y.Get,headers:new w})}return Y(r,t),r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[]},r}(Q),Z=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},J=function(t){function e(e){t.call(this);var r=e.url;if(this.url=e.url,e.search){var n=e.search.toString();if(n.length>0){var o="?";-1!=this.url.indexOf("?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=r+o+n}}this._body=e.body,this.method=i(e.method),this.headers=new w(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}return Z(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return g.JSON;case"application/x-www-form-urlencoded":return g.FORM;case"multipart/form-data":return g.FORM_DATA;case"text/plain":case"text/html":return g.TEXT;case"application/octet-stream":return this._body instanceof it?g.ARRAY_BUFFER:g.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?g.NONE:this._body instanceof R?g.FORM:this._body instanceof rt?g.FORM_DATA:this._body instanceof nt?g.BLOB:this._body instanceof it?g.ARRAY_BUFFER:this._body&&"object"==typeof this._body?g.JSON:g.TEXT},e.prototype.getBody=function(){switch(this.contentType){case g.JSON:return this.text();case g.FORM:return this.text();case g.FORM_DATA:return this._body;case g.TEXT:return this.text();case g.BLOB:return this.blob();case g.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(M),tt=function(){},et="object"==typeof window?window:tt,rt=et.FormData||tt,nt=et.Blob||tt,it=et.ArrayBuffer||tt,ot=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},st=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var r;if("string"==typeof t)r=p(this._backend,new J(l(this._defaultOptions,e,y.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");r=p(this._backend,t)}return r},t.prototype.get=function(t,e){return this.request(new J(l(this._defaultOptions,e,y.Get,t)))},t.prototype.post=function(t,e,r){return this.request(new J(l(this._defaultOptions.merge(new Q({body:e})),r,y.Post,t)))},t.prototype.put=function(t,e,r){return this.request(new J(l(this._defaultOptions.merge(new Q({body:e})),r,y.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new J(l(this._defaultOptions,e,y.Delete,t)))},t.prototype.patch=function(t,e,r){return this.request(new J(l(this._defaultOptions.merge(new Q({body:e})),r,y.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(l(this._defaultOptions,e,y.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(l(this._defaultOptions,e,y.Options,t)))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:x},{type:Q}]},t}(),at=function(t){function r(e,r){t.call(this,e,r)}return ot(r,t),r.prototype.request=function(t,e){var r;if("string"==typeof t&&(t=new J(l(this._defaultOptions,e,y.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==y.Get)throw new Error("JSONP requests must use GET request method.");return r=p(this._backend,t)},r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[{type:x},{type:Q}]},r}(st),ut=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:st,useFactory:f,deps:[X,Q]},v,{provide:Q,useClass:$},{provide:E,useClass:O},X,{provide:T,useFactory:h}]}]}],t.ctorParameters=function(){return[]},t}(),ct=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:at,useFactory:d,deps:[q,Q]},L,{provide:Q,useClass:$},{provide:E,useClass:O},{provide:q,useClass:z}]}]}],t.ctorParameters=function(){return[]},t}(),pt=new e.Version("2.4.9");t.BrowserXhr=v,t.JSONPBackend=q,t.JSONPConnection=B,t.CookieXSRFStrategy=K,t.XHRBackend=X,t.XHRConnection=G,t.BaseRequestOptions=$,t.RequestOptions=Q,t.BaseResponseOptions=O,t.ResponseOptions=E,t.ReadyState=m,t.RequestMethod=y,t.ResponseContentType=_,t.ResponseType=b,t.Headers=w,t.Http=st,t.Jsonp=at,t.HttpModule=ut,t.JsonpModule=ct,t.Connection=C,t.ConnectionBackend=x,t.XSRFStrategy=T,t.Request=J,t.Response=I,t.QueryEncoder=P,t.URLSearchParams=R,t.VERSION=pt})},{"@angular/core":7,"@angular/platform-browser":10,"rxjs/Observable":16}],9:[function(e,r,n){(function(i){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/compiler"),e("@angular/core"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.platformBrowserDynamic=i.ng.platformBrowserDynamic||{}),i.ng.compiler,i.ng.core,i.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";var o,s=n.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS,a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=function(t){function e(){t.apply(this,arguments)}return a(e,t),e.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var n=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=n?200:0),o>=200&&300>=o?e(n):r("Failed to load "+t)},i.onerror=function(){r("Failed to load "+t)},i.send(),n},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(e.ResourceLoader),c=[s,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:u}]},multi:!0}];o="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var p=o;p.assert=function(){};var l=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},h=function(t){function e(){if(t.call(this),this._cache=p.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return l(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),f={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:c,ResourceLoaderImpl:u},d=new r.Version("2.4.9"),v=[{provide:e.ResourceLoader,useClass:h}],y=r.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",c);t.RESOURCE_CACHE_PROVIDER=v,t.platformBrowserDynamic=y,t.VERSION=d,t.__platform_browser_dynamic_private__=f})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/compiler":6,"@angular/core":7,"@angular/platform-browser":10}],10:[function(e,r,n){(function(i){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],o):o((i.ng=i.ng||{},i.ng.platformBrowser=i.ng.platformBrowser||{}),i.ng.common,i.ng.core)}(this,function(t,e,r){"use strict";function n(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function a(t,e,r){for(var n=e.split("."),i=t;n.length>1;){var o=n.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}(void 0===i||null===i)&&(i={}),i[n.shift()]=r}function u(){return J}function c(t){J||(J=t)}function p(t,e){return u().getComputedStyle(t)[e]}function l(t){var e={};return Object.keys(t).forEach(function(r){"offset"!=r&&(e[r]=t[r])}),e}function h(t,e){var r={};return t.styles.forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})}),Object.keys(e).forEach(function(t){n(r[t])||(r[t]=e[t])}),r}function f(t){return t instanceof et}function d(){return lt||(lt=document.querySelector("base"))?lt.getAttribute("href"):null}function v(t){return Z||(Z=document.createElement("a")),Z.setAttribute("href",t),"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}function y(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r<n.length;r++){var i=n[r],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function m(){return!!window.history.pushState}function b(t,e){var r=t.parentNode;if(e.length>0&&r){var n=t.nextSibling;if(n)for(var i=0;i<e.length;i++)r.insertBefore(e[i],n);else for(var i=0;i<e.length;i++)r.appendChild(e[i])}}function g(t,e){for(var r=0;r<e.length;r++)t.appendChild(e[r])}function _(t){return function(e){var r=t(e);r===!1&&(e.preventDefault(),e.returnValue=!1)}}function w(t){return jt.replace(kt,t)}function S(t){return Nt.replace(kt,t)}function E(t,e,r){for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?E(t,i,r):(i=i.replace(kt,t),r.push(i))}return r}function O(t){return":"===t[0]}function x(t){var e=t.match(Dt);return[e[1],e[2]]}function C(t){return r.getDebugNode(t)}function T(t,e,n){return r.isDevMode()?A(t,(e||[]).concat(n||[])):t}function A(t,e){return u().setGlobalVar(Vt,C),u().setGlobalVar(Ft,yt.merge(Lt,P(e||[]))),new K(t)}function P(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function R(t){return t=String(t),t.match(Jt)||t.match(te)?t:(r.isDevMode()&&u().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function M(t){return t=String(t),t.split(",").map(function(t){return R(t.trim())}).join(", ")}function k(){if(ee)return ee;re=u();var t=re.createElement("template");if("content"in t)return t;var e=re.createHtmlDocument();if(ee=re.querySelector(e,"body"),null==ee){var r=re.createElement("html",e);ee=re.createElement("body",e),re.appendChild(r,ee),re.appendChild(e,r)}return ee}function I(t){for(var e={},r=0,n=t.split(",");r<n.length;r++){var i=n[r];e[i]=!0}return e}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];for(var r={},n=0,i=t;n<i.length;n++){var o=i[n];for(var s in o)o.hasOwnProperty(s)&&(r[s]=!0)}return r}function j(t){return t.replace(/&/g,"&amp;").replace(ve,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(r-56320)+65536)+";"}).replace(ye,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function D(t){re.attributeMap(t).forEach(function(e,r){("xmlns:ns1"===r||0===r.indexOf("ns1:"))&&re.removeAttribute(t,r)});for(var e=0,r=re.childNodesAsList(t);e<r.length;e++){var n=r[e];re.isElementNode(n)&&D(n)}}function L(t){try{var e=k(),n=t?String(t):"",i=5,o=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,re.setInnerHTML(e,n),re.defaultDoc().documentMode&&D(e),o=re.getInnerHTML(e)}while(n!==o);for(var s=new de,a=s.sanitizeChildren(re.getTemplateContent(e)||e),u=re.getTemplateContent(e)||e,c=0,p=re.childNodesAsList(u);c<p.length;c++){var l=p[c];re.removeChild(u,l)}return r.isDevMode()&&s.sanitizedSomething&&re.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(h){throw ee=null,h}}function V(t){for(var e=!0,r=!0,n=0;n<t.length;n++){var i=t.charAt(n);"'"===i&&r?e=!e:'"'===i&&e&&(r=!r)}return e&&r}function F(t){if(t=String(t).trim(),!t)return"";var e=t.match(Oe);return e&&R(e[1])===e[1]||t.match(Ee)&&V(t)?t:(r.isDevMode()&&u().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function U(){pt.makeCurrent(),dt.init()}function B(){return new r.ErrorHandler}function H(){return u().defaultDoc()}function q(){return u().supportsWebAnimation()?new rt:Q.NOOP}function z(t){return Object.assign(He.ng,new Ue(t)),t}function W(){He.ng&&delete He.ng.profiler}var G,K=r.__core_private__.DebugDomRootRenderer,X=r.__core_private__.NoOpAnimationPlayer,Y=function(){function t(){}return t.prototype.animate=function(t,e,r,n,i,o,s){return void 0===s&&(s=[]),new X},t}(),Q=function(){function t(){}return t.prototype.animate=function(){},t.NOOP=new Y,t}();G="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var $=G;$.assert=function(){};var Z,J=null,tt=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.parse=function(){},t.prototype.query=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.defaultDoc=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),et=function(){function t(t,e,r,n){var i=this;void 0===n&&(n=[]),this.element=t,this.keyframes=e,this.options=r,this._onDoneFns=[],this._onStartFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._duration=r.duration,this.previousStyles={},n.forEach(function(t){var e=t._captureStyles();Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(e){var n={};return Object.keys(e).forEach(function(i){var o=e[i];o==r.AUTO_STYLE&&(o=p(t.element,i)),void 0!=o&&(n[i]=o)}),n}),i=Object.keys(this.previousStyles);if(i.length){var o=e[0],s=[];if(i.forEach(function(e){n(o[e])||s.push(e),o[e]=t.previousStyles[e]}),s.length)for(var a=function(r){var n=e[r];s.forEach(function(e){n[e]=p(t.element,e)})},u=1;u<e.length;u++)a(u)}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=l(e[e.length-1]),this._resetDomPlayerState(),this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._triggerWebAnimation=function(t,e,r){return t.animate(e,r)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0)},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t.prototype.setPosition=function(t){this._player.currentTime=t*this.totalTime},t.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},t.prototype._captureStyles=function(){var t=this,e={};return this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(r){"offset"!=r&&(e[r]=t._finished?t._finalKeyframe[r]:p(t.element,r));
+
+}),e},t}(),rt=function(){function t(){}return t.prototype.animate=function(t,e,r,i,o,s,a){void 0===a&&(a=[]);var u=[],c={};if(n(e)&&(c=h(e,{})),r.forEach(function(t){var e=h(t.styles,c);e.offset=Math.max(0,Math.min(1,t.offset)),u.push(e)}),0==u.length)u=[c,c];else if(1==u.length){var p=c,l=u[0];l.offset=null,u=[p,l]}var d={duration:i,delay:o,fill:"both"};return s&&(d.easing=s),a=a.filter(f),new et(t,u,d,a)},t}(),nt=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},it=function(t){function e(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var r=this.createElement("div",this.defaultDoc());if(n(this.getStyle(r,"animationName")))this._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(n(this.getStyle(r,i[o]+"AnimationName"))){this._animationPrefix="-"+i[o].toLowerCase()+"-";break}var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(s).forEach(function(t){n(e.getStyle(r,t))&&(e._transitionEnd=s[t])})}catch(a){this._animationPrefix=null,this._transitionEnd=null}}return nt(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,r){t.href=null==r?e:e+"/../"+r},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return n(this._animationPrefix)&&n(this._transitionEnd)},e}(tt),ot=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},st={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},at=3,ut={"\b":"Backspace","	":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ct={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},pt=function(t){function e(){t.apply(this,arguments)}return ot(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){c(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,r){t[e]=r},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,r){(n=t)[e].apply(n,r);var n},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return st},enumerable:!0,configurable:!0}),e.prototype.query=function(t){return document.querySelector(t)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,r){t.addEventListener(e,r,!1)},e.prototype.onAndCancel=function(t,e,r){return t.addEventListener(e,r,!1),function(){t.removeEventListener(e,r,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||n(t.returnValue)&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n];return r},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,r){t.replaceChild(e,r)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e){t.parentNode.insertBefore(e,t)},e.prototype.insertAllBefore=function(t,e){e.forEach(function(e){return t.parentNode.insertBefore(e,t)})},e.prototype.insertAfter=function(t,e){t.parentNode.insertBefore(e,t.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,r){return void 0===r&&(r=document),r.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(t,e),n},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var r=e.createElement("style");return this.appendChild(r,this.createTextNode(t)),r},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,r){void 0===r&&(r=null);var n=this.getStyle(t,e)||"";return r?n==r:n.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n<r.length;n++){var i=r[n];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,r){return t.hasAttributeNS(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,r){return t.getAttributeNS(e,r)},e.prototype.setAttribute=function(t,e,r){t.setAttribute(e,r)},e.prototype.setAttributeNS=function(t,e,r,n){t.setAttributeNS(e,r,n)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,r){t.removeAttributeNS(e,r)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.defaultDoc=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t){document.title=t||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return n(t.shadowRoot)&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(o(e)){if(e=t.keyIdentifier,o(e))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===at&&ct.hasOwnProperty(e)&&(e=ct[e]))}return ut[e]||e},e.prototype.getGlobalEventTarget=function(t){return"window"===t?window:"document"===t?document:"body"===t?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=d();return o(t)?null:v(t)},e.prototype.resetBaseElement=function(){lt=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,r){this.setAttribute(t,"data-"+e,r)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){a($,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return y(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(it),lt=null,ht=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ft=function(t){function e(){t.call(this),this._init()}return ht(e,t),e.prototype._init=function(){this._location=u().getLocation(),this._history=u().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return u().getBaseHref()},e.prototype.onPopState=function(t){u().getGlobalEventTarget("window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){u().getGlobalEventTarget("window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,r){m()?this._history.pushState(t,e,r):this._location.hash=r},e.prototype.replaceState=function(t,e,r){m()?this._history.replaceState(t,e,r):this._location.hash=r},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(e.PlatformLocation),dt=function(){function t(){}return t.init=function(){r.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){$.getAngularTestability=function(e,r){void 0===r&&(r=!0);var n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},$.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=$.getAllAngularTestabilities(),r=e.length,n=!1,i=function(e){n=n||e,r--,0==r&&t(n)};e.forEach(function(t){t.whenStable(i)})};$.frameworkStabilizers||($.frameworkStabilizers=[]),$.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,r){if(null==e)return null;var i=t.getTestability(e);return n(i)?i:r?u().isShadowRoot(e)?this.findTestabilityInTree(t,u().getHost(e),!0):this.findTestabilityInTree(t,u().parentElement(e),!0):null},t}(),vt=function(){function t(){}return t.prototype.getTitle=function(){return u().getTitle()},t.prototype.setTitle=function(t){u().setTitle(t)},t}(),yt=function(){function t(){}return t.merge=function(t,e){for(var r={},n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];r[o]=e[o]}return r},t.equals=function(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return!1}return!0},t}(),mt=new r.OpaqueToken("DocumentToken"),bt=new r.OpaqueToken("EventManagerPlugins"),gt=function(){function t(t,e){var r=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=r}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,r){var n=this._findPluginFor(e);return n.addEventListener(t,e,r)},t.prototype.addGlobalEventListener=function(t,e,r){var n=this._findPluginFor(e);return n.addGlobalEventListener(t,e,r)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var r=this._plugins,n=0;n<r.length;n++){var i=r[n];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[bt]}]},{type:r.NgZone}]},t}(),_t=function(){function t(){}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,r){var n=u().getGlobalEventTarget(t);if(!n)throw new Error("Unsupported event target "+n+" for event "+e);return this.addEventListener(n,e,r)},t}(),wt=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},St=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}(),Et=function(t){function e(e){t.call(this),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}return wt(e,t),e.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return u().remove(t)})},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[mt]}]}]},e}(St),Ot=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},xt={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Ct="template bindings={}",Tt=/^template bindings=(.*)$/,At=function(){function t(t,e,r,n,i){this.document=t,this.eventManager=e,this.sharedStylesHost=r,this.animationDriver=n,this.appId=i,this.registeredComponents=new Map}return t.prototype.renderComponent=function(t){var e=this.registeredComponents.get(t.id);return e||(e=new Mt(this,t,this.animationDriver,this.appId+"-"+t.id),this.registeredComponents.set(t.id,e)),e},t}(),Pt=function(t){function e(e,r,n,i,o){t.call(this,e,r,n,i,o)}return Ot(e,t),e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[mt]}]},{type:gt},{type:Et},{type:Q},{type:void 0,decorators:[{type:r.Inject,args:[r.APP_ID]}]}]},e}(At),Rt={remove:function(t){t.parentNode&&t.parentNode.removeChild(t)},appendChild:function(t,e){e.appendChild(t)},insertBefore:function(t,e){e.parentNode.insertBefore(t,e)},nextSibling:function(t){return t.nextSibling},parentElement:function(t){return t.parentNode}},Mt=function(){function t(t,e,n,i){this._rootRenderer=t,this.componentProto=e,this._animationDriver=n,this.directRenderer=Rt,this._styles=E(i,e.styles,[]),e.encapsulation!==r.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===r.ViewEncapsulation.Emulated?(this._contentAttr=w(i),this._hostAttr=S(i)):(this._contentAttr=null,this._hostAttr=null)}return t.prototype.selectRootElement=function(t){var e;if("string"==typeof t){if(e=this._rootRenderer.document.querySelector(t),!e)throw new Error('The selector "'+t+'" did not match any elements')}else e=t;for(;e.firstChild;)e.removeChild(e.firstChild);return e},t.prototype.createElement=function(t,e){var r;if(O(e)){var n=x(e);r=document.createElementNS(xt[n[0]],n[1])}else r=document.createElement(e);return this._contentAttr&&r.setAttribute(this._contentAttr,""),t&&t.appendChild(r),r},t.prototype.createViewRoot=function(t){var e;if(this.componentProto.encapsulation===r.ViewEncapsulation.Native){e=t.createShadowRoot();for(var n=0;n<this._styles.length;n++){var i=document.createElement("style");i.textContent=this._styles[n],e.appendChild(i)}}else this._hostAttr&&t.setAttribute(this._hostAttr,""),e=t;return e},t.prototype.createTemplateAnchor=function(t){var e=document.createComment(Ct);return t&&t.appendChild(e),e},t.prototype.createText=function(t,e){var r=document.createTextNode(e);return t&&t.appendChild(r),r},t.prototype.projectNodes=function(t,e){t&&g(t,e)},t.prototype.attachViewAfter=function(t,e){b(t,e)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.parentNode&&r.parentNode.removeChild(r)}},t.prototype.destroyView=function(t){this.componentProto.encapsulation===r.ViewEncapsulation.Native&&t&&this._rootRenderer.sharedStylesHost.removeHost(t.shadowRoot)},t.prototype.listen=function(t,e,r){return this._rootRenderer.eventManager.addEventListener(t,e,_(r))},t.prototype.listenGlobal=function(t,e,r){return this._rootRenderer.eventManager.addGlobalEventListener(t,e,_(r))},t.prototype.setElementProperty=function(t,e,r){t[e]=r},t.prototype.setElementAttribute=function(t,e,r){var i,o=e;if(O(e)){var s=x(e);o=s[1],e=s[0]+":"+s[1],i=xt[s[0]]}n(r)?i?t.setAttributeNS(i,e,r):t.setAttribute(e,r):n(i)?t.removeAttributeNS(i,o):t.removeAttribute(e)},t.prototype.setBindingDebugInfo=function(t,e,r){if(t.nodeType===Node.COMMENT_NODE){var n=t.nodeValue.replace(/\n/g,"").match(Tt),i=JSON.parse(n[1]);i[e]=r,t.nodeValue=Ct.replace("{}",JSON.stringify(i,null,2))}else this.setElementAttribute(t,e,r)},t.prototype.setElementClass=function(t,e,r){r?t.classList.add(e):t.classList.remove(e)},t.prototype.setElementStyle=function(t,e,r){t.style[e]=n(r)?s(r):""},t.prototype.invokeElementMethod=function(t,e,r){t[e].apply(t,r)},t.prototype.setText=function(t,e){t.nodeValue=e},t.prototype.animate=function(t,e,r,n,i,o,s){return void 0===s&&(s=[]),this._rootRenderer.document.body.contains(t)?this._animationDriver.animate(t,e,r,n,i,o,s):new X},t}(),kt=/%COMP%/g,It="%COMP%",Nt="_nghost-"+It,jt="_ngcontent-"+It,Dt=/^:([^:]+):(.+)$/,Lt={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone},Vt="ng.probe",Ft="ng.coreTokens",Ut=function(){function t(t,e){this.name=t,this.token=e}return t}(),Bt=[{provide:r.RootRenderer,useFactory:T,deps:[At,[Ut,new r.Optional],[r.NgProbeToken,new r.Optional]]}],Ht=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},qt=function(t){function e(){t.apply(this,arguments)}return Ht(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,r){return t.addEventListener(e,r,!1),function(){return t.removeEventListener(e,r,!1)}},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(_t),zt=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Wt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Gt=new r.OpaqueToken("HammerGestureConfig"),Kt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var r in this.overrides)e.get(r).set(this.overrides[r]);return e},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}(),Xt=function(t){function e(e){t.call(this),this._config=e}return zt(e,t),e.prototype.supports=function(t){if(!Wt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,r){var n=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=n._config.buildHammer(t),s=function(t){i.runGuarded(function(){r(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:Kt,decorators:[{type:r.Inject,args:[Gt]}]}]},e}(_t),Yt=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Qt=["alt","control","meta","shift"],$t={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Zt=function(t){function e(){t.call(this)}return Yt(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,r,n){var i=e.parseEventName(r),o=e.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return u().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;var i=e._normalizeKey(r.pop()),o="";if(Qt.forEach(function(t){var e=r.indexOf(t);e>-1&&(r.splice(e,1),o+=t+".")}),o+=i,0!=r.length||0===i.length)return null;var s={};return s.domEventName=n,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",r=u().getEventKey(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Qt.forEach(function(n){if(n!=r){var i=$t[n];i(t)&&(e+=n+".")}}),e+=r},e.eventCallback=function(t,r,n){return function(i){e.getEventFullKey(i)===t&&n.runGuarded(function(){return r(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(_t),Jt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,ee=null,re=null,ne=I("area,br,col,hr,img,wbr"),ie=I("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oe=I("rp,rt"),se=N(oe,ie),ae=N(ie,I("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")),ue=N(oe,I("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")),ce=N(ne,ae,ue,se),pe=I("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),le=I("srcset"),he=I("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"),fe=N(pe,le,he),de=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(re.isElementNode(e)?this.startElement(e):re.isTextNode(e)?this.chars(re.nodeValue(e)):this.sanitizedSomething=!0,re.firstChild(e))e=re.firstChild(e);else for(;e;){if(re.isElementNode(e)&&this.endElement(e),re.nextSibling(e)){e=re.nextSibling(e);break}e=re.parentElement(e)}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,r=re.nodeName(t).toLowerCase();return ce.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),re.attributeMap(t).forEach(function(t,r){var n=r.toLowerCase();return fe.hasOwnProperty(n)?(pe[n]&&(t=R(t)),le[n]&&(t=M(t)),e.buf.push(" "),e.buf.push(r),e.buf.push('="'),e.buf.push(j(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=re.nodeName(t).toLowerCase();ce.hasOwnProperty(e)&&!ne.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(j(t))},t}(),ve=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ye=/([^\#-~ |!])/g,me="[-,.\"'%_!# a-zA-Z0-9]+",be="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",ge="(?:rgb|hsl)a?",_e="(?:repeating-)?(?:linear|radial)-gradient",we="(?:calc|attr)",Se="\\([-0-9.%, #a-zA-Z]+\\)",Ee=new RegExp("^("+me+"|"+("(?:"+be+"|"+ge+"|"+_e+"|"+we+")")+(Se+")$"),"g"),Oe=/^url\(([^)]+)\)$/,xe=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ce=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),Te=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.SecurityContext.NONE:return e;case r.SecurityContext.HTML:return e instanceof Pe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),L(String(e)));case r.SecurityContext.STYLE:return e instanceof Re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),F(e));case r.SecurityContext.SCRIPT:if(e instanceof Me)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return e instanceof Ie||e instanceof ke?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),R(String(e)));case r.SecurityContext.RESOURCE_URL:if(e instanceof Ie)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Ae)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Pe(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Re(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Me(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ke(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ie(t)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}(Ce),Ae=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Pe=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Ae),Re=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Ae),Me=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Ae),ke=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Ae),Ie=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Ae),Ne=[{provide:r.PLATFORM_INITIALIZER,useValue:U,multi:!0},{provide:e.PlatformLocation,useClass:ft}],je=[{provide:r.Sanitizer,useExisting:Ce},{provide:Ce,useClass:Te}],De=r.createPlatformFactory(r.platformCore,"browser",Ne),Le=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.decorators=[{type:r.NgModule,args:[{providers:[je,{provide:r.ErrorHandler,useFactory:B,deps:[]},{provide:mt,useFactory:H,deps:[]},{provide:bt,useClass:qt,multi:!0},{provide:bt,useClass:Zt,multi:!0},{provide:bt,useClass:Xt,multi:!0},{provide:Gt,useClass:Kt},{provide:At,useClass:Pt},{provide:r.RootRenderer,useExisting:At},{provide:St,useExisting:Et},{provide:Q,useFactory:q},Et,r.Testability,gt,Bt,vt],exports:[e.CommonModule,r.ApplicationModule]}]}],t.ctorParameters=function(){
+return[{type:t,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]},t}(),Ve="undefined"!=typeof window&&window||{},Fe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),Ue=function(){function t(t){this.profiler=new Be(t)}return t}(),Be=function(){function t(t){this.appRef=t.injector.get(r.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,r="Change Detection",i=n(Ve.console.profile);e&&i&&Ve.console.profile(r);for(var o=u().performanceNow(),s=0;5>s||u().performanceNow()-o<500;)this.appRef.tick(),s++;var a=u().performanceNow();e&&i&&Ve.console.profileEnd(r);var c=(a-o)/s;return Ve.console.log("ran "+s+" change detection cycles"),Ve.console.log(c.toFixed(2)+" ms per check"),new Fe(c,s)},t}(),He=$,qe=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return n(e.nativeElement)?u().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ze={BrowserPlatformLocation:ft,DomAdapter:tt,BrowserDomAdapter:pt,BrowserGetTestability:dt,getDOM:u,setRootDomAdapter:c,DomRootRenderer_:Pt,DomRootRenderer:At,NAMESPACE_URIS:xt,shimContentAttribute:w,shimHostAttribute:S,flattenStyles:E,splitNamespace:x,isNamespaced:O,DomSharedStylesHost:Et,SharedStylesHost:St,ELEMENT_PROBE_PROVIDERS:Bt,DomEventsPlugin:qt,KeyEventsPlugin:Zt,HammerGesturesPlugin:Xt,initDomAdapter:U,INTERNAL_BROWSER_PLATFORM_PROVIDERS:Ne,BROWSER_SANITIZATION_PROVIDERS:je,WebAnimationsDriver:rt},We=new r.Version("2.4.9");t.BrowserModule=Le,t.platformBrowser=De,t.Title=vt,t.disableDebugTools=W,t.enableDebugTools=z,t.AnimationDriver=Q,t.By=qe,t.NgProbeToken=Ut,t.DOCUMENT=mt,t.EVENT_MANAGER_PLUGINS=bt,t.EventManager=gt,t.HAMMER_GESTURE_CONFIG=Gt,t.HammerGestureConfig=Kt,t.DomSanitizer=Ce,t.VERSION=We,t.__platform_browser_private__=ze})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/common":5,"@angular/core":7}],11:[function(e,r,n){!function(i,o){"object"==typeof n&&"undefined"!=typeof r?o(n,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],o):o((i.ng=i.ng||{},i.ng.router=i.ng.router||{}),i.ng.common,i.ng.core,i.Rx,i.Rx,i.Rx.Observable,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.ng.platformBrowser,i.Rx.Observable.prototype)}(this,function(t,e,r,n,i,o,s,a,u,c,p,l,h,f,d,v,y,m,b,g,_,w){"use strict";function S(t,e,r){for(var n=r.path,i=n.split("/"),o={},s=[],a=0,u=0;u<i.length;++u){if(a>=t.length)return null;var c=t[a],p=i[u],l=p.startsWith(":");if(!l&&p!==c.path)return null;l&&(o[p.substring(1)]=c),s.push(c),a++}return"full"===r.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:o}}function E(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!O(t[r],e[r]))return!1;return!0}function O(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var i,o=0;o<r.length;o++)if(i=r[o],t[i]!==e[i])return!1;return!0}function x(t){for(var e=[],r=0;r<t.length;++r)for(var n=0;n<t[r].length;++n)e.push(t[r][n]);return e}function C(t){return t.length>0?t[t.length-1]:null}function T(t,e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function A(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function P(t,e){var r=[],n={};if(A(t,function(t,i){i===Ae&&r.push(p.map.call(e(i,t),function(t){return n[i]=t,t}))}),A(t,function(t,i){i!==Ae&&r.push(p.map.call(e(i,t),function(t){return n[i]=t,t}))}),r.length>0){var i=v.concatAll.call(s.of.apply(void 0,r)),o=b.last.call(i);return p.map.call(o,function(){return n})}return s.of(n)}function R(t){var e=g.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function M(t){return Ce(t)?t:xe(t)?m.fromPromise(t):s.of(t)}function k(){return new Ie(new Ne([],{}),{},null)}function I(t,e,r){return r?N(t.queryParams,e.queryParams)&&j(t.root,e.root):D(t.queryParams,e.queryParams)&&L(t.root,e.root)}function N(t,e){return O(t,e)}function j(t,e){if(!U(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!j(t.children[r],e.children[r]))return!1}return!0}function D(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function L(t,e){return V(t,e,e.segments)}function V(t,e,r){if(t.segments.length>r.length){var n=t.segments.slice(0,r.length);return U(n,r)?e.hasChildren()?!1:!0:!1}if(t.segments.length===r.length){if(!U(t.segments,r))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!L(t.children[i],e.children[i]))return!1}return!0}var n=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return U(t.segments,n)&&t.children[Ae]?V(t.children[Ae],e,o):!1}function F(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].path!==e[r].path)return!1;if(!O(t[r].parameters,e[r].parameters))return!1}return!0}function U(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(t[r].path!==e[r].path)return!1;return!0}function B(t,e){var r=[];return A(t.children,function(t,n){n===Ae&&(r=r.concat(e(t,n)))}),A(t.children,function(t,n){n!==Ae&&(r=r.concat(e(t,n)))}),r}function H(t){return t.segments.map(function(t){return G(t)}).join("/")}function q(t,e){if(t.hasChildren()&&e){var r=t.children[Ae]?q(t.children[Ae],!1):"",n=[];return A(t.children,function(t,e){e!==Ae&&n.push(e+":"+q(t,!1))}),n.length>0?r+"("+n.join("//")+")":""+r}if(t.hasChildren()&&!e){var i=B(t,function(e,r){return r===Ae?[q(t.children[Ae],!1)]:[r+":"+q(e,!1)]});return H(t)+"/("+i.join("//")+")"}return H(t)}function z(t){return encodeURIComponent(t)}function W(t){return decodeURIComponent(t)}function G(t){return""+z(t.path)+K(t.parameters)}function K(t){return Y(t).map(function(t){return";"+z(t.first)+"="+z(t.second)}).join("")}function X(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return z(e)+"="+z(t)}).join("&"):z(e)+"="+z(r)});return e.length?"?"+e.join("&"):""}function Y(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(new Ve(r,t[r]));return e}function Q(t){Fe.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function $(t){Ue.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function Z(t){Be.lastIndex=0;var e=t.match(Be);return e?e[0]:""}function J(t){return new f.Observable(function(e){return e.error(new qe(t))})}function tt(t){return new f.Observable(function(e){return e.error(new ze(t))})}function et(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function rt(t){return new f.Observable(function(e){return e.error(new Pe("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function nt(t,e,r,n,i){return new We(t,e,r,n,i).apply()}function it(t,e){var r=e.canLoad;if(!r||0===r.length)return s.of(!0);var n=p.map.call(o.from(r),function(r){var n=t.get(r);return M(n.canLoad?n.canLoad(e):n(e))});return R(n)}function ot(t,e,r){var n={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=e.matcher||S,o=i(r,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:n}function st(t,e,r,n){if(r.length>0&&pt(t,r,n)){var i=new Ne(e,ct(n,new Ne(r,t.children)));return{segmentGroup:at(i),slicedSegments:[]}}if(0===r.length&&lt(t,r,n)){var i=new Ne(t.segments,ut(t,r,n,t.children));return{segmentGroup:at(i),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function at(t){if(1===t.numberOfChildren&&t.children[Ae]){var e=t.children[Ae];return new Ne(t.segments.concat(e.segments),e.children)}return t}function ut(t,e,r,n){for(var i={},o=0,s=r;o<s.length;o++){var a=s[o];ht(t,e,a)&&!n[ft(a)]&&(i[ft(a)]=new Ne([],{}))}return T(n,i)}function ct(t,e){var r={};r[Ae]=e;for(var n=0,i=t;n<i.length;n++){var o=i[n];""===o.path&&ft(o)!==Ae&&(r[ft(o)]=new Ne([],{}))}return r}function pt(t,e,r){return r.filter(function(r){return ht(t,e,r)&&ft(r)!==Ae}).length>0}function lt(t,e,r){return r.filter(function(r){return ht(t,e,r)}).length>0}function ht(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0!==r.redirectTo}function ft(t){return t.outlet?t.outlet:Ae}function dt(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r],i=yt(e,n);vt(n,i)}}function vt(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n       \n      Example: \n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Ae)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var r="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+r)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&dt(t.children,e)}function yt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function mt(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r<n.length;r++){var i=n[r],o=mt(t,i);if(o)return o}return null}function bt(t,e,r){if(r.push(e),t===e.value)return r;for(var n=0,i=e.children;n<i.length;n++){var o=i[n],s=r.slice(0),a=bt(t,o,s);if(a.length>0)return a}return[]}function gt(t,e){var r=_t(t,e),i=new n.BehaviorSubject([new je("",{})]),o=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject(""),c=new Qe(i,o,a,u,s,Ae,e,r.root);return c.snapshot=r.root,new Ye(new Ke(c,[]),r)}function _t(t,e){var r={},n={},i={},o="",s=new $e([],r,i,o,n,Ae,e,null,t.root,-1,{});return new Ze("",new Ke(s,[]))}function wt(t){for(var e=t.pathFromRoot,r=e.length-1;r>=1;){var n=e[r],i=e[r-1];if(n.routeConfig&&""===n.routeConfig.path)r--;else{if(i.component)break;r--}}return e.slice(r).reduce(function(t,e){var r=T(t.params,e.params),n=T(t.data,e.data),i=T(t.resolve,e._resolvedData);return{params:r,data:n,resolve:i}},{params:{},data:{},resolve:{}})}function St(t,e){e.value._routerState=t,e.children.forEach(function(e){return St(t,e)})}function Et(t){var e=t.children.length>0?" { "+t.children.map(Et).join(", ")+" } ":"";return""+t.value+e}function Ot(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,O(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),O(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),E(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),xt(e,t._futureSnapshot)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xt(t,e){return O(t.params,e.params)&&F(t.url,e.url)}function Ct(t,e,r){var n=Tt(t,e._root,r?r._root:void 0);return new Ye(n,e)}function Tt(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){var n=r.value;n._futureSnapshot=e.value;var i=Pt(t,e,r);return new Ke(n,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return At(e,o),o}var n=Rt(e.value),i=e.children.map(function(e){return Tt(t,e)});return new Ke(n,i)}function At(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)At(t.children[r],e.children[r])}function Pt(t,e,r){return e.children.map(function(e){for(var n=0,i=r.children;n<i.length;n++){var o=i[n];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Tt(t,e,o)}return Tt(t,e)})}function Rt(t){return new Qe(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}function Mt(t,e,r,n,i){if(0===r.length)return It(e.root,e.root,e,n,i);var o=jt(r);if(o.toRoot())return It(e.root,new Ne([],{}),e,n,i);var s=Dt(o,e,t),a=s.processChildren?Bt(s.segmentGroup,s.index,o.commands):Ut(s.segmentGroup,s.index,o.commands);return It(s.segmentGroup,a,e,n,i)}function kt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function It(t,e,r,n,i){return r.root===t?new Ie(e,Wt(n),i):new Ie(Nt(r.root,t,e),Wt(n),i)}function Nt(t,e,r){var n={};return A(t.children,function(t,i){n[i]=t===e?r:Nt(t,e,r)}),new Ne(t.segments,n)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Je(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,i){if("object"==typeof n&&null!=n){if(n.outlets){var o={};return A(n.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(n.segmentPath)return t.concat([n.segmentPath])}return"string"!=typeof n?t.concat([n]):0===i?(n.split("/").forEach(function(n,i){0==i&&"."===n||(0==i&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):t.concat([n])},[]);return new Je(r,e,n)}function Dt(t,e,r){if(t.isAbsolute)return new tr(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new tr(r.snapshot._urlSegment,!0,0);var n=kt(t.commands[0])?0:1,i=r.snapshot._lastPathIndex+n;return Lt(r.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Lt(t,e,r){for(var n=t,i=e,o=r;o>i;){if(o-=i,n=n.parent,!n)throw new Error("Invalid number of '../'");i=n.segments.length}return new tr(n,!1,i-o)}function Vt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Ae]:""+t}function Ft(t){return"object"!=typeof t[0]?(e={},e[Ae]=t,e):void 0===t[0].outlets?(r={},r[Ae]=t,r):t[0].outlets;var e,r}function Ut(t,e,r){if(t||(t=new Ne([],{})),0===t.segments.length&&t.hasChildren())return Bt(t,e,r);var n=Ht(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var o=new Ne(t.segments.slice(0,n.pathIndex),{});return o.children[Ae]=new Ne(t.segments.slice(n.pathIndex),t.children),Bt(o,0,i)}return n.match&&0===i.length?new Ne(t.segments,{}):n.match&&!t.hasChildren()?qt(t,e,r):n.match?Bt(t,0,i):qt(t,e,r)}function Bt(t,e,r){if(0===r.length)return new Ne(t.segments,{});var n=Ft(r),i={};return A(n,function(r,n){null!==r&&(i[n]=Ut(t.children[n],e,r))}),A(t.children,function(t,e){void 0===n[e]&&(i[e]=t)}),new Ne(t.segments,i)}function Ht(t,e,r){for(var n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(n>=r.length)return o;var s=t.segments[i],a=Vt(r[n]),u=n<r.length-1?r[n+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Gt(a,u,s))return o;n+=2}else{if(!Gt(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function qt(t,e,r){for(var n=t.segments.slice(0,e),i=0;i<r.length;){if("object"==typeof r[i]&&void 0!==r[i].outlets){var o=zt(r[i].outlets);return new Ne(n,o)}if(0===i&&kt(r[0])){var s=t.segments[e];n.push(new je(s.path,r[0])),i++}else{var a=Vt(r[i]),u=i<r.length-1?r[i+1]:null;a&&u&&kt(u)?(n.push(new je(a,Wt(u))),i+=2):(n.push(new je(a,{})),i++)}}return new Ne(n,{})}function zt(t){var e={};return A(t,function(t,r){null!==t&&(e[r]=qt(new Ne([],{}),0,t))}),e}function Wt(t){var e={};return A(t,function(t,r){return e[r]=""+t}),e}function Gt(t,e,r){return t==r.path&&O(e,r.parameters)}function Kt(t,e,r,n){return new rr(t,e,r,n).recognize()}function Xt(t){t.sort(function(t,e){return t.value.outlet===Ae?-1:e.value.outlet===Ae?1:t.value.outlet.localeCompare(e.value.outlet)})}function Yt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Qt(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new er;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=e.matcher||S,i=n(r,t,e);if(!i)throw new er;var o={};A(i.posParams,function(t,e){o[e]=t.path});var s=T(o,i.consumed[i.consumed.length-1].parameters);return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}function $t(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function Zt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Jt(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function te(t,e,r,n){if(r.length>0&&ne(t,r,n)){var i=new Ne(e,re(t,e,n,new Ne(r,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&ie(t,r,n)){var i=new Ne(t.segments,ee(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var i=new Ne(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}function ee(t,e,r,n){for(var i={},o=0,s=r;o<s.length;o++){var a=s[o];if(oe(t,e,a)&&!n[se(a)]){var u=new Ne([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[se(a)]=u}}return T(n,i)}function re(t,e,r,n){var i={};i[Ae]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(var o=0,s=r;o<s.length;o++){var a=s[o];if(""===a.path&&se(a)!==Ae){var u=new Ne([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[se(a)]=u}}return i}function ne(t,e,r){return r.filter(function(r){return oe(t,e,r)&&se(r)!==Ae}).length>0}function ie(t,e,r){return r.filter(function(r){return oe(t,e,r)}).length>0}function oe(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0===r.redirectTo}function se(t){return t.outlet?t.outlet:Ae}function ae(t){return t.data?t.data:{}}function ue(t){return t.resolve?t.resolve:{}}function ce(t){throw t}function pe(t){Ot(t.value),t.children.forEach(pe)}function le(t){for(var e=t.parent;e;){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null;e=e.parent}return null}function he(t){if(!t)return null;for(var e=t.parent;e;){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;e=e.parent}return null}function fe(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function de(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw new Error(e.outlet===Ae?"Cannot find primary outlet to load '"+n+"'":"Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function ve(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}function ye(t){return""===t||!!t}function me(){return new r.NgProbeToken("Router",hr)}function be(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function ge(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function _e(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Re,multi:!0,useValue:t}]}function we(t,e,r,n,i,o,s,a,u,c,p){void 0===u&&(u={});var l=new hr(null,e,r,n,i,o,s,x(a));if(c&&(l.urlHandlingStrategy=c),p&&(l.routeReuseStrategy=p),u.errorHandler&&(l.errorHandler=u.errorHandler),u.enableTracing){var h=Sr();l.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return l}function Se(t){return t.routerState.root}function Ee(t,e,r,n){return function(i){i===e.components[0]&&(t.resetRootComponentType(e.componentTypes[0]),r.setUpPreloading(),n.initialNavigation===!1?t.setUpLocationChangeListener():t.initialNavigation())}}function Oe(){return[{provide:kr,useFactory:Ee,deps:[hr,r.ApplicationRef,Cr,Ar]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:kr}]}var xe=r.__core_private__.isPromise,Ce=r.__core_private__.isObservable,Te=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ae="primary",Pe=function(t){function e(e){t.call(this,e),this.message=e,this.stack=new Error(e).stack}return Te(e,t),e.prototype.toString=function(){return this.message},e}(Error),Re=new r.OpaqueToken("ROUTES"),Me=function(){function t(t,e,r,n){this.routes=t,this.injector=e,this.factoryResolver=r,this.injectorFactory=n}return t}(),ke=function(){function t(t,e){this.loader=t,this.compiler=e}return t.prototype.load=function(t,e){return p.map.call(this.loadModuleFactory(e),function(e){var r=e.create(t),n=function(t){return e.create(t).injector};return new Me(x(r.injector.get(Re)),r.injector,r.componentFactoryResolver,n)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?m.fromPromise(this.loader.load(t)):l.mergeMap.call(M(t()),function(t){return t instanceof r.NgModuleFactory?s.of(t):m.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),Ie=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return t.prototype.toString=function(){return(new Le).serialize(this)},t}(),Ne=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,A(e,function(t){return t.parent=r})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return H(this)},t}(),je=function(){function t(t,e){this.path=t,this.parameters=e}return t.prototype.toString=function(){return G(this)},t}(),De=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),Le=function(){function t(){}return t.prototype.parse=function(t){var e=new He(t);return new Ie(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+q(t.root,!0),r=X(t.queryParams),n=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+r+n},t}(),Ve=function(){function t(t,e){this.first=t,this.second=e}return t}(),Fe=/^[^\/()?;=&#]+/,Ue=/^[^=?&#]+/,Be=/^[^?&#]+/,He=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[Ae]=new Ne(t,e)),r},t.prototype.parseSegments=function(){var t=Q(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new je(W(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Q(this.remaining);if(e){this.capture(e);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=Q(this.remaining);n&&(r=n,this.capture(r))}t[W(e)]=W(r)}},t.prototype.parseQueryParam=function(t){var e=$(this.remaining);if(e){this.capture(e);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=Z(this.remaining);n&&(r=n,this.capture(r))}var i=W(e),o=W(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var r=Q(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Ae);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Ae]:new Ne([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),qe=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),ze=function(){function t(t){this.urlTree=t}return t}(),We=function(){function t(t,e,r,n,i){this.injector=t,this.configLoader=e,this.urlSerializer=r,this.urlTree=n,this.config=i,this.allowRedirects=!0}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,Ae),r=p.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(r,function(e){if(e instanceof ze)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof qe?t.noMatchError(e):e})},t.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.injector,this.config,t.root,Ae),n=p.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return d._catch.call(n,function(t){throw t instanceof qe?e.noMatchError(t):t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n=t.segments.length>0?new Ne([],(i={},i[Ae]=t,i)):t;return new Ie(n,e,r);var i},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?p.map.call(this.expandChildren(t,e,r),function(t){return new Ne([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return P(r.children,function(r,i){return n.expandSegmentGroup(t,e,i,r)})},t.prototype.expandSegment=function(t,e,r,n,i,o){var a=this,u=s.of.apply(void 0,r),l=p.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,n,i,o);return d._catch.call(c,function(t){if(t instanceof qe)return s.of(null);throw t})}),h=v.concatAll.call(l),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,n,i))return s.of(new Ne([],{}));throw new qe(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,i,o,s){return ft(n)!==o?J(e):void 0===n.redirectTo||s&&this.allowRedirects?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,i):this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,i,o):J(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var i=this,o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?tt(o):l.mergeMap.call(this.lineralizeSegments(r,o),function(r){var o=new Ne(r,{});return i.expandSegment(t,o,e,r,n,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,o){var s=this,a=ot(e,n,i),u=a.matched,c=a.consumedSegments,p=a.lastChild,h=a.positionalParamSegments;if(!u)return J(e);var f=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?tt(f):l.mergeMap.call(this.lineralizeSegments(n,f),function(n){return s.expandSegment(t,e,r,n.concat(i.slice(p)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,n){var i=this;if("**"===r.path)return r.loadChildren?p.map.call(this.configLoader.load(t,r.loadChildren),function(t){return r._loadedConfig=t,new Ne(n,{})}):s.of(new Ne(n,{}));var o=ot(e,r,n),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return J(e);var h=n.slice(c),f=this.getChildConfig(t,r);return l.mergeMap.call(f,function(t){
+var r=t.injector,n=t.routes,o=st(e,u,h,n),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var l=i.expandChildren(r,n,a);return p.map.call(l,function(t){return new Ne(u,t)})}if(0===n.length&&0===c.length)return s.of(new Ne(u,{}));var l=i.expandSegment(r,a,n,c,Ae,!0);return p.map.call(l,function(t){return new Ne(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?s.of(new Me(e.children,t,null,null)):e.loadChildren?l.mergeMap.call(it(t,e),function(n){return n?e._loadedConfig?s.of(e._loadedConfig):p.map.call(r.configLoader.load(t,e.loadChildren),function(t){return e._loadedConfig=t,t}):rt(e)}):s.of(new Me([],t,null,null))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return s.of(r);if(n.numberOfChildren>1||!n.children[Ae])return et(t.redirectTo);n=n.children[Ae]}},t.prototype.applyRedirectCommands=function(t,e,r){this.urlSerializer.parse(e);return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var i=this.createSegmentGroup(t,e.root,r,n);return new Ie(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return A(t,function(t,n){r[n]=t.startsWith(":")?e[t.substring(1)]:t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var i=this,o=this.createSegments(t,e.segments,r,n),s={};return A(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,r,n)}),new Ne(o,s)},t.prototype.createSegments=function(t,e,r,n){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,n):i.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){for(var r=0,n=0,i=e;n<i.length;n++){var o=i[n];if(o.path===t.path)return e.splice(r),o;r++}return t},t}(),Ge=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=mt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=mt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=bt(t,this._root,[]);if(e.length<2)return[];var r=e[e.length-2].children.map(function(t){return t.value});return r.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return bt(t,this._root,[]).map(function(t){return t.value})},t}(),Ke=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),Xe=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ye=function(t){function e(e,r){t.call(this,e),this.snapshot=r,St(this,e)}return Xe(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ge),Qe=function(){function t(t,e,r,n,i,o,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),$e=function(){function t(t,e,r,n,i,o,s,a,u,c,p){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=p}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),Ze=function(t){function e(e,r){t.call(this,r),this.url=e,St(this,r)}return Xe(e,t),e.prototype.toString=function(){return Et(this._root)},e}(Ge),Je=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&kt(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==C(r))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),tr=function(){function t(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return t}(),er=function(){function t(){}return t}(),rr=function(){function t(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return t.prototype.recognize=function(){try{var t=te(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Ae),r=new $e([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ae,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ke(r,e),i=new Ze(this.url,n);return this.inheriteParamsAndData(i._root),s.of(i)}catch(o){return new f.Observable(function(t){return t.error(o)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,r=t.value,n=wt(r);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=B(e,function(e,n){return r.processSegmentGroup(t,e,n)});return $t(n),Xt(n),n},t.prototype.processSegment=function(t,e,r,n){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(a){if(!(a instanceof er))throw a}}if(this.noLeftoversInUrl(e,r,n))return[];throw new er},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new er;if((t.outlet?t.outlet:Ae)!==n)throw new er;if("**"===t.path){var i=r.length>0?C(r).parameters:{},o=new $e(r,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),n,t.component,t,Zt(e),Jt(e)+r.length,ue(t));return[new Ke(o,[])]}var s=Qt(e,t,r),a=s.consumedSegments,u=s.parameters,c=s.lastChild,p=r.slice(c),l=Yt(t),h=te(e,a,p,l),f=h.segmentGroup,d=h.slicedSegments,v=new $e(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),n,t.component,t,Zt(e),Jt(e)+a.length,ue(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(l,f);return[new Ke(v,y)]}if(0===l.length&&0===d.length)return[new Ke(v,[])];var y=this.processSegment(l,f,d,Ae);return[new Ke(v,y)]},t}(),nr=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),ir=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),or=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),sr=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),ar=function(){function t(t,e,r){this.id=t,this.url=e,this.urlAfterRedirects=r}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),ur=function(){function t(t,e,r){this.id=t,this.url=e,this.reason=r}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),cr=function(){function t(t,e,r){this.id=t,this.url=e,this.error=r}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),pr=function(){function t(t,e,r,n){this.id=t,this.url=e,this.urlAfterRedirects=r,this.state=n}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),lr=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),hr=function(){function t(t,e,r,o,s,a,u,c){this.rootComponentType=t,this.urlSerializer=e,this.outletMap=r,this.location=o,this.injector=s,this.config=c,this.navigations=new n.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=ce,this.navigated=!1,this.urlHandlingStrategy=new or,this.routeReuseStrategy=new lr,this.resetConfig(c),this.currentUrlTree=k(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ke(a,u),this.currentRouterState=gt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var r=t.urlSerializer.parse(e.url),n="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(r,n,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.resetConfig=function(t){dt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,n=r.relativeTo,i=r.queryParams,o=r.fragment,s=r.preserveQueryParams,a=r.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.queryParams:i,p=a?this.currentUrlTree.fragment:o;return Mt(u,this.currentUrlTree,t,c,p)},t.prototype.navigateByUrl=function(t,e){if(void 0===e&&(e={skipLocationChange:!1}),t instanceof Ie)return this.scheduleNavigation(this.urlHandlingStrategy.merge(t,this.rawUrlTree),"imperative",e);var r=this.urlSerializer.parse(t);return this.scheduleNavigation(this.urlHandlingStrategy.merge(r,this.rawUrlTree),"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ie)return I(this.currentUrlTree,t,e);var r=this.urlSerializer.parse(t);return I(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return null!==n&&void 0!==n&&(e[r]=n),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,r){var n=this.navigations.value;if(n&&"imperative"!==e&&"imperative"===n.source&&n.rawUrl.toString()===t.toString())return null;if(n&&"hashchange"==e&&"popstate"===n.source&&n.rawUrl.toString()===t.toString())return null;var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:r,resolve:i,reject:o,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,r=t.id,n=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(n),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(n)?(this.routerEvents.next(new sr(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,i.skipLocationChange,i.replaceUrl,r,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new sr(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!1,!1,r,gt(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=n,o(null))},t.prototype.runNavigate=function(t,e,r,n,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new ur(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var f=nt(a.injector,a.configLoader,a.urlSerializer,t,a.config);h=l.mergeMap.call(f,function(e){return p.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(r){return a.routerEvents.next(new pr(i,a.serializeUrl(t),a.serializeUrl(e),r)),{appliedUrl:e,snapshot:r}})})}var d,v,y=p.map.call(h,function(t){var e=t.appliedUrl,r=t.snapshot;return d=new vr(r,a.currentRouterState.snapshot,a.injector),d.traverse(a.outletMap),{appliedUrl:e,snapshot:r}}),m=l.mergeMap.call(y,function(t){var e=t.appliedUrl,r=t.snapshot;return a.navigationId!==i?s.of(!1):p.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),b=l.mergeMap.call(m,function(t){return a.navigationId!==i?s.of(!1):t.shouldActivate?p.map.call(d.resolveData(),function(){return t}):s.of(t)}),g=p.map.call(b,function(t){var e=t.appliedUrl,r=t.snapshot,n=t.shouldActivate;if(n){var i=Ct(a.routeReuseStrategy,r,a.currentRouterState);return{appliedUrl:e,state:i,shouldActivate:n}}return{appliedUrl:e,state:null,shouldActivate:n}}),_=a.currentRouterState,w=a.currentUrlTree;g.forEach(function(t){var o=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||i!==a.navigationId)return void(v=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!r){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||n?a.location.replaceState(c):a.location.go(c)}new yr(a.routeReuseStrategy,s,_).activate(a.outletMap),v=!0}).then(function(){v?(a.navigated=!0,a.routerEvents.next(new ar(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new ur(i,a.serializeUrl(t),"")),u(!1))},function(r){if(r instanceof Pe)a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new ur(i,a.serializeUrl(t),r.message)),u(!1);else{a.routerEvents.next(new cr(i,a.serializeUrl(t),r));try{u(a.errorHandler(r))}catch(n){c(n)}}a.currentRouterState=_,a.currentUrlTree=w,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),fr=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),dr=function(){function t(t,e){this.component=t,this.route=e}return t}(),vr=function(){function t(t,e,r){this.future=t,this.curr=e,this.injector=r,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(e,r,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.checks.length)return s.of(!0);var e=o.from(this.checks),r=l.mergeMap.call(e,function(e){if(e instanceof fr)return R(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]));if(e instanceof dr){var r=e;return t.runCanDeactivate(r.component,r.route)}throw new Error("Cannot be reached")});return u.every.call(r,function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;if(0===this.checks.length)return s.of(null);var e=o.from(this.checks),r=a.concatMap.call(e,function(e){return e instanceof fr?t.runResolve(e.route):s.of(null)});return h.reduce.call(r,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,r,n){var i=this,o=fe(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],r,n.concat([t.value])),delete o[t.value.outlet]}),A(o,function(t,e){return i.deactiveRouteAndItsChildren(t,r._outlets[e])})},t.prototype.traverseRoutes=function(t,e,r,n){var i=t.value,o=e?e.value:null,s=r?r._outlets[t.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(xt(i,o)?(i.data=o.data,i._resolvedData=o._resolvedData):this.checks.push(new dr(s.component,o),new fr(n)),i.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,n):this.traverseChildRoutes(t,e,r,n)):(o&&this.deactiveRouteAndItsChildren(e,s),this.checks.push(new fr(n)),i.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,n):this.traverseChildRoutes(t,null,r,n))},t.prototype.deactiveRouteAndItsChildren=function(t,e){var r=this,n=fe(t),i=t.value;A(n,function(t,n){i.component?e?r.deactiveRouteAndItsChildren(t,e.outletMap._outlets[n]):r.deactiveRouteAndItsChildren(t,null):r.deactiveRouteAndItsChildren(t,e)}),this.checks.push(i.component?e&&e.isActivated?new dr(e.component,i):new dr(null,i):new dr(null,i))},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;if(!r||0===r.length)return s.of(!0);var n=p.map.call(o.from(r),function(r){var n,i=e.getToken(r,t);return n=M(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(n)});return R(n)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],n=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return R(p.map.call(o.from(n),function(t){var n=p.map.call(o.from(t.guards),function(n){var i,o=e.getToken(n,t.node);return i=M(o.canActivateChild?o.canActivateChild(r,e.future):o(r,e.future)),c.first.call(i)});return R(n)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var r=this,n=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!n||0===n.length)return s.of(!0);var i=l.mergeMap.call(o.from(n),function(n){var i,o=r.getToken(n,e);return i=M(o.canDeactivate?o.canDeactivate(t,e,r.curr):o(t,e,r.curr)),c.first.call(i)});return u.every.call(i,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return p.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=T(t.data,wt(t).resolve),null})},t.prototype.resolveNode=function(t,e){var r=this;return P(t,function(t,n){var i=r.getToken(n,e);return M(i.resolve?i.resolve(e,r.future):i(e,r.future))})},t.prototype.getToken=function(t,e){var r=he(e),n=r?r.injector:this.injector;return n.get(t)},t}(),yr=function(){function t(t,e,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=r}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),Ot(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,i=fe(e);t.children.forEach(function(t){n.deactivateRoutes(t,i[t.value.outlet],r),delete i[t.value.outlet]}),A(i,function(t){return n.deactiveRouteAndItsChildren(t,r)})},t.prototype.activateChildRoutes=function(t,e,r){var n=this,i=fe(e);t.children.forEach(function(t){n.activateRoutes(t,i[t.value.outlet],r)})},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,i=e?e.value:null;if(n===i)if(n.component){var o=de(r,n);this.deactivateChildRoutes(t,e,o.outletMap)}else this.deactivateChildRoutes(t,e,r);else i&&this.deactiveRouteAndItsChildren(e,r)},t.prototype.activateRoutes=function(t,e,r){var n=t.value,i=e?e.value:null;if(n===i)if(Ot(n),n.component){var o=de(r,n);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,r);else if(n.component){Ot(n);var o=de(r,t.value);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.attach(s.componentRef,s.route.value),pe(s.route)}else{var a=new nr;this.placeComponentIntoOutlet(a,n,o),this.activateChildRoutes(t,null,a)}}else Ot(n),this.activateChildRoutes(t,null,r)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var i=[{provide:Qe,useValue:e},{provide:nr,useValue:t}],o=le(e.snapshot),s=null,a=null;o?(a=o.injectorFactory(n.locationInjector),s=o.factoryResolver,i.push({provide:r.ComponentFactoryResolver,useValue:s})):(a=n.locationInjector,s=n.locationFactoryResolver),n.activate(e,s,a,r.ReflectiveInjector.resolve(i),t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=de(e,t.value),n=r.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var r=this,n=fe(t),i=null;try{i=de(e,t.value)}catch(o){return}var s=i.outletMap;A(n,function(n){t.value.component?r.deactiveRouteAndItsChildren(n,s):r.deactiveRouteAndItsChildren(n,e)}),i&&i.isActivated&&i.deactivate()},t}(),mr=function(){function t(t,e){this.router=t,this.route=e,this.commands=[]}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ye(this.skipLocationChange),replaceUrl:ye(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ye(this.preserveQueryParams),preserveFragment:ye(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:hr},{type:Qe}]},t.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],routerLink:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click"]}]},t}(),br=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof ar&&n.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:ye(this.skipLocationChange),replaceUrl:ye(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ye(this.preserveQueryParams),preserveFragment:ye(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:hr},{type:Qe},{type:e.LocationStrategy}]},t.propDecorators={target:[{type:r.HostBinding,args:["attr.target"]},{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},t}(),gr=function(){function t(t,e,r,n){var i=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof ar&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:hr},{type:r.ElementRef},{type:r.Renderer},{type:r.ChangeDetectorRef}]},t.propDecorators={links:[{type:r.ContentChildren,args:[mr,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[br,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]},t}(),_r=function(){function t(t,e,n,i){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=i,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,t.registerOutlet(i?i:Ae,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Ae)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=r.ReflectiveInjector.fromResolvedProviders(i,n);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],t.ctorParameters=function(){return[{type:nr},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}]},t.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]},t}(),wr=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Sr=_.__platform_browser_private__.getDOM,Er=function(){function t(){}return t.prototype.preload=function(){},t}(),Or=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),xr=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Cr=function(){function t(t,e,r,n,i){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=new ke(e,r)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof ar});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config);
+
+},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],n=0,i=e;n<i.length;n++){var s=i[n];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;r.push(this.processRoutes(a.injector,a.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(t,s)):s.children&&r.push(this.processRoutes(t,s.children))}return g.mergeAll.call(o.from(r))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,function(){var n=r.loader.load(t,e.loadChildren);return l.mergeMap.call(n,function(t){var n=e;return n._loadedConfig=t,r.processRoutes(t.injector,t.routes)})})},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:hr},{type:r.NgModuleFactoryLoader},{type:r.Compiler},{type:r.Injector},{type:Er}]},t}(),Tr=[_r,mr,br,gr],Ar=new r.OpaqueToken("ROUTER_CONFIGURATION"),Pr=new r.OpaqueToken("ROUTER_FORROOT_GUARD"),Rr=[e.Location,{provide:De,useClass:Le},{provide:hr,useFactory:we,deps:[r.ApplicationRef,De,nr,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,Re,Ar,[ir,new r.Optional],[wr,new r.Optional]]},nr,{provide:Qe,useFactory:Se,deps:[hr]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Cr,xr,Or,{provide:Ar,useValue:{enableTracing:!1}}],Mr=function(){function t(){}return t.forRoot=function(n,i){return{ngModule:t,providers:[Rr,_e(n),{provide:Pr,useFactory:ge,deps:[[hr,new r.Optional,new r.SkipSelf]]},{provide:Ar,useValue:i?i:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Ar]},{provide:Er,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:xr},{provide:r.NgProbeToken,multi:!0,useFactory:me},Oe()]}},t.forChild=function(e){return{ngModule:t,providers:[_e(e)]}},t.decorators=[{type:r.NgModule,args:[{declarations:Tr,exports:Tr}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[Pr]}]}]},t}(),kr=new r.OpaqueToken("Router Initializer"),Ir=new r.Version("3.4.9"),Nr={ROUTER_PROVIDERS:Rr,ROUTES:Re,flatten:x};t.RouterLink=mr,t.RouterLinkWithHref=br,t.RouterLinkActive=gr,t.RouterOutlet=_r,t.RouteReuseStrategy=wr,t.NavigationCancel=ur,t.NavigationEnd=ar,t.NavigationError=cr,t.NavigationStart=sr,t.Router=hr,t.RoutesRecognized=pr,t.ROUTER_CONFIGURATION=Ar,t.ROUTER_INITIALIZER=kr,t.RouterModule=Mr,t.provideRoutes=_e,t.RouterOutletMap=nr,t.NoPreloading=xr,t.PreloadAllModules=Or,t.PreloadingStrategy=Er,t.RouterPreloader=Cr,t.ActivatedRoute=Qe,t.ActivatedRouteSnapshot=$e,t.RouterState=Ye,t.RouterStateSnapshot=Ze,t.PRIMARY_OUTLET=Ae,t.UrlHandlingStrategy=ir,t.DefaultUrlSerializer=Le,t.UrlSegment=je,t.UrlSegmentGroup=Ne,t.UrlSerializer=De,t.UrlTree=Ie,t.VERSION=Ir,t.__router_private__=Nr})},{"@angular/common":5,"@angular/core":7,"@angular/platform-browser":10,"rxjs/BehaviorSubject":13,"rxjs/Observable":16,"rxjs/Subject":22,"rxjs/observable/from":188,"rxjs/observable/fromPromise":191,"rxjs/observable/of":196,"rxjs/operator/catch":210,"rxjs/operator/concatAll":214,"rxjs/operator/concatMap":215,"rxjs/operator/every":229,"rxjs/operator/filter":233,"rxjs/operator/first":237,"rxjs/operator/last":241,"rxjs/operator/map":243,"rxjs/operator/mergeAll":248,"rxjs/operator/mergeMap":249,"rxjs/operator/reduce":264,"rxjs/util/EmptyError":327}],12:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subject"),o=t("./Subscription"),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return n(e,t),e.prototype._subscribe=function(e){return this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.Subject);r.AsyncSubject=s},{"./Subject":22,"./Subscription":25}],13:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);r.BehaviorSubject=s},{"./Subject":22,"./util/ObjectUnsubscribedError":332}],14:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subscriber"),o=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);r.InnerSubscriber=o},{"./Subscriber":24}],15:[function(t,e,r){"use strict";var n=t("./Observable"),i=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return n.Observable.of(this.value);case"E":return n.Observable["throw"](this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=i},{"./Observable":16}],16:[function(t,e,r){"use strict";var n=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i=r.subscribe(function(e){if(i)try{t(e)}catch(r){n(r),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":318,"./util/root":348,"./util/toSubscriber":350}],17:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],18:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subscriber"),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.Subscriber);r.OuterSubscriber=o},{"./Subscriber":24}],19:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subject"),o=t("./scheduler/queue"),s=t("./Subscription"),a=t("./operator/observeOn"),u=t("./util/ObjectUnsubscribedError"),c=t("./SubjectSubscription"),p=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=n,this._events=[],this._bufferSize=1>e?1:e,this._windowTime=1>r?1:r}return n(e,t),e.prototype.next=function(e){var r=this._getNow();this._events.push(new l(r,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),n&&t.add(t=new a.ObserveOnSubscriber(t,n));for(var i=r.length,o=0;i>o&&!t.closed;o++)t.next(r[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;i>o&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(i.Subject);r.ReplaySubject=p;var l=function(){function t(t,e){this.time=t,this.value=e}return t}()},{"./Subject":22,"./SubjectSubscription":23,"./Subscription":25,"./operator/observeOn":254,"./scheduler/queue":316,"./util/ObjectUnsubscribedError":332}],20:[function(t,e,r){"use strict";var n=t("./Subject");r.Subject=n.Subject,r.AnonymousSubject=n.AnonymousSubject;var i=t("./Observable");r.Observable=i.Observable,t("./add/observable/bindCallback"),t("./add/observable/bindNodeCallback"),t("./add/observable/combineLatest"),t("./add/observable/concat"),t("./add/observable/defer"),t("./add/observable/empty"),t("./add/observable/forkJoin"),t("./add/observable/from"),t("./add/observable/fromEvent"),t("./add/observable/fromEventPattern"),t("./add/observable/fromPromise"),t("./add/observable/generate"),t("./add/observable/if"),t("./add/observable/interval"),t("./add/observable/merge"),t("./add/observable/race"),t("./add/observable/never"),t("./add/observable/of"),t("./add/observable/onErrorResumeNext"),t("./add/observable/pairs"),t("./add/observable/range"),t("./add/observable/using"),t("./add/observable/throw"),t("./add/observable/timer"),t("./add/observable/zip"),t("./add/observable/dom/ajax"),t("./add/observable/dom/webSocket"),t("./add/operator/buffer"),t("./add/operator/bufferCount"),t("./add/operator/bufferTime"),t("./add/operator/bufferToggle"),t("./add/operator/bufferWhen"),t("./add/operator/catch"),t("./add/operator/combineAll"),t("./add/operator/combineLatest"),t("./add/operator/concat"),t("./add/operator/concatAll"),t("./add/operator/concatMap"),t("./add/operator/concatMapTo"),t("./add/operator/count"),t("./add/operator/dematerialize"),t("./add/operator/debounce"),t("./add/operator/debounceTime"),t("./add/operator/defaultIfEmpty"),t("./add/operator/delay"),t("./add/operator/delayWhen"),t("./add/operator/distinct"),t("./add/operator/distinctUntilChanged"),t("./add/operator/distinctUntilKeyChanged"),t("./add/operator/do"),t("./add/operator/exhaust"),t("./add/operator/exhaustMap"),t("./add/operator/expand"),t("./add/operator/elementAt"),t("./add/operator/filter"),t("./add/operator/finally"),t("./add/operator/find"),t("./add/operator/findIndex"),t("./add/operator/first"),t("./add/operator/groupBy"),t("./add/operator/ignoreElements"),t("./add/operator/isEmpty"),t("./add/operator/audit"),t("./add/operator/auditTime"),t("./add/operator/last"),t("./add/operator/let"),t("./add/operator/every"),t("./add/operator/map"),t("./add/operator/mapTo"),t("./add/operator/materialize"),t("./add/operator/max"),t("./add/operator/merge"),t("./add/operator/mergeAll"),t("./add/operator/mergeMap"),t("./add/operator/mergeMapTo"),t("./add/operator/mergeScan"),t("./add/operator/min"),t("./add/operator/multicast"),t("./add/operator/observeOn"),t("./add/operator/onErrorResumeNext"),t("./add/operator/pairwise"),t("./add/operator/partition"),t("./add/operator/pluck"),t("./add/operator/publish"),t("./add/operator/publishBehavior"),t("./add/operator/publishReplay"),t("./add/operator/publishLast"),t("./add/operator/race"),t("./add/operator/reduce"),t("./add/operator/repeat"),t("./add/operator/repeatWhen"),t("./add/operator/retry"),t("./add/operator/retryWhen"),t("./add/operator/sample"),t("./add/operator/sampleTime"),t("./add/operator/scan"),t("./add/operator/sequenceEqual"),t("./add/operator/share"),t("./add/operator/single"),t("./add/operator/skip"),t("./add/operator/skipUntil"),t("./add/operator/skipWhile"),t("./add/operator/startWith"),t("./add/operator/subscribeOn"),t("./add/operator/switch"),t("./add/operator/switchMap"),t("./add/operator/switchMapTo"),t("./add/operator/take"),t("./add/operator/takeLast"),t("./add/operator/takeUntil"),t("./add/operator/takeWhile"),t("./add/operator/throttle"),t("./add/operator/throttleTime"),t("./add/operator/timeInterval"),t("./add/operator/timeout"),t("./add/operator/timeoutWith"),t("./add/operator/timestamp"),t("./add/operator/toArray"),t("./add/operator/toPromise"),t("./add/operator/window"),t("./add/operator/windowCount"),t("./add/operator/windowTime"),t("./add/operator/windowToggle"),t("./add/operator/windowWhen"),t("./add/operator/withLatestFrom"),t("./add/operator/zip"),t("./add/operator/zipAll");var o=t("./Subscription");r.Subscription=o.Subscription;var s=t("./Subscriber");r.Subscriber=s.Subscriber;var a=t("./AsyncSubject");r.AsyncSubject=a.AsyncSubject;var u=t("./ReplaySubject");r.ReplaySubject=u.ReplaySubject;var c=t("./BehaviorSubject");r.BehaviorSubject=c.BehaviorSubject;var p=t("./observable/ConnectableObservable");r.ConnectableObservable=p.ConnectableObservable;var l=t("./Notification");r.Notification=l.Notification;var h=t("./util/EmptyError");r.EmptyError=h.EmptyError;var f=t("./util/ArgumentOutOfRangeError");r.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var d=t("./util/ObjectUnsubscribedError");r.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var v=t("./util/TimeoutError");r.TimeoutError=v.TimeoutError;var y=t("./util/UnsubscriptionError");r.UnsubscriptionError=y.UnsubscriptionError;var m=t("./operator/timeInterval");r.TimeInterval=m.TimeInterval;var b=t("./operator/timestamp");r.Timestamp=b.Timestamp;var g=t("./testing/TestScheduler");r.TestScheduler=g.TestScheduler;var _=t("./scheduler/VirtualTimeScheduler");r.VirtualTimeScheduler=_.VirtualTimeScheduler;var w=t("./observable/dom/AjaxObservable");r.AjaxResponse=w.AjaxResponse,r.AjaxError=w.AjaxError,r.AjaxTimeoutError=w.AjaxTimeoutError;var S=t("./scheduler/asap"),E=t("./scheduler/async"),O=t("./scheduler/queue"),x=t("./scheduler/animationFrame"),C=t("./symbol/rxSubscriber"),T=t("./symbol/iterator"),A=t("./symbol/observable"),P={asap:S.asap,queue:O.queue,animationFrame:x.animationFrame,async:E.async};r.Scheduler=P;var R={rxSubscriber:C.$$rxSubscriber,observable:A.$$observable,iterator:T.$$iterator};r.Symbol=R},{"./AsyncSubject":12,"./BehaviorSubject":13,"./Notification":15,"./Observable":16,"./ReplaySubject":19,"./Subject":22,"./Subscriber":24,"./Subscription":25,"./add/observable/bindCallback":26,"./add/observable/bindNodeCallback":27,"./add/observable/combineLatest":28,"./add/observable/concat":29,"./add/observable/defer":30,"./add/observable/dom/ajax":31,"./add/observable/dom/webSocket":32,"./add/observable/empty":33,"./add/observable/forkJoin":34,"./add/observable/from":35,"./add/observable/fromEvent":36,"./add/observable/fromEventPattern":37,"./add/observable/fromPromise":38,"./add/observable/generate":39,"./add/observable/if":40,"./add/observable/interval":41,"./add/observable/merge":42,"./add/observable/never":43,"./add/observable/of":44,"./add/observable/onErrorResumeNext":45,"./add/observable/pairs":46,"./add/observable/race":47,"./add/observable/range":48,"./add/observable/throw":49,"./add/observable/timer":50,"./add/observable/using":51,"./add/observable/zip":52,"./add/operator/audit":53,"./add/operator/auditTime":54,"./add/operator/buffer":55,"./add/operator/bufferCount":56,"./add/operator/bufferTime":57,"./add/operator/bufferToggle":58,"./add/operator/bufferWhen":59,"./add/operator/catch":60,"./add/operator/combineAll":61,"./add/operator/combineLatest":62,"./add/operator/concat":63,"./add/operator/concatAll":64,"./add/operator/concatMap":65,"./add/operator/concatMapTo":66,"./add/operator/count":67,"./add/operator/debounce":68,"./add/operator/debounceTime":69,"./add/operator/defaultIfEmpty":70,"./add/operator/delay":71,"./add/operator/delayWhen":72,"./add/operator/dematerialize":73,"./add/operator/distinct":74,"./add/operator/distinctUntilChanged":75,"./add/operator/distinctUntilKeyChanged":76,"./add/operator/do":77,"./add/operator/elementAt":78,"./add/operator/every":79,"./add/operator/exhaust":80,"./add/operator/exhaustMap":81,"./add/operator/expand":82,"./add/operator/filter":83,"./add/operator/finally":84,"./add/operator/find":85,"./add/operator/findIndex":86,"./add/operator/first":87,"./add/operator/groupBy":88,"./add/operator/ignoreElements":89,"./add/operator/isEmpty":90,"./add/operator/last":91,"./add/operator/let":92,"./add/operator/map":93,"./add/operator/mapTo":94,"./add/operator/materialize":95,"./add/operator/max":96,"./add/operator/merge":97,"./add/operator/mergeAll":98,"./add/operator/mergeMap":99,"./add/operator/mergeMapTo":100,"./add/operator/mergeScan":101,"./add/operator/min":102,"./add/operator/multicast":103,"./add/operator/observeOn":104,"./add/operator/onErrorResumeNext":105,"./add/operator/pairwise":106,"./add/operator/partition":107,"./add/operator/pluck":108,"./add/operator/publish":109,"./add/operator/publishBehavior":110,"./add/operator/publishLast":111,"./add/operator/publishReplay":112,"./add/operator/race":113,"./add/operator/reduce":114,"./add/operator/repeat":115,"./add/operator/repeatWhen":116,"./add/operator/retry":117,"./add/operator/retryWhen":118,"./add/operator/sample":119,"./add/operator/sampleTime":120,"./add/operator/scan":121,"./add/operator/sequenceEqual":122,"./add/operator/share":123,"./add/operator/single":124,"./add/operator/skip":125,"./add/operator/skipUntil":126,"./add/operator/skipWhile":127,"./add/operator/startWith":128,"./add/operator/subscribeOn":129,"./add/operator/switch":130,"./add/operator/switchMap":131,"./add/operator/switchMapTo":132,"./add/operator/take":133,"./add/operator/takeLast":134,"./add/operator/takeUntil":135,"./add/operator/takeWhile":136,"./add/operator/throttle":137,"./add/operator/throttleTime":138,"./add/operator/timeInterval":139,"./add/operator/timeout":140,"./add/operator/timeoutWith":141,"./add/operator/timestamp":142,"./add/operator/toArray":143,"./add/operator/toPromise":144,"./add/operator/window":145,"./add/operator/windowCount":146,"./add/operator/windowTime":147,"./add/operator/windowToggle":148,"./add/operator/windowWhen":149,"./add/operator/withLatestFrom":150,"./add/operator/zip":151,"./add/operator/zipAll":152,"./observable/ConnectableObservable":157,"./observable/dom/AjaxObservable":182,"./operator/timeInterval":289,"./operator/timestamp":292,"./scheduler/VirtualTimeScheduler":312,"./scheduler/animationFrame":313,"./scheduler/asap":314,"./scheduler/async":315,"./scheduler/queue":316,"./symbol/iterator":317,"./symbol/observable":318,"./symbol/rxSubscriber":319,"./testing/TestScheduler":324,"./util/ArgumentOutOfRangeError":326,"./util/EmptyError":327,"./util/ObjectUnsubscribedError":332,"./util/TimeoutError":334,"./util/UnsubscriptionError":335}],21:[function(t,e,r){"use strict";var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();r.Scheduler=n},{}],22:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),p=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(o.Subscriber);r.SubjectSubscriber=p;var l=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.$$rxSubscriber]=function(){return new p(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;r>i;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;r>i;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;e>n;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);r.Subject=l;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(l);r.AnonymousSubject=h},{"./Observable":16,"./SubjectSubscription":23,"./Subscriber":24,"./Subscription":25,"./symbol/rxSubscriber":319,"./util/ObjectUnsubscribedError":332}],23:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./Subscription"),o=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(i.Subscription);r.SubjectSubscription=o},{"./Subscription":25}],24:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(r,n,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,r,n,i)}}return n(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e}(o.Subscription);r.Subscriber=u;var c=function(t){function e(e,r,n,o){t.call(this),this._parent=e;var s,a=this;i.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,o=r.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=o}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parent;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parent;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(r){throw this.unsubscribe(),r}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(n){return t.syncErrorValue=n,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},e}(u)},{"./Observer":17,"./Subscription":25,"./symbol/rxSubscriber":319,"./util/isFunction":341}],25:[function(t,e,r){"use strict";var n=t("./util/isArray"),i=t("./util/isObject"),o=t("./util/isFunction"),s=t("./util/tryCatch"),a=t("./util/errorObject"),u=t("./util/UnsubscriptionError"),c=function(){function t(t){this.closed=!1,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){this.closed=!0;var r=this,c=r._unsubscribe,p=r._subscriptions;if(this._subscriptions=null,o.isFunction(c)){var l=s.tryCatch(c).call(this);l===a.errorObject&&(e=!0,(t=t||[]).push(a.errorObject.e))}if(n.isArray(p))for(var h=-1,f=p.length;++h<f;){var d=p[h];if(i.isObject(d)){var l=s.tryCatch(d.unsubscribe).call(d);if(l===a.errorObject){e=!0,t=t||[];var v=a.errorObject.e;v instanceof u.UnsubscriptionError?t=t.concat(v.errors):t.push(v)}}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)break;this.closed?r.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(r);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return r},t.prototype.remove=function(e){if(null!=e&&e!==this&&e!==t.EMPTY){var r=this._subscriptions;if(r){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=c},{"./util/UnsubscriptionError":335,"./util/errorObject":338,"./util/isArray":339,"./util/isFunction":341,"./util/isObject":343,"./util/tryCatch":351}],26:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/bindCallback");e.Observable.bindCallback=r.bindCallback},{"../../Observable":16,"../../observable/bindCallback":177}],27:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/bindNodeCallback");e.Observable.bindNodeCallback=r.bindNodeCallback},{"../../Observable":16,"../../observable/bindNodeCallback":178}],28:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/combineLatest");e.Observable.combineLatest=r.combineLatest},{"../../Observable":16,"../../observable/combineLatest":179}],29:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/concat");e.Observable.concat=r.concat},{"../../Observable":16,"../../observable/concat":180}],30:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/defer");e.Observable.defer=r.defer},{"../../Observable":16,"../../observable/defer":181}],31:[function(t){"use strict";var e=t("../../../Observable"),r=t("../../../observable/dom/ajax");e.Observable.ajax=r.ajax},{"../../../Observable":16,"../../../observable/dom/ajax":184}],32:[function(t){"use strict";var e=t("../../../Observable"),r=t("../../../observable/dom/webSocket");e.Observable.webSocket=r.webSocket},{"../../../Observable":16,"../../../observable/dom/webSocket":185}],33:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/empty");e.Observable.empty=r.empty},{"../../Observable":16,"../../observable/empty":186}],34:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/forkJoin");e.Observable.forkJoin=r.forkJoin},{"../../Observable":16,"../../observable/forkJoin":187}],35:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/from");e.Observable.from=r.from},{"../../Observable":16,"../../observable/from":188}],36:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/fromEvent");e.Observable.fromEvent=r.fromEvent},{"../../Observable":16,"../../observable/fromEvent":189}],37:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/fromEventPattern");e.Observable.fromEventPattern=r.fromEventPattern},{"../../Observable":16,"../../observable/fromEventPattern":190}],38:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/fromPromise");e.Observable.fromPromise=r.fromPromise},{"../../Observable":16,"../../observable/fromPromise":191}],39:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/GenerateObservable");e.Observable.generate=r.GenerateObservable.create},{"../../Observable":16,"../../observable/GenerateObservable":165}],40:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/if");e.Observable["if"]=r._if},{"../../Observable":16,"../../observable/if":192}],41:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/interval");e.Observable.interval=r.interval},{"../../Observable":16,"../../observable/interval":193}],42:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/merge");e.Observable.merge=r.merge},{"../../Observable":16,"../../observable/merge":194}],43:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/never");e.Observable.never=r.never;
+
+},{"../../Observable":16,"../../observable/never":195}],44:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/of");e.Observable.of=r.of},{"../../Observable":16,"../../observable/of":196}],45:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/onErrorResumeNext");e.Observable.onErrorResumeNext=r.onErrorResumeNextStatic},{"../../Observable":16,"../../operator/onErrorResumeNext":255}],46:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/pairs");e.Observable.pairs=r.pairs},{"../../Observable":16,"../../observable/pairs":197}],47:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/race");e.Observable.race=r.raceStatic},{"../../Observable":16,"../../operator/race":263}],48:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/range");e.Observable.range=r.range},{"../../Observable":16,"../../observable/range":198}],49:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/throw");e.Observable["throw"]=r._throw},{"../../Observable":16,"../../observable/throw":199}],50:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/timer");e.Observable.timer=r.timer},{"../../Observable":16,"../../observable/timer":200}],51:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/using");e.Observable.using=r.using},{"../../Observable":16,"../../observable/using":201}],52:[function(t){"use strict";var e=t("../../Observable"),r=t("../../observable/zip");e.Observable.zip=r.zip},{"../../Observable":16,"../../observable/zip":202}],53:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/audit");e.Observable.prototype.audit=r.audit},{"../../Observable":16,"../../operator/audit":203}],54:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/auditTime");e.Observable.prototype.auditTime=r.auditTime},{"../../Observable":16,"../../operator/auditTime":204}],55:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/buffer");e.Observable.prototype.buffer=r.buffer},{"../../Observable":16,"../../operator/buffer":205}],56:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/bufferCount");e.Observable.prototype.bufferCount=r.bufferCount},{"../../Observable":16,"../../operator/bufferCount":206}],57:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/bufferTime");e.Observable.prototype.bufferTime=r.bufferTime},{"../../Observable":16,"../../operator/bufferTime":207}],58:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/bufferToggle");e.Observable.prototype.bufferToggle=r.bufferToggle},{"../../Observable":16,"../../operator/bufferToggle":208}],59:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/bufferWhen");e.Observable.prototype.bufferWhen=r.bufferWhen},{"../../Observable":16,"../../operator/bufferWhen":209}],60:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/catch");e.Observable.prototype["catch"]=r._catch,e.Observable.prototype._catch=r._catch},{"../../Observable":16,"../../operator/catch":210}],61:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/combineAll");e.Observable.prototype.combineAll=r.combineAll},{"../../Observable":16,"../../operator/combineAll":211}],62:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/combineLatest");e.Observable.prototype.combineLatest=r.combineLatest},{"../../Observable":16,"../../operator/combineLatest":212}],63:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/concat");e.Observable.prototype.concat=r.concat},{"../../Observable":16,"../../operator/concat":213}],64:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/concatAll");e.Observable.prototype.concatAll=r.concatAll},{"../../Observable":16,"../../operator/concatAll":214}],65:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/concatMap");e.Observable.prototype.concatMap=r.concatMap},{"../../Observable":16,"../../operator/concatMap":215}],66:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/concatMapTo");e.Observable.prototype.concatMapTo=r.concatMapTo},{"../../Observable":16,"../../operator/concatMapTo":216}],67:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/count");e.Observable.prototype.count=r.count},{"../../Observable":16,"../../operator/count":217}],68:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/debounce");e.Observable.prototype.debounce=r.debounce},{"../../Observable":16,"../../operator/debounce":218}],69:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/debounceTime");e.Observable.prototype.debounceTime=r.debounceTime},{"../../Observable":16,"../../operator/debounceTime":219}],70:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/defaultIfEmpty");e.Observable.prototype.defaultIfEmpty=r.defaultIfEmpty},{"../../Observable":16,"../../operator/defaultIfEmpty":220}],71:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/delay");e.Observable.prototype.delay=r.delay},{"../../Observable":16,"../../operator/delay":221}],72:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/delayWhen");e.Observable.prototype.delayWhen=r.delayWhen},{"../../Observable":16,"../../operator/delayWhen":222}],73:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/dematerialize");e.Observable.prototype.dematerialize=r.dematerialize},{"../../Observable":16,"../../operator/dematerialize":223}],74:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/distinct");e.Observable.prototype.distinct=r.distinct},{"../../Observable":16,"../../operator/distinct":224}],75:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/distinctUntilChanged");e.Observable.prototype.distinctUntilChanged=r.distinctUntilChanged},{"../../Observable":16,"../../operator/distinctUntilChanged":225}],76:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/distinctUntilKeyChanged");e.Observable.prototype.distinctUntilKeyChanged=r.distinctUntilKeyChanged},{"../../Observable":16,"../../operator/distinctUntilKeyChanged":226}],77:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/do");e.Observable.prototype["do"]=r._do,e.Observable.prototype._do=r._do},{"../../Observable":16,"../../operator/do":227}],78:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/elementAt");e.Observable.prototype.elementAt=r.elementAt},{"../../Observable":16,"../../operator/elementAt":228}],79:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/every");e.Observable.prototype.every=r.every},{"../../Observable":16,"../../operator/every":229}],80:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/exhaust");e.Observable.prototype.exhaust=r.exhaust},{"../../Observable":16,"../../operator/exhaust":230}],81:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/exhaustMap");e.Observable.prototype.exhaustMap=r.exhaustMap},{"../../Observable":16,"../../operator/exhaustMap":231}],82:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/expand");e.Observable.prototype.expand=r.expand},{"../../Observable":16,"../../operator/expand":232}],83:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/filter");e.Observable.prototype.filter=r.filter},{"../../Observable":16,"../../operator/filter":233}],84:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/finally");e.Observable.prototype["finally"]=r._finally,e.Observable.prototype._finally=r._finally},{"../../Observable":16,"../../operator/finally":234}],85:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/find");e.Observable.prototype.find=r.find},{"../../Observable":16,"../../operator/find":235}],86:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/findIndex");e.Observable.prototype.findIndex=r.findIndex},{"../../Observable":16,"../../operator/findIndex":236}],87:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/first");e.Observable.prototype.first=r.first},{"../../Observable":16,"../../operator/first":237}],88:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/groupBy");e.Observable.prototype.groupBy=r.groupBy},{"../../Observable":16,"../../operator/groupBy":238}],89:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/ignoreElements");e.Observable.prototype.ignoreElements=r.ignoreElements},{"../../Observable":16,"../../operator/ignoreElements":239}],90:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/isEmpty");e.Observable.prototype.isEmpty=r.isEmpty},{"../../Observable":16,"../../operator/isEmpty":240}],91:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/last");e.Observable.prototype.last=r.last},{"../../Observable":16,"../../operator/last":241}],92:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/let");e.Observable.prototype.let=r.letProto,e.Observable.prototype.letBind=r.letProto},{"../../Observable":16,"../../operator/let":242}],93:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/map");e.Observable.prototype.map=r.map},{"../../Observable":16,"../../operator/map":243}],94:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/mapTo");e.Observable.prototype.mapTo=r.mapTo},{"../../Observable":16,"../../operator/mapTo":244}],95:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/materialize");e.Observable.prototype.materialize=r.materialize},{"../../Observable":16,"../../operator/materialize":245}],96:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/max");e.Observable.prototype.max=r.max},{"../../Observable":16,"../../operator/max":246}],97:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/merge");e.Observable.prototype.merge=r.merge},{"../../Observable":16,"../../operator/merge":247}],98:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/mergeAll");e.Observable.prototype.mergeAll=r.mergeAll},{"../../Observable":16,"../../operator/mergeAll":248}],99:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/mergeMap");e.Observable.prototype.mergeMap=r.mergeMap,e.Observable.prototype.flatMap=r.mergeMap},{"../../Observable":16,"../../operator/mergeMap":249}],100:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/mergeMapTo");e.Observable.prototype.flatMapTo=r.mergeMapTo,e.Observable.prototype.mergeMapTo=r.mergeMapTo},{"../../Observable":16,"../../operator/mergeMapTo":250}],101:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/mergeScan");e.Observable.prototype.mergeScan=r.mergeScan},{"../../Observable":16,"../../operator/mergeScan":251}],102:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/min");e.Observable.prototype.min=r.min},{"../../Observable":16,"../../operator/min":252}],103:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/multicast");e.Observable.prototype.multicast=r.multicast},{"../../Observable":16,"../../operator/multicast":253}],104:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/observeOn");e.Observable.prototype.observeOn=r.observeOn},{"../../Observable":16,"../../operator/observeOn":254}],105:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/onErrorResumeNext");e.Observable.prototype.onErrorResumeNext=r.onErrorResumeNext},{"../../Observable":16,"../../operator/onErrorResumeNext":255}],106:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/pairwise");e.Observable.prototype.pairwise=r.pairwise},{"../../Observable":16,"../../operator/pairwise":256}],107:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/partition");e.Observable.prototype.partition=r.partition},{"../../Observable":16,"../../operator/partition":257}],108:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/pluck");e.Observable.prototype.pluck=r.pluck},{"../../Observable":16,"../../operator/pluck":258}],109:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/publish");e.Observable.prototype.publish=r.publish},{"../../Observable":16,"../../operator/publish":259}],110:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/publishBehavior");e.Observable.prototype.publishBehavior=r.publishBehavior},{"../../Observable":16,"../../operator/publishBehavior":260}],111:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/publishLast");e.Observable.prototype.publishLast=r.publishLast},{"../../Observable":16,"../../operator/publishLast":261}],112:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/publishReplay");e.Observable.prototype.publishReplay=r.publishReplay},{"../../Observable":16,"../../operator/publishReplay":262}],113:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/race");e.Observable.prototype.race=r.race},{"../../Observable":16,"../../operator/race":263}],114:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/reduce");e.Observable.prototype.reduce=r.reduce},{"../../Observable":16,"../../operator/reduce":264}],115:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/repeat");e.Observable.prototype.repeat=r.repeat},{"../../Observable":16,"../../operator/repeat":265}],116:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/repeatWhen");e.Observable.prototype.repeatWhen=r.repeatWhen},{"../../Observable":16,"../../operator/repeatWhen":266}],117:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/retry");e.Observable.prototype.retry=r.retry},{"../../Observable":16,"../../operator/retry":267}],118:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/retryWhen");e.Observable.prototype.retryWhen=r.retryWhen},{"../../Observable":16,"../../operator/retryWhen":268}],119:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/sample");e.Observable.prototype.sample=r.sample},{"../../Observable":16,"../../operator/sample":269}],120:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/sampleTime");e.Observable.prototype.sampleTime=r.sampleTime},{"../../Observable":16,"../../operator/sampleTime":270}],121:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/scan");e.Observable.prototype.scan=r.scan},{"../../Observable":16,"../../operator/scan":271}],122:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/sequenceEqual");e.Observable.prototype.sequenceEqual=r.sequenceEqual},{"../../Observable":16,"../../operator/sequenceEqual":272}],123:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/share");e.Observable.prototype.share=r.share},{"../../Observable":16,"../../operator/share":273}],124:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/single");e.Observable.prototype.single=r.single},{"../../Observable":16,"../../operator/single":274}],125:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/skip");e.Observable.prototype.skip=r.skip},{"../../Observable":16,"../../operator/skip":275}],126:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/skipUntil");e.Observable.prototype.skipUntil=r.skipUntil},{"../../Observable":16,"../../operator/skipUntil":276}],127:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/skipWhile");e.Observable.prototype.skipWhile=r.skipWhile},{"../../Observable":16,"../../operator/skipWhile":277}],128:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/startWith");e.Observable.prototype.startWith=r.startWith},{"../../Observable":16,"../../operator/startWith":278}],129:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/subscribeOn");e.Observable.prototype.subscribeOn=r.subscribeOn},{"../../Observable":16,"../../operator/subscribeOn":279}],130:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/switch");e.Observable.prototype["switch"]=r._switch,e.Observable.prototype._switch=r._switch},{"../../Observable":16,"../../operator/switch":280}],131:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/switchMap");e.Observable.prototype.switchMap=r.switchMap},{"../../Observable":16,"../../operator/switchMap":281}],132:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/switchMapTo");e.Observable.prototype.switchMapTo=r.switchMapTo},{"../../Observable":16,"../../operator/switchMapTo":282}],133:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/take");e.Observable.prototype.take=r.take},{"../../Observable":16,"../../operator/take":283}],134:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/takeLast");e.Observable.prototype.takeLast=r.takeLast},{"../../Observable":16,"../../operator/takeLast":284}],135:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/takeUntil");e.Observable.prototype.takeUntil=r.takeUntil},{"../../Observable":16,"../../operator/takeUntil":285}],136:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/takeWhile");e.Observable.prototype.takeWhile=r.takeWhile},{"../../Observable":16,"../../operator/takeWhile":286}],137:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/throttle");e.Observable.prototype.throttle=r.throttle},{"../../Observable":16,"../../operator/throttle":287}],138:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/throttleTime");e.Observable.prototype.throttleTime=r.throttleTime},{"../../Observable":16,"../../operator/throttleTime":288}],139:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/timeInterval");e.Observable.prototype.timeInterval=r.timeInterval},{"../../Observable":16,"../../operator/timeInterval":289}],140:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/timeout");e.Observable.prototype.timeout=r.timeout},{"../../Observable":16,"../../operator/timeout":290}],141:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/timeoutWith");e.Observable.prototype.timeoutWith=r.timeoutWith},{"../../Observable":16,"../../operator/timeoutWith":291}],142:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/timestamp");e.Observable.prototype.timestamp=r.timestamp},{"../../Observable":16,"../../operator/timestamp":292}],143:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/toArray");e.Observable.prototype.toArray=r.toArray},{"../../Observable":16,"../../operator/toArray":293}],144:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/toPromise");e.Observable.prototype.toPromise=r.toPromise},{"../../Observable":16,"../../operator/toPromise":294}],145:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/window");e.Observable.prototype.window=r.window},{"../../Observable":16,"../../operator/window":295}],146:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/windowCount");e.Observable.prototype.windowCount=r.windowCount},{"../../Observable":16,"../../operator/windowCount":296}],147:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/windowTime");e.Observable.prototype.windowTime=r.windowTime},{"../../Observable":16,"../../operator/windowTime":297}],148:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/windowToggle");e.Observable.prototype.windowToggle=r.windowToggle},{"../../Observable":16,"../../operator/windowToggle":298}],149:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/windowWhen");e.Observable.prototype.windowWhen=r.windowWhen},{"../../Observable":16,"../../operator/windowWhen":299}],150:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/withLatestFrom");e.Observable.prototype.withLatestFrom=r.withLatestFrom},{"../../Observable":16,"../../operator/withLatestFrom":300}],151:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/zip");e.Observable.prototype.zip=r.zipProto},{"../../Observable":16,"../../operator/zip":301}],152:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/zipAll");e.Observable.prototype.zipAll=r.zipAll},{"../../Observable":16,"../../operator/zipAll":302}],153:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new o.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,i=t.subscriber;if(!i.closed){if(r>=n)return void i.complete();i.next(e[r]),t.index=r+1,this.schedule(t)}},e.prototype._subscribe=function(t){var r=0,n=this,i=n.arrayLike,o=n.scheduler,s=i.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:i,index:r,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(i[a]);t.complete()},e}(i.Observable);r.ArrayLikeObservable=a},{"../Observable":16,"./EmptyObservable":159,"./ScalarObservable":173}],154:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var i=t.length;return i>1?new e(t,n):1===i?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;return r>=n?void i.complete():(i.next(e[r]),void(i.closed||(t.index=r+1,this.schedule(t))))},e.prototype._subscribe=function(t){var r=0,n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:r,count:i,subscriber:t});for(var s=0;i>s&&!t.closed;s++)t.next(n[s]);t.complete()},e}(i.Observable);r.ArrayObservable=u},{"../Observable":16,"../util/isScheduler":345,"./EmptyObservable":159,"./ScalarObservable":173}],155:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function i(t){var e=t.err,r=t.subject;r.error(e)}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../Observable"),a=t("../util/tryCatch"),u=t("../util/errorObject"),c=t("../AsyncSubject"),p=function(t){function e(e,r,n,i){t.call(this),this.callbackFunc=e,this.selector=r,this.args=n,this.scheduler=i}return o(e,t),e.create=function(t,r,n){return void 0===r&&(r=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,r,i,n)}},e.prototype._subscribe=function(t){var r=this.callbackFunc,n=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(e.dispatch,0,{source:this,subscriber:t});if(!o){o=this.subject=new c.AsyncSubject;var s=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=l.source,n=r.selector,i=r.subject;if(n){var o=a.tryCatch(n).apply(this,t);o===u.errorObject?i.error(u.errorObject.e):(i.next(o),i.complete())}else i.next(1===t.length?t[0]:t),i.complete()};s.source=this;var p=a.tryCatch(r).apply(this,n.concat(s));p===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,r=t.source,o=t.subscriber,s=r.callbackFunc,p=r.args,l=r.scheduler,h=r.subject;if(!h){h=r.subject=new c.AsyncSubject;var f=function v(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var o=v.source,s=o.selector,c=o.subject;if(s){var p=a.tryCatch(s).apply(this,t);e.add(p===u.errorObject?l.schedule(i,0,{err:u.errorObject.e,subject:c}):l.schedule(n,0,{value:p,subject:c}))}else{var h=1===t.length?t[0]:t;e.add(l.schedule(n,0,{value:h,subject:c}))}};f.source=r;var d=a.tryCatch(s).apply(this,p.concat(f));d===u.errorObject&&h.error(u.errorObject.e)}e.add(h.subscribe(o))},e}(s.Observable);r.BoundCallbackObservable=p},{"../AsyncSubject":12,"../Observable":16,"../util/errorObject":338,"../util/tryCatch":351}],156:[function(t,e,r){"use strict";function n(t){var e=this,r=t.source,n=t.subscriber,s=r,a=s.callbackFunc,l=s.args,h=s.scheduler,f=r.subject;if(!f){f=r.subject=new p.AsyncSubject;var d=function y(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=y.source,s=n.selector,a=n.subject,p=t.shift();if(p)a.error(p);else if(s){var l=u.tryCatch(s).apply(this,t);e.add(l===c.errorObject?h.schedule(o,0,{err:c.errorObject.e,subject:a}):h.schedule(i,0,{value:l,subject:a}))}else{var f=1===t.length?t[0]:t;e.add(h.schedule(i,0,{value:f,subject:a}))}};d.source=r;var v=u.tryCatch(a).apply(this,l.concat(d));v===c.errorObject&&f.error(c.errorObject.e)}e.add(f.subscribe(n))}function i(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function o(t){var e=t.err,r=t.subject;r.error(e)}var s=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=t("../Observable"),u=t("../util/tryCatch"),c=t("../util/errorObject"),p=t("../AsyncSubject"),l=function(t){function e(e,r,n,i){t.call(this),this.callbackFunc=e,this.selector=r,this.args=n,this.scheduler=i}return s(e,t),e.create=function(t,r,n){return void 0===r&&(r=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,r,i,n)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,r=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(n,0,{source:this,subscriber:t});if(!o){o=this.subject=new p.AsyncSubject;var s=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=l.source,n=r.selector,i=r.subject,o=t.shift();if(o)i.error(o);else if(n){var s=u.tryCatch(n).apply(this,t);s===c.errorObject?i.error(c.errorObject.e):(i.next(s),i.complete())}else i.next(1===t.length?t[0]:t),i.complete()};s.source=this;var a=u.tryCatch(e).apply(this,r.concat(s));a===c.errorObject&&o.error(c.errorObject.e)}return o.subscribe(t)},e}(a.Observable);r.BoundNodeCallbackObservable=l},{"../AsyncSubject":12,"../Observable":16,"../util/errorObject":338,"../util/tryCatch":351}],157:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new p(this))},e}(o.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),p=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new l(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),l=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(0>=e)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()},e}(s.Subscriber)},{"../Observable":16,"../Subject":22,"../Subscriber":24,"../Subscription":25}],158:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),s=t("../OuterSubscriber"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return n(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(i.Observable);r.DeferObservable=a;var u=function(t){function e(e,r){t.call(this,e),this.factory=r,this.tryDefer()}return n(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},{"../Observable":16,"../OuterSubscriber":18,"../util/subscribeToResult":349}],159:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;return r?r.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);r.EmptyObservable=o},{"../Observable":16}],160:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=function(t){function e(e,r){t.call(this),this.error=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.error,r=t.subscriber;r.error(e)},e.prototype._subscribe=function(t){var r=this.error,n=this.scheduler;return n?n.schedule(e.dispatch,0,{error:r,subscriber:t}):void t.error(r)},e}(i.Observable);r.ErrorObservable=o},{"../Observable":16}],161:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){
+this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,r){t.call(this),this.sources=e,this.resultSelector=r}return n(e,t),e.create=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];if(null===t||0===arguments.length)return new o.EmptyObservable;var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,n)},e.prototype._subscribe=function(t){return new p(t,this.sources,this.resultSelector)},e}(i.Observable);r.ForkJoinObservable=c;var p=function(t){function e(e,r,n){t.call(this,e),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var i=r.length;this.total=i,this.values=new Array(i);for(var o=0;i>o;o++){var s=r[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.values[r]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,r=this,n=r.haveValues,i=r.resultSelector,o=r.values,s=o.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(n===s){var a=i?i.apply(this,o):o;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},{"../Observable":16,"../OuterSubscriber":18,"../util/isArray":339,"../util/subscribeToResult":349,"./EmptyObservable":159}],162:[function(t,e,r){"use strict";function n(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=t("../Observable"),p=t("../util/tryCatch"),l=t("../util/isFunction"),h=t("../util/errorObject"),f=t("../Subscription"),d=Object.prototype.toString,v=function(t){function e(e,r,n,i){t.call(this),this.sourceObj=e,this.eventName=r,this.selector=n,this.options=i}return u(e,t),e.create=function(t,r,n,i){return l.isFunction(n)&&(i=n,n=void 0),new e(t,r,i,n)},e.setupSubscription=function(t,r,u,c,p){var l;if(o(t)||s(t))for(var h=0,d=t.length;d>h;h++)e.setupSubscription(t[h],r,u,c,p);else if(a(t)){var v=t;t.addEventListener(r,u,p),l=function(){return v.removeEventListener(r,u)}}else if(i(t)){var y=t;t.on(r,u),l=function(){return y.off(r,u)}}else{if(!n(t))throw new TypeError("Invalid event target");var m=t;t.addListener(r,u),l=function(){return m.removeListener(r,u)}}c.add(new f.Subscription(l))},e.prototype._subscribe=function(t){var r=this.sourceObj,n=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=p.tryCatch(o).apply(void 0,e);n===h.errorObject?t.error(h.errorObject.e):t.next(n)}:function(e){return t.next(e)};e.setupSubscription(r,n,s,t,i)},e}(c.Observable);r.FromEventObservable=v},{"../Observable":16,"../Subscription":25,"../util/errorObject":338,"../util/isFunction":341,"../util/tryCatch":351}],163:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../Subscription"),s=function(t){function e(e,r,n){t.call(this),this.addHandler=e,this.removeHandler=r,this.selector=n}return n(e,t),e.create=function(t,r,n){return new e(t,r,n)},e.prototype._subscribe=function(t){var e=this,r=this.removeHandler,n=this.selector?function(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];e._callSelector(t,r)}:function(e){t.next(e)};this._callAddHandler(n,t),t.add(new o.Subscription(function(){r(n)}))},e.prototype._callSelector=function(t,e){try{var r=this.selector.apply(this,e);t.next(r)}catch(n){t.error(n)}},e.prototype._callAddHandler=function(t,e){try{this.addHandler(t)}catch(r){e.error(r)}},e}(i.Observable);r.FromEventPatternObservable=s},{"../Observable":16,"../Subscription":25}],164:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isArray"),o=t("../util/isPromise"),s=t("./PromiseObservable"),a=t("./IteratorObservable"),u=t("./ArrayObservable"),c=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),l=t("../Observable"),h=t("../operator/observeOn"),f=t("../symbol/observable"),d=function(t){return t&&"number"==typeof t.length},v=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[f.$$observable])return t instanceof l.Observable&&!r?t:new e(t,r);if(i.isArray(t))return new u.ArrayObservable(t,r);if(o.isPromise(t))return new s.PromiseObservable(t,r);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new a.IteratorObservable(t,r);if(d(t))return new c.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return e[f.$$observable]().subscribe(null==r?t:new h.ObserveOnSubscriber(t,r,0))},e}(l.Observable);r.FromObservable=v},{"../Observable":16,"../operator/observeOn":254,"../symbol/iterator":317,"../symbol/observable":318,"../util/isArray":339,"../util/isPromise":344,"./ArrayLikeObservable":153,"./ArrayObservable":154,"./IteratorObservable":168,"./PromiseObservable":171}],165:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/isScheduler"),s=function(t){return t},a=function(t){function e(e,r,n,i,o){t.call(this),this.initialState=e,this.condition=r,this.iterate=n,this.resultSelector=i,this.scheduler=o}return n(e,t),e.create=function(t,r,n,i,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===i||o.isScheduler(i)?new e(t,r,n,s,i):new e(t,r,n,i,a)},e.prototype._subscribe=function(t){var r=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:r});for(var n=this,i=n.condition,o=n.resultSelector,s=n.iterate;;){if(i){var a=void 0;try{a=i(r)}catch(u){return void t.error(u)}if(!a){t.complete();break}}var c=void 0;try{c=o(r)}catch(u){return void t.error(u)}if(t.next(c),t.closed)break;try{r=s(r)}catch(u){return void t.error(u)}}},e.dispatch=function(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(n){return void e.error(n)}else t.needIterate=!0;if(r){var i=void 0;try{i=r(t.state)}catch(n){return void e.error(n)}if(!i)return void e.complete();if(e.closed)return}var o;try{o=t.resultSelector(t.state)}catch(n){return void e.error(n)}if(!e.closed&&(e.next(o),!e.closed))return this.schedule(t)}},e}(i.Observable);r.GenerateObservable=a},{"../Observable":16,"../util/isScheduler":345}],166:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),s=t("../OuterSubscriber"),a=function(t){function e(e,r,n){t.call(this),this.condition=e,this.thenSource=r,this.elseSource=n}return n(e,t),e.create=function(t,r,n){return new e(t,r,n)},e.prototype._subscribe=function(t){var e=this,r=e.condition,n=e.thenSource,i=e.elseSource;return new u(t,r,n,i)},e}(i.Observable);r.IfObservable=a;var u=function(t){function e(e,r,n,i){t.call(this,e),this.condition=r,this.thenSource=n,this.elseSource=i,this.tryIf()}return n(e,t),e.prototype.tryIf=function(){var t,e=this,r=e.condition,n=e.thenSource,i=e.elseSource;try{t=r();var s=t?n:i;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(a){this._error(a)}},e}(s.OuterSubscriber)},{"../Observable":16,"../OuterSubscriber":18,"../util/subscribeToResult":349}],167:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),s=t("../scheduler/async"),a=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=s.async),t.call(this),this.period=e,this.scheduler=r,(!i.isNumeric(e)||0>e)&&(this.period=0),r&&"function"==typeof r.schedule||(this.scheduler=s.async)}return n(e,t),e.create=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=s.async),new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.subscriber,n=t.period;r.next(e),r.closed||(t.index+=1,this.schedule(t,n))},e.prototype._subscribe=function(t){var r=0,n=this.period,i=this.scheduler;t.add(i.schedule(e.dispatch,n,{index:r,subscriber:t,period:n}))},e}(o.Observable);r.IntervalObservable=a},{"../Observable":16,"../scheduler/async":315,"../util/isNumeric":342}],168:[function(t,e,r){"use strict";function n(t){var e=t[p.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[p.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),p=t("../symbol/iterator"),l=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,i=t.subscriber;if(r)return void i.error(t.error);var o=n.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof n["return"]&&n["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var r=0,n=this,i=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:r,iterator:i,subscriber:t});for(;;){var s=i.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof i["return"]&&i["return"]();break}}},e}(c.Observable);r.IteratorObservable=l;var h=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=i(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":16,"../symbol/iterator":317,"../util/root":348}],169:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/noop"),s=function(t){function e(){t.call(this)}return n(e,t),e.create=function(){return new e},e.prototype._subscribe=function(){o.noop()},e}(i.Observable);r.NeverObservable=s},{"../Observable":16,"../util/noop":346}],170:[function(t,e,r){"use strict";function n(t){var e=t.obj,r=t.keys,n=t.length,i=t.index,o=t.subscriber;if(i===n)return void o.complete();var s=r[i];o.next([s,e[s]]),t.index=i+1,this.schedule(t)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),s=function(t){function e(e,r){t.call(this),this.obj=e,this.scheduler=r,this.keys=Object.keys(e)}return i(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=e.keys,i=e.scheduler,o=r.length;if(i)return i.schedule(n,0,{obj:this.obj,keys:r,length:o,index:0,subscriber:t});for(var s=0;o>s;s++){var a=r[s];t.next([a,this.obj[a]])}t.complete()},e}(o.Observable);r.PairsObservable=s},{"../Observable":16}],171:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function i(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return o(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(o.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);r.PromiseObservable=u},{"../Observable":16,"../util/root":348}],172:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=function(t){function e(e,r,n){t.call(this),this.start=e,this._count=r,this.scheduler=n}return n(e,t),e.create=function(t,r,n){return void 0===t&&(t=0),void 0===r&&(r=0),new e(t,r,n)},e.dispatch=function(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;return r>=n?void i.complete():(i.next(e),void(i.closed||(t.index=r+1,t.start=e+1,this.schedule(t))))},e.prototype._subscribe=function(t){var r=0,n=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:r,count:i,start:n,subscriber:t});for(;;){if(r++>=i){t.complete();break}if(t.next(n++),t.closed)break}},e}(i.Observable);r.RangeObservable=o},{"../Observable":16}],173:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;return e?void n.complete():(n.next(r),void(n.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;return n?n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t}):(t.next(r),void(t.closed||t.complete()))},e}(i.Observable);r.ScalarObservable=o},{"../Observable":16}],174:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../scheduler/asap"),s=t("../util/isNumeric"),a=function(t){function e(e,r,n){void 0===r&&(r=0),void 0===n&&(n=o.asap),t.call(this),this.source=e,this.delayTime=r,this.scheduler=n,(!s.isNumeric(r)||0>r)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=o.asap)}return n(e,t),e.create=function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=o.asap),new e(t,r,n)},e.dispatch=function(t){var e=t.source,r=t.subscriber;return this.add(e.subscribe(r))},e.prototype._subscribe=function(t){var r=this.delayTime,n=this.source,i=this.scheduler;return i.schedule(e.dispatch,r,{source:n,subscriber:t})},e}(i.Observable);r.SubscribeOnObservable=a},{"../Observable":16,"../scheduler/asap":314,"../util/isNumeric":342}],175:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/isNumeric"),o=t("../Observable"),s=t("../scheduler/async"),a=t("../util/isScheduler"),u=t("../util/isDate"),c=function(t){function e(e,r,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):a.isScheduler(r)&&(n=r),a.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,r,n){return void 0===t&&(t=0),new e(t,r,n)},e.dispatch=function(t){var e=t.index,r=t.period,n=t.subscriber,i=this;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,i.schedule(t,r)}},e.prototype._subscribe=function(t){var r=0,n=this,i=n.period,o=n.dueTime,s=n.scheduler;return s.schedule(e.dispatch,o,{index:r,period:i,subscriber:t})},e}(o.Observable);r.TimerObservable=c},{"../Observable":16,"../scheduler/async":315,"../util/isDate":340,"../util/isNumeric":342,"../util/isScheduler":345}],176:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../util/subscribeToResult"),s=t("../OuterSubscriber"),a=function(t){function e(e,r){t.call(this),this.resourceFactory=e,this.observableFactory=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e,r=this,n=r.resourceFactory,i=r.observableFactory;try{return e=n(),new u(t,e,i)}catch(o){t.error(o)}},e}(i.Observable);r.UsingObservable=a;var u=function(t){function e(e,r,n){t.call(this,e),this.resource=r,this.observableFactory=n,e.add(r),this.tryUse()}return n(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(e){this._error(e)}},e}(s.OuterSubscriber)},{"../Observable":16,"../OuterSubscriber":18,"../util/subscribeToResult":349}],177:[function(t,e,r){"use strict";var n=t("./BoundCallbackObservable");r.bindCallback=n.BoundCallbackObservable.create},{"./BoundCallbackObservable":155}],178:[function(t,e,r){"use strict";var n=t("./BoundNodeCallbackObservable");r.bindNodeCallback=n.BoundNodeCallbackObservable.create},{"./BoundNodeCallbackObservable":156}],179:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,n=null;return i.isScheduler(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),new s.ArrayObservable(t,n).lift(new a.CombineLatestOperator(r))}var i=t("../util/isScheduler"),o=t("../util/isArray"),s=t("./ArrayObservable"),a=t("../operator/combineLatest");r.combineLatest=n},{"../operator/combineLatest":212,"../util/isArray":339,"../util/isScheduler":345,"./ArrayObservable":154}],180:[function(t,e,r){"use strict";var n=t("../operator/concat");r.concat=n.concatStatic},{"../operator/concat":213}],181:[function(t,e,r){"use strict";var n=t("./DeferObservable");r.defer=n.DeferObservable.create},{"./DeferObservable":158}],182:[function(t,e,r){"use strict";function n(){if(l.root.XMLHttpRequest){var t=new l.root.XMLHttpRequest;return"withCredentials"in t&&(t.withCredentials=!!this.withCredentials),t}if(l.root.XDomainRequest)return new l.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(l.root.XMLHttpRequest)return new l.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;3>r;r++)try{if(t=e[r],new l.root.ActiveXObject(t))break}catch(n){}return new l.root.ActiveXObject(t)}catch(n){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new m({method:"GET",url:t,headers:e})}function s(t,e,r){return new m({method:"POST",url:t,body:e,headers:r})}function a(t,e){return new m({method:"DELETE",url:t,headers:e})}function u(t,e,r){return new m({method:"PUT",url:t,body:e,headers:r})}function c(t,e){return new m({method:"GET",url:t,responseType:"json",headers:e}).lift(new y.MapOperator(function(t){return t.response},null))}var p=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},l=t("../../util/root"),h=t("../../util/tryCatch"),f=t("../../util/errorObject"),d=t("../../Observable"),v=t("../../Subscriber"),y=t("../../operator/map");r.ajaxGet=o,r.ajaxPost=s,r.ajaxDelete=a,r.ajaxPut=u,r.ajaxGetJSON=c;var m=function(t){function e(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?n.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);this.request=r}return p(e,t),e.prototype._subscribe=function(t){return new b(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t["delete"]=a,t.put=u,t.getJSON=c,t}(),e}(d.Observable);r.AjaxObservable=m;var b=function(t){function e(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||l.root.FormData&&r.body instanceof l.root.FormData||"undefined"==typeof r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,i=e.destination,o=new g(t,r,n);i.next(o)},e.prototype.send=function(){var t=this,e=t.request,r=t.request,n=r.user,i=r.method,o=r.url,s=r.async,a=r.password,u=r.headers,c=r.body,p=e.createXHR,l=h.tryCatch(p).call(e);if(l===f.errorObject)this.error(f.errorObject.e);else{this.xhr=l;var d=void 0;if(d=n?h.tryCatch(l.open).call(l,i,o,s,n,a):h.tryCatch(l.open).call(l,i,o,s),d===f.errorObject)return this.error(f.errorObject.e),null;if(l.timeout=e.timeout,l.responseType=e.responseType,this.setHeaders(l,u),this.setupEvents(l,e),d=c?h.tryCatch(l.send).call(l,c):h.tryCatch(l.send).call(l),d===f.errorObject)return this.error(f.errorObject.e),null}return l},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(l.root.FormData&&t instanceof l.root.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.setupEvents=function(t,e){function r(t){var e=r,n=e.subscriber,i=e.progressSubscriber,o=e.request;i&&i.error(t),n.error(new w(this,o))}function n(t){var e=n,r=e.subscriber,i=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),s>=200&&300>s?(i&&i.complete(),r.next(t),r.complete()):(i&&i.error(t),r.error(new _("ajax error "+s,this,o)))}}var i=e.progressSubscriber;if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=i,t.upload&&"withCredentials"in t&&l.root.XDomainRequest){if(i){var o;o=function(t){var e=o.progressSubscriber;e.next(t)},t.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,r=e.progressSubscriber,n=e.subscriber,i=e.request;r&&r.error(t),n.error(new _("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=n,n.subscriber=this,n.progressSubscriber=i,n.request=e},e.prototype.unsubscribe=function(){var e=this,r=e.done,n=e.xhr;!r&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(v.Subscriber);r.AjaxSubscriber=b;var g=function(){function t(t,e,r){switch(this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.responseType){case"json":this.response="response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}return t}();r.AjaxResponse=g;var _=function(t){function e(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status}return p(e,t),e}(Error);r.AjaxError=_;var w=function(t){function e(e,r){t.call(this,"ajax timeout",e,r)}return p(e,t),e}(_);r.AjaxTimeoutError=w},{"../../Observable":16,"../../Subscriber":24,"../../operator/map":243,"../../util/errorObject":338,"../../util/root":348,"../../util/tryCatch":351}],183:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../../Subject"),o=t("../../Subscriber"),s=t("../../Observable"),a=t("../../Subscription"),u=t("../../util/root"),c=t("../../ReplaySubject"),p=t("../../util/tryCatch"),l=t("../../util/errorObject"),h=t("../../util/assign"),f=function(t){function e(e,r){if(e instanceof s.Observable)t.call(this,r,e);else{if(t.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new i.Subject,"string"==typeof e?this.url=e:h.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return n(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var r=new e(this,this.destination);return r.operator=t,r},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new c.ReplaySubject),this._output=new i.Subject},e.prototype.multiplex=function(t,e,r){var n=this;return new s.Observable(function(i){var o=p.tryCatch(t)();o===l.errorObject?i.error(l.errorObject.e):n.next(o);var s=n.subscribe(function(t){var e=p.tryCatch(r)(t);e===l.errorObject?i.error(l.errorObject.e):e&&i.next(t)},function(t){return i.error(t)},function(){return i.complete()});return function(){var t=p.tryCatch(e)();t===l.errorObject?i.error(l.errorObject.e):n.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,r=this._output,n=null;try{n=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=n}catch(i){return void r.error(i)}var s=new a.Subscription(function(){t.socket=null,n&&1===n.readyState&&n.close()});n.onopen=function(e){var i=t.openObserver;i&&i.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===n.readyState&&n.send(t)},function(e){var i=t.closingObserver;i&&i.next(void 0),e&&e.code?n.close(e.code,e.reason):r.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),n.close(),t._resetState()}),a&&a instanceof c.ReplaySubject&&s.add(a.subscribe(t.destination))},n.onerror=function(e){t._resetState(),r.error(e)},n.onclose=function(e){t._resetState();var n=t.closeObserver;n&&n.next(e),e.wasClean?r.complete():r.error(e)},n.onmessage=function(e){var n=p.tryCatch(t.resultSelector)(e);n===l.errorObject?r.error(l.errorObject.e):r.next(n)}},e.prototype._subscribe=function(t){var e=this,r=this.source;if(r)return r.subscribe(t);this.socket||this._connectSocket();var n=new a.Subscription;return n.add(this._output.subscribe(t)),n.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),n},e.prototype.unsubscribe=function(){var e=this,r=e.source,n=e.socket;n&&1===n.readyState&&(n.close(),this._resetState()),t.prototype.unsubscribe.call(this),r||(this.destination=new c.ReplaySubject)},e}(i.AnonymousSubject);r.WebSocketSubject=f},{"../../Observable":16,"../../ReplaySubject":19,"../../Subject":22,"../../Subscriber":24,"../../Subscription":25,"../../util/assign":337,"../../util/errorObject":338,"../../util/root":348,"../../util/tryCatch":351}],184:[function(t,e,r){"use strict";var n=t("./AjaxObservable");r.ajax=n.AjaxObservable.create},{"./AjaxObservable":182}],185:[function(t,e,r){"use strict";var n=t("./WebSocketSubject");r.webSocket=n.WebSocketSubject.create},{"./WebSocketSubject":183}],186:[function(t,e,r){"use strict";var n=t("./EmptyObservable");r.empty=n.EmptyObservable.create},{"./EmptyObservable":159}],187:[function(t,e,r){"use strict";var n=t("./ForkJoinObservable");r.forkJoin=n.ForkJoinObservable.create},{"./ForkJoinObservable":161}],188:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":164}],189:[function(t,e,r){"use strict";var n=t("./FromEventObservable");r.fromEvent=n.FromEventObservable.create},{"./FromEventObservable":162}],190:[function(t,e,r){"use strict";var n=t("./FromEventPatternObservable");r.fromEventPattern=n.FromEventPatternObservable.create},{"./FromEventPatternObservable":163}],191:[function(t,e,r){"use strict";var n=t("./PromiseObservable");r.fromPromise=n.PromiseObservable.create},{"./PromiseObservable":171}],192:[function(t,e,r){"use strict";var n=t("./IfObservable");r._if=n.IfObservable.create},{"./IfObservable":166}],193:[function(t,e,r){"use strict";var n=t("./IntervalObservable");r.interval=n.IntervalObservable.create},{"./IntervalObservable":167}],194:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":247}],195:[function(t,e,r){"use strict";var n=t("./NeverObservable");r.never=n.NeverObservable.create},{"./NeverObservable":169}],196:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":154}],197:[function(t,e,r){"use strict";var n=t("./PairsObservable");r.pairs=n.PairsObservable.create},{"./PairsObservable":170}],198:[function(t,e,r){"use strict";var n=t("./RangeObservable");r.range=n.RangeObservable.create},{"./RangeObservable":172}],199:[function(t,e,r){"use strict";var n=t("./ErrorObservable");r._throw=n.ErrorObservable.create},{"./ErrorObservable":160}],200:[function(t,e,r){"use strict";var n=t("./TimerObservable");r.timer=n.TimerObservable.create},{"./TimerObservable":175}],201:[function(t,e,r){"use strict";var n=t("./UsingObservable");r.using=n.UsingObservable.create},{"./UsingObservable":176}],202:[function(t,e,r){
+"use strict";var n=t("../operator/zip");r.zip=n.zipStatic},{"../operator/zip":301}],203:[function(t,e,r){"use strict";function n(t){return this.lift(new c(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/tryCatch"),s=t("../util/errorObject"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.audit=n;var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.durationSelector))},t}(),p=function(t){function e(e,r){t.call(this,e),this.durationSelector=r,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=o.tryCatch(this.durationSelector)(t);e===s.errorObject?this.destination.error(s.errorObject.e):this.add(this.throttled=u.subscribeToResult(this,e))}},e.prototype.clearThrottle=function(){var t=this,e=t.value,r=t.hasValue,n=t.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),r&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},{"../OuterSubscriber":18,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],204:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=s.async),this.lift(new u(t,e))}function i(t){t.clearThrottle()}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../scheduler/async"),a=t("../Subscriber");r.auditTime=n;var u=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.duration=r,this.scheduler=n,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0,this.throttled||this.add(this.throttled=this.scheduler.schedule(i,this.duration,this))},e.prototype.clearThrottle=function(){var t=this,e=t.value,r=t.hasValue,n=t.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),r&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e}(a.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],205:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.buffer=n;var a=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,r){t.call(this,e),this.buffer=[],this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],206:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=null),this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.bufferCount=n;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.bufferSize=r,this.startBufferEvery=n,this.buffers=[],this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.count++,r=this,n=r.destination,i=r.bufferSize,o=r.startBufferEvery,s=r.buffers,a=null==o?i:o;e%a===0&&s.push([]);for(var u=s.length;u--;){var c=s[u];c.push(t),c.length===i&&(s.splice(u,1),n.next(c))}},e.prototype._complete=function(){for(var e=this.destination,r=this.buffers;r.length>0;){var n=r.shift();n.length>0&&e.next(n)}t.prototype._complete.call(this)},e}(o.Subscriber)},{"../Subscriber":24}],207:[function(t,e,r){"use strict";function n(t){var e=arguments.length,r=u.async;p.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),this.lift(new l(t,n,i,r))}function i(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function o(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,o=n.openContext(),a=this;n.closed||(n.add(o.closeAction=i.schedule(s,r,{subscriber:n,context:o})),a.schedule(t,e))}function s(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../scheduler/async"),c=t("../Subscriber"),p=t("../util/isScheduler");r.bufferTime=n;var l=function(){function t(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),h=function(){function t(){this.buffer=[]}return t}(),f=function(t){function e(e,r,n,a,u){t.call(this,e),this.bufferTimeSpan=r,this.bufferCreationInterval=n,this.maxBufferSize=a,this.scheduler=u,this.contexts=[];var c=this.openContext();if(this.timespanOnly=null==n||0>n,this.timespanOnly){var p={subscriber:this,context:c,bufferTimeSpan:r};this.add(c.closeAction=u.schedule(i,r,p))}else{var l={subscriber:this,context:c},h={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:this,scheduler:u};this.add(c.closeAction=u.schedule(s,r,l)),this.add(u.schedule(o,n,h))}}return a(e,t),e.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;n>i;i++){var o=r[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this,r=e.contexts,n=e.destination;r.length>0;){var i=r.shift();n.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(i,r,n))}},e.prototype.openContext=function(){var t=new h;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts,r=e?e.indexOf(t):-1;r>=0&&e.splice(e.indexOf(t),1)},e}(c.Subscriber)},{"../Subscriber":24,"../scheduler/async":315,"../util/isScheduler":345}],208:[function(t,e,r){"use strict";function n(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscription"),s=t("../util/subscribeToResult"),a=t("../OuterSubscriber");r.bufferToggle=n;var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;r>n;n++)e[n].buffer.push(t)},e.prototype._error=function(e){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,r=e.call(this,t);r&&this.trySubscribe(r)}catch(n){this._error(n)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,r=[],n=new o.Subscription,i={buffer:r,subscription:n};e.push(i);var a=s.subscribeToResult(this,t,i);!a||a.closed?this.closeBuffer(i):(a.context=i,this.add(a),n.add(a))},e}(a.OuterSubscriber)},{"../OuterSubscriber":18,"../Subscription":25,"../util/subscribeToResult":349}],209:[function(t,e,r){"use strict";function n(t){return this.lift(new p(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscription"),s=t("../util/tryCatch"),a=t("../util/errorObject"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.bufferWhen=n;var p=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,r){t.call(this,e),this.closingSelector=r,this.subscribing=!1,this.openBuffer()}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var r=s.tryCatch(this.closingSelector)();r===a.errorObject?this.error(a.errorObject.e):(t=new o.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,r)),this.subscribing=!1)},e}(u.OuterSubscriber)},{"../OuterSubscriber":18,"../Subscription":25,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],210:[function(t,e,r){"use strict";function n(t){var e=new a(t),r=this.lift(e);return e.caught=r}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r._catch=n;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return i(e,t),e.prototype.error=function(t){if(!this.isStopped){var e=void 0;try{e=this.selector(t,this.caught)}catch(t){return void this.destination.error(t)}this.unsubscribe(),this.destination.remove(this),s.subscribeToResult(this,e)}},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],211:[function(t,e,r){"use strict";function n(t){return this.lift(new i.CombineLatestOperator(t))}var i=t("./combineLatest");r.combineAll=n},{"./combineLatest":212}],212:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),t.unshift(this),this.lift.call(new o.ArrayObservable(t),new p(r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../observable/ArrayObservable"),s=t("../util/isArray"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult"),c={};r.combineLatest=n;var p=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project))},t}();r.CombineLatestOperator=p;var l=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return i(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;e>r;r++){var n=t[r];this.add(u.subscribeToResult(this,n,n,r))}}},e.prototype.notifyComplete=function(){0===(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===c?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.project?this._tryProject(n):this.destination.next(n.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(a.OuterSubscriber);r.CombineLatestSubscriber=l},{"../OuterSubscriber":18,"../observable/ArrayObservable":154,"../util/isArray":339,"../util/subscribeToResult":349}],213:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,n=t;return o.isScheduler(n[t.length-1])&&(r=n.pop()),null===r&&1===t.length?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(1))}var o=t("../util/isScheduler"),s=t("../observable/ArrayObservable"),a=t("./mergeAll");r.concat=n,r.concatStatic=i},{"../observable/ArrayObservable":154,"../util/isScheduler":345,"./mergeAll":248}],214:[function(t,e,r){"use strict";function n(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");r.concatAll=n},{"./mergeAll":248}],215:[function(t,e,r){"use strict";function n(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");r.concatMap=n},{"./mergeMap":249}],216:[function(t,e,r){"use strict";function n(t,e){return this.lift(new i.MergeMapToOperator(t,e,1))}var i=t("./mergeMapTo");r.concatMapTo=n},{"./mergeMapTo":250}],217:[function(t,e,r){"use strict";function n(t){return this.lift(new s(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.count=n;var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.count=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(r){return void this.destination.error(r)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},{"../Subscriber":24}],218:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.debounce=n;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,r){t.call(this,e),this.durationSelector=r,this.hasValue=!1,this.durationSubscription=null}return i(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),r=s.subscribeToResult(this,e),r.closed||this.add(this.durationSubscription=r)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,r=this.durationSubscription;r&&(this.durationSubscription=null,r.unsubscribe(),this.remove(r)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],219:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../Subscriber"),a=t("../scheduler/async");r.debounceTime=n;var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],220:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=null),this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.defaultIfEmpty=n;var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,r){t.call(this,e),this.defaultValue=r,this.isEmpty=!0}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},{"../Subscriber":24}],221:[function(t,e,r){"use strict";function n(t,e){void 0===e&&(e=o.async);var r=s.isDate(t),n=r?+t-e.now():Math.abs(t);return this.lift(new c(n,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../scheduler/async"),s=t("../util/isDate"),a=t("../Subscriber"),u=t("../Notification");r.delay=n;var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.delay,this.scheduler))},t}(),p=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return i(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var e=this.scheduler,r=new l(e.now()+this.delay,t);this.queue.push(r),this.active===!1&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(a.Subscriber),l=function(){function t(t,e){this.time=t,this.notification=e}return t}()},{"../Notification":15,"../Subscriber":24,"../scheduler/async":315,"../util/isDate":340}],222:[function(t,e,r){"use strict";function n(t,e){return e?new l(this,e).lift(new c(t)):this.lift(new c(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Observable"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.delayWhen=n;var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.delayDurationSelector))},t}(),p=function(t){function e(e,r){t.call(this,e),this.delayDurationSelector=r,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),r=null;return-1!==e&&(r=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),r},e.prototype.tryDelay=function(t,e){var r=u.subscribeToResult(this,t,e);this.add(r),this.delayNotifierSubscriptions.push(r),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),l=function(t){function e(e,r){t.call(this),this.source=e,this.subscriptionDelay=r}return i(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new h(t,this.source))},e}(s.Observable),h=function(t){function e(e,r){t.call(this),this.parent=e,this.source=r,this.sourceSubscribed=!1}return i(e,t),e.prototype._next=function(){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(o.Subscriber)},{"../Observable":16,"../OuterSubscriber":18,"../Subscriber":24,"../util/subscribeToResult":349}],223:[function(t,e,r){"use strict";function n(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.dematerialize=n;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(o.Subscriber)},{"../Subscriber":24}],224:[function(t,e,r){"use strict";function n(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult"),a=t("../util/Set");r.distinct=n;var u=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.keySelector=r,this.values=new a.Set,n&&this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(n){return void r.error(n)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},e}(o.OuterSubscriber);r.DistinctSubscriber=c},{"../OuterSubscriber":18,"../util/Set":333,"../util/subscribeToResult":349}],225:[function(t,e,r){"use strict";function n(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/tryCatch"),a=t("../util/errorObject");r.distinctUntilChanged=n;var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,r=t;if(e&&(r=s.tryCatch(this.keySelector)(t),r===a.errorObject))return this.destination.error(a.errorObject.e);var n=!1;if(this.hasKey){if(n=s.tryCatch(this.compare)(this.key,r),n===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;Boolean(n)===!1&&(this.key=r,this.destination.next(t))},e}(o.Subscriber)},{"../Subscriber":24,"../util/errorObject":338,"../util/tryCatch":351}],226:[function(t,e,r){"use strict";function n(t,e){return i.distinctUntilChanged.call(this,function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}var i=t("./distinctUntilChanged");r.distinctUntilKeyChanged=n},{"./distinctUntilChanged":225}],227:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new s(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r._do=n;var s=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,r,n,i){t.call(this,e);var s=new o.Subscriber(r,n,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),this.destination.error(e.syncErrorThrown?e.syncErrorValue:t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},{"../Subscriber":24}],228:[function(t,e,r){"use strict";function n(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError");r.elementAt=n;var a=function(){function t(t,e){if(this.index=t,this.defaultValue=e,0>t)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.index,this.defaultValue))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.index=r,this.defaultValue=n}return i(e,t),e.prototype._next=function(t){0===this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&("undefined"!=typeof this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(o.Subscriber)},{"../Subscriber":24,"../util/ArgumentOutOfRangeError":326}],229:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.every=n;var s=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,r,n,i){t.call(this,e),this.predicate=r,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(r){return void this.destination.error(r)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":24}],230:[function(t,e,r){"use strict";function n(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.exhaust=n;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return i(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],231:[function(t,e,r){"use strict";function n(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.exhaustMap=n;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return i(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,r=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(s.subscribeToResult(this,n,t,e))}catch(i){
+r.error(i)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;o?this.trySelectResult(t,e,r,n):s.next(e)},e.prototype.trySelectResult=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,r,n);s.next(a)}catch(u){s.error(u)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],232:[function(t,e,r){"use strict";function n(t,e,r){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=void 0),e=1>(e||0)?Number.POSITIVE_INFINITY:e,this.lift(new c(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/tryCatch"),s=t("../util/errorObject"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.expand=n;var c=function(){function t(t,e,r){this.project=t,this.concurrent=e,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project,this.concurrent,this.scheduler))},t}();r.ExpandOperator=c;var p=function(t){function e(e,r,n,i){t.call(this,e),this.project=r,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}return i(e,t),e.dispatch=function(t){var e=t.subscriber,r=t.result,n=t.value,i=t.index;e.subscribeToProjection(r,n,i)},e.prototype._next=function(t){var r=this.destination;if(r.closed)return void this._complete();var n=this.index++;if(this.active<this.concurrent){r.next(t);var i=o.tryCatch(this.project)(t,n);if(i===s.errorObject)r.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:i,value:t,index:n};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(i,t,n)}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,r){this.active++,this.add(u.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);r.ExpandSubscriber=p},{"../OuterSubscriber":18,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],233:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.filter=n;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":24}],234:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Subscription");r._finally=n;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,r){t.call(this,e),this.add(new s.Subscription(r))}return i(e,t),e}(o.Subscriber)},{"../Subscriber":24,"../Subscription":25}],235:[function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return this.lift(new s(t,this,!1,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.find=n;var s=function(){function t(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();r.FindValueOperator=s;var a=function(t){function e(e,r,n,i,o){t.call(this,e),this.predicate=r,this.source=n,this.yieldIndex=i,this.thisArg=o,this.index=0}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,r=e.predicate,n=e.thisArg,i=this.index++;try{var o=r.call(n||this,t,i,this.source);o&&this.notifyComplete(this.yieldIndex?i:t)}catch(s){this.destination.error(s)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(o.Subscriber);r.FindValueSubscriber=a},{"../Subscriber":24}],236:[function(t,e,r){"use strict";function n(t,e){return this.lift(new i.FindValueOperator(t,this,!0,e))}var i=t("./find");r.findIndex=n},{"./find":235}],237:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/EmptyError");r.first=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,i,o){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}r&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this._emitFinal(r)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":24,"../util/EmptyError":327}],238:[function(t,e,r){"use strict";function n(t,e,r,n){return this.lift(new l(t,e,r,n))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Subscription"),a=t("../Observable"),u=t("../Subject"),c=t("../util/Map"),p=t("../util/FastMap");r.groupBy=n;var l=function(){function t(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),h=function(t){function e(e,r,n,i,o){t.call(this,e),this.keySelector=r,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return i(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(r){return void this.error(r)}this._group(t,e)},e.prototype._group=function(t,e){var r=this.groups;r||(r=this.groups="string"==typeof e?new p.FastMap:new c.Map);var n,i=r.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(o){this.error(o)}else n=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.Subject,r.set(e,i);var s=new d(e,i,this);if(this.destination.next(s),this.durationSelector){var a=void 0;try{a=this.durationSelector(new d(e,i))}catch(o){return void this.error(o)}this.add(a.subscribe(new f(e,i,this)))}}i.closed||i.next(n)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups["delete"](t)},e.prototype.unsubscribe=function(){this.closed||this.attemptedToUnsubscribe||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(o.Subscriber),f=function(t){function e(e,r,n){t.call(this),this.key=e,this.group=r,this.parent=n}return i(e,t),e.prototype._next=function(){this._complete()},e.prototype._error=function(t){var e=this.group;e.closed||e.error(t),this.parent.removeGroup(this.key)},e.prototype._complete=function(){var t=this.group;t.closed||t.complete(),this.parent.removeGroup(this.key)},e}(o.Subscriber),d=function(t){function e(e,r,n){t.call(this),this.key=e,this.groupSubject=r,this.refCountSubscription=n}return i(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,r=this,n=r.refCountSubscription,i=r.groupSubject;return n&&!n.closed&&e.add(new v(n)),e.add(i.subscribe(t)),e},e}(a.Observable);r.GroupedObservable=d;var v=function(t){function e(e){t.call(this),this.parent=e,e.count++}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},{"../Observable":16,"../Subject":22,"../Subscriber":24,"../Subscription":25,"../util/FastMap":328,"../util/Map":330}],239:[function(t,e,r){"use strict";function n(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/noop");r.ignoreElements=n;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype._next=function(){s.noop()},e}(o.Subscriber)},{"../Subscriber":24,"../util/noop":346}],240:[function(t,e,r){"use strict";function n(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.isEmpty=n;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":24}],241:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/EmptyError");r.last=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,i,o){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}if(r){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this.lastValue=r,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":24,"../util/EmptyError":327}],242:[function(t,e,r){"use strict";function n(t){return t(this)}r.letProto=n},{}],243:[function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.map=n;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();r.MapOperator=s;var a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":24}],244:[function(t,e,r){"use strict";function n(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.mapTo=n;var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,r){t.call(this,e),this.value=r}return i(e,t),e.prototype._next=function(){this.destination.next(this.value)},e}(o.Subscriber)},{"../Subscriber":24}],245:[function(t,e,r){"use strict";function n(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Notification");r.materialize=n;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},e}(o.Subscriber)},{"../Notification":15,"../Subscriber":24}],246:[function(t,e,r){"use strict";function n(t){var e="function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e};return this.lift(new i.ReduceOperator(e))}var i=t("./reduce");r.max=n},{"./reduce":264}],247:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return a.isScheduler(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length?t[0]:new o.ArrayObservable(t,n).lift(new s.MergeAllOperator(r))}var o=t("../observable/ArrayObservable"),s=t("./mergeAll"),a=t("../util/isScheduler");r.merge=n,r.mergeStatic=i},{"../observable/ArrayObservable":154,"../util/isScheduler":345,"./mergeAll":248}],248:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.mergeAll=n;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();r.MergeAllOperator=a;var u=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);r.MergeAllSubscriber=u},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],249:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new a(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");r.mergeMap=n;var a=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=a;var u=function(t){function e(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(o){return void this.destination.error(o)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);r.MergeMapSubscriber=u},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],250:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new a(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.mergeMapTo=n;var a=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.ish,this.resultSelector,this.concurrent))},t}();r.MergeMapToOperator=a;var u=function(t){function e(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,r=this.index++,n=this.ish,i=this.destination;this.active++,this._innerSub(n,i,e,t,r)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,r,n,i){this.add(s.subscribeToResult(this,t,n,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;o?this.trySelectResult(t,e,r,n):s.next(e)},e.prototype.trySelectResult=function(t,e,r,n){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,r,n)}catch(u){return void a.error(u)}a.next(i)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);r.MergeMapToSubscriber=u},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],251:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),this.lift(new c(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/tryCatch"),s=t("../util/errorObject"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber");r.mergeScan=n;var c=function(){function t(t,e,r){this.project=t,this.seed=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project,this.seed,this.concurrent))},t}();r.MergeScanOperator=c;var p=function(t){function e(e,r,n,i){t.call(this,e),this.project=r,this.acc=n,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,r=o.tryCatch(this.project)(this.acc,t),n=this.destination;r===s.errorObject?n.error(s.errorObject.e):(this.active++,this._innerSub(r,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,r){this.add(a.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e){var r=this.destination;this.acc=e,this.hasValue=!0,r.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);r.MergeScanSubscriber=p},{"../OuterSubscriber":18,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],252:[function(t,e,r){"use strict";function n(t){var e="function"==typeof t?function(e,r){return t(e,r)<0?e:r}:function(t,e){return e>t?t:e};return this.lift(new i.ReduceOperator(e))}var i=t("./reduce");r.min=n},{"./reduce":264}],253:[function(t,e,r){"use strict";function n(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(r,e));var n=Object.create(this,i.connectableObservableDescriptor);return n.source=this,n.subjectFactory=r,n}var i=t("../observable/ConnectableObservable");r.multicast=n;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();r.MulticastOperator=o},{"../observable/ConnectableObservable":157}],254:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Notification");r.observeOn=n;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();r.ObserveOnOperator=a;var u=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r)},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);r.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();r.ObserveOnMessage=c},{"../Notification":15,"../Subscriber":24}],255:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&a.isArray(t[0])&&(t=t[0]),this.lift(new p(t))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return 1===t.length&&a.isArray(t[0])&&(t=t[0]),r=t.shift(),new s.FromObservable(r,null).lift(new p(t))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../observable/FromObservable"),a=t("../util/isArray"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.onErrorResumeNext=n,r.onErrorResumeNextStatic=i;var p=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.nextSources))},t}(),l=function(t){function e(e,r){t.call(this,e),this.destination=e,this.nextSources=r}return o(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(c.subscribeToResult(this,t)):this.destination.complete()},e}(u.OuterSubscriber)},{"../OuterSubscriber":18,"../observable/FromObservable":164,"../util/isArray":339,"../util/subscribeToResult":349}],256:[function(t,e,r){"use strict";function n(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.pairwise=n;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return i(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(o.Subscriber)},{"../Subscriber":24}],257:[function(t,e,r){"use strict";function n(t,e){return[o.filter.call(this,t,e),o.filter.call(this,i.not(t,e))]}var i=t("../util/not"),o=t("./filter");r.partition=n},{"../util/not":347,"./filter":233}],258:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return o.map.call(this,i(t,r))}function i(t,e){var r=function(r){for(var n=r,i=0;e>i;i++){var o=n[t[i]];if("undefined"==typeof o)return void 0;n=o}return n};return r}var o=t("./map");r.pluck=n},{"./map":243}],259:[function(t,e,r){"use strict";function n(t){return t?o.multicast.call(this,function(){return new i.Subject},t):o.multicast.call(this,new i.Subject)}var i=t("../Subject"),o=t("./multicast");r.publish=n},{"../Subject":22,"./multicast":253}],260:[function(t,e,r){"use strict";function n(t){return o.multicast.call(this,new i.BehaviorSubject(t))}var i=t("../BehaviorSubject"),o=t("./multicast");r.publishBehavior=n},{"../BehaviorSubject":13,"./multicast":253}],261:[function(t,e,r){"use strict";function n(){return o.multicast.call(this,new i.AsyncSubject)}var i=t("../AsyncSubject"),o=t("./multicast");r.publishLast=n},{"../AsyncSubject":12,"./multicast":253}],262:[function(t,e,r){"use strict";function n(t,e,r){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY),o.multicast.call(this,new i.ReplaySubject(t,e,r))}var i=t("../ReplaySubject"),o=t("./multicast");r.publishReplay=n},{"../ReplaySubject":19,"./multicast":253}],263:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&s.isArray(t[0])&&(t=t[0]),this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!s.isArray(t[0]))return t[0];t=t[0]}return new a.ArrayObservable(t).lift(new p)}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/isArray"),a=t("../observable/ArrayObservable"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.race=n,r.raceStatic=i;var p=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}();r.RaceOperator=p;var l=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return o(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;e>r&&!this.hasFirst;r++){var n=t[r],i=c.subscribeToResult(this,n,n,r);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(u.OuterSubscriber);r.RaceSubscriber=l},{"../OuterSubscriber":18,"../observable/ArrayObservable":154,"../util/isArray":339,"../util/subscribeToResult":349}],264:[function(t,e,r){"use strict";function n(t,e){var r=!1;return arguments.length>=2&&(r=!0),this.lift(new s(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.reduce=n;var s=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();r.ReduceOperator=s;var a=function(t){function e(e,r,n,i){t.call(this,e),this.accumulator=r,this.hasSeed=i,this.hasValue=!1,this.acc=n}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t)}catch(r){
+return void this.destination.error(r)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);r.ReduceSubscriber=a},{"../Subscriber":24}],265:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=-1),0===t?new s.EmptyObservable:this.lift(0>t?new a(-1,this):new a(t-1,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../observable/EmptyObservable");r.repeat=n;var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.count=r,this.source=n}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,r=e.source,n=e.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,r.subscribe(this)}},e}(o.Subscriber)},{"../Subscriber":24,"../observable/EmptyObservable":159}],266:[function(t,e,r){"use strict";function n(t){return this.lift(new p(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),s=t("../util/tryCatch"),a=t("../util/errorObject"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.repeatWhen=n;var p=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.notifications,r=this.retries,n=this.retriesSubscription;if(r)this.notifications=null,this.retriesSubscription=null;else{if(e=new o.Subject,r=s.tryCatch(this.notifier)(e),r===a.errorObject)return t.prototype.complete.call(this);n=c.subscribeToResult(this,r)}this.unsubscribe(),this.closed=!1,this.notifications=e,this.retries=r,this.retriesSubscription=n,e.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,r=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(){var t=this,e=t.notifications,r=t.retries,n=t.retriesSubscription;this.notifications=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.notifications=e,this.retries=r,this.retriesSubscription=n,this.source.subscribe(this)},e}(u.OuterSubscriber)},{"../OuterSubscriber":18,"../Subject":22,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],267:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=-1),this.lift(new s(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.retry=n;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.count=r,this.source=n}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this,n=r.source,i=r.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,n.subscribe(this)}},e}(o.Subscriber)},{"../Subscriber":24}],268:[function(t,e,r){"use strict";function n(t){return this.lift(new p(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),s=t("../util/tryCatch"),a=t("../util/errorObject"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.retryWhen=n;var p=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},t}(),l=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,i=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new o.Subject,n=s.tryCatch(this.notifier)(r),n===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);i=c.subscribeToResult(this,n)}this.unsubscribe(),this.closed=!1,this.errors=r,this.retries=n,this.retriesSubscription=i,r.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,r=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(){var t=this,e=t.errors,r=t.retries,n=t.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.errors=e,this.retries=r,this.retriesSubscription=n,this.source.subscribe(this)},e}(u.OuterSubscriber)},{"../OuterSubscriber":18,"../Subject":22,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],269:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.sample=n;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new u(t),n=e.subscribe(r);return n.add(s.subscribeToResult(r,this.notifier)),n},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],270:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../Subscriber"),a=t("../scheduler/async");r.sampleTime=n;var u=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.period,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.period=r,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(i,r,{subscriber:this,period:r}))}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],271:[function(t,e,r){"use strict";function n(t,e){var r=!1;return arguments.length>=2&&(r=!0),this.lift(new s(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.scan=n;var s=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}(),a=function(t){function e(e,r,n,i){t.call(this,e),this.accumulator=r,this._seed=n,this.hasSeed=i,this.index=0}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){return this.hasSeed?this._tryNext(t):(this.seed=t,void this.destination.next(t))},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":24}],272:[function(t,e,r){"use strict";function n(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/tryCatch"),a=t("../util/errorObject");r.sequenceEqual=n;var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();r.SequenceEqualOperator=u;var c=function(t){function e(e,r,n){t.call(this,e),this.compareTo=r,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(r.subscribe(new p(e,this)))}return i(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this,e=t._a,r=t._b,n=t.comparor;e.length>0&&r.length>0;){var i=e.shift(),o=r.shift(),u=!1;n?(u=s.tryCatch(n)(i,o),u===a.errorObject&&this.destination.error(a.errorObject.e)):u=i===o,u||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(o.Subscriber);r.SequenceEqualSubscriber=c;var p=function(t){function e(e,r){t.call(this,e),this.parent=r}return i(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(o.Subscriber)},{"../Subscriber":24,"../util/errorObject":338,"../util/tryCatch":351}],273:[function(t,e,r){"use strict";function n(){return new s.Subject}function i(){return o.multicast.call(this,n).refCount()}var o=t("./multicast"),s=t("../Subject");r.share=i},{"../Subject":22,"./multicast":253}],274:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/EmptyError");r.single=n;var a=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.seenValue=!1,this.index=0}return i(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.predicate;this.index++,e?this.tryNext(t):this.applySingleValue(t)},e.prototype.tryNext=function(t){try{var e=this.predicate(t,this.index,this.source);e&&this.applySingleValue(t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":24,"../util/EmptyError":327}],275:[function(t,e,r){"use strict";function n(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.skip=n;var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":24}],276:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.skipUntil=n;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,r){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],277:[function(t,e,r){"use strict";function n(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.skipWhile=n;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,r){t.call(this,e),this.predicate=r,this.skipping=!0,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(r){this.destination.error(r)}},e}(o.Subscriber)},{"../Subscriber":24}],278:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];u.isScheduler(r)?t.pop():r=null;var n=t.length;return 1===n?a.concatStatic(new o.ScalarObservable(t[0],r),this):n>1?a.concatStatic(new i.ArrayObservable(t,r),this):a.concatStatic(new s.EmptyObservable(r),this)}var i=t("../observable/ArrayObservable"),o=t("../observable/ScalarObservable"),s=t("../observable/EmptyObservable"),a=t("./concat"),u=t("../util/isScheduler");r.startWith=n},{"../observable/ArrayObservable":154,"../observable/EmptyObservable":159,"../observable/ScalarObservable":173,"../util/isScheduler":345,"./concat":213}],279:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new o(t,e))}var i=t("../observable/SubscribeOnObservable");r.subscribeOn=n;var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new i.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},{"../observable/SubscribeOnObservable":174}],280:[function(t,e,r){"use strict";function n(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r._switch=n;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return i(e,t),e.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=s.subscribeToResult(this,t))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},e.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],281:[function(t,e,r){"use strict";function n(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.switchMap=n;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.index=0}return i(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n){this.resultSelector?this._tryNotifyNext(t,e,r,n):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(o){return void this.destination.error(o)}this.destination.next(i)},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],282:[function(t,e,r){"use strict";function n(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.switchMapTo=n;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.inner=r,this.resultSelector=n,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;o?this.tryResultSelector(t,e,r,n):s.next(e)},e.prototype.tryResultSelector=function(t,e,r,n){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,r,n)}catch(u){return void a.error(u)}a.next(i)},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],283:[function(t,e,r){"use strict";function n(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");r.take=n;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;e>=r&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},{"../Subscriber":24,"../observable/EmptyObservable":159,"../util/ArgumentOutOfRangeError":326}],284:[function(t,e,r){"use strict";function n(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError"),a=t("../observable/EmptyObservable");r.takeLast=n;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,r){t.call(this,e),this.total=r,this.ring=new Array,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;if(e.length<r)e.push(t);else{var i=n%r;e[i]=t}},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;r>i;i++){var o=e++%r;t.next(n[o])}t.complete()},e}(o.Subscriber)},{"../Subscriber":24,"../observable/EmptyObservable":159,"../util/ArgumentOutOfRangeError":326}],285:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.takeUntil=n;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,r){t.call(this,e),this.notifier=r,this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype.notifyNext=function(){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],286:[function(t,e,r){"use strict";function n(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.takeWhile=n;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,r){t.call(this,e),this.predicate=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e,r=this.destination;try{e=this.predicate(t,this.index++)}catch(n){return void r.error(n)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var r=this.destination;Boolean(e)?r.next(t):r.complete()},e}(o.Subscriber)},{"../Subscriber":24}],287:[function(t,e,r){"use strict";function n(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.throttle=n;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,r){t.call(this,e),this.destination=e,this.durationSelector=r}return i(e,t),e.prototype._next=function(t){this.throttled||this.tryDurationSelector(t)},e.prototype.tryDurationSelector=function(t){var e=null;try{e=this.durationSelector(t)}catch(r){return void this.destination.error(r)}this.emitAndThrottle(t,e)},e.prototype.emitAndThrottle=function(t,e){this.add(this.throttled=s.subscribeToResult(this,e)),this.destination.next(t)},e.prototype._unsubscribe=function(){var t=this.throttled;t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype.notifyNext=function(){this._unsubscribe()},e.prototype.notifyComplete=function(){this._unsubscribe()},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],288:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){var e=t.subscriber;e.clearThrottle()}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../Subscriber"),a=t("../scheduler/async");r.throttleTime=n;var u=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.duration=r,this.scheduler=n}return o(e,t),e.prototype._next=function(t){this.throttled||(this.add(this.throttled=this.scheduler.schedule(i,this.duration,{subscriber:this})),this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],289:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=s.async),this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.timeInterval=n;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();r.TimeInterval=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,r){t.call(this,e),this.scheduler=r,this.lastTime=0,this.lastTime=r.now()}return i(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),r=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,r))},e}(o.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],290:[function(t,e,r){"use strict";function n(t,e){void 0===e&&(e=o.async);var r=s.isDate(t),n=r?+t-e.now():Math.abs(t);return this.lift(new c(n,r,e,new u.TimeoutError))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../scheduler/async"),s=t("../util/isDate"),a=t("../Subscriber"),u=t("../util/TimeoutError");r.timeout=n;var c=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=r,this.errorInstance=n}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),p=function(t){function e(e,r,n,i,o){t.call(this,e),this.absoluteTimeout=r,this.waitFor=n,this.scheduler=i,this.errorInstance=o,this.index=0,this._previousIndex=0,this._hasCompleted=!1,this.scheduleTimeout()}return i(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,r=t.index;e.hasCompleted||e.previousIndex!==r||e.notifyTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index;this.scheduler.schedule(e.dispatchTimeout,this.waitFor,{subscriber:this,index:t}),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.notifyTimeout=function(){this.error(this.errorInstance)},e}(a.Subscriber)},{"../Subscriber":24,"../scheduler/async":315,"../util/TimeoutError":334,"../util/isDate":340}],291:[function(t,e,r){"use strict";function n(t,e,r){void 0===r&&(r=o.async);var n=s.isDate(t),i=n?+t-r.now():Math.abs(t);return this.lift(new c(i,n,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../scheduler/async"),s=t("../util/isDate"),a=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.timeoutWith=n;var c=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),p=function(t){function e(e,r,n,i,o){t.call(this),this.destination=e,this.absoluteTimeout=r,this.waitFor=n,this.withObservable=i,this.scheduler=o,this.timeoutSubscription=void 0,this.index=0,this._previousIndex=0,this._hasCompleted=!1,e.add(this),this.scheduleTimeout()}return i(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,r=t.index;e.hasCompleted||e.previousIndex!==r||e.handleTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index,r={subscriber:this,index:t};this.scheduler.schedule(e.dispatchTimeout,this.waitFor,r),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.handleTimeout=function(){if(!this.closed){var t=this.withObservable;this.unsubscribe(),this.destination.add(this.timeoutSubscription=u.subscribeToResult(this,t))}},e}(a.OuterSubscriber)},{"../OuterSubscriber":18,"../scheduler/async":315,"../util/isDate":340,"../util/subscribeToResult":349}],292:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=s.async),this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../scheduler/async");r.timestamp=n;var a=function(){function t(t,e){this.value=t,this.timestamp=e}return t}();r.Timestamp=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,r){t.call(this,e),this.scheduler=r}return i(e,t),e.prototype._next=function(t){var e=this.scheduler.now();this.destination.next(new a(t,e))},e}(o.Subscriber)},{"../Subscriber":24,"../scheduler/async":315}],293:[function(t,e,r){"use strict";function n(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber");r.toArray=n;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.array=[]}return i(e,t),e.prototype._next=function(t){this.array.push(t)},e.prototype._complete=function(){this.destination.next(this.array),
+this.destination.complete()},e}(o.Subscriber)},{"../Subscriber":24}],294:[function(t,e,r){"use strict";function n(t){var e=this;if(t||(i.root.Rx&&i.root.Rx.config&&i.root.Rx.config.Promise?t=i.root.Rx.config.Promise:i.root.Promise&&(t=i.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})}var i=t("../util/root");r.toPromise=n},{"../util/root":348}],295:[function(t,e,r){"use strict";function n(t){return this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),s=t("../OuterSubscriber"),a=t("../util/subscribeToResult");r.window=n;var u=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var r=new c(t),n=e.subscribe(r);return n.closed||r.add(a.subscribeToResult(r,this.windowBoundaries)),n},t}(),c=function(t){function e(e){t.call(this,e),this.window=new o.Subject,e.next(this.window)}return i(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,r=this.window=new o.Subject;e.next(r)},e}(s.OuterSubscriber)},{"../OuterSubscriber":18,"../Subject":22,"../util/subscribeToResult":349}],296:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subscriber"),s=t("../Subject");r.windowCount=n;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.destination=e,this.windowSize=r,this.startWindowEvery=n,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return i(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,o=i.length,a=0;o>a&&!this.closed;a++)i[a].next(t);var u=this.count-n+1;if(u>=0&&u%e===0&&!this.closed&&i.shift().complete(),++this.count%e===0&&!this.closed){var c=new s.Subject;i.push(c),r.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(o.Subscriber)},{"../Subject":22,"../Subscriber":24}],297:[function(t,e,r){"use strict";function n(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=c.async),this.lift(new l(t,e,r))}function i(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&n.complete(),t.window=e.openWindow(),this.schedule(t,r)}function o(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,o=r.openWindow(),a=this,u={action:a,subscription:null},c={subscriber:r,window:o,context:u};u.subscription=n.schedule(s,e,c),a.add(u.subscription),a.schedule(t,i)}function s(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../Subject"),c=t("../scheduler/async"),p=t("../Subscriber");r.windowTime=n;var l=function(){function t(t,e,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.scheduler))},t}(),h=function(t){function e(e,r,n,a){if(t.call(this,e),this.destination=e,this.windowTimeSpan=r,this.windowCreationInterval=n,this.scheduler=a,this.windows=[],null!==n&&n>=0){var u=this.openWindow(),c={subscriber:this,window:u,context:null},p={windowTimeSpan:r,windowCreationInterval:n,subscriber:this,scheduler:a};this.add(a.schedule(s,r,c)),this.add(a.schedule(o,n,p))}else{var l=this.openWindow(),h={subscriber:this,window:l,windowTimeSpan:r};this.add(a.schedule(i,r,h))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;r>n;n++){var i=e[n];i.closed||i.next(t)}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new u.Subject;this.windows.push(t);var e=this.destination;return e.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.Subscriber)},{"../Subject":22,"../Subscriber":24,"../scheduler/async":315}],298:[function(t,e,r){"use strict";function n(t,e){return this.lift(new l(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),s=t("../Subscription"),a=t("../util/tryCatch"),u=t("../util/errorObject"),c=t("../OuterSubscriber"),p=t("../util/subscribeToResult");r.windowToggle=n;var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.openings,this.closingSelector))},t}(),h=function(t){function e(e,r,n){t.call(this,e),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=p.subscribeToResult(this,r,r))}return i(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;r>n;n++)e[n].window.next(t)},e.prototype._error=function(e){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,i=-1;++i<n;){var o=r[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var r=e.length,n=-1;++n<r;){var i=e[n];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,r=-1;++r<e;){var n=t[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e){if(t===this.openings){var r=this.closingSelector,n=a.tryCatch(r)(e);if(n===u.errorObject)return this.error(u.errorObject.e);var i=new o.Subject,c=new s.Subscription,l={window:i,subscription:c};this.contexts.push(l);var h=p.subscribeToResult(this,n,l);h.closed?this.closeWindow(this.contexts.length-1):(h.context=l,c.add(h)),this.destination.next(i)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,r=e[t],n=r.window,i=r.subscription;e.splice(t,1),n.complete(),i.unsubscribe()}},e}(c.OuterSubscriber)},{"../OuterSubscriber":18,"../Subject":22,"../Subscription":25,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],299:[function(t,e,r){"use strict";function n(t){return this.lift(new p(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),s=t("../util/tryCatch"),a=t("../util/errorObject"),u=t("../OuterSubscriber"),c=t("../util/subscribeToResult");r.windowWhen=n;var p=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(t){function e(e,r){t.call(this,e),this.destination=e,this.closingSelector=r,this.openWindow()}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var r=this.window=new o.Subject;this.destination.next(r);var n=s.tryCatch(this.closingSelector)();if(n===a.errorObject){var i=a.errorObject.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=c.subscribeToResult(this,n))},e}(u.OuterSubscriber)},{"../OuterSubscriber":18,"../Subject":22,"../util/errorObject":338,"../util/subscribeToResult":349,"../util/tryCatch":351}],300:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r;"function"==typeof t[t.length-1]&&(r=t.pop());var n=t;return this.lift(new a(n,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.withLatestFrom=n;var a=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.observables=r,this.project=n,this.toRespond=[];var i=r.length;this.values=new Array(i);for(var o=0;i>o;o++)this.toRespond.push(o);for(var o=0;i>o;o++){var a=r[o];this.add(s.subscribeToResult(this,a,a,o))}}return i(e,t),e.prototype.notifyNext=function(t,e,r){this.values[r]=e;var n=this.toRespond;if(n.length>0){var i=n.indexOf(r);-1!==i&&n.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":349}],301:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),new s.ArrayObservable(t).lift(new h(r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../observable/ArrayObservable"),a=t("../util/isArray"),u=t("../Subscriber"),c=t("../OuterSubscriber"),p=t("../util/subscribeToResult"),l=t("../symbol/iterator");r.zipProto=n,r.zipStatic=i;var h=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();r.ZipOperator=h;var f=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof r?r:null,this.values=n}return o(e,t),e.prototype._next=function(t){var e=this.iterators;e.push(a.isArray(t)?new v(t):"function"==typeof t[l.$$iterator]?new d(t[l.$$iterator]()):new y(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;this.active=e;for(var r=0;e>r;r++){var n=t[r];n.stillUnsubscribed?this.add(n.subscribe(n,r)):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;e>n;n++){var i=t[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],n=0;e>n;n++){var i=t[n],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void r.complete();s.push(a.value)}this.project?this._tryProject(s):r.next(s),o&&r.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(u.Subscriber);r.ZipSubscriber=f;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),v=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){var t=this.index++,e=this.array;return t<this.length?{value:e[t],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),y=function(t){function e(e,r,n){t.call(this,e),this.parent=r,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[l.$$iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return p.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},{"../OuterSubscriber":18,"../Subscriber":24,"../observable/ArrayObservable":154,"../symbol/iterator":317,"../util/isArray":339,"../util/subscribeToResult":349}],302:[function(t,e,r){"use strict";function n(t){return this.lift(new i.ZipOperator(t))}var i=t("./zip");r.zipAll=n},{"./zip":301}],303:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscription"),o=function(t){function e(){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i.Subscription);r.Action=o},{"../Subscription":25}],304:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncAction"),o=t("../util/AnimationFrame"),s=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r}return n(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.recycleAsyncId.call(this,e,r,n):void(0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(r),e.scheduled=void 0))},e}(i.AsyncAction);r.AnimationFrameAction=s},{"../util/AnimationFrame":325,"./AsyncAction":308}],305:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncScheduler"),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);r.AnimationFrameScheduler=o},{"./AsyncScheduler":309}],306:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/Immediate"),o=t("./AsyncAction"),s=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r}return n(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.recycleAsyncId.call(this,e,r,n):void(0===e.actions.length&&(i.Immediate.clearImmediate(r),e.scheduled=void 0))},e}(o.AsyncAction);r.AsapAction=s},{"../util/Immediate":329,"./AsyncAction":308}],307:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncScheduler"),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);r.AsapScheduler=o},{"./AsyncScheduler":309}],308:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/root"),o=t("./Action"),s=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);return r?r:void(this.pending===!1&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null)))},e.prototype._execute=function(t){var e=!1,r=void 0;try{this.work(t)}catch(n){e=!0,r=!!n&&n||new Error(n)}return e?(this.unsubscribe(),r):void 0},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(o.Action);r.AsyncAction=s},{"../util/root":348,"./Action":303}],309:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Scheduler"),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var r;this.active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},e}(i.Scheduler);r.AsyncScheduler=o},{"../Scheduler":21}],310:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncAction"),o=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r}return n(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(i.AsyncAction);r.QueueAction=o},{"./AsyncAction":308}],311:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncScheduler"),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(i.AsyncScheduler);r.QueueScheduler=o},{"./AsyncScheduler":309}],312:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("./AsyncAction"),o=t("./AsyncScheduler"),s=function(t){function e(e,r){var n=this;void 0===e&&(e=a),void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this,e,function(){return n.frame}),this.maxFrames=r,this.frame=0,this.index=-1}return n(e,t),e.prototype.flush=function(){for(var t,e,r=this,n=r.actions,i=r.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=i&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(o.AsyncScheduler);r.VirtualTimeScheduler=s;var a=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1),t.call(this,e,r),this.scheduler=e,this.work=r,this.index=n,this.index=e.index=n}return n(e,t),e.prototype.schedule=function(r,n){return void 0===n&&(n=0),this.id?this.add(new e(this.scheduler,this.work)).schedule(r,n):t.prototype.schedule.call(this,r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){return void(void 0===r&&(r=0))},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction);r.VirtualAction=a},{"./AsyncAction":308,"./AsyncScheduler":309}],313:[function(t,e,r){"use strict";var n=t("./AnimationFrameAction"),i=t("./AnimationFrameScheduler");r.animationFrame=new i.AnimationFrameScheduler(n.AnimationFrameAction)},{"./AnimationFrameAction":304,"./AnimationFrameScheduler":305}],314:[function(t,e,r){"use strict";var n=t("./AsapAction"),i=t("./AsapScheduler");r.asap=new i.AsapScheduler(n.AsapAction)},{"./AsapAction":306,"./AsapScheduler":307}],315:[function(t,e,r){"use strict";var n=t("./AsyncAction"),i=t("./AsyncScheduler");r.async=new i.AsyncScheduler(n.AsyncAction)},{"./AsyncAction":308,"./AsyncScheduler":309}],316:[function(t,e,r){"use strict";var n=t("./QueueAction"),i=t("./QueueScheduler");r.queue=new i.QueueScheduler(n.QueueAction)},{"./QueueAction":310,"./QueueScheduler":311}],317:[function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");r.symbolIteratorPonyfill=n,r.$$iterator=n(i.root)},{"../util/root":348}],318:[function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var i=t("../util/root");r.getSymbolObservable=n,r.$$observable=n(i.root)},{"../util/root":348}],319:[function(t,e,r){"use strict";var n=t("../util/root"),i=n.root.Symbol;r.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":348}],320:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../Subscription"),s=t("./SubscriptionLoggable"),a=t("../util/applyMixins"),u=function(t){function e(e,r){t.call(this,function(t){var e=this,r=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(r)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=r}return n(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,r=0;e>r;r++){var n=this.messages[r];t.add(this.scheduler.schedule(function(t){var e=t.message,r=t.subscriber;e.notification.observe(r)},n.frame,{message:n,subscriber:t}))}},e}(i.Observable);r.ColdObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},{"../Observable":16,"../Subscription":25,"../util/applyMixins":336,"./SubscriptionLoggable":323}],321:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subject"),o=t("../Subscription"),s=t("./SubscriptionLoggable"),a=t("../util/applyMixins"),u=function(t){function e(e,r){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=r}return n(e,t),e.prototype._subscribe=function(e){var r=this,n=r.logSubscribedFrame();return e.add(new o.Subscription(function(){r.logUnsubscribedFrame(n)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,r=0;e>r;r++)!function(){var e=t.messages[r];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(i.Subject);r.HotObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},{"../Subject":22,"../Subscription":25,"../util/applyMixins":336,"./SubscriptionLoggable":323}],322:[function(t,e,r){"use strict";var n=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();r.SubscriptionLog=n},{}],323:[function(t,e,r){"use strict";var n=t("./SubscriptionLog"),i=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new n.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,r=e[t];e[t]=new n.SubscriptionLog(r.subscribedFrame,this.scheduler.now())},t}();r.SubscriptionLoggable=i},{"./SubscriptionLog":322}],324:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Observable"),o=t("../Notification"),s=t("./ColdObservable"),a=t("./HotObservable"),u=t("./SubscriptionLog"),c=t("../scheduler/VirtualTimeScheduler"),p=750,l=function(t){function e(e){t.call(this,c.VirtualAction,p),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return n(e,t),e.prototype.createTime=function(t){var r=t.indexOf("|");if(-1===r)throw new Error('marble diagram for time should have a completion marker "|"');return r*e.frameTimeFactor},e.prototype.createColdObservable=function(t,r,n){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,r,n),o=new s.ColdObservable(i,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,r,n){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,r,n),o=new a.HotObservable(i,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var r=this,n=[];return t.subscribe(function(t){n.push({frame:r.frame-e,notification:o.Notification.createNext(t)})},function(t){n.push({frame:r.frame-e,notification:o.Notification.createError(t)})},function(){n.push({frame:r.frame-e,notification:o.Notification.createComplete()})}),n},e.prototype.expectObservable=function(t,r){var n=this;void 0===r&&(r=null);var s,a=[],u={actual:a,ready:!1},c=e.parseMarblesAsSubscriptions(r).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof i.Observable&&(e=n.materializeInnerObservable(e,n.frame)),a.push({frame:n.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:n.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:n.frame,notification:o.Notification.createComplete()})})},0),c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},c),this.flushTests.push(u),{toBe:function(t,r,n){u.ready=!0,u.expected=e.parseMarbles(t,r,n,!0)}}},e.prototype.expectSubscriptions=function(t){var r={actual:t,ready:!1};return this.flushTests.push(r),{toBe:function(t){var n="string"==typeof t?[t]:t;r.ready=!0,r.expected=n.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var r=this.flushTests.filter(function(t){return t.ready});r.length>0;){var n=r.shift();this.assertDeepEqual(n.actual,n.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,r=-1,n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;e>o;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":r=s;break;case")":r=-1;break;case"^":if(n!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");n=r>-1?r:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=r>-1?r:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return 0>i?new u.SubscriptionLog(n):new u.SubscriptionLog(n,i)},e.parseMarbles=function(t,e,r,n){if(void 0===n&&(n=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=t.length,a=[],u=t.indexOf("^"),c=-1===u?0:u*-this.frameTimeFactor,p="object"!=typeof e?function(t){return t}:function(t){return n&&e[t]instanceof s.ColdObservable?e[t].messages:e[t];
+
+},l=-1,h=0;i>h;h++){var f=h*this.frameTimeFactor+c,d=void 0,v=t[h];switch(v){case"-":case" ":break;case"(":l=f;break;case")":l=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(r||"error");break;default:d=o.Notification.createNext(p(v))}d&&a.push({frame:l>-1?l:f,notification:d})}return a},e}(c.VirtualTimeScheduler);r.TestScheduler=l},{"../Notification":15,"../Observable":16,"../scheduler/VirtualTimeScheduler":312,"./ColdObservable":320,"./HotObservable":321,"./SubscriptionLog":322}],325:[function(t,e,r){"use strict";var n=t("./root"),i=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();r.RequestAnimationFrameDefinition=i,r.AnimationFrame=new i(n.root)},{"./root":348}],326:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ArgumentOutOfRangeError=i},{}],327:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.EmptyError=i},{}],328:[function(t,e,r){"use strict";var n=function(){function t(){this.values={}}return t.prototype["delete"]=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var r=this.values;for(var n in r)r.hasOwnProperty(n)&&null!==r[n]&&t.call(e,r[n],n)},t.prototype.clear=function(){this.values={}},t}();r.FastMap=n},{}],329:[function(t,e,r){"use strict";var n=t("./root"),i=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.setImmediate=this.canUseProcessNextTick()?this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.createReadyStateChangeSetImmediate():this.createSetTimeoutSetImmediate();var e=function r(t){delete r.instance.tasksByHandle[t]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=function i(){var t=i,e=t.handler,r=t.args;"function"==typeof e?e.apply(void 0,r):new Function(""+e)()};return n.handler=t,n.args=e,n},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function e(){var t=e.instance,r=t.addFromSetImmediateArguments(arguments);return t.root.process.nextTick(t.partiallyApplied(t.runIfPresent,r)),r};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",r=function i(r){var n=i.instance;r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&n.runIfPresent(+r.data.slice(e.length))};r.instance=this,t.addEventListener("message",r,!1);var n=function o(){var t=o,e=t.messagePrefix,r=t.instance,n=r.addFromSetImmediateArguments(arguments);return r.root.postMessage(e+n,"*"),n};return n.instance=this,n.messagePrefix=e,n},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var r=e.data;t.runIfPresent(r)};var r=function n(){var t=n,e=t.channel,r=t.instance,i=r.addFromSetImmediateArguments(arguments);return e.port2.postMessage(i),i};return r.channel=e,r.instance=this,r},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function e(){var t=e.instance,r=t.root,n=r.document,i=n.documentElement,o=t.addFromSetImmediateArguments(arguments),s=n.createElement("script");return s.onreadystatechange=function(){t.runIfPresent(o),s.onreadystatechange=null,i.removeChild(s),s=null},i.appendChild(s),o};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function e(){var t=e.instance,r=t.addFromSetImmediateArguments(arguments);return t.root.setTimeout(t.partiallyApplied(t.runIfPresent,r),0),r};return t.instance=this,t},t}();r.ImmediateDefinition=i,r.Immediate=new i(n.root)},{"./root":348}],330:[function(t,e,r){"use strict";var n=t("./root"),i=t("./MapPolyfill");r.Map=n.root.Map||function(){return i.MapPolyfill}()},{"./MapPolyfill":331,"./root":348}],331:[function(t,e,r){"use strict";var n=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var r=this._keys.indexOf(t);return-1===r?(this._keys.push(t),this._values.push(e),this.size++):this._values[r]=e,this},t.prototype["delete"]=function(t){var e=this._keys.indexOf(t);return-1===e?!1:(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var r=0;r<this.size;r++)t.call(e,this._values[r],this._keys[r])},t}();r.MapPolyfill=n},{}],332:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ObjectUnsubscribedError=i},{}],333:[function(t,e,r){"use strict";function n(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var i=t("./root");r.minimalSetImpl=n,r.Set=i.root.Set||n()},{"./root":348}],334:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.TimeoutError=i},{}],335:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(e,t),e}(Error);r.UnsubscriptionError=i},{}],336:[function(t,e,r){"use strict";function n(t,e){for(var r=0,n=e.length;n>r;r++)for(var i=e[r],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;a>s;s++){var u=o[s];t.prototype[u]=i.prototype[u]}}r.applyMixins=n},{}],337:[function(t,e,r){"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];for(var n=e.length,i=0;n>i;i++){var o=e[i];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function i(t){return t.Object.assign||n}var o=t("./root");r.assignImpl=n,r.getAssign=i,r.assign=i(o.root)},{"./root":348}],338:[function(t,e,r){"use strict";r.errorObject={e:{}}},{}],339:[function(t,e,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],340:[function(t,e,r){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}r.isDate=n},{}],341:[function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.isFunction=n},{}],342:[function(t,e,r){"use strict";function n(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}var i=t("../util/isArray");r.isNumeric=n},{"../util/isArray":339}],343:[function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t}r.isObject=n},{}],344:[function(t,e,r){"use strict";function n(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.isPromise=n},{}],345:[function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}r.isScheduler=n},{}],346:[function(t,e,r){"use strict";function n(){}r.noop=n},{}],347:[function(t,e,r){"use strict";function n(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}r.not=n},{}],348:[function(t,e,r){(function(t){"use strict";if(r.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!r.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],349:[function(t,e,r){"use strict";function n(t,e,r,n){var h=new p.InnerSubscriber(t,r,n);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArray(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var v=e[c.$$iterator]();;){var y=v.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[l.$$observable]){var m=e[l.$$observable]();if("function"==typeof m.subscribe)return m.subscribe(new p.InnerSubscriber(t,r,n));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var b=a.isObject(e)?"an invalid object":"'"+e+"'",g="You provided "+b+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var i=t("./root"),o=t("./isArray"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),p=t("../InnerSubscriber"),l=t("../symbol/observable");r.subscribeToResult=n},{"../InnerSubscriber":14,"../Observable":16,"../symbol/iterator":317,"../symbol/observable":318,"./isArray":339,"./isObject":343,"./isPromise":344,"./root":348}],350:[function(t,e,r){"use strict";function n(t,e,r){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||r?new i.Subscriber(t,e,r):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");r.toSubscriber=n},{"../Observer":17,"../Subscriber":24,"../symbol/rxSubscriber":319}],351:[function(t,e,r){"use strict";function n(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,n}var o,s=t("./errorObject");r.tryCatch=i},{"./errorObject":338}]},{},[4])(4)});
\ No newline at end of file
diff --git a/apps/maarch_entreprise/js/angular/main.js b/apps/maarch_entreprise/js/angular/main.js
index 0d7f24dcea38f954b83d1abcb53911a2a6fd4244..db451db5ab559d4e2408e70544486c608db65223 100644
--- a/apps/maarch_entreprise/js/angular/main.js
+++ b/apps/maarch_entreprise/js/angular/main.js
@@ -1,4 +1,6 @@
 "use strict";
 var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic');
+var core_1 = require('@angular/core');
 var app_module_1 = require('./app/app.module');
+core_1.enableProdMode();
 platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(app_module_1.AppModule);
diff --git a/apps/maarch_entreprise/js/angular/main.ts b/apps/maarch_entreprise/js/angular/main.ts
index 311c44b76de099dd1d52c73c77fb1d14cc27e774..d5ecfb593215efaaa3362adb214d53816358c11c 100644
--- a/apps/maarch_entreprise/js/angular/main.ts
+++ b/apps/maarch_entreprise/js/angular/main.ts
@@ -1,5 +1,7 @@
 import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
+import { enableProdMode } from '@angular/core';
 
 import { AppModule } from './app/app.module';
 
+enableProdMode();
 platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/apps/maarch_entreprise/js/angular/tsconfig.json b/apps/maarch_entreprise/js/angular/tsconfig.json
index f13f84d31fed8ffa2c1852d738dff12ec0c981c4..404a9ea79760b43faa60844b28cdf82b90f64e29 100644
--- a/apps/maarch_entreprise/js/angular/tsconfig.json
+++ b/apps/maarch_entreprise/js/angular/tsconfig.json
@@ -9,5 +9,8 @@
     "lib": [ "es2015", "dom" ],
     "noImplicitAny": true,
     "suppressImplicitAnyIndexErrors": true
-  }
+  },
+  "exclude": [
+    "node_modules"
+  ]
 }
diff --git a/apps/maarch_entreprise/js/app.module.js b/apps/maarch_entreprise/js/app.module.js
deleted file mode 100644
index afb8d43bd0c389c17fc9d8408c650e9d4bce586a..0000000000000000000000000000000000000000
--- a/apps/maarch_entreprise/js/app.module.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var mainApp = angular.module("AppModule", ["ngRoute", "ngTable"]);
-
-mainApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
-  $routeProvider
-    .when("/:basketId/signatureBook/:resId", {
-      templateUrl   : "../../modules/visa/Views/signatureBook.html",
-      controller    : "visaCtrl",
-      controllerAs  : "vm"
-    });
-
-  $locationProvider.hashPrefix('');
-}]);
-
-mainApp.filter('datetimeFormat', function($filter)
-{
-  return function(input)
-  {
-    if(input == null) {
-      return "";
-    }
-
-    return $filter('date')(new Date(input), 'dd/MM/yyyy HH:mm');
-  };
-});
-
-mainApp.filter('dateFormat', function($filter)
-{
-  return function(input)
-  {
-    if(input == null) {
-      return "";
-    }
-
-    return $filter('date')(new Date(input), 'dd/MM/yyyy');
-  };
-});
diff --git a/apps/maarch_entreprise/js/ng-table.min.js b/apps/maarch_entreprise/js/ng-table.min.js
deleted file mode 100644
index ccbc8ab0b0ab21d0bf2fd44478bae0dc02ecb5dd..0000000000000000000000000000000000000000
--- a/apps/maarch_entreprise/js/ng-table.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("angular")):"function"==typeof define&&define.amd?define(["angular"],e):"object"==typeof exports?exports["ng-table"]=e(require("angular")):t["ng-table"]=e(t.angular)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,e,n){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=33)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,a){r.apply(this,[t,e,a].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var a=n(0),i=n(4),o=n(5),l=n(6),s=n(7),u=n(8),c=n(9),p=n(10),f=n(11),g=n(12),d=n(13),h=n(14),m=n(15),b=n(16),v=n(17);n(25),n(27),n(26),n(28),n(31),n(30),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a.module("ngTable-browser",[]).directive("ngTable",i.ngTable).factory("ngTableColumn",o.ngTableColumn).directive("ngTableColumnsBinding",l.ngTableColumnsBinding).controller("ngTableController",s.ngTableController).directive("ngTableDynamic",u.ngTableDynamic).provider("ngTableFilterConfig",c.ngTableFilterConfigProvider).directive("ngTableFilterRow",p.ngTableFilterRow).controller("ngTableFilterRowController",f.ngTableFilterRowController).directive("ngTableGroupRow",g.ngTableGroupRow).controller("ngTableGroupRowController",d.ngTableGroupRowController).directive("ngTablePagination",h.ngTablePagination).directive("ngTableSelectFilterDs",m.ngTableSelectFilterDs).directive("ngTableSorterRow",b.ngTableSorterRow).controller("ngTableSorterRowController",v.ngTableSorterRowController),r(n(18))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var a=n(0),i=n(19),o=n(20),l=n(22),s=n(21);Object.defineProperty(e,"__esModule",{value:!0}),e.default=a.module("ngTable-core",[]).provider("ngTableDefaultGetData",i.ngTableDefaultGetDataProvider).value("ngTableDefaults",o.ngTableDefaults).factory("NgTableParams",l.ngTableParamsFactory).factory("ngTableEventsChannel",s.ngTableEventsChannel),r(n(23))},,function(t,e,n){"use strict";function r(t,e){return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(t){var n,r,i=[],o=0,l=[];if(a.forEach(t.find("tr"),function(t){l.push(a.element(t))}),n=l.filter(function(t){return!t.hasClass("ng-table-group")})[0],r=l.filter(function(t){return t.hasClass("ng-table-group")})[0],n)return a.forEach(n.find("td"),function(t){var n=a.element(t);if(!n.attr("ignore-cell")||"true"!==n.attr("ignore-cell")){var l=function(t){return n.attr("x-data-"+t)||n.attr("data-"+t)||n.attr(t)},s=function(t,e){n.attr("x-data-"+t)?n.attr("x-data-"+t,e):n.attr("data"+t)?n.attr("data"+t,e):n.attr(t,e)},u=function(t){var n=l(t);if(n){var r,a=function(t){return void 0!==r?r:e(n)(t)};return a.assign=function(t,a){var i=e(n);i.assign?i.assign(t.$parent,a):r=a},a}},c=l("title-alt")||l("title");c&&n.attr("data-title-text","{{"+c+"}}"),i.push({id:o++,title:u("title"),titleAlt:u("title-alt"),headerTitle:u("header-title"),sortable:u("sortable"),"class":u("header-class"),filter:u("filter"),groupable:u("groupable"),headerTemplateURL:u("header"),filterData:u("filter-data"),show:n.attr("ng-if")?u("ng-if"):void 0}),(r||n.attr("ng-if"))&&s("ng-if","$columns["+(i.length-1)+"].show(this)")}}),function(t,e,n,r){t.$columns=i=r.buildColumns(i),r.setupBindingsToInternalScope(n.ngTable),r.loadFilterData(i),r.compileDirectiveTemplates()}}}}var a=n(0);r.$inject=["$q","$parse"],e.ngTable=r},function(t,e,n){"use strict";function r(){function t(t,n,i){var o=Object.create(t),l=e();for(var s in l)void 0===o[s]&&(o[s]=l[s]),a.isFunction(o[s])||!function(e){var n=function a(){return 1!==arguments.length||r(arguments[0])?t[e]:void a.assign(null,arguments[0])};n.assign=function(n,r){t[e]=r},o[e]=n}(s),function(e){var l=o[e];o[e]=function(){if(1!==arguments.length||r(arguments[0])){var e=arguments[0]||n,s=Object.create(e);return a.extend(s,{$column:o,$columns:i}),l.call(t,s)}l.assign(null,arguments[0])},l.assign&&(o[e].assign=l.assign)}(s);return o}function e(){return{"class":n(""),filter:n(!1),groupable:n(!1),filterData:a.noop,headerTemplateURL:n(!1),headerTitle:n(""),sortable:n(!1),show:n(!0),title:n(""),titleAlt:n("")}}function n(t){var e=t,n=function a(){return 1!==arguments.length||r(arguments[0])?e:void a.assign(null,arguments[0])};return n.assign=function(t,n){e=n},n}function r(t){return null!=t&&a.isFunction(t.$new)}return{buildColumn:t}}var a=n(0);r.$inject=[],e.ngTableColumn=r},function(t,e){"use strict";function n(t){function e(e,n,r){var a=t(r.ngTableColumnsBinding).assign;a&&e.$watch("$columns",function(t){var n=(t||[]).slice(0);a(e,n)})}var n={restrict:"A",require:"ngTable",link:e};return n}n.$inject=["$parse"],e.ngTableColumnsBinding=n},function(t,e,n){"use strict";function r(t,e,n,r,i,o,l,s,u,c){function p(e){if(e&&!t.params.hasErrorState()){var n=t.params,r=n.settings().filterOptions;if(n.hasFilterChanges()){var a=function(){n.page(1),n.reload()};r.filterDelay?v(a,r.filterDelay):a()}else n.reload()}}function f(){o.showFilter?t.$parent.$watch(o.showFilter,function(e){t.show_filter=e}):t.$watch(h,function(e){t.show_filter=e}),o.disableFilter&&t.$parent.$watch(o.disableFilter,function(e){t.$filterRow.disabled=e})}function g(){if(t.$groupRow={show:!1},o.showGroup){var e=r(o.showGroup);t.$parent.$watch(e,function(e){t.$groupRow.show=e}),e.assign&&t.$watch("$groupRow.show",function(n){e.assign(t.$parent,n)})}else t.$watch("params.hasGroup()",function(e){t.$groupRow.show=e})}function d(){return(t.$columns||[]).filter(function(e){return e.show(t)})}function h(){return!!t.$columns&&m(t.$columns,function(e){return e.show(t)&&!!e.filter(t)})}function m(t,e){for(var n=!1,r=0;r<t.length;r++){var a=t[r];if(e(a)){n=!0;break}}return n}function b(){c.onAfterReloadData(function(e,n){var r=d();e.hasGroup()?(t.$groups=n||[],t.$groups.visibleColumnCount=r.length):(t.$data=n||[],t.$data.visibleColumnCount=r.length)},t,function(e){return t.params===e}),c.onPagesChanged(function(e,n){t.pages=n},t,function(e){return t.params===e})}t.$filterRow={disabled:!1},t.$loading=!1,t.hasOwnProperty("params")||(t.params=new e((!0)));var v=function(){var t;return function(e,r){n.cancel(t),t=n(e,r)}}();t.$watch("params",function(t,e){t!==e&&t&&t.reload()},!1),t.$watch("params.isDataReloadRequired()",p),this.compileDirectiveTemplates=function(){if(!l.hasClass("ng-table")){t.templates={header:o.templateHeader?o.templateHeader:"ng-table/header.html",pagination:o.templatePagination?o.templatePagination:"ng-table/pager.html"},l.addClass("ng-table");var e=null,n=!1;a.forEach(l.children(),function(t){"THEAD"===t.tagName&&(n=!0)}),n||(e=a.element('<thead ng-include="templates.header"></thead>',s),l.prepend(e));var r=a.element('<div ng-table-pagination="params" template-url="templates.pagination"></div>',s);l.after(r),e&&i(e)(t),i(r)(t)}},this.loadFilterData=function(e){function n(t){return t&&"object"==typeof t&&"function"==typeof t.then}a.forEach(e,function(e){var r=e.filterData(t);return r?n(r)?(delete e.filterData,r.then(function(t){a.isArray(t)||a.isFunction(t)||a.isObject(t)||(t=[]),e.data=t})):e.data=r:void delete e.filterData})},this.buildColumns=function(e){var n=[];return(e||[]).forEach(function(e){n.push(u.buildColumn(e,t,n))}),n},this.parseNgTableDynamicExpr=function(t){if(!t||t.indexOf(" with ")>-1){var e=t.split(/\s+with\s+/);return{tableParams:e[0],columns:e[1]}}throw new Error("Parse error (expected example: ng-table-dynamic='tableParams with cols')")},this.setupBindingsToInternalScope=function(e){t.$watch(e,function(e){void 0!==e&&(t.params=e)},!1),f(),g()},b()}var a=n(0);r.$inject=["$scope","NgTableParams","$timeout","$parse","$compile","$attrs","$element","$document","ngTableColumn","ngTableEventsChannel"],e.ngTableController=r},function(t,e,n){"use strict";function r(){return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(t){var e;if(a.forEach(t.find("tr"),function(t){t=a.element(t),t.hasClass("ng-table-group")||e||(e=t)}),e)return a.forEach(e.find("td"),function(t){var e=a.element(t),n=function(t){return e.attr("x-data-"+t)||e.attr("data-"+t)||e.attr(t)},r=n("title");r||e.attr("data-title-text","{{$columns[$index].titleAlt(this) || $columns[$index].title(this)}}");var i=e.attr("ng-if");i||e.attr("ng-if","$columns[$index].show(this)")}),function(t,e,n,r){var a=r.parseNgTableDynamicExpr(n.ngTableDynamic);r.setupBindingsToInternalScope(a.tableParams),r.compileDirectiveTemplates(),t.$watchCollection(a.columns,function(e){t.$columns=r.buildColumns(e),r.loadFilterData(t.$columns)})}}}}var a=n(0);r.$inject=[],e.ngTableDynamic=r},function(t,e,n){"use strict";function r(){function t(){e()}function e(){i=o}function n(t){var e=a.extend({},i,t);e.aliasUrls=a.extend({},i.aliasUrls,t.aliasUrls),i=e}function r(){function t(t,e){var n;return n="string"!=typeof t?t.id:t,n.indexOf("/")!==-1?n:r.getUrlForAlias(n,e)}function e(t,e){return i.aliasUrls[t]||i.defaultBaseUrl+t+i.defaultExt}var n,r={config:n,getTemplateUrl:t,getUrlForAlias:e};return Object.defineProperty(r,"config",{get:function(){return n=n||a.copy(i)},enumerable:!0}),r}var i,o={defaultBaseUrl:"ng-table/filters/",defaultExt:".html",aliasUrls:{}};this.$get=r,this.resetConfigs=e,this.setConfig=n,t(),r.$inject=[]}var a=n(0);r.$inject=[],e.ngTableFilterConfigProvider=r},function(t,e,n){"use strict";function r(){var t={restrict:"E",replace:!0,templateUrl:a,scope:!0,controller:"ngTableFilterRowController"};return t}var a=n(24);r.$inject=[],e.ngTableFilterRow=r},function(t,e){"use strict";function n(t,e){t.config=e,t.getFilterCellCss=function(t,e){if("horizontal"!==e)return"s12";var n=Object.keys(t).length,r=parseInt((12/n).toString(),10);return"s"+r},t.getFilterPlaceholderValue=function(t,e){return"string"==typeof t?"":t.placeholder}}n.$inject=["$scope","ngTableFilterConfig"],e.ngTableFilterRowController=n},function(t,e,n){"use strict";function r(){var t={restrict:"E",replace:!0,templateUrl:a,scope:!0,controller:"ngTableGroupRowController",controllerAs:"dctrl"};return t}var a=n(29);r.$inject=[],e.ngTableGroupRow=r},function(t,e){"use strict";function n(t){function e(){t.getGroupables=i,t.getGroupTitle=a,t.getVisibleColumns=o,t.groupBy=l,t.isSelectedGroup=u,t.toggleDetail=p,t.$watch("params.group()",c,!0)}function n(){var e;e=t.params.hasGroup(t.$selGroup,"asc")?"desc":t.params.hasGroup(t.$selGroup,"desc")?"":"asc",t.params.group(t.$selGroup,e)}function r(e){return t.$columns.filter(function(n){return n.groupable(t)===e})[0]}function a(e){return s(e)?e.title:e.title(t)}function i(){var e=t.$columns.filter(function(e){return!!e.groupable(t)});return f.concat(e)}function o(){return t.$columns.filter(function(e){return e.show(t)})}function l(e){u(e)?n():s(e)?t.params.group(e):t.params.group(e.groupable(t))}function s(t){return"function"==typeof t}function u(e){return s(e)?e===t.$selGroup:e.groupable(t)===t.$selGroup}function c(e){var n=r(t.$selGroup);if(n&&n.show.assign&&n.show.assign(t,!0),s(e))f=[e],t.$selGroup=e,t.$selGroupTitle=e.title;else{var a=Object.keys(e||{})[0],i=r(a);i&&(t.$selGroupTitle=i.title(t),t.$selGroup=a,i.show.assign&&i.show.assign(t,!1))}}function p(){return t.params.settings().groupOptions.isExpanded=!t.params.settings().groupOptions.isExpanded,t.params.reload()}var f=[];e()}n.$inject=["$scope"],e.ngTableGroupRowController=n},function(t,e,n){"use strict";function r(t,e,n){return{restrict:"A",scope:{params:"=ngTablePagination",templateUrl:"="},replace:!1,link:function(r,i){n.onAfterReloadData(function(t){r.pages=t.generatePagesArray()},r,function(t){return t===r.params}),r.$watch("templateUrl",function(n){if(void 0!==n){var o=a.element('<div ng-include="templateUrl"></div>',e);i.append(o),t(o)(r)}})}}}var a=n(0);r.$inject=["$compile","$document","ngTableEventsChannel"],e.ngTablePagination=r},function(t,e){"use strict";function n(){var t={restrict:"A",controller:r};return t}function r(t,e,n,r){function a(){s=e(n.ngTableSelectFilterDs)(t),t.$watch(function(){return s&&s.data},i)}function i(){l(s).then(function(e){e&&!o(e)&&e.unshift({id:"",title:""}),e=e||[],t.$selectData=e})}function o(t){for(var e,n=0;n<t.length;n++){var r=t[n];if(r&&""===r.id){e=!0;break}}return e}function l(t){var e=t.data;return e instanceof Array?r.when(e):r.when(e&&e())}var s;a()}n.$inject=[],e.ngTableSelectFilterDs=n,r.$inject=["$scope","$parse","$attrs","$q"]},function(t,e,n){"use strict";function r(){var t={restrict:"E",replace:!0,templateUrl:a,scope:!0,controller:"ngTableSorterRowController"};return t}var a=n(32);r.$inject=[],e.ngTableSorterRow=r},function(t,e){"use strict";function n(t){function e(e,n){var r=e.sortable&&e.sortable();if(r&&"string"==typeof r){var a=t.params.settings().defaultSort,i="asc"===a?"desc":"asc",o=t.params.sorting()&&t.params.sorting()[r]&&t.params.sorting()[r]===a,l=n.ctrlKey||n.metaKey?t.params.sorting():{};l[r]=o?i:a,t.params.parameters({sorting:l})}}t.sortBy=e}n.$inject=["$scope"],e.ngTableSorterRowController=n},function(t,e){"use strict"},function(t,e,n){"use strict";var r=n(0),a=function(){function t(){function t(t){function n(n){var a=n.settings().filterOptions;return r.isFunction(a.filterFn)?a.filterFn:t(a.filterFilterName||e.filterFilterName)}function a(n){return t(e.sortingFilterName)}function i(t,e){if(!e.hasFilter())return t;var r=e.filter(!0),a=Object.keys(r),i=a.reduce(function(t,e){return t=u(t,r[e],e)},{}),o=n(e);return o.call(e,t,i,e.settings().filterOptions.filterComparator)}function o(t,e){var n=t.slice((e.page()-1)*e.count(),e.page()*e.count());return e.total(t.length),n}function l(t,e){var n=e.orderBy(),r=a(e);return n.length?r(t,n):t}function s(t,e){if(null==t)return[];var n=r.extend({},c,e.settings().dataOptions),a=n.applyFilter?i(t,e):t,s=n.applySort?l(a,e):a;return n.applyPaging?o(s,e):s}function u(t,e,n){var r=n.split("."),a=t,i=r[r.length-1],o=a,l=r.slice(0,r.length-1);return l.forEach(function(t){o.hasOwnProperty(t)||(o[t]={}),o=o[t]}),o[i]=e,a}var c={applyFilter:!0,applySort:!0,applyPaging:!0};return s.applyPaging=o,s.getFilterFn=n,s.getOrderByFn=a,s}this.filterFilterName="filter",this.sortingFilterName="orderBy";var e=this;this.$get=t,t.$inject=["$filter"]}return t}();e.ngTableDefaultGetDataProvider=a},function(t,e){"use strict";e.ngTableDefaults={params:{},settings:{}}},function(t,e,n){"use strict";function r(t){function e(t,e){var i=t.charAt(0).toUpperCase()+t.substring(1),o=(l={},l["on"+i]=n(t),l["publish"+i]=r(t),l);return a.extend(e,o);var l}function n(e){function n(t){return t?r(t)?t:function(e){return e===t}:function(t){return!0}}function r(t){return"function"==typeof t}function a(t){return t&&"function"==typeof t.$new}return function(r,i,o){var l,s=t;return a(i)?(s=i,l=n(o)):l=n(i),s.$on("ngTable:"+e,function(t,e){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];if(!e.isNullInstance){var i=[e].concat(n);l.apply(this,i)&&r.apply(this,i)}})}}function r(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];t.$broadcast.apply(t,["ngTable:"+e].concat(n))}}var i={};return i=e("afterCreated",i),i=e("afterReloadData",i),i=e("datasetChanged",i),i=e("pagesChanged",i)}var a=n(0);r.$inject=["$rootScope"],e.ngTableEventsChannel=r},function(t,e,n){"use strict";function r(t,e,n,r,i,o){function l(n,l){function s(t){return!isNaN(parseFloat(t))&&isFinite(t)}function u(t){var e=F.groupOptions&&F.groupOptions.defaultSort;if(t){if(f(t))return null==t.sortDirection&&(t.sortDirection=e),t;if("object"==typeof t){for(var n in t)null==t[n]&&(t[n]=e);return t}return r={},r[t]=e,r}return t;var r}function c(t){var e=[];for(var n in t)e.push(("asc"===t[n]?"+":"-")+n);return e}function p(){var t=O.group;return{params:O,groupSortDirection:f(t)?t.sortDirection:void 0}}function f(t){return"function"==typeof t}function g(){var t=O.filter&&O.filter.$,e=b&&b.params.filter&&b.params.filter.$;return!a.equals(t,e)}function d(){F.filterOptions.filterDelay===C.filterDelay&&F.total<=F.filterOptions.filterDelayThreshold&&F.getData===x.getData&&(F.filterOptions.filterDelay=0)}function h(e){var n=F.interceptors||[];return n.reduce(function(e,n){var r=n.response&&n.response.bind(n)||t.when,a=n.responseError&&n.responseError.bind(n)||t.reject;return e.then(function(t){return r(t,$)},function(t){return a(t,$)})},e)}function m(){function e(t){return i(t.settings().dataset,t)}function n(e){var n,o=e.group(),l=void 0;if(f(o))n=o,l=o.sortDirection;else{var s=Object.keys(o)[0];l=o[s],n=function(t){return r(t,s)}}var u=e.settings(),p=u.dataOptions;u.dataOptions={applyPaging:!1};var g=u.getData,d=t.when(g(e));return d.then(function(t){var r={};a.forEach(t,function(t){var e=n(t);r[e]=r[e]||{data:[],$hideRows:!u.groupOptions.isExpanded,value:e},r[e].data.push(t)});var o=[];for(var s in r)o.push(r[s]);if(l){var p=i.getOrderByFn(),f=c({value:l});o=p(o,f)}return i.applyPaging(o,e)}).finally(function(){u.dataOptions=p})}function r(t,e){var n;if(n="string"==typeof e?e.split("."):e,void 0!==t){if(0===n.length)return t;if(null!==t)return r(t[n[0]],n.slice(1))}}return{getData:e,getGroups:n}}"boolean"==typeof n&&(this.isNullInstance=!0);var b,v,$=this,y=!1,w=[],T=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];F.debugMode&&e.debug&&e.debug.apply(e,t)},C={filterComparator:void 0,filterDelay:500,filterDelayThreshold:1e4,filterFilterName:void 0,filterFn:void 0,filterLayout:"stack"},D={defaultSort:"asc",isExpanded:!0},x=m();this.data=[],this.parameters=function(t,e){if(e=e||!1,void 0!==typeof t){for(var n in t){var r=t[n];if(e&&n.indexOf("[")>=0){for(var i=n.split(/\[(.*)\]/).reverse(),o="",l=0,c=i.length;l<c;l++){var p=i[l];if(""!==p){var f=r;r={},r[o=p]=s(f)?parseFloat(f):f}}"sorting"===o&&(O[o]={}),O[o]=a.extend(O[o]||{},r[o])}else"group"===n?O[n]=u(t[n]):O[n]=s(t[n])?parseFloat(t[n]):t[n]}return T("ngTable: set parameters",O),this}return O},this.settings=function(t){if(a.isDefined(t)){t.filterOptions&&(t.filterOptions=a.extend({},F.filterOptions,t.filterOptions)),t.groupOptions&&(t.groupOptions=a.extend({},F.groupOptions,t.groupOptions)),a.isArray(t.dataset)&&(t.total=t.dataset.length);var e=F.dataset;F=a.extend(F,t),a.isArray(t.dataset)&&d();var n=t.hasOwnProperty("dataset")&&t.dataset!=e;if(n){y&&this.page(1),y=!1;var r=function(){o.publishDatasetChanged($,t.dataset,e)};w?w.push(r):r()}return T("ngTable: set settings",F),this}return F},this.page=function(t){return void 0!==t?this.parameters({page:t}):O.page},this.total=function(t){return void 0!==t?this.settings({total:t}):F.total},this.count=function(t){return void 0!==t?this.parameters({count:t,page:1}):O.count},this.filter=function(t){if(null!=t&&"object"==typeof t)return this.parameters({filter:t,page:1});if(t===!0){for(var e=Object.keys(O.filter),n={},r=0;r<e.length;r++){var a=O.filter[e[r]];null!=a&&""!==a&&(n[e[r]]=a)}return n}return O.filter},this.group=function(t,e){if(void 0===t)return O.group;var n={page:1};return f(t)&&void 0!==e?(t.sortDirection=e,n.group=t):"string"==typeof t&&void 0!==e?n.group=(r={},r[t]=e,r):n.group=t,this.parameters(n),this;var r},this.sorting=function(t,e){return"string"==typeof t&&void 0!==e?(this.parameters({sorting:(n={},n[t]=e,n)}),this):void 0!==t?this.parameters({sorting:t}):O.sorting;var n},this.isSortBy=function(t,e){return void 0!==e?void 0!==O.sorting[t]&&O.sorting[t]==e:void 0!==O.sorting[t]},this.orderBy=function(){return c(O.sorting)},this.generatePagesArray=function(t,e,n,r){arguments.length||(t=this.page(),e=this.total(),n=this.count());var a,i,o,l;r=r&&r<6?6:r;var s=[];if(l=Math.ceil(e/n),l>1){s.push({type:"prev",number:Math.max(1,t-1),active:t>1}),s.push({type:"first",number:1,active:t>1,current:1===t}),i=Math.round((F.paginationMaxBlocks-F.paginationMinBlocks)/2),o=Math.max(2,t-i),a=Math.min(l-1,t+2*i-(t-o)),o=Math.max(2,o-(2*i-(a-o)));for(var u=o;u<=a;)u===o&&2!==u||u===a&&u!==l-1?s.push({type:"more",active:!1}):s.push({type:"page",number:u,active:t!==u,current:t===u}),u++;s.push({type:"last",number:l,active:t!==l,current:t===l}),s.push({type:"next",number:Math.min(l,t+1),active:t<l})}return s},this.isDataReloadRequired=function(){return!y||!a.equals(p(),b)||g()},this.hasFilter=function(){return Object.keys(this.filter(!0)).length>0},this.hasGroup=function(t,e){return null==t?f(O.group)||Object.keys(O.group).length>0:f(t)?null==e?O.group===t:O.group===t&&t.sortDirection===e:null==e?Object.keys(O.group).indexOf(t)!==-1:O.group[t]===e},this.hasFilterChanges=function(){var t=b&&b.params.filter;return!a.equals(O.filter,t)||g()},this.url=function(t){function e(t,e){n(i)?i.push(e+"="+encodeURIComponent(t)):i[e]=encodeURIComponent(t)}function n(e){return t}function r(t,e){return"group"===e||void 0!==typeof t&&""!==t}t=t||!1;var i=t?[]:{};for(var o in O)if(O.hasOwnProperty(o)){var l=O[o],s=encodeURIComponent(o);if("object"==typeof l){for(var u in l)if(r(l[u],o)){var c=s+"["+encodeURIComponent(u)+"]";e(l[u],c)}}else!a.isFunction(l)&&r(l,o)&&e(l,s)}return i},this.reload=function(){var e=this,n=null;if(F.$loading=!0,b=a.copy(p()),y=!0,e.hasGroup())n=h(t.when(F.getGroups(e)));else{var r=F.getData;n=h(t.when(r(e)))}T("ngTable: reload data");var i=e.data;return n.then(function(t){return F.$loading=!1,v=null,e.data=t,o.publishAfterReloadData(e,t,i),e.reloadPages(),t}).catch(function(e){return v=b,t.reject(e)})},this.hasErrorState=function(){return!(!v||!a.equals(v,p()))},this.reloadPages=function(){var t;return function(){var e=t,n=$.generatePagesArray($.page(),$.total(),$.count());a.equals(e,n)||(t=n,o.publishPagesChanged(this,n,e))}}();var O={page:1,count:10,filter:{},sorting:{},group:{}};a.extend(O,r.params);var F={$loading:!1,dataset:null,total:0,defaultSort:"desc",filterOptions:a.copy(C),groupOptions:a.copy(D),counts:[10,25,50,100],interceptors:[],paginationMaxBlocks:11,paginationMinBlocks:5,sortingIndicator:"span"};return this.settings(x),this.settings(r.settings),this.settings(l),this.parameters(n,!0),o.publishAfterCreated(this),a.forEach(w,function(t){t()}),w=null,this}return l}var a=n(0);r.$inject=["$q","$log","$filter","ngTableDefaults","ngTableDefaultGetData","ngTableEventsChannel"],e.ngTableParamsFactory=r},18,function(t,e,n){var r="ng-table/filterRow.html",a='<tr ng-show=show_filter class=ng-table-filters> <th data-title-text="{{$column.titleAlt(this) || $column.title(this)}}" ng-repeat="$column in $columns" ng-if=$column.show(this) class="filter {{$column.class(this)}}" ng-class="params.settings().filterOptions.filterLayout === \'horizontal\' ? \'filter-horizontal\' : \'\'"> <div ng-repeat="(name, filter) in $column.filter(this)" ng-include=config.getTemplateUrl(filter) class=filter-cell ng-class="[getFilterCellCss($column.filter(this), params.settings().filterOptions.filterLayout), $last ? \'last\' : \'\']"> </div> </th> </tr> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/filters/number.html",a='<input type=number name={{name}} ng-disabled=$filterRow.disabled ng-model=params.filter()[name] class="input-filter form-control" placeholder="{{getFilterPlaceholderValue(filter, name)}}"/> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/filters/select-multiple.html",a='<select ng-options="data.id as data.title for data in $column.data" ng-disabled=$filterRow.disabled multiple=multiple ng-multiple=true ng-model=params.filter()[name] class="filter filter-select-multiple form-control" name={{name}}> </select> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/filters/select.html",a='<select ng-options="data.id as data.title for data in $selectData" ng-table-select-filter-ds=$column ng-disabled=$filterRow.disabled ng-model=params.filter()[name] class="filter filter-select form-control" name={{name}}> <option style=display:none value=""></option> </select> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/filters/text.html",a='<input type=text name={{name}} ng-disabled=$filterRow.disabled ng-model=params.filter()[name] class="input-filter form-control" placeholder="{{getFilterPlaceholderValue(filter, name)}}"/> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/groupRow.html",a='<tr ng-if=params.hasGroup() ng-show=$groupRow.show class=ng-table-group-header> <th colspan={{getVisibleColumns().length}} class=sortable ng-class="{\n                    \'sort-asc\': params.hasGroup($selGroup, \'asc\'),\n                    \'sort-desc\':params.hasGroup($selGroup, \'desc\')\n                  }"> <a href="" ng-click="isSelectorOpen = !isSelectorOpen" class=ng-table-group-selector> <strong class=sort-indicator>{{$selGroupTitle}}</strong> <button class="btn btn-default btn-xs ng-table-group-close" ng-click="$groupRow.show = false; $event.preventDefault(); $event.stopPropagation();"> <span class="glyphicon glyphicon-remove"></span> </button> <button class="btn btn-default btn-xs ng-table-group-toggle" ng-click="toggleDetail(); $event.preventDefault(); $event.stopPropagation();"> <span class=glyphicon ng-class="{\n                    \'glyphicon-resize-small\': params.settings().groupOptions.isExpanded,\n                    \'glyphicon-resize-full\': !params.settings().groupOptions.isExpanded\n                }"></span> </button> </a> <div class=list-group ng-if=isSelectorOpen> <a href="" class=list-group-item ng-repeat="group in getGroupables()" ng-click=groupBy(group)> <strong>{{ getGroupTitle(group)}}</strong> <strong ng-class="isSelectedGroup(group) && \'sort-indicator\'"></strong> </a> </div> </th> </tr> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/header.html",a="<ng-table-group-row></ng-table-group-row> <ng-table-sorter-row></ng-table-sorter-row> <ng-table-filter-row></ng-table-filter-row> ",i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/pager.html",a='<div class="ng-cloak ng-table-pager" ng-if=params.data.length> <div ng-if=params.settings().counts.length class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type=button ng-class="{\'active\':params.count() == count}" ng-click=params.count(count) class="btn btn-default"> <span ng-bind=count></span> </button> </div> <ul ng-if=pages.length class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active && !page.current, \'active\': page.current}" ng-repeat="page in pages" ng-switch=page.type> <a ng-switch-when=prev ng-click=params.page(page.number) href="">&laquo;</a> <a ng-switch-when=first ng-click=params.page(page.number) href=""><span ng-bind=page.number></span></a> <a ng-switch-when=page ng-click=params.page(page.number) href=""><span ng-bind=page.number></span></a> <a ng-switch-when=more ng-click=params.page(page.number) href="">&#8230;</a> <a ng-switch-when=last ng-click=params.page(page.number) href=""><span ng-bind=page.number></span></a> <a ng-switch-when=next ng-click=params.page(page.number) href="">&raquo;</a> </li> </ul> </div> ',i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){var r="ng-table/sorterRow.html",a="<tr class=ng-table-sort-header> <th title={{$column.headerTitle(this)}} ng-repeat=\"$column in $columns\" ng-class=\"{\n                    'sortable': $column.sortable(this),\n                    'sort-asc': params.sorting()[$column.sortable(this)]=='asc',\n                    'sort-desc': params.sorting()[$column.sortable(this)]=='desc'\n                  }\" ng-click=\"sortBy($column, $event)\" ng-if=$column.show(this) ng-init=\"template = $column.headerTemplateURL(this)\" class=\"header {{$column.class(this)}}\"> <div ng-if=!template class=ng-table-header ng-class=\"{'sort-indicator': params.settings().sortingIndicator == 'div'}\"> <span ng-bind=$column.title(this) ng-class=\"{'sort-indicator': params.settings().sortingIndicator == 'span'}\"></span> </div> <div ng-if=template ng-include=template></div> </th> </tr> ",i=n(0);i.module("ng").run(["$templateCache",function(t){t.put(r,a)}]),t.exports=r},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var a=n(0),i=n(2),o=n(1),l=a.module("ngTable",[i.default.name,o.default.name]);e.ngTable=l,r(n(2)),r(n(1))}]))});
-//# sourceMappingURL=ng-table.min.js.map
\ No newline at end of file
diff --git a/apps/maarch_entreprise/merged_jsAbstract.php b/apps/maarch_entreprise/merged_jsAbstract.php
index cadd988d10b3899280ecb500732076d4f0b8581d..426978ef812238fbaec04205f29641f07e8acd71 100644
--- a/apps/maarch_entreprise/merged_jsAbstract.php
+++ b/apps/maarch_entreprise/merged_jsAbstract.php
@@ -44,9 +44,6 @@ class MergedJsAbstract {
 		include('apps/maarch_entreprise/js/prototype.js');
 		include('apps/maarch_entreprise/js/scriptaculous.js');
 		include('apps/maarch_entreprise/js/jquery.min.js');
-		include('apps/maarch_entreprise/js/angular.min.js');
-		include('apps/maarch_entreprise/js/angular-route.js');
-		include('apps/maarch_entreprise/js/ng-table.min.js');
 		include('apps/maarch_entreprise/js/indexing.js');
 		include('apps/maarch_entreprise/js/scrollbox.js');
 		include('apps/maarch_entreprise/js/effects.js');
@@ -58,9 +55,9 @@ class MergedJsAbstract {
 		include('apps/maarch_entreprise/js/Chart.js');
 		include('apps/maarch_entreprise/js/chosen.proto.min.js');
 		include('apps/maarch_entreprise/js/event.simulate.js');
-		include('apps/maarch_entreprise/js/RSVP.js');
-                include('apps/maarch_entreprise/js/render.js');
-                include('apps/maarch_entreprise/js/jio.js');
+//		include('apps/maarch_entreprise/js/RSVP.js');
+//		include('apps/maarch_entreprise/js/render.js');
+//		include('apps/maarch_entreprise/js/jio.js');
 
 		readfile('node_modules/core-js/client/shim.js');
 		readfile('node_modules/zone.js/dist/zone.js');
@@ -79,11 +76,6 @@ class MergedJsAbstract {
 			    {
 			        include('modules/'.$_SESSION['modules_loaded'][$value]['name'].'/js/functions.js');
 			    }
-			    if(file_exists($_SESSION['config']['corepath'].'custom/'.$_SESSION['custom_override_id'].'/modules/'.$_SESSION['modules_loaded'][$value]['name'].'/js/aController.js')
-					|| file_exists($_SESSION['config']['corepath'].'/modules/'.$_SESSION['modules_loaded'][$value]['name'].'/js/aController.js'))
-			    {
-			        include('modules/'.$_SESSION['modules_loaded'][$value]['name'].'/js/aController.js');
-			    }
 			}
 		}
 	}
diff --git a/modules/basket/js/aController.js b/modules/basket/js/aController.js
deleted file mode 100644
index 6023bc50a75a9f207b2b3bb7c138fce072220461..0000000000000000000000000000000000000000
--- a/modules/basket/js/aController.js
+++ /dev/null
@@ -1,24 +0,0 @@
-mainApp.controller("basketCtrl", ["$scope", "$http", "$compile", function($scope, $http, $compile) {
-
-  //$scope.getView = function(res_id, service, module) {
-  //
-  //  $http({
-  //    method : 'POST',
-  //    url    : globalConfig.coreurl + 'rest.php?module=' + module + '&service=' + service + '&method=getViewDatas',
-  //    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
-  //    data   : $j.param({
-  //      resId : res_id
-  //    })
-  //  }).then(function successCallback(response) {
-  //    var elem = angular.element(response.data.result.view);
-  //
-  //    $j('#divList').html(elem);
-  //    $scope.signatureBook = response.data.result.datas;
-  //    $compile(elem)($scope);
-  //
-  //  }, function errorCallback(response) {
-  //    console.log(response);
-  //  });
-  //};
-
-}]);
\ No newline at end of file
diff --git a/package.json b/package.json
index 355066a3787b0666b4bf6d9e2af6eb6d1f400e64..f33db06732268fdaea2cc901e4df9fd4961771eb 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,11 @@
 {
   "name": "MaarchCourrier",
-  "version": "2.0 Beta",
   "description": "MaarchCourrier",
   "scripts": {
     "build": "tsc -p apps/maarch_entreprise/js/angular/",
-    "build:watch": "tsc -p apps/maarch_entreprise/js/angular/ -w"
+    "build:watch": "tsc -p apps/maarch_entreprise/js/angular/ -w",
+    "build-prod": "npm run build && browserify -s main apps/maarch_entreprise/js/angular/main.js > apps/maarch_entreprise/js/angular/main.bundle.js && npm run minify",
+    "minify": "uglifyjs apps/maarch_entreprise/js/angular/main.bundle.js --compress --mangle --output apps/maarch_entreprise/js/angular/main.bundle.min.js"
   },
   "keywords": [],
   "author": "Maarch",
@@ -23,7 +24,9 @@
     "systemjs": "0.19.40",
     "core-js": "^2.4.1",
     "rxjs": "5.0.1",
-    "zone.js": "^0.7.4"
+    "zone.js": "^0.7.4",
+    "browserify": "^13.0.1",
+    "uglifyjs": "^2.4.10"
   },
   "devDependencies": {
     "typescript": "~2.0.10",