(window.webpackJsonpHeader=window.webpackJsonpHeader||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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&&l(e,t)}function c(){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 h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?f(e):t}function p(e){var t=c();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t){if(e){if("string"==typeof e)return v(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||m(e,t)||function(){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 _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(e)||function(){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 b(e,t,n){return(b=c()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return b(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}n.r(t);var w=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function C(e){return null!==e&&"object"==typeof e}function x(e){return"function"==typeof e}var S=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}(),E=function(){var e=function(){function e(t){o(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return s(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(x(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){t=c instanceof S?A(c.errors):[c]}}if(w(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(C(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof S?t=t.concat(A(c.errors)):t.push(c)}}if(t)throw new S(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 i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.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}();return e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function A(e){return e.reduce(function(e,t){return e.concat(t instanceof S?t.errors:t)},[])}var I=!1,T={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 P={closed:!0,next:function(e){},error:function(e){if(T.useDeprecatedSynchronousErrorHandling)throw e;O(e)},complete:function(){}},D=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),R=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;switch(o(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=P;break;case 1:if(!e){a.destination=P;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(f(a))):(a.syncErrorThrowable=!0,a.destination=new M(f(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new M(f(a),e,i,r)}return a}return s(n,[{key:D,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,r(i(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,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(E),M=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s,l;o(this,n),(s=t.call(this))._parentSubscriber=e;var u=f(s);return x(i)?l=i:i&&(l=i.next,r=i.error,a=i.complete,i!==P&&(x((u=Object.create(i)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(f(s)))),s._context=u,s._next=l,s._error=r,s._complete=a,s}return s(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;T.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=T.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)};T.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(),T.useDeprecatedSynchronousErrorHandling)throw n;O(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!T.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return T.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(O(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(R),L=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function F(e){return e}function N(e){return 0===e.length?F:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var V=function(){var e=function(){function e(t){o(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return s(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 i=this.operator,r=function(e,t,n){if(e){if(e instanceof R)return e;if(e[D])return e[D]()}return e||t||n?new R(e,t,n):new R(P)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||T.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),T.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){T.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof R?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=j(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:L,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:N(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=j(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function j(e){if(e||(e=T.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var U=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),B=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return s(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}(E),H=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e)).destination=e,i}return s(n)}(R),z=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return s(n,[{key:D,value:function(){return new H(this)}},{key:"lift",value:function(e){var t=new G(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new U;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new U;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new U;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].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 U;return r(i(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new U;return this.hasError?(e.error(this.thrownError),E.EMPTY):this.isStopped?(e.complete(),E.EMPTY):(this.observers.push(e),new B(this,e))}},{key:"asObservable",value:function(){var e=new V;return e.source=this,e}}]),n}(V);return e.create=function(e,t){return new G(e,t)},e}(),G=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).destination=e,r.source=i,r}return s(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):E.EMPTY}}]),n}(z);function Q(e){return e&&"function"==typeof e.schedule}function W(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 q(e,t))}}var q=function(){function e(t,n){o(this,e),this.project=t,this.thisArg=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Y(e,this.project,this.thisArg))}}]),e}(),Y=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||f(a),a}return s(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}(R),K=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};function Z(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var X=Z(),$=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function J(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var ee=function(e){if(e&&"function"==typeof e[L])return i=e,function(e){var t=i[L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if($(e))return K(e);if(J(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[X])return t=e,function(e){for(var n=t[X]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=C(e)?"an invalid object":"'".concat(e,"'"),o="You provided ".concat(r," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(o)};function te(e,t){return new V(function(n){var i=new E,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function ne(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[L]}(e))return function(e,t){return new V(function(n){var i=new E;return i.add(t.schedule(function(){var r=e[L]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(J(e))return function(e,t){return new V(function(n){var i=new E;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if($(e))return te(e,t);if(function(e){return e&&"function"==typeof e[X]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(function(n){var i,r=new E;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[X](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof V?e:new V(ee(e))}var ie=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).parent=e,i}return s(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(R),re=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(R);function oe(e,t){if(!t.closed){if(e instanceof V)return e.subscribe(t);var n;try{n=ee(e)(t)}catch(i){t.error(i)}return n}}function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ae(function(n,i){return ne(e(n,i)).pipe(W(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new se(e,n))})}var se=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;o(this,e),this.project=t,this.concurrent=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new le(e,this.project,this.concurrent))}}]),e}(),le=function(e){u(n,e);var t=p(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return o(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return s(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(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new ie(this),n=this.destination;n.add(t);var i=oe(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(re);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ae(F,e)}function ce(e,t){return t?te(e,t):new V(K(e))}function he(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=i[i.length-1];return Q(o)?(t=i.pop(),i.length>1&&"number"==typeof i[i.length-1]&&(e=i.pop())):"number"==typeof o&&(e=i.pop()),null===t&&1===i.length&&i[0]instanceof V?i[0]:ue(e)(ce(i,t))}function fe(){return function(e){return e.lift(new de(e))}}var de=function(){function e(t){o(this,e),this.connectable=t}return s(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new pe(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),pe=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).connectable=i,r}return s(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,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(R),ve=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return s(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 E).add(this.source.subscribe(new ye(this.getSubject(),this))),e.closed&&(this._connection=null,e=E.EMPTY)),e}},{key:"refCount",value:function(){return fe()(this)}}]),n}(V),me=function(){var e=ve.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ye=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).connectable=i,r}return s(n,[{key:"_error",value:function(e){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(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}(H);function ge(){return new z}function _e(){return function(e){return fe()((t=ge,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,me);return i.source=e,i.subjectFactory=n,i})(e));var t}}function be(e){for(var t in e)if(e[t]===be)return t;throw Error("Could not find renamed property on target object.")}function ke(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function we(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(we).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 Ce(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var xe=be({__forward_ref__:be});function Se(e){return e.__forward_ref__=Se,e.toString=function(){return we(this())},e}function Ee(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(xe)&&e.__forward_ref__===Se}var Ie=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,i))).code=e,r}return s(n)}(k(Error));function Te(e){return"string"==typeof e?e:null==e?"":String(e)}function Oe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Te(e)}function Pe(e,t){var n=t?" in ".concat(t):"";throw new Ie("201","No provider for ".concat(Oe(e)," found").concat(n))}function De(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Re(e){return{providers:e.providers||[],imports:e.imports||[]}}function Me(e){return Le(e,Ve)||Le(e,Ue)}function Le(e,t){return e.hasOwnProperty(t)?e[t]:null}function Fe(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(Be))?e[je]:null}var Ne,Ve=be({"\u0275prov":be}),je=be({"\u0275inj":be}),Ue=be({ngInjectableDef:be}),Be=be({ngInjectorDef:be}),He=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 ze(){return Ne}function Ge(e){var t=Ne;return Ne=e,t}function Qe(e,t,n){var i=Me(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&He.Optional?null:void 0!==t?t:void Pe(we(e),"Injector")}function We(e){return{toString:e}.toString()}var qe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ye=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ke="undefined"!=typeof globalThis&&globalThis,Ze="undefined"!=typeof window&&window,Xe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$e="undefined"!=typeof global&&global,Je=Ke||$e||Ze||Xe,et={},tt=[],nt=[],it=be({"\u0275cmp":be}),rt=be({"\u0275dir":be}),ot=be({"\u0275pipe":be}),at=be({"\u0275mod":be}),st=be({"\u0275loc":be}),lt=be({"\u0275fac":be}),ut=be({__NG_ELEMENT_ID__:be}),ct=0;function ht(e){return We(function(){var t={},n={type:e.type,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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ye.Emulated,id:"c",styles:e.styles||nt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=ct++,n.inputs=mt(e.inputs,t),n.outputs=mt(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ft)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(dt)}:null,n})}function ft(e){return _t(e)||function(e){return e[rt]||null}(e)}function dt(e){return function(e){return e[ot]||null}(e)}var pt={};function vt(e){var t={type:e.type,bootstrap:e.bootstrap||nt,declarations:e.declarations||nt,imports:e.imports||nt,exports:e.exports||nt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&We(function(){pt[e.id]=e.type}),t}function mt(e,t){if(null==e)return et;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var yt=ht;function gt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _t(e){return e[it]||null}function bt(e,t){var n=e[at]||null;if(!n&&!0===t)throw new Error("Type ".concat(we(e)," does not have '\u0275mod' property."));return n}var kt=20,wt=10;function Ct(e){return Array.isArray(e)&&"object"==typeof e[1]}function xt(e){return Array.isArray(e)&&!0===e[1]}function St(e){return 0!=(8&e.flags)}function Et(e){return 2==(2&e.flags)}function At(e){return 1==(1&e.flags)}function It(e){return null!==e.template}function Tt(e,t){return e.hasOwnProperty(lt)?e[lt]:null}var Ot=function(){function e(t,n,i){o(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return s(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Pt(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mt),Rt}function Rt(){var e=Lt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===et)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Mt(e,t,n,i){var r=Lt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:et,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Ot(l&&l.currentValue,t,a===et),e[i]=t}function Lt(e){return e.__ngSimpleChanges__||null}Pt.ngInherit=!0;var Ft="http://www.w3.org/2000/svg",Nt=void 0;function Vt(){return void 0!==Nt?Nt:"undefined"!=typeof document?document:void 0}function jt(e){return!!e.listen}var Ut={createRenderer:function(e,t){return Vt()}};function Bt(e){for(;Array.isArray(e);)e=e[0];return e}function Ht(e,t){return Bt(t[e])}function zt(e,t){return Bt(t[e.index])}function Gt(e,t){return e.data[t]}function Qt(e,t){return e[t]}function Wt(e,t){var n=t[e];return Ct(n)?n:n[0]}function qt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Yt(e){return 4==(4&e[2])}function Kt(e){return 128==(128&e[2])}function Zt(e,t){return null==t?null:e[t]}function Xt(e){e[18]=0}function $t(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Jt={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function en(){return Jt.bindingsEnabled}function tn(){return Jt.lFrame.lView}function nn(){return Jt.lFrame.tView}function rn(e){Jt.lFrame.contextLView=e}function on(){for(var e=an();null!==e&&64===e.type;)e=e.parent;return e}function an(){return Jt.lFrame.currentTNode}function sn(e,t){var n=Jt.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return Jt.lFrame.isParent}function un(){Jt.lFrame.isParent=!1}function cn(){return Jt.isInCheckNoChangesMode}function hn(e){Jt.isInCheckNoChangesMode=e}function fn(){var e=Jt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dn(){return Jt.lFrame.bindingIndex}function pn(){return Jt.lFrame.bindingIndex++}function vn(e){var t=Jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mn(e){Jt.lFrame.currentDirectiveIndex=e}function yn(e){var t=Jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function gn(){return Jt.lFrame.currentQueryIndex}function _n(e){Jt.lFrame.currentQueryIndex=e}function bn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function kn(e,t,n){if(n&He.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&He.Host||null===(i=bn(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=Jt.lFrame=Cn();return o.currentTNode=t,o.lView=e,!0}function wn(e){var t=Cn(),n=e[1];Jt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cn(){var e=Jt.lFrame,t=null===e?null:e.child;return null===t?xn(e):t}function xn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Sn(){var e=Jt.lFrame;return Jt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var En=Sn;function An(){var e=Sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function In(e){return(Jt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Jt.lFrame.contextLView))[8]}function Tn(){return Jt.lFrame.selectedIndex}function On(e){Jt.lFrame.selectedIndex=e}function Pn(){var e=Jt.lFrame;return Gt(e.tView,e.selectedIndex)}function Dn(){Jt.lFrame.currentNamespace=Ft}function Rn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function Mn(e,t,n){Nn(e,t,3,n)}function Ln(e,t,n,i){(3&e[2])===n&&Nn(e,t,n,i)}function Fn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function Nn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(Vn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Vn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var jn=-1,Un=s(function e(t,n,i){o(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function Bn(e,t,n){for(var i=jt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++r];zn(u)?i&&e.setProperty(t,u,c):i?e.setAttribute(t,u,c):t.setAttribute(u,c),r++}}return r}function Hn(e){return 3===e||4===e||6===e}function zn(e){return 64===e.charCodeAt(0)}function Gn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||Qn(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Qn(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function Wn(e){return e!==jn}function qn(e){return 32767&e}function Yn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Kn=!0;function Zn(e){var t=Kn;return Kn=e,t}var Xn=0;function $n(e,t){var n=ei(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Jn(i.data,e),Jn(t,null),Jn(i.blueprint,null));var r=ti(e,t),o=e.injectorIndex;if(Wn(r))for(var a=qn(r),s=Yn(r,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=r,o}function Jn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ei(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ti(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return jn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return jn}function ni(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ut)&&(i=n[ut]),null==i&&(i=n[ut]=Xn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ii(e,t,n){if(n&He.Optional)return e;Pe(t,"NodeInjector")}function ri(e,t,n,i){if(n&He.Optional&&void 0===i&&(i=null),0==(n&(He.Self|He.Host))){var r=e[9],o=Ge(void 0);try{return r?r.get(t,i,n&He.Optional):Qe(t,i,n&He.Optional)}finally{Ge(o)}}return ii(i,t,n)}function oi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:He.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=hi(n);if("function"==typeof o){if(!kn(t,e,i))return i&He.Host?ii(r,n,i):ri(t,n,i,r);try{var a=o();if(null!=a||i&He.Optional)return a;Pe(n)}finally{En()}}else if("number"==typeof o){var s=null,l=ei(e,t),u=jn,c=i&He.Host?t[16][6]:null;for((-1===l||i&He.SkipSelf)&&((u=-1===l?ti(e,t):t[l+8])!==jn&&di(i,!1)?(s=t[1],l=qn(u),t=Yn(u,t)):l=-1);-1!==l;){var h=t[1];if(fi(o,l,h.data)){var f=li(l,t,n,s,i,c);if(f!==ai)return f}(u=t[l+8])!==jn&&di(i,t[1].data[l+8]===c)&&fi(o,l,t)?(s=h,l=qn(u),t=Yn(u,t)):l=-1}}}return ri(t,n,i,r)}var ai={};function si(){return new pi(on(),tn())}function li(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=ui(s,a,n,null==i?Et(s)&&Kn:i!=a&&0!=(3&s.type),r&He.Host&&o===s);return null!==l?ci(t,a,l,s):ai}function ui(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=r?s+u:e.directiveEnd,h=i?s:s+u;h<c;h++){var f=a[h];if(h<l&&n===f||h>=l&&f.type===n)return h}if(r){var d=a[l];if(d&&It(d)&&d.type===n)return l}return null}function ci(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Un){var a=r;a.resolving&&function(e,t){throw new Ie("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Oe(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?Ge(a.injectImpl):null;kn(e,i,He.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&Ge(l),Zn(s),a.resolving=!1,En()}}return r}function hi(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ut)?e[ut]:void 0;return"number"==typeof t?t>=0?255&t:si:t}function fi(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function di(e,t){return!(e&He.Self||e&He.Host&&t)}var pi=function(){function e(t,n){o(this,e),this._tNode=t,this._lView=n}return s(e,[{key:"get",value:function(e,t){return oi(this._tNode,this._lView,e,void 0,t)}}]),e}();function vi(e){return We(function(){for(var t=e.prototype.constructor,n=t[lt]||mi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[lt]||mi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function mi(e){return Ae(e)?function(){var t=mi(Ee(e));return t&&t()}:Tt(e)}function yi(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 i=n.length,r=0;r<i;){var o=n[r];if(Hn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(on(),e)}var gi="__parameters__";function _i(e,t,n){return We(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=b(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(gi)?e[gi]:Object.defineProperty(e,gi,{value:[]})[gi];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var bi=function(){function e(t,n){o(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=De({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return s(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ki=Function;function wi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),wi(i,t)):t!==e&&t.push(i)}return t}function Ci(e,t){e.forEach(function(e){return Array.isArray(e)?Ci(e,t):t(e)})}function xi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Si(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ei(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ai(e,t,n){var i=Ti(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Ii(e,t){var n=Ti(e,t);if(n>=0)return e[1|n]}function Ti(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Oi={},Pi=/\n/gm,Di="__source",Ri=be({provide:String,useValue:be}),Mi=void 0;function Li(e){var t=Mi;return Mi=e,t}function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.Default;if(void 0===Mi)throw new Error("inject() must be called from an injection context");return null===Mi?Qe(e,void 0,t):Mi.get(e,t&He.Optional?null:void 0,t)}function Ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.Default;return(ze()||Fi)(Ee(e),t)}var Vi=Ni;function ji(e){for(var t=[],n=0;n<e.length;n++){var i=Ee(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=He.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(Ni(r,o))}else t.push(Ni(i))}return t}function Ui(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Bi(e,t,n,i){var r=e.ngTempTokenPath;throw t[Di]&&r.unshift(t[Di]),e.message=function(e,t,n){var i=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 r=we(t);if(Array.isArray(t))r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Pi,"\n  "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Hi,zi,Gi=Ui(_i("Inject",function(e){return{token:e}}),-1),Qi=Ui(_i("Optional"),8),Wi=Ui(_i("SkipSelf"),4);function qi(e){var t;return(null===(t=function(){if(void 0===Hi&&(Hi=null,Je.trustedTypes))try{Hi=Je.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Hi}())||void 0===t?void 0:t.createHTML(e))||e}function Yi(e){var t;return(null===(t=function(){if(void 0===zi&&(zi=null,Je.trustedTypes))try{zi=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return zi}())||void 0===t?void 0:t.createHTML(e))||e}var Ki=function(){function e(t){o(this,e),this.changingThisBreaksApplicationSecurity=t}return s(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Zi=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Ki),Xi=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Ki),$i=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Ki),Ji=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Ki),er=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Ki);function tr(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function nr(e,t){var n=ir(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function ir(e){return e instanceof Ki&&e.getTypeName()||null}var rr=function(){function e(t){o(this,e),this.inertDocumentHelper=t}return s(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(qi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),or=function(){function e(t){if(o(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return s(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=qi(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=qi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),ar=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,sr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function lr(e){return(e=String(e)).match(ar)||e.match(sr)?e:"unsafe:"+e}function ur(e){var t,n={},i=y(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function cr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var hr,fr=ur("area,br,col,hr,img,wbr"),dr=ur("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pr=ur("rp,rt"),vr=cr(pr,dr),mr=cr(fr,cr(dr,ur("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),cr(pr,ur("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),vr),yr=ur("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gr=ur("srcset"),_r=cr(yr,gr,ur("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ur("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),br=ur("script,style,template"),kr=function(){function e(){o(this,e),this.sanitizedSomething=!1,this.buf=[]}return s(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!mr.hasOwnProperty(n))return this.sanitizedSomething=!0,!br.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(_r.hasOwnProperty(s)){var l=o.value;yr[s]&&(l=lr(l)),gr[s]&&(t=l,l=(t=String(t)).split(",").map(function(e){return lr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',xr(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();mr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(xr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/([^\#-~ |!])/g;function xr(e){return e.replace(/&/g,"&amp;").replace(wr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Cr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sr(e,t){var n=null;try{hr=hr||function(e){var t=new or(e);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(e){return!1}}()?new rr(t):t}(e);var i=t?String(t):"";n=hr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==o);return qi((new kr).sanitizeChildren(Er(n)||n))}finally{if(n)for(var a=Er(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Er(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ar=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ir(e){var t=Or();return t?Yi(t.sanitize(Ar.HTML,e)||""):nr(e,"HTML")?Yi(tr(e)):Sr(Vt(),Te(e))}function Tr(e){var t=Or();return t?t.sanitize(Ar.URL,e)||"":nr(e,"URL")?tr(e):lr(Te(e))}function Or(){var e=tn();return e&&e[12]}function Pr(e){return e.ngDebugContext}function Dr(e){return e.ngOriginalError}function Rr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Mr=function(){function e(){o(this,e),this._console=console}return s(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Rr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Pr(e)?Pr(e):this._findContext(Dr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Dr(e);t&&Dr(t);)t=Dr(t);return t}}]),e}();function Lr(e,t){e.__ngContext__=t}var Fr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Je)}();function Nr(e){return{name:"document",target:e.ownerDocument}}function Vr(e){return e instanceof Function?e():e}var jr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Ur(e,t){return(void 0)(e,t)}function Br(e){var t=e[3];return xt(t)?t[3]:t}function Hr(e){return Gr(e[13])}function zr(e){return Gr(e[4])}function Gr(e){for(;null!==e&&!xt(e);)e=e[4];return e}function Qr(e,t,n,i,r){if(null!=i){var o,a=!1;xt(i)?o=i:Ct(i)&&(a=!0,i=i[0]);var s=Bt(i);0===e&&null!==n?null==r?eo(t,n,s):Jr(t,n,s,r||null,!0):1===e&&null!==n?Jr(t,n,s,r||null,!0):2===e?function(e,t,n){var i=no(e,t);i&&function(e,t,n,i){jt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Bt(n)&&Qr(t,e,i,o,r);for(var a=wt;a<n.length;a++){var s=n[a];co(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function Wr(e,t){return jt(e)?e.createText(t):e.createTextNode(t)}function qr(e,t,n){return jt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Yr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,$t(r,-1)),n.splice(i,1)}function Kr(e,t){if(!(e.length<=wt)){var n,i=wt+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Yr(o,r),t>0&&(e[i-1][4]=r[4]);var a=Si(e,wt+t);co(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Zr(e,t){if(!(256&t[2])){var n=t[11];jt(n)&&n.destroyNode&&co(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Xr(e[1],e);for(;t;){var n=null;if(Ct(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ct(t)&&Xr(t[1],t),t=t[3];null===t&&(t=e),Ct(t)&&Xr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Xr(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 i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Un)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2){var s=r[o[a]],l=o[a+1];try{l.call(s)}finally{}}else try{o.call(r)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Bt(t[a]),l=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;h<i.length;h++)(0,i[h])();t[7]=null}}(e,t),1===t[1].type&&jt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&xt(t[3])){n!==t[3]&&Yr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function $r(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Ye.None||r===Ye.Emulated)return null}return zt(i,n)}(e,t.parent,n)}function Jr(e,t,n,i,r){jt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function eo(e,t,n){jt(e)?e.appendChild(t,n):t.appendChild(n)}function to(e,t,n,i,r){null!==i?Jr(e,t,n,i,r):eo(e,t,n)}function no(e,t){return jt(e)?e.parentNode(t):t.parentNode}function io(e,t,n){return ro(e,t,n)}var ro=function(e,t,n){return 40&e.type?zt(e,n):null};function oo(e,t,n,i){var r=$r(e,i,t),o=t[11],a=io(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)to(o,r,n[s],a,!1);else to(o,r,n,a,!1)}function ao(e,t){if(null!==t){var n=t.type;if(3&n)return zt(t,e);if(4&n)return lo(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return ao(e,i);var r=e[t.index];return xt(r)?lo(-1,r):Bt(r)}if(32&n)return Ur(t,e)()||Bt(e[t.index]);var o=so(e,t);return null!==o?Array.isArray(o)?o[0]:ao(Br(e[16]),o):ao(e,t.next)}return null}function so(e,t){return null!==t?e[16][6].projection[t.projection]:null}function lo(e,t){var n=wt+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return ao(i,r)}return t[7]}function uo(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&Lr(Bt(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)uo(e,t,n.child,i,r,o,!1),Qr(t,e,r,s,o);else if(32&l){for(var u=Ur(n,i),c=void 0;c=u();)Qr(t,e,r,c,o);Qr(t,e,r,s,o)}else 16&l?fo(e,t,i,n,r,o):Qr(t,e,r,s,o);n=a?n.projectionNext:n.next}}function co(e,t,n,i,r,o){uo(n,i,e.firstChild,t,r,o,!1)}function ho(e,t,n){fo(t[11],0,t,n,$r(e,n,t),io(n.parent||t[6],n,t))}function fo(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)Qr(t,e,r,s[l],o);else uo(e,t,s,a[3],r,o,!0)}function po(e,t,n){jt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function vo(e,t,n){jt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function mo(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var yo="ng-template";function go(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==mo((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function _o(e){return 4===e.type&&e.value!==yo}function bo(e,t,n){return t===(4!==e.type||n?e.value:yo)}function ko(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Hn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!bo(e,l,n)||""===l&&1===t.length){if(wo(i))return!1;a=!0}}else{var u=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!go(e.attrs,u,n)){if(wo(i))return!1;a=!0}continue}var c=Co(8&i?"class":l,r,_o(e),n);if(-1===c){if(wo(i))return!1;a=!0;continue}if(""!==u){var h;h=c>o?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==mo(f,u,0)||2&i&&u!==h){if(wo(i))return!1;a=!0}}}}else{if(!a&&!wo(i)&&!wo(l))return!1;if(a&&wo(l))continue;a=!1,i=l|1&i}}return wo(i)||a}function wo(e){return 0==(1&e)}function Co(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function xo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(ko(e,t[i],n))return!0;return!1}function So(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Eo(e,t){return e?":not("+t.trim()+")":t}function Ao(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||wo(a)||(t+=Eo(o,r),r=""),i=a,o=o||!wo(i);n++}return""!==r&&(t+=Eo(o,r)),t}var Io={};function To(e){Oo(nn(),tn(),Tn()+e,cn())}function Oo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mn(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ln(t,o,0,n)}On(n)}function Po(e,t){return e<<17|t<<2}function Do(e){return e>>17&32767}function Ro(e){return 2|e}function Mo(e){return(131068&e)>>2}function Lo(e,t){return-131069&e|t<<2}function Fo(e){return 1|e}function No(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];_n(n[i]),o.contentQueries(2,t[r],r)}}}function Vo(e,t,n,i,r,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=r,c[2]=140|i,Xt(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function jo(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=an(),a=ln(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,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,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),Jt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(a=(o=Jt.lFrame).currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return sn(s,!0),s}function Uo(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Bo(e,t,n){wn(t);try{var i=e.viewQuery;null!==i&&ya(1,i,n);var r=e.template;null!==r&&Go(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&No(e,t),e.staticViewQueries&&ya(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)fa(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,An()}}function Ho(e,t,n,i){var r=t[2];if(256!=(256&r)){wn(t);var o=cn();try{Xt(t),Jt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Go(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&Mn(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Ln(t,l,0,null),Fn(t,0)}if(function(e){for(var t=Hr(e);null!==t;t=zr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&$t(r[3],1),r[2]|=1024}}(t),function(e){for(var t=Hr(e);null!==t;t=zr(t))for(var n=wt;n<t.length;n++){var i=t[n],r=i[1];Kt(i)&&Ho(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&No(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&Mn(t,u)}else{var c=e.contentHooks;null!==c&&Ln(t,c,1),Fn(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var o=0;o<r.length;o++){var a=r[o];if(a<0)On(~a);else{var s=a,l=r[++o],u=r[++o];n=s,i=void 0,(i=Jt.lFrame).bindingIndex=i.bindingRootIndex=l,mn(n),u(2,t[s])}}}finally{On(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)ca(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&ya(2,f,i),!o)if(a){var d=e.viewCheckHooks;null!==d&&Mn(t,d)}else{var p=e.viewHooks;null!==p&&Ln(t,p,2),Fn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,$t(t[3],-1))}finally{An()}}}function zo(e,t,n,i){var r=t[10],o=!cn(),a=Yt(t);try{o&&!a&&r.begin&&r.begin(),a&&Bo(e,t,i),Ho(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function Go(e,t,n,i,r){var o=Tn(),a=2&i;try{On(-1),a&&t.length>kt&&Oo(e,t,kt,cn()),n(i,r)}finally{On(o)}}function Qo(e,t,n){if(St(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function Wo(e,t,n){en()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||$n(n,t),Lr(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],u=It(l);u&&aa(t,n,l);var c=ci(t,e,s,n);Lr(c,t),null!==a&&sa(0,s-r,c,l,0,a),u&&(Wt(n.index,t)[8]=c)}}(e,t,n,zt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=Jt.lFrame.currentDirectiveIndex;try{On(o);for(var s=i;s<r;s++){var l=e.data[s],u=t[s];mn(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||ta(l,u)}}finally{On(-1),mn(a)}}(e,t,n))}function qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function Yo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ko(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ko(e,t,n,i,r,o,a,s,l,u){var c=kt+i,h=c+r,f=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Io);return n}(c,h),d="function"==typeof u?u():u;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:s,declTNode:t,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,hostBindingOpCodes: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 o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:d,incompleteFirstPass:!1}}function Zo(e,t,n,i){var r=_a(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&ba(e).push(i,r.length-1))}function Xo(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function $o(e,t,n,i,r,o,a,s){var l,u,c=zt(t,n),h=t.inputs;!s&&null!=h&&(l=h[i])?(Ca(e,n,l,i,r),Et(t)&&function(e,t){var n=Wt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,jt(o)?o.setProperty(c,i,r):zn(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function Jo(e,t,n,i){var r=!1;if(en()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];xo(n,a.selectors,!1)&&(r||(r=[]),ni($n(n,t),e,a.type),It(a)?(na(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,ra(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,h=Uo(e,t,o.length,null),f=0;f<o.length;f++){var d=o[f];n.mergedAttrs=Gn(n.mergedAttrs,d.hostAttrs),oa(e,n,t,h,d),ia(h,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128);var p=d.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),c||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),h++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=i[l],c=u.inputs,h=null===r||_o(t)?null:la(c,r);o.push(h),a=Xo(c,l,a),s=Xo(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Ie("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=Gn(n.mergedAttrs,n.attrs),r}function ea(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ta(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function na(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ia(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;It(t)&&(n[""]=e)}}function ra(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function oa(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Tt(r.type)),a=new Un(o,It(r),null);e.blueprint[i]=a,n[i]=a,ea(e,t,0,i,Uo(e,n,r.hostVars,Io),r)}function aa(e,t,n){var i=zt(t,e),r=Yo(n),o=e[10],a=da(e,Vo(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function sa(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],h=a[l++];null!==s?i.setInput(n,h,u,c):n[c]=h}}function la(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ua(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ca(e,t){var n=Wt(t,e);if(Kt(n)){var i=n[1];80&n[2]?Ho(i,n,i.template,n[8]):n[5]>0&&ha(n)}}function ha(e){for(var t=Hr(e);null!==t;t=zr(t))for(var n=wt;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Ho(r,i,r.template,i[8])}else i[5]>0&&ha(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Wt(o[a],e);Kt(s)&&s[5]>0&&ha(s)}}function fa(e,t){var n=Wt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Bo(i,n,n[8])}function da(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function pa(e){for(;e;){e[2]|=64;var t=Br(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function va(e,t,n){var i=t[10];i.begin&&i.begin();try{Ho(e,t,e.template,n)}catch(r){throw wa(t,r),r}finally{i.end&&i.end()}}function ma(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=qt(n),r=i[1];zo(r,i,r.template,n)}}(e[8])}function ya(e,t,n){_n(0),t(e,n)}var ga=function(){return Promise.resolve(null)}();function _a(e){return e[7]||(e[7]=[])}function ba(e){return e.cleanup||(e.cleanup=[])}function ka(e,t,n){return(null===e||It(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function wa(e,t){var n=e[9],i=n?n.get(Mr,null):null;i&&i.handleError(t)}function Ca(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function xa(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ce(r,s):2==o&&(i=Ce(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Sa=new bi("INJECTOR",-1),Ea=function(){function e(){o(this,e)}return s(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oi;if(t===Oi){var n=new Error("NullInjectorError: No provider for ".concat(we(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Aa=new bi("Set Injector scope."),Ia={},Ta={},Oa=[],Pa=void 0;function Da(){return void 0===Pa&&(Pa=new Ea),Pa}function Ra(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ma(e,n,t||Da(),i)}var Ma=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;o(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&Ci(n,function(e){return r.processProvider(e,t,n)}),Ci([t],function(e){return r.processInjectorType(e,[],s)}),this.records.set(Sa,Na(void 0,this));var l=this.records.get(Aa);this.scope=null!=l?l.value:null,this.source=a||("object"==typeof t?null:we(t))}return s(e,[{key:"destroyed",get:function(){return this._destroyed}},{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]:Oi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:He.Default;this.assertNotDestroyed();var i=Li(this);try{if(!(n&He.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=Ua(e)&&Me(e);r=o&&this.injectableDefInScope(o)?Na(La(e),Ia):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var a=n&He.Self?Da():this.parent;return a.get(e,t=n&He.Optional&&t===Oi?null:t)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(we(e)),i)throw l;return Bi(l,e,"R3InjectorError",this.source)}throw l}finally{Li(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(we(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 i=this;if(!(e=Ee(e)))return!1;var r=Fe(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Fe(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{Ci(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(){var e=l[c],t=e.ngModule,n=e.providers;Ci(n,function(e){return i.processProvider(e,t,n||Oa)})},c=0;c<l.length;c++)u()}this.injectorDefTypes.add(a);var h=Tt(a)||function(){return new a};this.records.set(a,Na(h,Ia));var f=r.providers;if(null!=f&&!s){var d=e;Ci(f,function(e){return i.processProvider(e,d,f)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=ja(e=Ee(e))?e:Ee(e&&e.provide),r=function(e,t,n){return Va(e)?Na(void 0,e.useValue):Na(Fa(e),Ia)}(e);if(ja(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=Na(void 0,Ia,!0)).factory=function(){return ji(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ia&&(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))}}]),e}();function La(e){var t=Me(e),n=null!==t?t.factory:Tt(e);if(null!==n)return n;if(e instanceof bi)throw new Error("Token ".concat(we(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Ei(t,"?");throw new Error("Can't resolve all parameters for ".concat(we(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Ve]||e[Ue]);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 a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Fa(e,t,n){var i,r=void 0;if(ja(e)){var o=Ee(e);return Tt(o)||La(o)}if(Va(e))r=function(){return Ee(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,_(ji(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return Ni(Ee(e.useExisting))};else{var a=Ee(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Tt(a)||La(a);r=function(){return b(a,_(ji(e.deps)))}}return r}function Na(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Va(e){return null!==e&&"object"==typeof e&&Ri in e}function ja(e){return"function"==typeof e}function Ua(e){return"function"==typeof e||"object"==typeof e&&e instanceof bi}var Ba=function(e,t,n){return function(e){var t=Ra(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ha=function(){var e=function(){function e(){o(this,e)}return s(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ba(e,t,""):Ba(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Oi,e.NULL=new Ea,e.\u0275prov=De({token:e,providedIn:"any",factory:function(){return Ni(Sa)}}),e.__NG_ELEMENT_ID__=-1,e}();function za(e,t){Rn(qt(e)[1],on())}function Ga(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(It(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Qa(e.inputs),o.declaredInputs=Qa(e.declaredInputs),o.outputs=Qa(e.outputs);var a=r.hostBindings;a&&Ya(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Wa(e,s),l&&qa(e,l),ke(e.inputs,r.inputs),ke(e.declaredInputs,r.declaredInputs),ke(e.outputs,r.outputs),It(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h<c.length;h++){var f=c[h];f&&f.ngInherit&&f(e),f===Ga&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Gn(r.hostAttrs,n=Gn(n,r.hostAttrs))}}(i)}function Qa(e){return e===et?{}:e===nt?[]:e}function Wa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function qa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ya(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ka=null;function Za(){if(!Ka){var e=Je.Symbol;if(e&&e.iterator)Ka=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ka=i)}}return Ka}var Xa=function(){function e(t){o(this,e),this.wrapped=t}return s(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function $a(e){return!!Ja(e)&&(Array.isArray(e)||!(e instanceof Map)&&Za()in e)}function Ja(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function es(e,t,n){return e[t]=n}function ts(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ns(e,t,n,i){var r=ts(e,t,n);return ts(e,t+1,i)||r}function is(e,t,n,i){var r=tn();return ts(r,pn(),t)&&(nn(),function(e,t,n,i,r,o){var a=zt(e,t);!function(e,t,n,i,r,o,a){if(null==o)jt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?Te(o):a(o,i||"",r);jt(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}(Pn(),r,e,t,n,i)),is}function rs(e,t,n,i){return ts(e,pn(),n)?t+Te(n)+i:Io}function os(e,t,n,i,r,o,a,s){var l=tn(),u=nn(),c=e+kt,h=u.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var u=t.consts,c=jo(t,e,4,a||null,Zt(u,s));Jo(t,n,c,Zt(u,l)),Rn(t,c);var h=c.tViews=Ko(2,c,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,r,o,a):u.data[c];sn(h,!1);var f=l[11].createComment("");oo(u,l,f,h),Lr(f,l),da(l,l[c]=ua(f,l,f,h)),At(h)&&Wo(u,l,h),null!=a&&qo(l,h,s)}function as(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.Default,n=tn();if(null===n)return Ni(e,t);var i=on();return oi(i,n,Ee(e),t)}function ss(e,t,n){var i=tn();return ts(i,pn(),t)&&$o(nn(),Pn(),i,e,t,i[11],n,!1),ss}function ls(e,t,n,i,r){var o=r?"class":"style";Ca(e,n,t.inputs[o],o,i)}function us(e,t,n,i){var r=tn(),o=nn(),a=kt+e,s=r[11],l=r[a]=qr(s,t,Jt.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=jo(t,e,2,r,Zt(s,o));return Jo(t,n,l,Zt(s,a)),null!==l.attrs&&xa(l,l.attrs,!1),null!==l.mergedAttrs&&xa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];sn(u,!0);var c=u.mergedAttrs;null!==c&&Bn(s,l,c);var h=u.classes;null!==h&&vo(s,l,h);var f=u.styles;null!==f&&po(s,l,f),64!=(64&u.flags)&&oo(o,r,l,u),0===Jt.lFrame.elementDepthCount&&Lr(l,r),Jt.lFrame.elementDepthCount++,At(u)&&(Wo(o,r,u),Qo(o,u,r)),null!==i&&qo(r,u)}function cs(){var e=on();ln()?un():sn(e=e.parent,!1);var t=e;Jt.lFrame.elementDepthCount--;var n=nn();n.firstCreatePass&&(Rn(n,e),St(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ls(n,t,tn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ls(n,t,tn(),t.stylesWithoutHost,!1)}function hs(e,t,n,i){us(e,t,n,i),cs()}function fs(e,t,n){var i=tn(),r=nn(),o=e+kt,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Zt(o,i),s=jo(t,e,8,"ng-container",a);return null!==a&&xa(s,a,!0),Jo(t,n,s,Zt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];sn(a,!0);var s=i[o]=i[11].createComment("");oo(r,i,s,a),Lr(s,i),At(a)&&(Wo(r,i,a),Qo(r,a,i)),null!=n&&qo(i,a)}function ds(){var e=on(),t=nn();ln()?un():sn(e=e.parent,!1),t.firstCreatePass&&(Rn(t,e),St(e)&&t.queries.elementEnd(e))}function ps(){return tn()}function vs(e){return!!e&&"function"==typeof e.then}function ms(e){return!!e&&"function"==typeof e.subscribe}var ys=ms;function gs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=tn(),o=nn(),a=on();return ks(o,r,r[11],a,e,t,n,i),gs}function _s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=on(),o=tn(),a=nn(),s=yn(a.data),l=ka(s,r,o);return ks(a,o,l,r,e,t,n,i),_s}function bs(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}function ks(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=At(i),u=e.firstCreatePass,c=u&&ba(e),h=_a(t),f=!0;if(3&i.type){var d=zt(i,t),p=s?s(d):et,v=p.target||d,m=h.length,y=s?function(e){return s(Bt(e[i.index])).target}:i.index;if(jt(n)){var g=null;if(!s&&l&&(g=bs(e,t,r,i.index)),null!==g){var _=g.__ngLastListenerFn__||g;_.__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1}else{o=Cs(i,t,0,o,!1);var b=n.listen(p.name||v,r,o);h.push(o,b),c&&c.push(r,y,m,m+1)}}else o=Cs(i,t,0,o,!0),v.addEventListener(r,o,a),h.push(o),c&&c.push(r,y,m,a)}else o=Cs(i,t,0,o,!1);var k,w=i.outputs;if(f&&null!==w&&(k=w[r])){var C=k.length;if(C)for(var x=0;x<C;x+=2){var S=k[x],E=k[x+1],A=t[S],I=A[E],T=I.subscribe(o),O=h.length;h.push(o,T),c&&c.push(r,i.index,O,-(O+1))}}}function ws(e,t,n,i){try{return!1!==n(i)}catch(r){return wa(e,r),!1}}function Cs(e,t,n,i,r){return function n(o){if(o===Function)return i;var a=2&e.flags?Wt(e.index,t):t;0==(32&t[2])&&pa(a);for(var s=ws(t,0,i,o),l=n.__ngNextListenerFn__;l;)s=ws(t,0,l,o)&&s,l=l.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function xs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return In(e)}function Ss(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?xo(e,o,!0):So(i,o))return r}else n=r}return n}function Es(e){var t=tn()[16][6];if(!t.projection)for(var n=t.projection=Ei(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ss(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function As(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=tn(),r=nn(),o=jo(r,kt+e,16,null,n||null);null===o.projection&&(o.projection=t),un(),64!=(64&o.flags)&&ho(r,i,o)}function Is(e,t,n){return Ts(e,"",t,"",n),Is}function Ts(e,t,n,i,r){var o=tn(),a=rs(o,t,n,i);return a!==Io&&$o(nn(),Pn(),o,e,a,o[11],r,!1),Ts}function Os(e,t,n,i,r,o,a){var s=tn(),l=function(e,t,n,i,r,o){var a=ns(e,dn(),n,r);return vn(2),a?t+Te(n)+i+Te(r)+o:Io}(s,t,n,i,r,o);return l!==Io&&$o(nn(),Pn(),s,e,l,s[11],a,!1),Os}function Ps(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Do(o):Mo(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];Ds(e[s],t)&&(l=!0,e[s+1]=i?Fo(u):Ro(u)),s=i?Do(u):Mo(u)}l&&(e[n+1]=i?Ro(o):Fo(o))}function Ds(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ti(e,t)>=0}var Rs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ms(e){return e.substring(Rs.key,Rs.keyEnd)}function Ls(e,t){var n=Rs.textEnd;return n===t?-1:(t=Rs.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Rs.key=t,n),Fs(e,t,n))}function Fs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ns(e,t,n){return Us(e,t,n,!1),Ns}function Vs(e,t){return Us(e,t,null,!0),Vs}function js(e,t){for(var n=function(e){return function(e){Rs.key=0,Rs.keyEnd=0,Rs.value=0,Rs.valueEnd=0,Rs.textEnd=e.length}(e),Ls(e,Fs(e,0,Rs.textEnd))}(t);n>=0;n=Ls(t,n))Ai(e,Ms(t),!0)}function Us(e,t,n,i){var r=tn(),o=nn(),a=vn(2);o.firstUpdatePass&&Hs(o,e,a,i),t!==Io&&ts(r,a,t)&&Qs(o,o.data[Tn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=we(tr(e)))),e}(t,n),i,a)}function Bs(e,t){return t>=e.expandoStartIndex}function Hs(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Tn()],a=Bs(e,n);Ys(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=yn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Gs(n=zs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=zs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Mo(i))return e[Do(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Do(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Gs(s=zs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Gs(i,e[o].hostAttrs,n);return Gs(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=Do(a),l=Mo(a);e[i]=n;var u,c=!1;if(Array.isArray(n)?(null===(u=n[1])||Ti(n,u)>0)&&(c=!0):u=n,r)if(0!==l){var h=Do(e[s+1]);e[i+1]=Po(h,s),0!==h&&(e[h+1]=Lo(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Po(s,0),0!==s&&(e[s+1]=Lo(e[s+1],i)),s=i;else e[i+1]=Po(l,0),0===s?s=i:e[l+1]=Lo(e[l+1],i),l=i;c&&(e[i+1]=Ro(e[i+1])),Ps(e,u,i,!0),Ps(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ti(o,t)>=0&&(n[i+1]=Fo(n[i+1]))}(t,u,e,i,o),a=Po(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function zs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Gs(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Gs(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ai(e,a,!!n||t[++o]))}return void 0===e?null:e}function Qs(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,u=l[s+1];qs(1==(1&u)?Ws(l,t,n,r,Mo(u),a):void 0)||(qs(o)||2==(2&u)&&(o=Ws(l,null,n,r,s,a)),function(e,t,n,i,r){var o=jt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:jr.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=jr.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Ht(Tn(),n),r,o))}}function Ws(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,f=n[r+1];f===Io&&(f=h?tt:void 0);var d=h?Ii(f,i):c===i?f:void 0;if(u&&!qs(d)&&(d=Ii(l,i)),qs(d)&&(s=d,a))return s;var p=e[r+1];r=a?Do(p):Mo(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=Ii(v,i))}return s}function qs(e){return void 0!==e}function Ys(e,t){return 0!=(e.flags&(t?16:32))}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tn(),i=nn(),r=e+kt,o=i.firstCreatePass?jo(i,r,1,t,null):i.data[r],a=n[r]=Wr(n[11],t);oo(i,n,a,o),sn(o,!1)}function Zs(e){return Xs("",e,""),Zs}function Xs(e,t,n){var i=tn(),r=rs(i,e,t,n);return r!==Io&&function(e,t,n){var i=Ht(t,e);!function(e,t,n){jt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Tn(),r),Xs}function $s(e,t,n){!function(e,t,n,i){var r=nn(),o=vn(2);r.firstUpdatePass&&Hs(r,null,o,i);var a=tn();if(n!==Io&&ts(a,o,n)){var s=r.data[Tn()];if(Ys(s,i)&&!Bs(r,o)){var l=s.classesWithoutHost;null!==l&&(n=Ce(l,n||"")),ls(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===Io&&(r=tt);for(var l=0,u=0,c=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==c||null!==h;){var f=l<r.length?r[l+1]:void 0,d=u<o.length?o[u+1]:void 0,p=null,v=void 0;c===h?(l+=2,u+=2,f!==d&&(p=h,v=d)):null===h||null!==c&&c<h?(l+=2,p=c):(u+=2,p=h,v=d),null!==p&&Qs(e,t,n,i,p,v,true,s),c=l<r.length?r[l]:null,h=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return tt;var i=[],r=tr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,o)}}(Ai,js,rs(tn(),e,t,n),!0)}function Js(e,t,n){var i=tn();return ts(i,pn(),t)&&$o(nn(),Pn(),i,e,t,i[11],n,!0),Js}function el(e,t,n){var i=tn();if(ts(i,pn(),t)){var r=nn(),o=Pn();$o(r,o,i,e,t,ka(yn(r.data),o,i),n,!0)}return el}var tl=void 0,nl=["en",[["a","p"],["AM","PM"],tl],[["AM","PM"],tl,tl],[["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"]],tl,[["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"]],tl,[["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}",tl,"{1} 'at' {0}",tl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],il={};function rl(e){return e in il||(il[e]=Je.ng&&Je.ng.common&&Je.ng.common.locales&&Je.ng.common.locales[e]),il[e]}var ol=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),al="en-US";function sl(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function ll(e,t,n){var i=nn();if(i.firstCreatePass){var r=It(e);ul(n,i.data,i.blueprint,r,!0),ul(t,i.data,i.blueprint,r,!1)}}function ul(e,t,n,i,r){if(e=Ee(e),Array.isArray(e))for(var o=0;o<e.length;o++)ul(e[o],t,n,i,r);else{var a=nn(),s=tn(),l=ja(e)?e:Ee(e.provide),u=Fa(e),c=on(),h=1048575&c.providerIndexes,f=c.directiveStart,d=c.providerIndexes>>20;if(ja(e)||!e.multi){var p=new Un(u,r,as),v=fl(l,t,r?h:h+d,f);-1===v?(ni($n(c,s),a,l),cl(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=fl(l,t,h+d,f),y=fl(l,t,h,h+d),g=y>=0&&n[y];if(r&&!g||!r&&!(m>=0&&n[m])){ni($n(c,s),a,l);var _=function(e,t,n,i,r){var o=new Un(e,n,as);return o.multi=[],o.index=t,o.componentProviders=0,hl(o,r,i&&!n),o}(r?pl:dl,n.length,r,i,u);!r&&g&&(n[y].providerFactory=_),cl(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else cl(a,e,m>-1?m:y,hl(n[r?y:m],u,!r&&i));!r&&i&&g&&n[y].componentProviders++}}}function cl(e,t,n,i){var r=ja(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function hl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function fl(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function dl(e,t,n,i){return vl(this.multi,[])}function pl(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=ci(n,n[1],this.providerFactory.index,i);vl(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else vl(o,r=[]);return r}function vl(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function ml(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return ll(n,i?i(e):e,t)}}}var yl=s(function e(){o(this,e)}),gl=s(function e(){o(this,e)}),_l=function(){function e(){o(this,e)}return s(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(we(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),bl=function(){var e=s(function e(){o(this,e)});return e.NULL=new _l,e}();function kl(){}function wl(e,t){return new xl(zt(e,t))}var Cl=function(){return wl(on(),tn())},xl=function(){var e=s(function e(t){o(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Cl,e}();function Sl(e){return e instanceof xl?e.nativeElement:e}var El=s(function e(){o(this,e)}),Al=function(){var e=s(function e(){o(this,e)});return e.__NG_ELEMENT_ID__=function(){return Il()},e}(),Il=function(){var e=tn(),t=Wt(on().index,e);return function(e){return e[11]}(Ct(t)?t:e)},Tl=function(){var e=s(function e(){o(this,e)});return e.\u0275prov=De({token:e,providedIn:"root",factory:function(){return null}}),e}(),Ol=s(function e(t){o(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),Pl=new Ol("11.2.14"),Dl=function(){function e(){o(this,e)}return s(e,[{key:"supports",value:function(e){return $a(e)}},{key:"create",value:function(e){return new Ml(e)}}]),e}(),Rl=function(e,t){return t},Ml=function(){function e(t){o(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||Rl}return s(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,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<Vl(n,i,r)?t:n,a=Vl(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var h=c<r.length?r[c]:r[c]=0,f=h+c;u<=f&&f<l&&(r[c]=h+1)}r[o.previousIndex]=u-l}}a!==s&&e(o,a,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=[]),!$a(e))throw new Error("Error trying to diff '".concat(we(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,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._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 i,r=e[Za()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;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=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Ll(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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 i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,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 i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Nl),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||(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 Nl),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}}]),e}(),Ll=s(function e(t,n){o(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}),Fl=function(){function e(){o(this,e),this._head=null,this._tail=null}return s(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)&&Object.is(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}(),Nl=function(){function e(){o(this,e),this.map=new Map}return s(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Fl,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:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Vl(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var jl=function(){function e(){o(this,e)}return s(e,[{key:"supports",value:function(e){return e instanceof Map||Ja(e)}},{key:"create",value:function(){return new Ul}}]),e}(),Ul=function(){function e(){o(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 s(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{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||Ja(e)))throw new Error("Error trying to diff '".concat(we(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,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._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 i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new Bl(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{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){Object.is(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)})}}]),e}(),Bl=s(function e(t){o(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});function Hl(){return new zl([new Dl])}var zl=function(){var e=function(){function e(t){o(this,e),this.factories=t}return s(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 i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Hl())},deps:[[e,new Wi,new Qi]]}}}]),e}();return e.\u0275prov=De({token:e,providedIn:"root",factory:Hl}),e}();function Gl(){return new Ql([new jl])}var Ql=function(){var e=function(){function e(t){o(this,e),this.factories=t}return s(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 i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Gl())},deps:[[e,new Wi,new Qi]]}}}]),e}();return e.\u0275prov=De({token:e,providedIn:"root",factory:Gl}),e}();function Wl(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Bt(o)),xt(o))for(var a=wt;a<o.length;a++){var s=o[a],l=s[1].firstChild;null!==l&&Wl(s[1],s,l,i)}var u=n.type;if(8&u)Wl(e,t,n.child,i);else if(32&u)for(var c=Ur(n,t),h=void 0;h=c();)i.push(h);else if(16&u){var f=so(t,n);if(Array.isArray(f))i.push.apply(i,_(f));else{var d=Br(t[16]);Wl(d[1],d,f,i,!0)}}n=r?n.projectionNext:n.next}return i}var ql=function(){function e(t,n){o(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return s(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Wl(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(xt(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Kr(e,n),Si(t,n))}this._attachedToViewContainer=!1}Zr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Zo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){pa(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){va(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){hn(!0);try{va(e,t,n)}finally{hn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,co(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Yl=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e))._view=e,i}return s(n,[{key:"detectChanges",value:function(){ma(this._view)}},{key:"checkNoChanges",value:function(){!function(e){hn(!0);try{ma(e)}finally{hn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ql),Kl=Xl,Zl=function(){var e=s(function e(){o(this,e)});return e.__NG_ELEMENT_ID__=Kl,e.__ChangeDetectorRef__=!0,e}();function Xl(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return $l(on(),tn(),e)}function $l(e,t,n){if(!n&&Et(e)){var i=Wt(e.index,t);return new ql(i,i)}return 47&e.type?new ql(t[16],t):null}var Jl=[new jl],eu=new zl([new Dl]),tu=new Ql(Jl),nu=function(){return ou(on(),tn())},iu=function(){var e=s(function e(){o(this,e)});return e.__NG_ELEMENT_ID__=nu,e}(),ru=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return s(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Vo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Bo(t,n,e),new ql(n)}}]),n}(iu);function ou(e,t){return 4&e.type?new ru(t,e,wl(e,t)):null}var au=s(function e(){o(this,e)}),su=s(function e(){o(this,e)}),lu=function(){return du(on(),tn())},uu=function(){var e=s(function e(){o(this,e)});return e.__NG_ELEMENT_ID__=lu,e}(),cu=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return s(n,[{key:"element",get:function(){return wl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new pi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ti(this._hostTNode,this._hostLView);if(Wn(e)){var t=Yn(e,this._hostLView),n=qn(e);return new pi(t[1].data[n+8],t)}return new pi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=hu(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-wt}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(au,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(xt(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new cu(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=wt+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-wt?(t[4]=n[r],xi(n,wt+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,l,s);var u=lo(s,l),c=n[11],h=no(c,l[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,co(e,i,n,1,r,o)}(i,l[6],c,n,h,u),e.attachToViewContainerRef(),xi(fu(l),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=hu(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Kr(this._lContainer,t);n&&(Si(fu(this._lContainer),t),Zr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Kr(this._lContainer,t);return n&&null!=Si(fu(this._lContainer),t)?new ql(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}}]),n}(uu);function hu(e){return e[8]}function fu(e){return e[8]||(e[8]=[])}function du(e,t){var n,i=t[e.index];if(xt(i))n=i;else{var r;if(8&e.type)r=Bt(i);else{var o=t[11];r=o.createComment("");var a=zt(e,t);Jr(o,no(o,a),r,function(e,t){return jt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=ua(i,t,r,e),da(t,n)}return new cu(n,e,t)}var pu={},vu=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).ngModule=e,i}return s(n,[{key:"resolveComponentFactory",value:function(e){var t=_t(e);return new gu(t,this.ngModule)}}]),n}(bl);function mu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var yu=new bi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Fr}}),gu=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Ao).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return s(n,[{key:"inputs",get:function(){return mu(this.componentDef.inputs)}},{key:"outputs",get:function(){return mu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,pu,r);return o!==pu||i===pu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(El,Ut),l=a.get(Tl,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(jt(e))return e.selectRootElement(t,n===Ye.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):qr(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Ft:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Fr,clean:ga,playerHandler:null,flags:0},p=Ko(0,null,null,1,0,null,null,null,null,null),v=Vo(null,p,d,f,null,null,s,u,l,a);wn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=jo(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(xa(s,l,!0),null!==e&&(Bn(r,e,l),null!==s.classes&&vo(r,e,s.classes),null!==s.styles&&po(r,e,s.styles)));var u=i.createRenderer(e,t),c=Vo(n,Yo(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ni($n(s,n),a,t.type),na(a,s),ra(s,n.length,1)),da(n,c),n[20]=c}(h,this.componentDef,v,s,u);if(h)if(n)Bn(u,h,["ng-version",Pl.full]);else{var y=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!wo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),g=y.attrs,_=y.classes;g&&Bn(u,h,g),_&&_.length>0&&vo(u,h,_.join(" "))}if(o=Gt(p,kt),void 0!==t)for(var b=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var w=t[k];b.push(null!=w?Array.from(w):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=on();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),oa(e,i,t,Uo(e,t,1,null),n));var r=ci(t,e,i.directiveStart,i);Lr(r,t);var o=zt(i,t);return o&&Lr(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=on();t.contentQueries(1,a,s.directiveStart)}var l=on();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(On(l.index),ea(n[1],l,0,l.directiveStart,l.directiveEnd,t),ta(t,a)),a}(m,this.componentDef,v,d,[za]),Bo(p,v,null)}finally{An()}return new _u(this.componentType,r,wl(o,v),v,o)}}]),n}(gl),_u=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s){var l;return o(this,n),(l=t.call(this)).location=r,l._rootLView=a,l._tNode=s,l.instance=i,l.hostView=l.changeDetectorRef=new Yl(a),l.componentType=e,l}return s(n,[{key:"injector",get:function(){return new pi(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(yl),bu=new Map,ku=function(e){u(n,e);var t=p(n);function n(e,i){var r;o(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=f(r),r.destroyCbs=[],r.componentFactoryResolver=new vu(f(r));var a=bt(e),s=e[st]||null;return s&&sl(s),r._bootstrapComponents=Vr(a.bootstrap),r._r3Injector=Ra(e,i,[{provide:au,useValue:f(r)},{provide:bl,useValue:r.componentFactoryResolver}],we(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return s(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:He.Default;return e===Ha||e===au||e===Sa?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}(au),wu=function(e){u(n,e);var t=p(n);function n(e){var i,r,a;return o(this,n),(i=t.call(this)).moduleType=e,null!==bt(e)&&(r=e,a=new Set,function e(t){var n=bt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(we(t)," vs ").concat(we(t.name)))}(i,bu.get(i),t),bu.set(i,t));var r,o=y(Vr(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(l){o.e(l)}finally{o.f()}}(r)),i}return s(n,[{key:"create",value:function(e){return new ku(this.moduleType,e)}}]),n}(su);function Cu(e,t){var n=e[t];return n===Io?void 0:n}function xu(e,t){var n,i=nn(),r=e+kt;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Ie("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Tt(n.type)),a=Ge(as);try{var s=Zn(!1),l=o();return Zn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,tn(),r,l),l}finally{Ge(a)}}function Su(e,t,n){var i=e+kt,r=tn(),o=Qt(r,i);return function(e,t){return Xa.isWrapped(t)&&(t=Xa.unwrap(t),e[dn()]=Io),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?function(e,t,n,i,r,o){var a=t+n;return ts(e,a,r)?es(e,a+1,o?i.call(o,r):i(r)):Cu(e,a+1)}(r,fn(),t,o.transform,n,o):o.transform(n))}function Eu(e){return function(t){setTimeout(e,void 0,t)}}var Au=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o(this,n),(e=t.call(this)).__isAsync=i,e}return s(n,[{key:"emit",value:function(e){r(i(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s,l,u=e,c=t||function(){return null},h=o;if(e&&"object"==typeof e){var f=e;u=null===(a=f.next)||void 0===a?void 0:a.bind(f),c=null===(s=f.error)||void 0===s?void 0:s.bind(f),h=null===(l=f.complete)||void 0===l?void 0:l.bind(f)}this.__isAsync&&(c=Eu(c),u&&(u=Eu(u)),h&&(h=Eu(h)));var d=r(i(n.prototype),"subscribe",this).call(this,{next:u,error:c,complete:h});return e instanceof E&&e.add(d),d}}]),n}(z);function Iu(){return this._results[Za()]()}var Tu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Za(),i=e.prototype;i[n]||(i[n]=Iu)}return s(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Au)}},{key:"get",value:function(e){return this._results[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,t){var n=this;n.dirty=!1;var i=wi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Ou=function(){function e(t){o(this,e),this.queryList=t,this.matches=null}return s(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Pu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.queries=t}return s(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}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!==Qu(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Du=s(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o(this,e),this.predicate=t,this.flags=n,this.read=i}),Ru=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.queries=t}return s(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,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}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:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Mu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;o(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return s(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!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Lu(t,r)),this.matchTNodeWithReadOption(e,t,ui(t,e,r,!1,!1))}else n===iu?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ui(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===xl||i===uu||i===iu&&4&t.type)this.addMatch(t.index,-2);else{var r=ui(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}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 Lu(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Fu(e,t,n,i){return-1===n?function(e,t){return 11&e.type?wl(e,t):4&e.type?ou(e,t):null}(t,e):-2===n?function(e,t,n){return n===xl?wl(t,e):n===iu?ou(t,e):n===uu?du(t,e):void 0}(e,t,i):ci(e,e[1],n,t)}function Nu(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:Fu(t,o[u],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function Vu(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=Nu(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var u=o[s+1],c=t[-l],h=wt;h<c.length;h++){var f=c[h];f[17]===f[3]&&Vu(f[1],f,u,i)}if(null!==c[9])for(var d=c[9],p=0;p<d.length;p++){var v=d[p];Vu(v[1],v,u,i)}}}return i}function ju(e){var t=tn(),n=nn(),i=gn();_n(i+1);var r=Qu(n,i);if(e.dirty&&Yt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Vu(n,t,i,[]):Nu(n,t,r,i);e.reset(o,Sl),e.notifyOnChanges()}return!0}return!1}function Uu(e,t,n){var i=nn();i.firstCreatePass&&(Gu(i,new Du(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),zu(i,tn(),t)}function Bu(e,t,n,i){var r=nn();if(r.firstCreatePass){var o=on();Gu(r,new Du(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}zu(r,tn(),n)}function Hu(){return e=tn(),t=gn(),e[19].queries[t].queryList;var e,t}function zu(e,t,n){var i=new Tu(4==(4&n));Zo(e,t,i,i.destroy),null===t[19]&&(t[19]=new Pu),t[19].queries.push(new Ou(i))}function Gu(e,t,n){null===e.queries&&(e.queries=new Ru),e.queries.track(new Mu(t,n))}function Qu(e,t){return e.queries.getByIndex(t)}var Wu=new bi("Application Initializer"),qu=function(){var e=function(){function e(t){var n=this;o(this,e),this.appInits=t,this.resolve=kl,this.reject=kl,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return s(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 i=0;i<this.appInits.length;i++){var r=this.appInits[i]();vs(r)&&t.push(r)}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)(Ni(Wu,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Yu=new bi("AppId"),Ku={provide:Yu,useFactory:function(){return"".concat(Zu()).concat(Zu()).concat(Zu())},deps:[]};function Zu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Xu=new bi("Platform Initializer"),$u=new bi("Platform ID"),Ju=new bi("appBootstrapListener"),ec=function(){var e=function(){function e(){o(this,e)}return s(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=De({token:e,factory:e.\u0275fac}),e}(),tc=new bi("LocaleId"),nc=new bi("DefaultCurrencyCode"),ic=s(function e(t,n){o(this,e),this.ngModuleFactory=t,this.componentFactories=n}),rc=function(e){return new wu(e)},oc=rc,ac=function(e){return Promise.resolve(rc(e))},sc=function(e){var t=rc(e),n=Vr(bt(e).declarations).reduce(function(e,t){var n=_t(t);return n&&e.push(new gu(n)),e},[]);return new ic(t,n)},lc=sc,uc=function(e){return Promise.resolve(sc(e))},cc=function(){var e=function(){function e(){o(this,e),this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=lc,this.compileModuleAndAllComponentsAsync=uc}return s(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=De({token:e,factory:e.\u0275fac}),e}(),hc=function(){return Promise.resolve(0)}();function fc(e){"undefined"==typeof Zone?hc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var dc=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,a=void 0!==r&&r,s=t.shouldCoalesceRunChangeDetection,l=void 0!==s&&s;if(o(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Au(!1),this.onMicrotaskEmpty=new Au(!1),this.onStable=new Au(!1),this.onError=new Au(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var u,c,h=this;h._nesting=0,h._outer=h._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(h._inner=h._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(h._inner=h._inner.fork(Zone.longStackTraceZoneSpec)),h.shouldCoalesceEventChangeDetection=!l&&a,h.shouldCoalesceRunChangeDetection=l,h.lastRequestAnimationFrameId=-1,h.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 i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,c=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Je,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,mc(e),vc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),mc(e))}(u)},(u=h)._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,o){try{return yc(u),e.invokeTask(n,i,r,o)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||u.shouldCoalesceRunChangeDetection)&&c(),gc(u)}},onInvoke:function(e,t,n,i,r,o,a){try{return yc(u),e.invoke(n,i,r,o,a)}finally{u.shouldCoalesceRunChangeDetection&&c(),gc(u)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(u._hasPendingMicrotasks=i.microTask,mc(u),vc(u)):"macroTask"==i.change&&(u.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),u.runOutsideAngular(function(){return u.onError.emit(i)}),!1}})}return s(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,pc,kl,kl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{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}(),pc={};function vc(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 mc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function yc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gc(e){e._nesting--,vc(e)}var _c,bc=function(){function e(){o(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Au,this.onMicrotaskEmpty=new Au,this.onStable=new Au,this.onError=new Au}return s(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,i){return e.apply(t,n)}}]),e}(),kc=function(){var e=function(){function e(t){var n=this;o(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 s(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(){dc.assertNotInAngularZone(),fc(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())fc(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 i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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)(Ni(dc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),wc=function(){var e=function(){function e(){o(this,e),this._applications=new Map,Cc.addToWindow(this)}return s(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 Cc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Cc=new(function(){function e(){o(this,e)}return s(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),xc=!0,Sc=!1;function Ec(){return Sc=!0,xc}var Ac=function(e,t,n){var i=new wu(n);return Promise.resolve(i)},Ic=new bi("AllowMultipleToken");function Tc(e){if(_c&&!_c.destroyed&&!_c.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_c=e.get(Rc);var t=e.get(Xu,null);return t&&t.forEach(function(e){return e()}),_c}function Oc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new bi(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Dc();if(!o||o.injector.get(Ic,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Aa,useValue:"platform"});Tc(Ha.create({providers:a,name:i}))}return Pc(r)}}function Pc(e){var t=Dc();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}function Dc(){return _c&&!_c.destroyed?_c:null}var Rc=function(){var e=function(){function e(t){o(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return s(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new bc:("zone.js"===n?void 0:n)||new dc({enableLongStackTrace:Ec(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:dc,useValue:o}];return o.run(function(){var t=Ha.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Mr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Fc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(qu)).runInitializers(),a.donePromise.then(function(){return sl(n.injector.get(tc,al)||al),r._moduleDoBootstrap(n),n}));return vs(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Mc({},n);return Ac(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Lc);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(we(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:"injector",get:function(){return this._injector}},{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:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Ha))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Mc(e,t){return Array.isArray(t)?t.reduce(Mc,e):Object.assign(Object.assign({},e),t)}var Lc=function(){var e=function(){function e(t,n,i,r,a){var s=this;o(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new V(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new V(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){dc.assertNotInAngularZone(),fc(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){dc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=he(l,u.pipe(_e()))}return s(e,[{key:"bootstrap",value:function(e,t){var n,i=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 gl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(au),o=n.create(Ha.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(kc,null),l=s&&o.injector.get(wc);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Fc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{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=y(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}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;Fc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ju,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(dc),Ni(Ha),Ni(Mr),Ni(bl),Ni(qu))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Fc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Nc=Oc(null,"core",[{provide:$u,useValue:"unknown"},{provide:Rc,deps:[Ha]},{provide:wc,deps:[]},{provide:ec,deps:[]}]),Vc=[{provide:Lc,useClass:Lc,deps:[dc,Ha,Mr,bl,qu]},{provide:yu,deps:[dc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:qu,useClass:qu,deps:[[new Qi,Wu]]},{provide:cc,useClass:cc,deps:[]},Ku,{provide:zl,useFactory:function(){return eu},deps:[]},{provide:Ql,useFactory:function(){return tu},deps:[]},{provide:tc,useFactory:function(e){return sl(e=e||"undefined"!=typeof $localize&&$localize.locale||al),e},deps:[[new Gi(tc),new Qi,new Wi]]},{provide:nc,useValue:"USD"}],jc=function(){var e=s(function e(t){o(this,e)});return e.\u0275fac=function(t){return new(t||e)(Ni(Lc))},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:Vc}),e}(),Uc=null;function Bc(){return Uc}var Hc=s(function e(){o(this,e)}),zc=new bi("DocumentToken"),Gc=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:Qc,token:e,providedIn:"platform"}),e}();function Qc(){return Ni(Wc)}var Wc=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i._init(),i}return s(n,[{key:"_init",value:function(){this.location=Bc().getLocation(),this._history=Bc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Bc().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Bc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Bc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{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}},{key:"pushState",value:function(e,t,n){qc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){qc()?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}}]),n}(Gc);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({factory:Yc,token:e,providedIn:"platform"}),e}();function qc(){return!!window.history.pushState}function Yc(){return new Wc(Ni(zc))}function Kc(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 Zc(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 Xc(e){return e&&"?"!==e[0]?"?"+e:e}var $c=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:Jc,token:e,providedIn:"root"}),e}();function Jc(e){var t=Ni(zc).location;return new th(Ni(Gc),t&&t.origin||"")}var eh=new bi("appBaseHref"),th=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;if(o(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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 r._baseHref=i,r}return s(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 Kc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Xc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Xc(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Xc(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}($c);return e.\u0275fac=function(t){return new(t||e)(Ni(Gc),Ni(eh,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),nh=function(){var e=function(){function e(t,n){var i=this;o(this,e),this._subject=new Au,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Zc(rh(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return s(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+Xc(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,rh(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+Xc(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+Xc(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._urlChangeSubscription||(this._urlChangeSubscription=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}();return e.\u0275fac=function(t){return new(t||e)(Ni($c),Ni(Gc))},e.normalizeQueryParams=Xc,e.joinWithSlash=Kc,e.stripTrailingSlash=Zc,e.\u0275prov=De({factory:ih,token:e,providedIn:"root"}),e}();function ih(){return new nh(Ni($c),Ni(Gc))}function rh(e){return e.replace(/\/index.html$/,"")}var oh=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ah=s(function e(){o(this,e)}),sh=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).locale=e,i}return s(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=rl(t);if(n)return n;var i=t.split("-")[0];if(n=rl(i))return n;if("en"===i)return nl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[ol.PluralCase]}(t||this.locale)(e)){case oh.Zero:return"zero";case oh.One:return"one";case oh.Two:return"two";case oh.Few:return"few";case oh.Many:return"many";default:return"other"}}}]),n}(ah);return e.\u0275fac=function(t){return new(t||e)(Ni(tc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function lh(e,t){t=encodeURIComponent(t);var n,i=y(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=g(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var uh=function(){var e=function(){function e(t,n,i,r){o(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return s(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&&($a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{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(we(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)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(zl),as(Ql),as(xl),as(Al))},e.\u0275dir=yt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ch=function(){function e(t,n,i,r){o(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return s(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}(),hh=function(){var e=function(){function e(t,n,i){o(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return s(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=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(i){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,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ch(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new fh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new fh(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.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:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(uu),as(iu),as(zl))},e.\u0275dir=yt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),fh=s(function e(t,n){o(this,e),this.record=t,this.view=n}),dh=function(){var e=function(){function e(t,n){o(this,e),this._viewContainer=t,this._context=new ph,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return s(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){vh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){vh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{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:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(uu),as(iu))},e.\u0275dir=yt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),ph=s(function e(){o(this,e),this.$implicit=null,this.ngIf=null});function vh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(we(t),"'."))}var mh=function(){function e(t,n){o(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return s(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),yh=function(){var e=function(){function e(){o(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return s(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),gh=function(){var e=function(){function e(t,n,i){o(this,e),this.ngSwitch=i,i._addCase(),this._view=new mh(t,n)}return s(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(uu),as(iu),as(yh,9))},e.\u0275dir=yt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),_h=function(){var e=s(function e(t,n,i){o(this,e),i._addDefault(new mh(t,n))});return e.\u0275fac=function(t){return new(t||e)(as(uu),as(iu),as(yh,9))},e.\u0275dir=yt({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),bh=function(){function e(){o(this,e)}return s(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),kh=new(function(){function e(){o(this,e)}return s(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),wh=new bh,Ch=function(){var e=function(){function e(t){o(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return s(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(vs(t))return kh;if(ms(t))return wh;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(we(n),"'"));var n}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:He.Default,t=Xl(!0);if(null!=t||e&He.Optional)return t;Pe("ChangeDetectorRef")}())},e.\u0275pipe=gt({name:"async",type:e,pure:!1}),e}(),xh=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[{provide:ah,useClass:sh}]}),e}();function Sh(e){return"browser"===e}function Eh(e){return"server"===e}var Ah,Ih=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(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=Th||(Th=document.querySelector("base"))?Th.getAttribute("href"):null;return null==n?null:(t=n,Ah||(Ah=document.createElement("a")),Ah.setAttribute("href",t),"/"===Ah.pathname.charAt(0)?Ah.pathname:"/"+Ah.pathname)}},{key:"resetBaseElement",value:function(){Th=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 lh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Uc||(Uc=e)}}]),n}(function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.call(this)}return s(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Hc)),Th=null,Oh=new bi("TRANSITION_ID"),Ph=[{provide:Wu,useFactory:function(e,t,n){return function(){n.get(qu).donePromise.then(function(){var n=Bc();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:[Oh,zc,Ha],multi:!0}],Dh=function(){function e(){o(this,e)}return s(e,[{key:"addToWindow",value:function(e){Je.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},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,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Bc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Cc=t}}]),e}(),Rh=new bi("EventManagerPlugins"),Mh=function(){var e=function(){function e(t,n){var i=this;o(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return s(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,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Rh),Ni(dc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Lh=function(){function e(t){o(this,e),this._doc=t}return s(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Bc().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Fh=function(){var e=function(){function e(){o(this,e),this._stylesSet=new Set}return s(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}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Nh=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return s(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(Vh),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(Vh)})}}]),n}(Fh);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Vh(e){Bc().remove(e)}var jh={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/"},Uh=/%COMP%/g,Bh="%COMP%",Hh="_nghost-".concat(Bh),zh="_ngcontent-".concat(Bh);function Gh(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?Gh(e,r,n):(r=r.replace(Uh,e),n.push(r))}return n}function Qh(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Wh=function(){var e=function(){function e(t,n,i){o(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new qh(t)}return s(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ye.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Yh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case Ye.ShadowDom:return new Kh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=Gh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Mh),Ni(Nh),Ni(Yu))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),qh=function(){function e(t){o(this,e),this.eventManager=t,this.data=Object.create(null)}return s(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(jh[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,i){if(i){t=i+":"+t;var r=jh[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=jh[n];i?e.removeAttributeNS(i,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,i){i&(jr.DashCase|jr.Important)?e.style.setProperty(t,n,i&jr.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&jr.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,Qh(n)):this.eventManager.addEventListener(e,t,Qh(n))}}]),e}(),Yh=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;o(this,n),(s=t.call(this,e)).component=r;var l=Gh(a+"-"+r.id,r.styles,[]);return i.addStyles(l),s.contentAttr=zh.replace(Uh,a+"-"+r.id),s.hostAttr=Hh.replace(Uh,a+"-"+r.id),s}return s(n,[{key:"applyToHost",value:function(e){r(i(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var o=r(i(n.prototype),"createElement",this).call(this,e,t);return r(i(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),n}(qh),Kh=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;o(this,n),(s=t.call(this,e)).sharedStylesHost=i,s.hostEl=r,s.shadowRoot=r.attachShadow({mode:"open"}),s.sharedStylesHost.addHost(s.shadowRoot);for(var l=Gh(a.id,a.styles,[]),u=0;u<l.length;u++){var c=document.createElement("style");c.textContent=l[u],s.shadowRoot.appendChild(c)}return s}return s(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 r(i(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,o){return r(i(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,o)}},{key:"removeChild",value:function(e,t){return r(i(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(r(i(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(qh),Zh=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return s(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Lh);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Xh=["alt","control","meta","shift"],$h={"\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"},Jh={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"},ef={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},tf=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return o(this,n),t.call(this,e)}return s(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Bc().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(Xh.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{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&&Jh.hasOwnProperty(t)&&(t=Jh[t]))}return $h[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Xh.forEach(function(i){i!=n&&(0,ef[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Lh);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),nf=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return Ni(rf)},token:e,providedIn:"root"}),e}(),rf=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._doc=e,i}return s(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Ar.NONE:return t;case Ar.HTML:return nr(t,"HTML")?tr(t):Sr(this._doc,String(t)).toString();case Ar.STYLE:return nr(t,"Style")?tr(t):t;case Ar.SCRIPT:if(nr(t,"Script"))return tr(t);throw new Error("unsafe value used in a script context");case Ar.URL:return ir(t),nr(t,"URL")?tr(t):lr(String(t));case Ar.RESOURCE_URL:if(nr(t,"ResourceURL"))return tr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Zi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Xi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new $i(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new er(e)}}]),n}(nf);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({factory:function(){return e=Ni(Sa),new rf(e.get(zc));var e},token:e,providedIn:"root"}),e}(),of=Oc(Nc,"browser",[{provide:$u,useValue:"browser"},{provide:Xu,useValue:function(){Ih.makeCurrent(),Dh.init()},multi:!0},{provide:zc,useFactory:function(){return function(e){Nt=e}(document),document},deps:[]}]),af=[[],{provide:Aa,useValue:"root"},{provide:Mr,useFactory:function(){return new Mr},deps:[]},{provide:Rh,useClass:Zh,multi:!0,deps:[zc,dc,$u]},{provide:Rh,useClass:tf,multi:!0,deps:[zc]},[],{provide:Wh,useClass:Wh,deps:[Mh,Nh,Yu]},{provide:El,useExisting:Wh},{provide:Fh,useExisting:Nh},{provide:Nh,useClass:Nh,deps:[zc]},{provide:kc,useClass:kc,deps:[dc]},{provide:Mh,useClass:Mh,deps:[Rh,dc]},[]],sf=function(){var e=function(){function e(t){if(o(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 s(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Yu,useValue:t.appId},{provide:Oh,useExisting:Yu},Ph]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(e,12))},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:af,imports:[xh,jc]}),e}();function lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Q(i)?(t.pop(),te(t,i)):ce(t)}function uf(e,t){return ae(e,t,1)}function cf(e,t){return function(n){return n.lift(new hf(e,t))}}"undefined"!=typeof window&&window;var hf=function(){function e(t,n){o(this,e),this.predicate=t,this.thisArg=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new ff(e,this.predicate,this.thisArg))}}]),e}(),ff=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return s(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}(R),df=s(function e(){o(this,e)}),pf=s(function e(){o(this,e)}),vf=function(){function e(t){var n=this;o(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return s(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),mf=function(){function e(){o(this,e)}return s(e,[{key:"encodeKey",value:function(e){return gf(e)}},{key:"encodeValue",value:function(e){return gf(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function yf(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=g(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function gf(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var _f=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new mf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=yf(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return s(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function bf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function kf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function wf(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Cf=function(){function e(t,n,i,r){var a;if(o(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new vf),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l<n.length-1?"&":"")+s}}else this.params=new _f,this.urlWithParams=n}return s(e,[{key:"serializeBody",value:function(){return null===this.body?null:bf(this.body)||kf(this.body)||wf(this.body)||"string"==typeof this.body?this.body:this.body instanceof _f?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||wf(this.body)?null:kf(this.body)?this.body.type||null:bf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _f?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),xf=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Sf=s(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";o(this,e),this.headers=t.headers||new vf,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),Ef=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this,i)).type=xf.ResponseHeader,e}return s(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Sf),Af=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(e=t.call(this,i)).type=xf.Response,e.body=void 0!==i.body?i.body:null,e}return s(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Sf),If=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return s(n)}(Sf);function Tf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Of=function(){var e=function(){function e(t){o(this,e),this.handler=t}return s(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Cf)n=e;else{var o=void 0;o=r.headers instanceof vf?r.headers:new vf(r.headers);var a=void 0;r.params&&(a=r.params instanceof _f?r.params:new _f({fromObject:r.params})),n=new Cf(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=lf(n).pipe(uf(function(e){return i.handler.handle(e)}));if(e instanceof Cf||"events"===r.observe)return s;var l=s.pipe(cf(function(e){return e instanceof Af}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(W(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(W(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(W(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(W(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new _f).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Tf(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Tf(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Tf(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(df))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Pf=function(){function e(t,n){o(this,e),this.next=t,this.interceptor=n}return s(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Df=new bi("HTTP_INTERCEPTORS"),Rf=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Mf=/^\)\]\}',?\n/,Lf=s(function e(){o(this,e)}),Ff=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Nf=function(){var e=function(){function e(t){o(this,e),this.xhrFactory=t}return s(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new vf(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Ef({headers:r,status:t,statusText:n,url:o})},u=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(Mf,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,c&&(c=!1,u={error:f,text:u})}}c?(n.next(new Af({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new If({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l(),r=new If({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(l()),h=!0);var r={type:xf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:xf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",f),null!==a&&i.upload&&i.upload.addEventListener("progress",d)),i.send(a),n.next({type:xf.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",f),null!==a&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Lf))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Vf=new bi("XSRF_COOKIE_NAME"),jf=new bi("XSRF_HEADER_NAME"),Uf=s(function e(){o(this,e)}),Bf=function(){var e=function(){function e(t,n,i){o(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return s(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=lh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(zc),Ni($u),Ni(Vf))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Hf=function(){var e=function(){function e(t,n){o(this,e),this.tokenService=t,this.headerName=n}return s(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Uf),Ni(jf))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),zf=function(){var e=function(){function e(t,n){o(this,e),this.backend=t,this.injector=n,this.chain=null}return s(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Df,[]);this.chain=t.reduceRight(function(e,t){return new Pf(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(pf),Ni(Ha))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Gf=function(){var e=function(){function e(){o(this,e)}return s(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Hf,useClass:Rf}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Vf,useValue:t.cookieName}:[],t.headerName?{provide:jf,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Hf,{provide:Df,useExisting:Hf,multi:!0},{provide:Uf,useClass:Bf},{provide:Vf,useValue:"XSRF-TOKEN"},{provide:jf,useValue:"X-XSRF-TOKEN"}]}),e}(),Qf=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Of,{provide:df,useClass:zf},Nf,{provide:pf,useExisting:Nf},Ff,{provide:Lf,useExisting:Ff}],imports:[[Gf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Wf=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},qf=function(){var e=function(){function e(){o(this,e);var t=window.location.search;this.authQs=this.constructAuthQueryString(t)}return s(e,[{key:"addAuthQsToUrl",value:function(e){if(!this.authQs.length)return e;var t=-1!==e.indexOf("?"),n=-1!==e.indexOf("#");if(t){var i=e.split("?");return"".concat(i[0]).concat(this.authQs,"&").concat(i[1])}if(n){var r=e.split("#");return"".concat(r[0]).concat(this.authQs,"#").concat(r[1])}return"".concat(e).concat(this.authQs)}},{key:"getAuthQs",value:function(){return this.authQs}},{key:"getEkitFromUrl",value:function(e){if(-1!==e.indexOf("ekit")){var t=e.split("ekit=");if(2===t.length){var n=t[1],i=n.indexOf("&");return-1!==i&&(n=n.substring(0,i)),-1!==n.indexOf("==")&&(n=encodeURIComponent(n)),n}}return null}},{key:"getGapImpersonateNameFromUrl",value:function(e){if(-1!==e.indexOf("impersonate")){var t=e.split("impersonate=");if(2===t.length)return t[1]}return null}},{key:"constructAuthQueryString",value:function(e){if(null===e||0===e.length)return"";var t=this.getGapImpersonateNameFromUrl(e),n=this.getEkitFromUrl(e);return null!==n?"?ekit=".concat(n):null!==t?"?impersonate=".concat(t):""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([Wf("design:paramtypes",[])],e)}(),Yf=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[qf],imports:[[]]}),e}(),Kf=function(){function e(e,t){this.httpClient=e,this.impersonate=t,this.options={withCredentials:!0}}return e.prototype.init=function(e){return this.httpClient.post("/header"+e,null,this.options)},e.prototype.getGapProjects=function(){return this.httpClient.get("/header/get-gap-projects"+this.impersonate.authQs)},e.prototype.setGapProject=function(e){return this.httpClient.post("/header/set-gap-project"+this.impersonate.authQs,{bcgGroup:e},this.options)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Ni(Of),Ni(qf))}}),e}(),Zf=[Kf],Xf=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this))._value=e,i}return s(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=r(i(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 U;return this._value}},{key:"next",value:function(e){r(i(n.prototype),"next",this).call(this,this._value=e)}}]),n}(z),$f=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return s(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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,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,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=p(n);function n(e,i){return o(this,n),t.call(this)}return s(n,[{key:"schedule",value:function(e){return this}}]),n}(E)),Jf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;o(this,e),this.SchedulerAction=t,this.now=n}return s(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}();function ed(e,t,n,i){return x(n)&&(i=n,n=void 0),i?ed(e,t,n).pipe(W(function(e){return w(e)?i.apply(void 0,_(e)):i(e)})):new V(function(i){td(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function td(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)td(e[u],t,n,i,r)}i.add(o)}var nd=new(function(e){u(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jf.now;return o(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return s(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):r(i(n.prototype),"schedule",this).call(this,e,t,o)}},{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}(Jf))($f);function id(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nd;return function(n){return n.lift(new rd(e,t))}}var rd=function(){function e(t,n){o(this,e),this.dueTime=t,this.scheduler=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new od(e,this.dueTime,this.scheduler))}}]),e}(),od=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return s(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ad,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(R);function ad(e){e.debouncedNext()}function sd(e,t){return"function"==typeof t?function(n){return n.pipe(sd(function(n,i){return ne(e(n,i)).pipe(W(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new ld(e))}}var ld=function(){function e(t){o(this,e),this.project=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new ud(e,this.project))}}]),e}(),ud=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return s(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ie(this),i=this.destination;i.add(n),this.innerSubscription=oe(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||r(i(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(re);function cd(e){return function(t){return t.lift(new hd(e))}}var hd=function(){function e(t){o(this,e),this.notifier=t}return s(e,[{key:"call",value:function(e,t){var n=new fd(e),i=oe(this.notifier,new ie(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),fd=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e)).seenValue=!1,i}return s(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(re),dd=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}(),pd=new V(function(e){return e.complete()});function vd(e){return e?function(e){return new V(function(t){return e.schedule(function(){return t.complete()})})}(e):pd}function md(e){return function(t){return 0===e?vd():t.lift(new yd(e))}}var yd=function(){function e(t){if(o(this,e),this.total=t,this.total<0)throw new dd}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new gd(e,this.total))}}]),e}(),gd=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return s(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}(R);function _d(){}function bd(e,t,n){return function(i){return i.lift(new kd(e,t,n))}}var kd=function(){function e(t,n,i){o(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new wd(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),wd=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e))._tapNext=_d,s._tapError=_d,s._tapComplete=_d,s._tapError=r||_d,s._tapComplete=a||_d,x(i)?(s._context=f(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||_d,s._tapError=i.error||_d,s._tapComplete=i.complete||_d),s}return s(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}(R),Cd={provide:Ju,useFactory:function(e,t){return function(){if(Sh(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(xd,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(xd,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[zc,$u],multi:!0},xd="flex-layout-",Sd=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Cd]}),e}(),Ed=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;o(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return s(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),Ad=function(){var e=function(){function e(){o(this,e),this.stylesheet=new Map}return s(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Id={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Td=new bi("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Id}}),Od=new bi("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Pd=new bi("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function Dd(e,t){return e=e?e.clone():new Ed,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var Rd="inline",Md=["row","column","row-reverse","column-reverse"];function Ld(e){var t=function(e){var t=g((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return Md.find(function(e){return e===n})||(n=Md[0]),i===Rd&&(i=r!==Rd?r:"",r=Rd),[n,Fd(i),!!r]}(e),n=g(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}function Fd(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var Nd=function(){var e=function(){function e(t,n,i,r){o(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new z,this.styleCache=new Map}return s(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=g(n,2),r=i[0],o=i[1];if(!o&&t){var a=Ld(r),s=[e];this.styler.applyStyleToElements(a,s)}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=yt({type:e,features:[Pt]}),e}(),Vd=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],jd="(orientation: portrait) and (max-width: 599.98px)",Ud="(orientation: landscape) and (max-width: 959.98px)",Bd="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Hd="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",zd="(orientation: portrait) and (min-width: 840px)",Gd="(orientation: landscape) and (min-width: 1280px)",Qd={HANDSET:"".concat(jd,", ").concat(Ud),TABLET:"".concat(Bd," , ").concat(Hd),WEB:"".concat(zd,", ").concat(Gd," "),HANDSET_PORTRAIT:"".concat(jd),TABLET_PORTRAIT:"".concat(Bd," "),WEB_PORTRAIT:"".concat(zd),HANDSET_LANDSCAPE:"".concat(Ud),TABLET_LANDSCAPE:"".concat(Hd),WEB_LANDSCAPE:"".concat(Gd)},Wd=[{alias:"handset",priority:2e3,mediaQuery:Qd.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Qd.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Qd.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Qd.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Qd.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Qd.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Qd.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Qd.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Qd.WEB_PORTRAIT,overlapping:!0}];function qd(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var Yd=/(\.|-|_)/g;function Kd(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function Zd(e){return e.forEach(function(e){e.suffix||(e.suffix=e.alias.replace(Yd,"|").split("|").map(Kd).join(""),e.overlapping=!!e.overlapping)}),e}var Xd=new bi("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Vi(Pd),t=Vi(Td),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach(function(e){n[e.alias]=e}),t.forEach(function(e){n[e.alias]?qd(n[e.alias],e):n[e.alias]=e}),Zd(Object.keys(n).map(function(e){return n[e]}))}((t.disableDefaultBps?[]:Vd).concat(t.addOrientationBps?Wd:[]),n)}});function $d(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function Jd(e,t){return(e.priority||0)-(t.priority||0)}var ep=function(){var e=function(){function e(t){o(this,e),this.findByMap=new Map,this.items=_(t).sort(Jd)}return s(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,function(t){return t.alias==e}):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,function(t){return t.mediaQuery==e})}},{key:"overlappings",get:function(){return this.items.filter(function(e){return 1==e.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(e){return e.alias})}},{key:"suffixes",get:function(){return this.items.map(function(e){return e.suffix?e.suffix:""})}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Xd))},e.\u0275prov=De({factory:function(){return new e(Ni(Xd))},token:e,providedIn:"root"}),e}(),tp=function(){var e=function(){function e(t,n,i){o(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new Xf(new Ed(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return s(e,[{key:"activations",get:function(){var e=[];return this.registry.forEach(function(t,n){t.matches&&e.push(n)}),e}},{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(function(e){return e.matches})}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(cf(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new V(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return he(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!np[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var o="\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n");r.appendChild(t.createTextNode(o))}t.head.appendChild(r),n.forEach(function(e){return np[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new Ed(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new Ed(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Sh(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(dc),Ni($u),Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(dc),Ni($u),Ni(zc))},token:e,providedIn:"root"}),e}(),np={},ip="print",rp={alias:ip,mediaQuery:ip,priority:1e3},op=function(){var e=function(){function e(t,n,i){o(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new ap,this.deactivations=[]}return s(e,[{key:"withPrintQuery",value:function(e){return[].concat(_(e),[ip])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith(ip)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return(t?[].concat(_(this.printBreakPoints),[t]):this.printBreakPoints).sort($d)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),Dd(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new Ed(!0,ip))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort($d))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(ep),Ni(Td),Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(ep),Ni(Td),Ni(zc))},token:e,providedIn:"root"}),e}(),ap=function(){function e(){o(this,e),this.printBreakpoints=[]}return s(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(rp),e.sort($d),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith(ip)}(e)?[e].concat(_(this.printBreakpoints)):[].concat(_(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function sp(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var lp=function(){var e=function(){function e(t,n,i,r){o(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return s(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:sp(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:sp(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t="flex-direction",n=this.lookupStyle(e,t);return[n||"row",this.lookupInlineStyle(e,t)||Eh(this._platformId)&&this._serverModuleLoaded?n:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Sh(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";if(e){var r=i=this.lookupInlineStyle(e,t);r||(Sh(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))}return i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var a,s=y(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;l=l?l+"":"",Sh(n._platformId)||!n._serverModuleLoaded?Sh(n._platformId)?t.style.setProperty(i,l):n._setServerStyle(t,i,l):n._serverStylesheet.addStyleToElement(t,i,l)}}catch(u){s.e(u)}finally{s.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Ad),Ni(Od),Ni($u),Ni(Td))},e.\u0275prov=De({factory:function(){return new e(Ni(Ad),Ni(Od),Ni($u),Ni(Td))},token:e,providedIn:"root"}),e}(),up=function(){function e(){o(this,e),this.shouldCache=!0}return s(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),cp=function(){var e=function(){function e(t,n,i){o(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new z,this.observeActivations()}return s(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=Dd(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort($d),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort($d),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];hp(this.updateMap,e,t,n),hp(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(cf(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var o=r.get(i);e.updateElement(n,i,o)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var o=he.apply(void 0,_(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,o)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map(function(e){return e.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(bd(this.hook.interceptEvents(this)),cf(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(tp),Ni(ep),Ni(op))},e.\u0275prov=De({factory:function(){return new e(Ni(tp),Ni(ep),Ni(op))},token:e,providedIn:"root"}),e}();function hp(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}var fp=new bi("cdk-dir-doc",{providedIn:"root",factory:function(){return Vi(zc)}}),dp=function(){var e=function(){function e(t){if(o(this,e),this.value="ltr",this.change=new Au,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return s(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(fp,8))},e.\u0275prov=De({factory:function(){return new e(Ni(fp,8))},token:e,providedIn:"root"}),e}(),pp=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),vp="inline",mp=["row","column","row-reverse","column-reverse"];function yp(e){var t=g((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return mp.find(function(e){return e===n})||(n=mp[0]),i===vp&&(i=r!==vp?r:"",r=vp),[n,_p(i),!!r]}function gp(e){return g(yp(e),1)[0].indexOf("row")>-1}function _p(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var bp=function(){var e=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e){return function(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((t=g(yp(e),3))[0],t[1],t[2]);var t}}]),n}(up);return e.\u0275fac=function(t){return kp(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kp=vi(bp),wp=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],Cp=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",s.styleCache=Ep,s.init(),s}return s(n)}(Nd);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(lp),as(bp),as(cp))},e.\u0275dir=yt({type:e,features:[Ga]}),e}(),xp=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=wp,e}return s(n)}(Cp);return e.\u0275fac=function(t){return Sp(t||e)},e.\u0275dir=yt({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ga]}),e}(),Sp=vi(xp),Ep=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var Ap=function(){var e=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"buildStyles",value:function(e,t){var n={},i=g(e.split(" "),2),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===r?gp(t.layout)?null:"100%":null,"max-height":"stretch"===r&&gp(t.layout)?"100%":null})}}]),n}(up);return e.\u0275fac=function(t){return Ip(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ip=vi(Ap),Tp=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],Op=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(cd(s.destroySubject)).subscribe(s.onLayoutChange.bind(f(s))),s}return s(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=Np:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=jp:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=Vp:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=Up:"column-reverse"!==t||n||(this.styleCache=Fp):this.styleCache=Mp:this.styleCache=Lp:this.styleCache=Rp,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),mp.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(Nd);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(lp),as(Ap),as(cp))},e.\u0275dir=yt({type:e,features:[Ga]}),e}(),Pp=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=Tp,e}return s(n)}(Op);return e.\u0275fac=function(t){return Dp(t||e)},e.\u0275dir=yt({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ga]}),e}(),Dp=vi(Pp),Rp=new Map,Mp=new Map,Lp=new Map,Fp=new Map,Np=new Map,Vp=new Map,jp=new Map,Up=new Map,Bp=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Sd,pp]]}),e}();function Hp(e,t){if(1&e&&(us(0,"ul",1),us(1,"li"),us(2,"a"),Ks(3,"DNA Tests"),cs(),us(4,"ul"),us(5,"li"),us(6,"a",2),Ks(7,"Family Finder + myDNA Wellness"),cs(),cs(),us(8,"li"),us(9,"a",2),Ks(10,"Family Finder"),cs(),cs(),us(11,"li"),us(12,"a"),Ks(13,"Y-DNA"),cs(),us(14,"ul"),us(15,"li"),us(16,"a",2),Ks(17,"All Y-DNA Tests"),cs(),cs(),us(18,"li"),us(19,"a",2),Ks(20,"Big Y-700"),cs(),cs(),cs(),cs(),us(21,"li"),us(22,"a",2),Ks(23,"mtDNA"),cs(),cs(),cs(),cs(),us(24,"li"),us(25,"a"),Ks(26,"Upload DNA Data"),cs(),us(27,"ul"),us(28,"li"),us(29,"a",2),Ks(30,"Autosomal DNA"),cs(),cs(),cs(),cs(),us(31,"li"),us(32,"a",2),Ks(33,"Group Project"),cs(),cs(),us(34,"li"),us(35,"a"),Ks(36,"Shop"),cs(),us(37,"ul"),us(38,"li"),us(39,"a",2),Ks(40,"Single Tests"),cs(),cs(),us(41,"li"),us(42,"a",2),Ks(43,"Bundle Tests"),cs(),cs(),us(44,"li"),us(45,"a",2),Ks(46,"Gift Cards"),cs(),cs(),cs(),cs(),cs()),2&e){var n=xs();To(6),Is("href",n.urls.productsFamilyFinderMyDnaBundleUrl,Tr),To(3),Is("href",n.urls.productsFamilyFinderUrl,Tr),To(7),Is("href",n.urls.productsYDnaUrl,Tr),To(3),Is("href",n.urls.productsBigYUrl,Tr),To(3),Is("href",n.urls.productsMtDnaUrl,Tr),To(7),Is("href",n.urls.autosomalTransferUrl,Tr),To(3),Is("href",n.urls.groupProjectUrl,Tr),To(7),Is("href",n.urls.singleTestsProductsUrl,Tr),To(3),Is("href",n.urls.bundlesProductsUrl,Tr),To(3),Is("href",n.urls.giftCardsUrl,Tr)}}function zp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Home"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href",n.urls.dashboardUrl,Tr)}}function Gp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Home"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href","//"+n.model.gapUrl,Tr)}}function Qp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"myOrigins"),us(3,"sup"),Ks(4,"\xae"),cs(),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.myOriginsUrl,Tr)}}function Wp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"ancientOrigins"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.ancientOriginsUrl,Tr)}}function qp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Chromosome Browser"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.chromosomeBrowserUrl,Tr)}}function Yp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Chromosome Painter"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.chromosomePaintingUrl,Tr)}}function Kp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Download Raw Data"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.downloadRawDataUrl,Tr)}}function Zp(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Autosomal DNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",2),Ks(6,"Matches"),cs(),cs(),os(7,Qp,5,1,"li",3),os(8,Wp,3,1,"li",3),os(9,qp,3,1,"li",3),os(10,Yp,3,1,"li",3),us(11,"li"),us(12,"a",2),Ks(13,"Matrix"),cs(),cs(),os(14,Kp,3,1,"li",3),cs(),cs()),2&e){var n=xs(3);To(5),Is("href",n.urls.familyFinderUrl,Tr),To(2),ss("ngIf",n.model.hasPopFinder||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.hasAncientOrigins||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.hasChromosomeBrowser||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.chromosomePaintingEnabled),To(2),Is("href",n.urls.matrixUrl,Tr),To(2),ss("ngIf",!n.model.isFreeAutosomalTransfer)}}function Xp(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"mtDNA Journey"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.mtdnaJourneyUrl,Tr)}}function $p(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"mtDNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",2),Ks(6,"Matches"),cs(),cs(),us(7,"li"),us(8,"a",2),Ks(9,"Mutations"),cs(),cs(),us(10,"li"),us(11,"a",2),Ks(12,"Migration Maps"),cs(),cs(),us(13,"li"),us(14,"a",2),Ks(15,"Ancestral Origins"),cs(),cs(),us(16,"li"),us(17,"a",2),Ks(18,"Haplogroup Origins"),cs(),cs(),us(19,"li"),us(20,"a",2),Ks(21,"Matches Maps"),cs(),cs(),os(22,Xp,3,1,"li",3),cs(),cs()),2&e){var n=xs(3);To(5),Is("href",n.urls.mtdnaMatchesUrl,Tr),To(3),Is("href",n.urls.mtdnaMutationsUrl,Tr),To(3),Is("href",n.urls.mtdnaMigrationMapsUrl,Tr),To(3),Is("href",n.urls.mtdnaAncestralOriginsUrl,Tr),To(3),Is("href",n.urls.mtdnaHaplogroupOriginsUrl,Tr),To(3),Is("href",n.urls.mtdnaMatchesMapUrl,Tr),To(2),ss("ngIf",n.hasMtdnaFms)}}function Jp(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Y-DNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",2),Ks(6,"Matches"),cs(),cs(),us(7,"li"),us(8,"a",2),Ks(9,"Haplotree & SNPs"),cs(),cs(),us(10,"li"),us(11,"a",4),Ks(12,"Discover\u2122 Haplogroup Reports"),cs(),cs(),us(13,"li"),us(14,"a",2),Ks(15,"Migration Maps"),cs(),cs(),us(16,"li"),us(17,"a",2),Ks(18,"Y-STR Results"),cs(),cs(),us(19,"li"),us(20,"a",2),Ks(21,"Ancestral Origins"),cs(),cs(),us(22,"li"),us(23,"a",2),Ks(24,"Haplogroup Origins"),cs(),cs(),us(25,"li"),us(26,"a",2),Ks(27,"SNP Map"),cs(),cs(),us(28,"li"),us(29,"a",2),Ks(30,"Matches Maps"),cs(),cs(),cs(),cs()),2&e){var n=xs(3);To(5),Is("href",n.urls.ydnaMatchesUrl,Tr),To(3),Is("href",n.urls.ydnaHaplotreeSnpsUrl,Tr),To(3),Is("href",n.urls.discoverUrl,Tr),To(3),Is("href",n.urls.ydnaMigrationMapsUrl,Tr),To(3),Is("href",n.urls.ydnaResultsUrl,Tr),To(3),Is("href",n.urls.ydnaAncestralOriginsUrl,Tr),To(3),Is("href",n.urls.ydnaHaplogroupOriginsUrl,Tr),To(3),Is("href",n.urls.ydnaSnpMapUrl,Tr),To(3),Is("href",n.urls.ydnaMatchesMapUrl,Tr)}}function ev(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Big Y"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",2),Ks(6,"Block Tree"),cs(),cs(),us(7,"li"),us(8,"a",4),Ks(9,"Discover\u2122 Haplogroup Reports"),cs(),cs(),us(10,"li"),us(11,"a",2),Ks(12,"Matches"),cs(),cs(),us(13,"li"),us(14,"a",2),Ks(15,"Results"),cs(),cs(),us(16,"li"),us(17,"a",2),Ks(18,"Y-STR Results"),cs(),cs(),cs(),cs()),2&e){var n=xs(3);To(5),Is("href",n.urls.bigYBlockTreeUrl,Tr),To(3),Is("href",n.urls.discoverUrl,Tr),To(3),Is("href",n.urls.bigYMatchesUrl,Tr),To(3),Is("href",n.urls.bigYResultsUrl,Tr),To(3),Is("href",n.urls.bigYStrResultsUrl,Tr)}}function tv(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Other Autosomal Results"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.otherAutosomalResultsUrl,Tr)}}function nv(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Factoids"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.factoidsUrl,Tr)}}function iv(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Y-DNA Advanced"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.ydnaAdvancedMarkersUrl,Tr)}}function rv(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"X-STR"),cs(),cs()),2&e){var n=xs(4);To(1),Is("href",n.urls.xStrUrl,Tr)}}function ov(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Other Results"),cs(),us(3,"ul"),os(4,tv,3,1,"li",3),os(5,nv,3,1,"li",3),os(6,iv,3,1,"li",3),os(7,rv,3,1,"li",3),cs(),cs()),2&e){var n=xs(3);To(4),ss("ngIf",n.model.hasOtherAutosomalResults),To(1),ss("ngIf",n.model.hasFactoids),To(1),ss("ngIf",n.model.hasAdvancedYSTR),To(1),ss("ngIf",n.model.hasXSTR)}}function av(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Results & Tools"),cs(),us(3,"ul"),os(4,Zp,15,7,"li",3),os(5,$p,23,7,"li",3),os(6,Jp,31,9,"li",3),os(7,ev,19,5,"li",3),os(8,ov,8,4,"li",3),cs(),cs()),2&e){var n=xs(2);To(4),ss("ngIf",n.model.hasFF),To(1),ss("ngIf",n.model.hasMtResults),To(1),ss("ngIf",n.model.hasYResults),To(1),ss("ngIf",n.model.hasBigY),To(1),ss("ngIf",n.model.hasFactoids||n.model.hasOtherAutosomalResults||n.model.hasAdvancedYSTR||n.model.hasXSTR)}}function sv(e,t){if(1&e&&(us(0,"li"),us(1,"a",2),Ks(2,"Family Tree"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href",n.urls.familyTreeUrl,Tr)}}function lv(e,t){if(1&e&&(us(0,"li"),us(1,"a"),Ks(2,"Group Projects"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",2),Ks(6,"Join A Project"),cs(),cs(),us(7,"li"),us(8,"a",2),Ks(9,"Manage Group Projects"),cs(),cs(),us(10,"li"),us(11,"a",2),Ks(12,"Learn More"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Is("href",n.urls.joinProjectUrl,Tr),To(3),Is("href",n.urls.manageProjectsUrl,Tr),To(3),Is("href",n.urls.projectsHomeUrl,Tr)}}function uv(e,t){if(1&e&&(us(0,"ul",1),os(1,zp,3,1,"li",3),os(2,Gp,3,1,"li",3),os(3,av,9,5,"li",3),os(4,sv,3,1,"li",3),os(5,lv,13,3,"li",3),cs()),2&e){var n=xs();To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.model.isLawEnforcement&&!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode)}}function cv(e,t){if(1&e&&(us(0,"ul",1),us(1,"li"),us(2,"a",2),Ks(3,"Home"),cs(),cs(),us(4,"li"),us(5,"a"),Ks(6,"Reports"),cs(),us(7,"ul"),us(8,"li"),us(9,"a"),Ks(10,"Member Reports"),cs(),us(11,"ul",5),us(12,"li"),us(13,"a",2),Ks(14,"Country of Origin Charts"),cs(),cs(),us(15,"li"),us(16,"a",2),Ks(17,"Maternal Ancestry"),cs(),cs(),us(18,"li"),us(19,"a",2),Ks(20,"Member Distribution Map"),cs(),cs(),us(21,"li"),us(22,"a",2),Ks(23,"Member Information"),cs(),cs(),us(24,"li"),us(25,"a",2),Ks(26,"Member Notes"),cs(),cs(),us(27,"li"),us(28,"a",2),Ks(29,"Order Summary"),cs(),cs(),us(30,"li"),us(31,"a",2),Ks(32,"Paternal Ancestry"),cs(),cs(),us(33,"li"),us(34,"a",2),Ks(35,"Pending Lab Results"),cs(),cs(),us(36,"li"),us(37,"a",2),Ks(38,"Pending Shipment To Lab"),cs(),cs(),us(39,"li"),us(40,"a",2),Ks(41,"Project Joins"),cs(),cs(),us(42,"li"),us(43,"a",2),Ks(44,"Project Statistics"),cs(),cs(),us(45,"li"),us(46,"a",2),Ks(47,"Received Lab Results"),cs(),cs(),us(48,"li"),us(49,"a",2),Ks(50,"Unreceived Kits"),cs(),cs(),cs(),cs(),us(51,"li"),us(52,"a"),Ks(53,"Genetic Reports"),cs(),us(54,"ul",5),us(55,"li"),us(56,"a",6),Ks(57,"Discover\u2122"),cs(),cs(),us(58,"li"),us(59,"a",2),Ks(60,"Family Finder Group Matrix"),cs(),cs(),us(61,"li"),us(62,"a",2),Ks(63,"Family Finder Group Report"),cs(),cs(),us(64,"li"),us(65,"a",2),Ks(66,"Haplogroup Charts"),cs(),cs(),us(67,"li"),us(68,"a",2),Ks(69,"mtDNA Results Classic"),cs(),cs(),us(70,"li"),us(71,"a",2),Ks(72,"mtDNA Results"),cs(),cs(),us(73,"li"),us(74,"a",2),Ks(75,"mtDNA Haplotree"),cs(),cs(),us(76,"li"),us(77,"a",2),Ks(78,"Y-DNA Genetic Distance"),cs(),cs(),us(79,"li"),us(80,"a",4),Ks(81,"Y-DNA Group Time Tree"),cs(),cs(),us(82,"li"),us(83,"a",2),Ks(84,"Y-DNA TiP"),cs(),cs(),us(85,"li"),us(86,"a",2),Ks(87,"Y-DNA Results Classic"),cs(),cs(),us(88,"li"),us(89,"a",2),Ks(90,"Y-DNA Results Colorized"),cs(),cs(),us(91,"li"),us(92,"a",2),Ks(93,"Y-DNA Results"),cs(),cs(),us(94,"li"),us(95,"a",2),Ks(96,"Y-DNA SNP"),cs(),cs(),us(97,"li"),us(98,"a",2),Ks(99,"Y-DNA Unique Haplotypes"),cs(),cs(),us(100,"li"),us(101,"a",2),Ks(102,"Y-DNA Haplotree"),cs(),cs(),cs(),cs(),cs(),cs(),us(103,"li"),us(104,"a"),Ks(105,"Project Admin"),cs(),us(106,"ul",5),us(107,"li"),us(108,"a",2),Ks(109,"Activity Feed"),cs(),cs(),us(110,"li"),us(111,"a",2),Ks(112,"Activity Log"),cs(),cs(),us(113,"li"),us(114,"a",2),Ks(115,"Bulk Email"),cs(),cs(),us(116,"li"),us(117,"a",2),Ks(118,"Download Files"),cs(),cs(),us(119,"li"),us(120,"a",2),Ks(121,"General Fund"),cs(),cs(),us(122,"li"),us(123,"a",2),Ks(124,"General Fund Charts"),cs(),cs(),us(125,"li"),us(126,"a",2),Ks(127,"Join Authorization"),cs(),cs(),us(128,"li"),us(129,"a",2),Ks(130,"Member Subgrouping"),cs(),cs(),us(131,"li"),us(132,"a",4),Ks(133,"New Member Order"),cs(),cs(),us(134,"li"),us(135,"a",2),Ks(136,"Price Comparison"),cs(),cs(),us(137,"li"),us(138,"a",2),Ks(139,"Project Administrators"),cs(),cs(),us(140,"li"),us(141,"a",2),Ks(142,"Project Profile"),cs(),cs(),us(143,"li"),us(144,"a",2),Ks(145,"Public Results Display Settings"),cs(),cs(),us(146,"li"),us(147,"a",2),Ks(148,"Public Website"),cs(),cs(),us(149,"li"),us(150,"a",2),Ks(151,"Unpaid Products"),cs(),cs(),us(152,"li"),us(153,"a",2),Ks(154,"Welcome Email"),cs(),cs(),cs(),cs(),us(155,"li"),us(156,"a"),Ks(157,"Resources"),cs(),us(158,"ul",5),us(159,"li"),us(160,"a",2),Ks(161,"Guidelines"),cs(),cs(),us(162,"li"),us(163,"a",7),Ks(164,"How to"),cs(),cs(),us(165,"li"),us(166,"a",8),Ks(167,"Interpretation"),cs(),cs(),us(168,"li"),us(169,"a",2),Ks(170,"Known Issues"),cs(),cs(),us(171,"li"),us(172,"a",2),Ks(173,"Papers & Presentations"),cs(),cs(),us(174,"li"),us(175,"a",9),Ks(176,"Quick Reference"),cs(),cs(),us(177,"li"),us(178,"a",10),Ks(179,"Forums"),cs(),cs(),us(180,"li"),us(181,"a",11),Ks(182,"FamilyTreeDNA Blog"),cs(),cs(),cs(),cs(),cs()),2&e){var n=xs();To(2),Is("href",n.urls.homeUrl,Tr),To(11),Os("href","//",n.model.gapUrl,"/country-of-origin-charts.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/maternal-ancestry.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/distribution-map_v2.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/member-information.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/member-notes.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/order-summary.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/paternal-ancestry.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/pending-lab-results.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/pending-shipment-to-lab.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/project-joins.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/project-statistics.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/received-lab-results.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/unreceived-kits.aspx",n.authQs,"",Tr),To(10),Os("href","//",n.model.gapUrl,"/family-finder-matrix-omniexpress.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/family-finder-results-omniexpress.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/haplogroup-charts.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/mtdna-results-classic.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/mtdna-results.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.wwwUrl,"/public/mt-dna-haplotree",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/genetic-distance-report.aspx",n.authQs,"",Tr),To(3),Is("href",n.urls.ydnaGroupTimeTreeLink,Tr),To(3),Os("href","//",n.model.gapUrl,"/gap-tip-report",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/ydna-results-classic.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/ydna-results-colorized.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/ydna-results.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/ydna-snp-report.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/unique-haplotypes.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.wwwUrl,"/public/y-dna-haplotree",n.authQs,"",Tr),To(7),Ts("href","//",n.urls.activityFeedUrl,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/notes.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/bulk-email.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/download-files.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/general-fund.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/general-fund-chart.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/join-authorization.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/member-subgrouping",n.authQs,"",Tr),To(3),Ts("href","//",n.urls.newMemberOrderUrl,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/price-comparison.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/project-administrators.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/project-profile",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/public-display-setting.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/public-website.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/member-unpaid-products.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/welcome-email.aspx",n.authQs,"",Tr),To(7),Os("href","//",n.model.gapUrl,"/gap-guidelines.aspx",n.authQs,"",Tr),To(9),Os("href","//",n.model.gapUrl,"/known-issues.aspx",n.authQs,"",Tr),To(3),Os("href","//",n.model.gapUrl,"/papers-and-presentations.aspx",n.authQs,"",Tr)}}var hv=function(){function e(){}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-header-primary-nav"]],inputs:{authQs:"authQs",hasMyFtdna:"hasMyFtdna",hasMtdnaFms:"hasMtdnaFms",isGapMode:"isGapMode",isGapPage:"isGapPage",isLoggedIn:"isLoggedIn",isNonImpersonateGapMode:"isNonImpersonateGapMode",model:"model",urls:"urls"},decls:4,vars:3,consts:[["class","primary-nav",4,"ngIf"],[1,"primary-nav"],[3,"href"],[4,"ngIf"],["target","_blank",3,"href"],[1,"condensed"],["href","https://discover.familytreedna.com/","target","_blank"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/gap-howto-user-guide/"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/results-interpretation/"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/reference/"],["target","_blank","href","https://forums.familytreedna.com/"],["target","_blank","href","https://blog.familytreedna.com/"]],template:function(e,t){1&e&&(us(0,"div"),os(1,Hp,47,10,"ul",0),os(2,uv,6,5,"ul",0),os(3,cv,183,92,"ul",0),cs()),2&e&&(To(1),ss("ngIf",!t.isLoggedIn&&!t.isGapPage),To(1),ss("ngIf",(t.hasMyFtdna||t.isLoggedIn)&&!t.isGapPage),To(1),ss("ngIf",t.isLoggedIn&&t.isGapPage))},directives:[dh],encapsulation:2}),e}(),fv=function(){function e(e,t){this.httpClient=e,this.impersonate=t}return e.prototype.getSimpleCartInfo=function(e){return this.httpClient.get("/api/shoppingCart/cart/"+e+"/getSimpleCartInfo"+this.impersonate.authQs)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Ni(Of),Ni(qf))}}),e}();function dv(e){return null!=e&&"false"!=="".concat(e)}function pv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return vv(e)?Number(e):t}function vv(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function mv(e){return Array.isArray(e)?e:[e]}function yv(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function gv(e){return e instanceof xl?e.nativeElement:e}new Map;var _v=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l,u){var c;return o(this,n),(c=t.call(this,e,null,i,r)).ngClassInstance=u,c.DIRECTIVE_KEY="ngClass",c.ngClassInstance||(c.ngClassInstance=new uh(a,s,e,l)),c.init(),c.setValue("",""),c}return s(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(Nd);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(lp),as(cp),as(zl),as(Ql),as(Al),as(uh,10))},e.\u0275dir=yt({type:e,inputs:{klass:["class","klass"]},features:[Ga]}),e}(),bv=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],kv=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).inputs=bv,e}return s(n)}(_v);return e.\u0275fac=function(t){return wv(t||e)},e.\u0275dir=yt({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ga]}),e}(),wv=vi(kv);new WeakMap;var Cv=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Sd]]}),e}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var xv,Sv=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Sd]]}),e}(),Ev=(new Ol("11.0.0-beta.33"),function(){var e=function(){function e(t,n){o(this,e),Eh(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return s(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:Td,useValue:Object.assign(Object.assign({},Id),t)},{provide:Pd,useValue:n,multi:!0},{provide:Od,useValue:!0}]:[{provide:Td,useValue:Object.assign(Object.assign({},Id),t)},{provide:Pd,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Od),Ni($u))},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Bp,Cv,Sv],Bp,Cv,Sv]}),e}()),Av=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Iv=function(){var e=function(){function e(t){o(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return s(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=gv(e);return new V(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new z,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Av))},e.\u0275prov=De({factory:function(){return new e(Ni(Av))},token:e,providedIn:"root"}),e}(),Tv=function(){var e=function(){function e(t,n,i){o(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Au,this._disabled=!1,this._currentSubscription=null}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=dv(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=pv(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(id(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(Iv),as(xl),as(dc))},e.\u0275dir=yt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),Ov=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Av]}),e}();function Pv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}try{xv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(bE){xv=!1}var Dv,Rv,Mv,Lv=function(){var e=s(function e(t){o(this,e),this._platformId=t,this.isBrowser=this._platformId?Sh(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!xv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)(Ni($u))},e.\u0275prov=De({factory:function(){return new e(Ni($u))},token:e,providedIn:"root"}),e}(),Fv=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}();function Nv(e){return function(){if(null==Dv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Dv=!0}}))}finally{Dv=Dv||!1}return Dv}()?e:!!e.capture}function Vv(){if(null==Rv){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Rv=!1;if("scrollBehavior"in document.documentElement.style)Rv=!0;else{var e=Element.prototype.scrollTo;Rv=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Rv}function jv(e){if(function(){if(null==Mv){var e="undefined"!=typeof document?document.head:null;Mv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Mv}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var Uv=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(function(){function e(t){var n=this;o(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new z,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new z,this.change=new z,t instanceof Tu&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return s(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(bd(function(t){return e._pressedLetters.push(t)}),id(t),cf(function(){return e._pressedLetters.length>0}),W(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Pv(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Tu?this._items.toArray():this._items}}]),e}()),Bv=function(){var e=function(){function e(t){o(this,e),this._platform=t}return s(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(bE){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===zv(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=zv(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Hv(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Lv))},e.\u0275prov=De({factory:function(){return new e(Ni(Lv))},token:e,providedIn:"root"}),e}();function Hv(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function zv(e){if(!Hv(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Gv=function(){function e(t,n,i,r){var a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,s||this.attachAnchors()}return s(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(md(1)).subscribe(e)}}]),e}(),Qv=function(){var e=function(){function e(t,n,i){o(this,e),this._checker=t,this._ngZone=n,this._document=i}return s(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Gv(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Bv),Ni(dc),Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(Bv),Ni(dc),Ni(zc))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&&Element;var Wv=new bi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),qv=new bi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Yv=function(){var e=function(){function e(t,n,i,r){o(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return s(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout(function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout(function(){return i.clear()},n))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Wv,8),Ni(dc),Ni(zc),Ni(qv,8))},e.\u0275prov=De({factory:function(){return new e(Ni(Wv,8),Ni(dc),Ni(zc),Ni(qv,8))},token:e,providedIn:"root"}),e}();function Kv(e){return 0===e.buttons}function Zv(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var Xv=new bi("cdk-focus-monitor-default-options"),$v=Nv({passive:!0,capture:!0}),Jv=function(){var e=function(){function e(t,n,i,r){var a=this;o(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){a._lastTouchTarget=null,a._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!a._lastTouchTarget){var t=Kv(e)?"keyboard":"mouse";a._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){Zv(e)?a._lastTouchTarget||a._setOriginForCurrentEventQueue("keyboard"):(null!=a._touchTimeoutId&&clearTimeout(a._touchTimeoutId),a._lastTouchTarget=em(e),a._touchTimeoutId=setTimeout(function(){return a._lastTouchTarget=null},650))},this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=em(e),n="focus"===e.type?a._onFocus:a._onBlur,i=t;i;i=i.parentElement)n.call(a,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return s(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=gv(e);if(!this._platform.isBrowser||1!==n.nodeType)return lf(null);var i=jv(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new z,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=gv(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=gv(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=g(e,2);return i._originChanged(n[0],t,n[1])}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=em(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===em(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,$v),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,$v)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,$v),e.addEventListener("mousedown",t._documentMousedownListener,$v),e.addEventListener("touchstart",t._documentTouchstartListener,$v),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$v),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$v),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,$v),i.removeEventListener("mousedown",this._documentMousedownListener,$v),i.removeEventListener("touchstart",this._documentTouchstartListener,$v),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(dc),Ni(Lv),Ni(zc,8),Ni(Xv,8))},e.\u0275prov=De({factory:function(){return new e(Ni(dc),Ni(Lv),Ni(zc,8),Ni(Xv,8))},token:e,providedIn:"root"}),e}();function em(e){return e.composedPath?e.composedPath()[0]:e.target}var tm="cdk-high-contrast-black-on-white",nm="cdk-high-contrast-white-on-black",im="cdk-high-contrast-active",rm=function(){var e=function(){function e(t,n){o(this,e),this._platform=t,this._document=n}return s(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(im),e.remove(tm),e.remove(nm);var t=this.getHighContrastMode();1===t?(e.add(im),e.add(tm)):2===t&&(e.add(im),e.add(nm))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Lv),Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(Lv),Ni(zc))},token:e,providedIn:"root"}),e}(),om=function(){var e=s(function e(t){o(this,e),t._applyBodyHighContrastModeCssClasses()});return e.\u0275fac=function(t){return new(t||e)(Ni(rm))},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Fv,Ov]]}),e}(),am=new Ol("11.2.13");function sm(){return ue(1)}function lm(){return sm()(lf.apply(void 0,arguments))}function um(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Q(i)?(t.pop(),function(e){return lm(t,e,i)}):function(e){return lm(t,e)}}var cm=s(function e(){o(this,e)}),hm=s(function e(){o(this,e)}),fm="*";function dm(e,t){return{type:7,name:e,definitions:t,options:{}}}function pm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function mm(e){return{type:6,styles:e,offset:null}}function ym(e,t,n){return{type:0,name:e,styles:t,options:n}}function gm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function _m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function bm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function km(e){Promise.resolve(null).then(e)}var wm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;km(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Cm=function(){function e(t){var n=this;o(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,s=this.players.length;0==s?km(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==s&&n._onFinish()}),e.onDestroy(function(){++r==s&&n._onDestroy()}),e.onStart(function(){++a==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),xm="!";function Sm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Em(e){switch(e.length){case 0:return new wm;case 1:return e[0];default:return new Cm(e)}}function Am(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case xm:s=r[n];break;case fm:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Im(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Tm(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Tm(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Tm(n,"destroy",e))})}}function Tm(e,t,n){var i=n.totalTime,r=Om(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Om(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Pm(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Dm(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Rm=function(e,t){return!1},Mm=function(e,t){return!1},Lm=function(e,t,n){return[]},Fm=Sm();(Fm||"undefined"!=typeof Element)&&(Rm=function(e,t){return e.contains(t)},Mm=function(){if(Fm||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Mm}(),Lm=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var Nm=null,Vm=!1;function jm(e){Nm||(Nm=("undefined"!=typeof document?document.body:null)||{},Vm=!!Nm.style&&"WebkitAppearance"in Nm.style);var t=!0;return Nm.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Nm.style)&&Vm&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Nm.style),t}var Um=Mm,Bm=Rm,Hm=Lm;function zm(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Gm=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"validateStyleProperty",value:function(e){return jm(e)}},{key:"matchesElement",value:function(e,t){return Um(e,t)}},{key:"containsElement",value:function(e,t){return Bm(e,t)}},{key:"query",value:function(e,t,n){return Hm(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new wm(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Qm=function(){var e=s(function e(){o(this,e)});return e.NOOP=new Gm,e}(),Wm="ng-enter",qm="ng-leave",Ym="ng-trigger",Km=".ng-trigger",Zm="ng-animating",Xm=".ng-animating";function $m(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Jm(parseFloat(t[1]),t[2])}function Jm(e,t){switch(t){case"s":return 1e3*e;default:return e}}function ey(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Jm(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=Jm(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function ty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function ny(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else ty(e,n);return n}function iy(e,t,n){return n?t+":"+n+";":""}function ry(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=iy(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=iy(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function oy(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=dy(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),Sm()&&ry(e))}function ay(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=dy(t);e.style[n]=""}),Sm()&&ry(e))}function sy(e){return Array.isArray(e)?1==e.length?e[0]:vm(e):e}var ly=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function uy(e){var t=[];if("string"==typeof e){for(var n;n=ly.exec(e);)t.push(n[1]);ly.lastIndex=0}return t}function cy(e,t,n){var i=e.toString(),r=i.replace(ly,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function hy(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var fy=/-+([a-z0-9])/g;function dy(e){return e.replace(fy,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function py(e,t){return 0===e||0===t}function vy(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=yy(e,t)})},s=1;s<t.length;s++)a()}return t}function my(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function yy(e,t){return window.getComputedStyle(e)[t]}var gy="*",_y=new Set(["true","1"]),by=new Set(["false","0"]);function ky(e,t){var n=_y.has(e)||by.has(e),i=_y.has(t)||by.has(t);return function(r,o){var a=e==gy||e==r,s=t==gy||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?_y.has(e):by.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?_y.has(t):by.has(t)),a&&s}}var wy=":self",Cy=new RegExp("s*".concat(wy,"s*,?"),"g");function xy(e,t,n){return new Sy(e).build(t,n)}var Sy=function(){function e(t){o(this,e),this._driver=t}return s(e,[{key:"build",value:function(e,t){var n=new Ey(t);return this._resetContextStyleTimingState(n),my(this,sy(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(Ay(e)){var t=e;Object.keys(t).forEach(function(e){uy(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=hy(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=my(this,sy(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(ky(o,s)),"<"!=a[0]||o==gy&&s==gy||t.push(ky(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Iy(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return my(n,e,t)}),options:Iy(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=my(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:Iy(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Ty(ey(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=Ty(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Ty((n=n||ey(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:mm({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=mm(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==fm?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(Ay(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u=t.collectedStyles[t.currentQuerySelector],c=u[i],h=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(c.startTime,'ms" and "').concat(c.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),h=!1),o=c.startTime),h&&(u[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(l=uy(e[i])).length&&l.forEach(function(e){s.hasOwnProperty(e)||a.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Ay(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Ay(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,h=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(c-1));var f=c-1,d=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return u.forEach(function(e,r){var a=h>0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:my(this,sy(e.animation),t),options:Iy(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Iy(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Iy(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=g(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==wy});return t&&(e=e.replace(Cy,"")),[e=e.replace(/@\*/g,Km).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Xm),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,Pm(t.collectedStyles,t.currentQuerySelector,{});var s=my(this,sy(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Iy(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ey(e.timings,t.errors,!0);return{type:12,animation:my(this,sy(e.animation),t),timings:n,options:null}}}]),e}(),Ey=s(function e(t){o(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Ay(e){return!Array.isArray(e)&&"object"==typeof e}function Iy(e){var t;return e?(e=ty(e)).params&&(e.params=(t=e.params)?ty(t):null):e={},e}function Ty(e,t,n){return{duration:e,delay:t,easing:n}}function Oy(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Py=function(){function e(){o(this,e),this._map=new Map}return s(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Dy=new RegExp(":enter","g"),Ry=new RegExp(":leave","g");function My(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Ly).buildKeyframes(e,t,n,i,r,o,a,s,l,u)}var Ly=function(){function e(){o(this,e)}return s(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Py;var c=new Ny(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),my(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[Oy(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?$m(n.duration):null,o=null!=n.delay?$m(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),my(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Fy);var a=$m(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return my(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?$m(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),my(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return ey(t.params?cy(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?$m(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fy);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),my(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;my(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Fy={},Ny=function(){function e(t,n,i,r,a,s,l,u){o(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Vy(this._driver,n,0),l.push(this.currentTimeline)}return s(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=$m(i.duration)),null!=i.delay&&(r.delay=$m(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=cy(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Fy,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new jy(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Dy,"."+this._enterClassName)).replace(Ry,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),Vy=function(){function e(t,n,i,r){o(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return s(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||fm,t._currentKeyframe[e]=fm}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=fm}):ny(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=cy(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:fm),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=ny(o,!0);Object.keys(s).forEach(function(e){var i=s[e];i==xm?t.add(e):i==fm&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?hy(t.values()):[],a=n.size?hy(n.values()):[];if(i){var s=r[0],l=ty(s);s.offset=0,l.offset=1,r=[s,l]}return Oy(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),jy=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return o(this,n),(u=t.call(this,e,i,l.delay)).element=i,u.keyframes=r,u.preStyleProps=a,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return s(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=ny(e[0],!1);l.offset=0,o.push(l);var u=ny(e[0],!1);u.offset=Uy(s),o.push(u);for(var c=e.length-1,h=1;h<=c;h++){var f=ny(e[h],!1);f.offset=Uy((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return Oy(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Vy);function Uy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var By=s(function e(){o(this,e)}),Hy=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"normalizePropertyName",value:function(e,t){return dy(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(zy[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(By),zy=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function Gy(e,t,n,i,r,o,a,s,l,u,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:f}}var Qy={},Wy=function(){function e(t,n,i){o(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return s(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||Qy,f=this.buildStyles(n,a&&a.params||Qy,c),d=s&&s.params||Qy,p=this.buildStyles(i,d,c),v=new Set,m=new Map,y=new Map,g="void"===i,_={params:Object.assign(Object.assign({},h),d)},b=u?[]:My(e,t,this.ast.animation,r,o,f,p,_,l,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Gy(t,this._triggerName,n,i,g,f,p,[],[],m,y,k,c);b.forEach(function(e){var n=e.element,i=Pm(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Pm(y,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=hy(v.values());return Gy(t,this._triggerName,n,i,g,f,p,b,w,m,y,k)}}]),e}(),qy=function(){function e(t,n){o(this,e),this.styles=t,this.defaultParams=n}return s(e,[{key:"buildStyles",value:function(e,t){var n={},i=ty(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=cy(o,i,t)),n[e]=o})}}),n}}]),e}(),Yy=function(){function e(t,n){var i=this;o(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new qy(e.style,e.options&&e.options.params||{})}),Ky(this.states,"true","1"),Ky(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Wy(t,e,i.states))}),this.fallbackTransition=new Wy(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return s(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Ky(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Zy=new Py,Xy=function(){function e(t,n,i){o(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return s(e,[{key:"register",value:function(e,t){var n=[],i=xy(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Am(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=My(this._driver,t,a,Wm,qm,{},{},r,Zy,o)).forEach(function(e){var t=Pm(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,fm)})});var l=n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}),u=Em(l);return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=Om(t,"","","");return Im(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),$y="ng-animate-queued",Jy="ng-animate-disabled",eg=".ng-animate-disabled",tg="ng-star-inserted",ng=[],ig={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},og=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";o(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=hg(r),i){var a=ty(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return s(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),ag="void",sg=new og(ag),lg=function(){function e(t,n,i){o(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,mg(n,this._hostClassName)}return s(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Pm(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=Pm(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(mg(e,Ym),mg(e,"ng-trigger-"+t),l[t]=sg),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new cg(this.id,t,e),s=this._engine.statesByElement.get(e);s||(mg(e,Ym),mg(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new og(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=sg);var h=u.value===ag;if(h||l.value!==u.value){var f=Pm(this._engine.playersByElement,e,[]);f.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),p=!1;if(!d){if(!r)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:p}),p||(mg(e,$y),a.onStart(function(){yg(e,$y)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),f.push(a),a}if(!bg(l.params,u.params)){var v=[],m=o.matchStyles(l.value,l.params,v),y=o.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(function(){ay(e,m),oy(e,y)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,Km,!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,ag,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Em(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||sg,l=new og(ag),u=new cg(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==ig||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){mg(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=Om(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Im(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),ug=function(){function e(t,n,i){o(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return s(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new lg(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(fg(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(fg(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mg(e,Jy)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),yg(e,Jy))}},{key:"removeNode",value:function(e,t,n,i){if(fg(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return fg(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,Km,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Xm,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Em(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=ig,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,eg)&&this.markElementAsDisabled(e,!1),this.driver.query(e,eg,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];mg(r,tg)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var l=this.collectedLeaveElements[s];this.processLeaveNode(l)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var u=this._whenQuietFns;this._whenQuietFns=[],n.length?Em(n).onDone(function(){u.forEach(function(e){return e()})}):u.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Py,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)c.add(t[i])});var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=vg(f,this.collectedEnterElements),p=new Map,v=0;d.forEach(function(e,t){var n=Wm+v++;p.set(t,n),e.forEach(function(e){return mg(e,n)})});for(var m=[],y=new Set,g=new Set,b=0;b<this.collectedLeaveElements.length;b++){var k=this.collectedLeaveElements[b],w=k.__ng_removed;w&&w.setForRemoval&&(m.push(k),y.add(k),w.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach(function(e){return y.add(e)}):g.add(k))}var C=new Map,x=vg(f,Array.from(y));x.forEach(function(e,t){var n=qm+v++;C.set(t,n),e.forEach(function(e){return mg(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return yg(e,n)})}),x.forEach(function(e,t){var n=C.get(t);e.forEach(function(e){return yg(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var S=[],E=[],A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(S.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=C.get(o),v=p.get(o),m=n._buildInstruction(e,i,v,d,f);if(m.errors&&m.errors.length)E.push(m);else{if(f)return t.onStart(function(){return ay(o,m.fromStyles)}),t.onDestroy(function(){return oy(o,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return ay(o,m.fromStyles)}),t.onDestroy(function(){return oy(o,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return Pm(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(E.length){var I=[];E.forEach(function(e){I.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return I.push("- ".concat(e,"\n"))})}),S.forEach(function(e){return e.destroy()}),this.reportError(I)}var T=new Map,O=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Pm(T,t,[]).push(e),e.destroy()})});var P=m.filter(function(e){return kg(e,l,u)}),D=new Map;pg(D,this.driver,g,u,fm).forEach(function(e){kg(e,l,u)&&P.push(e)});var R=new Map;d.forEach(function(e,t){pg(R,n.driver,new Set(e),l,xm)}),P.forEach(function(e){var t=D.get(e),n=R.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var M=[],L=[],F={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return oy(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=F;if(O.size>1){for(var u=t,h=[];u=u.parentNode;){var f=O.get(u);if(f){l=f;break}h.push(u)}h.forEach(function(e){return O.set(e,l)})}var d=n._buildAnimation(a.namespaceId,s,T,o,R,D);if(a.setRealPlayer(d),l===F)M.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=Em(p)),r.push(a)}}else ay(t,s.fromStyles),a.onDestroy(function(){return oy(t,s.toStyles)}),L.push(a),c.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Em(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N<m.length;N++){var V=m[N],j=V.__ng_removed;if(yg(V,qm),!j||!j.hasAnimation){var U=[];if(s.size){var B=s.get(V);B&&B.length&&U.push.apply(U,_(B));for(var H=this.driver.query(V,Xm,!0),z=0;z<H.length;z++){var G=s.get(H[z]);G&&G.length&&U.push.apply(U,_(G))}}var Q=U.filter(function(e){return!e.destroyed});Q.length?gg(this,V,Q):this.processLeaveNode(V)}}return m.length=0,M.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),M}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||r==ag;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=y(t.timelines);try{var u=function(){var e=i.value.element,l=e!==o,u=Pm(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(l.s();!(i=l.n()).done;)u()}catch(c){l.e(c)}finally{l.f()}ay(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,h=new Set,f=t.timelines.map(function(t){var f=t.element;c.add(f);var d=f.__ng_removed;if(d&&d.removedBeforeQueried)return new wm(t.duration,t.delay);var p,v,m=f!==l,y=(p=(n.get(f)||ng).map(function(e){return e.getRealPlayer()}),v=[],_g(p,v),v).filter(function(e){return!!e.element&&e.element===f}),g=r.get(f),_=o.get(f),b=Am(a.driver,a._normalizer,f,t.keyframes,g,_),k=a._buildPlayer(t,b,y);if(t.subTimeline&&i&&h.add(f),m){var w=new cg(e,s,f);w.setRealPlayer(k),u.push(w)}return k});u.forEach(function(e){Pm(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return mg(e,Zm)});var d=Em(f);return d.onDestroy(function(){c.forEach(function(e){return yg(e,Zm)}),oy(l,t.toStyles)}),h.forEach(function(e){Pm(i,e,[]).push(d)}),d}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new wm(e.duration,e.delay)}}]),e}(),cg=function(){function e(t,n,i){o(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new wm,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return s(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Im(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Pm(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function hg(e){return null!=e?e:null}function fg(e){return e&&1===e.nodeType}function dg(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function pg(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(dg(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=rg,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return dg(e,o[s++])}),a}function vg(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function mg(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function yg(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function gg(e,t,n){Em(n).onDone(function(){return e.processLeaveNode(t)})}function _g(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof Cm?_g(i.players,t):t.push(i)}}function bg(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function kg(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var wg=function(){function e(t,n,i){var r=this;o(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ug(t,n,i),this._timelineEngine=new Xy(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return s(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=xy(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Yy(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=g(Dm(n),2);this._timelineEngine.command(r[0],t,r[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=g(Dm(n),2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function Cg(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Sg(t[0]),t.length>1&&(i=Sg(t[t.length-1]))):t&&(n=Sg(t)),n||i?new xg(e,n,i):null}var xg=function(){var e=function(){function e(t,n,i){o(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return s(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&oy(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(oy(this._element,this._initialStyles),this._endStyles&&(oy(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ay(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ay(this._element,this._endStyles),this._endStyles=null),oy(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Sg(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];Eg(r)&&((t=t||{})[r]=e[r])}return t}function Eg(e){return"display"===e||"position"===e}var Ag="animation",Ig="animationend",Tg=function(){function e(t,n,i,r,a,s,l){var u=this;o(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=a,this._fillMode=s,this._onDoneFn=l,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return s(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Lg(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),Mg(e,"",t),Rg(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Og(this._element,this._name,"paused")}},{key:"resume",value:function(){Og(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Pg(this._element,this._name);this._position=e*this._duration,Mg(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Rg(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=Dg(n=Lg(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),Mg(e,"",n.join(","))))}}]),e}();function Og(e,t,n){Mg(e,"PlayState",n,Pg(e,t))}function Pg(e,t){var n=Lg(e,"");return n.indexOf(",")>0?Dg(n.split(","),t):Dg([n],t)}function Dg(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Rg(e,t,n){n?e.removeEventListener(Ig,t):e.addEventListener(Ig,t)}function Mg(e,t,n,i){var r=Ag+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Lg(e,t){return e.style[Ag+t]||""}var Fg=function(){function e(t,n,i,r,a,s,l,u){o(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+a,this._buildStyler()}return s(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Tg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:yy(e.element,i))})}this.currentSnapshot=t}}]),e}(),Ng=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=zm(i),r}return s(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(wm),Vg="gen_css_kf_",jg=function(){function e(){o(this,e),this._count=0,this._head=document.querySelector("head")}return s(e,[{key:"validateStyleProperty",value:function(e){return jm(e)}},{key:"matchesElement",value:function(e,t){return Um(e,t)}},{key:"containsElement",value:function(e,t){return Bm(e,t)}},{key:"query",value:function(e,t,n){return Hm(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return zm(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Fg}),s={};py(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=Ug(t=vy(e,t,s));if(0==n)return new Ng(e,l);var u="".concat(Vg).concat(this._count++),c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var h=Cg(e,t),f=new Fg(e,t,u,n,i,r,l,h);return f.onDestroy(function(){return Bg(c)}),f}}]),e}();function Ug(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}function Bg(e){e.parentNode.removeChild(e)}var Hg=function(){function e(t,n,i,r){o(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return s(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:yy(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),zg=function(){function e(){o(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Gg().toString()),this._cssKeyframesDriver=new jg}return s(e,[{key:"validateStyleProperty",value:function(e){return jm(e)}},{key:"matchesElement",value:function(e,t){return Um(e,t)}},{key:"containsElement",value:function(e,t){return Bm(e,t)}},{key:"query",value:function(e,t,n){return Hm(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=o.filter(function(e){return e instanceof Hg});py(n,i)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return c[e]=t[e]})});var f=Cg(e,t=vy(e,t=t.map(function(e){return ny(e,!1)}),c));return new Hg(e,t,u,f)}}]),e}();function Gg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Qg=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ye.None,styles:[],data:{animation:[]}}),r}return s(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?vm(e):e;return Yg(this._renderer,null,t,"register",[n]),new Wg(t,this._renderer)}}]),n}(cm);return e.\u0275fac=function(t){return new(t||e)(Ni(El),Ni(zc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Wg=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return s(n,[{key:"create",value:function(e,t){return new qg(this._id,e,t||{},this._renderer)}}]),n}(hm),qg=function(){function e(t,n,i,r){o(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return s(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Yg(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Yg(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Kg="@",Zg="@.disabled",Xg=function(){var e=function(){function e(t,n,i){o(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return s(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new $g("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Jg(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=g(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(El),Ni(wg),Ni(dc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),$g=function(){function e(t,n,i){o(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return s(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==Kg&&t==Zg?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Jg=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this,i,r,a)).factory=e,s.namespaceId=i,s}return s(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==Kg?"."==t.charAt(1)&&t==Zg?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if(t.charAt(0)==Kg){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),l="";if(s.charAt(0)!=Kg){var u=g((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],l=u[1]}return this.engine.listen(this.namespaceId,a,s,l,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}($g),e_=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){return o(this,n),t.call(this,e.body,i,r)}return s(n)}(wg);return e.\u0275fac=function(t){return new(t||e)(Ni(zc),Ni(Qm),Ni(By))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),t_=new bi("AnimationModuleType"),n_=[{provide:cm,useClass:Qg},{provide:By,useFactory:function(){return new Hy}},{provide:wg,useClass:e_},{provide:El,useFactory:function(e,t,n){return new Xg(e,t,n)},deps:[Wh,wg,dc]}],i_=[{provide:Qm,useFactory:function(){return"function"==typeof Gg()?new zg:new jg}},{provide:t_,useValue:"BrowserAnimations"}].concat(n_),r_=([{provide:Qm,useClass:Gm},{provide:t_,useValue:"NoopAnimations"}].concat(n_),function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:i_,imports:[sf]}),e}());function o_(e,t){if(1&e&&hs(0,"mat-pseudo-checkbox",4),2&e){var n=xs();ss("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function a_(e,t){if(1&e&&(us(0,"span",5),Ks(1),cs()),2&e){var n=xs();To(1),Xs("(",n.group.label,")")}}var s_=["*"],l_=function(){var e=s(function e(){o(this,e)});return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),u_=function(){var e=s(function e(){o(this,e)});return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),c_=new Ol("11.2.13"),h_=new bi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),f_=function(){var e=function(){function e(t,n,i){o(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return s(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Ec()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&c_.full!==am.full&&console.warn("The Angular Material version ("+c_.full+") does not match the Angular CDK version ("+am.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(rm),Ni(h_,8),Ni(zc))},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[pp],pp]}),e}();function d_(e){return function(e){u(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return s(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=dv(e)}}]),n}(e)}function p_(e,t){return function(e){u(i,e);var n=p(i);function i(){var e;o(this,i);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=n.call.apply(n,[this].concat(a))).defaultColor=t,e.color=t,e}return s(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function v_(e){return function(e){u(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return s(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=dv(e)}}]),n}(e)}function m_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){u(i,e);var n=p(i);function i(){var e;o(this,i);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=n.call.apply(n,[this].concat(a)))._tabIndex=t,e.defaultTabIndex=t,e}return s(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?pv(e):this.defaultTabIndex}}]),i}(e);return n}function y_(e){return function(e){u(n,e);var t=p(n);function n(){var e;o(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new z,e}return s(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}var g_,__=new bi("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Vi(tc)}}),b_=function(){function e(){o(this,e),this._localeChanges=new z,this.localeChanges=this._localeChanges}return s(e,[{key:"getValidDateOrNull",value:function(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}},{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next()}},{key:"compareDate",value:function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}},{key:"sameDate",value:function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}},{key:"clampDate",value:function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}]),e}(),k_=new bi("mat-date-formats");try{g_="undefined"!=typeof Intl}catch(bE){g_=!1}var w_={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},C_=E_(31,function(e){return String(e+1)}),x_={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},S_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function E_(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var A_=function(){var e=function(e){u(n,e);var t=p(n);function n(e,a){var s,l;return o(this,n),(l=t.call(this)).useUtcForDisplay=!0,r((s=f(l),i(n.prototype)),"setLocale",s).call(s,e),l.useUtcForDisplay=!a.TRIDENT,l._clampDate=a.TRIDENT||a.EDGE,l}return s(n,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getDayOfWeek",value:function(e){return e.getDay()}},{key:"getMonthNames",value:function(e){var t=this;if(g_){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return E_(12,function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))})}return w_[e]}},{key:"getDateNames",value:function(){var e=this;if(g_){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return E_(31,function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))})}return C_}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(g_){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return E_(7,function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))})}return x_[e]}},{key:"getYearName",value:function(e){if(g_){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}},{key:"clone",value:function(e){return new Date(e.getTime())}},{key:"createDate",value:function(e,t,n){var i=this._createDateWithOverflow(e,t,n);return i.getMonth(),i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(g_){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(S_.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return r(i(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(b_);return e.\u0275fac=function(t){return new(t||e)(Ni(__,8),Ni(Lv))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),I_=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[{provide:b_,useClass:A_}],imports:[[Fv]]}),e}(),T_={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},O_=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[{provide:k_,useValue:T_}],imports:[[I_]]}),e}(),P_=function(){var e=function(){function e(){o(this,e)}return s(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),D_=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_],f_]}),e}(),R_=function(){function e(t,n,i){o(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return s(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),M_={enterDuration:450,exitDuration:400},L_=Nv({passive:!0}),F_=["mousedown","touchstart"],N_=["mouseup","mouseleave","touchend","touchcancel"],V_=function(){function e(t,n,i,r){o(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=gv(i))}return s(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},M_),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||U_(e,t,r),s=e-r.left,l=t-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(l-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),j_(c),c.style.transform="scale(1)";var h=new R_(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},M_),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=gv(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(F_))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(N_),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Kv(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!Zv(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,L_)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(F_.forEach(function(t){e._triggerElement.removeEventListener(t,e,L_)}),this._pointerUpEventsRegistered&&N_.forEach(function(t){e._triggerElement.removeEventListener(t,e,L_)}))}}]),e}();function j_(e){window.getComputedStyle(e).getPropertyValue("opacity")}function U_(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var B_=new bi("mat-ripple-global-options"),H_=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new V_(this,n,t,i)}return s(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(xl),as(dc),as(Lv),as(B_,8),as(t_,8))},e.\u0275dir=yt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Vs("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),z_=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_,Fv],f_]}),e}(),G_=function(){var e=s(function e(t){o(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1});return e.\u0275fac=function(t){return new(t||e)(as(t_,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Vs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),Q_=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_]]}),e}(),W_=new bi("MAT_OPTION_PARENT_COMPONENT"),q_=d_(s(function e(){o(this,e)})),Y_=0,K_=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i,r;return o(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(Y_++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return s(n)}(q_);return e.\u0275fac=function(t){return new(t||e)(as(W_,8))},e.\u0275dir=yt({type:e,inputs:{label:"label"},features:[Ga]}),e}(),Z_=new bi("MatOptgroup"),X_=0,$_=s(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,e),this.source=t,this.isUserInput=n}),J_=function(){var e=function(){function e(t,n,i,r){o(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(X_++),this.onSelectionChange=new Au,this._stateChanges=new z}return s(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=dv(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Pv(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new $_(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Zl),as(void 0),as(K_))},e.\u0275dir=yt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),eb=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a){return o(this,n),t.call(this,e,i,r,a)}return s(n)}(J_);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Zl),as(W_,8),as(Z_,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&gs("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Js("id",t.id),is("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Vs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Ga],ngContentSelectors:s_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Es(),os(0,o_,1,2,"mat-pseudo-checkbox",0),us(1,"span",1),As(2),cs(),os(3,a_,2,1,"span",2),hs(4,"div",3)),2&e&&(ss("ngIf",t.multiple),To(3),ss("ngIf",t.group&&t.group._inert),To(1),ss("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[dh,H_,G_],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function tb(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var nb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[z_,xh,f_,Q_]]}),e}(),ib=["underline"],rb=["connectionContainer"],ob=["inputContainer"],ab=["label"];function sb(e,t){1&e&&(fs(0),us(1,"div",14),hs(2,"div",15),hs(3,"div",16),hs(4,"div",17),cs(),us(5,"div",18),hs(6,"div",15),hs(7,"div",16),hs(8,"div",17),cs(),ds())}function lb(e,t){1&e&&(us(0,"div",19),As(1,1),cs())}function ub(e,t){if(1&e&&(fs(0),As(1,2),us(2,"span"),Ks(3),cs(),ds()),2&e){var n=xs(2);To(3),Zs(n._control.placeholder)}}function cb(e,t){1&e&&As(0,3,["*ngSwitchCase","true"])}function hb(e,t){1&e&&(us(0,"span",23),Ks(1," *"),cs())}function fb(e,t){if(1&e){var n=ps();us(0,"label",20,21),gs("cdkObserveContent",function(){return rn(n),xs().updateOutlineGap()}),os(2,ub,4,1,"ng-container",12),os(3,cb,1,0,"ng-content",12),os(4,hb,2,0,"span",22),cs()}if(2&e){var i=xs();Vs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),ss("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),To(2),ss("ngSwitchCase",!1),To(1),ss("ngSwitchCase",!0),To(1),ss("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function db(e,t){1&e&&(us(0,"div",24),As(1,4),cs())}function pb(e,t){if(1&e&&(us(0,"div",25,26),hs(2,"span",27),cs()),2&e){var n=xs();To(2),Vs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function vb(e,t){1&e&&(us(0,"div"),As(1,5),cs()),2&e&&ss("@transitionMessages",xs()._subscriptAnimationState)}function mb(e,t){if(1&e&&(us(0,"div",31),Ks(1),cs()),2&e){var n=xs(2);ss("id",n._hintLabelId),To(1),Zs(n.hintLabel)}}function yb(e,t){if(1&e&&(us(0,"div",28),os(1,mb,2,2,"div",29),As(2,6),hs(3,"div",30),As(4,7),cs()),2&e){var n=xs();ss("@transitionMessages",n._subscriptAnimationState),To(1),ss("ngIf",n.hintLabel)}}var gb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_b=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],bb=new bi("MatError"),kb={transitionMessages:dm("transitionMessages",[ym("enter",mm({opacity:1,transform:"translateY(0%)"})),gm("void => enter",[mm({opacity:0,transform:"translateY(-5px)"}),pm("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},wb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e}(),Cb=new bi("MatHint"),xb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-label"]]}),e}(),Sb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-placeholder"]]}),e}(),Eb=new bi("MatPrefix"),Ab=new bi("MatSuffix"),Ib=0,Tb=p_(s(function e(t){o(this,e),this._elementRef=t}),"primary"),Ob=new bi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Pb=new bi("MatFormField"),Db=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l,u,c){var h;return o(this,n),(h=t.call(this,e))._elementRef=e,h._changeDetectorRef=i,h._dir=a,h._defaults=s,h._platform=l,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new z,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(Ib++),h._labelId="mat-form-field-label-".concat(Ib++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return s(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=dv(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(um(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(cd(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(cd(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),he(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(um(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(um(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(cd(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ed(this._label.nativeElement,"transitionend").pipe(md(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h<l.length;h++)c+=l[h].offsetWidth;t=Math.abs(u-s)-5,n=c>0?.75*c+10:0}for(var f=0;f<r.length;f++)r[f].style.width="".concat(t,"px");for(var d=0;d<o.length;d++)o[d].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(Tb);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Zl),as(xl),as(dp,8),as(Ob,8),as(Lv),as(dc),as(t_,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Bu(n,wb,1),Bu(n,wb,3),Bu(n,xb,1),Bu(n,xb,3),Bu(n,Sb,1),Bu(n,bb,1),Bu(n,Cb,1),Bu(n,Eb,1),Bu(n,Ab,1)),2&e&&(ju(i=Hu())&&(t._controlNonStatic=i.first),ju(i=Hu())&&(t._controlStatic=i.first),ju(i=Hu())&&(t._labelChildNonStatic=i.first),ju(i=Hu())&&(t._labelChildStatic=i.first),ju(i=Hu())&&(t._placeholderChild=i.first),ju(i=Hu())&&(t._errorChildren=i),ju(i=Hu())&&(t._hintChildren=i),ju(i=Hu())&&(t._prefixChildren=i),ju(i=Hu())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Uu(ib,1),Uu(rb,3),Uu(ob,1),Uu(ab,1)),2&e&&(ju(n=Hu())&&(t.underlineRef=n.first),ju(n=Hu())&&(t._connectionContainerRef=n.first),ju(n=Hu())&&(t._inputContainerRef=n.first),ju(n=Hu())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&Vs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[ml([{provide:Pb,useExisting:e}]),Ga],ngContentSelectors:_b,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(Es(gb),us(0,"div",0),us(1,"div",1,2),gs("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),os(3,sb,9,0,"ng-container",3),os(4,lb,2,0,"div",4),us(5,"div",5,6),As(7),us(8,"span",7),os(9,fb,5,16,"label",8),cs(),cs(),os(10,db,2,0,"div",9),cs(),os(11,pb,3,4,"div",10),us(12,"div",11),os(13,vb,2,1,"div",12),os(14,yb,5,2,"div",13),cs(),cs()),2&e&&(To(3),ss("ngIf","outline"==t.appearance),To(1),ss("ngIf",t._prefixChildren.length),To(5),ss("ngIf",t._hasFloatingLabel()),To(1),ss("ngIf",t._suffixChildren.length),To(1),ss("ngIf","outline"!=t.appearance),To(1),ss("ngSwitch",t._getDisplayedMessages()),To(1),ss("ngSwitchCase","error"),To(1),ss("ngSwitchCase","hint"))},directives:[dh,yh,gh,Tv],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[kb.transitionMessages]},changeDetection:0}),e}(),Rb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_,Ov],f_]}),e}();function Mb(e){return new V(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ne(n):vd()).subscribe(t)})}var Lb=function(){function e(t,n){o(this,e),this.compare=t,this.keySelector=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new Fb(e,this.compare,this.keySelector))}}]),e}(),Fb=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return s(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(R);function Nb(e){return function(t){return t.lift(new Vb(e))}}var Vb=function(){function e(t){o(this,e),this.durationSelector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new jb(e,this.durationSelector))}}]),e}(),jb=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return s(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=oe(t,new ie(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(re);function Ub(e){return!w(e)&&e-parseFloat(e)+1>=0}function Bb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Ub(t)?i=Number(t)<1?1:Number(t):Q(t)&&(n=t),Q(n)||(n=nd),new V(function(t){var r=Ub(e)?e:+e-n.now();return n.schedule(Hb,r,{index:0,period:i,subscriber:t})})}function Hb(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function zb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nd;return Nb(function(){return Bb(e,t)})}function Gb(e,t){return new V(t?function(n){return t.schedule(Qb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Qb(e){e.subscriber.error(e.error)}var Wb=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];o(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new z,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return s(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),qb=function(){var e=function(){function e(t,n,i){o(this,e),this._ngZone=t,this._platform=n,this._scrolled=new z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return s(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(zb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):lf()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(cf(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=gv(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return ed(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(dc),Ni(Lv),Ni(zc,8))},e.\u0275prov=De({factory:function(){return new e(Ni(dc),Ni(Lv),Ni(zc,8))},token:e,providedIn:"root"}),e}(),Yb=function(){var e=function(){function e(t,n,i){var r=this;o(this,e),this._platform=t,this._change=new z,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return s(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(zb(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Lv),Ni(dc),Ni(zc,8))},e.\u0275prov=De({factory:function(){return new e(Ni(Lv),Ni(dc),Ni(zc,8))},token:e,providedIn:"root"}),e}(),Kb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),Zb=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[pp,Fv,Kb],pp,Kb]}),e}(),Xb=function(){function e(){o(this,e)}return s(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),$b=function(e){u(n,e);var t=p(n);function n(e,i,r,a){var s;return o(this,n),(s=t.call(this)).component=e,s.viewContainerRef=i,s.injector=r,s.componentFactoryResolver=a,s}return s(n)}(Xb),Jb=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return s(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,r(i(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(Xb),ek=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this)).element=e instanceof xl?e.nativeElement:e,i}return s(n)}(Xb),tk=function(){function e(){o(this,e),this._isDisposed=!1,this.attachDomPortal=null}return s(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof $b?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Jb?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ek?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),nk=function(e){u(n,e);var t=p(n);function n(e,a,s,l,u){var c,h;return o(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=a,h._appRef=s,h._defaultInjector=l,h.attachDomPortal=function(e){var t=e.element,o=h._document.createComment("dom-portal");t.parentNode.insertBefore(o,t),h.outletElement.appendChild(t),h._attachedPortal=e,r((c=f(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},h._document=u,h}return s(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(tk),ik=function(){var e=function(e){u(n,e);var t=p(n);function n(e,a,s){var l,u;return o(this,n),(u=t.call(this))._componentFactoryResolver=e,u._viewContainerRef=a,u._isInitialized=!1,u.attached=new Au,u.attachDomPortal=function(e){var t=e.element,o=u._document.createComment("dom-portal");e.setAttachedHost(f(u)),t.parentNode.insertBefore(o,t),u._getRootNode().appendChild(t),u._attachedPortal=e,r((l=f(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},u._document=s,u}return s(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),e&&r(i(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(tk);return e.\u0275fac=function(t){return new(t||e)(as(bl),as(uu),as(zc))},e.\u0275dir=yt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ga]}),e}(),rk=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),ok=function(){function e(t,n){o(this,e),this.predicate=t,this.inclusive=n}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new ak(e,this.predicate,this.inclusive))}}]),e}(),ak=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return s(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(R),sk=Vv(),lk=function(){function e(t,n){o(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return s(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=yv(-this._previousScrollPosition.left),e.style.top=yv(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),sk&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sk&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),uk=function(){function e(t,n,i,r){var a=this;o(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return s(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ck=function(){function e(){o(this,e)}return s(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function hk(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function fk(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var dk=function(){function e(t,n,i,r){o(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return s(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;hk(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),pk=function(){var e=s(function e(t,n,i,r){var a=this;o(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new ck},this.close=function(e){return new uk(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new lk(a._viewportRuler,a._document)},this.reposition=function(e){return new dk(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r});return e.\u0275fac=function(t){return new(t||e)(Ni(qb),Ni(Yb),Ni(dc),Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(qb),Ni(Yb),Ni(dc),Ni(zc))},token:e,providedIn:"root"}),e}(),vk=s(function e(t){if(o(this,e),this.scrollStrategy=new ck,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}}),mk=s(function e(t,n,i,r,a){o(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=a,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY}),yk=s(function e(t,n){o(this,e),this.connectionPair=t,this.scrollableViewProperties=n}),gk=function(){var e=function(){function e(t){o(this,e),this._attachedOverlays=[],this._document=t}return s(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(zc))},token:e,providedIn:"root"}),e}(),_k=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return o(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return s(n,[{key:"add",value:function(e){r(i(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(gk);return e.\u0275fac=function(t){return new(t||e)(Ni(zc))},e.\u0275prov=De({factory:function(){return new e(Ni(zc))},token:e,providedIn:"root"}),e}(),bk=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return s(n,[{key:"add",value:function(e){if(r(i(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(gk);return e.\u0275fac=function(t){return new(t||e)(Ni(zc),Ni(Lv))},e.\u0275prov=De({factory:function(){return new e(Ni(zc),Ni(Lv))},token:e,providedIn:"root"}),e}(),kk=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),wk=function(){var e=function(){function e(t,n){o(this,e),this._platform=n,this._document=t}return s(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||kk)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], ')+".".concat(e,'[platform="test"]')),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add(e),kk?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(zc),Ni(Lv))},e.\u0275prov=De({factory:function(){return new e(Ni(zc),Ni(Lv))},token:e,providedIn:"root"}),e}(),Ck=function(){function e(t,n,i,r,a,s,l,u,c){var h=this;o(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=a,this._keyboardDispatcher=s,this._document=l,this._location=u,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new z,this._attachments=new z,this._detachments=new z,this._locationChanges=E.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new z,this._outsidePointerEvents=new z,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return s(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(md(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=yv(this._config.width),e.height=yv(this._config.height),e.minWidth=yv(this._config.minWidth),e.minHeight=yv(this._config.minHeight),e.maxWidth=yv(this._config.maxWidth),e.maxHeight=yv(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;mv(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(cd(he(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),xk="cdk-overlay-connected-position-bounding-box",Sk=/([A-Za-z%]+)$/,Ek=function(){function e(t,n,i,r,a){o(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new z,this._resizeSubscription=E.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return s(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(xk),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=y(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,i,s),c=this._getOverlayFit(u,i,r,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,r)?o.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:i})}}catch(g){a.e(g)}finally{a.f()}if(o.length){var h,f=null,d=-1,p=y(o);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>d&&(d=m,f=v)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ak(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=Tk(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,u,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=Ik(this._overlayRef.getConfig().minHeight),a=Ik(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=Tk(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return this._previousPushAmount={x:i=o.width<=a.width?c||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,y:r=o.height<=a.height?u||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new yk(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)n=l.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=l.height-(r=l.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-c,(n=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var f=Math.min(l.right-e.x+l.left,e.x),d=this._lastBoundingBoxSize.width;a=e.x-f,(o=2*f)>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=yv(n.height),i.top=yv(n.top),i.bottom=yv(n.bottom),i.width=yv(n.width),i.left=yv(n.left),i.right=yv(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=yv(r)),o&&(i.maxWidth=yv(o))}this._lastBoundingBoxSize=n,Ak(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){Ak(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ak(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();Ak(n,this._getExactOverlayY(t,e,a)),Ak(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=yv(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=yv(o.maxWidth):r&&(n.maxWidth="")),Ak(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=yv(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=yv(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:fk(e,n),isOriginOutsideView:hk(e,n),isOverlayClipped:fk(t,n),isOverlayOutsideView:hk(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&mv(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof xl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function Ak(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Ik(e){if("number"!=typeof e&&null!=e){var t=g(e.split(Sk),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}function Tk(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var Ok=function(){function e(t,n,i,r,a,s,l){o(this,e),this._preferredPositions=[],this._positionStrategy=new Ek(i,r,a,s,l).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return s(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new mk(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),Pk="cdk-global-overlay-wrapper",Dk=function(){function e(){o(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return s(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Pk),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Pk),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Rk=function(){var e=function(){function e(t,n,i,r){o(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return s(e,[{key:"global",value:function(){return new Dk}},{key:"connectedTo",value:function(e,t,n){return new Ok(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Ek(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Yb),Ni(zc),Ni(Lv),Ni(wk))},e.\u0275prov=De({factory:function(){return new e(Ni(Yb),Ni(zc),Ni(Lv),Ni(wk))},token:e,providedIn:"root"}),e}(),Mk=0,Lk=function(){var e=function(){function e(t,n,i,r,a,s,l,u,c,h,f){o(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=f}return s(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new vk(e);return r.direction=r.direction||this._directionality.value,new Ck(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Mk++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Lc)),new nk(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(pk),Ni(wk),Ni(bl),Ni(Rk),Ni(_k),Ni(Ha),Ni(dc),Ni(zc),Ni(dp),Ni(nh),Ni(bk))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Fk=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Nk=new bi("cdk-connected-overlay-scroll-strategy"),Vk=function(){var e=s(function e(t){o(this,e),this.elementRef=t});return e.\u0275fac=function(t){return new(t||e)(as(xl))},e.\u0275dir=yt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),jk=function(){var e=function(){function e(t,n,i,r,a){o(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Au,this.positionChange=new Au,this.attach=new Au,this.detach=new Au,this.overlayKeydown=new Au,this.overlayOutsideClick=new Au,this._templatePortal=new Jb(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return s(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=dv(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=dv(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=dv(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=dv(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=dv(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=Fk);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Pv(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new vk({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new ok(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(Lk),as(iu),as(uu),as(Nk),as(dp,8))},e.\u0275dir=yt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Pt]}),e}(),Uk={provide:Nk,deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Bk=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Lk,Uk],imports:[[pp,rk,Zb],Zb]}),e}();function Hk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(w(i))return zk(i,null);if(C(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return zk(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return zk(t=1===t.length&&w(t[0])?t[0]:t,null).pipe(W(function(e){return o.apply(void 0,_(e))}))}return zk(t,null)}function zk(e,t){return new V(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=ne(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Gk=new bi("NgValidators"),Qk=new bi("NgAsyncValidators");function Wk(e){return null!=e}function qk(e){var t=vs(e)?ne(e):e;return ys(t),t}function Yk(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Kk(e,t){return t.map(function(t){return t(e)})}function Zk(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Xk(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Wk);return 0==t.length?null:function(e){return Yk(Kk(e,t))}}(Zk(e)):null}function $k(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Wk);return 0==t.length?null:function(e){return Hk(Kk(e,t).map(qk)).pipe(W(Yk))}}(Zk(e)):null}function Jk(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_(e),[t]):[e,t]}function ew(e){return e._rawValidators}function tw(e){return e._rawAsyncValidators}var nw=function(){var e=function(){function e(){o(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return s(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Xk(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$k(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e}(),iw=function(){var e=function(e){u(n,e);var t=p(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(nw);return e.\u0275fac=function(t){return rw(t||e)},e.\u0275dir=yt({type:e,features:[Ga]}),e}(),rw=vi(iw),ow=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return s(n)}(nw);function aw(e,t){uw(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&hw(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&hw(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function sw(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),cw(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function lw(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function uw(e,t,n){var i=ew(e);null!==t.validator?e.setValidators(Jk(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=tw(e);if(null!==t.asyncValidator?e.setAsyncValidators(Jk(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};lw(t._rawValidators,o),lw(t._rawAsyncValidators,o)}}function cw(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=ew(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=tw(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};lw(t._rawValidators,l),lw(t._rawAsyncValidators,l)}return i}function hw(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function fw(e,t){uw(e,t,!1)}function dw(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function pw(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var vw="VALID",mw="INVALID",yw="PENDING",gw="DISABLED";function _w(e){return(Cw(e)?e.validators:e)||null}function bw(e){return Array.isArray(e)?Xk(e):e||null}function kw(e,t){return(Cw(t)?t.asyncValidators:e)||null}function ww(e){return Array.isArray(e)?$k(e):e||null}function Cw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var xw=function(){function e(t,n){o(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=bw(this._rawValidators),this._composedAsyncValidatorFn=ww(this._rawAsyncValidators)}return s(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===vw}},{key:"invalid",get:function(){return this.status===mw}},{key:"pending",get:function(){return this.status==yw}},{key:"disabled",get:function(){return this.status===gw}},{key:"enabled",get:function(){return this.status!==gw}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=bw(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ww(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=yw,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=gw,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=vw,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==vw&&this.status!==yw||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?gw:vw}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=yw,this._hasOwnPendingAsyncValidator=!0;var n=qk(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Ew?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Aw&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Au,this.statusChanges=new Au}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?gw:this.errors?mw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yw)?yw:this._anyControlsHaveStatus(mw)?mw:vw}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Cw(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Sw=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return o(this,n),(e=t.call(this,_w(r),kw(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return s(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){pw(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){pw(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(xw),Ew=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,_w(i),kw(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return s(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Sw?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(xw),Aw=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,_w(i),kw(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return s(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Sw?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=y(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(xw),Iw={provide:iw,useExisting:Se(function(){return Ow})},Tw=function(){return Promise.resolve(null)}(),Ow=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Au,r.form=new Ew({},Xk(e),$k(i)),r}return s(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Tw.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),aw(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Tw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),pw(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Tw.then(function(){var n=t._findContainer(e.path),i=new Ew({});fw(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Tw.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Tw.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,dw(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(iw);return e.\u0275fac=function(t){return new(t||e)(as(Gk,10),as(Qk,10))},e.\u0275dir=yt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&gs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ml([Iw]),Ga]}),e}(),Pw={provide:iw,useExisting:Se(function(){return Dw})},Dw=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Au,r._setValidators(e),r._setAsyncValidators(i),r}return s(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(cw(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return aw(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){sw(e.control||null,e),pw(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,dw(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(sw(n||null,t),i instanceof Sw&&(aw(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);fw(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return cw(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){uw(this.form,this,!1),this._oldForm&&cw(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(iw);return e.\u0275fac=function(t){return new(t||e)(as(Gk,10),as(Qk,10))},e.\u0275dir=yt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&gs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ml([Pw]),Ga,Pt]}),e}(),Rw={provide:new bi("mat-autocomplete-scroll-strategy"),deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Mw=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Rw],imports:[[Bk,nb,f_,xh],Kb,nb,f_]}),e}(),Lw=["mat-button",""],Fw=["*"],Nw=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",Vw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],jw=p_(d_(v_(s(function e(t){o(this,e),this._elementRef=t})))),Uw=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;o(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,l=y(Vw);try{for(l.s();!(s=l.n()).done;){var u=s.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return s(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(jw);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Jv),as(t_,8))},e.\u0275cmp=ht({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&Uu(H_,1),2&e&&ju(n=Hu())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(is("disabled",t.disabled||null),Vs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Ga],attrs:Lw,ngContentSelectors:Fw,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Es(),us(0,"span",0),As(1),cs(),hs(2,"span",1),hs(3,"span",2)),2&e&&(To(2),Vs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ss("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[H_],styles:[Nw],encapsulation:2,changeDetection:0}),e}(),Bw=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){return o(this,n),t.call(this,i,e,r)}return s(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(Uw);return e.\u0275fac=function(t){return new(t||e)(as(Jv),as(xl),as(t_,8))},e.\u0275cmp=ht({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){1&e&&gs("click",function(e){return t._haltDisabledEvents(e)}),2&e&&(is("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),Vs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Ga],attrs:Lw,ngContentSelectors:Fw,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Es(),us(0,"span",0),As(1),cs(),hs(2,"span",1),hs(3,"span",2)),2&e&&(To(2),Vs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),ss("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[H_],styles:[Nw],encapsulation:2,changeDetection:0}),e}(),Hw=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[z_,f_],f_]}),e}(),zw=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_],f_]}),e}(),Gw=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),Qw=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[z_,f_,Ov,Gw],f_,Gw]}),e}();function Ww(e,t){}var qw=s(function e(){o(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}),Yw={dialogContainer:dm("dialogContainer",[ym("void, exit",mm({opacity:0,transform:"scale(0.7)"})),ym("enter",mm({transform:"none"})),gm("* => enter",pm("150ms cubic-bezier(0, 0, 0.2, 1)",mm({transform:"none",opacity:1}))),gm("* => void, * => exit",pm("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mm({opacity:0})))])},Kw=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l){var u;return o(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=s,u._focusMonitor=l,u._animationStateChanged=new Au,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=a,u}return s(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(tk);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Qv),as(Zl),as(zc,8),as(qw),as(Jv))},e.\u0275dir=yt({type:e,viewQuery:function(e,t){var n;1&e&&Uu(ik,3),2&e&&ju(n=Hu())&&(t._portalOutlet=n.first)},features:[Ga]}),e}(),Zw=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._state="enter",e}return s(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(Kw);return e.\u0275fac=function(t){return Xw(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&_s("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Js("id",t._id),is("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),el("@dialogContainer",t._state))},features:[Ga],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,Ww,0,0,"ng-template",0)},directives:[ik],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Yw.dialogContainer]}}),e}(),Xw=vi(Zw),$w=0,Jw=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat($w++);o(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new z,this._afterClosed=new z,this._beforeClosed=new z,this._state=0,n._id=r,n._animationStateChanged.pipe(cf(function(e){return"opened"===e.state}),md(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(cf(function(e){return"closed"===e.state}),md(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(cf(function(e){return 27===e.keyCode&&!i.disableClose&&!Pv(e)})).subscribe(function(e){e.preventDefault(),eC(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():eC(i,"mouse")})}return s(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(cf(function(e){return"closing"===e.state}),md(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function eC(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var tC=new bi("MatDialogData"),nC=new bi("mat-dialog-default-options"),iC=new bi("mat-dialog-scroll-strategy"),rC={provide:iC,deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},oC=function(){var e=function(){function e(t,n,i,r,a,s,l,u,c){var h=this;o(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new z,this._afterOpenedAtThisLevel=new z,this._ariaHiddenElements=new Map,this.afterAllClosed=Mb(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(um(void 0))}),this._scrollStrategy=s}return s(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new qw)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new vk({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Ha.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:qw,useValue:t}]}),i=new $b(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof iu)t.attachTemplatePortal(new Jb(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new $b(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(dp,null)||r.push({provide:dp,useValue:{value:e.direction,change:lf()}}),Ha.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(Lk),as(Ha),as(void 0),as(void 0),as(wk),as(void 0),as(ki),as(ki),as(bi))},e.\u0275dir=yt({type:e}),e}(),aC=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l,u){return o(this,n),t.call(this,e,i,a,l,u,s,Jw,Zw,tC)}return s(n)}(oC);return e.\u0275fac=function(t){return new(t||e)(Ni(Lk),Ni(Ha),Ni(nh,8),Ni(nC,8),Ni(iC),Ni(e,12),Ni(wk))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),sC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[aC,rC],imports:[[Bk,rk,f_],f_]}),e}(),lC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Fv]]}),e}(),uC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[P_],imports:[[lC,Rb,f_],lC,Rb]}),e}(),cC=function(){var e=function(){function e(){o(this,e),this.changes=new z,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return s(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),hC={provide:new bi("mat-datepicker-scroll-strategy"),deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[cC,hC],imports:[[xh,Hw,sC,Bk,om,rk,f_],Kb]}),e}(),dC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_],f_]}),e}(),pC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[D_,f_],D_,f_]}),e}(),vC=function(){function e(t){o(this,e),this.selector=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new mC(e,this.selector,this.caught))}}]),e}(),mC=function(e){u(n,e);var t=p(n);function n(e,i,r){var a;return o(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return s(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new ie(this);this.add(o);var a=oe(t,o);a!==o&&this.add(a)}}}]),n}(re),yC=function(){function e(t){o(this,e),this.callback=t}return s(e,[{key:"call",value:function(e,t){return t.subscribe(new gC(e,this.callback))}}]),e}(),gC=function(e){u(n,e);var t=p(n);function n(e,i){var r;return o(this,n),(r=t.call(this,e)).add(new E(i)),r}return s(n)}(R),_C=["*"];function bC(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function kC(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function wC(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var CC=s(function e(t,n,i){o(this,e),this.url=t,this.svgText=n,this.options=i}),xC=function(){var e=function(){function e(t,n,i,r){o(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return s(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new CC(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Ar.HTML,n);if(!r)throw wC(n);return this._addSvgIconConfig(e,t,new CC("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new CC(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Ar.HTML,t);if(!i)throw wC(t);return this._addSvgIconSetConfig(e,new CC("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Ar.RESOURCE_URL,e);if(!n)throw kC(e);var i=this._cachedIconsByUrl.get(n);return i?lf(SC(i)):this._loadSvgIconFromConfig(new CC(e,null)).pipe(bd(function(e){return t._cachedIconsByUrl.set(n,e)}),W(function(e){return SC(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=EC(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Gb(bC(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?lf(SC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(W(function(e){return SC(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?lf(i):Hk(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe((t=function(t){var i=n._sanitizer.sanitize(Ar.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),lf(null)},function(e){var n=new vC(t),i=e.lift(n);return n.caught=i}));var t})).pipe(W(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw bC(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(bd(function(t){return e.svgText=t}),W(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?lf(null):this._fetchIcon(e).pipe(bd(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Ar.RESOURCE_URL,i);if(!a)throw kC(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l,u=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe((l=function(){return n._inProgressUrlFetches.delete(a)},function(e){return e.lift(new yC(l))}),_e());return this._inProgressUrlFetches.set(a,u),u}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(EC(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new CC(i.url,null,i.options):new CC(i,null)}var r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Of,8),Ni(nf),Ni(zc,8),Ni(Mr))},e.\u0275prov=De({factory:function(){return new e(Ni(Of,8),Ni(nf),Ni(zc,8),Ni(Mr))},token:e,providedIn:"root"}),e}();function SC(e){return e.cloneNode(!0)}function EC(e,t){return e+":"+t}var AC=p_(s(function e(t){o(this,e),this._elementRef=t})),IC=new bi("mat-icon-location",{providedIn:"root",factory:function(){var e=Vi(zc),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),TC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],OC=TC.map(function(e){return"[".concat(e,"]")}).join(", "),PC=/^url\(['"]?#(.*?)['"]?\)$/,DC=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s){var l;return o(this,n),(l=t.call(this,e))._iconRegistry=i,l._location=a,l._errorHandler=s,l._inline=!1,l._currentIconFetch=E.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),l}return s(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=dv(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(OC),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){TC.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(PC):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=g(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(md(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){var n="Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))})}}}]),n}(AC);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(xC),yi("aria-hidden"),as(IC),as(Mr))},e.\u0275cmp=ht({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(is("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Vs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ga],ngContentSelectors:_C,decls:1,vars:0,template:function(e,t){1&e&&(Es(),As(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e}(),RC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_],f_]}),e}(),MC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[D_,z_,f_,Q_,xh],D_,f_,Q_,dC]}),e}(),LC={provide:new bi("mat-menu-scroll-strategy"),deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},FC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[LC],imports:[f_]}),e}(),NC=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[LC],imports:[[xh,f_,z_,Bk,FC],Kb,f_,FC]}),e}(),VC=["trigger"],jC=["panel"];function UC(e,t){if(1&e&&(us(0,"span",8),Ks(1),cs()),2&e){var n=xs();To(1),Zs(n.placeholder)}}function BC(e,t){if(1&e&&(us(0,"span",12),Ks(1),cs()),2&e){var n=xs(2);To(1),Zs(n.triggerValue)}}function HC(e,t){1&e&&As(0,0,["*ngSwitchCase","true"])}function zC(e,t){1&e&&(us(0,"span",9),os(1,BC,2,1,"span",10),os(2,HC,1,0,"ng-content",11),cs()),2&e&&(ss("ngSwitch",!!xs().customTrigger),To(2),ss("ngSwitchCase",!0))}function GC(e,t){if(1&e){var n=ps();us(0,"div",13),us(1,"div",14,15),gs("@transformPanel.done",function(e){return rn(n),xs()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return rn(n),xs()._handleKeydown(e)}),As(3,1),cs(),cs()}if(2&e){var i=xs();ss("@transformPanelWrap",void 0),To(1),$s("mat-select-panel ",i._getPanelTheme(),""),Ns("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),ss("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),is("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var QC=[[["mat-select-trigger"]],"*"],WC=["mat-select-trigger","*"],qC={transformPanelWrap:dm("transformPanelWrap",[gm("* => void",bm("@transformPanel",[_m()],{optional:!0}))]),transformPanel:dm("transformPanel",[ym("void",mm({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ym("showing",mm({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ym("showing-multiple",mm({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),gm("void => *",pm("120ms cubic-bezier(0, 0, 0.2, 1)")),gm("* => void",pm("100ms 25ms linear",mm({opacity:0})))])},YC=0,KC=256,ZC=new bi("mat-select-scroll-strategy"),XC=new bi("MAT_SELECT_CONFIG"),$C={provide:ZC,deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},JC=s(function e(t,n){o(this,e),this.source=t,this.value=n}),ex=v_(m_(d_(y_(s(function e(t,n,i,r,a){o(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a}))))),tx=new bi("MatSelectTrigger"),nx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s,l,u,c,h,d,p,v,m,y){var g,b,k,w;return o(this,n),(g=t.call(this,s,a,u,c,d))._viewportRuler=e,g._changeDetectorRef=i,g._ngZone=r,g._dir=l,g._parentFormField=h,g.ngControl=d,g._liveAnnouncer=m,g._defaultOptions=y,g._panelOpen=!1,g._compareWith=function(e,t){return e===t},g._uid="mat-select-".concat(YC++),g._triggerAriaLabelledBy=null,g._destroy=new z,g._onChange=function(){},g._onTouched=function(){},g._valueId="mat-select-value-".concat(YC++),g._panelDoneAnimatingStream=new z,g._overlayPanelClass=(null===(b=g._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",g._focused=!1,g.controlType="mat-select",g._required=!1,g._multiple=!1,g._disableOptionCentering=null!==(w=null===(k=g._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,g.ariaLabel="",g.optionSelectionChanges=Mb(function(){var e=g.options;return e?e.changes.pipe(um(e),sd(function(){return he.apply(void 0,_(e.map(function(e){return e.onSelectionChange})))})):g._ngZone.onStable.pipe(md(1),sd(function(){return g.optionSelectionChanges}))}),g.openedChange=new Au,g._openedStream=g.openedChange.pipe(cf(function(e){return e}),W(function(){})),g._closedStream=g.openedChange.pipe(cf(function(e){return!e}),W(function(){})),g.selectionChange=new Au,g.valueChange=new Au,g.ngControl&&(g.ngControl.valueAccessor=f(g)),null!=(null==y?void 0:y.typeaheadDebounceInterval)&&(g._typeaheadDebounceInterval=y.typeaheadDebounceInterval),g._scrollStrategyFactory=v,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(p)||0,g.id=g.id,g}return s(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=dv(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=dv(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=dv(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=pv(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new Wb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(function(e){return e.lift(new Lb(undefined,undefined))},cd(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(cd(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(um(null),cd(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Pv(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Pv(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(md(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Uv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(cd(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(cd(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=he(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(cd(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),he.apply(void 0,_(this.options.map(function(e){return e._stateChanges}))).pipe(cd(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(ex);return e.\u0275fac=function(t){return new(t||e)(as(Yb),as(Zl),as(dc),as(P_),as(xl),as(dp,8),as(Ow,8),as(Dw,8),as(Pb,8),as(ow,10),yi("tabindex"),as(ZC),as(Yv),as(XC,8))},e.\u0275dir=yt({type:e,viewQuery:function(e,t){var n;1&e&&(Uu(VC,1),Uu(jC,1),Uu(jk,1)),2&e&&(ju(n=Hu())&&(t.trigger=n.first),ju(n=Hu())&&(t.panel=n.first),ju(n=Hu())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Ga,Pt]}),e}(),ix=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return s(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(cd(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(md(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=tb(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,KC,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new JC(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(KC/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-KC)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,KC)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,KC),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=tb(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(nx);return e.\u0275fac=function(t){return rx(t||e)},e.\u0275cmp=ht({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Bu(n,tx,1),Bu(n,eb,1),Bu(n,Z_,1)),2&e&&(ju(i=Hu())&&(t.customTrigger=i.first),ju(i=Hu())&&(t.options=i),ju(i=Hu())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&gs("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(is("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Vs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[ml([{provide:wb,useExisting:e},{provide:W_,useExisting:e}]),Ga],ngContentSelectors:WC,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Es(QC),us(0,"div",0,1),gs("click",function(){return t.toggle()}),us(3,"div",2),os(4,UC,2,1,"span",3),os(5,zC,3,2,"span",4),cs(),us(6,"div",5),hs(7,"div",6),cs(),cs(),os(8,GC,4,14,"ng-template",7),gs("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Qt(Jt.lFrame.contextLView,21);is("aria-owns",t.panelOpen?t.id+"-panel":null),To(3),ss("ngSwitch",t.empty),is("id",t._valueId),To(1),ss("ngSwitchCase",!0),To(1),ss("ngSwitchCase",!1),To(3),ss("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Vk,yh,gh,jk,_h,uh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[qC.transformPanelWrap,qC.transformPanel]},changeDetection:0}),e}(),rx=vi(ix),ox=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[$C],imports:[[xh,Bk,nb,f_],Kb,Rb,nb,f_]}),e}(),ax={provide:new bi("mat-tooltip-scroll-strategy"),deps:[Lk],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},sx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[ax],imports:[[om,xh,Bk,f_],f_,Kb]}),e}(),lx=function(){var e=s(function e(){o(this,e),this.changes=new z,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t,r=i<(n=Math.max(n,0))?Math.min(i+t,n):i+t;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ux={provide:lx,deps:[[new Qi,new Wi,lx]],useFactory:function(e){return e||new lx}},cx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[ux],imports:[[xh,Hw,ox,sx,f_]]}),e}();function hx(e,t){if(1&e&&(Dn(),hs(0,"circle",3)),2&e){var n=xs();Ns("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function fx(e,t){if(1&e&&(Dn(),hs(0,"circle",3)),2&e){var n=xs();Ns("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function dx(e,t){if(1&e&&(Dn(),hs(0,"circle",3)),2&e){var n=xs();Ns("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function px(e,t){if(1&e&&(Dn(),hs(0,"circle",3)),2&e){var n=xs();Ns("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}var vx=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",mx=p_(s(function e(t){o(this,e),this._elementRef=t}),"primary"),yx=new bi("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),gx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s){var l;o(this,n),(l=t.call(this,e))._elementRef=e,l._document=r,l._diameter=100,l._value=0,l._fallbackAnimation=!1,l.mode="determinate";var u=n._diameters;return l._spinnerAnimationLabel=l._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),l._fallbackAnimation=i.EDGE||i.TRIDENT,l._noopAnimations="NoopAnimations"===a&&!!s&&!s._forceAnimations,s&&(s.diameter&&(l.diameter=s.diameter),s.strokeWidth&&(l.strokeWidth=s.strokeWidth)),l}return s(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=pv(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=pv(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,pv(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=jv(e)||this._document.head,this._attachStyleNode();var t="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");e.classList.add(t)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),e.appendChild(o),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,"".concat(.95*e)).replace(/END_VALUE/g,"".concat(.2*e)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(mx);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Lv),as(zc,8),as(t_,8),as(yx))},e.\u0275cmp=ht({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(is("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),Ns("width",t.diameter,"px")("height",t.diameter,"px"),Vs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Ga],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Dn(),us(0,"svg",0),os(1,hx,1,9,"circle",1),os(2,fx,1,7,"circle",2),cs()),2&e&&(Ns("width",t.diameter,"px")("height",t.diameter,"px"),ss("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),To(1),ss("ngSwitchCase",!0),To(1),ss("ngSwitchCase",!1))},directives:[yh,gh],styles:[vx],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),_x=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,a,s){var l;return o(this,n),(l=t.call(this,e,i,r,a,s)).mode="indeterminate",l}return s(n)}(gx);return e.\u0275fac=function(t){return new(t||e)(as(xl),as(Lv),as(zc,8),as(t_,8),as(yx))},e.\u0275cmp=ht({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Ns("width",t.diameter,"px")("height",t.diameter,"px"),Vs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[Ga],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(Dn(),us(0,"svg",0),os(1,dx,1,9,"circle",1),os(2,px,1,7,"circle",2),cs()),2&e&&(Ns("width",t.diameter,"px")("height",t.diameter,"px"),ss("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),To(1),ss("ngSwitchCase",!0),To(1),ss("ngSwitchCase",!1))},directives:[yh,gh],styles:[vx],encapsulation:2,changeDetection:0}),e}(),bx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_,xh],f_]}),e}(),kx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_,Fv,Kb],Kb,f_]}),e}(),wx=function(){var e=s(function e(){o(this,e),this.changes=new z,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Cx={provide:wx,deps:[[new Qi,new Wi,wx]],useFactory:function(e){return e||new wx}},xx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Cx],imports:[[xh,f_]]}),e}(),Sx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Zb]]}),e}(),Ex=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Sx,f_],f_]}),e}(),Ax=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_,rk,z_,Ov,om],f_]}),e}(),Ix=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_],f_]}),e}(),Tx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Bk,rk,xh,Hw,f_],f_]}),e}();function Ox(e,t){1&e&&(us(0,"div",4),hs(1,"mat-spinner"),cs())}function Px(e,t){1&e&&(us(0,"mat-icon",13),Ks(1,"check_circle"),cs())}function Dx(e,t){1&e&&(us(0,"mat-icon",14),Ks(1,"info"),cs())}function Rx(e,t){if(1&e&&(us(0,"div",10),os(1,Px,2,0,"mat-icon",11),os(2,Dx,2,0,"mat-icon",12),us(3,"span"),us(4,"b"),Ks(5),cs(),Ks(6),cs(),cs()),2&e){var n=t.$implicit;To(1),ss("ngIf",n.isSuccess),To(1),ss("ngIf",!n.isSuccess),To(3),Zs(n.productName),To(1),Xs("\xa0",n.message," ")}}function Mx(e,t){if(1&e){var n=ps();us(0,"div"),us(1,"div",5),us(2,"button",6),gs("click",function(){return rn(n),xs(2).close()}),us(3,"mat-icon"),Ks(4,"close"),cs(),cs(),cs(),us(5,"div"),os(6,Rx,7,4,"div",7),cs(),us(7,"div",8),us(8,"a",9),Ks(9," View Cart "),cs(),cs(),cs()}if(2&e){var i=xs(2);To(6),ss("ngForOf",i.validationResults),To(2),ss("href",i.viewCartUrl,Tr)}}var Lx=function(e,t){return{success:e,fail:t}};function Fx(e,t){if(1&e&&(us(0,"div",1),os(1,Ox,2,0,"div",2),os(2,Mx,10,2,"div",3),cs()),2&e){var n=xs();ss("ngClass",(i=3,r=Lx,o=n.isAllSuccess,a=!n.isAllSuccess,function(e,t,n,i,r,o,a){var s=t+n;return ns(e,s,r,o)?es(e,s+2,a?i.call(a,r,o):i(r,o)):Cu(e,s+2)}(tn(),fn(),i,r,o,a,s))),To(1),ss("ngIf",n.loading),To(1),ss("ngIf",!n.loading)}var i,r,o,a,s}var Nx=function(){var e=function(){function e(t,n){o(this,e),this.httpClient=t,this.impersonateService=n,this.options={withCredentials:!1},this.authQs="",this.authQs=n.getAuthQs()}return s(e,[{key:"tryAddProductToCart",value:function(e,t,n,i){var r={p:t.project,c:t.coupon,oc:t.offerCode,rid:t.resellerId,kitId:n,productId:i};return this.httpClient.post("/api/shoppingCart/cart/".concat(e,"/addProduct").concat(this.authQs),r,this.options)}},{key:"tryAddProductsToCart",value:function(e,t,n,i){var r={p:t.project,c:t.coupon,oc:t.offerCode,rid:t.resellerId,kitId:n,productIds:i};return this.httpClient.post("/api/shoppingCart/cart/".concat(e,"/addProducts").concat(this.authQs),r,this.options)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(Of),Ni(qf))},e.\u0275prov=De({factory:function(){return new e(Ni(Of),Ni(qf))},token:e,providedIn:"root"}),e}(),Vx=function(){var e=function(){function e(t,n){o(this,e),this.addToCartService=t,this.ftdnaImpersonationService=n,this.cartId=-1,this.cartKitId=-1,this.viewCartUrl="/cart",this.validationResults=[],this.isAllSuccess=!1,this.loading=!1,this.open=!1,this.initGlobalEventListener()}return s(e,[{key:"ngOnInit",value:function(){this.viewCartUrl=this.ftdnaImpersonationService.addAuthQsToUrl(this.viewCartUrl)}},{key:"close",value:function(){this.open=!1}},{key:"initGlobalEventListener",value:function(){var e=this;window.addEventListener("try-add-to-cart",function(t){e.getAndTryAddProductToCart(t.detail.cartOptions)})}},{key:"getAndTryAddProductToCart",value:function(e){this.open=!0,this.loading=!0,this.validationResults=[],this.isAllSuccess=!1;var t=new URLSearchParams(window.location.search.toLowerCase());if(t.has("group")&&!e.project&&(e.project=t.get("group")),"string"==typeof e.productId&&e.productId.indexOf(",")>-1){var n=e.productId.split(",").map(function(e){return+e});this.tryAddProductsToCart(e,n)}else this.tryAddProductToCart(e,+e.productId)}},{key:"tryAddProductToCart",value:function(e,t){var n=this;this.addToCartService.tryAddProductToCart(this.cartId,e,this.cartKitId,t).subscribe(function(e){n.loading=!1,n.validationResults=e.productValidationResults.map(function(e){return{isSuccess:e.valid,productName:e.productName,message:e.reason+(e.additionalInfo?" "+e.additionalInfo:"")}}),n.cartId=e.id,n.cartKitId=e.kits[0].id,localStorage.cartId=n.cartId,n.isAllSuccess=n.validationResults.every(function(e){return e.isSuccess}),window.dispatchEvent(window.updateHeaderCartButtonEvent)})}},{key:"tryAddProductsToCart",value:function(e,t){var n=this;this.addToCartService.tryAddProductsToCart(this.cartId,e,this.cartKitId,t).subscribe(function(e){n.loading=!1,n.validationResults=e.productValidationResults.map(function(e){return{isSuccess:e.valid,productName:e.productName,message:e.reason+(e.additionalInfo?" "+e.additionalInfo:"")}}),n.cartId=e.id,n.cartKitId=e.kits[0].id,localStorage.cartId=n.cartId,n.isAllSuccess=n.validationResults.every(function(e){return e.isSuccess}),window.dispatchEvent(window.updateHeaderCartButtonEvent)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(as(Nx),as(qf))},e.\u0275cmp=ht({type:e,selectors:[["ftdna-add-to-cart-handler"]],inputs:{cartId:"cartId",cartKitId:"cartKitId"},decls:1,vars:1,consts:[["class","add-to-cart-response-container",3,"ngClass",4,"ngIf"],[1,"add-to-cart-response-container",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end",1,"dialog-heading"],["mat-icon-button","",1,"dialog-action-item",3,"click"],["class","dialog-item","fxLayout","row","fxLayoutAlign","start start",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end stretch",1,"dialog-actions"],["mat-flat-button","","color","accent",3,"href"],["fxLayout","row","fxLayoutAlign","start start",1,"dialog-item"],["class","dialog-icon success",4,"ngIf"],["class","dialog-icon fail",4,"ngIf"],[1,"dialog-icon","success"],[1,"dialog-icon","fail"]],template:function(e,t){1&e&&os(0,Fx,3,6,"div",0),2&e&&ss("ngIf",t.open)},directives:[dh,uh,kv,xp,Pp,_x,Uw,DC,hh,Bw],styles:[".add-to-cart-response-container[_ngcontent-%COMP%]{position:fixed;top:24px;right:24px;max-width:375px;min-width:300px;max-height:600px;overflow:auto;color:#212121;padding:32px;border-radius:2px;border-left:4px solid;background-color:#fff;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;z-index:9999}.add-to-cart-response-container.success[_ngcontent-%COMP%]{border-left-color:#00bbb4}.add-to-cart-response-container.fail[_ngcontent-%COMP%]{border-left-color:#0082ca}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-heading[_ngcontent-%COMP%]{margin-top:-32px;margin-right:-32px;padding:10px}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]{margin-bottom:14px;font-weight:400}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   .dialog-icon[_ngcontent-%COMP%]{margin-right:8px}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   .dialog-icon.success[_ngcontent-%COMP%]{color:#00bbb4}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   .dialog-icon.fail[_ngcontent-%COMP%]{color:#0082ca}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;line-height:24px}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-weight:500}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-actions[_ngcontent-%COMP%]{margin:14px -32px -32px;padding:10px;position:-webkit-sticky;position:sticky;bottom:-32px;background-color:#fff}.add-to-cart-response-container[_ngcontent-%COMP%]   .dialog-actions[_ngcontent-%COMP%]   .dialog-action-item[_ngcontent-%COMP%]{margin-right:8px}"]}),e}(),jx=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[Rb,RC,zw,Ix,NC,ox,Hw,Qw,Ex,xx,cx,pC,dC,uC,kx,MC,fC,O_,Ax,bx,sC,Mw,sx,Tx]}),e}(),Ux=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Nx],imports:[[xh,jx,Ev,Yf]]}),e}();function Bx(e,t){if(1&e&&(us(0,"span",5),Ks(1),cs()),2&e){var n=xs();To(1),Zs(null==n.cartInfo?null:n.cartInfo.productsCount)}}var Hx=function(){function e(e){this.service=e,this.cartInfo={kits:[],productsCount:0},this.initGlobalHeaderCartButtonEventListener()}return e.prototype.ngOnInit=function(){this.cartInfo={kits:[],productsCount:0},this.initiateCartInfoData()},e.prototype.ngOnChanges=function(){this.cartRelativeUrl=this.cartUrl},e.prototype.initGlobalHeaderCartButtonEventListener=function(){var e=this;"function"==typeof window.Event?window.updateHeaderCartButtonEvent=new Event("update-header-cart-btn"):(window.updateHeaderCartButtonEvent=document.createEvent("Event"),window.updateHeaderCartButtonEvent.initEvent("update-header-cart-btn",!0,!0)),window.addEventListener("update-header-cart-btn",function(t){e.initiateCartInfoData()})},e.prototype.initiateCartInfoData=function(){var e=this;this.cartId=localStorage.cartId&&!isNaN(localStorage.cartId)&&localStorage.cartId||-1,this.service.getSimpleCartInfo(this.cartId).subscribe(function(t){t?(e.cartInfo=t,e.cartKitId=t.kits?t.kits[0].id:-1):(e.cartInfo={kits:[],productsCount:0},e.cartKitId=-1)})},e.\u0275fac=function(t){return new(t||e)(as(fv))},e.\u0275cmp=ht({type:e,selectors:[["app-header-shopping-cart"]],inputs:{cartUrl:"cartUrl"},features:[Pt],decls:5,vars:4,consts:[[1,"show-cart","user-actions",3,"href"],[1,"shopping-cart"],[1,"mdi","mdi-cart-outline"],["class","badge cartCounter",4,"ngIf"],[3,"cartId","cartKitId"],[1,"badge","cartCounter"]],template:function(e,t){1&e&&(us(0,"a",0),us(1,"div",1),hs(2,"i",2),os(3,Bx,2,1,"span",3),cs(),cs(),hs(4,"ftdna-add-to-cart-handler",4)),2&e&&(Is("href",t.cartRelativeUrl,Tr),To(3),ss("ngIf",t.cartInfo&&t.cartInfo.productsCount),To(1),ss("cartId",t.cartId)("cartKitId",t.cartKitId))},directives:[dh,Vx],encapsulation:2}),e}();function zx(e,t){if(1&e){var n=ps();us(0,"div",2),us(1,"div",3),us(2,"mat-icon"),Ks(3,"warning"),cs(),us(4,"div",4),us(5,"div",5),Ks(6,"You have Limited Access Permission"),cs(),us(7,"div",6),Ks(8," This member has Group Administrator Level Access set to Limited Access Permission. Certain features will be disabled or set to Read Only. For information regarding Access Levels and Permissions, please visit our "),us(9,"a",7),Ks(10,"Learning Center."),cs(),cs(),cs(),cs(),us(11,"button",8),gs("click",function(){return rn(n),xs().toggleLimitedAccessPopup(!1)}),Ks(12,"Got it"),cs(),cs()}}var Gx=function(){function e(){}return e.prototype.toggleLimitedAccessPopup=function(e){this.showLimitedAccessPopup=e||!this.showLimitedAccessPopup},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-limited-access"]],decls:3,vars:1,consts:[[1,"limited-access",3,"click"],["class","limited-access-container",4,"ngIf"],[1,"limited-access-container"],[1,"info-container"],[1,"copy-container"],[1,"title"],[1,"detail"],["href","https://learn.familytreedna.com/project-administration/group-administrator-access-levels-and-permissions/",1,"learning-center-link"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(us(0,"div",0),gs("click",function(){return t.toggleLimitedAccessPopup()}),Ks(1,"LIMITED ACCESS"),cs(),os(2,zx,13,0,"div",1)),2&e&&(To(2),ss("ngIf",t.showLimitedAccessPopup))},directives:[dh,DC,Uw],styles:[".limited-access[_ngcontent-%COMP%]{background-color:#ff9015;height:15px;width:95px;font-size:10px;line-height:15px;text-align:center;border-radius:2px;margin:0 10px;color:#fff;cursor:pointer}.limited-access-container[_ngcontent-%COMP%]{box-shadow:0 18px 38px #00000043;position:fixed;top:50px;right:30px;background-color:#fff;border-left:4px solid #ff9015;width:375px;height:310px;z-index:5;color:#212121;display:flex;flex-direction:column;align-items:flex-end;justify-content:center}.limited-access-container[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:30px;margin-left:30px;margin-right:30px}.limited-access-container[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#ff9015;margin-right:10px}.limited-access-container[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]   .copy-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:16px;line-height:24px;white-space:normal}.limited-access-container[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]   .copy-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:500}.limited-access-container[_ngcontent-%COMP%]   .info-container[_ngcontent-%COMP%]   .copy-container[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{font-weight:400}.limited-access-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;background-color:#004a98;margin-top:25px;margin-left:30px;margin-right:30px}.limited-access-container[_ngcontent-%COMP%]   .learning-center-link[_ngcontent-%COMP%]{padding:0;height:auto}"]}),e}(),Qx=function(){function e(e){this.httpClient=e,this.options={withCredentials:!0}}return e.prototype.getNotifications=function(e,t){var n="//"+e+"/api/notification-feed/notifications?ekit="+encodeURIComponent(t);return this.httpClient.get(n,this.options)},e.prototype.markAllRead=function(e,t){var n="//"+e+"/api/notification-feed/all/mark-read?ekit="+encodeURIComponent(t);return this.httpClient.post(n,{},this.options)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(Ni(Of))}}),e}(),Wx=[Qx];function qx(e,t){if(1&e&&(us(0,"span",6),Ks(1),xu(2,"async"),cs()),2&e){var n,i=xs();To(1),Zs(null==(n=Su(2,1,i.notifications$))?null:n.length)}}function Yx(e,t){if(1&e){var n=ps();us(0,"a",1),gs("click",function(){return rn(n),xs(2).markAllNotificationsRead()}),Ks(1,"Mark all read"),cs()}}function Kx(e,t){if(1&e&&(us(0,"div",13),us(1,"a",14),hs(2,"span"),us(3,"div"),hs(4,"span",15),us(5,"span",16),Ks(6),cs(),cs(),cs(),cs()),2&e){var n=t.$implicit;To(1),Is("href",n.navigateUrl,Tr),To(1),$s("badge ",n.source,""),To(2),ss("innerHtml",n.content,Ir),To(2),Zs(n.age)}}function Zx(e,t){1&e&&(us(0,"div",17),us(1,"a"),us(2,"div"),us(3,"span",18),Ks(4,"There are no notifications."),cs(),cs(),cs(),cs())}function Xx(e,t){if(1&e&&(us(0,"div",7),us(1,"div",8),us(2,"span"),Ks(3,"NOTIFICATIONS"),cs(),os(4,Yx,2,0,"a",9),xu(5,"async"),cs(),us(6,"div",10),os(7,Kx,7,6,"div",11),xu(8,"async"),os(9,Zx,5,0,"div",12),xu(10,"async"),cs(),cs()),2&e){var n,i,r=xs();To(4),ss("ngIf",null==(n=Su(5,3,r.notifications$))?null:n.length),To(3),ss("ngForOf",Su(8,5,r.notifications$)),To(2),ss("ngIf",0===(null==(i=Su(10,7,r.notifications$))?null:i.length))}}var $x=function(){function e(e,t){this.elem=e,this.service=t,this.isNotificationsVisible=!1,this.notifications$=lf([])}return e.prototype.onClickOutside=function(e){this.elem.nativeElement.contains(e.target)||(this.isNotificationsVisible=!1)},e.prototype.ngOnChanges=function(e){var t=e.model;t&&!this.isEmptyObject(t.currentValue)&&this.getNotifications()},e.prototype.markAllNotificationsRead=function(){var e=this;this.service.markAllRead(this.model.wwwUrl,this.model.kitEncrypted).subscribe(function(t){e.isNotificationsVisible=!1,e.getNotifications()})},e.prototype.toggleNotifications=function(){this.isNotificationsVisible=!this.isNotificationsVisible},e.prototype.getNotifications=function(){this.notifications$=this.service.getNotifications(this.model.wwwUrl,this.model.kitEncrypted)},e.prototype.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},e.\u0275fac=function(t){return new(t||e)(as(xl),as(Qx))},e.\u0275cmp=ht({type:e,selectors:[["app-header-notifications"]],hostBindings:function(e,t){1&e&&gs("click",function(e){return t.onClickOutside(e)},!1,Nr)},inputs:{model:"model"},features:[Pt],decls:7,vars:4,consts:[[1,"notifications"],[3,"click"],[1,"notifications-count"],[1,"mdi","mdi-bell-outline"],["class","badge",4,"ngIf"],["class","notifications-wrap",4,"ngIf"],[1,"badge"],[1,"notifications-wrap"],[1,"notifications-head"],[3,"click",4,"ngIf"],[1,"notifications-list"],["class","notification",4,"ngFor","ngForOf"],["class","notification empty",4,"ngIf"],[1,"notification"],[3,"href"],[1,"type",3,"innerHtml"],[1,"date"],[1,"notification","empty"],[1,"type"]],template:function(e,t){var n;1&e&&(us(0,"div",0),us(1,"a",1),gs("click",function(){return t.toggleNotifications()}),us(2,"div",2),hs(3,"i",3),os(4,qx,3,3,"span",4),xu(5,"async"),cs(),cs(),os(6,Xx,11,9,"div",5),cs()),2&e&&(To(4),ss("ngIf",null==(n=Su(5,2,t.notifications$))?null:n.length),To(2),ss("ngIf",t.isNotificationsVisible))},directives:[dh,hh],pipes:[Ch],encapsulation:2}),e}();function Jx(e,t){if(1&e&&(us(0,"ul",1),us(1,"li",2),hs(2,"app-header-shopping-cart",3),cs(),us(3,"li",4),us(4,"a",5),Ks(5,"Sign In"),cs(),cs(),us(6,"li",6),us(7,"a"),Ks(8,"Help"),cs(),us(9,"ul"),us(10,"li"),us(11,"a",7),hs(12,"i",8),Ks(13,"Help Center "),cs(),cs(),us(14,"li"),us(15,"a",7),hs(16,"i",9),Ks(17,"Contact Us "),cs(),cs(),cs(),cs(),cs()),2&e){var n=xs();To(2),ss("cartUrl",n.urls.cartUrl),To(2),Is("href",n.urls.signInUrl,Tr),To(7),Is("href",n.urls.helpCenterUrl,Tr),To(4),Is("href",n.urls.contactUrl,Tr)}}function eS(e,t){if(1&e&&(us(0,"li",14),us(1,"a",15),Ks(2,"Add Ons & Upgrades"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href",n.urls.upgradesUrl,Tr)}}function tS(e,t){1&e&&(us(0,"li",16),hs(1,"app-limited-access"),cs())}function nS(e,t){if(1&e&&(us(0,"li",16),hs(1,"app-header-notifications",17),cs()),2&e){var n=xs(2);To(1),ss("model",n.model)}}function iS(e,t){if(1&e&&(us(0,"li",2),hs(1,"app-header-shopping-cart",3),cs()),2&e){var n=xs(2);To(1),ss("cartUrl",n.urls.cartUrl)}}function rS(e,t){1&e&&hs(0,"img",30),2&e&&ss("src",xs(3).model.profilePictureLocation,Tr)}function oS(e,t){if(1&e){var n=ps();us(0,"li",18),us(1,"a"),us(2,"div",19),us(3,"div",20),os(4,rS,1,1,"img",21),cs(),us(5,"div",22),us(6,"div",23),Ks(7),cs(),us(8,"div",24),Ks(9," Kit No. "),us(10,"div"),Ks(11),cs(),cs(),cs(),hs(12,"i",25),cs(),cs(),us(13,"ul"),us(14,"li"),us(15,"a",7),hs(16,"i",26),Ks(17,"Account Settings "),cs(),cs(),us(18,"li"),us(19,"a",7),hs(20,"i",27),Ks(21,"Order History "),cs(),cs(),us(22,"li"),us(23,"a",7),hs(24,"i",8),Ks(25,"Help Center "),cs(),cs(),us(26,"li"),us(27,"a",28),gs("click",function(){return rn(n),xs(2).signOut.emit()}),hs(28,"i",29),Ks(29,"Sign Out "),cs(),cs(),cs(),cs()}if(2&e){var i=xs(2);To(4),ss("ngIf",i.model.profilePictureLocation),To(3),Zs(i.model.kitName),To(4),Zs(i.model.kitNum),To(4),Is("href",i.urls.accountSettingsUrl,Tr),To(4),Is("href",i.urls.orderHistoryUrl,Tr),To(4),Is("href",i.urls.helpCenterUrl,Tr)}}function aS(e,t){if(1&e){var n=ps();us(0,"li",18),us(1,"a"),us(2,"div",19),us(3,"div",22),us(4,"div",23),Ks(5),cs(),us(6,"div",24),Ks(7," User: "),us(8,"div"),Ks(9),cs(),cs(),cs(),hs(10,"i",25),cs(),cs(),us(11,"ul",31),us(12,"li"),us(13,"a",7),hs(14,"i",32),Ks(15,"Add Projects"),cs(),cs(),us(16,"li"),us(17,"a",7),hs(18,"i",33),Ks(19,"Change Password"),cs(),cs(),us(20,"li"),us(21,"a",7),hs(22,"i",34),Ks(23,"Contact Information"),cs(),cs(),us(24,"li",35),us(25,"a",7),hs(26,"i",26),Ks(27,"My Settings"),cs(),cs(),us(28,"li"),us(29,"a",28),gs("click",function(){return rn(n),xs(2).signOut.emit()}),hs(30,"i",29),Ks(31,"Sign Out"),cs(),cs(),cs(),cs()}if(2&e){var i=xs(2);To(5),Zs(i.model.kitName),To(4),Zs(i.model.kitNum),To(4),Ts("href","//",i.urls.gapAddProjectsUrl,"",Tr),To(4),Ts("href","//",i.urls.gapChangePasswordUrl,"",Tr),To(4),Ts("href","//",i.urls.gapContactInformationUrl,"",Tr),To(4),Ts("href","//",i.urls.gapMySettingsUrl,"",Tr)}}function sS(e,t){if(1&e&&(us(0,"ul",1),os(1,eS,3,1,"li",10),os(2,tS,2,0,"li",11),os(3,nS,2,1,"li",11),os(4,iS,2,1,"li",12),os(5,oS,30,6,"li",13),os(6,aS,32,6,"li",13),cs()),2&e){var n=xs();To(1),ss("ngIf",n.isFullAccess),To(1),ss("ngIf",!n.isFullAccess&&!n.isGapPage&&!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",n.isFullAccess&&!n.isNonImpersonateGapMode),To(1),ss("ngIf",n.model.hasMyFTDNA||!n.isGapMode),To(1),ss("ngIf",n.isGapMode&&!n.model.hasMyFTDNA)}}var lS=function(){function e(){this.signOut=new Au}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-header-secondary-nav"]],inputs:{isFullAccess:"isFullAccess",isGapMode:"isGapMode",isGapPage:"isGapPage",isLoggedIn:"isLoggedIn",isNonImpersonateGapMode:"isNonImpersonateGapMode",model:"model",urls:"urls"},outputs:{signOut:"signOut"},decls:3,vars:2,consts:[["class","secondary-nav",4,"ngIf"],[1,"secondary-nav"],[1,"shopping"],[3,"cartUrl"],[1,"sign-in"],["mat-flat-button","","color","primary",1,"mat-button-md",3,"href"],[1,"help"],[3,"href"],[1,"mdi","mdi-help-circle-outline"],[1,"mdi","mdi-comment-text-multiple-outline"],["class","upgrades",4,"ngIf"],["class","notifications",4,"ngIf"],["class","shopping",4,"ngIf"],["class","profile",4,"ngIf"],[1,"upgrades"],["mat-flat-button","","color","primary",1,"mat-button-sm",3,"href"],[1,"notifications"],[3,"model"],[1,"profile"],[1,"profile-user"],[1,"avatar"],["alt","",3,"src",4,"ngIf"],[1,"info"],[1,"name","disable-translation"],[1,"kit-number","disable-translation"],[1,"mdi","mdi-chevron-down"],[1,"mdi","mdi-settings-outline"],[1,"mdi","mdi-checkbox-multiple-marked-outline"],[3,"click"],[1,"mdi","mdi-logout-variant"],["alt","",3,"src"],[1,"condensed"],[1,"mdi","mdi-plus-circle-outline"],[1,"mdi","mdi-lock-open-outline"],[1,"mdi","mdi-account-outline"],[1,"border-b"]],template:function(e,t){1&e&&(us(0,"div"),os(1,Jx,18,4,"ul",0),os(2,sS,7,6,"ul",0),cs()),2&e&&(To(1),ss("ngIf",!t.isLoggedIn),To(1),ss("ngIf",t.isLoggedIn))},directives:[dh,Hx,Bw,Gx,$x],styles:[".condensed[_ngcontent-%COMP%]{z-index:100}"]}),e}();function uS(e,t){if(1&e&&(us(0,"ul",10),us(1,"li"),us(2,"span"),Ks(3,"DNA Tests"),cs(),us(4,"ul"),us(5,"li"),us(6,"a",11),Ks(7,"Family Finder + myDNA Wellness"),cs(),cs(),us(8,"li"),us(9,"a",11),Ks(10,"Family Finder"),cs(),cs(),us(11,"li"),us(12,"a",11),Ks(13,"All Y-DNA Tests"),cs(),cs(),us(14,"li"),us(15,"a",11),Ks(16,"Big Y-700"),cs(),cs(),us(17,"li"),us(18,"a",11),Ks(19,"mtDNA"),cs(),cs(),cs(),cs(),us(20,"li"),us(21,"span"),Ks(22,"DNA Upload"),cs(),us(23,"ul"),us(24,"li"),us(25,"a",11),Ks(26,"Autosomal DNA"),cs(),cs(),cs(),cs(),us(27,"li"),us(28,"span"),us(29,"a",11),Ks(30,"Group Project"),cs(),cs(),cs(),us(31,"li"),us(32,"span"),us(33,"a",11),Ks(34,"Shop"),cs(),cs(),cs(),us(35,"li"),us(36,"span"),Ks(37,"HELP"),cs(),us(38,"ul"),us(39,"li"),us(40,"a",11),Ks(41,"Help Center"),cs(),cs(),us(42,"li"),us(43,"a",11),Ks(44,"Contact Us"),cs(),cs(),cs(),cs(),cs()),2&e){var n=xs();To(6),Is("href",n.urls.productsFamilyFinderMyDnaBundleUrl,Tr),To(3),Is("href",n.urls.productsFamilyFinderUrl,Tr),To(3),Is("href",n.urls.productsYDnaUrl,Tr),To(3),Is("href",n.urls.productsBigYUrl,Tr),To(3),Is("href",n.urls.productsMtDnaUrl,Tr),To(7),Is("href",n.urls.autosomalTransferUrl,Tr),To(4),Is("href",n.urls.groupProjectUrl,Tr),To(4),Is("href",n.urls.productsUrl,Tr),To(7),Is("href",n.urls.helpCenterUrl,Tr),To(3),Is("href",n.urls.contactUrl,Tr)}}function cS(e,t){1&e&&hs(0,"img",21),2&e&&ss("src",xs(2).model.profilePictureLocation,Tr)}function hS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"myOrigins"),us(3,"sup"),Ks(4,"\xae"),cs(),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.myOriginsUrl,Tr)}}function fS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"ancientOrigins"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.ancientOriginsUrl,Tr)}}function dS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Chromosome Browser"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.chromosomeBrowserUrl,Tr)}}function pS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Chromosome Painter"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.chromosomePaintingUrl,Tr)}}function vS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Download Raw Data"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.downloadRawDataUrl,Tr)}}function mS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Autosomal DNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",11),Ks(6,"Matches"),cs(),cs(),os(7,hS,5,1,"li",19),os(8,fS,3,1,"li",19),os(9,dS,3,1,"li",19),os(10,pS,3,1,"li",19),us(11,"li"),us(12,"a",11),Ks(13,"Matrix"),cs(),cs(),us(14,"li"),us(15,"a",11),Ks(16,"Advanced Matches"),cs(),cs(),os(17,vS,3,1,"li",19),cs(),cs()),2&e){var n=xs(2);To(5),Is("href",n.urls.familyFinderUrl,Tr),To(2),ss("ngIf",n.model.hasPopFinder||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.hasAncientOrigins||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.hasChromosomeBrowser||n.model.isFreeAutosomalTransfer),To(1),ss("ngIf",n.model.chromosomePaintingEnabled),To(2),Is("href",n.urls.matrixUrl,Tr),To(3),Is("href",n.urls.advancedMatchesUrl,Tr),To(2),ss("ngIf",!n.model.isFreeAutosomalTransfer)}}function yS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"mtDNA Journey"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.mtdnaJourneyUrl,Tr)}}function gS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"mtDNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",11),Ks(6,"Matches"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Mutations"),cs(),cs(),us(10,"li"),us(11,"a",11),Ks(12,"Migration Maps"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"Ancestral Origins"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"Haplogroup Origins"),cs(),cs(),us(19,"li"),us(20,"a",11),Ks(21,"Matches Maps"),cs(),cs(),os(22,yS,3,1,"li",19),cs(),cs()),2&e){var n=xs(2);To(5),Is("href",n.urls.mtdnaMatchesUrl,Tr),To(3),Is("href",n.urls.mtdnaMutationsUrl,Tr),To(3),Is("href",n.urls.mtdnaMigrationMapsUrl,Tr),To(3),Is("href",n.urls.mtdnaAncestralOriginsUrl,Tr),To(3),Is("href",n.urls.mtdnaHaplogroupOriginsUrl,Tr),To(3),Is("href",n.urls.matchesMapUrl,Tr),To(2),ss("ngIf",n.hasMtdnaFms)}}function _S(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Y-DNA"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",11),Ks(6,"Matches"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Haplotree & SNPs"),cs(),cs(),us(10,"li"),us(11,"a",22),Ks(12,"Discover\u2122 Haplogroup Reports"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"Migration Maps"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"Y-STR Results"),cs(),cs(),us(19,"li"),us(20,"a",11),Ks(21,"Ancestral Origins"),cs(),cs(),us(22,"li"),us(23,"a",11),Ks(24,"Haplogroup Origins"),cs(),cs(),us(25,"li"),us(26,"a",11),Ks(27,"SNP Map"),cs(),cs(),us(28,"li"),us(29,"a",11),Ks(30,"Matches Maps"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Is("href",n.urls.ydnaMatchesUrl,Tr),To(3),Is("href",n.urls.ydnaHaplotreeSnpsUrl,Tr),To(3),Is("href",n.urls.discoverUrl,Tr),To(3),Is("href",n.urls.ydnaMigrationMapsUrl,Tr),To(3),Is("href",n.urls.ydnaResultsUrl,Tr),To(3),Is("href",n.urls.ydnaAncestralOriginsUrl,Tr),To(3),Is("href",n.urls.ydnaHaplogroupOriginsUrl,Tr),To(3),Is("href",n.urls.ydnaSnpMapUrl,Tr),To(3),Is("href",n.urls.matchesMapUrl,Tr)}}function bS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"BIG Y"),cs(),us(3,"ul"),us(4,"li"),us(5,"a",11),Ks(6,"Matches"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Results"),cs(),cs(),us(10,"li"),us(11,"a",11),Ks(12,"Y-STR Results"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Is("href",n.urls.bigYMatchesUrl,Tr),To(3),Is("href",n.urls.bigYResultsUrl,Tr),To(3),Is("href",n.urls.bigYStrResultsUrl,Tr)}}function kS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Family Tree"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href",n.urls.familyTreeUrl,Tr)}}function wS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Other Autosomal Results"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.otherAutosomalResultsUrl,Tr)}}function CS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Factoids"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.factoidsUrl,Tr)}}function xS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Y-DNA Advanced"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.ydnaAdvancedMarkersUrl,Tr)}}function SS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"X-STR"),cs(),cs()),2&e){var n=xs(3);To(1),Is("href",n.urls.xStrUrl,Tr)}}function ES(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Other Results"),cs(),us(3,"ul"),os(4,wS,3,1,"li",19),os(5,CS,3,1,"li",19),os(6,xS,3,1,"li",19),os(7,SS,3,1,"li",19),cs(),cs()),2&e){var n=xs(2);To(4),ss("ngIf",n.model.hasOtherAutosomalResults),To(1),ss("ngIf",n.model.hasFactoids),To(1),ss("ngIf",n.model.hasAdvancedYSTR),To(1),ss("ngIf",n.model.hasXSTR)}}function AS(e,t){if(1&e&&(us(0,"ul",12),us(1,"li"),us(2,"div",13),us(3,"div",14),os(4,cS,1,1,"img",15),cs(),us(5,"div",16),us(6,"div",17),Ks(7),cs(),us(8,"div",18),Ks(9," Kit No. "),us(10,"div"),Ks(11),cs(),cs(),cs(),cs(),cs(),us(12,"li"),us(13,"a",11),Ks(14,"Home"),cs(),cs(),os(15,mS,18,8,"li",19),os(16,gS,23,7,"li",19),os(17,_S,31,9,"li",19),os(18,bS,13,3,"li",19),os(19,kS,3,1,"li",19),us(20,"li"),us(21,"a",20),Ks(22,"Group Projects"),cs(),us(23,"ul"),us(24,"li"),us(25,"a",11),Ks(26,"Join A Project"),cs(),cs(),us(27,"li"),us(28,"a",11),Ks(29,"Manage Group Projects"),cs(),cs(),us(30,"li"),us(31,"a",11),Ks(32,"Learn More"),cs(),cs(),cs(),cs(),os(33,ES,8,4,"li",19),cs()),2&e){var n=xs();To(4),ss("ngIf",n.model.profilePictureLocation),To(3),Zs(n.model.kitName),To(4),Zs(n.model.kitNum),To(2),Is("href",n.urls.dashboardUrl,Tr),To(2),ss("ngIf",n.model.hasFF),To(1),ss("ngIf",n.model.hasMtResults),To(1),ss("ngIf",n.model.hasYResults),To(1),ss("ngIf",n.model.hasBigY),To(1),ss("ngIf",!n.model.isLawEnforcement),To(6),Is("href",n.urls.joinProjectUrl,Tr),To(3),Is("href",n.urls.manageProjectsUrl,Tr),To(3),Is("href",n.urls.projectsHomeUrl,Tr),To(2),ss("ngIf",n.model.hasFactoids||n.model.hasOtherAutosomalResults||n.model.hasAdvancedYSTR||n.model.hasXSTR)}}function IS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Home"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href",n.urls.homeUrl,Tr)}}function TS(e,t){if(1&e&&(us(0,"li"),us(1,"a",11),Ks(2,"Home"),cs(),cs()),2&e){var n=xs(2);To(1),Is("href","//"+n.model.gapUrl,Tr)}}function OS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Member Reports"),cs(),us(3,"ul",23),us(4,"li"),us(5,"a",11),Ks(6,"Country of Origin Charts"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Maternal Ancestry"),cs(),cs(),us(10,"li"),us(11,"a",11),Ks(12,"Member Distribution Map"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"Member Information"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"Member Notes"),cs(),cs(),us(19,"li"),us(20,"a",11),Ks(21,"Order Summary"),cs(),cs(),us(22,"li"),us(23,"a",11),Ks(24,"Paternal Ancestry"),cs(),cs(),us(25,"li"),us(26,"a",11),Ks(27,"Pending Lab Results"),cs(),cs(),us(28,"li"),us(29,"a",11),Ks(30,"Pending Shipment To Lab"),cs(),cs(),us(31,"li"),us(32,"a",11),Ks(33,"Project Joins"),cs(),cs(),us(34,"li"),us(35,"a",11),Ks(36,"Project Statistics"),cs(),cs(),us(37,"li"),us(38,"a",11),Ks(39,"Received Lab Results"),cs(),cs(),us(40,"li"),us(41,"a",11),Ks(42,"Unreceived Kits"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Ts("href","//",n.model.gapUrl,"/country-of-origin-charts.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/maternal-ancestry.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/distribution-map_v2.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/member-information.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/member-notes.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/order-summary.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/paternal-ancestry.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/pending-lab-results.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/pending-shipment-to-lab.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/project-joins.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/project-statistics.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/received-lab-results.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/unreceived-kits.aspx",Tr)}}function PS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Genetic Reports"),cs(),us(3,"ul",23),us(4,"li"),us(5,"a",11),Ks(6,"Family Finder Group Matrix"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Family Finder Group Report"),cs(),cs(),us(10,"li"),us(11,"a",11),Ks(12,"Haplogroup Charts"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"mtDNA Results Classic"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"mtDNA Results"),cs(),cs(),us(19,"li"),us(20,"a",11),Ks(21,"Y-DNA Genetic Distance"),cs(),cs(),us(22,"li"),us(23,"a",11),Ks(24,"Y-DNA TiP"),cs(),cs(),us(25,"li"),us(26,"a",11),Ks(27,"Y-DNA Results Classic"),cs(),cs(),us(28,"li"),us(29,"a",11),Ks(30,"Y-DNA Results Colorized"),cs(),cs(),us(31,"li"),us(32,"a",11),Ks(33,"Y-DNA Results"),cs(),cs(),us(34,"li"),us(35,"a",11),Ks(36,"Y-DNA SNP"),cs(),cs(),us(37,"li"),us(38,"a",11),Ks(39,"Y-DNA Unique Haplotypes"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Ts("href","//",n.model.gapUrl,"/family-finder-matrix-omniexpress.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/family-finder-results-omniexpress.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/haplogroup-charts.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/mtdna-results-classic.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/mtdna-results.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/genetic-distance-report.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/gap-tip-report",Tr),To(3),Ts("href","//",n.model.gapUrl,"/ydna-results-classic.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/ydna-results-colorized.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/ydna-results.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/ydna-snp-report.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/unique-haplotypes.aspx",Tr)}}function DS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Project Admin"),cs(),us(3,"ul",23),us(4,"li"),us(5,"a",24),Ks(6,"Activity Feed"),cs(),cs(),us(7,"li"),us(8,"a",11),Ks(9,"Activity Log"),cs(),cs(),us(10,"li"),us(11,"a",11),Ks(12,"Bulk Email"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"Download Files"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"General Fund"),cs(),cs(),us(19,"li"),us(20,"a",11),Ks(21,"General Fund Charts"),cs(),cs(),us(22,"li"),us(23,"a",11),Ks(24,"Join Authorization"),cs(),cs(),us(25,"li"),us(26,"a",11),Ks(27,"Member Subgrouping"),cs(),cs(),us(28,"li"),us(29,"a",25),Ks(30,"New Member Order"),cs(),cs(),us(31,"li"),us(32,"a",11),Ks(33,"Price Comparison"),cs(),cs(),us(34,"li"),us(35,"a",11),Ks(36,"Project Administrators"),cs(),cs(),us(37,"li"),us(38,"a",11),Ks(39,"Project Profile"),cs(),cs(),us(40,"li"),us(41,"a",11),Ks(42,"Public Results Display Settings"),cs(),cs(),us(43,"li"),us(44,"a",11),Ks(45,"Public Website"),cs(),cs(),us(46,"li"),us(47,"a",26),Ks(48,"Unpaid Products"),cs(),cs(),us(49,"li"),us(50,"a",11),Ks(51,"Welcome Email"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(8),Ts("href","//",n.model.gapUrl,"/notes.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/bulk-email.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/download-files.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/general-fund.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/general-fund-chart.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/join-authorization.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/member-subgrouping",Tr),To(6),Ts("href","//",n.model.gapUrl,"/price-comparison.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/project-administrators.aspx",Tr),To(3),Os("href","//",n.model.gapUrl,"/project-profile",n.authQs,"",Tr),To(3),Ts("href","//",n.model.gapUrl,"/public-display-setting.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/public-website.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/member-unpaid-products.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/welcome-email.aspx",Tr)}}function RS(e,t){if(1&e&&(us(0,"li"),us(1,"a",20),Ks(2,"Resources"),cs(),us(3,"ul",23),us(4,"li"),us(5,"a",11),Ks(6,"Guidelines"),cs(),cs(),us(7,"li"),us(8,"a",27),Ks(9,"How to"),cs(),cs(),us(10,"li"),us(11,"a",28),Ks(12,"Interpretation"),cs(),cs(),us(13,"li"),us(14,"a",11),Ks(15,"Known Issues"),cs(),cs(),us(16,"li"),us(17,"a",11),Ks(18,"Papers & Presentations"),cs(),cs(),us(19,"li"),us(20,"a",29),Ks(21,"Quick Reference"),cs(),cs(),us(22,"li"),us(23,"a",30),Ks(24,"Forums"),cs(),cs(),us(25,"li"),us(26,"a",31),Ks(27,"FamilyTreeDNA Blog"),cs(),cs(),cs(),cs()),2&e){var n=xs(2);To(5),Ts("href","//",n.model.gapUrl,"/gap-guidelines.aspx",Tr),To(9),Ts("href","//",n.model.gapUrl,"/known-issues.aspx",Tr),To(3),Ts("href","//",n.model.gapUrl,"/papers-and-presentations.aspx",Tr)}}function MS(e,t){if(1&e&&(us(0,"ul",12),us(1,"li"),us(2,"div",13),us(3,"div",16),us(4,"div",17),Ks(5),cs(),us(6,"div",18),Ks(7," User: "),us(8,"div"),Ks(9),cs(),cs(),cs(),cs(),cs(),os(10,IS,3,1,"li",19),os(11,TS,3,1,"li",19),os(12,OS,43,13,"li",19),os(13,PS,40,12,"li",19),os(14,DS,52,15,"li",19),os(15,RS,28,3,"li",19),cs()),2&e){var n=xs();To(5),Zs(n.model.kitName),To(4),Zs(n.model.kitNum),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode),To(1),ss("ngIf",!n.isNonImpersonateGapMode)}}function LS(e,t){1&e&&(us(0,"a",32),Ks(1,"Add Ons & Upgrades"),cs()),2&e&&Is("href",xs().urls.upgradesUrl,Tr)}function FS(e,t){1&e&&(us(0,"a",32),Ks(1,"Sign In"),cs()),2&e&&Is("href",xs().urls.signInUrl,Tr)}function NS(e,t){if(1&e){var n=ps();us(0,"ul",33),us(1,"li"),us(2,"a",11),hs(3,"i",34),Ks(4,"Account Settings "),cs(),cs(),us(5,"li"),us(6,"a",11),hs(7,"i",35),Ks(8,"Order History "),cs(),cs(),us(9,"li"),us(10,"a",11),hs(11,"i",36),Ks(12,"Help Center "),cs(),cs(),us(13,"li"),us(14,"a",37),gs("click",function(){return rn(n),xs().signOut.emit()}),hs(15,"i",38),Ks(16,"Sign Out "),cs(),cs(),cs()}if(2&e){var i=xs();To(2),Is("href",i.urls.accountSettingsUrl,Tr),To(4),Is("href",i.urls.orderHistoryUrl,Tr),To(4),Is("href",i.urls.helpCenterUrl,Tr)}}function VS(e,t){if(1&e){var n=ps();us(0,"ul",33),us(1,"li"),us(2,"a",11),hs(3,"i",39),Ks(4,"Add Projects"),cs(),cs(),us(5,"li"),us(6,"a",11),hs(7,"i",40),Ks(8,"Change Password"),cs(),cs(),us(9,"li"),us(10,"a",11),hs(11,"i",41),Ks(12,"Contact Information"),cs(),cs(),us(13,"li"),us(14,"a",11),hs(15,"i",34),Ks(16,"My Settings"),cs(),cs(),us(17,"li"),us(18,"a",37),gs("click",function(){return rn(n),xs().signOut.emit()}),hs(19,"i",38),Ks(20,"Sign Out"),cs(),cs(),cs()}if(2&e){var i=xs();To(2),Ts("href","//",i.model.gapUrl,"/add-projects.aspx",Tr),To(4),Ts("href","//",i.model.gapUrl,"/change-password.aspx",Tr),To(4),Ts("href","//",i.model.gapUrl,"/contact-information.aspx",Tr),To(4),Ts("href","//",i.model.gapUrl,"/my-settings.aspx",Tr)}}var jS=function(){function e(){this.signOut=new Au}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-header-mobile-nav"]],inputs:{hasMyFtdna:"hasMyFtdna",isFullAccess:"isFullAccess",hasMtdnaFms:"hasMtdnaFms",isGapMode:"isGapMode",isGapPage:"isGapPage",isLoggedIn:"isLoggedIn",isNonImpersonateGapMode:"isNonImpersonateGapMode",model:"model",urls:"urls",authQs:"authQs"},outputs:{signOut:"signOut"},decls:15,vars:7,consts:[[1,"menu-toggle"],["type","checkbox"],[1,"close_menu"],[1,"overlay"],[1,"overlay-wrapper"],["class","expanded-nav",4,"ngIf"],["class","collapsible-menu","data-collapsible-menu","accordion",4,"ngIf"],[1,"divider"],["mat-flat-button","","color","primary","class","mat-button-md","style","width: 100%;",3,"href",4,"ngIf"],["class","user-account",4,"ngIf"],[1,"expanded-nav"],[3,"href"],["data-collapsible-menu","accordion",1,"collapsible-menu"],[1,"profile-user"],[1,"avatar"],["alt","",3,"src",4,"ngIf"],[1,"info"],[1,"name"],[1,"kit-number"],[4,"ngIf"],[1,"collapsed"],["alt","",3,"src"],["target","_blank",3,"href"],[1,"condensed"],["href","https://www.familytreedna.com/groups/test"],["href","//www.familytreedna.com/?Group=testb#/shoppingCart","target","_blank"],["id","Header_ProjectAdministrationList_A1",3,"href"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/gap-howto-user-guide/"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/results-interpretation/"],["target","_blank","href","https://www.familytreedna.com/learn/group-administration/reference/"],["target","_blank","href","https://forums.familytreedna.com/"],["target","_blank","href","https://blog.familytreedna.com/"],["mat-flat-button","","color","primary",1,"mat-button-md",2,"width","100%",3,"href"],[1,"user-account"],[1,"mdi","mdi-settings-outline"],[1,"mdi","mdi-checkbox-multiple-marked-outline"],[1,"mdi","mdi-help-circle-outline"],[3,"click"],[1,"mdi","mdi-logout-variant"],[1,"mdi","mdi-plus-circle-outline"],[1,"mdi","mdi-lock-open-outline"],[1,"mdi","mdi-account-outline"]],template:function(e,t){1&e&&(us(0,"div",0),hs(1,"input",1),hs(2,"span",2),hs(3,"span",2),hs(4,"span",2),us(5,"div",3),us(6,"div",4),os(7,uS,45,10,"ul",5),os(8,AS,34,13,"ul",6),os(9,MS,16,8,"ul",6),hs(10,"div",7),os(11,LS,2,1,"a",8),os(12,FS,2,1,"a",8),os(13,NS,17,3,"ul",9),os(14,VS,21,4,"ul",9),cs(),cs(),cs()),2&e&&(To(7),ss("ngIf",!t.isLoggedIn||t.isLoggedIn&&!t.hasMyFtdna&&!t.isGapPage&&!t.isNonImpersonateGapMode),To(1),ss("ngIf",t.hasMyFtdna),To(1),ss("ngIf",t.isGapMode),To(2),ss("ngIf",t.isLoggedIn&&t.isFullAccess&&!t.isNonImpersonateGapMode),To(1),ss("ngIf",!t.isLoggedIn),To(1),ss("ngIf",t.isLoggedIn&&!t.isGapMode),To(1),ss("ngIf",t.isGapMode))},directives:[dh,Bw],encapsulation:2}),e}();function US(e,t){if(1&e&&(us(0,"mat-option",4),Ks(1),cs()),2&e){var n=t.$implicit;Is("value",n.shortName),To(1),Zs(n.groupName)}}var BS=function(){function e(){this.projectChange=new Au}return e.prototype.changeProject=function(e){this.projectChange.emit(e.value)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ht({type:e,selectors:[["app-gap-project"]],inputs:{projects:"projects",selectedProject:"selectedProject"},outputs:{projectChange:"projectChange"},decls:6,vars:2,consts:[[1,"gap-project"],["appearance","fill","color","primary",1,"project-dropdown"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(us(0,"div",0),us(1,"mat-form-field",1),us(2,"mat-label"),Ks(3,"Project"),cs(),us(4,"mat-select",2),gs("valueChange",function(e){return t.selectedProject=e})("selectionChange",function(e){return t.changeProject(e)}),os(5,US,2,2,"mat-option",3),cs(),cs(),cs()),2&e&&(To(4),ss("value",t.selectedProject),To(1),ss("ngForOf",t.projects))},directives:[Db,xb,ix,hh,eb],styles:[".gap-project[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding:20px 15px 0;box-sizing:border-box}.gap-project[_ngcontent-%COMP%]   .project-dropdown[_ngcontent-%COMP%]{width:200px}"]}),e}();function HS(e,t){if(1&e){var n=ps();us(0,"app-gap-project",9),gs("projectChange",function(e){return rn(n),xs().onChangeProject(e)}),cs()}if(2&e){var i=xs();ss("projects",i.gapProjects)("selectedProject",i.model.bcgGroup)}}var zS=function(){function e(e,t){this.headerService=e,this.impersonate=t,this.model={},this.urls={},this.gapProjects=[],this.showProjectsList=!1,this.initGlobalEventListener(),this.initGapGlobalEventListener()}return e.prototype.ngOnInit=function(){var e=this;this.authQs=this.impersonate.authQs,this.initHeaderData(),this.isGapMode&&!this.isGapPage&&0===this.authQs.length&&(this.isNonImpersonateGapMode=!0),this.showProjectsList=!(window.location.href.indexOf(".aspx")>-1)&&this.isGapMode&&this.isGapPage,this.showProjectsList&&this.headerService.getGapProjects().subscribe(function(t){e.gapProjects=t})},e.prototype.initGlobalEventListener=function(){var e=this;"function"==typeof window.Event?window.updateHeaderEvent=new Event("update-header"):(window.updateHeaderEvent=document.createEvent("Event"),window.updateHeaderEvent.initEvent("update-header",!0,!0)),window.addEventListener("update-header",function(t){e.initHeaderData()})},e.prototype.initGapGlobalEventListener=function(){"function"==typeof window.Event?window.updateGapHeaderEvent=new Event("update-gap-header"):(window.updateGapHeaderEvent=document.createEvent("Event"),window.updateGapHeaderEvent.initEvent("update-gap-header",!0,!0))},e.prototype.initHeaderData=function(){var e=this;this.headerService.init(this.authQs).subscribe(function(t){e.model=t;var n=0===e.model.homeUrl.indexOf("//")?e.model.homeUrl:"//"+e.model.homeUrl;e.urls.homeUrl=e.getImpersonateUrlSafely(n),e.urls.accountSettingsUrl=e.getImpersonateUrlSafely("/my/account-information"),e.urls.activityFeedUrl=e.getImpersonateUrlSafely(e.model.wwwUrl+"/groups/"+e.model.groupPageUrl),e.urls.advancedMatchesUrl=e.getImpersonateUrlSafely("/my/advanced-matches"),e.urls.ancientOriginsUrl=e.getImpersonateUrlSafely("/my/ancient-origins"),e.urls.autosomalTransferUrl=e.getImpersonateUrlSafely("/autosomal-transfer"),e.urls.bigYBlockTreeUrl=e.getImpersonateUrlSafely("/my/bigy-blocktree"),e.urls.bigYMatchesUrl=e.getImpersonateUrlSafely("/my/big-y#matches"),e.urls.bigYResultsUrl=e.getImpersonateUrlSafely("/my/big-y"),e.urls.bigYStrResultsUrl=e.getImpersonateUrlSafely("/my/y-dna-dys"),e.urls.cartUrl=e.getImpersonateUrlSafely(e.model.cartUrl),e.urls.chromosomeBrowserUrl=e.getImpersonateUrlSafely("/my/family-finder/chromosome-browser"),e.urls.contactUrl=e.getImpersonateUrlSafely("/contact"),e.urls.dashboardUrl=e.getImpersonateUrlSafely("/my"),e.urls.discoverUrl=e.getImpersonateUrlSafely(e.model.discoverUrl),e.urls.downloadRawDataUrl=e.getImpersonateUrlSafely("/my/family-finder/downloads"),e.urls.factoidsUrl=e.getImpersonateUrlSafely("/my/factoids"),e.urls.familyFinderUrl=e.getImpersonateUrlSafely("/my/familyfinder/matches"),e.urls.familyTreeUrl=e.getImpersonateUrlSafely(e.model.familyTreeUrl),e.urls.gapAddProjectsUrl=e.getImpersonateUrlSafely(e.model.gapUrl+"/add-projects.aspx"),e.urls.gapChangePasswordUrl=e.getImpersonateUrlSafely(e.model.gapUrl+"/change-password.aspx"),e.urls.gapContactInformationUrl=e.getImpersonateUrlSafely(e.model.gapUrl+"/contact-information.aspx"),e.urls.gapMySettingsUrl=e.getImpersonateUrlSafely(e.model.gapUrl+"/my-settings.aspx"),e.urls.groupProjectUrl=e.getImpersonateUrlSafely("/group-project"),e.urls.joinProjectUrl=e.getImpersonateUrlSafely("/my/group-join.aspx"),e.urls.helpCenterUrl="https://help.familytreedna.com/hc/en-us",e.urls.otherAutosomalResultsUrl=e.getImpersonateUrlSafely("/my/autosomal-results"),e.urls.manageProjectsUrl=e.getImpersonateUrlSafely("/my/project-preferences"),e.urls.matrixUrl=e.getImpersonateUrlSafely("/my/family-finder/matrix"),e.urls.mtdnaAncestralOriginsUrl=e.getImpersonateUrlSafely("/my/mtdna-ancestral-origins"),e.urls.mtdnaHaplogroupOriginsUrl=e.getImpersonateUrlSafely("/my/mtdna-haplogroup-origins"),e.urls.mtdnaJourneyUrl=e.getImpersonateUrlSafely("/my/mtdna-journey"),e.urls.mtdnaMatchesMapUrl=e.getImpersonateUrlSafely("/my/matches-map?dt=hvr1"),e.urls.mtdnaMatchesUrl=e.getImpersonateUrlSafely("/my/mtdna-matches"),e.urls.mtdnaMigrationMapsUrl=e.getImpersonateUrlSafely("/my/mtdna-migration-map"),e.urls.mtdnaMutationsUrl=e.getImpersonateUrlSafely("/my/mtdna-results"),e.urls.myOriginsUrl=e.getImpersonateUrlSafely("/my/my-origins"),e.urls.newMemberOrderUrl=e.getImpersonateUrlSafely(e.model.wwwUrl+"/cart?Group="+e.model.bcgGroup),e.urls.orderHistoryUrl=e.getImpersonateUrlSafely("/my/order-history"),e.urls.productsUrl=e.getImpersonateUrlSafely("/products"),e.urls.singleTestsProductsUrl=e.getImpersonateUrlSafely("/products/single-tests"),e.urls.bundlesProductsUrl=e.getImpersonateUrlSafely("/products/bundles"),e.urls.giftCardsUrl=e.getImpersonateUrlSafely("/products/gift-cards"),e.urls.productsFamilyFinderUrl=e.getImpersonateUrlSafely("/products/family-finder"),e.urls.productsFamilyFinderMyDnaBundleUrl=e.getImpersonateUrlSafely("/products/familyfinder-mydnawellness/"),e.urls.productsMtDnaUrl=e.getImpersonateUrlSafely("/products/mt-dna"),e.urls.productsYDnaUrl=e.getImpersonateUrlSafely("/products/y-dna"),e.urls.productsBigYUrl=e.getImpersonateUrlSafely("/products/big-y"),e.urls.projectsHomeUrl="https://help.familytreedna.com/hc/en-us/articles/4503173806351-Introduction-to-Group-Projects-",e.urls.signInUrl=e.getImpersonateUrlSafely("/sign-in"),e.urls.upgradesUrl=e.getImpersonateUrlSafely("/my/upgrades"),e.urls.wwwUrl=e.getImpersonateUrlSafely(e.model.wwwUrl),e.urls.xStrUrl=e.getImpersonateUrlSafely("/my/x-str-results"),e.urls.ydnaAdvancedMarkersUrl=e.getImpersonateUrlSafely("/my/y-dna-advanced-markers"),e.urls.ydnaAncestralOriginsUrl=e.getImpersonateUrlSafely("/my/y-dna-ancestral-origins"),e.urls.ydnaDownloadSnpsUrl=e.getImpersonateUrlSafely("/my/y-dna-haplotree/download-snps"),e.urls.ydnaHaplogroupOriginsUrl=e.getImpersonateUrlSafely("/my/y-dna-haplo-matches"),e.urls.ydnaHaplotreeSnpsUrl=e.getImpersonateUrlSafely("/my/y-dna-haplotree"),e.urls.ydnaMatchesMapUrl=e.getImpersonateUrlSafely("/my/matches-map?dt=y12"),e.urls.ydnaMatchesUrl=e.getImpersonateUrlSafely("/my/ydna/matches"),e.urls.ydnaMigrationMapsUrl=e.getImpersonateUrlSafely("/my/y-dna-migration-map"),e.urls.ydnaSnpMapUrl=e.getImpersonateUrlSafely("/my/snp-map"),e.urls.ydnaResultsUrl=e.getImpersonateUrlSafely("/my/y-dna-dys"),e.urls.chromosomePaintingUrl=e.getImpersonateUrlSafely("/my/chromosome-painting"),e.urls.ydnaGroupTimeTreeLink=e.model.ydnaGroupTimeTreeLink,e.validatePermisions(),e.urls.logoUrl=e.getLogoUrl()})},e.prototype.onChangeProject=function(e){var t=this;this.headerService.setGapProject(e).subscribe(function(e){window.dispatchEvent(window.updateGapHeaderEvent),t.initHeaderData()})},e.prototype.signOut=function(){var e=document.getElementById("logoutForm");e&&e.submit()},e.prototype.getLogoUrl=function(){var e=-1!==window.location.href.indexOf("familytreedna.com/my/")&&this.isLoggedIn?"/my/":"/";return this.isNonImpersonateGapMode&&(e="//"+this.model.gapUrl),this.impersonate.addAuthQsToUrl(e)},e.prototype.validatePermisions=function(){this.model.isFullAccess||(this.urls.upgradesUrl="",this.urls.cartUrl="")},e.prototype.getImpersonateUrlSafely=function(e){return null!==e?this.impersonate.addAuthQsToUrl(e):""},e.\u0275fac=function(t){return new(t||e)(as(Kf),as(qf))},e.\u0275cmp=ht({type:e,selectors:[["app-header-root-container"]],inputs:{hasMyFtdna:"hasMyFtdna",isFullAccess:"isFullAccess",isLoggedIn:"isLoggedIn",isGapMode:"isGapMode",isGapPage:"isGapPage",isNonImpersonateGapMode:"isNonImpersonateGapMode"},decls:11,vars:28,consts:[[1,"navbar"],[1,"nav-brand",3,"href"],["src","/common/img/header-footer/assets/ftdna-brand.svg","alt","Family Tree DNA"],["fxLayout","row","fxLayoutAlign","space-between center",1,"header-full-container"],[3,"authQs","hasMyFtdna","isGapMode","hasMtdnaFms","isGapPage","isLoggedIn","model","isNonImpersonateGapMode","urls"],["fxLayout","row","fxLayoutAlign","end center",1,"header-right"],[3,"projects","selectedProject","projectChange",4,"ngIf"],[3,"isFullAccess","isGapMode","isLoggedIn","isGapPage","model","urls","isNonImpersonateGapMode","signOut"],[3,"authQs","isFullAccess","hasMyFtdna","isGapMode","isGapPage","isLoggedIn","hasMtdnaFms","model","urls","isNonImpersonateGapMode","signOut"],[3,"projects","selectedProject","projectChange"]],template:function(e,t){1&e&&(us(0,"header",0),us(1,"nav"),us(2,"a",1),hs(3,"img",2),cs(),us(4,"div",3),us(5,"div"),hs(6,"app-header-primary-nav",4),cs(),us(7,"div",5),os(8,HS,1,2,"app-gap-project",6),us(9,"app-header-secondary-nav",7),gs("signOut",function(){return t.signOut()}),cs(),us(10,"app-header-mobile-nav",8),gs("signOut",function(){return t.signOut()}),cs(),cs(),cs(),cs(),cs()),2&e&&(To(2),Is("href",t.urls.logoUrl,Tr),To(4),ss("authQs",t.authQs)("hasMyFtdna",t.hasMyFtdna)("isGapMode",t.isGapMode)("hasMtdnaFms",t.model.hasMtdnaFms)("isGapPage",t.isGapPage)("isLoggedIn",t.isLoggedIn)("model",t.model)("isNonImpersonateGapMode",t.isNonImpersonateGapMode)("urls",t.urls),To(2),ss("ngIf",t.showProjectsList),To(1),ss("isFullAccess",t.isFullAccess)("isGapMode",t.isGapMode)("isLoggedIn",t.isLoggedIn)("isGapPage",t.isGapPage)("model",t.model)("urls",t.urls)("isNonImpersonateGapMode",t.isNonImpersonateGapMode),To(1),ss("authQs",t.authQs)("isFullAccess",t.isFullAccess)("hasMyFtdna",t.hasMyFtdna)("isGapMode",t.isGapMode)("isGapPage",t.isGapPage)("isLoggedIn",t.isLoggedIn)("hasMtdnaFms",t.model.hasMtdnaFms)("model",t.model)("urls",t.urls)("isNonImpersonateGapMode",t.isNonImpersonateGapMode))},directives:[xp,Pp,hv,dh,lS,jS,BS],styles:[".header-full-container[_ngcontent-%COMP%]{width:100%}"]}),e}(),GS=function(){function e(e){this.elRef=e,this.hasMyFtdna=!1,this.isFullAccess=!1,this.isLoggedIn=!1,this.isGapMode=!1,this.isGapPage=!1,this.hasMyFtdna="true"===this.elRef.nativeElement.getAttribute("hasmyftdna"),this.isFullAccess="true"===this.elRef.nativeElement.getAttribute("isfullaccess"),this.isLoggedIn="true"===this.elRef.nativeElement.getAttribute("isloggedin"),this.isGapMode="true"===this.elRef.nativeElement.getAttribute("isgapmode");var t=window.location.hostname.split(".");this.isGapPage=-1!==t[0].indexOf("gap")}return e.\u0275fac=function(t){return new(t||e)(as(xl))},e.\u0275cmp=ht({type:e,selectors:[["header-root"]],decls:1,vars:5,consts:[[3,"hasMyFtdna","isFullAccess","isLoggedIn","isGapMode","isGapPage"]],template:function(e,t){1&e&&hs(0,"app-header-root-container",0),2&e&&ss("hasMyFtdna",t.hasMyFtdna)("isFullAccess",t.isFullAccess)("isLoggedIn",t.isLoggedIn)("isGapMode",t.isGapMode)("isGapPage",t.isGapPage)},directives:[zS],encapsulation:2}),e}(),QS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),WS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[om,f_],f_]}),e}();"".concat(u_.COMPLEX," ").concat(l_.ACCELERATION_CURVE),"".concat(u_.EXITING," ").concat(l_.DECELERATION_CURVE);var qS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[Bk,f_,rk],f_]}),e}(),YS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[f_,z_],f_]}),e}(),KS=new bi("mat-chips-default-options"),ZS={separatorKeyCodes:[13]},XS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[P_,{provide:KS,useValue:ZS}],imports:[[f_]]}),e}(),$S=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),JS=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_,$S,rk]]}),e}(),eE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_],f_]}),e}(),tE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[z_,f_],f_]}),e}(),nE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({}),e}(),iE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[nE,z_,f_,Ov],nE,f_]}),e}(),rE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,f_],f_]}),e}(),oE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[pp]]}),e}(),aE=function(){var e=s(function e(){o(this,e),this.changes=new z,this.optionalLabel="Optional"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),sE={provide:aE,deps:[[new Qi,new Wi,aE]],useFactory:function(e){return e||new aE}},lE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[sE,P_],imports:[[f_,xh,rk,Hw,oE,RC,z_],f_]}),e}(),uE=function(){var e=s(function e(){o(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[QS,f_],f_]}),e}(),cE=[Sx,QS,Mw,WS,qS,Hw,YS,zw,Qw,XS,lE,fC,sC,dC,JS,pC,RC,uC,MC,NC,O_,cx,eE,bx,tE,z_,ox,kx,rE,iE,Tx,xx,Ex,Ax,Ix,sx,uE],hE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[cE,Sx,QS,Mw,WS,qS,Hw,YS,zw,Qw,XS,lE,fC,sC,dC,JS,pC,RC,uC,MC,NC,O_,cx,eE,bx,tE,z_,ox,kx,rE,iE,Tx,xx,Ex,Ax,Ix,sx,uE]}),e}(),fE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[],imports:[[xh,hE]]}),e}(),dE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh]]}),e}();function pE(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var vE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:pE(Wx),imports:[[xh,Qf]]}),e}(),mE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[fv],imports:[[xh,Qf,Ux]]}),e}(),yE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({imports:[[xh,vE,mE,hE]]}),e}(),gE=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=Re({providers:[Zf],imports:[[xh,Ev,Qf,fE,dE,yE,hE,r_,Yf,Ux,Yf]]}),e}(),_E=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e,bootstrap:[GS]}),e.\u0275inj=Re({providers:[],imports:[[sf,xh,gE]]}),e}();(function(){if(Sc)throw new Error("Cannot enable prod mode after platform setup.");xc=!1})(),of().bootstrapModule(_E).catch(function(e){return console.log(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]]]);
