-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es5.026cd9ff26ae335a0c31.js
1 lines (1 loc) · 313 KB
/
main-es5.026cd9ff26ae335a0c31.js
1
function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(u){i=!0,a=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _createSuper(e){return function(){var t,n=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);var i=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function o(e){setTimeout((function(){throw e}),0)}var s={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}var c,h=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),f=((c=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(r(i))try{i.call(this)}catch(p){t=p instanceof h?d(p.errors):[p]}if(u(a))for(var s=-1,c=a.length;++s<c;){var f=a[s];if(l(f))try{f.unsubscribe()}catch(p){t=t||[],p instanceof h?t=t.concat(d(p.errors)):t.push(p)}}if(t)throw new h(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new c),c);function d(e){return e.reduce((function(e,t){return e.concat(t instanceof h?t.errors:t)}),[])}var p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;switch(_classCallCheck(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=s;break;case 1:if(!e){a.destination=s;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(_assertThisInitialized(a))):(a.syncErrorThrowable=!0,a.destination=new g(_assertThisInitialized(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new g(_assertThisInitialized(a),e,r,i)}return a}return _createClass(n,[{key:p,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(f),g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,o){var u,l;_classCallCheck(this,n),(u=t.call(this))._parentSubscriber=e;var c=_assertThisInitialized(u);return r(i)?l=i:i&&(l=i.next,a=i.error,o=i.complete,i!==s&&(r((c=Object.create(i)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(_assertThisInitialized(u)))),u._context=c,u._next=l,u._error=a,u._complete=o,u}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(v),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(){}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k(t)}function k(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:y}var C,w=((C=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof v)return e;if(e[p])return e[p]()}return e||t||n?new v(e,t,n):new v(s)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof v?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=b(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:m,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:k(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=b(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new C(e)},C);function b(e){if(e||(e=a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var S,x=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),E=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(f),T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(v),O=((S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:p,value:function(){return new T(this)}},{key:"lift",value:function(e){var t=new A(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new x;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new x;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new x;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new x;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new x;return this.hasError?(e.error(this.thrownError),f.EMPTY):this.isStopped?(e.complete(),f.EMPTY):(this.observers.push(e),new E(this,e))}},{key:"asObservable",value:function(){var e=new w;return e.source=this,e}}]),n}(w)).create=function(e,t){return new A(e,t)},S),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).destination=e,i.source=r,i}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):f.EMPTY}}]),n}(O);function I(e){return e&&"function"==typeof e.schedule}var R=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=r,a.outerIndex=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(v),P=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};var N="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",j=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function D(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var M=function(e){if(e&&"function"==typeof e[m])return r=e,function(e){var t=r[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(j(e))return P(e);if(D(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,o),e};if(e&&"function"==typeof e[N])return t=e,function(e){for(var n=t[N]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,i=l(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(i," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.")};function U(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new R(e,n,r);if(!i.closed)return t instanceof w?t.subscribe(i):M(t)(i)}var L=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(v);function F(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new V(e,t))}}var V=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new H(e,this.project,this.thisArg))}}]),e}(),H=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=r,a.count=0,a.thisArg=i||_assertThisInitialized(a),a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(v);function q(e,t){return new w((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function z(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new w((function(n){var r=new f;return r.add(t.schedule((function(){var i=e[m]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(D(e))return function(e,t){return new w((function(n){var r=new f;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(j(e))return q(e,t);if(function(e){return e&&"function"==typeof e[N]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w((function(n){var r,i=new f;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[N](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof w?e:new w(M(e))}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(B((function(n,r){return z(e(n,r)).pipe(F((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new G(e,n))})}var G=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new W(e,this.project,this.concurrent))}}]),e}(),W=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=new R(this,t,n),i=this.destination;i.add(r);var a=U(this,e,void 0,void 0,r);a!==r&&i.add(a)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(L);function Q(e){return e}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return B(Q,e)}function K(e,t){return t?q(e,t):new w(P(e))}function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return I(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof a&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof w?t[0]:Z(r)(K(t,i))}function Y(){return function(e){return e.lift(new X(e))}}var J,X=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new ee(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(v),te={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new ne(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return Y()(this)}}]),n}(w).prototype)._subscribe},_isComplete:{value:J._isComplete,writable:!0},getSubject:{value:J.getSubject},connect:{value:J.connect},refCount:{value:J.refCount}},ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(T);function re(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ie(r,t));var i=Object.create(n,te);return i.source=n,i.subjectFactory=r,i}}var ie=function(){function e(t,n){_classCallCheck(this,e),this.subjectFactory=t,this.selector=n}return _createClass(e,[{key:"call",value:function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i}}]),e}();function ae(){return new O}function oe(e){return{toString:e}.toString()}function se(e,t,n){return oe((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var a=_construct(i,t);return o.annotation=a,o;function o(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(a),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}var ue=se("Inject",(function(e){return{token:e}})),le=se("Optional"),ce=se("Self"),he=se("SkipSelf"),fe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(var t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ve(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ge(e){return me(e,e[_e])||me(e,e[we])}function me(e,t){return t&&t.token===e?t:null}function ye(e){return e&&(e.hasOwnProperty(ke)||e.hasOwnProperty(be))?e[ke]:null}var _e=de({"\u0275prov":de}),ke=de({"\u0275inj":de}),Ce=de({"\u0275provFallback":de}),we=de({ngInjectableDef:de}),be=de({ngInjectorDef:de});function Se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Se).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Ee=de({__forward_ref__:de});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return Se(this())},e}function Oe(e){return"function"==typeof(t=e)&&t.hasOwnProperty(Ee)&&t.__forward_ref__===Te?e():e;var t}var Ae,Ie="undefined"!=typeof globalThis&&globalThis,Re="undefined"!=typeof window&&window,Pe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ne="undefined"!=typeof global&&global,je=Ie||Ne||Re||Pe,De=de({"\u0275cmp":de}),Me=de({"\u0275dir":de}),Ue=de({"\u0275pipe":de}),Le=de({"\u0275mod":de}),Fe=de({"\u0275loc":de}),Ve=de({"\u0275fac":de}),He=de({__NG_ELEMENT_ID__:de}),qe=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ze=new qe("INJECTOR",-1),Be={},Ge=/\n/gm,We=de({provide:String,useValue:de}),Qe=void 0;function Ze(e){var t=Qe;return Qe=e,t}function Ke(e){var t=Ae;return Ae=e,t}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default;if(void 0===Qe)throw new Error("inject() must be called from an injection context");return null===Qe?Je(e,void 0,t):Qe.get(e,t&fe.Optional?null:void 0,t)}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default;return(Ae||$e)(Oe(e),t)}function Je(e,t,n){var r=ge(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&fe.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Se(e),"]"))}function Xe(e){for(var t=[],n=0;n<e.length;n++){var r=Oe(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,a=fe.Default,o=0;o<r.length;o++){var s=r[o];s instanceof le||"Optional"===s.ngMetadataName||s===le?a|=fe.Optional:s instanceof he||"SkipSelf"===s.ngMetadataName||s===he?a|=fe.SkipSelf:s instanceof ce||"Self"===s.ngMetadataName||s===ce?a|=fe.Self:i=s instanceof ue||s===ue?s.token:s}t.push(Ye(i,a))}else t.push(Ye(r))}return t}var et=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Be;if(t===Be){var n=new Error("NullInjectorError: No provider for ".concat(Se(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),tt=function e(){_classCallCheck(this,e)},nt=function e(){_classCallCheck(this,e)};function rt(e,t){e.forEach((function(e){return Array.isArray(e)?rt(e,t):t(e)}))}function it(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function at(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ot(e,t){var n=st(e,t);if(n>=0)return e[1|n]}function st(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var a=r+(i-r>>1),o=e[a<<1];if(t===o)return a<<1;o>t?i=a:r=a+1}return~(i<<1)}(e,t)}var ut=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),lt=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),ct={},ht=[],ft=0;function dt(e){return oe((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ut.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ht,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||lt.Emulated,id:"c",styles:e.styles||ht,_:null,setInput:null,schemas:e.schemas||null,tView:null},a=e.directives,o=e.features,s=e.pipes;return i.id+=ft++,i.inputs=yt(e.inputs,r),i.outputs=yt(e.outputs),o&&o.forEach((function(e){return e(i)})),i.directiveDefs=a?function(){return("function"==typeof a?a():a).map(pt)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(vt)}:null,i}))}function pt(e){return kt(e)||function(e){return e[Me]||null}(e)}function vt(e){return function(e){return e[Ue]||null}(e)}var gt={};function mt(e){var t={type:e.type,bootstrap:e.bootstrap||ht,declarations:e.declarations||ht,imports:e.imports||ht,exports:e.exports||ht,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&oe((function(){gt[e.id]=e.type})),t}function yt(e,t){if(null==e)return ct;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),n[i]=r,t&&(t[i]=a)}return n}var _t=dt;function kt(e){return e[De]||null}function Ct(e,t){return e.hasOwnProperty(Ve)?e[Ve]:null}function wt(e,t){var n=e[Le]||null;if(!n&&!0===t)throw new Error("Type ".concat(Se(e)," does not have '\u0275mod' property."));return n}function bt(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function xt(e){return 0!=(8&e.flags)}function Et(e){return 2==(2&e.flags)}function Tt(e){return 1==(1&e.flags)}function Ot(e){return null!==e.template}function At(e){return 0!=(512&e[2])}var It=void 0;function Rt(e){return!!e.listen}var Pt={createRenderer:function(e,t){return void 0!==It?It:"undefined"!=typeof document?document:void 0}};function Nt(e){for(;Array.isArray(e);)e=e[0];return e}function jt(e,t){return Nt(t[e+19])}function Dt(e,t){return Nt(t[e.index])}function Mt(e,t){return e.data[t+19]}function Ut(e,t){var n=t[e];return bt(n)?n:n[0]}function Lt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ft(e){return 4==(4&e[2])}function Vt(e){return 128==(128&e[2])}function Ht(e,t){return null===e||null==t?null:e[t]}function qt(e){e[18]=0}var zt={lFrame:cn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Bt(){return zt.bindingsEnabled}function Gt(){return zt.lFrame.lView}function Wt(){return zt.lFrame.tView}function Qt(e){zt.lFrame.contextLView=e}function Zt(){return zt.lFrame.previousOrParentTNode}function Kt(e,t){zt.lFrame.previousOrParentTNode=e,zt.lFrame.isParent=t}function $t(){return zt.lFrame.isParent}function Yt(){zt.lFrame.isParent=!1}function Jt(){return zt.checkNoChangesMode}function Xt(e){zt.checkNoChangesMode=e}function en(){var e=zt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tn(){return zt.lFrame.bindingIndex++}function nn(e){var t=zt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rn(e,t){var n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function an(){return zt.lFrame.currentQueryIndex}function on(e){zt.lFrame.currentQueryIndex=e}function sn(e,t){var n=ln();zt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function un(e,t){var n=ln(),r=e[1];zt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function ln(){var e=zt.lFrame,t=null===e?null:e.child;return null===t?cn(e):t}function cn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function hn(){var e=zt.lFrame;return zt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var fn=hn;function dn(){var e=hn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function pn(){return zt.lFrame.selectedIndex}function vn(e){zt.lFrame.selectedIndex=e}function gn(){var e=zt.lFrame;return Mt(e.tView,e.selectedIndex)}function mn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n];i.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,i.afterContentInit),i.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,i.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i.afterContentChecked)),i.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,i.afterViewInit),i.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,i.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,i.afterViewChecked)),null!=i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,i.onDestroy)}}function yn(e,t,n){Cn(e,t,3,n)}function _n(e,t,n,r){(3&e[2])===n&&Cn(e,t,n,r)}function kn(e,t){var n=e[2];(3&n)===t&&(n&=1023,n+=1,e[2]=n)}function Cn(e,t,n,r){for(var i=null!=r?r:-1,a=0,o=void 0!==r?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(a=t[o],null!=r&&a>=r)break}else t[o]<0&&(e[18]+=65536),(a<i||-1==i)&&(wn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function wn(e,t,n,r){var i=n[r]<0,a=n[r+1],o=e[i?-n[r]:n[r]];i?e[2]>>10<e[18]>>16&&(3&e[2])===t&&(e[2]+=1024,a.call(o)):a.call(o)}var bn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Sn(e,t,n){for(var r=Rt(e),i=0;i<n.length;){var a=n[i];if("number"==typeof a){if(0!==a)break;i++;var o=n[i++],s=n[i++],u=n[i++];r?e.setAttribute(t,s,u,o):t.setAttributeNS(o,s,u)}else{var l=a,c=n[++i];En(l)?r&&e.setProperty(t,l,c):r?e.setAttribute(t,l,c):t.setAttribute(l,c),i++}}return i}function xn(e){return 3===e||4===e||6===e}function En(e){return 64===e.charCodeAt(0)}function Tn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||On(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function On(e,t,n,r,i){var a=0,o=e.length;if(-1===t)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===t){o=-1;break}if(s>t){o=a-1;break}}}for(;a<e.length;){var u=e[a];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(e[a+1]=i));if(r===e[a+1])return void(e[a+2]=i)}a++,null!==r&&a++,null!==i&&a++}-1!==o&&(e.splice(o,0,t),a=o+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==i&&e.splice(a++,0,i)}function An(e){return-1!==e}function In(e){return 32767&e}function Rn(e){return e>>16}function Pn(e,t){for(var n=Rn(e),r=t;n>0;)r=r[15],n--;return r}function Nn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}var Dn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(je);function Mn(e){return e instanceof Function?e():e}var Un=!0;function Ln(e){var t=Un;return Un=e,t}var Fn=0;function Vn(e,t){var n=qn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Hn(r.data,e),Hn(t,null),Hn(r.blueprint,null));var i=zn(e,t),a=e.injectorIndex;if(An(i))for(var o=In(i),s=Pn(i,t),u=s[1].data,l=0;l<8;l++)t[a+l]=s[o+l]|u[o+l];return t[a+8]=i,a}function Hn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function zn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Bn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[He]:n.charCodeAt(0)||0;null==r&&(r=n[He]=Fn++);var i=255&r,a=1<<i,o=64&i,s=32&i,u=t.data;128&i?o?s?u[e+7]|=a:u[e+6]|=a:s?u[e+5]|=a:u[e+4]|=a:o?s?u[e+3]|=a:u[e+2]|=a:s?u[e+1]|=a:u[e]|=a}(e,t,n)}function Gn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fe.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[He];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof a){sn(t,e);try{var o=a();if(null!=o||r&fe.Optional)return o;throw new Error("No provider for ".concat(jn(n),"!"))}finally{fn()}}else if("number"==typeof a){if(-1===a)return new Jn(e,t);var s=null,u=qn(e,t),l=-1,c=r&fe.Host?t[16][6]:null;for((-1===u||r&fe.SkipSelf)&&(l=-1===u?zn(e,t):t[u+8],Yn(r,!1)?(s=t[1],u=In(l),t=Pn(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if($n(a,u,h.data)){var f=Qn(u,t,n,s,r,c);if(f!==Wn)return f}Yn(r,t[1].data[u+8]===c)&&$n(a,u,t)?(s=h,u=In(l),t=Pn(l,t)):u=-1}}}if(r&fe.Optional&&void 0===i&&(i=null),0==(r&(fe.Self|fe.Host))){var d=t[9],p=Ke(void 0);try{return d?d.get(n,i,r&fe.Optional):Je(n,i,r&fe.Optional)}finally{Ke(p)}}if(r&fe.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(jn(n),"]"))}var Wn={};function Qn(e,t,n,r,i,a){var o=t[1],s=o.data[e+8],u=Zn(s,o,n,null==r?Et(s)&&Un:r!=o&&3===s.type,i&fe.Host&&a===s);return null!==u?Kn(t,o,u,s):Wn}function Zn(e,t,n,r,i){for(var a=e.providerIndexes,o=t.data,s=65535&a,u=e.directiveStart,l=a>>16,c=i?s+l:e.directiveEnd,h=r?s:s+l;h<c;h++){var f=o[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var d=o[u];if(d&&Ot(d)&&d.type===n)return u}return null}function Kn(e,t,n,r){var i=e[n],a=t.data;if(i instanceof bn){var o=i;if(o.resolving)throw new Error("Circular dep for ".concat(jn(a[n])));var s,u=Ln(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=Ke(o.injectImpl)),sn(e,r);try{i=e[n]=o.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,a=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{o.injectImpl&&Ke(s),Ln(u),o.resolving=!1,fn()}}return i}function $n(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<<e)}function Yn(e,t){return!(e&fe.Self||e&fe.Host&&t)}var Jn=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return Gn(this._tNode,this._lView,e,void 0,t)}}]),e}();function Xn(e){return e.ngDebugContext}function er(e){return e.ngOriginalError}function tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var nr=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||tr}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Xn(e)?Xn(e):this._findContext(er(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=er(e);t&&er(t);)t=er(t);return t}}]),e}(),rr=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}();function ir(e){return e instanceof rr?e.changingThisBreaksApplicationSecurity:e}var ar=!0,or=!1;function sr(){return or=!0,ar}var ur=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,lr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,cr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();function hr(e){var t,n,r=(t=Gt())&&t[12];return r?r.sanitize(cr.URL,e)||"":function(e,t){var n=function(e){return e instanceof rr&&e.getTypeName()||null}(e);if(null!=n&&"URL"!==n){if("ResourceURL"===n)return!0;throw new Error("Required a safe ".concat("URL",", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return"URL"===n}(e)?ir(e):(n=Nn(e),(n=String(n)).match(ur)||n.match(lr)?n:(sr()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(n," (see http://g.co/ng/security#xss)")),"unsafe:"+n))}function fr(e,t){e.__ngContext__=t}function dr(e){throw new Error("Multiple components match node with tagname ".concat(e.tagName))}function pr(){throw new Error("Cannot mix multi providers and regular providers")}function vr(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var a=t.length;if(i+a===r||e.charCodeAt(i+a)<=32)return i}n=i+1}}function gr(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==vr((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function mr(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function yr(e,t,n){for(var r=4,i=e.attrs||[],a=function(e){for(var t=0;t<e.length;t++)if(xn(e[t]))return t;return e.length}(i),o=!1,s=0;s<t.length;s++){var u=t[s];if("number"!=typeof u){if(!o)if(4&r){if(r=2|1&r,""!==u&&!mr(e,u,n)||""===u&&1===t.length){if(_r(r))return!1;o=!0}}else{var l=8&r?u:t[++s];if(8&r&&null!==e.attrs){if(!gr(e.attrs,l,n)){if(_r(r))return!1;o=!0}continue}var c=kr(8&r?"class":u,i,0==e.type&&"ng-template"!==e.tagName,n);if(-1===c){if(_r(r))return!1;o=!0;continue}if(""!==l){var h;h=c>a?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==vr(f,l,0)||2&r&&l!==h){if(_r(r))return!1;o=!0}}}}else{if(!o&&!_r(r)&&!_r(u))return!1;if(o&&_r(u))continue;o=!1,r=u|1&r}}return _r(r)||o}function _r(e){return 0==(1&e)}function kr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var a=!1;i<t.length;){var o=t[i];if(o===e)return i;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=t[++i];"string"==typeof s;)s=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=a?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){if(e[n]===t)return n;n++}return-1}(t,e)}function Cr(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(yr(e,t[r],n))return!0;return!1}function wr(e,t){return e?":not("+t.trim()+")":t}function br(e){for(var t=e[0],n=1,r=2,i="",a=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&r){var s=e[++n];i+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||_r(o)||(t+=wr(a,i),i=""),r=o,a=a||!_r(r);n++}return""!==i&&(t+=wr(a,i)),t}var Sr={};function xr(e){var t=e[3];return St(t)?t[3]:t}function Er(e){Tr(Wt(),Gt(),pn()+e,Jt())}function Tr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&yn(t,i,n)}else{var a=e.preOrderHooks;null!==a&&_n(t,a,0,n)}vn(n)}function Or(e,t){return e<<17|t<<2}function Ar(e){return e>>17&32767}function Ir(e){return 2|e}function Rr(e){return(131068&e)>>2}function Pr(e,t){return-131069&e|t<<2}function Nr(e){return 1|e}function jr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1];if(-1!==a){var o=e.data[a];on(i),o.contentQueries(2,t[a],a)}}}function Dr(e,t,n){return Rt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Mr(e,t,n,r,i,a,o,s,u,l){var c=t.blueprint.slice();return c[0]=i,c[2]=140|r,qt(c),c[3]=c[15]=e,c[8]=n,c[10]=o||e&&e[10],c[11]=s||e&&e[11],c[12]=u||e&&e[12]||null,c[9]=l||e&&e[9]||null,c[6]=a,c[16]=2==t.type?e[16]:c,c}function Ur(e,t,n,r,i,a){var o=n+19,s=e.data[o]||function(e,t,n,r,i,a){var o=Zt(),s=$t(),u=s?o:o&&o.parent,l=e.data[n]=Qr(0,u&&u!==t?u:null,r,n,i,a);return null===e.firstChild&&(e.firstChild=l),o&&(!s||null!=o.child||null===l.parent&&2!==o.type?s||(o.next=l):o.child=l),l}(e,t,o,r,i,a);return Kt(s,!0),s}function Lr(e,t,n){un(t,t[6]);try{var r=e.viewQuery;null!==r&&gi(1,r,n);var i=e.template;null!==i&&Hr(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&jr(e,t),e.staticViewQueries&&gi(2,e.viewQuery,n);var a=e.components;null!==a&&function(e,t){for(var n=0;n<t.length;n++)hi(e,t[n])}(t,a)}finally{t[2]&=-5,dn()}}function Fr(e,t,n,r){var i=t[2];if(256!=(256&i)){un(t,t[6]);var a=Jt();try{qt(t),zt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Hr(e,t,n,2,r);var o=3==(3&i);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&yn(t,s,null)}else{var u=e.preOrderHooks;null!==u&&_n(t,u,0,null),kn(t,0)}if(function(e){for(var t=e[13];null!==t;){var n=void 0;if(St(t)&&(n=t[2])>>1==-1){for(var r=9;r<t.length;r++){var i=t[r],a=i[1];Vt(i)&&Fr(a,i,a.template,i[8])}0!=(1&n)&&li(t,e[16])}t=t[4]}}(t),null!==e.contentQueries&&jr(e,t),!a)if(o){var l=e.contentCheckHooks;null!==l&&yn(t,l)}else{var c=e.contentHooks;null!==c&&_n(t,c,1),kn(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var r=e.expandoStartIndex,i=-1,a=0;a<n.length;a++){var o=n[a];"number"==typeof o?o<=0?(vn(0-o),i=r+=9+n[++a]):r+=o:(null!==o&&(rn(r,i),o(2,t[i])),i++)}}finally{vn(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)ci(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&gi(2,f,r),!a)if(o){var d=e.viewCheckHooks;null!==d&&yn(t,d)}else{var p=e.viewHooks;null!==p&&_n(t,p,2),kn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73)}finally{dn()}}}function Vr(e,t,n,r){var i=t[10],a=!Jt(),o=Ft(t);try{a&&!o&&i.begin&&i.begin(),o&&Lr(e,t,r),Fr(e,t,n,r)}finally{a&&!o&&i.end&&i.end()}}function Hr(e,t,n,r,i){var a=pn();try{vn(-1),2&r&&t.length>19&&Tr(e,t,0,Jt()),n(r,i)}finally{vn(a)}}function qr(e,t,n){if(xt(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var a=e.data[i];a.contentQueries&&a.contentQueries(1,n[i],i)}}function zr(e,t,n){Bt()&&(function(e,t,n,r){var i=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vn(n,t),fr(r,t);for(var o=n.initialInputs,s=i;s<a;s++){var u=e.data[s],l=Ot(u);l&&ai(t,n,u);var c=Kn(t,e,s,n);fr(c,t),null!==o&&oi(0,s-i,c,u,0,o),l&&(Ut(n.index,t)[8]=c)}}(e,t,n,Dt(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,a=e.expandoInstructions,o=e.firstCreatePass,s=n.index-19;try{vn(s);for(var u=r;u<i;u++){var l=e.data[u],c=t[u];null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs?Xr(l,c):o&&a.push(null)}}finally{vn(-1)}}(e,t,n))}function Br(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt,r=t.localNames;if(null!==r)for(var i=t.index+1,a=0;a<r.length;a+=2){var o=r[a+1],s=-1===o?n(t,e):e[o];e[i++]=s}}function Gr(e){return e.tView||(e.tView=Wr(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts))}function Wr(e,t,n,r,i,a,o,s,u,l){var c=19+r,h=c+i,f=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Sr);return n}(c,h);return f[1]={type:e,id:t,blueprint:f,template:n,queries:null,viewQuery:s,node:null,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:u,consts:l}}function Qr(e,t,n,r,i,a){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Zr(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Kr(e,t,n,r,i,a,o,s){var u,l,c=Dt(t,n),h=t.inputs;!s&&null!=h&&(u=h[r])?(Ci(e,n,u,r,i),Et(t)&&function(e,t){var n=Ut(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=o?o(i,t.tagName||"",r):i,Rt(a)?a.setProperty(c,r,i):En(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function $r(e,t,n,r){var i=!1;if(Bt()){var a=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var a=0;a<r.length;a++){var o=r[a];Cr(n,o.selectors,!1)&&(i||(i=[]),Bn(Vn(n,t),e,o.type),Ot(o)?(2&n.flags&&dr(n),ti(e,n),i.unshift(o)):i.push(o))}return i}(e,t,n),o=null===r?null:{"":-1};if(null!==a){var s=0;i=!0,ri(n,e.data.length,a.length);for(var u=0;u<a.length;u++){var l=a[u];l.providersResolver&&l.providersResolver(l)}ei(e,n,a.length);for(var c=!1,h=!1,f=0;f<a.length;f++){var d=a[f];n.mergedAttrs=Tn(n.mergedAttrs,d.hostAttrs),ii(e,t,d),ni(e.data.length-1,d,o),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!c&&(d.onChanges||d.onInit||d.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-19),c=!0),h||!d.onChanges&&!d.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-19),h=!0),Yr(e,d),s+=d.hostVars}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,a=[],o=null,s=null,u=t.directiveStart;u<n;u++){var l=r[u],c=l.inputs;a.push(null!==i?si(c,i):null),o=Zr(c,u,o),s=Zr(l.outputs,u,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=o,t.outputs=s}(e,n),Jr(e,t,s)}o&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var a=n[t[i+1]];if(null==a)throw new Error("Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],a)}}(n,r,o)}return n.mergedAttrs=Tn(n.mergedAttrs,n.attrs),i}function Yr(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Jr(e,t,n){for(var r=0;r<n;r++)t.push(Sr),e.blueprint.push(Sr),e.data.push(null)}function Xr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ei(e,t,n){var r=19-t.index,i=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function ti(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ni(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ot(t)&&(n[""]=e)}}function ri(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ii(e,t,n){e.data.push(n);var r=n.factory||(n.factory=Ct(n.type)),i=new bn(r,Ot(n),null);e.blueprint.push(i),t.push(i)}function ai(e,t,n){var r=Dt(t,e),i=Gr(n),a=e[10],o=fi(e,Mr(e,i,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n)));e[t.index]=o}function oi(e,t,n,r,i,a){var o=a[t];if(null!==o)for(var s=r.setInput,u=0;u<o.length;){var l=o[u++],c=o[u++],h=o[u++];null!==s?r.setInput(n,h,l,c):n[c]=h}}function si(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function ui(e,t,n,r){return new Array(e,!0,-2,t,null,null,r,n,null)}function li(e,t){for(var n=e[5],r=0;r<n.length;r++){var i=n[r],a=i[3][3][16];if(a!==t&&0==(16&a[2])){var o=i[1];Fr(o,i,o.template,i[8])}}}function ci(e,t){var n=Ut(t,e);if(Vt(n)&&80&n[2]){var r=n[1];Fr(r,n,r.template,n[8])}}function hi(e,t){var n=Ut(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),Lr(r,n,n[8])}function fi(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function di(e){for(;e;){e[2]|=64;var t=xr(e);if(At(e)&&!t)return e;e=t}return null}function pi(e,t,n){var r=t[10];r.begin&&r.begin();try{Fr(e,t,e.template,n)}catch(i){throw ki(t,i),i}finally{r.end&&r.end()}}function vi(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=Lt(n),i=r[1];Vr(i,r,i.template,n)}}(e[8])}function gi(e,t,n){on(0),t(e,n)}var mi=Promise.resolve(null);function yi(e){return e[7]||(e[7]=[])}function _i(e){return e.cleanup||(e.cleanup=[])}function ki(e,t){var n=e[9],r=n?n.get(nr,null):null;r&&r.handleError(t)}function Ci(e,t,n,r,i){for(var a=0;a<n.length;){var o=n[a++],s=n[a++],u=t[o],l=e.data[o];null!==l.setInput?l.setInput(u,i,r,s):u[s]=i}}function wi(e,t,n){var r=jt(t,e),i=e[11];Rt(i)?i.setValue(r,n):r.textContent=n}function bi(e,t){var n=t[3];return-1===e.index?St(n)?n:null:n}function Si(e,t){var n=bi(e,t);return n?Di(t[11],n[7]):null}function xi(e,t,n,r,i){if(null!=r){var a,o=!1;St(r)?a=r:bt(r)&&(o=!0,r=r[0]);var s=Nt(r);0===e&&null!==n?null==i?Ni(t,n,s):Pi(t,n,s,i||null):1===e&&null!==n?Pi(t,n,s,i||null):2===e?function(e,t,n){var r=Di(e,t);r&&function(e,t,n,r){Rt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,n,r,i){var a=n[7];a!==Nt(n)&&xi(t,e,r,a,i);for(var o=9;o<n.length;o++){var s=n[o];Fi(s[1],s,e,t,r,a)}}(t,e,a,n,i)}}function Ei(e,t,n,r){var i=Si(e.node,t);i&&Fi(e,t,t[11],n?1:2,i,r)}function Ti(e,t){var n=e[5],r=n.indexOf(t);n.splice(r,1)}function Oi(e,t){if(!(e.length<=9)){var n=9+t,r=e[n];if(r){var i=r[17];null!==i&&i!==e&&Ti(i,r),t>0&&(e[n-1][4]=r[4]);var a=at(e,9+t);Ei(r[1],r,!1,null);var o=a[5];null!==o&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ai(e,t){if(!(256&t[2])){var n=t[11];Rt(n)&&n.destroyNode&&Fi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ri(e[1],e);for(;t;){var n=null;if(bt(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)bt(t)&&Ri(t[1],t),t=Ii(t,e);null===t&&(t=e),bt(t)&&Ri(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ii(e,t){var n;return bt(e)&&(n=e[6])&&2===n.type?bi(n,e):e[3]===t?null:e[3]}function Ri(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];i instanceof bn||n[r+1].call(i)}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var r=t[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var a=n[i+1],o="function"==typeof a?a(t):Nt(t[a]),s=r[n[i+2]],u=n[i+3];"boolean"==typeof u?o.removeEventListener(n[i],s,u):u>=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Rt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&St(t[3])){r!==t[3]&&Ti(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function Pi(e,t,n,r){Rt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Ni(e,t,n){Rt(e)?e.appendChild(t,n):t.appendChild(n)}function ji(e,t,n,r){null!==r?Pi(e,t,n,r):Ni(e,t,n)}function Di(e,t){return Rt(e)?e.parentNode(t):t.parentNode}function Mi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?Si(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return Dt(t,n).parentNode;if(2&r.flags){var a=e.data,o=a[a[r.index].directiveStart].encapsulation;if(o!==lt.ShadowDom&&o!==lt.Native)return null}return Dt(r,n)}(e,r,t);if(null!=i){var a=t[11],o=function(e,t){if(2===e.type){var n=bi(e,t);return null===n?null:Ui(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?Dt(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)ji(a,i,n[s],o);else ji(a,i,n,o)}}function Ui(e,t){var n=9+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return function e(t,n){if(null!==n){var r=n.type;if(3===r)return Dt(n,t);if(0===r)return Ui(-1,t[n.index]);if(4===r||5===r){var i=n.child;if(null!==i)return e(t,i);var a=t[n.index];return St(a)?Ui(-1,a):Nt(a)}var o=t[16],s=o[6],u=xr(o),l=s.projection[n.projection];return null!=l?e(u,l):e(t,n.next)}return null}(r,i)}return t[7]}function Li(e,t,n,r,i,a,o){for(;null!=n;){var s=r[n.index],u=n.type;o&&0===t&&(s&&fr(Nt(s),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Li(e,t,n.child,r,i,a,!1),xi(t,e,i,s,a)):1===u?Vi(e,t,r,n,i,a):xi(t,e,i,s,a)),n=o?n.projectionNext:n.next}}function Fi(e,t,n,r,i,a){Li(n,r,e.node.child,t,i,a,!1)}function Vi(e,t,n,r,i,a){var o=n[16],s=o[6].projection[r.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)xi(t,e,i,s[u],a);else Li(e,t,s,o[3],i,a,!0)}function Hi(e,t,n){Rt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function qi(e,t,n){Rt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var zi,Bi,Gi,Wi=function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}return _createClass(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ai(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,yi(n=this._lView).push(r),t.firstCreatePass&&_i(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){di(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){pi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Xt(!0);try{pi(e,t,n)}finally{Xt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Fi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var o=n[r.index];if(null!==o&&i.push(Nt(o)),St(o))for(var s=9;s<o.length;s++){var u=o[s],l=u[1].firstChild;null!==l&&e(u[1],u,l,i)}var c=r.type;if(4===c||5===c)e(t,n,r.child,i);else if(1===c){var h=n[16],f=h[6],d=xr(h),p=f.projection[r.projection];null!==p&&null!==d&&e(d[1],d,p,i,!0)}r=a?r.projectionNext:r.next}return i}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Qi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e))._view=e,r}return _createClass(n,[{key:"detectChanges",value:function(){vi(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Xt(!0);try{vi(e)}finally{Xt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Wi);function Zi(e,t,n){return zi||(zi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(e)),new zi(Dt(t,n))}function Ki(e,t,n,r){return Bi||(Bi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationView=e,a._declarationTContainer=r,a.elementRef=i,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Mr(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(t)),Lr(t,n,e);var i=new Wi(n);return i._tViewNode=n[6],i}}]),n}(e)),0===n.type?new Bi(r,n,Zi(t,n,r)):null}function $i(e,t,n,r){var i;Gi||(Gi=function(e){_inherits(r,e);var n=_createSuper(r);function r(e,t,i){var a;return _classCallCheck(this,r),(a=n.call(this))._lContainer=e,a._hostTNode=t,a._hostView=i,a}return _createClass(r,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var a=n||this.parentInjector;if(!i&&null==e.ngModule&&a){var o=a.get(tt,null);o&&(i=o)}var s=e.create(a,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),St(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var a=n[3],o=new Gi(a,a[6],a[3]);o.detach(o.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,a=n.length;r>0&&(n[i-1][4]=t),r<a-9?(t[4]=n[i],it(n,9+r,t)):(n.push(t),t[4]=null),t[3]=n;var o=t[17];null!==o&&n!==o&&function(e,t){var n=e[5],r=t[3][3][16];16!=(16&r[2])&&t[16]!==r&&(e[2]|=1),null===n?e[5]=[t]:n.push(t)}(o,t);var s=t[5];null!==s&&s.insertView(e),t[2]|=128}(r,n,this._lContainer,s),Ei(r,n,!0,Ui(s,this._lContainer)),e.attachToViewContainerRef(this),it(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1);(function(e,t){var n=Oi(e,t);n&&Ai(n[1],n)})(this._lContainer,t),at(this._lContainer[8],t)}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=Oi(this._lContainer,t);return n&&null!=at(this._lContainer[8],t)?new Wi(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Zi(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Jn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=zn(this._hostTNode,this._hostView),t=Pn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var a=Rn(e),o=t,s=t[6];a>1;)s=(o=o[15])[6],a--;return s}(e,this._hostView,this._hostTNode);return An(e)&&null!=n?new Jn(n,t):new Jn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var a=r[n.index];if(St(a))(function(e,t){e[2]=-2})(i=a);else{var o;if(4===n.type)o=Nt(a);else if(o=r[11].createComment(""),At(r)){var s=r[11],u=Dt(n,r);Pi(s,Di(s,u),o,function(e,t){return Rt(e)?e.nextSibling(t):t.nextSibling}(s,u))}else Mi(r[1],r,o,n);r[n.index]=i=ui(a,r,o,n),fi(r,i)}return new Gi(i,n,r)}var Yi=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Ji()},e}(),Ji=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Et(e)){var r=Ut(e.index,t);return new Wi(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Wi(t[16],t):null}(Zt(),Gt(),e)},Xi=new qe("Set Injector scope."),ea={},ta={},na=[],ra=void 0;function ia(){return void 0===ra&&(ra=new et),ra}function aa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new oa(e,n,t||ia(),r)}var oa=function(){function e(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&rt(n,(function(e){return i.processProvider(e,t,n)})),rt([t],(function(e){return i.processInjectorType(e,[],o)})),this.records.set(ze,ua(void 0,this));var s=this.records.get(Xi);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:Se(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Be,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe.Default;this.assertNotDestroyed();var r,i=Ze(this);try{if(!(n&fe.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(r=e)||"object"==typeof r&&r instanceof qe)&&ge(e);a=o&&this.injectableDefInScope(o)?ua(sa(e),ea):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&fe.Self?ia():this.parent).get(e,t=n&fe.Optional&&t===Be?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Se(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Se(t);if(Array.isArray(t))i=t.map(Se).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Se(s)))}i="{".concat(a.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Ge,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Ze(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(Se(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=Oe(e)))return!1;var i=ye(e),a=null==i&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(i=ye(a)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(o);try{rt(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;rt(i,(function(e){return r.processProvider(e,n,i||na)}))},c=0;c<u.length;c++)l(c)}this.injectorDefTypes.add(o),this.records.set(o,ua(i.factory,ea));var h=i.providers;if(null!=h&&!s){var f=e;rt(h,(function(e){return r.processProvider(e,f,h)}))}return void 0!==a&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=ca(e=Oe(e))?e:Oe(e&&e.provide),i=function(e,t,n){return la(e)?ua(void 0,e.useValue):ua(function(e,t,n){var r,i=void 0;if(ca(e)){var a=Oe(e);return Ct(a)||sa(a)}if(la(e))i=function(){return Oe(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(Xe(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ye(Oe(e.useExisting))};else{var o=Oe(e&&(e.useClass||e.provide));if(o||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Se(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Ct(o)||sa(o);i=function(){return _construct(o,_toConsumableArray(Xe(e.deps)))}}return i}(e,t,n),ea)}(e,t,n);if(ca(e)||!0!==e.multi){var a=this.records.get(r);a&&void 0!==a.multi&&pr()}else{var o=this.records.get(r);o?void 0===o.multi&&pr():((o=ua(void 0,ea,!0)).factory=function(){return Xe(o.multi)},this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===ta?function(e){throw new Error("Cannot instantiate cyclic dependency! ".concat(e))}(Se(e)):t.value===ea&&(t.value=ta,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function sa(e){var t=ge(e),n=null!==t?t.factory:Ct(e);if(null!==n)return n;var r=ye(e);if(null!==r)return r.factory;if(e instanceof qe)throw new Error("Token ".concat(Se(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=function(e,t){for(var n=[],r=0;r<e;r++)n.push("?");return n}(t);throw new Error("Can't resolve all parameters for ".concat(Se(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[_e]||e[we]||e[Ce]&&e[Ce]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ua(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function la(e){return null!==e&&"object"==typeof e&&We in e}function ca(e){return"function"==typeof e}var ha=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=aa(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},fa=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ha(e,t,""):ha(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Be,e.NULL=new et,e.\u0275prov=pe({token:e,providedIn:"any",factory:function(){return Ye(ze)}}),e.__NG_ELEMENT_ID__=-1,e}(),da=new qe("AnalyzeForEntryComponents"),pa=new Map,va=new Set;function ga(e){return"string"==typeof e?e:e.text()}function ma(e,t){for(var n=e.styles,r=e.classes,i=0,a=0;a<t.length;a++){var o=t[a];"number"==typeof o?i=o:1==i?r=xe(r,o):2==i&&(n=xe(n,o+": "+t[++a]+";"))}null!==n&&(e.styles=n),null!==r&&(e.classes=r)}var ya=null;function _a(){if(!ya){var e=je.Symbol;if(e&&e.iterator)ya=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ya=r)}}return ya}function ka(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Ca(e){return!!wa(e)&&(Array.isArray(e)||!(e instanceof Map)&&_a()in e)}function wa(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ba(e,t,n){return e[t]=n}function Sa(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function xa(e,t,n,r){var i=Gt();return Sa(i,tn(),t)&&(Wt(),function(e,t,n,r,i,a){var o=Dt(e,t),s=t[11];if(null==r)Rt(s)?s.removeAttribute(o,n,a):o.removeAttribute(n);else{var u=null==i?Nn(r):i(r,e.tagName||"",n);Rt(s)?s.setAttribute(o,n,u,a):a?o.setAttributeNS(a,n,u):o.setAttribute(n,u)}}(gn(),i,e,t,n,r)),xa}function Ea(e,t,n,r,i,a,o,s){var u=Gt(),l=Wt(),c=e+19,h=l.firstCreatePass?function(e,t,n,r,i,a,o,s,u){var l=t.consts,c=Ur(t,n[6],e,0,o||null,Ht(l,s));$r(t,n,c,Ht(l,u)),mn(t,c);var h=c.tViews=Wr(2,-1,r,i,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l),f=Qr(0,null,2,-1,null,null);return f.injectorIndex=c.injectorIndex,h.node=f,null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(e,l,u,t,n,r,i,a,o):l.data[c];Kt(h,!1);var f=u[11].createComment("");Mi(l,u,f,h),fr(f,u),fi(u,u[c]=ui(f,u,f,h)),Tt(h)&&zr(l,u,h),null!=o&&Br(u,h,s)}function Ta(e){return function(e,t){return e[t+19]}(zt.lFrame.contextLView,e)}function Oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default,n=Gt();return null==n?Ye(e,t):Gn(Zt(),n,Oe(e),t)}function Aa(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i<r;){var a=n[i];if(xn(a))break;if(0===a)i+=2;else if("number"==typeof a)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(a===t)return n[i+1];i+=2}}return null}(Zt(),e)}function Ia(){throw new Error("invalid")}function Ra(e,t,n){var r=Gt();return Sa(r,tn(),t)&&Kr(Wt(),gn(),r,e,t,r[11],n,!1),Ra}function Pa(e,t,n,r,i){var a=i?"class":"style";Ci(e,n,t.inputs[a],a,r)}function Na(e,t,n,r){var i=Gt(),a=Wt(),o=19+e,s=i[11],u=i[o]=Dr(t,s,zt.lFrame.currentNamespace),l=a.firstCreatePass?function(e,t,n,r,i,a,o){var s=t.consts,u=Ht(s,a),l=Ur(t,n[6],e,3,i,u);return $r(t,n,l,Ht(s,o)),null!==l.mergedAttrs&&ma(l,l.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,l),l}(e,a,i,0,t,n,r):a.data[o];Kt(l,!0);var c=l.mergedAttrs;null!==c&&Sn(s,u,c);var h=l.classes;null!==h&&qi(s,u,h);var f=l.styles;null!==f&&Hi(s,u,f),Mi(a,i,u,l),0===zt.lFrame.elementDepthCount&&fr(u,i),zt.lFrame.elementDepthCount++,Tt(l)&&(zr(a,i,l),qr(a,l,i)),null!==r&&Br(i,l)}function ja(){var e=Zt();$t()?Yt():Kt(e=e.parent,!1);var t=e;zt.lFrame.elementDepthCount--;var n=Wt();n.firstCreatePass&&(mn(n,e),xt(e)&&n.queries.elementEnd(e)),null!==t.classes&&function(e){return 0!=(16&e.flags)}(t)&&Pa(n,t,Gt(),t.classes,!0),null!==t.styles&&function(e){return 0!=(32&e.flags)}(t)&&Pa(n,t,Gt(),t.styles,!1)}function Da(e,t,n,r){Na(e,t,n,r),ja()}function Ma(e,t,n){var r,i;(function(e,t,n){var r=Gt(),i=Wt(),a=e+19,o=i.firstCreatePass?function(e,t,n,r,i){var a=t.consts,o=Ht(a,r),s=Ur(t,n[6],e,4,"ng-container",o);return null!==o&&ma(s,o),$r(t,n,s,Ht(a,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,i,r,t,n):i.data[a];Kt(o,!0);var s=r[a]=r[11].createComment("");Mi(i,r,s,o),fr(s,r),Tt(o)&&(zr(i,r,o),qr(i,o,r)),null!=n&&Br(r,o)})(e,t,n),r=Zt(),i=Wt(),$t()?Yt():Kt(r=r.parent,!1),i.firstCreatePass&&(mn(i,r),xt(r)&&i.queries.elementEnd(r))}function Ua(){return Gt()}function La(e){return!!e&&"function"==typeof e.then}function Fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Gt(),a=Wt(),o=Zt();return function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Tt(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=yi(t),h=!0;if(3===r.type){var f=Dt(r,t),d=s?s(f):ct,p=d.target||f,v=c.length,g=s?function(e){return s(Nt(e[r.index])).target}:r.index;if(Rt(n)){var m=null;if(!s&&u&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var a=0;a<i.length-1;a+=2){var o=i[a];if(o===n&&i[a+1]===r){var s=t[7],u=i[a+2];return s.length>u?s[u]:null}"string"==typeof o&&(a+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=a,m.__ngLastListenerFn__=a,h=!1;else{a=Ha(r,t,a,!1);var y=n.listen(d.name||p,i,a);c.push(a,y),l&&l.push(i,g,v,v+1)}}else a=Ha(r,t,a,!0),p.addEventListener(i,a,o),c.push(a),l&&l.push(i,g,v,o)}var _,k=r.outputs;if(h&&null!==k&&(_=k[i])){var C=_.length;if(C)for(var w=0;w<C;w+=2){var b=t[_[w]][_[w+1]].subscribe(a),S=c.length;c.push(a,b),l&&l.push(i,r.index,S,-(S+1))}}}(a,i,i[11],o,e,t,n,r),Fa}function Va(e,t,n){try{return!1!==t(n)}catch(r){return ki(e,r),!1}}function Ha(e,t,n,r){return function i(a){if(a===Function)return n;var o=2&e.flags?Ut(e.index,t):t;0==(32&t[2])&&di(o);for(var s=Va(t,n,a),u=i.__ngNextListenerFn__;u;)s=Va(t,u,a)&&s,u=u.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function qa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(zt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,zt.lFrame.contextLView))[8]}(e)}var za=[];function Ba(e,t,n,r,i){for(var a=e[n+1],o=null===t,s=r?Ar(a):Rr(a),u=!1;0!==s&&(!1===u||o);){var l=e[s+1];Ga(e[s],t)&&(u=!0,e[s+1]=r?Nr(l):Ir(l)),s=r?Ar(l):Rr(l)}u&&(e[n+1]=r?Ir(a):Nr(a))}function Ga(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&st(e,t)>=0}function Wa(e,t){return function(e,t,n,r){var i,a,o=Gt(),s=Wt(),u=nn(2);(s.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var a=i[pn()+19],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(a)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=zt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),a=t.residualClasses;if(null===i)0===t.classBindings&&(n=Za(n=Qa(null,e,t,n,!0),t.attrs,!0),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=Qa(i,e,t,n,!0),null===a){var s=function(e,t,n){var r=t.classBindings;if(0!==Rr(r))return e[Ar(r)]}(e,t);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[Ar(t.classBindings)]=r}(e,t,0,s=Za(s=Qa(null,e,t,s[1],!0),t.attrs,!0))}else a=function(e,t,n){for(var r=void 0,i=t.directiveEnd,a=1+t.directiveStylingLast;a<i;a++)r=Za(r,e[a].hostAttrs,!0);return Za(r,t.attrs,!0)}(e,t)}return void 0!==a&&(t.residualClasses=a),n}(i,a,t),function(e,t,n,r,i,a){var o=t.classBindings,s=Ar(o),u=Rr(o);e[r]=n;var l,c=!1;if(Array.isArray(n)){var h=n;(null===(l=h[1])||st(h,l)>0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=Ar(e[s+1]);e[r+1]=Or(f,s),0!==f&&(e[f+1]=Pr(e[f+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=Or(s,0),0!==s&&(e[s+1]=Pr(e[s+1],r)),s=r;else e[r+1]=Or(u,0),0===s?s=r:e[u+1]=Pr(e[u+1],r),u=r;c&&(e[r+1]=Ir(e[r+1])),Ba(e,l,r,!0),Ba(e,l,r,!1),function(e,t,n,r,i){var a=e.residualClasses;null!=a&&"string"==typeof t&&st(a,t)>=0&&(n[r+1]=Nr(n[r+1]))}(t,l,e,r),o=Or(s,u),t.classBindings=o}(i,a,t,n,o)}}(s,e,u),t!==Sr&&Sa(o,u,t))&&(null==n&&(i=null===(a=zt.lFrame)?null:a.currentSanitizer)&&(n=i),function(e,t,n,r,i,a,o,s){if(3===t.type){var u=e.data,l=u[s+1];$a(1==(1&l)?Ka(u,t,n,i,Rr(l),!0):void 0)||($a(a)||2==(2&l)&&(a=Ka(u,null,n,i,s,!0)),function(e,t,n,r,i){var a=Rt(e);i?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r)}(r,0,jt(pn(),n),i,a))}}(s,s.data[pn()+19],o,o[11],e,o[u+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=Se(ir(e)))),e}(t,n),0,u))}(e,t,null),Wa}function Qa(e,t,n,r,i){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(r=Za(r,(a=t[s]).hostAttrs,i),a!==e);)s++;return null!==e&&(n.directiveStylingLast=s),r}function Za(e,t,n){var r,i,a,o,s=n?1:2,u=-1;if(null!==t)for(var l=0;l<t.length;l++){var c=t[l];"number"==typeof c?u=c:u===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),r=e,i=c,a=!!n||t[++l],o=void 0,(o=st(r,i))>=0?r[1|o]=a:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,o=~o,i,a))}return void 0===e?null:e}function Ka(e,t,n,r,i,a){for(var o=null===t,s=void 0;i>0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===Sr&&(f=h?za:void 0);var d=h?ot(f,r):c===r?f:void 0;if(l&&!$a(d)&&(d=ot(u,r)),$a(d)&&(s=d,o))return s;var p=e[i+1];i=o?Ar(p):Rr(p)}if(null!==t){var v=a?t.residualClasses:t.residualStyles;null!=v&&(s=ot(v,r))}return s}function $a(e){return void 0!==e}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Gt(),r=Wt(),i=e+19,a=r.firstCreatePass?Ur(r,n[6],e,3,null,null):r.data[i],o=n[i]=function(e,t){return Rt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Mi(r,n,o,a),Kt(a,!1)}function Ja(e){return Xa("",e,""),Ja}function Xa(e,t,n){var r=Gt(),i=function(e,t,n,r){return Sa(e,tn(),n)?t+Nn(n)+r:Sr}(r,e,t,n);return i!==Sr&&wi(r,pn(),i),Xa}function eo(e,t,n,r,i){var a=Gt(),o=function(e,t,n,r,i,a){var o=function(e,t,n,r){var i=Sa(e,t,n);return Sa(e,t+1,r)||i}(e,zt.lFrame.bindingIndex,n,i);return nn(2),o?t+Nn(n)+r+Nn(i)+a:Sr}(a,e,t,n,r,i);return o!==Sr&&wi(a,pn(),o),eo}function to(e,t,n){var r=Gt();return Sa(r,tn(),t)&&Kr(Wt(),gn(),r,e,t,r[11],n,!0),to}function no(e,t){var n=Lt(e)[1],r=n.data.length-1;mn(n,{directiveStart:r,directiveEnd:r+1})}var ro=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function io(e){e.type.prototype.ngOnChanges&&(e.setInput=ao,e.onChanges=function(){var e=oo(this),t=e&&e.current;if(t){var n=e.previous;if(n===ct)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function ao(e,t,n,r){var i=oo(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ct,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[n],u=o[s];a[s]=new ro(u&&u.currentValue,t,o===ct),e[r]=t}function oo(e){return e.__ngSimpleChanges__||null}io.ngInherit=!0;var so=function e(){_classCallCheck(this,e)},uo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Se(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),lo=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new uo,e}(),co=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ho(e)},e}(),ho=function(e){return Zi(e,Zt(),Gt())},fo=function e(){_classCallCheck(this,e)},po=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),vo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return go()},e}(),go=function(){var e=Gt(),t=Ut(Zt().index,e);return function(e){var t=e[11];if(Rt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(bt(t)?t:e)},mo=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=pe({token:e,providedIn:"root",factory:function(){return null}}),e}(),yo=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("9.0.7"),_o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Ca(e)}},{key:"create",value:function(e){return new Co(e)}}]),e}(),ko=function(e,t){return t},Co=function(){function e(t){_classCallCheck(this,e),this.length=0,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=t||ko}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var a=!n||t&&t.currentIndex<xo(n,r,i)?t:n,o=xo(a,r,i),s=a.currentIndex;if(a===n)r--,n=n._nextRemoved;else if(t=t._next,null==a.previousIndex)r++;else{i||(i=[]);var u=o-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<u&&(i[c]=h+1)}i[a.previousIndex]=l-u}}o!==s&&e(a,o,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Ca(e))throw new Error("Error trying to diff '".concat(Se(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,a=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],i=this._trackByFn(s,r),null!==a&&ka(a.trackById,i)?(o&&(a=this._verifyReinsertion(a,r,i,s)),ka(a.item,r)||this._addIdentityChange(a,r)):(a=this._mismatch(a,r,i,s),o=!0),a=a._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[_a()]();!(r=i.next()).done;)t(r.value)}(e,(function(e){i=t._trackByFn(n,e),null!==a&&ka(a.trackById,i)?(o&&(a=t._verifyReinsertion(a,e,i,n)),ka(a.item,e)||t._addIdentityChange(a,e)):(a=t._mismatch(a,e,i,n),o=!0),a=a._next,n++})),this.length=n;return this._truncate(a),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(ka(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ka(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new wo(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}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)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new So),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new So),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),wo=function e(t,n){_classCallCheck(this,e),this.item=t,this.trackById=n,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},bo=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&ka(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),So=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new bo,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function xo(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||wa(e)}},{key:"create",value:function(){return new To}}]),e}(),To=function(){function e(){_classCallCheck(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||wa(e)))throw new Error("Error trying to diff '".concat(Se(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var a=new Oo(e);return this._records.set(e,a),a.currentValue=t,this._addToAdditions(a),a}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){ka(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),Oo=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Ao=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new le]]}}}]),e}();return e.\u0275prov=pe({token:e,providedIn:"root",factory:function(){return new e([new _o])}}),e}(),Io=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new le]]}}}]),e}();return e.\u0275prov=pe({token:e,providedIn:"root",factory:function(){return new e([new Eo])}}),e}(),Ro=[new Eo],Po=new Ao([new _o]),No=new Io(Ro),jo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Do(e,co)},e}(),Do=function(e,t){return Ki(e,t,Zt(),Gt())},Mo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Uo(e,co)},e}(),Uo=function(e,t){return $i(e,t,Zt(),Gt())},Lo={},Fo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=kt(e);return new qo(t,this.ngModule)}}]),n}(lo);function Vo(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ho=new qe("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Dn}}),qo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(br).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){var i,a,o=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var a=e.get(n,Lo,i);return a!==Lo||r===Lo?a:t.get(n,r,i)}}}(e,r.injector):e,s=o.get(fo,Pt),u=o.get(mo,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Rt(e))return e.selectRootElement(t,n===lt.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Dr(c,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),p={components:[],scheduler:Dn,clean:mi,playerHandler:null,flags:0},v=Wr(0,-1,null,1,0,null,null,null,null,null),g=Mr(null,v,p,f,null,null,s,l,u,o);un(g,null);try{var m=function(e,t,n,r,i,a){var o=n[1];n[19]=e;var s=Ur(o,null,0,3,null,null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(ma(s,u),null!==e&&(Sn(i,e,u),null!==s.classes&&qi(i,e,s.classes),null!==s.styles&&Hi(i,e,s.styles)));var l=r.createRenderer(e,t),c=Mr(n,Gr(t),null,t.onPush?64:16,n[19],s,r,l,void 0);return o.firstCreatePass&&(Bn(Vn(s,n),o,t.type),ti(o,s),ri(s,n.length,1)),fi(n,c),n[19]=c}(h,this.componentDef,g,s,l);if(h)if(n)Sn(l,h,["ng-version",yo.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var a=e[r];if("string"==typeof a)2===i?""!==a&&t.push(a,e[++r]):8===i&&n.push(a);else{if(!_r(i))break;i=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),_=y.attrs,k=y.classes;_&&Sn(l,h,_),k&&k.length>0&&qi(l,h,k.join(" "))}a=Mt(g[1],0),t&&(a.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var a=n[1],o=function(e,t,n){var r=Zt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ei(e,r,1),ii(e,t,n));var i=Kn(t,e,t.length-1,r);fr(i,t);var a=Dt(r,t);return a&&fr(a,t),i}(a,n,t);r.components.push(o),e[8]=o,i&&i.forEach((function(e){return e(o,t)})),t.contentQueries&&t.contentQueries(1,o,n.length-1);var s=Zt();if(a.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){vn(s.index-19);var u=n[1];Yr(u,t),Jr(u,n,t.hostVars),Xr(t,o)}return o}(m,this.componentDef,g,p,[no]),Lr(v,g,null)}finally{dn()}var C=new zo(this.componentType,i,Zi(co,a,g),g,a);return n&&!d||(C.hostView._tViewNode.child=a),C}},{key:"inputs",get:function(){return Vo(this.componentDef.inputs)}},{key:"outputs",get:function(){return Vo(this.componentDef.outputs)}}]),n}(so),zo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s,u,l,c;return _classCallCheck(this,n),(s=t.call(this)).location=i,s._rootLView=a,s._tNode=o,s.destroyCbs=[],s.instance=r,s.hostView=s.changeDetectorRef=new Qi(a),s.hostView._tViewNode=(u=a[1],l=a,null==(c=u.node)&&(u.node=c=Qr(0,null,2,-1,null,null)),l[6]=c),s.componentType=e,s}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Jn(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Bo=void 0,Go=["en",[["a","p"],["AM","PM"],Bo],[["AM","PM"],Bo,Bo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Bo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Bo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Bo,"{1} 'at' {0}",Bo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Wo={};function Qo(e){return e in Wo||(Wo[e]=je.ng&&je.ng.common&&je.ng.common.locales&&je.ng.common.locales[e]),Wo[e]}var Zo=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function Ko(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var $o=new Map,Yo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Fo(_assertThisInitialized(i));var a=wt(e),o=e[Fe]||null;return o&&Ko(o),i._bootstrapComponents=Mn(a.bootstrap),i._r3Injector=aa(e,r,[{provide:tt,useValue:_assertThisInitialized(i)},{provide:lo,useValue:i.componentFactoryResolver}],Se(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe.Default;return e===fa||e===tt||e===ze?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(tt),Jo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==wt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Se(t)," vs ").concat(Se(t.name)))})(n,$o.get(n),t),$o.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new Yo(this.moduleType,e)}}]),n}(nt);function Xo(e,t,n,r){return function(e,t,n,r,i,a){var o=t+n;return Sa(e,o,i)?ba(e,o+1,a?r.call(a,i):r(i)):function(e,t){var n=e[t];return n===Sr?void 0:n}(e,o+1)}(Gt(),en(),e,t,n,r)}var es=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,a=function(e){return null},o=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(o=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)},t&&(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(o=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,a,o);return e instanceof f&&e.add(s),s}}]),n}(O);function ts(){return this._results[_a()]()}var ns=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new es,this.length=0;var t=_a(),n=e.prototype;n[t]||(n[t]=ts)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),rs=function(){function e(t){_classCallCheck(this,e),this.queryList=t,this.matches=null}return _createClass(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),is=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],a=0;a<r;a++){var o=n.getByIndex(a);i.push(this.queries[o.indexInDeclarationView].clone())}return new e(i)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==ps(e,t).matches&&this.queries[t].setDirty()}}]),e}(),as=function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},os=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(t,i);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"track",value:function(e){this.queries.push(e)}},{key:"length",get:function(){return this.queries.length}}]),e}(),ss=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r<n.length;r++)this.matchTNodeWithReadOption(e,t,us(t,n[r]));else{var i=this.metadata.predicate;i===jo?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Zn(t,e,i,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===co||r===Mo||r===jo&&0===t.type)this.addMatch(t.index,-2);else{var i=Zn(t,e,r,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function us(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ls(e,t,n,r){return-1===n?function(e,t){return 3===e.type||4===e.type?Zi(co,e,t):0===e.type?Ki(jo,co,e,t):null}(t,e):-2===n?function(e,t,n){return n===co?Zi(co,t,e):n===jo?Ki(jo,co,t,e):n===Mo?$i(Mo,co,t,e):void 0}(e,t,r):Kn(e,e[1],n,t)}function cs(e,t,n,r){var i=t[5].queries[r];if(null===i.matches){for(var a=e.data,o=n.matches,s=[],u=0;u<o.length;u+=2){var l=o[u];s.push(l<0?null:ls(t,a[l],o[u+1],n.metadata.read))}i.matches=s}return i.matches}function hs(e){var t=Gt(),n=Wt(),r=an();on(r+1);var i=ps(n,r);if(e.dirty&&Ft(t)===i.metadata.isStatic){if(null===i.matches)e.reset([]);else{var a=i.crossesNgTemplate?function e(t,n,r,i){var a=t.queries.getByIndex(r),o=a.matches;if(null!==o)for(var s=cs(t,n,a,r),u=0;u<o.length;u+=2){var l=o[u];if(l>0)i.push(s[u/2]);else{for(var c=o[u+1],h=n[-l],f=9;f<h.length;f++){var d=h[f];d[17]===d[3]&&e(d[1],d,c,i)}if(null!==h[5])for(var p=h[5],v=0;v<p.length;v++){var g=p[v];e(g[1],g,c,i)}}}return i}(n,t,r,[]):cs(n,t,i,r);e.reset(a),e.notifyOnChanges()}return!0}return!1}function fs(e,t,n,r){!function(e,t,n,r,i,a,o,s){e.firstCreatePass&&(function(e,t,n){null===e.queries&&(e.queries=new os),e.queries.track(new ss(t,n))}(e,new as(n,r,!1,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s)),function(e,t){var n=new ns;!function(e,t,n,r){var i=yi(t);i.push(n),e.firstCreatePass&&_i(e).push(r,i.length-1)}(e,t,n,n.destroy),null===t[5]&&(t[5]=new is),t[5].queries.push(new rs(n))}(e,t)}(Wt(),Gt(),t,n,r,0,Zt(),e)}function ds(){return e=Gt(),t=an(),e[5].queries[t].queryList;var e,t}function ps(e,t){return e.queries.getByIndex(t)}function vs(e,t){return Ki(jo,co,e,t)}var gs=new qe("Application Initializer"),ms=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();La(i)&&t.push(i)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ye(gs,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),ys=new qe("AppId"),_s={provide:ys,useFactory:function(){return"".concat(ks()).concat(ks()).concat(ks())},deps:[]};function ks(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Cs=new qe("Platform Initializer"),ws=new qe("Platform ID"),bs=new qe("appBootstrapListener"),Ss=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),xs=new qe("LocaleId"),Es=new qe("DefaultCurrencyCode"),Ts=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},Os=function(e){return new Jo(e)},As=Os,Is=function(e){return Promise.resolve(Os(e))},Rs=function(e){var t=Os(e),n=Mn(wt(e).declarations).reduce((function(e,t){var n=kt(t);return n&&e.push(new qo(n)),e}),[]);return new Ts(t,n)},Ps=Rs,Ns=function(e){return Promise.resolve(Rs(e))},js=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=As,this.compileModuleAsync=Is,this.compileModuleAndAllComponentsSync=Ps,this.compileModuleAndAllComponentsAsync=Ns}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),Ds=new qe("compilerOptions"),Ms=Promise.resolve(0);function Us(e){"undefined"==typeof Zone?Ms.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Ls=function(){function e(t){var n,r,i=t.enableLongStackTrace,a=void 0!==i&&i,o=t.shouldCoalesceEventChangeDetection,s=void 0!==o&&o;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new es(!1),this.onMicrotaskEmpty=new es(!1),this.onStable=new es(!1),this.onError=new es(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=je.requestAnimationFrame,t=je.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(je,(function(){e.lastRequestAnimationFrameId=-1,qs(e),Hs(e)})),qs(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(e,t,i,a,o,s){try{return zs(n),e.invokeTask(i,a,o,s)}finally{r&&"eventTask"===a.type&&r(),Bs(n)}},onInvoke:function(e,t,r,i,a,o,s){try{return zs(n),e.invoke(r,i,a,o,s)}finally{Bs(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,qs(n),Hs(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+r,e,Vs,Fs,Fs);try{return i.runTask(a,t,n)}finally{i.cancelTask(a)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Fs(){}var Vs={};function Hs(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function qs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function zs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bs(e){e._nesting--,Hs(e)}var Gs,Ws=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new es,this.onMicrotaskEmpty=new es,this.onStable=new es,this.onError=new es}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),Qs=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Ls.assertNotInAngularZone(),Us((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Us((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ye(Ls))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),Zs=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Ks.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ks.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),Ks=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),$s=function(e,t,n){var r=new Jo(n);if(0===pa.size)return Promise.resolve(r);var i,a,o=(i=e.get(Ds,[]).concat(t).map((function(e){return e.providers})),a=[],i.forEach((function(e){return e&&a.push.apply(a,_toConsumableArray(e))})),a);if(0===o.length)return Promise.resolve(r);var s=function(){var e=je.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=fa.create({providers:o}).get(s.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(u.get(e))}(e);n.set(e,t=r.then(ga))}return t}return pa.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var a=e.styleUrls,o=e.styles||(e.styles=[]),s=e.styles.length;a&&a.forEach((function(t,n){o.push(""),i.push(r(t).then((function(r){o[s+n]=r,a.splice(a.indexOf(t),1),0==a.length&&(e.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(e){va.delete(e)}(n)}));t.push(u)})),pa=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},Ys=new qe("AllowMultipleToken"),Js=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Xs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new qe(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=eu();if(!a||a.injector.get(Ys,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var o=n.concat(t).concat({provide:i,useValue:!0},{provide:Xi,useValue:"platform"});!function(e){if(Gs&&!Gs.destroyed&&!Gs.injector.get(Ys,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Gs=e.get(tu);var t=e.get(Cs,null);t&&t.forEach((function(e){return e()}))}(fa.create({providers:o,name:r}))}return function(e){var t=eu();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function eu(){return Gs&&!Gs.destroyed?Gs:null}var tu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,a=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Ws:("zone.js"===n?void 0:n)||new Ls({enableLongStackTrace:sr(),shouldCoalesceEventChangeDetection:r})),o=[{provide:Ls,useValue:a}];return a.run((function(){var t=fa.create({providers:o,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(nr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return au(i._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var a=((o=n.injector.get(ms)).runInitializers(),o.donePromise.then((function(){return Ko(n.injector.get(xs,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return La(a)?a.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):a}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var o}(r,a)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=nu({},n);return $s(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(iu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Se(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ye(fa))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}();function nu(e,t){return Array.isArray(t)?t.reduce(nu,e):Object.assign(Object.assign({},e),t)}var ru,iu=((ru=function(){function e(t,n,r,i,a,o){var s=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=sr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new w((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new w((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){Ls.assertNotInAngularZone(),Us((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){Ls.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=$(u,l.pipe((function(e){return Y()(re(ae)(e))})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=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.");n=e instanceof so?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(tt),a=n.create(fa.NULL,[],t||n.selector,i);a.onDestroy((function(){r._unloadComponent(a)}));var o=a.injector.get(Qs,null);return o&&a.injector.get(Zs).registerApplication(a.location.nativeElement,o),this._loadComponent(a),sr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(a){i.e(a)}finally{i.f()}}}catch(o){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(o)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;au(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bs,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),au(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||ru)(Ye(Ls),Ye(Ss),Ye(fa),Ye(nr),Ye(lo),Ye(ms))},ru.\u0275prov=pe({token:ru,factory:ru.\u0275fac}),ru);function au(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ou=function e(){_classCallCheck(this,e)},su=function e(){_classCallCheck(this,e)},uu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},lu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||uu}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],a=r[1];return void 0===a&&(a="default"),n("zn8P")(i).then((function(e){return e[a]})).then((function(e){return cu(e,i,a)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],a="NgFactory";return void 0===i&&(i="default",a=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+a]})).then((function(e){return cu(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ye(js),Ye(su,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}();function cu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var hu=Xs(null,"core",[{provide:ws,useValue:"unknown"},{provide:tu,deps:[fa]},{provide:Zs,deps:[]},{provide:Ss,deps:[]}]),fu=[{provide:iu,useClass:iu,deps:[Ls,Ss,fa,nr,lo,ms]},{provide:Ho,deps:[Ls],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ms,useClass:ms,deps:[[new le,gs]]},{provide:js,useClass:js,deps:[]},_s,{provide:Ao,useFactory:function(){return Po},deps:[]},{provide:Io,useFactory:function(){return No},deps:[]},{provide:xs,useFactory:function(e){return Ko(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ue(xs),new le,new he]]},{provide:Es,useValue:"USD"}],du=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=mt({type:e}),e.\u0275inj=ve({factory:function(t){return new(t||e)(Ye(iu))},providers:fu}),e}(),pu=null;function vu(){return pu}var gu,mu=new qe("DocumentToken"),yu=((gu=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gu)},gu.\u0275prov=pe({factory:_u,token:gu,providedIn:"platform"}),gu);function _u(){return Ye(wu)}var ku,Cu=new qe("Location Initialized"),wu=((ku=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=vu().getLocation(),this._history=vu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return vu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){vu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){vu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){bu()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){bu()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(yu)).\u0275fac=function(e){return new(e||ku)(Ye(mu))},ku.\u0275prov=pe({factory:Su,token:ku,providedIn:"platform"}),ku);function bu(){return!!window.history.pushState}function Su(){return new wu(Ye(mu))}function xu(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Eu(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Tu(e){return e&&"?"!==e[0]?"?"+e:e}var Ou,Au=((Ou=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ou)},Ou.\u0275prov=pe({factory:Iu,token:Ou,providedIn:"root"}),Ou);function Iu(e){var t=Ye(mu).location;return new Du(Ye(yu),t&&t.origin||"")}var Ru,Pu,Nu,ju=new qe("appBaseHref"),Du=((Nu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;if(_classCallCheck(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==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.");return i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return xu(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Tu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Tu(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Tu(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Au)).\u0275fac=function(e){return new(e||Nu)(Ye(yu),Ye(ju,8))},Nu.\u0275prov=pe({token:Nu,factory:Nu.\u0275fac}),Nu),Mu=((Pu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=xu(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Tu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Tu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Au)).\u0275fac=function(e){return new(e||Pu)(Ye(yu),Ye(ju,8))},Pu.\u0275prov=pe({token:Pu,factory:Pu.\u0275fac}),Pu),Uu=((Ru=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new es,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Eu(Fu(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Tu(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Fu(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tu(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tu(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ru)(Ye(Au),Ye(yu))},Ru.normalizeQueryParams=Tu,Ru.joinWithSlash=xu,Ru.stripTrailingSlash=Eu,Ru.\u0275prov=pe({factory:Lu,token:Ru,providedIn:"root"}),Ru);function Lu(){return new Uu(Ye(Au),Ye(yu))}function Fu(e){return e.replace(/\/index.html$/,"")}var Vu,Hu,qu,zu,Bu=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Gu=function e(){_classCallCheck(this,e)},Wu=((Hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Qo(t);if(n)return n;var r=t.split("-")[0];if(n=Qo(r))return n;if("en"===r)return Go;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Zo.PluralCase]}(t||this.locale)(e)){case Bu.Zero:return"zero";case Bu.One:return"one";case Bu.Two:return"two";case Bu.Few:return"few";case Bu.Many:return"many";default:return"other"}}}]),n}(Gu)).\u0275fac=function(e){return new(e||Hu)(Ye(xs))},Hu.\u0275prov=pe({token:Hu,factory:Hu.\u0275fac}),Hu),Qu=((Vu=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Se(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ca(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||Vu)(Oa(Ao),Oa(Io),Oa(co),Oa(vo))},Vu.\u0275dir=_t({type:Vu,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Vu),Zu=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Ku=((qu=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new Zu(null,t._ngForOf,-1,-1),null===i?void 0:i),o=new $u(e,a);n.push(o)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new $u(e,s);n.push(u)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,a=this._viewContainer.length;i<a;i++){var o=this._viewContainer.get(i);o.context.index=i,o.context.count=a,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){sr()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||qu)(Oa(Mo),Oa(jo),Oa(Ao))},qu.\u0275dir=_t({type:qu,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),qu),$u=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},Yu=((zu=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new Ju,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Xu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Xu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||zu)(Oa(Mo),Oa(jo))},zu.\u0275dir=_t({type:zu,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),zu),Ju=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function Xu(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Se(t),"'."))}var el,tl,nl=((tl=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(-1===t.indexOf(a))return!0}}catch(o){i.e(o)}finally{i.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}}}]),e}()).\u0275fac=function(e){return new(e||tl)(Oa(Mo))},tl.\u0275dir=_t({type:tl,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[io]}),tl),rl=((el=function e(){_classCallCheck(this,e)}).\u0275mod=mt({type:el}),el.\u0275inj=ve({factory:function(e){return new(e||el)},providers:[{provide:Gu,useClass:Wu}]}),el);function il(e){return"browser"===e}var al,ol,sl,ul,ll,cl=((al=function e(){_classCallCheck(this,e)}).\u0275prov=pe({token:al,providedIn:"root",factory:function(){return new hl(Ye(mu),window,Ye(nr))}}),al),hl=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}(),fl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=dl||(dl=document.querySelector("base"))?dl.getAttribute("href"):null;return null==n?null:(t=n,ol||(ol=document.createElement("a")),ol.setAttribute("href",t),"/"===ol.pathname.charAt(0)?ol.pathname:"/"+ol.pathname)}},{key:"resetBaseElement",value:function(){dl=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.indexOf("="),o=_slicedToArray(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),s=o[0],u=o[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,pu||(pu=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),dl=null,pl=new qe("TRANSITION_ID"),vl=[{provide:gs,useFactory:function(e,t,n){return function(){n.get(ms).donePromise.then((function(){var n=vu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[pl,mu,fa],multi:!0}],gl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){je.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},je.getAllAngularTestabilities=function(){return e.getAllTestabilities()},je.getAllAngularRootElements=function(){return e.getAllRootElements()},je.frameworkStabilizers||(je.frameworkStabilizers=[]),je.frameworkStabilizers.push((function(e){var t=je.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?vu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Ks=t}}]),e}(),ml=new qe("EventManagerPlugins"),yl=((sl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}()).\u0275fac=function(e){return new(e||sl)(Ye(ml),Ye(Ls))},sl.\u0275prov=pe({token:sl,factory:sl.\u0275fac}),sl),_l=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=vu().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),kl=((ll=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||ll)},ll.\u0275prov=pe({token:ll,factory:ll.\u0275fac}),ll),Cl=((ul=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return vu().remove(e)}))}}]),n}(kl)).\u0275fac=function(e){return new(e||ul)(Ye(mu))},ul.\u0275prov=pe({token:ul,factory:ul.\u0275fac}),ul),wl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bl=/%COMP%/g;function Sl(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?Sl(e,i,n):(i=i.replace(bl,e),n.push(i))}return n}function xl(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var El,Tl,Ol,Al,Il=((El=function(){function e(t,n,r){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Rl(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case lt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Pl(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case lt.Native:case lt.ShadowDom:return new Nl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=Sl(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||El)(Ye(yl),Ye(Cl),Ye(ys))},El.\u0275prov=pe({token:El,factory:El.\u0275fac}),El),Rl=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(wl[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=wl[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=wl[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&po.DashCase?e.style.setProperty(t,n,r&po.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&po.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,xl(n)):this.eventManager.addEventListener(e,t,xl(n))}}]),e}(),Pl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).component=i;var s,u=Sl(a+"-"+i.id,i.styles,[]);return r.addStyles(u),o.contentAttr="_ngcontent-%COMP%".replace(bl,a+"-"+i.id),o.hostAttr=(s=a+"-"+i.id,"_nghost-%COMP%".replace(bl,s)),o}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(Rl),Nl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).sharedStylesHost=r,o.hostEl=i,o.component=a,o.shadowRoot=a.encapsulation===lt.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=Sl(a.id,a.styles,[]),u=0;u<s.length;u++){var l=document.createElement("style");l.textContent=s[u],o.shadowRoot.appendChild(l)}return o}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Rl),jl=((Tl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(_l)).\u0275fac=function(e){return new(e||Tl)(Ye(mu))},Tl.\u0275prov=pe({token:Tl,factory:Tl.\u0275fac}),Tl),Dl=["alt","control","meta","shift"],Ml={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ul={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ll={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Fl=((Ol=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),a=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return vu().onAndCancel(e,i.domEventName,a)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),a="";if(Dl.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),a+=e+".")})),a+=i,0!=t.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ul.hasOwnProperty(t)&&(t=Ul[t]))}return Ml[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Dl.forEach((function(r){r!=n&&(0,Ll[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(_l)).\u0275fac=function(e){return new(e||Ol)(Ye(mu))},Ol.\u0275prov=pe({token:Ol,factory:Ol.\u0275fac}),Ol),Vl=Xs(hu,"browser",[{provide:ws,useValue:"browser"},{provide:Cs,useValue:function(){fl.makeCurrent(),gl.init()},multi:!0},{provide:mu,useFactory:function(){return function(e){It=e}(document),document},deps:[]}]),Hl=[[],{provide:Xi,useValue:"root"},{provide:nr,useFactory:function(){return new nr},deps:[]},{provide:ml,useClass:jl,multi:!0,deps:[mu,Ls,ws]},{provide:ml,useClass:Fl,multi:!0,deps:[mu]},[],{provide:Il,useClass:Il,deps:[yl,Cl,ys]},{provide:fo,useExisting:Il},{provide:kl,useExisting:Cl},{provide:Cl,useClass:Cl,deps:[mu]},{provide:Qs,useClass:Qs,deps:[Ls]},{provide:yl,useClass:yl,deps:[ml,Ls]},[]],ql=((Al=function(){function e(t){if(_classCallCheck(this,e),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 _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:ys,useValue:t.appId},{provide:pl,useExisting:ys},vl]}}}]),e}()).\u0275mod=mt({type:Al}),Al.\u0275inj=ve({factory:function(e){return new(e||Al)(Ye(Al,12))},providers:Hl,imports:[rl,du]}),Al);function zl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return I(r)?(t.pop(),q(t,r)):K(t)}"undefined"!=typeof window&&window;var Bl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new x;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(O),Gl=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),Wl={},Ql=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Zl(e,this.resultSelector))}}]),e}(),Zl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return _createClass(n,[{key:"_next",value:function(e){this.values.push(Wl),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(U(this,r,r,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,r,i){var a=this.values,o=this.toRespond?a[n]===Wl?--this.toRespond:this.toRespond:0;a[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(a):this.destination.next(a.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(L),Kl=new w((function(e){return e.complete()}));function $l(e){return e?function(e){return new w((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Kl}function Yl(e){return new w((function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?z(n):$l()).subscribe(t)}))}function Jl(){return Z(1)}function Xl(e,t){return function(n){return n.lift(new ec(e,t))}}var ec=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new tc(e,this.predicate,this.thisArg))}}]),e}(),tc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(v),nc=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function rc(e){return function(t){return 0===e?$l():t.lift(new ic(e))}}var ic=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new nc}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ac(e,this.total))}}]),e}(),ac=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var a=t++%n;e.next(r[a])}e.complete()}}]),n}(v);function oc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc;return function(t){return t.lift(new sc(e))}}var sc=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new uc(e,this.errorFactory))}}]),e}(),uc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(v);function lc(){return new Gl}function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new hc(e))}}var hc=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new fc(e,this.defaultValue))}}]),e}(),fc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(v);function dc(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Xl((function(t,n){return e(t,n,r)})):Q,rc(1),n?cc(t):oc((function(){return new Gl})))}}function pc(e){return function(t){var n=new vc(e),r=t.lift(n);return n.caught=r}}var vc=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new gc(e,this.selector,this.caught))}}]),e}(),gc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).selector=r,a.caught=i,a}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var r=new R(this,void 0,void 0);this.add(r);var i=U(this,t,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(L);function mc(e){return function(t){return 0===e?$l():t.lift(new yc(e))}}var yc=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new nc}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new _c(e,this.total))}}]),e}(),_c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(v);function kc(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Xl((function(t,n){return e(t,n,r)})):Q,mc(1),n?cc(t):oc((function(){return new Gl})))}}var Cc=function(){function e(t,n,r){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new wc(e,this.predicate,this.thisArg,this.source))}}]),e}(),wc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.source=a,o.index=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(v);function bc(e,t){return"function"==typeof t?function(n){return n.pipe(bc((function(n,r){return z(e(n,r)).pipe(F((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new Sc(e))}}var Sc=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new xc(e,this.project))}}]),e}(),xc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new R(this,t,n),a=this.destination;a.add(i),this.innerSubscription=U(this,e,void 0,void 0,i),this.innerSubscription!==i&&a.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}}]),n}(L);function Ec(){return Jl()(zl.apply(void 0,arguments))}function Tc(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Oc(e,t,n))}}var Oc=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ac(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Ac=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=r,o._seed=i,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(v);function Ic(e,t){return B(e,t,1)}function Rc(e,t,n){return function(r){return r.lift(new Nc(e,t,n))}}var Pc,Nc=function(){function e(t,n,r){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new jc(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),jc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e))._tapNext=y,s._tapError=y,s._tapComplete=y,s._tapError=a||y,s._tapComplete=o||y,r(i)?(s._context=_assertThisInitialized(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||y,s._tapError=i.error||y,s._tapComplete=i.complete||y),s}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(v),Dc=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Mc(e,this.callback))}}]),e}(),Mc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).add(new f(r)),i}return n}(v),Uc=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},Lc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=t.call(this,e,r)).navigationTrigger=a,i.restoredState=o,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Uc),Fc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Uc),Vc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).reason=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Uc),Hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).error=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Uc),qc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Uc),zc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Uc),Bc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Uc),Gc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Uc),Wc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Uc),Qc=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Zc=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Kc=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$c=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Yc=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Jc=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Xc=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),eh=((Pc=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Pc)},Pc.\u0275cmp=dt({type:Pc,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Da(0,"router-outlet")},directives:function(){return[fd]},encapsulation:2}),Pc),th=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function nh(e){return new th(e)}function rh(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ih(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},a=0;a<r.length;a++){var o=r[a],s=e[a];if(o.startsWith(":"))i[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var ah=function e(t,n){_classCallCheck(this,e),this.routes=t,this.module=n};function oh(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];sh(r,uh(t,r))}}function sh(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': 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(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&oh(e.children,t)}function uh(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function lh(e){var t=e.children&&e.children.map(lh),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=eh),n}function ch(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(!r||!i||r.length!=i.length)return!1;for(var a=0;a<r.length;a++)if(!hh(e[n=r[a]],t[n]))return!1;return!0}function hh(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every((function(e){return t.indexOf(e)>-1})):e===t}function fh(e){return Array.prototype.concat.apply([],e)}function dh(e){return e.length>0?e[e.length-1]:null}function ph(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function vh(e){return(t=e)&&"function"==typeof t.subscribe?e:La(e)?z(Promise.resolve(e)):zl(e);var t}function gh(e,t,n){return n?function(e,t){return ch(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!kh(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return hh(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!kh(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!kh(n.segments,i))return!1;for(var a in r.children){if(!n.children[a])return!1;if(!e(n.children[a],r.children[a]))return!1}return!0}var o=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!kh(n.segments,o)&&!!n.children.primary&&t(n.children.primary,r,s)}(t,n,n.segments)}(e.root,t.root)}var mh=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"toString",value:function(){return Sh.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nh(this.queryParams)),this._queryParamMap}}]),e}(),yh=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,ph(n,(function(e,t){return e.parent=r}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return xh(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),_h=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return Rh(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=nh(this.parameters)),this._parameterMap}}]),e}();function kh(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Ch(e,t){var n=[];return ph(e.children,(function(e,r){"primary"===r&&(n=n.concat(t(e,r)))})),ph(e.children,(function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))})),n}var wh=function e(){_classCallCheck(this,e)},bh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Mh(e);return new mh(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"".concat("/".concat(function e(t,n){if(!t.hasChildren())return xh(t);if(n){var r=t.children.primary?e(t.children.primary,!1):"",i=[];return ph(t.children,(function(t,n){"primary"!==n&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var a=Ch(t,(function(n,r){return"primary"===r?[e(t.children.primary,!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(xh(t),"/(").concat(a.join("//"),")")}(e.root,!0)),(n=e.queryParams,r=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.map((function(t){return"".concat(Th(e),"=").concat(Th(t))})).join("&"):"".concat(Th(e),"=").concat(Th(t))})),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Sh=new bh;function xh(e){return e.segments.map((function(e){return Rh(e)})).join("/")}function Eh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Th(e){return Eh(e).replace(/%3B/gi,";")}function Oh(e){return Eh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ah(e){return decodeURIComponent(e)}function Ih(e){return Ah(e.replace(/\+/g,"%20"))}function Rh(e){return"".concat(Oh(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(Oh(e),"=").concat(Oh(t[e]))})).join("")));var t}var Ph=/^[^\/()?;=#]+/;function Nh(e){var t=e.match(Ph);return t?t[0]:""}var jh=/^[^=?&#]+/,Dh=/^[^?&#]+/,Mh=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yh([],{}):new yh([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new yh(e,t)),n}},{key:"parseSegment",value:function(){var e=Nh(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new _h(Ah(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Nh(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Nh(this.remaining);r&&(n=r,this.capture(n))}e[Ah(t)]=Ah(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(jh);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(Dh);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Ih(t),a=Ih(n);if(e.hasOwnProperty(i)){var o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(a)}else e[i]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Nh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var a=this.parseChildren();t[i]=1===Object.keys(a).length?a.primary:new yh([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Uh=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Lh(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Lh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Fh(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Fh(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Lh(e,t){if(e===t.value)return t;var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Lh(e,n.value);if(i)return i}}catch(a){r.e(a)}finally{r.f()}return null}function Fh(e,t){if(e===t.value)return[t];var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Fh(e,n.value);if(i.length)return i.unshift(t),i}}catch(a){r.e(a)}finally{r.f()}return[]}var Vh=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Hh(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var qh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).snapshot=r,Zh(_assertThisInitialized(i),e),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Uh);function zh(e,t){var n=function(e,t){var n=new Wh([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Qh("",new Vh(n,[]))}(e,t),r=new Bl([new _h("",{})]),i=new Bl({}),a=new Bl({}),o=new Bl({}),s=new Bl(""),u=new Bh(r,i,o,s,a,"primary",t,n.root);return u.snapshot=n.root,new qh(new Vh(u,[]),n)}var Bh=function(){function e(t,n,r,i,a,o,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(F((function(e){return nh(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(F((function(e){return nh(e)})))),this._queryParamMap}}]),e}();function Gh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Wh=function(){function e(t,n,r,i,a,o,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=nh(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nh(this.queryParams)),this._queryParamMap}}]),e}(),Qh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,r)).url=e,Zh(_assertThisInitialized(i),r),i}return _createClass(n,[{key:"toString",value:function(){return Kh(this._root)}}]),n}(Uh);function Zh(e,t){t.value._routerState=e,t.children.forEach((function(t){return Zh(e,t)}))}function Kh(e){var t=e.children.length>0?" { ".concat(e.children.map(Kh).join(", ")," } "):"";return"".concat(e.value).concat(t)}function $h(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ch(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ch(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ch(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ch(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Yh(e,t){var n,r;return ch(e.params,t.params)&&kh(n=e.url,r=t.url)&&n.every((function(e,t){return ch(e.parameters,r[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||Yh(e.parent,t.parent))}function Jh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xh(e,t,n,r,i){var a={};return r&&ph(r,(function(e,t){a[t]=Array.isArray(e)?e.map((function(e){return"".concat(e)})):"".concat(e)})),new mh(n.root===e?t:function e(t,n,r){var i={};return ph(t.children,(function(t,a){i[a]=t===n?r:e(t,n,r)})),new yh(t.segments,i)}(n.root,e,t),a,i)}var ef=function(){function e(t,n,r){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Jh(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==dh(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),tf=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function nf(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function rf(e,t,n){if(e||(e=new yh([],{})),0===e.segments.length&&e.hasChildren())return af(e,t,n);var r=function(e,t,n){for(var r=0,i=t,a={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return a;var o=e.segments[i],s=nf(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!lf(s,u,o))return a;r+=2}else{if(!lf(s,{},o))return a;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var a=new yh(e.segments.slice(0,r.pathIndex),{});return a.children.primary=new yh(e.segments.slice(r.pathIndex),e.children),af(a,0,i)}return r.match&&0===i.length?new yh(e.segments,{}):r.match&&!e.hasChildren()?of(e,t,n):r.match?af(e,0,i):of(e,t,n)}function af(e,t,n){if(0===n.length)return new yh(e.segments,{});var r=function(e){return"object"!=typeof e[0]?{primary:e}:void 0===e[0].outlets?{primary:e}:e[0].outlets}(n),i={};return ph(r,(function(n,r){null!==n&&(i[r]=rf(e.children[r],t,n))})),ph(e.children,(function(e,t){void 0===r[t]&&(i[t]=e)})),new yh(e.segments,i)}function of(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var a=sf(n[i].outlets);return new yh(r,a)}if(0===i&&Jh(n[0]))r.push(new _h(e.segments[t].path,n[0])),i++;else{var o=nf(n[i]),s=i<n.length-1?n[i+1]:null;o&&s&&Jh(s)?(r.push(new _h(o,uf(s))),i+=2):(r.push(new _h(o,{})),i++)}}return new yh(r,{})}function sf(e){var t={};return ph(e,(function(e,n){null!==e&&(t[n]=of(new yh([],{}),0,e))})),t}function uf(e){var t={};return ph(e,(function(e,n){return t[n]="".concat(e)})),t}function lf(e,t,n){return e==n.path&&ch(t,n.parameters)}var cf=function(){function e(t,n,r,i){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),$h(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=Hh(t);e.children.forEach((function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]})),ph(i,(function(e,t){r.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Hh(e),a=e.value.component?r.children:t;ph(i,(function(e,t){return n.deactivateRouteAndItsChildren(e,a)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=Hh(t);e.children.forEach((function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new Jc(e.value.snapshot))})),e.children.length&&this.forwardEvent(new $c(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if($h(r),r===i)if(r.component){var a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,a.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),hf(s.route)}else{var u=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),l=u?u.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function hf(e){$h(e.value),e.children.forEach(hf)}function ff(e){return"function"==typeof e}function df(e){return e instanceof mh}var pf=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},vf=function e(t){_classCallCheck(this,e),this.urlTree=t};function gf(e){return new w((function(t){return t.error(new pf(e))}))}function mf(e){return new w((function(t){return t.error(new vf(e))}))}function yf(e){return new w((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var _f=function(){function e(t,n,r,i,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(tt)}return _createClass(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(F((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(pc((function(t){if(t instanceof vf)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof pf)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(F((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(pc((function(e){if(e instanceof pf)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new yh([],{primary:e}):e;return new mh(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(F((function(e){return new yh([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return zl({});var a=[],o=[],s={};return ph(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe(F((function(e){return s[i]=e})));"primary"===i?a.push(c):o.push(c)})),zl.apply(null,a.concat(o)).pipe(Jl(),dc(),F((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,a){var o=this;return zl.apply(void 0,_toConsumableArray(n)).pipe(F((function(s){return o.expandSegmentAgainstRoute(e,t,n,s,r,i,a).pipe(pc((function(e){if(e instanceof pf)return zl(null);throw e})))})),Jl(),kc((function(e){return!!e})),pc((function(e,n){if(e instanceof Gl||"EmptyError"===e.name){if(o.noLeftoversInUrl(t,r,i))return zl(new yh([],{}));throw new pf(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,a,o){return bf(r)!==a?gf(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a):gf(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?mf(a):this.lineralizeSegments(n,a).pipe(B((function(n){var a=new yh(n,{});return i.expandSegment(e,a,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){var o=this,s=kf(t,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return gf(t);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?mf(f):this.lineralizeSegments(r,f).pipe(B((function(r){return o.expandSegment(e,t,n,r.concat(i.slice(c)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(F((function(e){return n._loadedConfig=e,new yh(r,{})}))):zl(new yh(r,{}));var a=kf(t,n,r),o=a.matched,s=a.consumedSegments,u=a.lastChild;if(!o)return gf(t);var l=r.slice(u);return this.getChildConfig(e,n,r).pipe(B((function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return wf(e,t,n)&&"primary"!==bf(n)}))}(e,n,r)?{segmentGroup:Cf(new yh(t,function(e,t){var n={};n.primary=t;var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;""===a.path&&"primary"!==bf(a)&&(n[bf(a)]=new yh([],{}))}}catch(o){i.e(o)}finally{i.f()}return n}(r,new yh(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return wf(e,t,n)}))}(e,n,r)?{segmentGroup:Cf(new yh(e.segments,function(e,t,n,r){var i,a={},o=_createForOfIteratorHelper(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;wf(e,t,s)&&!r[bf(s)]&&(a[bf(s)]=new yh([],{}))}}catch(u){o.e(u)}finally{o.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,l,r),o=a.segmentGroup,u=a.slicedSegments;return 0===u.length&&o.hasChildren()?i.expandChildren(n,r,o).pipe(F((function(e){return new yh(s,e)}))):0===r.length&&0===u.length?zl(new yh(s,{})):i.expandSegment(n,o,r,u,"primary",!0).pipe(F((function(e){return new yh(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?zl(new ah(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?zl(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?z(i).pipe(F((function(r){var i,a=e.get(r);if(function(e){return e&&ff(e.canLoad)}(a))i=a.canLoad(t,n);else{if(!ff(a))throw new Error("Invalid CanLoad guard");i=a(t,n)}return vh(i)}))).pipe(Jl(),(r=function(e){return!0===e},function(e){return e.lift(new Cc(r,void 0,e))})):zl(!0)}(e.injector,t,n).pipe(B((function(n){return n?r.configLoader.load(e.injector,t).pipe(F((function(e){return t._loadedConfig=e,e}))):function(e){return new w((function(t){return t.error(rh("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):zl(new ah([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return zl(n);if(r.numberOfChildren>1||!r.children.primary)return yf(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new mh(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return ph(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,a=this.createSegments(e,t.segments,n,r),o={};return ph(t.children,(function(t,a){o[a]=i.createSegmentGroup(e,t,n,r)})),new yh(a,o)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(o){i.e(o)}finally{i.f()}return e}}]),e}();function kf(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||ih)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Cf(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new yh(e.segments.concat(t.segments),t.children)}return e}function wf(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function bf(e){return e.outlet||"primary"}var Sf=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},xf=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function Ef(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Tf(e,t,n){var r=Hh(e),i=e.value;ph(r,(function(e,r){Tf(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new xf(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Of=Symbol("INITIAL_VALUE");function Af(){return bc((function(e){return(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=null,i=null;return I(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&u(t[0])&&(t=t[0]),K(t,i).lift(new Ql(r))}).apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(mc(1),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return I(r)?(t.pop(),function(e){return Ec(t,e,r)}):function(e){return Ec(t,e)}}(Of))})))).pipe(Tc((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==Of)return e;if(r===Of&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||df(r))return r}return e}),e)}),Of),Xl((function(e){return e!==Of})),F((function(e){return df(e)?e:!0===e})),mc(1))}))}function If(e,t){return null!==e&&t&&t(new Yc(e)),zl(!0)}function Rf(e,t){return null!==e&&t&&t(new Kc(e)),zl(!0)}function Pf(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?zl(r.map((function(r){return Yl((function(){var i,a=Ef(r,t,n);if(function(e){return e&&ff(e.canActivate)}(a))i=vh(a.canActivate(t,e));else{if(!ff(a))throw new Error("Invalid CanActivate guard");i=vh(a(t,e))}return i.pipe(kc())}))}))).pipe(Af()):zl(!0)}function Nf(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Yl((function(){return zl(t.guards.map((function(i){var a,o=Ef(i,t.node,n);if(function(e){return e&&ff(e.canActivateChild)}(o))a=vh(o.canActivateChild(r,e));else{if(!ff(o))throw new Error("Invalid CanActivateChild guard");a=vh(o(r,e))}return a.pipe(kc())}))).pipe(Af())}))}));return zl(i).pipe(Af())}var jf=function e(){_classCallCheck(this,e)},Df=function(){function e(t,n,r,i,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){try{var e=Lf(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Wh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Vh(n,t),i=new Qh(this.url,r);return this.inheritParamsAndData(i._root),zl(i)}catch(a){return new w((function(e){return e.error(a)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Gh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=Ch(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;try{return this.processSegmentAgainstRoute(o,t,n,r)}catch(s){if(!(s instanceof jf))throw s}}}catch(u){a.e(u)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new jf}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new jf;if((e.outlet||"primary")!==r)throw new jf;var i,a=[],o=[];if("**"===e.path){var s=n.length>0?dh(n).parameters:{};i=new Wh(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hf(e),r,e.component,e,Mf(t),Uf(t)+n.length,qf(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new jf;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||ih)(n,e,t);if(!r)throw new jf;var i={};ph(r.posParams,(function(e,t){i[t]=e.path}));var a=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(t,e,n);a=u.consumedSegments,o=n.slice(u.lastChild),i=new Wh(a,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hf(e),r,e.component,e,Mf(t),Uf(t)+a.length,qf(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Lf(t,a,o,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Vh(i,d)]}if(0===l.length&&0===f.length)return[new Vh(i,[])];var p=this.processSegment(l,h,f,"primary");return[new Vh(i,p)]}}]),e}();function Mf(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Uf(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Lf(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return Ff(e,t,n)&&"primary"!==Vf(n)}))}(e,n,r)){var a=new yh(t,function(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Vf(s)){var u=new yh([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[Vf(s)]=u}}}catch(l){o.e(l)}finally{o.f()}return i}(e,t,r,new yh(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Ff(e,t,n)}))}(e,n,r)){var o=new yh(e.segments,function(e,t,n,r,i,a){var o,s={},u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){var l=o.value;if(Ff(e,n,l)&&!i[Vf(l)]){var c=new yh([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Vf(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new yh(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ff(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Vf(e){return e.outlet||"primary"}function Hf(e){return e.data||{}}function qf(e){return e.resolve||{}}function zf(e,t,n,r){var i=Ef(e,t,r);return vh(i.resolve?i.resolve(t,n):i(t,n))}function Bf(e){return function(t){return t.pipe(bc((function(t){var n=e(t);return n?z(n).pipe(F((function(){return t}))):z([t])})))}}var Gf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),Wf=new qe("ROUTES"),Qf=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(F((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new ah(fh(i.injector.get(Wf)).map(lh),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?z(this.loader.load(e)):vh(e()).pipe(B((function(e){return e instanceof nt?zl(e):z(t.compiler.compileModuleAsync(e))})))}}]),e}(),Zf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Kf(e){throw e}function $f(e,t,n){return t.parse("/")}function Yf(e,t){return zl(null)}var Jf,Xf,ed,td=((ed=function(){function e(t,n,r,i,a,o,s,u){var l=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new O,this.errorHandler=Kf,this.malformedUriErrorHandler=$f,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Yf,afterPreactivation:Yf},this.urlHandlingStrategy=new Zf,this.routeReuseStrategy=new Gf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(tt),this.console=a.get(Ss);var c=a.get(Ls);this.isNgZoneEnabled=c instanceof Ls,this.resetConfig(u),this.currentUrlTree=new mh(new yh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qf(o,s,(function(e){return l.triggerEvent(new Qc(e))}),(function(e){return l.triggerEvent(new Zc(e))})),this.routerState=zh(this.currentUrlTree,this.rootComponentType),this.transitions=new Bl({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Xl((function(e){return 0!==e.id})),F((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),bc((function(e){var r,i,a,o,s=!1,u=!1;return zl(e).pipe(Rc((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),bc((function(e){var r,i,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return zl(e).pipe(bc((function(e){var r=t.transitions.getValue();return n.next(new Lc(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Kl:[e]})),bc((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,o=t.config,function(e){return e.pipe(bc((function(e){return function(e,t,n,r,i){return new _f(e,t,n,r,i).apply()}(r,i,a,e.extractedUrl,o).pipe(F((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Rc((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,a){return function(r){return r.pipe(B((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Df(e,t,n,r,i,a).recognize()}(e,n,r.urlAfterRedirects,(o=r.urlAfterRedirects,t.serializeUrl(o)),i,a).pipe(F((function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})})));var o})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Rc((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Rc((function(e){var r=new qc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new Lc(u,t.serializeUrl(l),c,h);n.next(d);var p=zh(l,t.rootComponentType).snapshot;return zl(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Kl})),Bf((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,u=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!u})})),Rc((function(e){var n=new zc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),F((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,a=n._root,function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Hh(n);return t.children.forEach((function(t){!function(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,s=n?n.value:null,u=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!kh(e.url,t.url);case"pathParamsOrQueryParamsChange":return!kh(e.url,t.url)||!ch(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yh(e,t)||!ch(e.queryParams,t.queryParams);case"paramsChange":default:return!Yh(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?a.canActivateChecks.push(new Sf(i)):(o.data=s.data,o._resolvedData=s._resolvedData),e(t,n,o.component?u?u.children:null:r,i,a),l&&a.canDeactivateChecks.push(new xf(u&&u.outlet&&u.outlet.component||null,s))}else s&&Tf(n,u,a),a.canActivateChecks.push(new Sf(i)),e(t,null,o.component?u?u.children:null:r,i,a)}(t,o[t.value.outlet],r,i.concat([t.value]),a),delete o[t.value.outlet]})),ph(o,(function(e,t){return Tf(e,r.getContext(t),a)})),a}(a,r?r._root:null,i,[a.value]))});var n,r,i,a})),function(e,t){return function(n){return n.pipe(B((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?zl(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return z(e).pipe(B((function(e){return function(e,t,n,r,i){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?zl(a.map((function(a){var o,s=Ef(a,t,i);if(function(e){return e&&ff(e.canDeactivate)}(s))o=vh(s.canDeactivate(e,t,n,r));else{if(!ff(s))throw new Error("Invalid CanDeactivate guard");o=vh(s(e,t,n,r))}return o.pipe(kc())}))).pipe(Af()):zl(!0)}(e.component,e.route,n,t,r)})),kc((function(e){return!0!==e}),!0))}(s,r,i,e).pipe(B((function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return z(t).pipe(Ic((function(t){return z([Rf(t.route.parent,r),If(t.route,r),Nf(e,t.path,n),Pf(e,t.route,n)]).pipe(Jl(),kc((function(e){return!0!==e}),!0))})),kc((function(e){return!0!==e}),!0))}(r,o,e,t):zl(n)})),F((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Rc((function(e){if(df(e.guardsResult)){var n=rh('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Rc((function(e){var n=new Bc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Xl((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Vc(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),Bf((function(e){if(e.guards.canActivateChecks.length)return zl(e).pipe(Rc((function(e){var n=new Gc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(B((function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?z(i).pipe(Ic((function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return zl({});if(1===i.length){var a=i[0];return zf(e[a],t,n,r).pipe(F((function(e){return _defineProperty({},a,e)})))}var o={};return z(i).pipe(B((function(i){return zf(e[i],t,n,r).pipe(F((function(e){return o[i]=e,e})))}))).pipe(dc(),F((function(){return o})))}(e._resolve,e,t,r).pipe(F((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Gh(e,n).resolve),null})))}(e.route,t,n,r)})),function(e,t){return arguments.length>=2?function(n){return _(Tc(e,t),rc(1),cc(t))(n)}:function(t){return _(Tc((function(t,n,r){return e(t,n,r+1)})),rc(1))(t)}}((function(e,t){return e})),F((function(t){return e}))):zl(e)})))}),Rc((function(e){var n=new Wc(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})));var n,r})),Bf((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,u=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!u})})),F((function(e){var n=function(e,t,n){var r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var a=function(t,n,r){return n.children.map((function(n){var i,a=_createForOfIteratorHelper(r.children);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(t.shouldReuseRoute(o.value.snapshot,n.value))return e(t,n,o)}}catch(s){a.e(s)}finally{a.f()}return e(t,n)}))}(t,n,r);return new Vh(i,a)}var o=t.retrieve(n.value);if(o){var s=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,s),s}var u,l=new Bh(new Bl((u=n.value).url),new Bl(u.params),new Bl(u.queryParams),new Bl(u.fragment),new Bl(u.data),u.outlet,u.component,u),c=n.children.map((function(n){return e(t,n)}));return new Vh(l,c)}(e,t._root,n?n._root:void 0);return new qh(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})})),Rc((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(i=t.rootContexts,a=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},F((function(e){return new cf(a,e.targetRouterState,e.currentRouterState,o).activate(i),e}))),Rc({next:function(){s=!0},complete:function(){s=!0}}),(r=function(){if(!s&&!u){t.resetUrlToCurrentUrlTree();var r=new Vc(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new Dc(r))}),pc((function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=df(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new Vc(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(a),i?setTimeout((function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})}),0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new Hc(e.id,t.serializeUrl(e.extractedUrl),r);n.next(o);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return Kl})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){oh(e),this.config=e.map(lh),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,a=t.preserveQueryParams,o=t.queryParamsHandling,s=t.preserveFragment;sr()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i,c=null;if(o)switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=a?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Xh(t.root,t.root,t,r,i);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ef(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return ph(r.outlets,(function(e,t){a[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:a}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(_toConsumableArray(e),[r])}),[]);return new ef(n,t,r)}(n);if(a.toRoot())return Xh(t.root,new yh([],{}),t,r,i);var o=function(e,t,n){if(e.isAbsolute)return new tf(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new tf(n.snapshot._urlSegment,!0,0);var r=Jh(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,a=n;a>i;){if(a-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new tf(r,!1,i-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?af(o.segmentGroup,o.index,a.commands):rf(o.segmentGroup,o.index,a.commands);return Xh(o.segmentGroup,s,t,r,i)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};sr()&&this.isNgZoneEnabled&&!Ls.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=df(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(df(e))return gh(this.currentUrlTree,e,t);var n=this.parseUrl(e);return gh(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return null!=r&&(t[n]=r),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Fc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,r,i){var a,o,s,u=this.getTransition();if(u&&"imperative"!==t&&"imperative"===u.source&&u.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(u&&"hashchange"==t&&"popstate"===u.source&&u.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(u&&"popstate"==t&&"hashchange"===u.source&&u.rawUrl.toString()===e.toString())return Promise.resolve(!0);i?(a=i.resolve,o=i.reject,s=i.promise):s=new Promise((function(e,t){a=e,o=t}));var l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}()).\u0275fac=function(e){Ia()},ed.\u0275dir=_t({type:ed}),ed),nd=((Xf=function(){function e(t,n,r,i,a){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],null==r&&i.setAttribute(a.nativeElement,"tabindex","0")}return _createClass(e,[{key:"onClick",value:function(){var e={skipLocationChange:id(this.skipLocationChange),replaceUrl:id(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){sr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:id(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:id(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Xf)(Oa(td),Oa(Bh),Aa("tabindex"),Oa(vo),Oa(co))},Xf.\u0275dir=_t({type:Xf,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Fa("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),Xf),rd=((Jf=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(e){e instanceof Fc&&i.updateTargetUrlAndHref()}))}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:id(this.skipLocationChange),replaceUrl:id(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){sr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:id(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:id(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Jf)(Oa(td),Oa(Bh),Oa(Au))},Jf.\u0275dir=_t({type:Jf,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Fa("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)})),2&e&&(to("href",t.href,hr),xa("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[io]}),Jf);function id(e){return""===e||!!e}var ad,od,sd,ud,ld=((ad=function(){function e(t,n,r,i,a){var o=this;_classCallCheck(this,e),this.router=t,this.element=n,this.renderer=r,this.link=i,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(e){e instanceof Fc&&o.update()}))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.links.changes.subscribe((function(t){return e.update()})),this.linksWithHrefs.changes.subscribe((function(t){return e.update()})),this.update()}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach((function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((function(e){return!!e}))}}]),e}()).\u0275fac=function(e){return new(e||ad)(Oa(td),Oa(co),Oa(vo),Oa(nd,8),Oa(rd,8))},ad.\u0275dir=_t({type:ad,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var r;1&e&&(fs(n,nd,!0),fs(n,rd,!0)),2&e&&(hs(r=ds())&&(t.links=r),hs(r=ds())&&(t.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[io]}),ad),cd=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new hd,this.attachRef=null},hd=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new cd,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),fd=((od=function(){function e(t,n,r,i,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new es,this.deactivateEvents=new es,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new dd(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}()).\u0275fac=function(e){return new(e||od)(Oa(hd),Oa(Mo),Oa(lo),Aa("name"),Oa(Yi))},od.\u0275dir=_t({type:od,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),od),dd=function(){function e(t,n,r){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=r}return _createClass(e,[{key:"get",value:function(e,t){return e===Bh?this.route:e===hd?this.childContexts:this.parent.get(e,t)}}]),e}(),pd=function e(){_classCallCheck(this,e)},vd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return zl(null)}}]),e}(),gd=((ud=function(){function e(t,n,r,i,a){_classCallCheck(this,e),this.router=t,this.injector=i,this.preloadingStrategy=a,this.loader=new Qf(n,r,(function(e){return t.triggerEvent(new Qc(e))}),(function(e){return t.triggerEvent(new Zc(e))}))}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Xl((function(e){return e instanceof Fc})),Ic((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(tt);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var o=a._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?r.push(this.preloadConfig(e,a)):a.children&&r.push(this.processRoutes(e,a.children))}}catch(s){i.e(s)}finally{i.f()}return z(r).pipe(Z(),F((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(B((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}()).\u0275fac=function(e){return new(e||ud)(Ye(td),Ye(ou),Ye(js),Ye(fa),Ye(pd))},ud.\u0275prov=pe({token:ud,factory:ud.\u0275fac}),ud),md=((sd=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Lc?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Fc&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Xc&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Xc(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){Ia()},sd.\u0275dir=_t({type:sd}),sd),yd=new qe("ROUTER_CONFIGURATION"),_d=new qe("ROUTER_FORROOT_GUARD"),kd=[Uu,{provide:wh,useClass:bh},{provide:td,useFactory:function(e,t,n,r,i,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new td(null,e,t,n,r,i,a,fh(o));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=vu();c.events.subscribe((function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[wh,hd,Uu,fa,ou,js,Wf,yd,[function(){return function e(){_classCallCheck(this,e)}}(),new le],[function(){return function e(){_classCallCheck(this,e)}}(),new le]]},hd,{provide:Bh,useFactory:function(e){return e.routerState.root},deps:[td]},{provide:ou,useClass:lu},gd,vd,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(pc((function(){return zl(null)})))}}]),e}(),{provide:yd,useValue:{enableTracing:!1}}];function Cd(){return new Js("Router",td)}var wd,bd=((wd=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[kd,Td(t),{provide:_d,useFactory:Ed,deps:[[td,new le,new he]]},{provide:yd,useValue:n||{}},{provide:Au,useFactory:xd,deps:[yu,[new ue(ju),new le],yd]},{provide:md,useFactory:Sd,deps:[td,cl,yd]},{provide:pd,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:vd},{provide:Js,multi:!0,useFactory:Cd},[Ad,{provide:gs,multi:!0,useFactory:Id,deps:[Ad]},{provide:Pd,useFactory:Rd,deps:[Ad]},{provide:bs,multi:!0,useExisting:Pd}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Td(t)]}}}]),e}()).\u0275mod=mt({type:wd}),wd.\u0275inj=ve({factory:function(e){return new(e||wd)(Ye(_d,8),Ye(td,8))}}),wd);function Sd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new md(e,t,n)}function xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Mu(e,t):new Du(e,t)}function Ed(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Td(e){return[{provide:da,multi:!0,useValue:e},{provide:Wf,multi:!0,useValue:e}]}var Od,Ad=((Od=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new O}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Cu,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(td),i=e.injector.get(yd);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?zl(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(yd),n=this.injector.get(gd),r=this.injector.get(md),i=this.injector.get(td),a=this.injector.get(iu);e===a.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||Od)(Ye(fa))},Od.\u0275prov=pe({token:Od,factory:Od.\u0275fac}),Od);function Id(e){return e.appInitializer.bind(e)}function Rd(e){return e.bootstrapListener.bind(e)}var Pd=new qe("Router Initializer"),Nd=[{id:"1",title:"1. O que \xe9 a COVID-19?",description:"Saiba o que \xe9 COVID-19, de onde veio e como chegou at\xe9 o Brasil",alt:"Imagem ilustrativa de uma pessoa com equipamento de prote\xe7\xe3o segurando um sugador de v\xedrus",thumb:"./assets/images/thumb/1_thumb_o_que_e_covid.jpg"},{title:"2. Como a COVID-19 \xe9 transmitida?",description:"O SARS-cov-2 \xe9 um virus respirat\xf3rio, descubra como acontece a transmiss\xe3o.",id:"2",alt:"Imagem ilustrativa de pessoas aglomeradas em um espa\xe7o v\xfalner\xe1vel",thumb:"./assets/images/thumb/2_thumb_transmissao.jpg"},{title:"3. O que s\xe3o os Grupos de Risco?",description:"As pessoas mais fr\xe1geis devem ser protegidas, saiba quem s\xe3o elas.",id:"3",alt:"Imagem de um senhor sentado tomando seu vinho dentro de um restaurante ou bar",thumb:"./assets/images/thumb/3_thumb_grupo_risco.jpg"},{title:"4. Como posso me proteger e proteger minha fam\xedlia do novo Coronav\xedrus?",description:"Aprenda medidas fundamentais para proteger a si e todos que voc\xea ama!",id:"4",alt:"Imagem de uma escultura utilizando um m\xe1scara de prote\xe7\xe3o",thumb:"./assets/images/thumb/4_thumb_protecao.jpg"},{title:"5. Qual a import\xe2ncia do distanciamento social?",description:"O distanciamento social \xe9 a melhor forma de combater esse inimigo, descubra o motivo!",id:"5",alt:"Imagem de 4 pessoas atravessando a rua na faixa de pedestres, por\xe9m a imagem foi cortada e afastada em cada pessoa para demonstrar o dist\xe2nciamento",thumb:"./assets/images/thumb/5_thumb_distanciamento_social.jpg"},{title:"6. Quais s\xe3o os sintomas da COVID-19?",description:"Os sintomas s\xe3o os sinais percept\xedveis que uma doen\xe7a pode causar. Saiba quais s\xe3o os sintomas da COVID-19.",id:"6",alt:"Imagem de um term\xf4metro",thumb:"./assets/images/thumb/6_thumb_sintomas.jpg"},{title:"7. A Covid-19 tem cura?",description:"O novo coronav\xedrus \xe9 perigoso, por\xe9m n\xe3o \xe9 uma senten\xe7a.",id:"7",alt:"Imagem ilustrativa",thumb:"./assets/images/thumb/7_thumb_cura.jpg"},{title:"8. O que mais preciso saber sobre a COVID-19?",description:"Mantenha uma vida saud\xe1vel, durante a quarentena. Se cuide!",id:"8",alt:"Imagem ilustrativa",thumb:"./assets/images/thumb/8_thumb_saber.jpg"}],jd=[{thumb:"./assets/images/thumb/covid_fakenews_verao.jpg",title:"\xc9 FAKE NEWS!",subtitle:"N\xc3O ACREDITE EM TUDO QUE VOC\xca RECEBE. SAIBA AGORA O QUE \xc9 VERDADEIRO!",alt:"Imagem ilustativa de uma pessoa interagindo com seu celular onde nele mostra not\xedcias referentes ao v\xedrus",route:"/fakenews"},{thumb:"./assets/images/thumb/covid_infectados_mortes.jpg",title:"CONFIRA O N\xdaMERO DE INFECTADOS!",alt:"Imagem ilustrativa de diversos caix\xf5es sendo tombados",subtitle:"NO BRASIL E NO MUNDO!",route:"/mapa"}],Dd=function(e){return["/guia",e]};function Md(e,t){if(1&e&&(Na(0,"article",10),Na(1,"div",11),Da(2,"img",12),ja(),Na(3,"div",13),Na(4,"h3",4),Ya(5),ja(),Na(6,"p",14),Ya(7),ja(),Na(8,"span",15),Ya(9,"LER MAIS"),ja(),ja(),ja()),2&e){var n=t.$implicit;Ra("routerLink",Xo(5,Dd,n.id)),Er(2),Ra("src",n.thumb,hr)("alt",n.alt),Er(3),Ja(n.title),Er(2),Ja(n.description)}}var Ud=function(e){return[e]};function Ld(e,t){if(1&e&&(Na(0,"aside",16),Na(1,"article",17),Da(2,"img",18),Na(3,"div",19),Na(4,"h3",4),Ya(5),ja(),Na(6,"p",14),Ya(7),ja(),ja(),Na(8,"span",20),Ya(9,"LER MAIS"),ja(),ja(),ja()),2&e){var n=t.$implicit;Ra("routerLink",Xo(5,Ud,n.route)),Er(2),Ra("alt",n.alt)("src",n.thumb,hr),Er(3),Ja(n.title),Er(2),Ja(n.subtitle)}}var Fd=[{id:1,title:"O QUE \xc9 A COVID-19",subtitle:"Saiba o que \xe9 COVID-19, de onde veio e como chegou at\xe9 o Brasil",date:"Mai 11, 2020",readTime:2,audio:"./assets/audios/1.O que e covid-19.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/1_o_que_e_covid.jpg",alt:"Imagem ilustrativa de uma pessoa com equipamento de prote\xe7\xe3o segurando um sugador de v\xedrus"},paragraphs:[{paragraph:"Coronavirus disease 2019 (COVID-19), \xe9 o nome que se deu para o novo coronav\xedrus SARS-cov-2. \xc9 uma doen\xe7a que afeta o trato respirat\xf3rio, assim como a gripe comum, por\xe9m somados \xe0 complica\xe7\xf5es respirat\xf3rias mais graves."},{paragraph:"A fam\xedlia coronaviridae apresenta diversas esp\xe9cies de coronav\xedrus, mas poucas destas, infectam o homem. No caso do COVID-19, o v\xedrus se assemelha \xe0 um tipo de coronav\xedrus em morcegos, no entanto ainda n\xe3o se sabe se a doen\xe7a decorreu de muta\xe7\xf5es naturais ou n\xe3o."},{paragraph:"De acordo com a OMS (Organiza\xe7\xe3o Mundial de Sa\xfade) aproximadamente 80% das pessoas que contra\xedrem a COVID-19, podem n\xe3o apresentar nenhum sintoma, cerca de 20% dos casos podem precisar de atendimento hospitalar para tratar de dificuldades respirat\xf3rias n\xe3o graves e aproximadamente 5% podem necessitar de tratamento para complica\xe7\xf5es respirat\xf3rias graves."}],references:["https://coronavirus.saude.gov.br/","https://www.nature.com/articles/s41591-020-0820-9"]},{id:2,title:"Como a COVID-19 \xe9 transmitida?",subtitle:"O SARS-cov-2 \xe9 um virus respirat\xf3rio, descubra como acontece a transmiss\xe3o.",date:"Mai 11, 2020",readTime:2,audio:"./assets/audios/2. Como a covid-19 e transmitida.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/2_como_e_transmitido.jpg",alt:"Imagem ilustrativa de pessoas aglomeradas em um espa\xe7o v\xfalner\xe1vel"},paragraphs:[{paragraph:"O Sars-cov-2 \xe9 um v\xedrus respirat\xf3rio, ou seja, fica alojado em locais como nariz, boca, traqu\xe9ia, garganta e pulm\xf5es. Quando uma pessoa com COVID-19 fala, tosse ou espirra, o v\xedrus \xe9 carregado por pequenas part\xedculas de \xe1gua."},{paragraph:"As got\xedculas com o v\xedrus podem ser inaladas diretamente por outra pessoa, ou se depositarem em superf\xedcies(ma\xe7anetas, celulares, etc...). Pesquisas indicam que objetos de pl\xe1stico e a\xe7o inoxid\xe1vel, podem transmitir o v\xedrus por 3 dias."},{paragraph:"Existem, embora raramente ocorra, casos de COVID-19 transmitido verticalmente, ou seja, de m\xe3e para filho, durante a gravidez. Quanto aos animais dom\xe9sticos, n\xe3o existem comprova\xe7\xf5es de que possam transmitir o COVID-19. Houveram casos de felinos que contra\xedram COVID-19 de seus donos, no entanto, os sintomas foram brandos."},{paragraph:"Alguns estudos na China apontam que gatos com donos infectados, se contaminaram com a COVID-19, por\xe9m nenhum animal apresentou sintomas e n\xe3o h\xe1 nenhum estudo que conclua que os animais possam transmitir a doen\xe7a, do mesmo modo que n\xe3o existem fontes que demonstram que alimentos possam transmitir o v\xedrus."}],references:["https://coronavirus.saude.gov.br/sobre-a-doenca#transmissao","https://drauziovarella.uol.com.br/coronavirus/posso-estar-infectado-com-coronavirus-e-nao-ter-sintomas/","https://saude.abril.com.br/medicina/como-o-coronavirus-e-transmitido-e-por-quanto-tempo-ele-resiste-por-ai/","http://portal.anvisa.gov.br/noticias/-/asset_publisher/FXrpx9qY7FbU/content/o-novo-coronavirus-pode-ser-transmitido-por-alimentos-/219201/pop_up?_101_INSTANCE_FXrpx9qY7FbU_viewMode=print&_101_INSTANCE_FXrpx9qY7FbU_languageId=pt_BR","https://theconversation.com/can-your-pets-get-coronavirus-and-can-you-catch-it-from-them-135611"]},{id:3,title:"O que s\xe3o os Grupos de Risco?",subtitle:"As pessoas mais fr\xe1geis devem ser protegidas, saiba quem s\xe3o elas",date:"Mai 11, 2020",readTime:5,audio:"./assets/audios/3. O que sao grupos de risco.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/3_grupo_risco.jpg",alt:"Imagem de um senhor sentado tomando seu vinho dentro de um restaurante ou bar"},paragraphs:[{paragraph:"S\xe3o grupos de pessoas que caso se contaminem com COVID-19, est\xe3o mais propensos a maiores complica\xe7\xf5es e morrer em decorr\xeancia da COVID-19, eles s\xe3o:"},{step:"1.",paragraph:"Diab\xe9ticos;"},{step:"2.",paragraph:"Hipertensos;"},{step:"3.",paragraph:"Asmaticos;"},{step:"4.",paragraph:"Indiv\xedduos acima de 60 anos;"},{step:"5.",paragraph:"Portadores de doen\xe7as renais cr\xf4nicas;"},{step:"6.",paragraph:"Pessoas que passam por tratamentos de condi\xe7\xf5es autoimune como l\xfapus e c\xe2ncer;"},{step:"7.",isLastStep:!0,paragraph:"Gestantes."},{paragraph:"Um levantamento feito na It\xe1lia que mostra a taxa de mortalidade, por faixa et\xe1ria ajuda a ilustrar:"},{step:"\u2022",paragraph:"90 anos ou mais: 25,2%"},{step:"\u2022",paragraph:"80 a 89 anos: 30,5%"},{step:"\u2022",paragraph:"70 a 79 anos: 24%"},{step:"\u2022",paragraph:"60 a 69 anos: 9,5%"},{step:"\u2022",paragraph:"50 a 59 anos: 2,5%"},{step:"\u2022",paragraph:"40 a 49 anos: 0,9%"},{step:"\u2022",paragraph:"30 a 39 anos: 0,3%"},{step:"\u2022",paragraph:"At\xe9 29 anos: 0,1%"},{step:"\u2022",paragraph:"N\xe3o reportados: 0,8%"},{isLastStep:!0,step:"\u2022",paragraph:"Total de mortes: 19.508"},{paragraph:"Outro levantamento foi feito por condi\xe7\xf5es pr\xe9 existentes:"},{step:"\u2022",paragraph:"Doen\xe7as cardiovasculares: 10,5%"},{step:"\u2022",paragraph:"Diabetes: 7,3%"},{step:"\u2022",paragraph:"Doen\xe7a respirat\xf3ria cr\xf4nica: 6,3%"},{step:"\u2022",paragraph:"Hipertens\xe3o: 6,0%"},{step:"\u2022",paragraph:"C\xe2ncer: 5,6%"},{isLastStep:!0,step:"\u2022",paragraph:"Sem condi\xe7\xe3o pr\xe9-existente: 0,9%"}],references:["https://saude.abril.com.br/medicina/coronavirus-novos-dados-sobre-grupos-de-risco/","https://saude.ig.com.br/2020-02-29/coronavirus-estudo-exibe-taxa-de-mortalidade-por-idade-e-doencas.html","https://www.poder360.com.br/coronavirus/conheca-a-faixa-etaria-dos-mortos-por-covid-19-no-brasil-italia-e-espanha/"]},{id:4,title:"Como posso me proteger e proteger minha fam\xedlia do novo Coronav\xedrus?",subtitle:"Aprenda medidas fundamentais para proteger a si e todos que voc\xea ama!",date:"Mai 11, 2020",readTime:6,audio:"./assets/audios/4. Como posso me proteger.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/4_protecao.jpg",alt:"Imagem de uma escultura utilizando um m\xe1scara de prote\xe7\xe3o"},paragraphs:[{step:"1.",paragraph:"Lavar com frequ\xeancia as m\xe3os at\xe9 a altura dos punhos, com \xe1gua e sab\xe3o e ent\xe3o higienize com \xe1lcool em gel 70%;"},{step:"2.",paragraph:"Cobrir o nariz e boca com len\xe7o ou com o bra\xe7o ao tossir ou espirrar, e n\xe3o com as m\xe3os;"},{step:"3.",paragraph:"Evitar tocar olhos, nariz e boca, antes de higieniz\xe1-las ou quando sair de casa; "},{step:"4.",paragraph:"Manter uma dist\xe2ncia m\xednima de cerca de 2 metros de qualquer pessoa;"},{step:"5.",paragraph:"Higienizar com frequ\xeancia o celular e os brinquedos das crian\xe7as;"},{step:"6.",paragraph:"N\xe3o compartilhar objetos de uso pessoal, como talheres, toalhas, pratos e copos;"},{step:"7.",paragraph:"Manter os ambientes limpos e bem ventilados;"},{step:"8.",paragraph:"Evitar circula\xe7\xe3o desnecess\xe1ria nas ruas ou locais p\xfablicos. Se puder, fique em casa;"},{step:"9.",paragraph:"Utilizar m\xe1scaras caseiras ou artesanais feitas de tecido em situa\xe7\xf5es de sa\xedda de sua resid\xeancia; "},{step:"10.",paragraph:"Ao pedir algo via delivery, higienizar a embalagem, e para alimentos, remover da embalagem para consumo, e para alguns apps como o iFood, usar a op\xe7\xe3o de entrega sem contato."},{paragraph:"Existem outras op\xe7\xf5es que podem substituir o \xe1lcool em gel na falta do mesmo. Len\xe7os umedecidos antiss\xe9pticos, clorexidina e antiss\xe9ptico em spray com gluconato de clorexidina."},{paragraph:"Se voc\xea teve um contato espor\xe1dico com a pessoa, mantenha-se em quarentena por 14 dias, atento se voc\xea apresentar algum sintoma. J\xe1 se a pessoa mora com voc\xea, n\xe3o entre em p\xe2nico, siga as seguintes recomenda\xe7\xf5es e tudo ficar\xe1 bem:"},{step:"1.",paragraph:"N\xe3o compartilhar talheres com outros membros da fam\xedlia;"},{step:"2.",paragraph:"N\xe3o compartilhar produtos de higiene pessoal;"},{step:"3.",paragraph:"Descartar o material de higiene pessoal em um lixo separado;"},{step:"4.",paragraph:"A pessoa infectada dever\xe1 tirar sua pr\xf3pria roupa de cama;"},{step:"5.",paragraph:"Desinfetar sempre ma\xe7anetas, interruptores, torneiras com \xe1lcool 70% ou uma solu\xe7\xe3o de 4 colheres de ch\xe1 (20mL) de \xe1gua sanit\xe1ria para um litro de \xe1gua;"},{step:"6.",paragraph:"Desinfetar o cesto de roupa suja ou deixar as roupas em um saco fechado, e descart\xe1-lo ap\xf3s o uso;"},{step:"7.",paragraph:"Se o tecido permitir, lavar as roupas com \xe1gua quente;"},{step:"8.",paragraph:"Pode-se lavar as roupas juntas, mas ao estender, evitar de chacoalhar as roupas;"}],references:["https://coronavirus.saude.gov.br/sobre-a-doenca#como-se-proteger","https://oglobo.globo.com/sociedade/coronavirus/nao-encontra-alcool-gel-para-se-proteger-do-coronavirus-veja-alternativas-24288638","https://noticias.uol.com.br/cotidiano/ultimas-noticias/2020/04/17/decreto-determina-que-moradores-do-rio-de-janeiro-saiam-as-ruas-de-mascara.htm","https://g1.globo.com/sp/ribeirao-preto-franca/noticia/2020/04/18/multa-a-morador-que-sair-de-casa-sem-mascara-e-de-r-55-em-ribeirao-preto-diz-prefeitura.ghtml","https://www.campograndenews.com.br/cidades/capital/quem-nao-usar-mascara-ao-sair-de-casa-pode-responder-por-3-crimes-e-pagar-multa","https://www.bbc.com/portuguese/geral-5213505","https://www.semprefamilia.com.br/saude/quarentena-em-casa-pelo-coronavirus-o-que-significa/","https://www.unimed.coop.br/viver-bem/saude-em-pauta/coronavirus-e-covid-19-perguntas-e-respostas","https://drauziovarella.uol.com.br/coronavirus/como-limpar-superficies-e-objetos-para-prevenir-o-coronavirus/"]},{id:5,title:"Qual a import\xe2ncia do distanciamento social?",subtitle:"O distanciamento social \xe9 a melhor forma de combater esse inimigo, descubra o motivo!",date:"Mai 11, 2020",readTime:1,audio:"./assets/audios/5. Qual a importancia do distanciamento social.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/5_distanciamento_social.jpg",alt:"Imagem de 4 pessoas atravessando a rua na faixa de pedestres, por\xe9m a imagem foi cortada e afastada em cada pessoa para demonstrar o dist\xe2nciamento"},paragraphs:[{paragraph:"O distanciamento social \xe9 uma medida recomendada por especialistas em sa\xfade do mundo inteiro para diminuir a prolifera\xe7\xe3o da doen\xe7a, a fim de desacelerar a curva do COVID-19. Isso vai evitar que o sistema de sa\xfade colapse, garantindo que todas as pessoas tenham condi\xe7\xf5es de serem tratadas. E isso \xe9 de extrema import\xe2ncia, pois mesmo a mortalidade de COVID-19 n\xe3o ser t\xe3o alta, as pessoas infectadas que precisam de tratamento ficam internadas, ocupando leitos hospitalares por alguns dias."}],references:["https://www.semprefamilia.com.br/saude/por-que-o-distanciamento-social-e-a-melhor-arma-que-temos-para-combater-o-coronavirus/?ref=veja-tambem","https://www.nature.com/articles/s41591-020-0820-9","https://www.ufrgs.br/telessauders/posts_coronavirus/qual-a-diferenca-de-distanciamento-social-isolamento-e-quarentena/","https://www.semprefamilia.com.br/saude/como-se-proteger-coronavirus-onibus-metro-trem/"]},{id:6,title:"Quais s\xe3o os sintomas da COVID-19?",subtitle:"Os sintomas s\xe3o os sinais percept\xedveis que uma doen\xe7a pode causar. Saiba quais s\xe3o os sintomas da COVID-19",date:"Mai 11, 2020",readTime:3,audio:"./assets/audios/6. Quais sao os sintomas da covid-19.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/6_sintomas.jpg",alt:"Imagem de um term\xf4metro"},paragraphs:[{paragraph:"Os sintomas principais da COVID-19 s\xe3o:"},{step:"1.",paragraph:"Febre;"},{step:"2.",paragraph:"Tosse;"},{step:"3.",isLastStep:!0,paragraph:"Dificuldades para respirar."},{paragraph:"Outros sintomas menos comuns s\xe3o:"},{step:"1.",paragraph:"Dores no corpo;"},{step:"2.",paragraph:"Congest\xe3o nasal;"},{step:"3.",paragraph:"Coriza;"},{step:"4.",paragraph:"Dor de garganta;"},{step:"5.",isLastStep:!0,paragraph:"Diarr\xe9ia."},{paragraph:"Se necess\xe1rio, os m\xe9dicos ir\xe3o diagnosticar a doen\xe7a por meio de exames laboratoriais."}],references:["https://www.saude.gov.br/o-ministro/746-saude-de-a-a-z/46490-novo-coronavirus-o-que-e-causas-sintomas-tratamento-e-prevencao-3","https://saude.abril.com.br/medicina/tratamento-do-novo-coronavirus/","https://coronavirus.saude.gov.br/sobre-a-doenca#transmissao"]},{id:7,title:"A Covid-19 tem cura?",subtitle:"O novo coronav\xedrus \xe9 perigoso, por\xe9m n\xe3o \xe9 uma senten\xe7a",date:"Mai 11, 2020",readTime:4,audio:"./assets/audios/7. A covid-19 tem cura.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/7_cura.jpg",alt:"Imagem de duas pessoas se abra\xe7ando"},paragraphs:[{paragraph:"Sim, at\xe9 dia 20/04 j\xe1 s\xe3o mais de 600 mil pessoas recuperadas no mundo."},{paragraph:"Existem alguns medicamentos sendo testados, contudo a forma mais eficaz de se proteger \xe9 n\xe3o ser infectado (tome as medidas sugeridas no nosso guia n\xfamero 4)!"},{paragraph:"Diversos medicamentos s\xe3o reportados pela m\xeddia, mas JAMAIS se medique sem uma orienta\xe7\xe3o m\xe9dica!"},{paragraph:"Pouco sabemos sobre o futuro da pandemia do COVID-19 para dizermos se essa doen\xe7a ser\xe1 erradicada, ou se tornar\xe1 uma doen\xe7a sazonal como a gripe. N\xe3o se sabe sobre quanto tempo uma pessoa permanece imunizada depois de infectada pelo coronav\xedrus ou se podem haver casos de reincid\xeancia da doen\xe7a."},{paragraph:"Ainda n\xe3o existem vacinas, no entanto, diversos pa\xedses est\xe3o se dedicando em criar e produzi-la. Mas, n\xe3o h\xe1 previs\xf5es sobre quando estar\xe3o dispon\xedveis para a popula\xe7\xe3o."},{paragraph:"Especialistas indicam que se todos os pa\xedses seguirem as recomenda\xe7\xf5es da OMS, o estado de pandemia (contamina\xe7\xe3o em escala mundial de uma doen\xe7a) terminar\xe1 em junho."}],references:["https://oglobo.globo.com/sociedade/coronavirus/epidemiologista-chines-que-lidou-com-sars-afirma-que-pandemia-do-coronavirus-terminara-em-junho-24300192","https://saude.abril.com.br/medicina/tratamento-do-novo-coronavirus/","https://www.abrale.org.br/revista-online/coronavirus-no-brasil-e-imunidade/","https://oglobo.globo.com/sociedade/coronavirus-servico/previna-se-contra-as-fake-news-sobre-coronavirus-24279517","https://veja.abril.com.br/saude/coronavirus-70-vacinas-em-andamento-com-3-candidatas-principais-diz-oms/","https://www.bbc.com/portuguese/internacional-51315759","https://drauziovarella.uol.com.br/coronavirus/peguei-coronavirus-uma-vez-estou-imune/"]},{id:8,title:"O que mais preciso saber sobre a COVID-19?",subtitle:"Mantenha uma vida saud\xe1vel, durante a quarentena. Se cuide!",date:"Mai 11, 2020",readTime:5,audio:"./assets/audios/8. O que mais preciso saber sobre a covid-19.mp3",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/8_o_que_saber.jpg",alt:"Imagem de uma ilustra\xe7\xe3o de uma cabe\xe7a com uma fechadura dentro da mesma"},paragraphs:[{paragraph:"Os planos de sa\xfade com segmenta\xe7\xe3o ambulatorial, hospitalar ou refer\xeancia, cobrem o teste para a COVID-19 se houver indica\xe7\xe3o m\xe9dica, de acordo com o protocolo e as diretrizes definidas pelo Minist\xe9rio da Sa\xfade."},{paragraph:"Neste momento de isolamento social, somados a v\xe1rios fatores, pode afetar nossa sa\xfade mental. Com isso, devemos redobrar o cuidado conosco e com aqueles que nos cercam, buscando amenizar sintomas de ansiedade atrav\xe9s de:"},{step:"1.",paragraph:"Fa\xe7a exerc\xedcios f\xedsicos em casa como alongamentos, aer\xf3bica e o que tem ajudado muitas pessoas nessa quarentena \xe9 a pr\xe1tica do Yoga. S\xe3o alguns minutos que voc\xea ir\xe1 separar do seu dia para fazer esses exerc\xedcios e ap\xf3s fazer a primeira vez, ver\xe1 o quanto se sentir\xe1 mais disposto. Ah lembre de respeitar seus limites. V\xe1 com calma!"},{step:"2.",paragraph:"Evite o bombardeio e o excesso de informa\xe7\xf5es, isso gera ansiedade e medo. \xc9 preciso estar bem informado, mas n\xe3o obcecados e deve-se tomar cuidado com as fake news que circulam pela internet. Escolha um hor\xe1rio do seu dia para se informar. Busque as informa\xe7\xf5es sempre de fontes confi\xe1veis;"},{step:"3.",paragraph:"Mantenha sua alimenta\xe7\xe3o de uma forma saud\xe1vel, evite frituras e alimentos muitos gordurosos, bem como bebidas industrializadas, opte por suco natural e tome bastante \xe1gua. Consuma alimentos ricos em fibras, coma arroz e feij\xe3o pelo menos 5 vezes na semana. Aprecie a comida e coma devagar. Consulte um nutricionista online;"},{step:"4.",paragraph:" Pratique medita\xe7\xe3o, ela ir\xe1 ajudar a diminuir o estresse e a ansiedade, al\xe9m de ser ben\xe9fica para o fortalecimento do sistema imunol\xf3gico. Quando a mente vai bem, o corpo fica mais forte. Comece com medita\xe7\xf5es guiadas, feche os olhos, se conecte-se com o seu eu, preste aten\xe7\xe3o na respira\xe7\xe3o e siga a medita\xe7\xe3o escolhida por voc\xea;"},{step:"5.",paragraph:"Procure cultivar pensamentos positivos e n\xe3o deixe que ao longo do dia pensamentos negativos tomem conta de voc\xea e nem fique ruminando o medo. Procure sempre pelas pessoas de sua casa ou ligue para um amigo para desabafar e falar sobre o seu dia; "},{step:"6.",isLastStep:!0,paragraph:"Procure ajuda de especialistas (psic\xf3logos, psiquiatra) online para te orientar melhor em como lidar com o que estamos passando;"},{paragraph:"Nesse per\xedodo de quarentena, voc\xea n\xe3o est\xe1 sozinho (a), estamos todos juntos =)"}],references:["http://www.ans.gov.br/aans/noticias-ans/consumidor/5405-ans-inclui-exame-para-deteccao-de-coronavirus-no-rol-de-procedimentos-obrigatorios","https://www.vittude.com/blog/quarentena-como-manter-a-saude-mental/"]}];function Vd(e,t){if(1&e){var n=Ua();Na(0,"a",24),Fa("click",(function(){Qt(n);var e=t.$implicit;return qa(2).shareGuide(e.type)})),Da(1,"i",25),ja()}if(2&e){var r=t.$implicit;Er(1),Ra("ngClass",r.icon)}}function Hd(e,t){if(1&e&&(Na(0,"span",28),Ya(1),ja()),2&e){var n=qa().$implicit;Er(1),Ja(n.step)}}function qd(e,t){if(1&e&&(Na(0,"p",26),Ea(1,Hd,2,1,"span",27),Ya(2),ja()),2&e){var n=t.$implicit;Wa("-is-step",n.step)("-is-last-step",n.isLastStep),Er(1),Ra("ngIf",n.step),Er(1),Xa(" ",n.paragraph,"")}}function zd(e,t){if(1&e&&(Na(0,"li"),Na(1,"a",29),Ya(2),ja(),ja()),2&e){var n=t.$implicit;Er(1),Ra("href",n,hr),Er(1),Ja(n)}}function Bd(e,t){if(1&e){var n=Ua();Na(0,"a",24),Fa("click",(function(){Qt(n);var e=t.$implicit;return qa(2).shareGuide(e.type)})),Da(1,"i",25),ja()}if(2&e){var r=t.$implicit;Er(1),Ra("ngClass",r.icon)}}function Gd(e,t){if(1&e){var n=Ua();Na(0,"a",30),Na(1,"button",31),Fa("click",(function(){Qt(n),qa();var e=Ta(1),t=qa();return t.goToNextGuide(t.nextGuide.id,e)})),Ya(2),ja(),ja()}if(2&e){var r=qa(2);Er(2),eo(" ",null==r.nextGuide?null:r.nextGuide.id,". ",null==r.nextGuide?null:r.nextGuide.title," ")}}function Wd(e,t){if(1&e&&(Na(0,"article",1,2),Na(2,"div",3),Na(3,"h1",4),Ya(4),ja(),Na(5,"h2",5),Ya(6),ja(),Na(7,"time",6),Ya(8),ja(),ja(),Na(9,"div",7),Na(10,"div",8),Na(11,"audio",9),Da(12,"source",10),ja(),ja(),Na(13,"div",11),Ea(14,Vd,2,1,"a",12),ja(),ja(),Na(15,"div",13),Na(16,"div",14),Da(17,"img",15),ja(),Na(18,"p",16),Ya(19),ja(),ja(),Na(20,"div",17),Ea(21,qd,3,6,"p",18),ja(),Na(22,"h5",19),Ya(23,"REFER\xcaNCIAS"),ja(),Na(24,"ul",20),Ea(25,zd,3,2,"li",21),ja(),Na(26,"div",22),Na(27,"div",11),Na(28,"h5",19),Ya(29,"COMPARTILHE E AJUDE"),ja(),Na(30,"div"),Ea(31,Bd,2,1,"a",12),ja(),ja(),Ea(32,Gd,3,2,"a",23),ja(),ja()),2&e){var n=qa();Er(4),eo("",null==n.guide?null:n.guide.id,". ",null==n.guide?null:n.guide.title,""),Er(2),Ja(null==n.guide?null:n.guide.subtitle),Er(2),eo("",null==n.guide?null:n.guide.date," - ",null==n.guide?null:n.guide.readTime," min de leitura"),Er(4),Ra("src",n.guide.audio,hr),Er(2),Ra("ngForOf",null==n.guide?null:n.guide.shareButtons),Er(3),Ra("alt",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.alt)("src",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.img,hr),Er(2),Xa("IMG: ",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.alt,""),Er(2),Ra("ngForOf",null==n.guide?null:n.guide.paragraphs),Er(4),Ra("ngForOf",null==n.guide?null:n.guide.references),Er(6),Ra("ngForOf",null==n.guide?null:n.guide.shareButtons),Er(1),Ra("ngIf",null!==n.nextGuide)}}var Qd=[{id:1,title:"O VER\xc3O PODE AJUDAR A CONTER A TRANSMISS\xc3O DO V\xcdRUS?",subtitle:"Saiba se um pa\xeds com o clima mais quente interefere na propaga\xe7\xe3o do v\xedrus",date:"Mai 11, 2020",readTime:2,audio:"",shareButtons:[{icon:"icon-facebook",type:"facebook"},{icon:"icon-whatsapp",type:"whatsapp"}],thumb:{img:"./assets/images/banners/fake_news_verao.jpg",alt:"Imagem contendo imagens rementendo o ver\xe3o. Um abacaxi na piscina, uma b\xf3ia de piscina no formato de um flamingo e uma escada de piscina"},paragraphs:[{paragraph:"Os dados da Organiza\xe7\xe3o Mundial da Sa\xfade (OMS) demonstram que a pandemia cursa tanto em pa\xedses com clima mais frio (caso da It\xe1lia e da China) como em locais mais quentes, a exemplo de regi\xf5es brasileiras e australianas."},{paragraph:"O que se sabe, pela experi\xeancia de epidemias de infec\xe7\xf5es respirat\xf3rias anteriores, \xe9 que os v\xedrus respirat\xf3rios se aproveitam de duas situa\xe7\xf5es: queda na imunidade e aglomera\xe7\xe3o de pessoas. Fatores comuns com a chegada do inverno"}],references:["https://saude.abril.com.br/medicina/como-o-coronavirus-e-transmitido-e-por-quanto-tempo-ele-resiste-por-ai/"]}];function Zd(e,t){if(1&e){var n=Ua();Na(0,"a",21),Fa("click",(function(){Qt(n);var e=t.$implicit;return qa(2).shareGuide(e.type)})),Da(1,"i",22),ja()}if(2&e){var r=t.$implicit;Er(1),Ra("ngClass",r.icon)}}function Kd(e,t){if(1&e&&(Na(0,"span",25),Ya(1),ja()),2&e){var n=qa().$implicit;Er(1),Ja(n.step)}}function $d(e,t){if(1&e&&(Na(0,"p",23),Ea(1,Kd,2,1,"span",24),Ya(2),ja()),2&e){var n=t.$implicit;Wa("-is-step",n.step)("-is-last-step",n.isLastStep),Er(1),Ra("ngIf",n.step),Er(1),Xa(" ",n.paragraph,"")}}function Yd(e,t){if(1&e&&(Na(0,"li"),Na(1,"a",26),Ya(2),ja(),ja()),2&e){var n=t.$implicit;Er(1),Ra("href",n,hr),Er(1),Ja(n)}}function Jd(e,t){if(1&e&&(Na(0,"article",1,2),Na(2,"div",3),Na(3,"h1",4),Ya(4),ja(),Na(5,"h2",5),Ya(6),ja(),Na(7,"time",6),Ya(8),ja(),ja(),Na(9,"div",7),Na(10,"div",8),Ya(11," \xc1udio ainda n\xe3o dispon\xedvel :( "),ja(),Na(12,"div",9),Ea(13,Zd,2,1,"a",10),ja(),ja(),Na(14,"div",11),Na(15,"div",12),Da(16,"img",13),ja(),Na(17,"p",14),Ya(18),ja(),ja(),Na(19,"div",15),Ea(20,$d,3,6,"p",16),ja(),Na(21,"h5",17),Ya(22,"REFER\xcaNCIAS"),ja(),Na(23,"ul",18),Ea(24,Yd,3,2,"li",19),ja(),Na(25,"div",20),Ya(26," Nossa se\xe7\xe3o de Fake News ainda est\xe1 em desenvolvimento! Fique a vontade para contribuir com uma sugest\xe3o ou den\xfancia de fake news clicando aqui! ;) "),ja(),ja()),2&e){var n=qa();Er(4),eo("",null==n.guide?null:n.guide.id,". ",null==n.guide?null:n.guide.title,""),Er(2),Ja(null==n.guide?null:n.guide.subtitle),Er(2),eo("",null==n.guide?null:n.guide.date," - ",null==n.guide?null:n.guide.readTime," min de leitura"),Er(5),Ra("ngForOf",null==n.guide?null:n.guide.shareButtons),Er(3),Ra("alt",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.alt)("src",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.img,hr),Er(2),Xa("IMG: ",null==n.guide?null:null==n.guide.thumb?null:n.guide.thumb.alt,""),Er(2),Ra("ngForOf",null==n.guide?null:n.guide.paragraphs),Er(4),Ra("ngForOf",null==n.guide?null:n.guide.references)}}var Xd,ep,tp,np,rp,ip,ap=[{path:"home",component:(np=function(){function e(){_classCallCheck(this,e),this.guides=Nd,this.asideItems=jd}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),np.\u0275fac=function(e){return new(e||np)},np.\u0275cmp=dt({type:np,selectors:[["app-home"]],decls:12,vars:2,consts:[[1,"home","fadeIn"],[1,"start"],[1,"main"],[1,"title-subtitle"],[1,"title"],[1,"subtitle"],[1,"small-cards"],["class","card",3,"routerLink",4,"ngFor","ngForOf"],[1,"aside"],["class","aside-cards",3,"routerLink",4,"ngFor","ngForOf"],[1,"card",3,"routerLink"],[1,"thumbnail"],[1,"image",3,"src","alt"],[1,"info"],[1,"description"],[1,"link"],[1,"aside-cards",3,"routerLink"],[1,"card"],[1,"background-img",3,"alt","src"],[1,"title-description"],[1,"read-more"]],template:function(e,t){1&e&&(Na(0,"div",0),Na(1,"section",1),Na(2,"div",2),Na(3,"div",3),Na(4,"h1",4),Ya(5,"ENTENDA TUDO SOBRE O COVID-19"),ja(),Na(6,"span",5),Ya(7,"TUDO O QUE VOC\xca PRECISA SABER DE MANEIRA SIMPLES, OBJETIVA E ENRIQUECEDORA"),ja(),ja(),Na(8,"section",6),Ea(9,Md,10,7,"article",7),ja(),ja(),Na(10,"div",8),Ea(11,Ld,10,7,"aside",9),ja(),ja(),ja()),2&e&&(Er(9),Ra("ngForOf",t.guides),Er(2),Ra("ngForOf",t.asideItems))},directives:[Ku,nd],styles:[""]}),np)},{path:"guia/:id",component:(tp=function(){function e(t,n){_classCallCheck(this,e),this.route=t,this.router=n,this.guides=Fd,this.nextGuide=null}return _createClass(e,[{key:"ngOnInit",value:function(){try{if(!/^\d+$/.test(this.route.snapshot.paramMap.get("id")))throw new Error}catch(e){console.error("O valor passado de parametro provavelmente n\xe3o \xe9 um n\xfamero v\xe1lido. Ir\xe1 redirecionar para HOME"),this.router.navigate(["home"])}this.GUIDE_ID=parseFloat(this.route.snapshot.paramMap.get("id")),this.loadGuide()}},{key:"loadGuide",value:function(){var e=this.GUIDE_ID;for(var t in e>8&&this.router.navigate(["home"]),this.guides)if(this.guides[t].id===e)if(this.guide=this.cloneObject(this.guides[t]),e<8){var n=parseInt(t)+1;this.nextGuide=this.cloneObject(this.guides[n])}else this.nextGuide=null}},{key:"goToNextGuide",value:function(e,t){this.router.navigate(["guia/".concat(e)]),this.GUIDE_ID=e,this.loadGuide(),this.scrollToElement(t),document.querySelector("audio").src=this.guide.audio}},{key:"cloneObject",value:function(e){return JSON.parse(JSON.stringify(e))}},{key:"scrollToElement",value:function(e){setTimeout((function(){e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),100)}},{key:"shareGuide",value:function(e){if("facebook"===e){var t=screen.width/2-315,n=screen.height/2-180;window.open("\n http://www.facebook.com/sharer.php?u=https://www.guiacovid19.com.br/%23/home","Compartilhar no facebook","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=630, height=360, top="+n+", left="+t)}else window.open("https://wa.me/?text=Olha s\xf3 que mat\xe9ria legal que eu vi no portal do Guia COVID-19 sobre ".concat(this.guide.title,": https://www.guiacovid19.com.br/%23/guia/").concat(this.GUIDE_ID))}}]),e}(),tp.\u0275fac=function(e){return new(e||tp)(Oa(Bh),Oa(td))},tp.\u0275cmp=dt({type:tp,selectors:[["app-guide-detail"]],decls:1,vars:1,consts:[["class","page-detail container fadeIn",4,"ngIf"],[1,"page-detail","container","fadeIn"],["guia",""],[1,"header"],[1,"title"],[1,"subtitle"],[1,"time"],[1,"upper-thumb"],[1,"listen"],["controls",""],["id","audio","type","audio/mp3",3,"src"],[1,"share"],["class","icon",3,"click",4,"ngFor","ngForOf"],[1,"thumb"],[1,"img-wrapper"],[1,"img",3,"alt","src"],[1,"description"],[1,"guide"],["class","paragraph",3,"-is-step","-is-last-step",4,"ngFor","ngForOf"],[1,"small-title"],[1,"references"],[4,"ngFor","ngForOf"],[1,"share-next"],["class","next",4,"ngIf"],[1,"icon",3,"click"],[3,"ngClass"],[1,"paragraph"],["class","step",4,"ngIf"],[1,"step"],["target","_blank",1,"link",3,"href"],[1,"next"],["type","button",1,"btn","-next-guide",3,"click"]],template:function(e,t){1&e&&Ea(0,Wd,33,14,"article",0),2&e&&Ra("ngIf",t.guide)},directives:[Yu,Ku,Qu],styles:[""]}),tp)},{path:"fakenews",component:(ep=function(){function e(){_classCallCheck(this,e),this.guide=Qd[0]}return _createClass(e,[{key:"shareGuide",value:function(e){if("facebook"===e){var t=screen.width/2-315,n=screen.height/2-180;window.open("\n http://www.facebook.com/sharer.php?u=https://www.guiacovid19.com.br/%23/home","Compartilhar no facebook","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=630, height=360, top="+n+", left="+t)}else window.open("https://wa.me/?text=Olha s\xf3 que mat\xe9ria legal que eu vi no portal do Guia COVID-19 sobre ".concat(this.guide.title,": https://www.guiacovid19.com.br/%23/fakenews/"))}},{key:"ngOnInit",value:function(){}}]),e}(),ep.\u0275fac=function(e){return new(e||ep)},ep.\u0275cmp=dt({type:ep,selectors:[["app-fake-detail"]],decls:1,vars:1,consts:[["class","page-detail container fadeIn",4,"ngIf"],[1,"page-detail","container","fadeIn"],["guia",""],[1,"header"],[1,"title"],[1,"subtitle"],[1,"time"],[1,"upper-thumb"],[1,"listen"],[1,"share"],["class","icon",3,"click",4,"ngFor","ngForOf"],[1,"thumb"],[1,"img-wrapper"],[1,"img",3,"alt","src"],[1,"description"],[1,"guide"],["class","paragraph",3,"-is-step","-is-last-step",4,"ngFor","ngForOf"],[1,"small-title"],[1,"references"],[4,"ngFor","ngForOf"],["onclick","window.open('https://docs.google.com/forms/d/e/1FAIpQLSfayn6fvTKbGFbpYJnKIlAajF8EKFhSHqYEql-Aw3Pi6x00xw/viewform?usp=sf_link')",1,"disclaimer"],[1,"icon",3,"click"],[3,"ngClass"],[1,"paragraph"],["class","step",4,"ngIf"],[1,"step"],["target","_blank",1,"link",3,"href"]],template:function(e,t){1&e&&Ea(0,Jd,27,11,"article",0),2&e&&Ra("ngIf",t.guide)},directives:[Yu,Ku,Qu],styles:[".disclaimer[_ngcontent-%COMP%]{margin-top:20px;padding:10px;color:#0028ff;background:rgba(0,35,255,.08);border-radius:7px;cursor:pointer;line-height:20px;transition:background .5s}.disclaimer[_ngcontent-%COMP%]:hover{background:rgba(0,34,255,.14)}"]}),ep)},{path:"mapa",component:(Xd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),Xd.\u0275fac=function(e){return new(e||Xd)},Xd.\u0275cmp=dt({type:Xd,selectors:[["app-mapa"]],decls:6,vars:0,consts:[[1,"title"],["src","https://www.bing.com/covid/local/brazil","height","100%","width","100%","frameborder","0"],["href","myPageURL.htm"]],template:function(e,t){1&e&&(Na(0,"h1",0),Ya(1,"Mapa interativo"),ja(),Na(2,"iframe",1),Ya(3,"Your browser doesnot support iframes"),Na(4,"a",2),Ya(5," click here to view the page directly. "),ja(),ja())},styles:[".title[_ngcontent-%COMP%]{font-size:42px;line-height:40px;margin-bottom:35px;font-weight:800}iframe[_ngcontent-%COMP%]{display:block;background:#f3f3f3;border:none;height:100vh;width:100%;margin-bottom:30px}"]}),Xd)},{path:"**",redirectTo:"home"}],op=((ip=function e(){_classCallCheck(this,e)}).\u0275mod=mt({type:ip}),ip.\u0275inj=ve({factory:function(e){return new(e||ip)},imports:[[bd.forRoot(ap,{useHash:!0})],bd]}),ip),sp=((rp=function(){function e(){_classCallCheck(this,e),this.menuAberto=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||rp)},rp.\u0275cmp=dt({type:rp,selectors:[["app-hamburger-icon"]],inputs:{menuAberto:"menuAberto"},decls:8,vars:2,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","width","320px","height","220.5px","viewBox","0 0 32 22.5","enable-background","new 0 0 32 22.5",0,"xml","space","preserve",1,"inline-svg"],[1,"svg-menu-toggle"],["d","M20.945,8.75c0,0.69-0.5,1.25-1.117,1.25H3.141c-0.617,0-1.118-0.56-1.118-1.25l0,0\n c0-0.69,0.5-1.25,1.118-1.25h16.688C20.445,7.5,20.945,8.06,20.945,8.75L20.945,8.75z",1,"bar"],["d","M20.923,15c0,0.689-0.501,1.25-1.118,1.25H3.118C2.5,16.25,2,15.689,2,15l0,0c0-0.689,0.5-1.25,1.118-1.25 h16.687C20.422,13.75,20.923,14.311,20.923,15L20.923,15z",1,"bar"],["d","M20.969,21.25c0,0.689-0.5,1.25-1.117,1.25H3.164c-0.617,0-1.118-0.561-1.118-1.25l0,0\n c0-0.689,0.5-1.25,1.118-1.25h16.688C20.469,20,20.969,20.561,20.969,21.25L20.969,21.25z",1,"bar"],["width","30","height","30","fill","none"]],template:function(e,t){1&e&&(zt.lFrame.currentNamespace="http://www.w3.org/2000/svg",Na(0,"svg",0),Na(1,"title"),Ya(2,"Mobile Menu"),ja(),Na(3,"g",1),Da(4,"path",2),Da(5,"path",3),Da(6,"path",4),Da(7,"rect",5),ja(),ja()),2&e&&(Er(3),Wa("-active",t.menuAberto))},styles:[".svg-menu-toggle[_ngcontent-%COMP%]{fill:#151522;pointer-events:all;cursor:pointer}.svg-menu-toggle[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{transform:rotate(0) translateY(0) translateX(0);opacity:1;transform-origin:20px 10px;transition:transform .4s ease-in-out,opacity .2s ease-in-out}.svg-menu-toggle[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:first-of-type{transform-origin:20px 10px}.svg-menu-toggle[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:nth-of-type(3){transform-origin:20px 20px}.svg-menu-toggle.-active[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:first-of-type{transform:rotate(-45deg) translateY(0) translateX(0)}.svg-menu-toggle.-active[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:nth-of-type(2){opacity:0}.svg-menu-toggle.-active[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]:nth-of-type(3){transform:rotate(45deg) translateY(0) translateX(0)}.inline-svg[_ngcontent-%COMP%]{display:block;margin:0 auto;width:70px;height:80px;padding:10px 10px 15px 15px}body[_ngcontent-%COMP%]{background-color:#4c4c4c}"]}),rp),up=function(e){return{"-active":e}};function lp(e,t){if(1&e){var n=Ua();Na(0,"a",14),Fa("click",(function(){return Qt(n),qa().menuAberto=!1})),Ya(1,"ENTENDA TUDO SOBRE"),ja(),Na(2,"a",15),Fa("click",(function(){return Qt(n),qa().menuAberto=!1})),Ya(3,"FAKE NEWS"),ja(),Na(4,"a",16),Fa("click",(function(){return Qt(n),qa().menuAberto=!1})),Ya(5,"MAPA"),ja()}if(2&e){qa();var r=Ta(1),i=Ta(3);Ra("ngClass",Xo(1,up,r.isActive||i.isActive))}}function cp(e,t){1&e&&Ma(0)}function hp(e,t){1&e&&Ma(0)}var fp,dp,pp,vp=function(){return["/home"]},gp=((pp=function(){function e(){_classCallCheck(this,e),this.menuAberto=!1}return _createClass(e,[{key:"openMenu",value:function(){this.menuAberto=!this.menuAberto}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||pp)},pp.\u0275cmp=dt({type:pp,selectors:[["app-menu"]],decls:16,vars:7,consts:[["routerLink","/guia","routerLinkActive","",2,"display","none"],["guia","routerLinkActive"],["routerLink","/home","routerLinkActive","",2,"display","none"],["home","routerLinkActive"],["links",""],[1,"menu","fadeIn"],[1,"wrapper","container"],[1,"logo",3,"routerLink"],["src","./assets/images/logo_guia_covid.svg",1,"image"],[1,"links-desktop"],[4,"ngTemplateOutlet"],[1,"menu-mobile"],[3,"menuAberto","click"],[1,"links-mobile"],["routerLink","/home",1,"link",3,"ngClass","click"],["routerLink","/fakenews","routerLinkActive","-active",1,"link",3,"click"],["routerLink","/mapa","routerLinkActive","-active",1,"link",3,"click"]],template:function(e,t){if(1&e&&(Da(0,"span",0,1),Da(2,"span",2,3),Ea(4,lp,6,3,"ng-template",null,4,vs),Na(6,"header",5),Na(7,"div",6),Na(8,"div",7),Da(9,"img",8),ja(),Na(10,"nav",9),Ea(11,cp,1,0,"ng-container",10),ja(),Na(12,"nav",11),Na(13,"app-hamburger-icon",12),Fa("click",(function(){return t.openMenu()})),ja(),Na(14,"nav",13),Ea(15,hp,1,0,"ng-container",10),ja(),ja(),ja(),ja()),2&e){var n=Ta(5);Er(8),Ra("routerLink",(r=vp,i=en()+6,(a=Gt())[i]===Sr?ba(a,i,r()):function(e,t){return e[t]}(a,i))),Er(3),Ra("ngTemplateOutlet",n),Er(1),Wa("-active",t.menuAberto),Er(1),Ra("menuAberto",t.menuAberto),Er(2),Ra("ngTemplateOutlet",n)}var r,i,a},directives:[nd,ld,nl,sp,rd,Qu],styles:[""]}),pp),mp=((dp=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||dp)},dp.\u0275cmp=dt({type:dp,selectors:[["app-footer"]],decls:57,vars:0,consts:[[1,"footer"],[1,"container","title-wrapper"],[1,"title"],[1,"wrapper","container"],[1,"section","names"],[1,"names-1"],[1,"contact"],["href","https://www.instagram.com/maumunhoz52/","target","_blank",1,"icon-instagram","icon"],["href","https://www.linkedin.com/in/mauriciomunhoz/","target","_blank",1,"icon-linkedin","icon"],["href","https://www.instagram.com/marcellemuniz/","target","_blank",1,"icon-instagram","icon"],["href","https://www.linkedin.com/in/marcellemuniz","target","_blank",1,"icon-linkedin","icon"],["href","https://www.instagram.com/lucas.a.c/","target","_blank",1,"icon-instagram","icon"],["href","https://www.linkedin.com/in/lacordeiro/","target","_blank",1,"icon-linkedin","icon"],[1,"names-2"],["href","https://www.facebook.com/nathalia.lopescoimbra","target","_blank",1,"icon-facebook","icon"],["href","https://www.linkedin.com/in/nathalialcoimbra","target","_blank",1,"icon-linkedin","icon"],["href","https://www.facebook.com/VitorTakara","target","_blank",1,"icon-facebook","icon"],["href","https://www.linkedin.com/in/vitortakara/","target","_blank",1,"icon-linkedin","icon"],["href","https://www.facebook.com/bkurahara/","target","_blank",1,"icon-facebook","icon"],["href","http://buscatextual.cnpq.br/buscatextual/visualizacv.do?metodo=apresentar&id=K8291805P4","target","_blank",1,"icon-linkedin","icon"],["href","https://www.facebook.com/lucas.keven","target","_blank",1,"icon-facebook","icon"],["href","https://www.linkedin.com/in/lucas-keven-931325104/","target","_blank",1,"icon-linkedin","icon"],[1,"section","button","_text-center"],["type","button","onclick","window.open('https://docs.google.com/forms/d/e/1FAIpQLSfayn6fvTKbGFbpYJnKIlAajF8EKFhSHqYEql-Aw3Pi6x00xw/viewform?usp=sf_link')",1,"btn"],[1,"logo"],["src",""]],template:function(e,t){1&e&&(Na(0,"footer",0),Na(1,"div",1),Na(2,"h5",2),Ya(3,"DESENVOLVIDO COM \u2764\ufe0f POR:"),ja(),ja(),Na(4,"div",3),Na(5,"section",4),Na(6,"div",5),Na(7,"ul"),Na(8,"li"),Na(9,"span"),Ya(10,"Maur\xedcio Munhoz"),ja(),Na(11,"div",6),Da(12,"a",7),Da(13,"a",8),ja(),ja(),Na(14,"li"),Na(15,"span"),Ya(16,"Marcelle Muniz"),ja(),Na(17,"div",6),Da(18,"a",9),Da(19,"a",10),ja(),ja(),Na(20,"li"),Na(21,"span"),Ya(22,"Lucas Cordeiro"),ja(),Na(23,"div",6),Da(24,"a",11),Da(25,"a",12),ja(),ja(),ja(),ja(),Na(26,"div",13),Na(27,"ul"),Na(28,"li"),Na(29,"span"),Ya(30,"Nath\xe1lia Lopes"),ja(),Na(31,"div",6),Da(32,"a",14),Da(33,"a",15),ja(),ja(),Na(34,"li"),Na(35,"span"),Ya(36,"Vitor Takara"),ja(),Na(37,"div",6),Da(38,"a",16),Da(39,"a",17),ja(),ja(),Na(40,"li"),Na(41,"span"),Ya(42,"Brayan Kurahara"),ja(),Na(43,"div",6),Da(44,"a",18),Da(45,"a",19),ja(),ja(),Na(46,"li"),Na(47,"span"),Ya(48,"Lucas Keven"),ja(),Na(49,"div",6),Da(50,"a",20),Da(51,"a",21),ja(),ja(),ja(),ja(),ja(),Na(52,"section",22),Na(53,"button",23),Ya(54,"DENUNCIE AS FAKE NEWS AQUI!"),ja(),Na(55,"div",24),Da(56,"img",25),ja(),ja(),ja(),ja())},styles:[""]}),dp),yp=((fp=function e(){_classCallCheck(this,e),this.title="squad8dobem"}).\u0275fac=function(e){return new(e||fp)},fp.\u0275cmp=dt({type:fp,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"app-content","container"]],template:function(e,t){1&e&&(Da(0,"app-menu"),Na(1,"main",0),Da(2,"router-outlet"),ja(),Da(3,"app-footer"))},directives:[gp,fd,mp],styles:[""]}),fp);function _p(e,t){return new w(t?function(n){return t.schedule(kp,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function kp(e){var t=e.error;e.subscriber.error(t)}function Cp(e,t,n,i){return r(n)&&(i=n,n=void 0),i?Cp(e,t,n).pipe(F((function(e){return u(e)?i.apply(void 0,_toConsumableArray(e)):i(e)}))):new w((function(r){!function e(t,n,r,i,a){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,r,a),o=function(){return s.removeEventListener(n,r,a)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var u=t;t.on(n,r),o=function(){return u.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var l=t;t.addListener(n,r),o=function(){return l.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,h=t.length;c<h;c++)e(t[c],n,r,i,a)}i.add(o)}(e,t,(function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),r,n)}))}var wp,bp,Sp,xp=new w(y),Ep=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(f)),Tp=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Op=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tp.now;return _classCallCheck(this,n),(r=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Tp))(Ep),Ap=((wp=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return zl(this.value);case"E":return _p(this.error);case"C":return $l()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new wp("C"),wp.undefinedValueNotification=new wp("N",void 0),wp),Ip=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Rp(e,this.delay,this.scheduler))}}]),e}(),Rp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=r,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new Pp(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ap.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ap.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var a=Math.max(0,n[0].time-r.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(v),Pp=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},Np="Service workers are disabled or not supported by this browser",jp=function(){function e(t){if(_classCallCheck(this,e),this.serviceWorker=t,t){var n=Cp(t,"controllerchange").pipe(F((function(){return t.controller}))),r=Ec(Yl((function(){return zl(t.controller)})),n);this.worker=r.pipe(Xl((function(e){return!!e}))),this.registration=this.worker.pipe(bc((function(){return t.getRegistration()})));var i=Cp(t,"message").pipe(F((function(e){return e.data}))).pipe(Xl((function(e){return e&&e.type}))).pipe(re(new O));i.connect(),this.events=i}else this.worker=this.events=this.registration=Yl((function(){return _p(new Error("Service workers are disabled or not supported by this browser"))}))}return _createClass(e,[{key:"postMessage",value:function(e,t){return this.worker.pipe(mc(1),Rc((function(n){n.postMessage(Object.assign({action:e},t))}))).toPromise().then((function(){}))}},{key:"postMessageWithStatus",value:function(e,t,n){var r=this.waitForStatus(n),i=this.postMessage(e,t);return Promise.all([r,i]).then((function(){}))}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(e){return this.events.pipe(Xl((function(t){return t.type===e})))}},{key:"nextEventOfType",value:function(e){return this.eventsOfType(e).pipe(mc(1))}},{key:"waitForStatus",value:function(e){return this.eventsOfType("STATUS").pipe(Xl((function(t){return t.nonce===e})),mc(1),F((function(e){if(!e.status)throw new Error(e.error)}))).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),e}(),Dp=((Sp=function(){function e(t){if(_classCallCheck(this,e),this.sw=t,this.subscriptionChanges=new O,!t.isEnabled)return this.messages=xp,this.notificationClicks=xp,void(this.subscription=xp);this.messages=this.sw.eventsOfType("PUSH").pipe(F((function(e){return e.data}))),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(F((function(e){return e.data}))),this.pushManager=this.sw.registration.pipe(F((function(e){return e.pushManager})));var n=this.pushManager.pipe(bc((function(e){return e.getSubscription()})));this.subscription=$(n,this.subscriptionChanges)}return _createClass(e,[{key:"requestSubscription",value:function(e){var t=this;if(!this.sw.isEnabled)return Promise.reject(new Error(Np));for(var n={userVisibleOnly:!0},r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(r.length)),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return n.applicationServerKey=i,this.pushManager.pipe(bc((function(e){return e.subscribe(n)})),mc(1)).toPromise().then((function(e){return t.subscriptionChanges.next(e),e}))}},{key:"unsubscribe",value:function(){var e=this;return this.sw.isEnabled?this.subscription.pipe(mc(1),bc((function(t){if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then((function(t){if(!t)throw new Error("Unsubscribe failed!");e.subscriptionChanges.next(null)}))}))).toPromise():Promise.reject(new Error(Np))}},{key:"decodeBase64",value:function(e){return atob(e)}},{key:"isEnabled",get:function(){return this.sw.isEnabled}}]),e}()).\u0275fac=function(e){return new(e||Sp)(Ye(jp))},Sp.\u0275prov=pe({token:Sp,factory:Sp.\u0275fac}),Sp),Mp=((bp=function(){function e(t){if(_classCallCheck(this,e),this.sw=t,!t.isEnabled)return this.available=xp,void(this.activated=xp);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}return _createClass(e,[{key:"checkForUpdate",value:function(){if(!this.sw.isEnabled)return Promise.reject(new Error(Np));var e=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:e},e)}},{key:"activateUpdate",value:function(){if(!this.sw.isEnabled)return Promise.reject(new Error(Np));var e=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:e},e)}},{key:"isEnabled",get:function(){return this.sw.isEnabled}}]),e}()).\u0275fac=function(e){return new(e||bp)(Ye(jp))},bp.\u0275prov=pe({token:bp,factory:bp.\u0275fac}),bp),Up=function e(){_classCallCheck(this,e)},Lp=new qe("NGSW_REGISTER_SCRIPT");function Fp(e,t,n,r){return function(){if(il(r)&&"serviceWorker"in navigator&&!1!==n.enabled){var i;if(navigator.serviceWorker.addEventListener("controllerchange",(function(){null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})})),"function"==typeof n.registrationStrategy)i=n.registrationStrategy();else{var a=_toArray((n.registrationStrategy||"registerWhenStable").split(":")),o=a[0],s=a.slice(1);switch(o){case"registerImmediately":i=zl(null);break;case"registerWithDelay":i=zl(null).pipe(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Op,r=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new Ip(r,n))}}(+s[0]||0));break;case"registerWhenStable":i=e.get(iu).isStable.pipe(Xl((function(e){return e})));break;default:throw new Error("Unknown ServiceWorker registration strategy: ".concat(n.registrationStrategy))}}i.pipe(mc(1)).subscribe((function(){return navigator.serviceWorker.register(t,{scope:n.scope}).catch((function(e){return console.error("Service worker registration failed with:",e)}))}))}}}function Vp(e,t){return new jp(il(t)&&!1!==e.enabled?navigator.serviceWorker:void 0)}var Hp,qp,zp=((qp=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"register",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:e,providers:[{provide:Lp,useValue:t},{provide:Up,useValue:n},{provide:jp,useFactory:Vp,deps:[Up,ws]},{provide:gs,useFactory:Fp,deps:[fa,Lp,Up,ws],multi:!0}]}}}]),e}()).\u0275mod=mt({type:qp}),qp.\u0275inj=ve({factory:function(e){return new(e||qp)},providers:[Dp,Mp]}),qp),Bp=((Hp=function e(){_classCallCheck(this,e)}).\u0275mod=mt({type:Hp,bootstrap:[yp]}),Hp.\u0275inj=ve({factory:function(e){return new(e||Hp)},providers:[],imports:[[ql,op,zp.register("ngsw-worker.js",{enabled:!0})]]}),Hp);(function(){if(or)throw new Error("Cannot enable prod mode after platform setup.");ar=!1})(),Vl().bootstrapModule(Bp).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);