(self.webpackChunkheader=self.webpackChunkheader||[]).push([[179],{8255:function(js){function Lr(zs){return Promise.resolve().then(function(){var Y=new Error("Cannot find module '"+zs+"'");throw Y.code="MODULE_NOT_FOUND",Y})}Lr.keys=function(){return[]},Lr.resolve=Lr,Lr.id=8255,js.exports=Lr},2338:function(js,Lr,zs){"use strict";function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function J(e,i,t){return J="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,a,o){var s=function(e,i){for(;!Object.prototype.hasOwnProperty.call(e,i)&&null!==(e=Y(e)););return e}(r,a);if(s){var l=Object.getOwnPropertyDescriptor(s,a);return l.get?l.get.call(o):l.value}},J(e,i,t||e)}function Gy(e,i){for(var t=0;t<i.length;t++){var n=i[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,i,t){return i&&Gy(e.prototype,i),t&&Gy(e,t),e}function p(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Ws(e,i){return(Ws=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(e,i)}function k(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),i&&Ws(e,i)}function Uy(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $u(e){return($u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zI(e,i){return!i||"object"!==$u(i)&&"function"!=typeof i?et(e):i}function w(e){var i=Uy();return function(){var r,n=Y(e);if(i){var a=Y(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return zI(this,r)}}function Fh(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t<i;t++)n[t]=e[t];return n}function Xu(e,i){if(e){if("string"==typeof e)return Fh(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fh(e,i)}}function ct(e,i){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Xu(e))||i&&e&&"number"==typeof e.length){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},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 s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Le(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],r=!0,a=!1;try{for(t=t.call(e);!(r=(o=t.next()).done)&&(n.push(o.value),!i||n.length!==i);r=!0);}catch(l){a=!0,s=l}finally{try{!r&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,i)||Xu(e,i)||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 ke(e){return function(e){if(Array.isArray(e))return Fh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xu(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 gi(e,i,t){return(gi=Uy()?Reflect.construct:function(r,a,o){var s=[null];s.push.apply(s,a);var u=new(Function.bind.apply(r,s));return o&&Ws(u,o.prototype),u}).apply(null,arguments)}function Lh(e){var i="function"==typeof Map?new Map:void 0;return Lh=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(n))return i.get(n);i.set(n,r)}function r(){return gi(n,arguments,Y(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ws(r,n)},Lh(e)}var _o=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Bh(e){return null!==e&&"object"==typeof e}function Ys(e){return"function"==typeof e}var Ju=function(){function e(i){return Error.call(this),this.message=i?"".concat(i.length," errors occurred during unsubscription:\n").concat(i.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=i,this}return e.prototype=Object.create(Error.prototype),e}(),ye=function(){var i,e=function(){function i(t){p(this,i),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return h(i,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var r=this._parentOrParents,a=this._ctorUnsubscribe,o=this._unsubscribe,s=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof i)r.remove(this);else if(null!==r)for(var l=0;l<r.length;++l)r[l].remove(this);if(Ys(o)){a&&(this._unsubscribe=void 0);try{o.call(this)}catch(_){n=_ instanceof Ju?Yy(_.errors):[_]}}if(_o(s))for(var c=-1,d=s.length;++c<d;){var f=s[c];if(Bh(f))try{f.unsubscribe()}catch(_){n=n||[],_ instanceof Ju?n=n.concat(Yy(_.errors)):n.push(_)}}if(n)throw new Ju(n)}}},{key:"add",value:function(n){var r=n;if(!n)return i.EMPTY;switch(typeof n){case"function":r=new i(n);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof i)){var a=r;(r=new i)._subscriptions=[a]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var s=r._parentOrParents;if(null===s)r._parentOrParents=this;else if(s instanceof i){if(s===this)return r;r._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return r;s.push(this)}var l=this._subscriptions;return null===l?this._subscriptions=[r]:l.push(r),r}},{key:"remove",value:function(n){var r=this._subscriptions;if(r){var a=r.indexOf(n);-1!==a&&r.splice(a,1)}}}]),i}();return e.EMPTY=((i=new e).closed=!0,i),e}();function Yy(e){return e.reduce(function(i,t){return i.concat(t instanceof Ju?t.errors:t)},[])}var Vh=!1,mi={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var i=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+i.stack)}else Vh&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Vh=e},get useDeprecatedSynchronousErrorHandling(){return Vh}};function yo(e){setTimeout(function(){throw e},0)}var Zu={closed:!0,next:function(i){},error:function(i){if(mi.useDeprecatedSynchronousErrorHandling)throw i;yo(i)},complete:function(){}},ec=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Ct=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;switch(p(this,t),(o=i.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=Zu;break;case 1:if(!n){o.destination=Zu;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(et(o))):(o.syncErrorThrowable=!0,o.destination=new qy(et(o),n));break}default:o.syncErrorThrowable=!0,o.destination=new qy(et(o),n,r,a)}return o}return h(t,[{key:ec,value:function(){return this}},{key:"next",value:function(r){this.isStopped||this._next(r)}},{key:"error",value:function(r){this.isStopped||(this.isStopped=!0,this._error(r))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,J(Y(t.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(r){this.destination.next(r)}},{key:"_error",value:function(r){this.destination.error(r),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this}}],[{key:"create",value:function(r,a,o){var s=new t(r,a,o);return s.syncErrorThrowable=!1,s}}]),t}(ye),qy=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;p(this,t),(s=i.call(this))._parentSubscriber=n;var l,u=et(s);return Ys(r)?l=r:r&&(l=r.next,a=r.error,o=r.complete,r!==Zu&&(Ys((u=Object.create(r)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(et(s)))),s._context=u,s._next=l,s._error=a,s._complete=o,s}return h(t,[{key:"next",value:function(r){if(!this.isStopped&&this._next){var a=this._parentSubscriber;mi.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable?this.__tryOrSetError(a,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}}},{key:"error",value:function(r){if(!this.isStopped){var a=this._parentSubscriber,o=mi.useDeprecatedSynchronousErrorHandling;if(this._error)o&&a.syncErrorThrowable?(this.__tryOrSetError(a,this._error,r),this.unsubscribe()):(this.__tryOrUnsub(this._error,r),this.unsubscribe());else if(a.syncErrorThrowable)o?(a.syncErrorValue=r,a.syncErrorThrown=!0):yo(r),this.unsubscribe();else{if(this.unsubscribe(),o)throw r;yo(r)}}}},{key:"complete",value:function(){var r=this;if(!this.isStopped){var a=this._parentSubscriber;if(this._complete){var o=function(){return r._complete.call(r._context)};mi.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable?(this.__tryOrSetError(a,o),this.unsubscribe()):(this.__tryOrUnsub(o),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(r,a){try{r.call(this._context,a)}catch(o){if(this.unsubscribe(),mi.useDeprecatedSynchronousErrorHandling)throw o;yo(o)}}},{key:"__tryOrSetError",value:function(r,a,o){if(!mi.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{a.call(this._context,o)}catch(s){return mi.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=s,r.syncErrorThrown=!0,!0):(yo(s),!0)}return!1}},{key:"_unsubscribe",value:function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()}}]),t}(Ct),qs=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Qy(e){return e}function Ky(e){return 0===e.length?Qy:1===e.length?e[0]:function(t){return e.reduce(function(n,r){return r(n)},t)}}var Xe=function(){var e=function(){function i(t){p(this,i),this._isScalar=!1,t&&(this._subscribe=t)}return h(i,[{key:"lift",value:function(n){var r=new i;return r.source=this,r.operator=n,r}},{key:"subscribe",value:function(n,r,a){var o=this.operator,s=function(e,i,t){if(e){if(e instanceof Ct)return e;if(e[ec])return e[ec]()}return e||i||t?new Ct(e,i,t):new Ct(Zu)}(n,r,a);if(s.add(o?o.call(s,this.source):this.source||mi.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),mi.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(r){mi.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(e){for(;e;){var n=e.destination;if(e.closed||e.isStopped)return!1;e=n&&n instanceof Ct?n:null}return!0}(n)?n.error(r):console.warn(r)}}},{key:"forEach",value:function(n,r){var a=this;return new(r=$y(r))(function(o,s){var l;l=a.subscribe(function(u){try{n(u)}catch(c){s(c),l&&l.unsubscribe()}},s,o)})}},{key:"_subscribe",value:function(n){var r=this.source;return r&&r.subscribe(n)}},{key:qs,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return 0===r.length?this:Ky(r)(this)}},{key:"toPromise",value:function(n){var r=this;return new(n=$y(n))(function(a,o){var s;r.subscribe(function(l){return s=l},function(l){return o(l)},function(){return a(s)})})}}]),i}();return e.create=function(i){return new e(i)},e}();function $y(e){if(e||(e=mi.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var ba=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),Xy=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this)).subject=n,a.subscriber=r,a.closed=!1,a}return h(t,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var r=this.subject,a=r.observers;if(this.subject=null,a&&0!==a.length&&!r.isStopped&&!r.closed){var o=a.indexOf(this.subscriber);-1!==o&&a.splice(o,1)}}}}]),t}(ye),Jy=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this,n)).destination=n,r}return h(t)}(Ct),$=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.call(this)).observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return h(n,[{key:ec,value:function(){return new Jy(this)}},{key:"lift",value:function(a){var o=new Zy(this,this);return o.operator=a,o}},{key:"next",value:function(a){if(this.closed)throw new ba;if(!this.isStopped)for(var o=this.observers,s=o.length,l=o.slice(),u=0;u<s;u++)l[u].next(a)}},{key:"error",value:function(a){if(this.closed)throw new ba;this.hasError=!0,this.thrownError=a,this.isStopped=!0;for(var o=this.observers,s=o.length,l=o.slice(),u=0;u<s;u++)l[u].error(a);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new ba;this.isStopped=!0;for(var a=this.observers,o=a.length,s=a.slice(),l=0;l<o;l++)s[l].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(a){if(this.closed)throw new ba;return J(Y(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){if(this.closed)throw new ba;return this.hasError?(a.error(this.thrownError),ye.EMPTY):this.isStopped?(a.complete(),ye.EMPTY):(this.observers.push(a),new Xy(this,a))}},{key:"asObservable",value:function(){var a=new Xe;return a.source=this,a}}]),n}(Xe);return e.create=function(i,t){return new Zy(i,t)},e}(),Zy=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this)).destination=n,a.source=r,a}return h(t,[{key:"next",value:function(r){var a=this.destination;a&&a.next&&a.next(r)}},{key:"error",value:function(r){var a=this.destination;a&&a.error&&this.destination.error(r)}},{key:"complete",value:function(){var r=this.destination;r&&r.complete&&this.destination.complete()}},{key:"_subscribe",value:function(r){return this.source?this.source.subscribe(r):ye.EMPTY}}]),t}($);function bo(e){return e&&"function"==typeof e.schedule}function dt(e,i){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ZI(e,i))}}var ZI=function(){function e(i,t){p(this,e),this.project=i,this.thisArg=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new eR(t,this.project,this.thisArg))}}]),e}(),eR=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).project=r,o.count=0,o.thisArg=a||et(o),o}return h(t,[{key:"_next",value:function(r){var a;try{a=this.project.call(this.thisArg,r,this.count++)}catch(o){return void this.destination.error(o)}this.destination.next(a)}}]),t}(Ct),eb=function(i){return function(t){for(var n=0,r=i.length;n<r&&!t.closed;n++)t.next(i[n]);t.complete()}};function nR(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var tc=nR(),tb=function(i){return i&&"number"==typeof i.length&&"function"!=typeof i};function nb(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Hh=function(i){if(i&&"function"==typeof i[qs])return function(i){return function(t){var n=i[qs]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(i);if(tb(i))return eb(i);if(nb(i))return function(i){return function(t){return i.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,yo),t}}(i);if(i&&"function"==typeof i[tc])return function(i){return function(t){for(var n=i[tc]();;){var r=void 0;try{r=n.next()}catch(a){return t.error(a),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(i);var t=Bh(i)?"an invalid object":"'".concat(i,"'"),n="You provided ".concat(t," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)};function Gh(e,i){return new Xe(function(t){var n=new ye,r=0;return n.add(i.schedule(function(){r!==e.length?(t.next(e[r++]),t.closed||n.add(this.schedule())):t.complete()})),n})}function Co(e,i){return i?function(e,i){if(null!=e){if(function(e){return e&&"function"==typeof e[qs]}(e))return function(e,i){return new Xe(function(t){var n=new ye;return n.add(i.schedule(function(){var r=e[qs]();n.add(r.subscribe({next:function(o){n.add(i.schedule(function(){return t.next(o)}))},error:function(o){n.add(i.schedule(function(){return t.error(o)}))},complete:function(){n.add(i.schedule(function(){return t.complete()}))}}))})),n})}(e,i);if(nb(e))return function(e,i){return new Xe(function(t){var n=new ye;return n.add(i.schedule(function(){return e.then(function(r){n.add(i.schedule(function(){t.next(r),n.add(i.schedule(function(){return t.complete()}))}))},function(r){n.add(i.schedule(function(){return t.error(r)}))})})),n})}(e,i);if(tb(e))return Gh(e,i);if(function(e){return e&&"function"==typeof e[tc]}(e)||"string"==typeof e)return function(e,i){if(!e)throw new Error("Iterable cannot be null");return new Xe(function(t){var r,n=new ye;return n.add(function(){r&&"function"==typeof r.return&&r.return()}),n.add(i.schedule(function(){r=e[tc](),n.add(i.schedule(function(){if(!t.closed){var a,o;try{var s=r.next();a=s.value,o=s.done}catch(l){return void t.error(l)}o?t.complete():(t.next(a),this.schedule())}}))})),n})}(e,i)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,i):e instanceof Xe?e:new Xe(Hh(e))}var Qs=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this)).parent=n,r}return h(t,[{key:"_next",value:function(r){this.parent.notifyNext(r)}},{key:"_error",value:function(r){this.parent.notifyError(r),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),t}(Ct),Ks=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"notifyNext",value:function(r){this.destination.next(r)}},{key:"notifyError",value:function(r){this.destination.error(r)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),t}(Ct);function $s(e,i){if(!i.closed){if(e instanceof Xe)return e.subscribe(i);var t;try{t=Hh(e)(i)}catch(n){i.error(n)}return t}}function Uh(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof i?function(n){return n.pipe(Uh(function(r,a){return Co(e(r,a)).pipe(dt(function(o,s){return i(r,o,a,s)}))},t))}:("number"==typeof i&&(t=i),function(n){return n.lift(new dR(e,t))})}var dR=function(){function e(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,e),this.project=i,this.concurrent=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new fR(t,this.project,this.concurrent))}}]),e}(),fR=function(e){k(t,e);var i=w(t);function t(n,r){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,t),(a=i.call(this,n)).project=r,a.concurrent=o,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return h(t,[{key:"_next",value:function(r){this.active<this.concurrent?this._tryNext(r):this.buffer.push(r)}},{key:"_tryNext",value:function(r){var a,o=this.index++;try{a=this.project(r,o)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(a)}},{key:"_innerSub",value:function(r){var a=new Qs(this),o=this.destination;o.add(a);var s=$s(r,a);s!==a&&o.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(r){this.destination.next(r)}},{key:"notifyComplete",value:function(){var r=this.buffer;this.active--,r.length>0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(Ks);function ib(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Uh(Qy,e)}function jh(e,i){return i?Gh(e,i):new Xe(eb(e))}function Ke(){for(var e=Number.POSITIVE_INFINITY,i=null,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[n.length-1];return bo(a)?(i=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof a&&(e=n.pop()),null===i&&1===n.length&&n[0]instanceof Xe?n[0]:ib(e)(jh(n,i))}function rb(){return function(i){return i.lift(new hR(i))}}var hR=function(){function e(i){p(this,e),this.connectable=i}return h(e,[{key:"call",value:function(t,n){var r=this.connectable;r._refCount++;var a=new pR(t,r),o=n.subscribe(a);return a.closed||(a.connection=r.connect()),o}}]),e}(),pR=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).connectable=r,a}return h(t,[{key:"_unsubscribe",value:function(){var r=this.connectable;if(r){this.connectable=null;var a=r._refCount;if(a<=0)this.connection=null;else if(r._refCount=a-1,a>1)this.connection=null;else{var o=this.connection,s=r._connection;this.connection=null,s&&(!o||s===o)&&s.unsubscribe()}}else this.connection=null}}]),t}(Ct),gR=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this)).source=n,a.subjectFactory=r,a._refCount=0,a._isComplete=!1,a}return h(t,[{key:"_subscribe",value:function(r){return this.getSubject().subscribe(r)}},{key:"getSubject",value:function(){var r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var r=this._connection;return r||(this._isComplete=!1,(r=this._connection=new ye).add(this.source.subscribe(new vR(this.getSubject(),this))),r.closed&&(this._connection=null,r=ye.EMPTY)),r}},{key:"refCount",value:function(){return rb()(this)}}]),t}(Xe),mR=function(){var e=gR.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}}}(),vR=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).connectable=r,a}return h(t,[{key:"_error",value:function(r){this._unsubscribe(),J(Y(t.prototype),"_error",this).call(this,r)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),J(Y(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var r=this.connectable;if(r){this.connectable=null;var a=r._connection;r._refCount=0,r._subject=null,r._connection=null,a&&a.unsubscribe()}}}]),t}(Jy);function bR(){return new $}function ab(){return function(e){return rb()(function(e,i){return function(n){var r;r="function"==typeof e?e:function(){return e};var a=Object.create(n,mR);return a.source=n,a.subjectFactory=r,a}}(bR)(e))}}function Je(e){for(var i in e)if(e[i]===Je)return i;throw Error("Could not find renamed property on target object.")}function zh(e,i){for(var t in i)i.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=i[t])}function Be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Be).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var i=e.toString();if(null==i)return""+i;var t=i.indexOf("\n");return-1===t?i:i.substring(0,t)}function Wh(e,i){return null==e||""===e?null===i?"":i:null==i||""===i?e:e+" "+i}var CR=Je({__forward_ref__:Je});function De(e){return e.__forward_ref__=De,e.toString=function(){return Be(this())},e}function _e(e){return ob(e)?e():e}function ob(e){return"function"==typeof e&&e.hasOwnProperty(CR)&&e.__forward_ref__===De}var Br=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,function(e,i){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(i)}(n,r))).code=n,a}return h(t)}(Lh(Error));function Ae(e){return"string"==typeof e?e:null==e?"":String(e)}function bn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ae(e)}function nc(e,i){var t=i?" in ".concat(i):"";throw new Br("201","No provider for ".concat(bn(e)," found").concat(t))}function Nn(e,i){null==e&&function(e,i,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(i," <=Actual]")))}(i,e,null,"!=")}function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ne(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return sb(e,ic)||sb(e,ub)}function sb(e,i){return e.hasOwnProperty(i)?e[i]:null}function lb(e){return e&&(e.hasOwnProperty(qh)||e.hasOwnProperty(AR))?e[qh]:null}var Qh,ic=Je({"\u0275prov":Je}),qh=Je({"\u0275inj":Je}),ub=Je({ngInjectableDef:Je}),AR=Je({ngInjectorDef:Je}),Ue=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 xR(){return Qh}function Hr(e){var i=Qh;return Qh=e,i}function cb(e,i,t){var n=Vr(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&Ue.Optional?null:void 0!==i?i:void nc(Be(e),"Injector")}function Gr(e){return{toString:e}.toString()}var Xs=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),vi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),TR="undefined"!=typeof globalThis&&globalThis,IR="undefined"!=typeof window&&window,RR="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,OR="undefined"!=typeof global&&global,tt=TR||OR||IR||RR,ko={},st=[],rc=Je({"\u0275cmp":Je}),Kh=Je({"\u0275dir":Je}),$h=Je({"\u0275pipe":Je}),db=Je({"\u0275mod":Je}),FR=Je({"\u0275loc":Je}),fr=Je({"\u0275fac":Je}),Js=Je({__NG_ELEMENT_ID__:Je}),PR=0;function te(e){return Gr(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===Xs.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||st,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||vi.Emulated,id:"c",styles:e.styles||st,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,a=e.features,o=e.pipes;return n.id+=PR++,n.inputs=gb(e.inputs,t),n.outputs=gb(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(fb)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(hb)}:null,n})}function fb(e){return an(e)||function(e){return e[Kh]||null}(e)}function hb(e){return function(e){return e[$h]||null}(e)}var pb={};function ae(e){return Gr(function(){var i={type:e.type,bootstrap:e.bootstrap||st,declarations:e.declarations||st,imports:e.imports||st,exports:e.exports||st,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(pb[e.id]=e.type),i})}function gb(e,i){if(null==e)return ko;var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),t[r]=n,i&&(i[r]=a)}return t}var A=te;function In(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function an(e){return e[rc]||null}function $n(e,i){var t=e[db]||null;if(!t&&!0===i)throw new Error("Type ".concat(Be(e)," does not have '\u0275mod' property."));return t}function Yi(e){return Array.isArray(e)&&"object"==typeof e[1]}function yi(e){return Array.isArray(e)&&!0===e[1]}function Zh(e){return 0!=(8&e.flags)}function lc(e){return 2==(2&e.flags)}function uc(e){return 1==(1&e.flags)}function bi(e){return null!==e.template}function UR(e){return 0!=(512&e[2])}function Sa(e,i){return e.hasOwnProperty(fr)?e[fr]:null}var vb=function(){function e(i,t,n){p(this,e),this.previousValue=i,this.currentValue=t,this.firstChange=n}return h(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function xe(){return _b}function _b(e){return e.type.prototype.ngOnChanges&&(e.setInput=YR),WR}function WR(){var e=bb(this),i=null==e?void 0:e.current;if(i){var t=e.previous;if(t===ko)e.previous=i;else for(var n in i)t[n]=i[n];e.current=null,this.ngOnChanges(i)}}function YR(e,i,t,n){var r=bb(e)||function(e,i){return e[yb]=i}(e,{previous:ko,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[t],l=o[s];a[s]=new vb(l&&l.currentValue,i,o===ko),e[n]=i}xe.ngInherit=!0;var yb="__ngSimpleChanges__";function bb(e){return e[yb]||null}var Cb="http://www.w3.org/2000/svg",np=void 0;function ip(){return void 0!==np?np:"undefined"!=typeof document?document:void 0}function Pt(e){return!!e.listen}var wb={createRenderer:function(i,t){return ip()}};function Ht(e){for(;Array.isArray(e);)e=e[0];return e}function cc(e,i){return Ht(i[e])}function Bn(e,i){return Ht(i[e.index])}function rp(e,i){return e.data[i]}function Eo(e,i){return e[i]}function Vn(e,i){var t=i[e];return Yi(t)?t:t[0]}function Mb(e){return 4==(4&e[2])}function ap(e){return 128==(128&e[2])}function jr(e,i){return null==i?null:e[i]}function Sb(e){e[18]=0}function op(e,i){e[5]+=i;for(var t=e,n=e[3];null!==n&&(1===i&&1===t[5]||-1===i&&0===t[5]);)n[5]+=i,t=n,n=n[3]}var Me={lFrame:Ob(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Db(){return Me.bindingsEnabled}function Q(){return Me.lFrame.lView}function qe(){return Me.lFrame.tView}function Pe(e){return Me.lFrame.contextLView=e,e[8]}function qt(){for(var e=Eb();null!==e&&64===e.type;)e=e.parent;return e}function Eb(){return Me.lFrame.currentTNode}function qi(e,i){var t=Me.lFrame;t.currentTNode=e,t.isParent=i}function sp(){return Me.lFrame.isParent}function lp(){Me.lFrame.isParent=!1}function dc(){return Me.isInCheckNoChangesMode}function fc(e){Me.isInCheckNoChangesMode=e}function kn(){var e=Me.lFrame,i=e.bindingRootIndex;return-1===i&&(i=e.bindingRootIndex=e.tView.bindingStartIndex),i}function Qi(){return Me.lFrame.bindingIndex}function Ao(){return Me.lFrame.bindingIndex++}function hr(e){var i=Me.lFrame,t=i.bindingIndex;return i.bindingIndex=i.bindingIndex+e,t}function lO(e,i){var t=Me.lFrame;t.bindingIndex=t.bindingRootIndex=e,up(i)}function up(e){Me.lFrame.currentDirectiveIndex=e}function cp(e){var i=Me.lFrame.currentDirectiveIndex;return-1===i?null:e[i]}function Tb(){return Me.lFrame.currentQueryIndex}function dp(e){Me.lFrame.currentQueryIndex=e}function cO(e){var i=e[1];return 2===i.type?i.declTNode:1===i.type?e[6]:null}function Ib(e,i,t){if(t&Ue.SkipSelf){for(var n=i,r=e;!(null!==(n=n.parent)||t&Ue.Host||null===(n=cO(r))||(r=r[15],10&n.type)););if(null===n)return!1;i=n,e=r}var a=Me.lFrame=Rb();return a.currentTNode=i,a.lView=e,!0}function hc(e){var i=Rb(),t=e[1];Me.lFrame=i,i.currentTNode=t.firstChild,i.lView=e,i.tView=t,i.contextLView=e,i.bindingIndex=t.bindingStartIndex,i.inI18n=!1}function Rb(){var e=Me.lFrame,i=null===e?null:e.child;return null===i?Ob(e):i}function Ob(e){var i={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=i),i}function Fb(){var e=Me.lFrame;return Me.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Pb=Fb;function pc(){var e=Fb();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 dO(e){var i=Me.lFrame.contextLView=function(e,i){for(;e>0;)i=i[15],e--;return i}(e,Me.lFrame.contextLView);return i[8]}function wn(){return Me.lFrame.selectedIndex}function zr(e){Me.lFrame.selectedIndex=e}function Et(){var e=Me.lFrame;return rp(e.tView,e.selectedIndex)}function sn(){Me.lFrame.currentNamespace=Cb}function gc(e,i){for(var t=i.directiveStart,n=i.directiveEnd;t<n;t++){var a=e.data[t].type.prototype,o=a.ngAfterContentInit,s=a.ngAfterContentChecked,l=a.ngAfterViewInit,u=a.ngAfterViewChecked,c=a.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-t,o),s&&((e.contentHooks||(e.contentHooks=[])).push(t,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,s)),l&&(e.viewHooks||(e.viewHooks=[])).push(-t,l),u&&((e.viewHooks||(e.viewHooks=[])).push(t,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(t,c)}}function mc(e,i,t){Nb(e,i,3,t)}function vc(e,i,t,n){(3&e[2])===t&&Nb(e,i,t,n)}function fp(e,i){var t=e[2];(3&t)===i&&(t&=2047,e[2]=t+=1)}function Nb(e,i,t,n){for(var a=null!=n?n:-1,o=i.length-1,s=0,l=void 0!==n?65535&e[18]:0;l<o;l++)if("number"==typeof i[l+1]){if(s=i[l],null!=n&&s>=n)break}else i[l]<0&&(e[18]+=65536),(s<a||-1==a)&&(vO(e,t,i,l),e[18]=(4294901760&e[18])+l+2),l++}function vO(e,i,t,n){var r=t[n]<0,a=t[n+1],s=e[r?-t[n]:t[n]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===i){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var rl=h(function e(i,t,n){p(this,e),this.factory=i,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function _c(e,i,t){for(var n=Pt(e),r=0;r<t.length;){var a=t[r];if("number"==typeof a){if(0!==a)break;r++;var o=t[r++],s=t[r++],l=t[r++];n?e.setAttribute(i,s,l,o):i.setAttributeNS(o,s,l)}else{var u=a,c=t[++r];pp(u)?n&&e.setProperty(i,u,c):n?e.setAttribute(i,u,c):i.setAttribute(u,c),r++}}return r}function Lb(e){return 3===e||4===e||6===e}function pp(e){return 64===e.charCodeAt(0)}function yc(e,i){if(null!==i&&0!==i.length)if(null===e||0===e.length)e=i.slice();else for(var t=-1,n=0;n<i.length;n++){var r=i[n];"number"==typeof r?t=r:0===t||Bb(e,t,r,null,-1===t||2===t?i[++n]:null)}return e}function Bb(e,i,t,n,r){var a=0,o=e.length;if(-1===i)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===i){o=-1;break}if(s>i){o=a-1;break}}}for(;a<e.length;){var l=e[a];if("number"==typeof l)break;if(l===t){if(null===n)return void(null!==r&&(e[a+1]=r));if(n===e[a+1])return void(e[a+2]=r)}a++,null!==n&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,i),a=o+1),e.splice(a++,0,t),null!==n&&e.splice(a++,0,n),null!==r&&e.splice(a++,0,r)}function Vb(e){return-1!==e}function xo(e){return 32767&e}function To(e,i){for(var t=function(e){return e>>16}(e),n=i;t>0;)n=n[15],t--;return n}var gp=!0;function bc(e){var i=gp;return gp=e,i}var MO=0;function ol(e,i){var t=vp(e,i);if(-1!==t)return t;var n=i[1];n.firstCreatePass&&(e.injectorIndex=i.length,mp(n.data,e),mp(i,null),mp(n.blueprint,null));var r=Cc(e,i),a=e.injectorIndex;if(Vb(r))for(var o=xo(r),s=To(r,i),l=s[1].data,u=0;u<8;u++)i[a+u]=s[o+u]|l[o+u];return i[a+8]=r,a}function mp(e,i){e.push(0,0,0,0,0,0,0,0,i)}function vp(e,i){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===i[e.injectorIndex+8]?-1:e.injectorIndex}function Cc(e,i){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,r=i;null!==r;){var a=r[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?r[6]:null))return-1;if(t++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function kc(e,i,t){!function(e,i,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(Js)&&(n=t[Js]),null==n&&(n=t[Js]=MO++);var r=255&n;i.data[e+(r>>5)]|=1<<r}(e,i,t)}function Ub(e,i,t){if(t&Ue.Optional)return e;nc(i,"NodeInjector")}function jb(e,i,t,n){if(t&Ue.Optional&&void 0===n&&(n=null),0==(t&(Ue.Self|Ue.Host))){var r=e[9],a=Hr(void 0);try{return r?r.get(i,n,t&Ue.Optional):cb(i,n,t&Ue.Optional)}finally{Hr(a)}}return Ub(n,i,t)}function zb(e,i,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=xO(t);if("function"==typeof a){if(!Ib(i,e,n))return n&Ue.Host?Ub(r,t,n):jb(i,t,n,r);try{var o=a(n);if(null!=o||n&Ue.Optional)return o;nc(t)}finally{Pb()}}else if("number"==typeof a){var s=null,l=vp(e,i),u=-1,c=n&Ue.Host?i[16][6]:null;for((-1===l||n&Ue.SkipSelf)&&(-1!==(u=-1===l?Cc(e,i):i[l+8])&&qb(n,!1)?(s=i[1],l=xo(u),i=To(u,i)):l=-1);-1!==l;){var d=i[1];if(Yb(a,l,d.data)){var f=AO(l,i,t,s,n,c);if(f!==Wb)return f}-1!==(u=i[l+8])&&qb(n,i[1].data[l+8]===c)&&Yb(a,l,i)?(s=d,l=xo(u),i=To(u,i)):l=-1}}}return jb(i,t,n,r)}var Wb={};function EO(){return new Io(qt(),Q())}function AO(e,i,t,n,r,a){var o=i[1],s=o.data[e+8],c=wc(s,o,t,null==n?lc(s)&&gp:n!=o&&0!=(3&s.type),r&Ue.Host&&a===s);return null!==c?sl(i,o,c,s):Wb}function wc(e,i,t,n,r){for(var a=e.providerIndexes,o=i.data,s=1048575&a,l=e.directiveStart,c=a>>20,f=r?s+c:e.directiveEnd,_=n?s:s+c;_<f;_++){var b=o[_];if(_<l&&t===b||_>=l&&b.type===t)return _}if(r){var C=o[l];if(C&&bi(C)&&C.type===t)return l}return null}function sl(e,i,t,n){var r=e[t],a=i.data;if(function(e){return e instanceof rl}(r)){var o=r;o.resolving&&function(e,i){throw new Br("200","Circular dependency in DI detected for ".concat(e).concat(""))}(bn(a[t]));var s=bc(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?Hr(o.injectImpl):null;Ib(e,n,Ue.Default);try{r=e[t]=o.factory(void 0,a,e,n),i.firstCreatePass&&t>=n.directiveStart&&function(e,i,t){var n=i.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=_b(i);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],i)}finally{null!==l&&Hr(l),bc(s),o.resolving=!1,Pb()}}return r}function xO(e){if("string"==typeof e)return e.charCodeAt(0)||0;var i=e.hasOwnProperty(Js)?e[Js]:void 0;return"number"==typeof i?i>=0?255&i:EO:i}function Yb(e,i,t){return!!(t[i+(e>>5)]&1<<e)}function qb(e,i){return!(e&Ue.Self||e&Ue.Host&&i)}var Io=function(){function e(i,t){p(this,e),this._tNode=i,this._lView=t}return h(e,[{key:"get",value:function(t,n,r){return zb(this._tNode,this._lView,t,r,n)}}]),e}();function X(e){return Gr(function(){for(var i=e.prototype.constructor,t=i[fr]||_p(i),n=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==n;){var a=r[fr]||_p(r);if(a&&a!==t)return a;r=Object.getPrototypeOf(r)}return function(o){return new o}})}function _p(e){return ob(e)?function(){var i=_p(_e(e));return i&&i()}:Sa(e)}function Gt(e){return function(e,i){if("class"===i)return e.classes;if("style"===i)return e.styles;var t=e.attrs;if(t)for(var n=t.length,r=0;r<n;){var a=t[r];if(Lb(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<n&&"string"==typeof t[r];)r++;else{if(a===i)return t[r+1];r+=2}}return null}(qt(),e)}var Oo="__parameters__";function Da(e,i,t){return Gr(function(){var n=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(i);function r(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(this instanceof r)return n.apply(this,o),this;var l=gi(r,o);return u.annotation=l,u;function u(c,d,f){for(var _=c.hasOwnProperty(Oo)?c[Oo]:Object.defineProperty(c,Oo,{value:[]})[Oo];_.length<=f;)_.push(null);return(_[f]=_[f]||[]).push(l),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var V=function(){function e(i,t){p(this,e),this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=G({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return h(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),cl=Function;function Zn(e,i){void 0===i&&(i=e);for(var t=0;t<e.length;t++){var n=e[t];Array.isArray(n)?(i===e&&(i=e.slice(0,t)),Zn(n,i)):i!==e&&i.push(n)}return i}function Ki(e,i){e.forEach(function(t){return Array.isArray(t)?Ki(t,i):i(t)})}function Sc(e,i,t){i>=e.length?e.push(t):e.splice(i,0,t)}function Ea(e,i){return i>=e.length-1?e.pop():e.splice(i,1)[0]}function Yr(e,i){for(var t=[],n=0;n<e;n++)t.push(i);return t}function Hn(e,i,t){var n=Po(e,i);return n>=0?e[1|n]=t:function(e,i,t,n){var r=e.length;if(r==i)e.push(t,n);else if(1===r)e.push(n,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>i;)e[r]=e[r-2],r--;e[i]=t,e[i+1]=n}}(e,n=~n,i,t),n}function bp(e,i){var t=Po(e,i);if(t>=0)return e[1|t]}function Po(e,i){return function(e,i,t){for(var n=0,r=e.length>>t;r!==n;){var a=n+(r-n>>1),o=e[a<<t];if(i===o)return a<<t;o>i?r=a:n=a+1}return~(r<<t)}(e,i,1)}var fl={},kp="__NG_DI_FLAG__",No="ngTempTokenPath",jO=/\n/gm,wp="__source",Mp=Je({provide:String,useValue:Je}),hl=void 0;function Ec(e){var i=hl;return hl=e,i}function YO(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default;if(void 0===hl)throw new Error("inject() must be called from an injection context");return null===hl?cb(e,void 0,i):hl.get(e,i&Ue.Optional?null:void 0,i)}function x(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default;return(xR()||YO)(_e(e),i)}var Lo=x;function Aa(e){for(var i=[],t=0;t<e.length;t++){var n=_e(e[t]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,a=Ue.Default,o=0;o<n.length;o++){var s=n[o],l=qO(s);"number"==typeof l?-1===l?r=s.token:a|=l:r=s}i.push(x(r,a))}else i.push(x(n))}return i}function pl(e,i){return e[kp]=i,e.prototype[kp]=i,e}function qO(e){return e[kp]}function QO(e,i,t,n){var r=e[No];throw i[wp]&&r.unshift(i[wp]),e.message=function(e,i,t){var n=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=Be(i);if(Array.isArray(i))r=i.map(Be).join(" -> ");else if("object"==typeof i){var a=[];for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Be(s)))}r="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(e.replace(jO,"\n  "))}("\n"+e.message,r,t,n),e.ngTokenPath=r,e[No]=null,e}var gl=pl(Da("Inject",function(i){return{token:i}}),-1),Kt=pl(Da("Optional"),8),Rn=pl(Da("SkipSelf"),4),Vo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),rC="__ngContext__";function ln(e,i){e[rC]=i}function Ap(e){var i=function(e){return e[rC]||null}(e);return i?Array.isArray(i)?i:i.lView:null}function Tp(e,i){return undefined(e,i)}function _l(e){var i=e[3];return yi(i)?i[3]:i}function Ip(e){return dC(e[13])}function Rp(e){return dC(e[4])}function dC(e){for(;null!==e&&!yi(e);)e=e[4];return e}function Ho(e,i,t,n,r){if(null!=n){var a,o=!1;yi(n)?a=n:Yi(n)&&(o=!0,n=n[0]);var s=Ht(n);0===e&&null!==t?null==r?vC(i,t,s):xa(i,t,s,r||null,!0):1===e&&null!==t?xa(i,t,s,r||null,!0):2===e?function(e,i,t){var n=Tc(e,i);n&&function(e,i,t,n){Pt(e)?e.removeChild(i,t,n):i.removeChild(t)}(e,n,i,t)}(i,s,o):3===e&&i.destroyNode(s),null!=a&&function(e,i,t,n,r){var a=t[7];a!==Ht(t)&&Ho(i,e,n,a,r);for(var s=10;s<t.length;s++){var l=t[s];yl(l[1],l,e,i,n,a)}}(i,e,a,t,r)}}function Op(e,i){return Pt(e)?e.createText(i):e.createTextNode(i)}function Fp(e,i,t){return Pt(e)?e.createElement(i,t):null===t?e.createElement(i):e.createElementNS(t,i)}function hC(e,i){var t=e[9],n=t.indexOf(i),r=i[3];1024&i[2]&&(i[2]&=-1025,op(r,-1)),t.splice(n,1)}function Pp(e,i){if(!(e.length<=10)){var t=10+i,n=e[t];if(n){var r=n[17];null!==r&&r!==e&&hC(r,n),i>0&&(e[t-1][4]=n[4]);var a=Ea(e,10+i);!function(e,i){yl(e,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function pC(e,i){if(!(256&i[2])){var t=i[11];Pt(t)&&t.destroyNode&&yl(e,i,t,3,null,null),function(e){var i=e[13];if(!i)return Np(e[1],e);for(;i;){var t=null;if(Yi(i))t=i[13];else{var n=i[10];n&&(t=n)}if(!t){for(;i&&!i[4]&&i!==e;)Yi(i)&&Np(i[1],i),i=i[3];null===i&&(i=e),Yi(i)&&Np(i[1],i),t=i&&i[4]}i=t}}(i)}}function Np(e,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function(e,i){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n<t.length;n+=2){var r=i[t[n]];if(!(r instanceof rl)){var a=t[n+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2){var s=r[a[o]],l=a[o+1];try{l.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,i),function(e,i){var t=e.cleanup,n=i[7],r=-1;if(null!==t)for(var a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){var o=t[a+1],s="function"==typeof o?o(i):Ht(i[o]),l=n[r=t[a+2]],u=t[a+3];"boolean"==typeof u?s.removeEventListener(t[a],l,u):u>=0?n[r=u]():n[r=-u].unsubscribe(),a+=2}else{var c=n[r=t[a+1]];t[a].call(c)}if(null!==n){for(var d=r+1;d<n.length;d++)(0,n[d])();i[7]=null}}(e,i),1===i[1].type&&Pt(i[11])&&i[11].destroy();var t=i[17];if(null!==t&&yi(i[3])){t!==i[3]&&hC(t,i);var n=i[19];null!==n&&n.detachView(e)}}}function gC(e,i,t){return function(e,i,t){for(var n=i;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return t[0];if(2&n.flags){var r=e.data[n.directiveStart].encapsulation;if(r===vi.None||r===vi.Emulated)return null}return Bn(n,t)}(e,i.parent,t)}function xa(e,i,t,n,r){Pt(e)?e.insertBefore(i,t,n,r):i.insertBefore(t,n,r)}function vC(e,i,t){Pt(e)?e.appendChild(i,t):i.appendChild(t)}function _C(e,i,t,n,r){null!==n?xa(e,i,t,n,r):vC(e,i,t)}function Tc(e,i){return Pt(e)?e.parentNode(i):i.parentNode}function yC(e,i,t){return CC(e,i,t)}var Oc,Fc,CC=function(e,i,t){return 40&e.type?Bn(e,t):null};function Ic(e,i,t,n){var r=gC(e,n,i),a=i[11],s=yC(n.parent||i[6],n,i);if(null!=r)if(Array.isArray(t))for(var l=0;l<t.length;l++)_C(a,r,t[l],s,!1);else _C(a,r,t,s,!1)}function Rc(e,i){if(null!==i){var t=i.type;if(3&t)return Bn(i,e);if(4&t)return Bp(-1,e[i.index]);if(8&t){var n=i.child;if(null!==n)return Rc(e,n);var r=e[i.index];return yi(r)?Bp(-1,r):Ht(r)}if(32&t)return Tp(i,e)()||Ht(e[i.index]);var s=wC(e,i);return null!==s?Array.isArray(s)?s[0]:Rc(_l(e[16]),s):Rc(e,i.next)}return null}function wC(e,i){return null!==i?e[16][6].projection[i.projection]:null}function Bp(e,i){var t=10+e+1;if(t<i.length){var n=i[t],r=n[1].firstChild;if(null!==r)return Rc(n,r)}return i[7]}function Hp(e,i,t,n,r,a,o){for(;null!=t;){var s=n[t.index],l=t.type;if(o&&0===i&&(s&&ln(Ht(s),n),t.flags|=4),64!=(64&t.flags))if(8&l)Hp(e,i,t.child,n,r,a,!1),Ho(i,e,r,s,a);else if(32&l){for(var u=Tp(t,n),c=void 0;c=u();)Ho(i,e,r,c,a);Ho(i,e,r,s,a)}else 16&l?MC(e,i,n,t,r,a):Ho(i,e,r,s,a);t=o?t.projectionNext:t.next}}function yl(e,i,t,n,r,a){Hp(t,n,e.firstChild,i,r,a,!1)}function DF(e,i,t){MC(i[11],0,i,t,gC(e,t,i),yC(t.parent||i[6],t,i))}function MC(e,i,t,n,r,a){var o=t[16],l=o[6].projection[n.projection];if(Array.isArray(l))for(var u=0;u<l.length;u++)Ho(i,e,r,l[u],a);else Hp(e,i,l,o[3],r,a,!0)}function SC(e,i,t){Pt(e)?e.setAttribute(i,"style",t):i.style.cssText=t}function Gp(e,i,t){Pt(e)?""===t?e.removeAttribute(i,"class"):e.setAttribute(i,"class",t):i.className=t}function Ta(e){var i;return(null===(i=function(){if(void 0===Oc&&(Oc=null,tt.trustedTypes))try{Oc=tt.trustedTypes.createPolicy("angular",{createHTML:function(i){return i},createScript:function(i){return i},createScriptURL:function(i){return i}})}catch(e){}return Oc}())||void 0===i?void 0:i.createHTML(e))||e}function DC(e){var i;return(null===(i=function(){if(void 0===Fc&&(Fc=null,tt.trustedTypes))try{Fc=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(i){return i},createScript:function(i){return i},createScriptURL:function(i){return i}})}catch(e){}return Fc}())||void 0===i?void 0:i.createHTML(e))||e}var Ia=function(){function e(i){p(this,e),this.changingThisBreaksApplicationSecurity=i}return h(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),RF=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(Ia),OF=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(Ia),FF=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(Ia),PF=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(Ia),NF=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(Ia);function Gn(e){return e instanceof Ia?e.changingThisBreaksApplicationSecurity:e}function $i(e,i){var t=xC(e);if(null!=t&&t!==i){if("ResourceURL"===t&&"URL"===i)return!0;throw new Error("Required a safe ".concat(i,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===i}function xC(e){return e instanceof Ia&&e.getTypeName()||null}var UF=function(){function e(i){p(this,e),this.inertDocumentHelper=i}return h(e,[{key:"getInertBodyElement",value:function(t){t="<body><remove></remove>"+t;try{var n=(new window.DOMParser).parseFromString(Ta(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(r){return null}}}]),e}(),jF=function(){function e(i){if(p(this,e),this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return h(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Ta(t),n;var r=this.inertDocument.createElement("body");return r.innerHTML=Ta(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,r=n.length-1;0<r;r--){var o=n.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}for(var s=t.firstChild;s;)s.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(s),s=s.nextSibling}}]),e}(),WF=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,YF=/^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 bl(e){return(e=String(e)).match(WF)||e.match(YF)?e:"unsafe:"+e}function IC(e){return(e=String(e)).split(",").map(function(i){return bl(i.trim())}).join(", ")}function Xi(e){var n,i={},t=ct(e.split(","));try{for(t.s();!(n=t.n()).done;)i[n.value]=!0}catch(a){t.e(a)}finally{t.f()}return i}function Cl(){for(var e={},i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];for(var r=0,a=t;r<a.length;r++){var o=a[r];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var Pc,RC=Xi("area,br,col,hr,img,wbr"),OC=Xi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),FC=Xi("rp,rt"),qF=Cl(FC,OC),zp=Cl(RC,Cl(OC,Xi("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")),Cl(FC,Xi("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")),qF),Wp=Xi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yp=Xi("srcset"),PC=Cl(Wp,Yp,Xi("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"),Xi("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")),JF=Xi("script,style,template"),ZF=function(){function e(){p(this,e),this.sanitizedSomething=!1,this.buf=[]}return h(e,[{key:"sanitizeChildren",value:function(t){for(var n=t.firstChild,r=!0;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);var a=this.checkClobberedElement(n,n.nextSibling);if(a){n=a;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var n=t.nodeName.toLowerCase();if(!zp.hasOwnProperty(n))return this.sanitizedSomething=!0,!JF.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,a=0;a<r.length;a++){var o=r.item(a),s=o.name,l=s.toLowerCase();if(PC.hasOwnProperty(l)){var u=o.value;Wp[l]&&(u=bl(u)),Yp[l]&&(u=IC(u)),this.buf.push(" ",s,'="',NC(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();zp.hasOwnProperty(n)&&!RC.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(NC(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),eP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tP=/([^\#-~ |!])/g;function NC(e){return e.replace(/&/g,"&amp;").replace(eP,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(tP,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function LC(e,i){var t=null;try{Pc=Pc||function(e){var i=new jF(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ta(""),"text/html")}catch(e){return!1}}()?new UF(i):i}(e);var n=i?String(i):"";t=Pc.getInertBodyElement(n);var r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=t.innerHTML,t=Pc.getInertBodyElement(n)}while(n!==a);return Ta((new ZF).sanitizeChildren(qp(t)||t))}finally{if(t)for(var l=qp(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function qp(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Zt=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 BC(e){var i=kl();return i?DC(i.sanitize(Zt.HTML,e)||""):$i(e,"HTML")?DC(Gn(e)):LC(ip(),Ae(e))}function T(e){var i=kl();return i?i.sanitize(Zt.URL,e)||"":$i(e,"URL")?Gn(e):bl(Ae(e))}function kl(){var e=Q();return e&&e[12]}function Nc(e){return e.ngOriginalError}function fP(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n<i;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var Ci=function(){function e(){p(this,e),this._console=console}return h(e,[{key:"handleError",value:function(t){var n=this._findOriginalError(t),r=this._findContext(t),a=function(e){return e&&e.ngErrorLogger||fP}(t);a(this._console,"ERROR",t),n&&a(this._console,"ORIGINAL ERROR",n),r&&a(this._console,"ERROR CONTEXT",r)}},{key:"_findContext",value:function(t){return t?function(e){return e.ngDebugContext}(t)||this._findContext(Nc(t)):null}},{key:"_findOriginalError",value:function(t){for(var n=t&&Nc(t);n&&Nc(n);)n=Nc(n);return n||null}}]),e}(),WC=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt)}();function YC(e){return e.ownerDocument}function Ji(e){return e instanceof Function?e():e}function QC(e,i,t){for(var n=e.length;;){var r=e.indexOf(i,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var a=i.length;if(r+a===n||e.charCodeAt(r+a)<=32)return r}t=r+1}}var KC="ng-template";function bP(e,i,t){for(var n=0;n<e.length;){var r=e[n++];if(t&&"class"===r){if(-1!==QC((r=e[n]).toLowerCase(),i,0))return!0}else if(1===r){for(;n<e.length&&"string"==typeof(r=e[n++]);)if(r.toLowerCase()===i)return!0;return!1}}return!1}function $C(e){return 4===e.type&&e.value!==KC}function CP(e,i,t){return i===(4!==e.type||t?e.value:KC)}function kP(e,i,t){for(var n=4,r=e.attrs||[],a=function(e){for(var i=0;i<e.length;i++)if(Lb(e[i]))return i;return e.length}(r),o=!1,s=0;s<i.length;s++){var l=i[s];if("number"!=typeof l){if(!o)if(4&n){if(n=2|1&n,""!==l&&!CP(e,l,t)||""===l&&1===i.length){if(ki(n))return!1;o=!0}}else{var u=8&n?l:i[++s];if(8&n&&null!==e.attrs){if(!bP(e.attrs,u,t)){if(ki(n))return!1;o=!0}continue}var d=wP(8&n?"class":l,r,$C(e),t);if(-1===d){if(ki(n))return!1;o=!0;continue}if(""!==u){var f;f=d>a?"":r[d+1].toLowerCase();var _=8&n?f:null;if(_&&-1!==QC(_,u,0)||2&n&&u!==f){if(ki(n))return!1;o=!0}}}}else{if(!o&&!ki(n)&&!ki(l))return!1;if(o&&ki(l))continue;o=!1,n=l|1&n}}return ki(n)||o}function ki(e){return 0==(1&e)}function wP(e,i,t,n){if(null===i)return-1;var r=0;if(n||!t){for(var a=!1;r<i.length;){var o=i[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=i[++r];"string"==typeof s;)s=i[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function(e,i){var t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){var n=e[t];if("number"==typeof n)return-1;if(n===i)return t;t++}return-1}(i,e)}function XC(e,i){for(var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<i.length;n++)if(kP(e,i[n],t))return!0;return!1}function EP(e,i){e:for(var t=0;t<i.length;t++){var n=i[t];if(e.length===n.length){for(var r=0;r<e.length;r++)if(e[r]!==n[r])continue e;return!0}}return!1}function JC(e,i){return e?":not("+i.trim()+")":i}function AP(e){for(var i=e[0],t=1,n=2,r="",a=!1;t<e.length;){var o=e[t];if("string"==typeof o)if(2&n){var s=e[++t];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""!==r&&!ki(o)&&(i+=JC(a,r),r=""),n=o,a=a||!ki(n);t++}return""!==r&&(i+=JC(a,r)),i}var Ee={};function y(e){ZC(qe(),Q(),wn()+e,dc())}function ZC(e,i,t,n){if(!n)if(3==(3&i[2])){var a=e.preOrderCheckHooks;null!==a&&mc(i,a,t)}else{var o=e.preOrderHooks;null!==o&&vc(i,o,0,t)}zr(t)}function Lc(e,i){return e<<17|i<<2}function wi(e){return e>>17&32767}function Kp(e){return 2|e}function pr(e){return(131068&e)>>2}function $p(e,i){return-131069&e|i<<2}function Xp(e){return 1|e}function uk(e,i){var t=e.contentQueries;if(null!==t)for(var n=0;n<t.length;n+=2){var a=t[n+1];if(-1!==a){var o=e.data[a];dp(t[n]),o.contentQueries(2,i[a],a)}}}function wl(e,i,t,n,r,a,o,s,l,u){var c=i.blueprint.slice();return c[0]=r,c[2]=140|n,Sb(c),c[3]=c[15]=e,c[8]=t,c[10]=o||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]=a,c[16]=2==i.type?e[16]:c,c}function Uo(e,i,t,n,r){var a=e.data[i];if(null===a)a=function(e,i,t,n,r){var a=Eb(),o=sp(),l=e.data[i]=function(e,i,t,n,r,a){return{type:t,index:n,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,i,n,r);return null===e.firstChild&&(e.firstChild=l),null!==a&&(o?null==a.child&&null!==l.parent&&(a.child=l):null===a.next&&(a.next=l)),l}(e,i,t,n,r),Me.lFrame.inI18n&&(a.flags|=64);else if(64&a.type){a.type=t,a.value=n,a.attrs=r;var o=function(){var e=Me.lFrame,i=e.currentTNode;return e.isParent?i:i.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return qi(a,!0),a}function jo(e,i,t,n){if(0===t)return-1;for(var r=i.length,a=0;a<t;a++)i.push(n),e.blueprint.push(n),e.data.push(null);return r}function Ml(e,i,t){hc(i);try{var n=e.viewQuery;null!==n&&hg(1,n,t);var r=e.template;null!==r&&ck(e,i,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&uk(e,i),e.staticViewQueries&&hg(2,e.viewQuery,t);var a=e.components;null!==a&&function(e,i){for(var t=0;t<i.length;t++)lN(e,i[t])}(i,a)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),o}finally{i[2]&=-5,pc()}}function zo(e,i,t,n){var r=i[2];if(256!=(256&r)){hc(i);var a=dc();try{Sb(i),function(e){Me.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&ck(e,i,t,2,n);var o=3==(3&r);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&mc(i,s,null)}else{var l=e.preOrderHooks;null!==l&&vc(i,l,0,null),fp(i,0)}if(function(e){for(var i=Ip(e);null!==i;i=Rp(i))if(i[2])for(var t=i[9],n=0;n<t.length;n++){var r=t[n];0==(1024&r[2])&&op(r[3],1),r[2]|=1024}}(i),function(e){for(var i=Ip(e);null!==i;i=Rp(i))for(var t=10;t<i.length;t++){var n=i[t],r=n[1];ap(n)&&zo(r,n,r.template,n[8])}}(i),null!==e.contentQueries&&uk(e,i),!a)if(o){var u=e.contentCheckHooks;null!==u&&mc(i,u)}else{var c=e.contentHooks;null!==c&&vc(i,c,1),fp(i,1)}!function(e,i){var t=e.hostBindingOpCodes;if(null!==t)try{for(var n=0;n<t.length;n++){var r=t[n];if(r<0)zr(~r);else{var a=r,o=t[++n],s=t[++n];lO(o,a),s(2,i[a])}}}finally{zr(-1)}}(e,i);var d=e.components;null!==d&&function(e,i){for(var t=0;t<i.length;t++)sN(e,i[t])}(i,d);var f=e.viewQuery;if(null!==f&&hg(2,f,n),!a)if(o){var _=e.viewCheckHooks;null!==_&&mc(i,_)}else{var b=e.viewHooks;null!==b&&vc(i,b,2),fp(i,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(i[2]&=-73),1024&i[2]&&(i[2]&=-1025,op(i[3],-1))}finally{pc()}}}function UP(e,i,t,n){var r=i[10],a=!dc(),o=Mb(i);try{a&&!o&&r.begin&&r.begin(),o&&Ml(e,i,n),zo(e,i,t,n)}finally{a&&!o&&r.end&&r.end()}}function ck(e,i,t,n,r){var a=wn(),o=2&n;try{zr(-1),o&&i.length>20&&ZC(e,i,20,dc()),t(n,r)}finally{zr(a)}}function dk(e,i,t){if(Zh(i))for(var r=i.directiveEnd,a=i.directiveStart;a<r;a++){var o=e.data[a];o.contentQueries&&o.contentQueries(1,t[a],a)}}function ag(e,i,t){!Db()||(function(e,i,t,n){var r=t.directiveStart,a=t.directiveEnd;e.firstCreatePass||ol(t,i),ln(n,i);for(var o=t.initialInputs,s=r;s<a;s++){var l=e.data[s],u=bi(l);u&&nN(i,t,l);var c=sl(i,e,s,t);ln(c,i),null!==o&&iN(0,s-r,c,l,0,o),u&&(Vn(t.index,i)[8]=c)}}(e,i,t,Bn(t,i)),128==(128&t.flags)&&function(e,i,t){var n=t.directiveStart,r=t.directiveEnd,o=t.index,s=Me.lFrame.currentDirectiveIndex;try{zr(o);for(var l=n;l<r;l++){var u=e.data[l],c=i[l];up(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&yk(u,c)}}finally{zr(-1),up(s)}}(e,i,t))}function og(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bn,n=i.localNames;if(null!==n)for(var r=i.index+1,a=0;a<n.length;a+=2){var o=n[a+1],s=-1===o?t(i,e):e[o];e[r++]=s}}function fk(e){var i=e.tView;return null===i||i.incompleteFirstPass?e.tView=Hc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):i}function Hc(e,i,t,n,r,a,o,s,l,u){var c=20+n,d=c+r,f=function(e,i){for(var t=[],n=0;n<i;n++)t.push(n<e?null:Ee);return t}(c,d),_="function"==typeof u?u():u;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:s,declTNode:i,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,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 a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:_,incompleteFirstPass:!1}}function gk(e,i,t,n){var r=Sk(i);null===t?r.push(n):(r.push(t),e.firstCreatePass&&Dk(e).push(n,r.length-1))}function mk(e,i,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];(t=null===t?{}:t).hasOwnProperty(n)?t[n].push(i,r):t[n]=[i,r]}return t}function Un(e,i,t,n,r,a,o,s){var c,l=Bn(i,t),u=i.inputs;!s&&null!=u&&(c=u[n])?(xk(e,t,c,n,r),lc(i)&&function(e,i){var t=Vn(i,e);16&t[2]||(t[2]|=64)}(t,i.index)):3&i.type&&(n=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=o?o(r,i.value||"",n):r,Pt(a)?a.setProperty(l,n,r):pp(n)||(l.setProperty?l.setProperty(n,r):l[n]=r))}function sg(e,i,t,n){var r=!1;if(Db()){var a=function(e,i,t){var n=e.directiveRegistry,r=null;if(n)for(var a=0;a<n.length;a++){var o=n[a];XC(t,o.selectors,!1)&&(r||(r=[]),kc(ol(t,i),e,o.type),bi(o)?(bk(e,t),r.unshift(o)):r.push(o))}return r}(e,i,t),o=null===n?null:{"":-1};if(null!==a){r=!0,Ck(t,e.data.length,a.length);for(var s=0;s<a.length;s++){var l=a[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,d=jo(e,i,a.length,null),f=0;f<a.length;f++){var _=a[f];t.mergedAttrs=yc(t.mergedAttrs,_.hostAttrs),kk(e,t,i,d,_),tN(d,_,o),null!==_.contentQueries&&(t.flags|=8),(null!==_.hostBindings||null!==_.hostAttrs||0!==_.hostVars)&&(t.flags|=128);var b=_.type.prototype;!u&&(b.ngOnChanges||b.ngOnInit||b.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),u=!0),!c&&(b.ngOnChanges||b.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),c=!0),d++}!function(e,i){for(var n=i.directiveEnd,r=e.data,a=i.attrs,o=[],s=null,l=null,u=i.directiveStart;u<n;u++){var c=r[u],d=c.inputs,f=null===a||$C(i)?null:rN(d,a);o.push(f),s=mk(d,u,s),l=mk(c.outputs,u,l)}null!==s&&(s.hasOwnProperty("class")&&(i.flags|=16),s.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=s,i.outputs=l}(e,t)}o&&function(e,i,t){if(i)for(var n=e.localNames=[],r=0;r<i.length;r+=2){var a=t[i[r+1]];if(null==a)throw new Br("301","Export of name '".concat(i[r+1],"' not found!"));n.push(i[r],a)}}(t,n,o)}return t.mergedAttrs=yc(t.mergedAttrs,t.attrs),r}function _k(e,i,t,n,r,a){var o=a.hostBindings;if(o){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~i.index;(function(e){for(var i=e.length;i>0;){var t=e[--i];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(n,r,o)}}function yk(e,i){null!==e.hostBindings&&e.hostBindings(1,i)}function bk(e,i){i.flags|=2,(e.components||(e.components=[])).push(i.index)}function tN(e,i,t){if(t){if(i.exportAs)for(var n=0;n<i.exportAs.length;n++)t[i.exportAs[n]]=e;bi(i)&&(t[""]=e)}}function Ck(e,i,t){e.flags|=1,e.directiveStart=i,e.directiveEnd=i+t,e.providerIndexes=i}function kk(e,i,t,n,r){e.data[n]=r;var a=r.factory||(r.factory=Sa(r.type)),o=new rl(a,bi(r),null);e.blueprint[n]=o,t[n]=o,_k(e,i,0,n,jo(e,t,r.hostVars,Ee),r)}function nN(e,i,t){var n=Bn(i,e),r=fk(t),a=e[10],o=Gc(e,wl(e,r,null,t.onPush?64:16,n,i,a,a.createRenderer(n,t),null,null));e[i.index]=o}function Zi(e,i,t,n,r,a){var o=Bn(e,i);!function(e,i,t,n,r,a,o){if(null==a)Pt(e)?e.removeAttribute(i,r,t):i.removeAttribute(r);else{var s=null==o?Ae(a):o(a,n||"",r);Pt(e)?e.setAttribute(i,r,s,t):t?i.setAttributeNS(t,r,s):i.setAttribute(r,s)}}(i[11],o,a,e.value,t,n,r)}function iN(e,i,t,n,r,a){var o=a[i];if(null!==o)for(var s=n.setInput,l=0;l<o.length;){var u=o[l++],c=o[l++],d=o[l++];null!==s?n.setInput(t,d,u,c):t[c]=d}}function rN(e,i){for(var t=null,n=0;n<i.length;){var r=i[n];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,e[r],i[n+1])),n+=2}else n+=2;else n+=4}return t}function wk(e,i,t,n){return new Array(e,!0,!1,i,null,0,n,t,null,null)}function sN(e,i){var t=Vn(i,e);if(ap(t)){var n=t[1];80&t[2]?zo(n,t,n.template,t[8]):t[5]>0&&ug(t)}}function ug(e){for(var i=Ip(e);null!==i;i=Rp(i))for(var t=10;t<i.length;t++){var n=i[t];if(1024&n[2]){var r=n[1];zo(r,n,r.template,n[8])}else n[5]>0&&ug(n)}var o=e[1].components;if(null!==o)for(var s=0;s<o.length;s++){var l=Vn(o[s],e);ap(l)&&l[5]>0&&ug(l)}}function lN(e,i){var t=Vn(i,e),n=t[1];(function(e,i){for(var t=i.length;t<e.blueprint.length;t++)i.push(e.blueprint[t])})(n,t),Ml(n,t,t[8])}function Gc(e,i){return e[13]?e[14][4]=i:e[13]=i,e[14]=i,i}function cg(e){for(;e;){e[2]|=64;var i=_l(e);if(UR(e)&&!i)return e;e=i}return null}function fg(e,i,t){var n=i[10];n.begin&&n.begin();try{zo(e,i,e.template,t)}catch(r){throw Ak(i,r),r}finally{n.end&&n.end()}}function Mk(e){!function(e){for(var i=0;i<e.components.length;i++){var t=e.components[i],n=Ap(t),r=n[1];UP(r,n,r.template,t)}}(e[8])}function hg(e,i,t){dp(0),i(e,t)}var hN=function(){return Promise.resolve(null)}();function Sk(e){return e[7]||(e[7]=[])}function Dk(e){return e.cleanup||(e.cleanup=[])}function Ek(e,i,t){return(null===e||bi(e))&&(t=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[i.index])),t[11]}function Ak(e,i){var t=e[9],n=t?t.get(Ci,null):null;n&&n.handleError(i)}function xk(e,i,t,n,r){for(var a=0;a<t.length;){var o=t[a++],s=t[a++],l=i[o],u=e.data[o];null!==u.setInput?u.setInput(l,r,n,s):l[s]=r}}function mr(e,i,t){var n=cc(i,e);!function(e,i,t){Pt(e)?e.setValue(i,t):i.textContent=t}(e[11],n,t)}function Uc(e,i,t){var n=t?e.styles:null,r=t?e.classes:null,a=0;if(null!==i)for(var o=0;o<i.length;o++){var s=i[o];"number"==typeof s?a=s:1==a?r=Wh(r,s):2==a&&(n=Wh(n,s+": "+i[++o]+";"))}t?e.styles=n:e.stylesWithoutHost=n,t?e.classes=r:e.classesWithoutHost=r}var jc=new V("INJECTOR",-1),Tk=function(){function e(){p(this,e)}return h(e,[{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;if(n===fl){var r=new Error("NullInjectorError: No provider for ".concat(Be(t),"!"));throw r.name="NullInjectorError",r}return n}}]),e}(),Sl=new V("Set Injector scope."),Dl={},mN={},pg=void 0;function Ik(){return void 0===pg&&(pg=new Tk),pg}function Rk(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new _N(e,t,i||Ik(),n)}var _N=function(){function e(i,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&Ki(t,function(l){return r.processProvider(l,i,t)}),Ki([i],function(l){return r.processInjectorType(l,[],o)}),this.records.set(jc,Wo(void 0,this));var s=this.records.get(Sl);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof i?null:Be(i))}return h(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.Default;this.assertNotDestroyed();var a=Ec(this),o=Hr(void 0);try{if(!(r&Ue.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=DN(t)&&Vr(t);s=l&&this.injectableDefInScope(l)?Wo(gg(t),Dl):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var u=r&Ue.Self?Ik():this.parent;return u.get(t,n=r&Ue.Optional&&n===fl?null:n)}catch(d){if("NullInjectorError"===d.name){var c=d[No]=d[No]||[];if(c.unshift(Be(t)),a)throw d;return QO(d,t,"R3InjectorError",this.source)}throw d}finally{Hr(o),Ec(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(r,a){return t.push(Be(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,r){var a=this;if(!(t=_e(t)))return!1;var o=lb(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==r.indexOf(l);if(void 0!==s&&(o=lb(s)),null==o)return!1;if(null!=o.imports&&!d){var f;r.push(l);try{Ki(o.imports,function(E){a.processInjectorType(E,n,r)&&(void 0===f&&(f=[]),f.push(E))})}finally{}if(void 0!==f)for(var _=function(){var N=f[b],z=N.ngModule,re=N.providers;Ki(re,function(Z){return a.processProvider(Z,z,re||st)})},b=0;b<f.length;b++)_()}this.injectorDefTypes.add(l);var C=Sa(l)||function(){return new l};this.records.set(l,Wo(C,Dl));var S=o.providers;if(null!=S&&!d){var I=t;Ki(S,function(E){return a.processProvider(E,I,S)})}return void 0!==s&&void 0!==t.providers}},{key:"processProvider",value:function(t,n,r){var a=Yo(t=_e(t))?t:_e(t&&t.provide),o=function(e,i,t){return Fk(e)?Wo(void 0,e.useValue):Wo(Ok(e),Dl)}(t);if(Yo(t)||!0!==t.multi)this.records.get(a);else{var s=this.records.get(a);s||((s=Wo(void 0,Dl,!0)).factory=function(){return Aa(s.multi)},this.records.set(a,s)),a=t,s.multi.push(t)}this.records.set(a,o)}},{key:"hydrate",value:function(t,n){return n.value===Dl&&(n.value=mN,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}},{key:"injectableDefInScope",value:function(t){if(!t.providedIn)return!1;var n=_e(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}]),e}();function gg(e){var i=Vr(e),t=null!==i?i.factory:Sa(e);if(null!==t)return t;if(e instanceof V)throw new Error("Token ".concat(Be(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var i=e.length;if(i>0){var t=Yr(i,"?");throw new Error("Can't resolve all parameters for ".concat(Be(e),": (").concat(t.join(", "),")."))}var n=function(e){var i=e&&(e[ic]||e[ub]);if(i){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var i=(""+e).match(/^function\s*([^\s(]+)/);return null===i?"":i[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" 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(t,'" class.')),i}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ok(e,i,t){var n=void 0;if(Yo(e)){var r=_e(e);return Sa(r)||gg(r)}if(Fk(e))n=function(){return _e(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,ke(Aa(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return x(_e(e.useExisting))};else{var a=_e(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Sa(a)||gg(a);n=function(){return gi(a,ke(Aa(e.deps)))}}return n}function Wo(e,i){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:i,multi:t?[]:void 0}}function Fk(e){return null!==e&&"object"==typeof e&&Mp in e}function Yo(e){return"function"==typeof e}function DN(e){return"function"==typeof e||"object"==typeof e&&e instanceof V}var Pk=function(e,i,t){return function(e){var r=Rk(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 r._resolveInjectorDefTypes(),r}({name:t},i,e,t)},at=function(){var e=function(){function i(){p(this,i)}return h(i,null,[{key:"create",value:function(n,r){return Array.isArray(n)?Pk(n,r,""):Pk(n.providers,n.parent,n.name||"")}}]),i}();return e.THROW_IF_NOT_FOUND=fl,e.NULL=new Tk,e.\u0275prov=G({token:e,providedIn:"any",factory:function(){return x(jc)}}),e.__NG_ELEMENT_ID__=-1,e}();function qN(e,i){gc(Ap(e)[1],qt())}function R(e){for(var i=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];i;){var r=void 0;if(bi(e))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Error("Directives cannot inherit Components");r=i.\u0275dir}if(r){if(t){n.push(r);var a=e;a.inputs=yg(e.inputs),a.declaredInputs=yg(e.declaredInputs),a.outputs=yg(e.outputs);var o=r.hostBindings;o&&XN(e,o);var s=r.viewQuery,l=r.contentQueries;if(s&&KN(e,s),l&&$N(e,l),zh(e.inputs,r.inputs),zh(e.declaredInputs,r.declaredInputs),zh(e.outputs,r.outputs),bi(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d<c.length;d++){var f=c[d];f&&f.ngInherit&&f(e),f===R&&(t=!1)}}i=Object.getPrototypeOf(i)}!function(e){for(var i=0,t=null,n=e.length-1;n>=0;n--){var r=e[n];r.hostVars=i+=r.hostVars,r.hostAttrs=yc(r.hostAttrs,t=yc(t,r.hostAttrs))}}(n)}function yg(e){return e===ko?{}:e===st?[]:e}function KN(e,i){var t=e.viewQuery;e.viewQuery=t?function(n,r){i(n,r),t(n,r)}:i}function $N(e,i){var t=e.contentQueries;e.contentQueries=t?function(n,r,a){i(n,r,a),t(n,r,a)}:i}function XN(e,i){var t=e.hostBindings;e.hostBindings=t?function(n,r){i(n,r),t(n,r)}:i}var zc=null;function Qo(){if(!zc){var e=tt.Symbol;if(e&&e.iterator)zc=e.iterator;else for(var i=Object.getOwnPropertyNames(Map.prototype),t=0;t<i.length;++t){var n=i[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(zc=n)}}return zc}var Ra=function(){function e(i){p(this,e),this.wrapped=i}return h(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 Al(e){return!!bg(e)&&(Array.isArray(e)||!(e instanceof Map)&&Qo()in e)}function bg(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function er(e,i,t){return e[i]=t}function un(e,i,t){return!Object.is(e[i],t)&&(e[i]=t,!0)}function Oa(e,i,t,n){var r=un(e,i,t);return un(e,i+1,n)||r}function ee(e,i,t,n){var r=Q();return un(r,Ao(),i)&&(qe(),Zi(Et(),r,e,i,t,n)),ee}function $o(e,i,t,n){return un(e,Ao(),t)?i+Ae(t)+n:Ee}function F(e,i,t,n,r,a,o,s){var l=Q(),u=qe(),c=e+20,d=u.firstCreatePass?function(e,i,t,n,r,a,o,s,l){var u=i.consts,c=Uo(i,e,4,o||null,jr(u,s));sg(i,t,c,jr(u,l)),gc(i,c);var d=c.tViews=Hc(2,c,n,r,a,i.directiveRegistry,i.pipeRegistry,null,i.schemas,u);return null!==i.queries&&(i.queries.template(i,c),d.queries=i.queries.embeddedTView(c)),c}(c,u,l,i,t,n,r,a,o):u.data[c];qi(d,!1);var f=l[11].createComment("");Ic(u,l,f,d),ln(f,l),Gc(l,l[c]=wk(f,l,f,d)),uc(d)&&ag(u,l,d),null!=o&&og(l,d,s)}function v(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default,t=Q();if(null===t)return x(e,i);var n=qt();return zb(n,t,_e(e),i)}function D(e,i,t){var n=Q();return un(n,Ao(),i)&&Un(qe(),Et(),n,e,i,n[11],t,!1),D}function Mg(e,i,t,n,r){var o=r?"class":"style";xk(e,t,i.inputs[o],o,n)}function g(e,i,t,n){var r=Q(),a=qe(),o=20+e,s=r[11],l=r[o]=Fp(s,i,Me.lFrame.currentNamespace),u=a.firstCreatePass?function(e,i,t,n,r,a,o){var s=i.consts,u=Uo(i,e,2,r,jr(s,a));return sg(i,t,u,jr(s,o)),null!==u.attrs&&Uc(u,u.attrs,!1),null!==u.mergedAttrs&&Uc(u,u.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,u),u}(o,a,r,0,i,t,n):a.data[o];qi(u,!0);var c=u.mergedAttrs;null!==c&&_c(s,l,c);var d=u.classes;null!==d&&Gp(s,l,d);var f=u.styles;null!==f&&SC(s,l,f),64!=(64&u.flags)&&Ic(a,r,l,u),0===Me.lFrame.elementDepthCount&&ln(l,r),Me.lFrame.elementDepthCount++,uc(u)&&(ag(a,r,u),dk(a,u,r)),null!==n&&og(r,u)}function m(){var e=qt();sp()?lp():qi(e=e.parent,!1);var i=e;Me.lFrame.elementDepthCount--;var t=qe();t.firstCreatePass&&(gc(t,e),Zh(e)&&t.queries.elementEnd(e)),null!=i.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(i)&&Mg(t,i,Q(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(i)&&Mg(t,i,Q(),i.stylesWithoutHost,!1)}function U(e,i,t,n){g(e,i,t,n),m()}function Di(e,i,t){var n=Q(),r=qe(),a=e+20,o=r.firstCreatePass?function(e,i,t,n,r){var a=i.consts,o=jr(a,n),s=Uo(i,e,8,"ng-container",o);return null!==o&&Uc(s,o,!0),sg(i,t,s,jr(a,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(a,r,n,i,t):r.data[a];qi(o,!0);var s=n[a]=n[11].createComment("");Ic(r,n,s,o),ln(s,n),uc(o)&&(ag(r,n,o),dk(r,o,n)),null!=t&&og(n,o)}function Ei(){var e=qt(),i=qe();sp()?lp():qi(e=e.parent,!1),i.firstCreatePass&&(gc(i,e),Zh(e)&&i.queries.elementEnd(e))}function lt(){return Q()}function Yc(e){return!!e&&"function"==typeof e.then}function pw(e){return!!e&&"function"==typeof e.subscribe}var Sg=pw;function q(e,i,t,n){var r=Q(),a=qe(),o=qt();return gw(a,r,r[11],o,e,i,!!t,n),q}function Fa(e,i){var t=qt(),n=Q(),r=qe();return gw(r,n,Ek(cp(r.data),t,n),t,e,i,!1),Fa}function gw(e,i,t,n,r,a,o,s){var l=uc(n),c=e.firstCreatePass&&Dk(e),d=i[8],f=Sk(i),_=!0;if(3&n.type||s){var b=Bn(n,i),C=s?s(b):b,S=f.length,I=s?function(pi){return s(Ht(pi[n.index]))}:n.index;if(Pt(t)){var E=null;if(!s&&l&&(E=function(e,i,t,n){var r=e.cleanup;if(null!=r)for(var a=0;a<r.length-1;a+=2){var o=r[a];if(o===t&&r[a+1]===n){var s=i[7],l=r[a+2];return s.length>l?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,i,r,n.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=a,E.__ngLastListenerFn__=a,_=!1;else{a=Dg(n,i,d,a,!1);var z=t.listen(C,r,a);f.push(a,z),c&&c.push(r,I,S,S+1)}}else a=Dg(n,i,d,a,!0),C.addEventListener(r,a,o),f.push(a),c&&c.push(r,I,S,o)}else a=Dg(n,i,d,a,!1);var Z,re=n.outputs;if(_&&null!==re&&(Z=re[r])){var pe=Z.length;if(pe)for(var Ne=0;Ne<pe;Ne+=2){var hi=i[Z[Ne]][Z[Ne+1]].subscribe(a),rn=f.length;f.push(a,hi),c&&c.push(r,n.index,rn,-(rn+1))}}}function mw(e,i,t,n){try{return!1!==t(n)}catch(r){return Ak(e,r),!1}}function Dg(e,i,t,n,r){return function a(o){if(o===Function)return n;var s=2&e.flags?Vn(e.index,i):i;0==(32&i[2])&&cg(s);for(var l=mw(i,0,n,o),u=a.__ngNextListenerFn__;u;)l=mw(i,0,u,o)&&l,u=u.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return dO(e)}function R2(e,i){for(var t=null,n=function(e){var i=e.attrs;if(null!=i){var t=i.indexOf(5);if(0==(1&t))return i[t+1]}return null}(e),r=0;r<i.length;r++){var a=i[r];if("*"!==a){if(null===n?XC(e,a,!0):EP(n,a))return r}else t=r}return t}function be(e){var i=Q()[16][6];if(!i.projection)for(var n=i.projection=Yr(e?e.length:1,null),r=n.slice(),a=i.child;null!==a;){var o=e?R2(a,e):0;null!==o&&(r[o]?r[o].projectionNext=a:n[o]=a,r[o]=a),a=a.next}}function se(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Q(),r=qe(),a=Uo(r,20+e,16,null,t||null);null===a.projection&&(a.projection=i),lp(),64!=(64&a.flags)&&DF(r,n,a)}function H(e,i,t){return Ce(e,"",i,"",t),H}function Ce(e,i,t,n,r){var a=Q(),o=$o(a,i,t,n);return o!==Ee&&Un(qe(),Et(),a,e,o,a[11],r,!1),Ce}function Fe(e,i,t,n,r,a,o){var s=Q(),l=function(e,i,t,n,r,a){var s=Oa(e,Qi(),t,r);return hr(2),s?i+Ae(t)+n+Ae(r)+a:Ee}(s,i,t,n,r,a);return l!==Ee&&Un(qe(),Et(),s,e,l,s[11],o,!1),Fe}function Mw(e,i,t,n,r){for(var a=e[t+1],o=null===i,s=n?wi(a):pr(a),l=!1;0!==s&&(!1===l||o);){var c=e[s+1];P2(e[s],i)&&(l=!0,e[s+1]=n?Xp(c):Kp(c)),s=n?wi(c):pr(c)}l&&(e[t+1]=n?Kp(a):Xp(a))}function P2(e,i){return null===e||null==i||(Array.isArray(e)?e[1]:e)===i||!(!Array.isArray(e)||"string"!=typeof i)&&Po(e,i)>=0}var $t={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sw(e){return e.substring($t.key,$t.keyEnd)}function Dw(e,i){var t=$t.textEnd;return t===i?-1:(i=$t.keyEnd=function(e,i,t){for(;i<t&&e.charCodeAt(i)>32;)i++;return i}(e,$t.key=i,t),as(e,i,t))}function as(e,i,t){for(;i<t&&e.charCodeAt(i)<=32;)i++;return i}function St(e,i,t){return Ai(e,i,t,!1),St}function ie(e,i){return Ai(e,i,null,!0),ie}function nr(e,i){for(var t=function(e){return function(e){$t.key=0,$t.keyEnd=0,$t.value=0,$t.valueEnd=0,$t.textEnd=e.length}(e),Dw(e,as(e,0,$t.textEnd))}(i);t>=0;t=Dw(i,t))Hn(e,Sw(i),!0)}function Ai(e,i,t,n){var r=Q(),a=qe(),o=hr(2);a.firstUpdatePass&&Rw(a,e,o,n),i!==Ee&&un(r,o,i)&&Fw(a,a.data[wn()],r,r[11],e,r[o+1]=function(e,i){return null==e||("string"==typeof i?e+=i:"object"==typeof e&&(e=Be(Gn(e)))),e}(i,t),n,o)}function Iw(e,i){return i>=e.expandoStartIndex}function Rw(e,i,t,n){var r=e.data;if(null===r[t+1]){var a=r[wn()],o=Iw(e,t);Nw(a,n)&&null===i&&!o&&(i=!1),i=function(e,i,t,n){var r=cp(e),a=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(t=Tl(t=Eg(null,e,i,t,n),i.attrs,n),a=null);else{var s=i.directiveStylingLast;if(-1===s||e[s]!==r)if(t=Eg(r,e,i,t,n),null===a){var u=function(e,i,t){var n=t?i.classBindings:i.styleBindings;if(0!==pr(n))return e[wi(n)]}(e,i,n);void 0!==u&&Array.isArray(u)&&function(e,i,t,n){e[wi(t?i.classBindings:i.styleBindings)]=n}(e,i,n,u=Tl(u=Eg(null,e,i,u[1],n),i.attrs,n))}else a=function(e,i,t){for(var n=void 0,r=i.directiveEnd,a=1+i.directiveStylingLast;a<r;a++)n=Tl(n,e[a].hostAttrs,t);return Tl(n,i.attrs,t)}(e,i,n)}return void 0!==a&&(n?i.residualClasses=a:i.residualStyles=a),t}(r,a,i,n),function(e,i,t,n,r,a){var o=a?i.classBindings:i.styleBindings,s=wi(o),l=pr(o);e[n]=t;var c,u=!1;if(Array.isArray(t)?(null===(c=t[1])||Po(t,c)>0)&&(u=!0):c=t,r)if(0!==l){var _=wi(e[s+1]);e[n+1]=Lc(_,s),0!==_&&(e[_+1]=$p(e[_+1],n)),e[s+1]=function(e,i){return 131071&e|i<<17}(e[s+1],n)}else e[n+1]=Lc(s,0),0!==s&&(e[s+1]=$p(e[s+1],n)),s=n;else e[n+1]=Lc(l,0),0===s?s=n:e[l+1]=$p(e[l+1],n),l=n;u&&(e[n+1]=Kp(e[n+1])),Mw(e,c,n,!0),Mw(e,c,n,!1),function(e,i,t,n,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof i&&Po(a,i)>=0&&(t[n+1]=Xp(t[n+1]))}(i,c,e,n,a),o=Lc(s,l),a?i.classBindings=o:i.styleBindings=o}(r,a,i,t,o,n)}}function Eg(e,i,t,n,r){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(n=Tl(n,(a=i[s]).hostAttrs,r),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),n}function Tl(e,i,t){var n=t?1:2,r=-1;if(null!==i)for(var a=0;a<i.length;a++){var o=i[a];"number"==typeof o?r=o:r===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Hn(e,o,!!t||i[++a]))}return void 0===e?null:e}function Fw(e,i,t,n,r,a,o,s){if(3&i.type){var l=e.data,u=l[s+1];qc(function(e){return 1==(1&e)}(u)?Pw(l,i,t,r,pr(u),o):void 0)||(qc(a)||function(e){return 2==(2&e)}(u)&&(a=Pw(l,null,t,r,s,o)),function(e,i,t,n,r){var a=Pt(e);if(i)r?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:Vo.DashCase;if(null==r)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=Vo.Important),a?e.setStyle(t,n,r,o):t.style.setProperty(n,r,s?"important":"")}}}(n,o,cc(wn(),t),r,a))}}function Pw(e,i,t,n,r,a){for(var o=null===i,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,f=t[r+1];f===Ee&&(f=d?st:void 0);var _=d?bp(f,n):c===n?f:void 0;if(u&&!qc(_)&&(_=bp(l,n)),qc(_)&&(s=_,o))return s;var b=e[r+1];r=o?wi(b):pr(b)}if(null!==i){var C=a?i.residualClasses:i.residualStyles;null!=C&&(s=bp(C,n))}return s}function qc(e){return void 0!==e}function Nw(e,i){return 0!=(e.flags&(i?16:32))}function M(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Q(),n=qe(),r=e+20,a=n.firstCreatePass?Uo(n,r,1,i,null):n.data[r],o=t[r]=Op(t[11],i);Ic(n,t,o,a),qi(a,!1)}function Ge(e){return cn("",e,""),Ge}function cn(e,i,t){var n=Q(),r=$o(n,e,i,t);return r!==Ee&&mr(n,wn(),r),cn}function Qc(e,i,t){!function(e,i,t,n){var r=qe(),a=hr(2);r.firstUpdatePass&&Rw(r,null,a,n);var o=Q();if(t!==Ee&&un(o,a,t)){var s=r.data[wn()];if(Nw(s,n)&&!Iw(r,a)){var u=n?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(t=Wh(u,t||"")),Mg(r,s,o,t,n)}else!function(e,i,t,n,r,a,o,s){r===Ee&&(r=st);for(var l=0,u=0,c=0<r.length?r[0]:null,d=0<a.length?a[0]:null;null!==c||null!==d;){var f=l<r.length?r[l+1]:void 0,_=u<a.length?a[u+1]:void 0,b=null,C=void 0;c===d?(l+=2,u+=2,f!==_&&(b=d,C=_)):null===d||null!==c&&c<d?(l+=2,b=c):(u+=2,b=d,C=_),null!==b&&Fw(e,i,t,n,b,C,o,s),c=l<r.length?r[l]:null,d=u<a.length?a[u]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function(e,i,t){if(null==t||""===t)return st;var n=[],r=Gn(t);if(Array.isArray(r))for(var a=0;a<r.length;a++)e(n,r[a],!0);else if("object"==typeof r)for(var o in r)r.hasOwnProperty(o)&&e(n,o,r[o]);else"string"==typeof r&&i(n,r);return n}(e,i,t),n,a)}}(Hn,nr,$o(Q(),e,i,t),!0)}function en(e,i,t){var n=Q();return un(n,Ao(),i)&&Un(qe(),Et(),n,e,i,n[11],t,!0),en}function Pa(e,i,t){var n=Q();if(un(n,Ao(),i)){var a=qe(),o=Et();Un(a,o,n,e,i,Ek(cp(a.data),o,n),t,!0)}return Pa}var Na=void 0,gL=["en",[["a","p"],["AM","PM"],Na],[["AM","PM"],Na,Na],[["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"]],Na,[["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"]],Na,[["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}",Na,"{1} 'at' {0}",Na],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var i=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===t?1:5}],os={};function tM(e){return e in os||(os[e]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[e]),os[e]}var kt=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}({}),Kc="en-US";function Ag(e){Nn(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function cB(e,i,t){var n=qe();if(n.firstCreatePass){var r=bi(e);Ig(t,n.data,n.blueprint,r,!0),Ig(i,n.data,n.blueprint,r,!1)}}function Ig(e,i,t,n,r){if(e=_e(e),Array.isArray(e))for(var a=0;a<e.length;a++)Ig(e[a],i,t,n,r);else{var o=qe(),s=Q(),l=Yo(e)?e:_e(e.provide),u=Ok(e),c=qt(),d=1048575&c.providerIndexes,f=c.directiveStart,_=c.providerIndexes>>20;if(Yo(e)||!e.multi){var b=new rl(u,r,v),C=Og(l,i,r?d:d+_,f);-1===C?(kc(ol(c,s),o,l),Rg(o,e,i.length),i.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),s.push(b)):(t[C]=b,s[C]=b)}else{var S=Og(l,i,d+_,f),I=Og(l,i,d,d+_),N=I>=0&&t[I];if(r&&!N||!r&&!(S>=0&&t[S])){kc(ol(c,s),o,l);var z=function(e,i,t,n,r){var a=new rl(e,t,v);return a.multi=[],a.index=i,a.componentProviders=0,DM(a,r,n&&!t),a}(r?fB:dB,t.length,r,n,u);!r&&N&&(t[I].providerFactory=z),Rg(o,e,i.length,0),i.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(z),s.push(z)}else Rg(o,e,S>-1?S:I,DM(t[r?I:S],u,!r&&n));!r&&n&&N&&t[I].componentProviders++}}}function Rg(e,i,t,n){var r=Yo(i);if(r||function(e){return!!e.useClass}(i)){var o=(i.useClass||i).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!r&&i.multi){var l=s.indexOf(t);-1===l?s.push(t,[n,o]):s[l+1].push(n,o)}else s.push(t,o)}}}function DM(e,i,t){return t&&e.componentProviders++,e.multi.push(i)-1}function Og(e,i,t,n){for(var r=t;r<n;r++)if(i[r]===e)return r;return-1}function dB(e,i,t,n){return Fg(this.multi,[])}function fB(e,i,t,n){var a,r=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=sl(t,t[1],this.providerFactory.index,n);Fg(r,a=s.slice(0,o));for(var l=o;l<s.length;l++)a.push(s[l])}else Fg(r,a=[]);return a}function Fg(e,i){for(var t=0;t<e.length;t++)i.push((0,e[t])());return i}function K(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,r){return cB(n,r?r(e):e,i)}}}var pB=h(function e(){p(this,e)}),EM=h(function e(){p(this,e)}),mB=function(){function e(){p(this,e)}return h(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var i=Error("No component factory found for ".concat(Be(e),". Did you add it to @NgModule.entryComponents?"));return i.ngComponent=e,i}(t)}}]),e}(),vr=function(){var e=h(function i(){p(this,i)});return e.NULL=new mB,e}();function ed(){}function ls(e,i){return new P(Bn(e,i))}var bB=function(){return ls(qt(),Q())},P=function(){var e=h(function i(t){p(this,i),this.nativeElement=t});return e.__NG_ELEMENT_ID__=bB,e}();function xM(e){return e instanceof P?e.nativeElement:e}var La=h(function e(){p(this,e)}),ir=function(){var e=h(function i(){p(this,i)});return e.__NG_ELEMENT_ID__=function(){return kB()},e}(),kB=function(){var e=Q(),t=Vn(qt().index,e);return function(e){return e[11]}(Yi(t)?t:e)},Pg=function(){var e=h(function i(){p(this,i)});return e.\u0275prov=G({token:e,providedIn:"root",factory:function(){return null}}),e}(),Kr=h(function e(i){p(this,e),this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}),SB=new Kr("12.2.17"),TM=function(){function e(){p(this,e)}return h(e,[{key:"supports",value:function(t){return Al(t)}},{key:"create",value:function(t){return new EB(t)}}]),e}(),DB=function(i,t){return t},EB=function(){function e(i){p(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=i||DB}return h(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,r=this._removalsHead,a=0,o=null;n||r;){var s=!r||n&&n.currentIndex<RM(r,a,o)?n:r,l=RM(s,a,o),u=s.currentIndex;if(s===r)a--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)a++;else{o||(o=[]);var c=l-a,d=u-a;if(c!=d){for(var f=0;f<c;f++){var _=f<o.length?o[f]:o[f]=0,b=_+f;d<=b&&b<c&&(o[f]=_+1)}o[s.previousIndex]=d-c}}l!==u&&t(s,l,u)}}},{key:"forEachPreviousItem",value:function(t){var n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}},{key:"forEachAddedItem",value:function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}},{key:"forEachMovedItem",value:function(t){var n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}},{key:"forEachRemovedItem",value:function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}},{key:"forEachIdentityChange",value:function(t){var n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Al(t))throw new Error("Error trying to diff '".concat(Be(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var n=this;this._reset();var o,s,l,r=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var u=0;u<this.length;u++)l=this._trackByFn(u,s=t[u]),null!==r&&Object.is(r.trackById,l)?(a&&(r=this._verifyReinsertion(r,s,l,u)),Object.is(r.item,s)||this._addIdentityChange(r,s)):(r=this._mismatch(r,s,l,u),a=!0),r=r._next}else o=0,function(e,i){if(Array.isArray(e))for(var t=0;t<e.length;t++)i(e[t]);else for(var r,n=e[Qo()]();!(r=n.next()).done;)i(r.value)}(t,function(c){l=n._trackByFn(o,c),null!==r&&Object.is(r.trackById,l)?(a&&(r=n._verifyReinsertion(r,c,l,o)),Object.is(r.item,c)||n._addIdentityChange(r,c)):(r=n._mismatch(r,c,l,o),a=!0),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=t,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 t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(t,n,r,a){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,a))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,a)):t=this._addAfter(new AB(n,r),o,a),t}},{key:"_verifyReinsertion",value:function(t,n,r,a){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}},{key:"_truncate",value:function(t){for(;null!==t;){var n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var a=t._prevRemoved,o=t._nextRemoved;return null===a?this._removalsHead=o:a._nextRemoved=o,null===o?this._removalsTail=a:o._prevRemoved=a,this._insertAfter(t,n,r),this._addToMoves(t,r),t}},{key:"_moveAfter",value:function(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}},{key:"_addAfter",value:function(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,n,r){var a=null===n?this._itHead:n._next;return t._next=a,t._prev=n,null===a?this._itTail=t:a._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new IM),this._linkedRecords.put(t),t.currentIndex=r,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}},{key:"_addToMoves",value:function(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new IM),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}},{key:"_addIdentityChange",value:function(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}]),e}(),AB=h(function e(i,t){p(this,e),this.item=i,this.trackById=t,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}),xB=function(){function e(){p(this,e),this._head=null,this._tail=null}return h(e,[{key:"add",value:function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}},{key:"get",value:function(t,n){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}},{key:"remove",value:function(t){var n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}]),e}(),IM=function(){function e(){p(this,e),this.map=new Map}return h(e,[{key:"put",value:function(t){var n=t.trackById,r=this.map.get(n);r||(r=new xB,this.map.set(n,r)),r.add(t)}},{key:"get",value:function(t,n){var a=this.map.get(t);return a?a.get(t,n):null}},{key:"remove",value:function(t){var n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function RM(e,i,t){var n=e.previousIndex;if(null===n)return n;var r=0;return t&&n<t.length&&(r=t[n]),n+i+r}var OM=function(){function e(){p(this,e)}return h(e,[{key:"supports",value:function(t){return t instanceof Map||bg(t)}},{key:"create",value:function(){return new TB}}]),e}(),TB=function(){function e(){p(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 h(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var n;for(n=this._mapHead;null!==n;n=n._next)t(n)}},{key:"forEachPreviousItem",value:function(t){var n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}},{key:"forEachChangedItem",value:function(t){var n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}},{key:"forEachAddedItem",value:function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}},{key:"forEachRemovedItem",value:function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||bg(t)))throw new Error("Error trying to diff '".concat(Be(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var n=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(o,s){if(r&&r.key===s)n._maybeAddToChanges(r,o),n._appendAfter=r,r=r._next;else{var l=n._getOrCreateRecordForKey(s,o);r=n._insertBeforeOrAppend(r,l)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var a=r;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,n){if(t){var r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}},{key:"_getOrCreateRecordForKey",value:function(t,n){if(this._records.has(t)){var r=this._records.get(t);this._maybeAddToChanges(r,n);var a=r._prev,o=r._next;return a&&(a._next=o),o&&(o._prev=a),r._next=null,r._prev=null,r}var s=new IB(t);return this._records.set(t,s),s.currentValue=n,this._addToAdditions(s),s}},{key:"_reset",value:function(){if(this.isDirty){var t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(function(r){return n(t[r],r)})}}]),e}(),IB=h(function e(i){p(this,e),this.key=i,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 FM(){return new Sn([new TM])}var Sn=function(){var e=function(){function i(t){p(this,i),this.factories=t}return h(i,[{key:"find",value:function(n){var r=this.factories.find(function(a){return a.supports(n)});if(null!=r)return r;throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'"))}}],[{key:"create",value:function(n,r){if(null!=r){var a=r.factories.slice();n=n.concat(a)}return new i(n)}},{key:"extend",value:function(n){return{provide:i,useFactory:function(a){return i.create(n,a||FM())},deps:[[i,new Rn,new Kt]]}}}]),i}();return e.\u0275prov=G({token:e,providedIn:"root",factory:FM}),e}();function PM(){return new $r([new OM])}var $r=function(){var e=function(){function i(t){p(this,i),this.factories=t}return h(i,[{key:"find",value:function(n){var r=this.factories.find(function(a){return a.supports(n)});if(r)return r;throw new Error("Cannot find a differ supporting object '".concat(n,"'"))}}],[{key:"create",value:function(n,r){if(r){var a=r.factories.slice();n=n.concat(a)}return new i(n)}},{key:"extend",value:function(n){return{provide:i,useFactory:function(a){return i.create(n,a||PM())},deps:[[i,new Rn,new Kt]]}}}]),i}();return e.\u0275prov=G({token:e,providedIn:"root",factory:PM}),e}();function td(e,i,t,n){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=i[t.index];if(null!==a&&n.push(Ht(a)),yi(a))for(var o=10;o<a.length;o++){var s=a[o],l=s[1].firstChild;null!==l&&td(s[1],s,l,n)}var u=t.type;if(8&u)td(e,i,t.child,n);else if(32&u)for(var c=Tp(t,i),d=void 0;d=c();)n.push(d);else if(16&u){var f=wC(i,t);if(Array.isArray(f))n.push.apply(n,ke(f));else{var _=_l(i[16]);td(_[1],_,f,n,!0)}}t=r?t.projectionNext:t.next}return n}var Pl=function(){function e(i,t){p(this,e),this._lView=i,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}return h(e,[{key:"rootNodes",get:function(){var t=this._lView,n=t[1];return td(n,t,n.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(t){this._lView[8]=t}},{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 t=this._lView[3];if(yi(t)){var n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Pp(t,r),Ea(n,r))}this._attachedToViewContainer=!1}pC(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){gk(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){cg(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){fg(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,i,t){fc(!0);try{fg(e,i,t)}finally{fc(!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(){this._appRef=null,function(e,i){yl(e,i,i[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),OB=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this,n))._view=n,r}return h(t,[{key:"detectChanges",value:function(){Mk(this._view)}},{key:"checkNoChanges",value:function(){!function(e){fc(!0);try{Mk(e)}finally{fc(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(Pl),PB=function(e){return function(e,i,t){if(lc(e)&&!t){var n=Vn(e.index,i);return new Pl(n,n)}return 47&e.type?new Pl(i[16],i):null}(qt(),Q(),16==(16&e))},ve=function(){var e=h(function i(){p(this,i)});return e.__NG_ELEMENT_ID__=PB,e}(),BB=[new OM],HB=new Sn([new TM]),GB=new $r(BB),jB=function(){return nd(qt(),Q())},ze=function(){var e=h(function i(){p(this,i)});return e.__NG_ELEMENT_ID__=jB,e}(),WB=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this))._declarationLView=n,o._declarationTContainer=r,o.elementRef=a,o}return h(t,[{key:"createEmbeddedView",value:function(r){var a=this._declarationTContainer.tViews,o=wl(this._declarationLView,a,r,16,null,a.declTNode,null,null,null,null);o[17]=this._declarationLView[this._declarationTContainer.index];var l=this._declarationLView[19];return null!==l&&(o[19]=l.createEmbeddedView(a)),Ml(a,o,r),new Pl(o)}}]),t}(ze);function nd(e,i){return 4&e.type?new WB(i,e,ls(e,i)):null}var us=h(function e(){p(this,e)}),qB=h(function e(){p(this,e)}),KB=function(){return BM(qt(),Q())},$e=function(){var e=h(function i(){p(this,i)});return e.__NG_ELEMENT_ID__=KB,e}(),NM=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this))._lContainer=n,o._hostTNode=r,o._hostLView=a,o}return h(t,[{key:"element",get:function(){return ls(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Io(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var r=Cc(this._hostTNode,this._hostLView);if(Vb(r)){var a=To(r,this._hostLView),o=xo(r);return new Io(a[1].data[o+8],a)}return new Io(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(r){var a=LM(this._lContainer);return null!==a&&a[r]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(r,a,o){var s=r.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(r,a,o,s,l){var u=o||this.parentInjector;if(!l&&null==r.ngModule&&u){var c=u.get(us,null);c&&(l=c)}var d=r.create(u,s,void 0,l);return this.insert(d.hostView,a),d}},{key:"insert",value:function(r,a){var o=r._lView,s=o[1];if(function(e){return yi(e[3])}(o)){var l=this.indexOf(r);if(-1!==l)this.detach(l);else{var u=o[3],c=new NM(u,u[6],u[3]);c.detach(c.indexOf(r))}}var d=this._adjustIndex(a),f=this._lContainer;!function(e,i,t,n){var r=10+n,a=t.length;n>0&&(t[r-1][4]=i),n<a-10?(i[4]=t[r],Sc(t,10+n,i)):(t.push(i),i[4]=null),i[3]=t;var o=i[17];null!==o&&t!==o&&function(e,i){var t=e[9];i[16]!==i[3][3][16]&&(e[2]=!0),null===t?e[9]=[i]:t.push(i)}(o,i);var s=i[19];null!==s&&s.insertView(e),i[2]|=128}(s,o,f,d);var _=Bp(d,f),b=o[11],C=Tc(b,f[7]);return null!==C&&function(e,i,t,n,r,a){n[0]=r,n[6]=i,yl(e,n,t,1,r,a)}(s,f[6],b,o,C,_),r.attachToViewContainerRef(),Sc(Ng(f),d,r),r}},{key:"move",value:function(r,a){return this.insert(r,a)}},{key:"indexOf",value:function(r){var a=LM(this._lContainer);return null!==a?a.indexOf(r):-1}},{key:"remove",value:function(r){var a=this._adjustIndex(r,-1),o=Pp(this._lContainer,a);o&&(Ea(Ng(this._lContainer),a),pC(o[1],o))}},{key:"detach",value:function(r){var a=this._adjustIndex(r,-1),o=Pp(this._lContainer,a);return o&&null!=Ea(Ng(this._lContainer),a)?new Pl(o):null}},{key:"_adjustIndex",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==r?this.length+a:r}}]),t}($e);function LM(e){return e[8]}function Ng(e){return e[8]||(e[8]=[])}function BM(e,i){var t,n=i[e.index];if(yi(n))t=n;else{var r;if(8&e.type)r=Ht(n);else{var a=i[11];r=a.createComment("");var o=Bn(e,i);xa(a,Tc(a,o),r,function(e,i){return Pt(e)?e.nextSibling(i):i.nextSibling}(a,o),!1)}i[e.index]=t=wk(n,i,r,e),Gc(i,t)}return new NM(t,e,i)}var ds={},iS=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this)).ngModule=n,r}return h(t,[{key:"resolveComponentFactory",value:function(r){var a=an(r);return new aS(a,this.ngModule)}}]),t}(vr);function rS(e){var i=[];for(var t in e)e.hasOwnProperty(t)&&i.push({propName:e[t],templateName:t});return i}var zV=new V("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return WC}}),aS=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this)).componentDef=n,a.ngModule=r,a.componentType=n.type,a.selector=function(e){return e.map(AP).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!r,a}return h(t,[{key:"inputs",get:function(){return rS(this.componentDef.inputs)}},{key:"outputs",get:function(){return rS(this.componentDef.outputs)}},{key:"create",value:function(r,a,o,s){var E,N,l=(s=s||this.ngModule)?function(e,i){return{get:function(n,r,a){var o=e.get(n,ds,a);return o!==ds||r===ds?o:i.get(n,r,a)}}}(r,s.injector):r,u=l.get(La,wb),c=l.get(Pg,null),d=u.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",_=o?function(e,i,t){if(Pt(e))return e.selectRootElement(i,t===vi.ShadowDom);var r="string"==typeof i?e.querySelector(i):i;return r.textContent="",r}(d,o,this.componentDef.encapsulation):Fp(u.createRenderer(null,this.componentDef),f,function(e){var i=e.toLowerCase();return"svg"===i?Cb:"math"===i?"http://www.w3.org/1998/MathML/":null}(f)),b=this.componentDef.onPush?576:528,C=function(e,i){return{components:[],scheduler:e||WC,clean:hN,playerHandler:i||null,flags:0}}(),S=Hc(0,null,null,1,0,null,null,null,null,null),I=wl(null,S,C,b,null,null,u,d,c,l);hc(I);try{var z=function(e,i,t,n,r,a){var o=t[1];t[20]=e;var l=Uo(o,20,2,"#host",null),u=l.mergedAttrs=i.hostAttrs;null!==u&&(Uc(l,u,!0),null!==e&&(_c(r,e,u),null!==l.classes&&Gp(r,e,l.classes),null!==l.styles&&SC(r,e,l.styles)));var c=n.createRenderer(e,i),d=wl(t,fk(i),null,i.onPush?64:16,t[20],l,n,c,a||null,null);return o.firstCreatePass&&(kc(ol(l,t),o,i.type),bk(o,l),Ck(l,t.length,1)),Gc(t,d),t[20]=d}(_,this.componentDef,I,u,d);if(_)if(o)_c(d,_,["ng-version",SB.full]);else{var re=function(e){for(var i=[],t=[],n=1,r=2;n<e.length;){var a=e[n];if("string"==typeof a)2===r?""!==a&&i.push(a,e[++n]):8===r&&t.push(a);else{if(!ki(r))break;r=a}n++}return{attrs:i,classes:t}}(this.componentDef.selectors[0]),Z=re.attrs,pe=re.classes;Z&&_c(d,_,Z),pe&&pe.length>0&&Gp(d,_,pe.join(" "))}if(N=rp(S,20),void 0!==a)for(var Ne=N.projection=[],ut=0;ut<this.ngContentSelectors.length;ut++){var bt=a[ut];Ne.push(null!=bt?Array.from(bt):null)}E=function(e,i,t,n,r){var a=t[1],o=function(e,i,t){var n=qt();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),kk(e,n,i,jo(e,i,1,null),t));var a=sl(i,e,n.directiveStart,n);ln(a,i);var o=Bn(n,i);return o&&ln(o,i),a}(a,t,i);if(n.components.push(o),e[8]=o,r&&r.forEach(function(c){return c(o,i)}),i.contentQueries){var s=qt();i.contentQueries(1,o,s.directiveStart)}var l=qt();return!a.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(zr(l.index),_k(t[1],l,0,l.directiveStart,l.directiveEnd,i),yk(i,o)),o}(z,this.componentDef,I,C,[qN]),Ml(S,I,null)}finally{pc()}return new qV(this.componentType,E,ls(N,I),I,N)}}]),t}(EM),qV=function(e){k(t,e);var i=w(t);function t(n,r,a,o,s){var l;return p(this,t),(l=i.call(this)).location=a,l._rootLView=o,l._tNode=s,l.instance=r,l.hostView=l.changeDetectorRef=new OB(o),l.componentType=n,l}return h(t,[{key:"injector",get:function(){return new Io(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(r){this.hostView.onDestroy(r)}}]),t}(pB),fs=new Map;var $V=function(e){k(t,e);var i=w(t);function t(n,r){var a;p(this,t),(a=i.call(this))._parent=r,a._bootstrapComponents=[],a.injector=et(a),a.destroyCbs=[],a.componentFactoryResolver=new iS(et(a));var o=$n(n),s=function(e){return e[FR]||null}(n);return s&&Ag(s),a._bootstrapComponents=Ji(o.bootstrap),a._r3Injector=Rk(n,r,[{provide:us,useValue:et(a)},{provide:vr,useValue:a.componentFactoryResolver}],Be(n)),a._r3Injector._resolveInjectorDefTypes(),a.instance=a.get(n),a}return h(t,[{key:"get",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.Default;return r===at||r===us||r===jc?this:this._r3Injector.get(r,a,o)}},{key:"destroy",value:function(){var r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(r){this.destroyCbs.push(r)}}]),t}(us),Qg=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this)).moduleType=n,null!==$n(n)&&function(e){var i=new Set;!function t(n){var r=$n(n,!0),a=r.id;null!==a&&(function(e,i,t){if(i&&i!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Be(i)," vs ").concat(Be(i.name)))}(a,fs.get(a),n),fs.set(a,n));var u,l=ct(Ji(r.imports));try{for(l.s();!(u=l.n()).done;){var c=u.value;i.has(c)||(i.add(c),t(c))}}catch(d){l.e(d)}finally{l.f()}}(e)}(n),r}return h(t,[{key:"create",value:function(r){return new $V(this.moduleType,r)}}]),t}(qB);function Ul(e,i,t,n,r){return function(e,i,t,n,r,a,o){var s=i+t;return Oa(e,s,r,a)?er(e,s+2,o?n.call(o,r,a):n(r,a)):jl(e,s+2)}(Q(),kn(),e,i,t,n,r)}function jl(e,i){var t=e[i];return t===Ee?void 0:t}function Ha(e,i){var n,t=qe(),r=e+20;t.firstCreatePass?(n=function(e,i){if(i)for(var t=i.length-1;t>=0;t--){var n=i[t];if(e===n.name)return n}throw new Br("302","The pipe '".concat(e,"' could not be found!"))}(i,t.pipeRegistry),t.data[r]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,n.onDestroy)):n=t.data[r];var a=n.factory||(n.factory=Sa(n.type)),o=Hr(v);try{var s=bc(!1),l=a();return bc(s),function(e,i,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),i[t]=n}(t,Q(),r,l),l}finally{Hr(o)}}function Ga(e,i,t){var n=e+20,r=Q(),a=Eo(r,n);return function(e,i){return Ra.isWrapped(i)&&(i=Ra.unwrap(i),e[Qi()]=Ee),i}(r,function(e,i){return e[1].data[i].pure}(r,n)?function(e,i,t,n,r,a){var o=i+t;return un(e,o,r)?er(e,o+1,a?n.call(a,r):n(r)):jl(e,o+1)}(r,kn(),i,a.transform,t,a):a.transform(t))}var d3=function(e){k(t,e);var i=w(t);function t(){var n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,t),(n=i.call(this)).__isAsync=r,n}return h(t,[{key:"emit",value:function(r){J(Y(t.prototype),"next",this).call(this,r)}},{key:"subscribe",value:function(r,a,o){var s,l,u,c=r,d=a||function(){return null},f=o;if(r&&"object"==typeof r){var _=r;c=null===(s=_.next)||void 0===s?void 0:s.bind(_),d=null===(l=_.error)||void 0===l?void 0:l.bind(_),f=null===(u=_.complete)||void 0===u?void 0:u.bind(_)}this.__isAsync&&(d=Kg(d),c&&(c=Kg(c)),f&&(f=Kg(f)));var b=J(Y(t.prototype),"subscribe",this).call(this,{next:c,error:d,complete:f});return r instanceof ye&&r.add(b),b}}]),t}($);function Kg(e){return function(i){setTimeout(e,void 0,i)}}var j=d3;function f3(){return this._results[Qo()]()}var Oi=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,e),this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Qo(),n=e.prototype;n[t]||(n[t]=f3)}return h(e,[{key:"changes",get:function(){return this._changes||(this._changes=new j)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var r=this;r.dirty=!1;var a=Zn(t);(this._changesDetected=!function(e,i,t){if(e.length!==i.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],a=i[n];if(t&&(r=t(r),a=t(a)),a!==r)return!1}return!0}(r._results,a,n))&&(r._results=a,r.length=a.length,r.last=a[this.length-1],r.first=a[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}();Symbol;var g3=function(){function e(i){p(this,e),this.queryList=i,this.matches=null}return h(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),m3=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,e),this.queries=i}return h(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o<r;o++){var s=n.getByIndex(o);a.push(this.queries[s.indexInDeclarationView].clone())}return new e(a)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var n=0;n<this.queries.length;n++)null!==vS(t,n).matches&&this.queries[n].setDirty()}}]),e}(),hS=h(function e(i,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;p(this,e),this.predicate=i,this.flags=t,this.read=n}),v3=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,e),this.queries=i}return h(e,[{key:"elementStart",value:function(t,n){for(var r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}},{key:"elementEnd",value:function(t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var a=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,a);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(t,n){for(var r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(t){this.queries.push(t)}}]),e}(),_3=function(){function e(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;p(this,e),this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return h(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{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(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,r=t.parent;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var r=this.metadata.predicate;if(Array.isArray(r))for(var a=0;a<r.length;a++){var o=r[a];this.matchTNodeWithReadOption(t,n,y3(n,o)),this.matchTNodeWithReadOption(t,n,wc(n,t,o,!1,!1))}else r===ze?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,wc(n,t,r,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(t,n,r){if(null!==r){var a=this.metadata.read;if(null!==a)if(a===P||a===$e||a===ze&&4&n.type)this.addMatch(n.index,-2);else{var o=wc(n,t,a,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}},{key:"addMatch",value:function(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}]),e}();function y3(e,i){var t=e.localNames;if(null!==t)for(var n=0;n<t.length;n+=2)if(t[n]===i)return t[n+1];return null}function C3(e,i,t,n){return-1===t?function(e,i){return 11&e.type?ls(e,i):4&e.type?nd(e,i):null}(i,e):-2===t?function(e,i,t){return t===P?ls(i,e):t===ze?nd(i,e):t===$e?BM(i,e):void 0}(e,i,n):sl(e,e[1],t,i)}function pS(e,i,t,n){var r=i[19].queries[n];if(null===r.matches){for(var a=e.data,o=t.matches,s=[],l=0;l<o.length;l+=2){var u=o[l];s.push(u<0?null:C3(i,a[u],o[l+1],t.metadata.read))}r.matches=s}return r.matches}function $g(e,i,t,n){var r=e.queries.getByIndex(t),a=r.matches;if(null!==a)for(var o=pS(e,i,r,t),s=0;s<a.length;s+=2){var l=a[s];if(l>0)n.push(o[s/2]);else{for(var u=a[s+1],c=i[-l],d=10;d<c.length;d++){var f=c[d];f[17]===f[3]&&$g(f[1],f,u,n)}if(null!==c[9])for(var _=c[9],b=0;b<_.length;b++){var C=_[b];$g(C[1],C,u,n)}}}return n}function L(e){var i=Q(),t=qe(),n=Tb();dp(n+1);var r=vS(t,n);if(e.dirty&&Mb(i)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var a=r.crossesNgTemplate?$g(t,i,n,[]):pS(t,i,r,n);e.reset(a,xM),e.notifyOnChanges()}return!0}return!1}function me(e,i,t){var n=qe();n.firstCreatePass&&(mS(n,new hS(e,i,t),-1),2==(2&i)&&(n.staticViewQueries=!0)),gS(n,Q(),i)}function he(e,i,t,n){var r=qe();if(r.firstCreatePass){var a=qt();mS(r,new hS(i,t,n),a.index),function(e,i){var t=e.contentQueries||(e.contentQueries=[]);i!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,i)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}gS(r,Q(),t)}function B(){return e=Q(),i=Tb(),e[19].queries[i].queryList;var e,i}function gS(e,i,t){var n=new Oi(4==(4&t));gk(e,i,n,n.destroy),null===i[19]&&(i[19]=new m3),i[19].queries.push(new g3(n))}function mS(e,i,t){null===e.queries&&(e.queries=new v3),e.queries.track(new _3(i,t))}function vS(e,i){return e.queries.getByIndex(i)}var dd=new V("Application Initializer"),ps=function(){var e=function(){function i(t){var n=this;p(this,i),this.appInits=t,this.resolve=ed,this.reject=ed,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(r,a){n.resolve=r,n.reject=a})}return h(i,[{key:"runInitializers",value:function(){var n=this;if(!this.initialized){var r=[],a=function(){n.done=!0,n.resolve()};if(this.appInits)for(var o=function(){var u=n.appInits[s]();if(Yc(u))r.push(u);else if(Sg(u)){var c=new Promise(function(d,f){u.subscribe({complete:d,error:f})});r.push(c)}},s=0;s<this.appInits.length;s++)o();Promise.all(r).then(function(){a()}).catch(function(l){n.reject(l)}),0===r.length&&a(),this.initialized=!0}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(dd,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),ql=new V("AppId"),sH={provide:ql,useFactory:function(){return"".concat(nm()).concat(nm()).concat(nm())},deps:[]};function nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var NS=new V("Platform Initializer"),fn=new V("Platform ID"),LS=new V("appBootstrapListener"),im=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"log",value:function(n){console.log(n)}},{key:"warn",value:function(n){console.warn(n)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),_r=new V("LocaleId"),BS=new V("DefaultCurrencyCode"),uH=h(function e(i,t){p(this,e),this.ngModuleFactory=i,this.componentFactories=t}),rm=function(i){return new Qg(i)},cH=rm,fH=function(i){return Promise.resolve(rm(i))},VS=function(i){var t=rm(i),r=Ji($n(i).declarations).reduce(function(a,o){var s=an(o);return s&&a.push(new aS(s)),a},[]);return new uH(t,r)},hH=VS,gH=function(i){return Promise.resolve(VS(i))},hd=function(){var e=function(){function i(){p(this,i),this.compileModuleSync=cH,this.compileModuleAsync=fH,this.compileModuleAndAllComponentsSync=hH,this.compileModuleAndAllComponentsAsync=gH}return h(i,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(n){}},{key:"getModuleId",value:function(n){}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),_H=function(){return Promise.resolve(0)}();function am(e){"undefined"==typeof Zone?_H.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var le=function(){function e(i){var t=i.enableLongStackTrace,n=void 0!==t&&t,r=i.shouldCoalesceEventChangeDetection,a=void 0!==r&&r,o=i.shouldCoalesceRunChangeDetection,s=void 0!==o&&o;if(p(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new j(!1),this.onMicrotaskEmpty=new j(!1),this.onStable=new j(!1),this.onError=new j(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&a,l.shouldCoalesceRunChangeDetection=s,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function(){var e=tt.requestAnimationFrame,i=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&i){var t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);var n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function(e){var i=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,sm(e),e.isCheckStableRunning=!0,om(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),sm(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(n,r,a,o,s,l){try{return HS(e),n.invokeTask(a,o,s,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&i(),GS(e)}},onInvoke:function(n,r,a,o,s,l,u){try{return HS(e),n.invoke(a,o,s,l,u)}finally{e.shouldCoalesceRunChangeDetection&&i(),GS(e)}},onHasTask:function(n,r,a,o){n.hasTask(a,o),r===a&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,sm(e),om(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:function(n,r,a,o){return n.handleError(a,o),e.runOutsideAngular(function(){return e.onError.emit(o)}),!1}})}(l)}return h(e,[{key:"run",value:function(t,n,r){return this._inner.run(t,n,r)}},{key:"runTask",value:function(t,n,r,a){var o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+a,t,bH,ed,ed);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}},{key:"runGuarded",value:function(t,n,r){return this._inner.runGuarded(t,n,r)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{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}(),bH={};function om(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 sm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function HS(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function GS(e){e._nesting--,om(e)}var wH=function(){function e(){p(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new j,this.onMicrotaskEmpty=new j,this.onStable=new j,this.onError=new j}return h(e,[{key:"run",value:function(t,n,r){return t.apply(n,r)}},{key:"runGuarded",value:function(t,n,r){return t.apply(n,r)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,n,r,a){return t.apply(n,r)}}]),e}(),lm=function(){var e=function(){function i(t){var n=this;p(this,i),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 h(i,[{key:"_watchAngularEvents",value:function(){var n=this;this._ngZone.onUnstable.subscribe({next:function(){n._didWork=!0,n._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.subscribe({next:function(){le.assertNotInAngularZone(),am(function(){n._isZoneStable=!0,n._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 n=this;if(this.isStable())am(function(){for(;0!==n._callbacks.length;){var a=n._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(n._didWork)}n._didWork=!1});else{var r=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(a){return!a.updateCb||!a.updateCb(r)||(clearTimeout(a.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(n){return{source:n.source,creationLocation:n.creationLocation,data:n.data}}):[]}},{key:"addCallback",value:function(n,r,a){var o=this,s=-1;r&&r>0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,r,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,r,a){return[]}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(le))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),US=function(){var e=function(){function i(){p(this,i),this._applications=new Map,um.addToWindow(this)}return h(i,[{key:"registerApplication",value:function(n,r){this._applications.set(n,r)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||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(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return um.findTestabilityInTree(this,n,r)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),um=new(function(){function e(){p(this,e)}return h(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,r){return null}}]),e}()),jS=!0,zS=!1;function cm(){return zS=!0,jS}var Fi,EH=function(e,i,t){var n=new Qg(t);return Promise.resolve(n)},WS=new V("AllowMultipleToken");function FH(e){if(Fi&&!Fi.destroyed&&!Fi.injector.get(WS,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fi=e.get(QS);var i=e.get(NS,null);return i&&i.forEach(function(t){return t()}),Fi}function YS(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(i),r=new V(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=qS();if(!o||o.injector.get(WS,!1))if(e)e(t.concat(a).concat({provide:r,useValue:!0}));else{var s=t.concat(a).concat({provide:r,useValue:!0},{provide:Sl,useValue:"platform"});FH(at.create({providers:s,name:n}))}return PH(r)}}function PH(e){var i=qS();if(!i)throw new Error("No platform exists!");if(!i.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return i}function qS(){return Fi&&!Fi.destroyed?Fi:null}var QS=function(){var e=function(){function i(t){p(this,i),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return h(i,[{key:"bootstrapModuleFactory",value:function(n,r){var a=this,u=function(e,i){return"noop"===e?new wH:("zone.js"===e?void 0:e)||new le({enableLongStackTrace:cm(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),c=[{provide:le,useValue:u}];return u.run(function(){var d=at.create({providers:c,parent:a.injector,name:n.moduleType.name}),f=n.create(d),_=f.injector.get(Ci,null);if(!_)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return u.runOutsideAngular(function(){var b=u.onError.subscribe({next:function(S){_.handleError(S)}});f.onDestroy(function(){dm(a._modules,f),b.unsubscribe()})}),function(e,i,t){try{var n=((b=f.injector.get(ps)).runInitializers(),b.donePromise.then(function(){return Ag(f.injector.get(_r,Kc)||Kc),a._moduleDoBootstrap(f),f}));return Yc(n)?n.catch(function(r){throw i.runOutsideAngular(function(){return e.handleError(r)}),r}):n}catch(r){throw i.runOutsideAngular(function(){return e.handleError(r)}),r}var b}(_,u)})}},{key:"bootstrapModule",value:function(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=KS({},a);return EH(0,0,n).then(function(s){return r.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var r=n.injector.get(Ua);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(a){return r.bootstrap(a)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(Be(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(r)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{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(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(at))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}();function KS(e,i){return Array.isArray(i)?i.reduce(KS,e):Object.assign(Object.assign({},e),i)}var Ua=function(){var e=function(){function i(t,n,r,a,o){var s=this;p(this,i),this._zone=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=o,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 Xe(function(c){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){c.next(s._stable),c.complete()})}),u=new Xe(function(c){var d;s._zone.runOutsideAngular(function(){d=s._zone.onStable.subscribe(function(){le.assertNotInAngularZone(),am(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,c.next(!0))})})});var f=s._zone.onUnstable.subscribe(function(){le.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){c.next(!1)}))});return function(){d.unsubscribe(),f.unsubscribe()}});this.isStable=Ke(l,u.pipe(ab()))}return h(i,[{key:"bootstrap",value:function(n,r){var o,a=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.");o=n instanceof EM?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);var s=function(e){return e.isBoundToModule}(o)?void 0:this._injector.get(us),u=o.create(at.NULL,[],r||o.selector,s),c=u.location.nativeElement,d=u.injector.get(lm,null),f=d&&u.injector.get(US);return d&&f&&f.registerApplication(c,d),u.onDestroy(function(){a.detachView(u.hostView),dm(a.components,u),f&&f.unregisterApplication(c)}),this._loadComponent(u),u}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var a,r=ct(this._views);try{for(r.s();!(a=r.n()).done;)a.value.detectChanges()}catch(c){r.e(c)}finally{r.f()}}catch(c){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(c)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var r=n;this._views.push(r),r.attachToAppRef(this)}},{key:"detachView",value:function(n){var r=n;dm(this._views,r),r.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(LS,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(le),x(at),x(Ci),x(vr),x(ps))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}();function dm(e,i){var t=e.indexOf(i);t>-1&&e.splice(t,1)}var JH=YS(null,"core",[{provide:fn,useValue:"unknown"},{provide:QS,deps:[at]},{provide:US,deps:[]},{provide:im,deps:[]}]),r4=[{provide:Ua,useClass:Ua,deps:[le,at,Ci,vr,ps]},{provide:zV,deps:[le],useFactory:function(e){var i=[];return e.onStable.subscribe(function(){for(;i.length;)i.pop()()}),function(t){i.push(t)}}},{provide:ps,useClass:ps,deps:[[new Kt,dd]]},{provide:hd,useClass:hd,deps:[]},sH,{provide:Sn,useFactory:function(){return HB},deps:[]},{provide:$r,useFactory:function(){return GB},deps:[]},{provide:_r,useFactory:function(e){return Ag(e=e||"undefined"!=typeof $localize&&$localize.locale||Kc),e},deps:[[new gl(_r),new Kt,new Rn]]},{provide:BS,useValue:"USD"}],o4=function(){var e=h(function i(t){p(this,i)});return e.\u0275fac=function(t){return new(t||e)(x(Ua))},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:r4}),e}(),bd=null;function rr(){return bd}var tG=h(function e(){p(this,e)}),oe=new V("DocumentToken"),Jl=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:nG,token:e,providedIn:"platform"}),e}();function nG(){return x(yD)}var yD=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a;return p(this,n),(a=t.call(this))._doc=r,a._init(),a}return h(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return rr().getBaseHref(this._doc)}},{key:"onPopState",value:function(a){var o=rr().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",a,!1),function(){return o.removeEventListener("popstate",a)}}},{key:"onHashChange",value:function(a){var o=rr().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",a,!1),function(){return o.removeEventListener("hashchange",a)}}},{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(a){this.location.pathname=a}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(a,o,s){bD()?this._history.pushState(a,o,s):this.location.hash=s}},{key:"replaceState",value:function(a,o,s){bD()?this._history.replaceState(a,o,s):this.location.hash=s}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Jl);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({factory:iG,token:e,providedIn:"platform"}),e}();function bD(){return!!window.history.pushState}function iG(){return new yD(x(oe))}function CD(e,i){if(0==e.length)return i;if(0==i.length)return e;var t=0;return e.endsWith("/")&&t++,i.startsWith("/")&&t++,2==t?e+i.substring(1):1==t?e+i:e+"/"+i}function kD(e){var i=e.match(/#|\?|$/),t=i&&i.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Wa(e){return e&&"?"!==e[0]?"?"+e:e}var Em=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:rG,token:e,providedIn:"root"}),e}();function rG(e){var i=x(oe).location;return new oG(x(Jl),i&&i.origin||"")}var aG=new V("appBaseHref"),oG=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o;if(p(this,n),(o=t.call(this))._platformLocation=r,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)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 o._baseHref=a,o}return h(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return CD(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+Wa(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+Wa(l));this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+Wa(l));this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(Em);return e.\u0275fac=function(t){return new(t||e)(x(Jl),x(aG,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),Am=function(){var e=function(){function i(t,n){var r=this;p(this,i),this._subject=new j,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=kD(wD(a)),this._platformStrategy.onPopState(function(o){r._subject.emit({url:r.path(!0),pop:!0,state:o.state,type:o.type})})}return h(i,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+Wa(r))}},{key:"normalize",value:function(n){return i.stripTrailingSlash(function(e,i){return e&&i.startsWith(e)?i.substring(e.length):i}(this._baseHref,wD(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wa(r)),a)}},{key:"replaceState",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wa(r)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var r,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(r=this._platformStrategy).historyGo)||void 0===a||a.call(r,n)}},{key:"onUrlChange",value:function(n){var r=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){r._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,r)})}},{key:"subscribe",value:function(n,r,a){return this._subject.subscribe({next:n,error:r,complete:a})}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Em),x(Jl))},e.normalizeQueryParams=Wa,e.joinWithSlash=CD,e.stripTrailingSlash=kD,e.\u0275prov=G({factory:sG,token:e,providedIn:"root"}),e}();function sG(){return new Am(x(Em),x(Jl))}function wD(e){return e.replace(/\/index.html$/,"")}var Zl=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}({}),gG=function(e){return function(e){var i=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=tM(i);if(t)return t;var n=i.split("-")[0];if(t=tM(n))return t;if("en"===n)return gL;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[kt.PluralCase]},Td=h(function e(){p(this,e)}),zG=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a;return p(this,n),(a=t.call(this)).locale=r,a}return h(n,[{key:"getPluralCategory",value:function(a,o){switch(gG(o||this.locale)(a)){case Zl.Zero:return"zero";case Zl.One:return"one";case Zl.Two:return"two";case Zl.Few:return"few";case Zl.Many:return"many";default:return"other"}}}]),n}(Td);return e.\u0275fac=function(t){return new(t||e)(x(_r))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}();function RD(e,i){i=encodeURIComponent(i);var n,t=ct(e.split(";"));try{for(t.s();!(n=t.n()).done;){var r=n.value,a=r.indexOf("="),s=Le(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),u=s[1];if(s[0].trim()===i)return decodeURIComponent(u)}}catch(c){t.e(c)}finally{t.f()}return null}var ar=function(){var e=function(){function i(t,n,r,a){p(this,i),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return h(i,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Al(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 n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var r=this._keyValueDiffer.diff(this._rawClass);r&&this._applyKeyValueChanges(r)}}},{key:"_applyKeyValueChanges",value:function(n){var r=this;n.forEachAddedItem(function(a){return r._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return r._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&r._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var r=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Be(a.item)));r._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return r._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var r=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return r._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return r._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var r=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return r._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return r._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,r){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){r?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(Sn),v($r),v(P),v(ir))},e.\u0275dir=A({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),YG=function(){function e(i,t,n,r){p(this,e),this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}return h(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}(),Cr=function(){var e=function(){function i(t,n,r){p(this,i),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return h(i,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}},{key:"_applyChanges",value:function(n){var r=this,a=[];n.forEachOperation(function(c,d,f){if(null==c.previousIndex){var _=r._viewContainer.createEmbeddedView(r._template,new YG(null,r._ngForOf,-1,-1),null===f?void 0:f),b=new OD(c,_);a.push(b)}else if(null==f)r._viewContainer.remove(null===d?void 0:d);else if(null!==d){var C=r._viewContainer.get(d);r._viewContainer.move(C,f);var S=new OD(c,C);a.push(S)}});for(var o=0;o<a.length;o++)this._perViewChange(a[o].view,a[o].record);for(var s=0,l=this._viewContainer.length;s<l;s++){var u=this._viewContainer.get(s);u.context.index=s,u.context.count=l,u.context.ngForOf=this._ngForOf}n.forEachIdentityChange(function(c){r._viewContainer.get(c.currentIndex).context.$implicit=c.item})}},{key:"_perViewChange",value:function(n,r){n.context.$implicit=r.item}}],[{key:"ngTemplateContextGuard",value:function(n,r){return!0}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v($e),v(ze),v(Sn))},e.\u0275dir=A({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),OD=h(function e(i,t){p(this,e),this.record=i,this.view=t}),Dt=function(){var e=function(){function i(t,n){p(this,i),this._viewContainer=t,this._context=new QG,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return h(i,[{key:"ngIf",set:function(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}},{key:"ngIfThen",set:function(n){FD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(n){FD("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v($e),v(ze))},e.\u0275dir=A({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),QG=h(function e(){p(this,e),this.$implicit=null,this.ngIf=null});function FD(e,i){if(i&&!i.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Be(i),"'."))}var Bm=function(){function e(i,t){p(this,e),this._viewContainerRef=i,this._templateRef=t,this._created=!1}return h(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(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}]),e}(),or=function(){var e=function(){function i(){p(this,i),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return h(i,[{key:"ngSwitch",set:function(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}},{key:"_matchCase",value:function(n){var r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}},{key:"_updateDefaultCases",value:function(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(var r=0;r<this._defaultViews.length;r++)this._defaultViews[r].enforceState(n)}}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=A({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Zr=function(){var e=function(){function i(t,n,r){p(this,i),this.ngSwitch=r,r._addCase(),this._view=new Bm(t,n)}return h(i,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v($e),v(ze),v(or,9))},e.\u0275dir=A({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Vm=function(){var e=h(function i(t,n,r){p(this,i),r._addDefault(new Bm(t,n))});return e.\u0275fac=function(t){return new(t||e)(v($e),v(ze),v(or,9))},e.\u0275dir=A({type:e,selectors:[["","ngSwitchDefault",""]]}),e}();var $G=function(){function e(){p(this,e)}return h(e,[{key:"createSubscription",value:function(t,n){return t.subscribe({next:n,error:function(a){throw a}})}},{key:"dispose",value:function(t){t.unsubscribe()}},{key:"onDestroy",value:function(t){t.unsubscribe()}}]),e}(),JG=new(function(){function e(){p(this,e)}return h(e,[{key:"createSubscription",value:function(t,n){return t.then(n,function(r){throw r})}},{key:"dispose",value:function(t){}},{key:"onDestroy",value:function(t){}}]),e}()),ZG=new $G,Gm=function(){var e=function(){function i(t){p(this,i),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return h(i,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}},{key:"_subscribe",value:function(n){var r=this;this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,function(a){return r._updateLatestValue(n,a)})}},{key:"_selectStrategy",value:function(n){if(Yc(n))return JG;if(pw(n))return ZG;throw function(e,i){return Error("InvalidPipeArgument: '".concat(i,"' for pipe '").concat(Be(e),"'"))}(i,n)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(ve,16))},e.\u0275pipe=In({name:"async",type:e,pure:!1}),e}(),ht=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[{provide:Td,useClass:zG}]}),e}();function Ya(e){return"browser"===e}function vs(e){return"server"===e}var Id,zm=h(function e(){p(this,e)}),_U=function(e){k(t,e);var i=w(t);function t(){var n;return p(this,t),(n=i.apply(this,arguments)).supportsDOMEvents=!0,n}return h(t)}(tG),yU=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"onAndCancel",value:function(r,a,o){return r.addEventListener(a,o,!1),function(){r.removeEventListener(a,o,!1)}}},{key:"dispatchEvent",value:function(r,a){r.dispatchEvent(a)}},{key:"remove",value:function(r){r.parentNode&&r.parentNode.removeChild(r)}},{key:"createElement",value:function(r,a){return(a=a||this.getDefaultDocument()).createElement(r)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(r){return r.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(r){return r instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(r,a){return"window"===a?window:"document"===a?r:"body"===a?r.body:null}},{key:"getBaseHref",value:function(r){var a=(iu=iu||document.querySelector("base"))?iu.getAttribute("href"):null;return null==a?null:function(e){(Id=Id||document.createElement("a")).setAttribute("href",e);var i=Id.pathname;return"/"===i.charAt(0)?i:"/".concat(i)}(a)}},{key:"resetBaseElement",value:function(){iu=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(r){return RD(document.cookie,r)}}],[{key:"makeCurrent",value:function(){!function(e){bd||(bd=e)}(new t)}}]),t}(_U),iu=null,BD=new V("TRANSITION_ID"),wU=[{provide:dd,useFactory:function(e,i,t){return function(){t.get(ps).donePromise.then(function(){for(var n=rr(),r=i.querySelectorAll('style[ng-transition="'.concat(e,'"]')),a=0;a<r.length;a++)n.remove(r[a])})}},deps:[BD,oe,at],multi:!0}],MU=function(){function e(){p(this,e)}return h(e,[{key:"addToWindow",value:function(t){tt.getAngularTestability=function(r){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(r,a);if(null==o)throw new Error("Could not find testability for element.");return o},tt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},tt.getAllAngularRootElements=function(){return t.getAllRootElements()},tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(function(a){var o=tt.getAllAngularTestabilities(),s=o.length,l=!1,u=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(c){c.whenStable(u)})})}},{key:"findTestabilityInTree",value:function(t,n,r){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:r?rr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){um=e}(new e)}}]),e}(),SU=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"build",value:function(){return new XMLHttpRequest}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),ru=new V("EventManagerPlugins"),Od=function(){var e=function(){function i(t,n){var r=this;p(this,i),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=r}),this._plugins=t.slice().reverse()}return h(i,[{key:"addEventListener",value:function(n,r,a){return this._findPluginFor(r).addEventListener(n,r,a)}},{key:"addGlobalEventListener",value:function(n,r,a){return this._findPluginFor(r).addGlobalEventListener(n,r,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var r=this._eventNameToPlugin.get(n);if(r)return r;for(var a=this._plugins,o=0;o<a.length;o++){var s=a[o];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error("No event manager plugin found for event ".concat(n))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(ru),x(le))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),Wm=function(){function e(i){p(this,e),this._doc=i}return h(e,[{key:"addGlobalEventListener",value:function(t,n,r){var a=rr().getGlobalEventTarget(this._doc,t);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(n));return this.addEventListener(a,n,r)}}]),e}(),HD=function(){var e=function(){function i(){p(this,i),this._stylesSet=new Set}return h(i,[{key:"addStyles",value:function(n){var r=this,a=new Set;n.forEach(function(o){r._stylesSet.has(o)||(r._stylesSet.add(o),a.add(o))}),this.onStylesAdded(a)}},{key:"onStylesAdded",value:function(n){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),au=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a;return p(this,n),(a=t.call(this))._doc=r,a._hostNodes=new Map,a._hostNodes.set(r.head,[]),a}return h(n,[{key:"_addStylesToHost",value:function(a,o,s){var l=this;a.forEach(function(u){var c=l._doc.createElement("style");c.textContent=u,s.push(o.appendChild(c))})}},{key:"addHost",value:function(a){var o=[];this._addStylesToHost(this._stylesSet,a,o),this._hostNodes.set(a,o)}},{key:"removeHost",value:function(a){var o=this._hostNodes.get(a);o&&o.forEach(GD),this._hostNodes.delete(a)}},{key:"onStylesAdded",value:function(a){var o=this;this._hostNodes.forEach(function(s,l){o._addStylesToHost(a,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(a){return a.forEach(GD)})}}]),n}(HD);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}();function GD(e){rr().remove(e)}var Ym={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/"},qm=/%COMP%/g,NU="_nghost-".concat("%COMP%"),LU="_ngcontent-".concat("%COMP%");function Fd(e,i,t){for(var n=0;n<i.length;n++){var r=i[n];Array.isArray(r)?Fd(e,r,t):(r=r.replace(qm,e),t.push(r))}return t}function zD(e){return function(i){if("__ngUnwrap__"===i)return e;!1===e(i)&&(i.preventDefault(),i.returnValue=!1)}}var Pd=function(){var e=function(){function i(t,n,r){p(this,i),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Qm(t)}return h(i,[{key:"createRenderer",value:function(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case vi.Emulated:var a=this.rendererByCompId.get(r.id);return a||(a=new UU(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,a)),a.applyToHost(n),a;case 1:case vi.ShadowDom:return new jU(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){var o=Fd(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Od),x(au),x(ql))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),Qm=function(){function e(i){p(this,e),this.eventManager=i,this.data=Object.create(null)}return h(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,n){return n?document.createElementNS(Ym[n]||n,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,n){t.appendChild(n)}},{key:"insertBefore",value:function(t,n,r){t&&t.insertBefore(n,r)}},{key:"removeChild",value:function(t,n){t&&t.removeChild(n)}},{key:"selectRootElement",value:function(t,n){var r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error('The selector "'.concat(t,'" did not match any elements'));return n||(r.textContent=""),r}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,n,r,a){if(a){n=a+":"+n;var o=Ym[a];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}},{key:"removeAttribute",value:function(t,n,r){if(r){var a=Ym[r];a?t.removeAttributeNS(a,n):t.removeAttribute("".concat(r,":").concat(n))}else t.removeAttribute(n)}},{key:"addClass",value:function(t,n){t.classList.add(n)}},{key:"removeClass",value:function(t,n){t.classList.remove(n)}},{key:"setStyle",value:function(t,n,r,a){a&(Vo.DashCase|Vo.Important)?t.style.setProperty(n,r,a&Vo.Important?"important":""):t.style[n]=r}},{key:"removeStyle",value:function(t,n,r){r&Vo.DashCase?t.style.removeProperty(n):t.style[n]=""}},{key:"setProperty",value:function(t,n,r){t[n]=r}},{key:"setValue",value:function(t,n){t.nodeValue=n}},{key:"listen",value:function(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,zD(r)):this.eventManager.addEventListener(t,n,zD(r))}}]),e}(),UU=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;p(this,t),(s=i.call(this,n)).component=a;var l=Fd(o+"-"+a.id,a.styles,[]);return r.addStyles(l),s.contentAttr=function(e){return LU.replace(qm,e)}(o+"-"+a.id),s.hostAttr=function(e){return NU.replace(qm,e)}(o+"-"+a.id),s}return h(t,[{key:"applyToHost",value:function(r){J(Y(t.prototype),"setAttribute",this).call(this,r,this.hostAttr,"")}},{key:"createElement",value:function(r,a){var o=J(Y(t.prototype),"createElement",this).call(this,r,a);return J(Y(t.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),t}(Qm),jU=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;p(this,t),(s=i.call(this,n)).sharedStylesHost=r,s.hostEl=a,s.shadowRoot=a.attachShadow({mode:"open"}),s.sharedStylesHost.addHost(s.shadowRoot);for(var l=Fd(o.id,o.styles,[]),u=0;u<l.length;u++){var c=document.createElement("style");c.textContent=l[u],s.shadowRoot.appendChild(c)}return s}return h(t,[{key:"nodeOrShadowRoot",value:function(r){return r===this.hostEl?this.shadowRoot:r}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(r,a){return J(Y(t.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(r),a)}},{key:"insertBefore",value:function(r,a,o){return J(Y(t.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(r),a,o)}},{key:"removeChild",value:function(r,a){return J(Y(t.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(r),a)}},{key:"parentNode",value:function(r){return this.nodeOrShadowRoot(J(Y(t.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(r)))}}]),t}(Qm),zU=function(){var e=function(i){k(n,i);var t=w(n);function n(r){return p(this,n),t.call(this,r)}return h(n,[{key:"supports",value:function(a){return!0}},{key:"addEventListener",value:function(a,o,s){var l=this;return a.addEventListener(o,s,!1),function(){return l.removeEventListener(a,o,s)}}},{key:"removeEventListener",value:function(a,o,s){return a.removeEventListener(o,s)}}]),n}(Wm);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),qD=["alt","control","meta","shift"],XU={"\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"},QD={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"},n5={alt:function(i){return i.altKey},control:function(i){return i.ctrlKey},meta:function(i){return i.metaKey},shift:function(i){return i.shiftKey}},i5=function(){var e=function(i){k(n,i);var t=w(n);function n(r){return p(this,n),t.call(this,r)}return h(n,[{key:"supports",value:function(a){return null!=n.parseEventName(a)}},{key:"addEventListener",value:function(a,o,s){var l=n.parseEventName(o),u=n.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return rr().onAndCancel(a,l.domEventName,u)})}}],[{key:"parseEventName",value:function(a){var o=a.toLowerCase().split("."),s=o.shift();if(0===o.length||"keydown"!==s&&"keyup"!==s)return null;var l=n._normalizeKey(o.pop()),u="";if(qD.forEach(function(d){var f=o.indexOf(d);f>-1&&(o.splice(f,1),u+=d+".")}),u+=l,0!=o.length||0===l.length)return null;var c={};return c.domEventName=s,c.fullKey=u,c}},{key:"getEventFullKey",value:function(a){var o="",s=function(e){var i=e.key;if(null==i){if(null==(i=e.keyIdentifier))return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===e.location&&QD.hasOwnProperty(i)&&(i=QD[i]))}return XU[i]||i}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),qD.forEach(function(l){l!=s&&(0,n5[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){n.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(Wm);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),qa=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return x($m)},token:e,providedIn:"root"}),e}(),$m=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a;return p(this,n),(a=t.call(this))._doc=r,a}return h(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case Zt.NONE:return o;case Zt.HTML:return $i(o,"HTML")?Gn(o):LC(this._doc,String(o)).toString();case Zt.STYLE:return $i(o,"Style")?Gn(o):o;case Zt.SCRIPT:if($i(o,"Script"))return Gn(o);throw new Error("unsafe value used in a script context");case Zt.URL:return xC(o),$i(o,"URL")?Gn(o):bl(String(o));case Zt.RESOURCE_URL:if($i(o,"ResourceURL"))return Gn(o);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(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function(e){return new RF(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function(e){return new OF(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function(e){return new FF(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function(e){return new PF(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function(e){return new NF(e)}(a)}}]),n}(qa);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({factory:function(){return function(e){return new $m(e.get(oe))}(x(jc))},token:e,providedIn:"root"}),e}(),h5=YS(JH,"browser",[{provide:fn,useValue:"browser"},{provide:NS,useValue:function(){yU.makeCurrent(),MU.init()},multi:!0},{provide:oe,useFactory:function(){return e=document,np=e,document;var e},deps:[]}]),p5=[[],{provide:Sl,useValue:"root"},{provide:Ci,useFactory:function(){return new Ci},deps:[]},{provide:ru,useClass:zU,multi:!0,deps:[oe,le,fn]},{provide:ru,useClass:i5,multi:!0,deps:[oe]},[],{provide:Pd,useClass:Pd,deps:[Od,au,ql]},{provide:La,useExisting:Pd},{provide:HD,useExisting:au},{provide:au,useClass:au,deps:[oe]},{provide:lm,useClass:lm,deps:[le]},{provide:Od,useClass:Od,deps:[ru,le]},{provide:zm,useClass:SU,deps:[]},[]],Xm=function(){var e=function(){function i(t){if(p(this,i),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 h(i,null,[{key:"withServerTransition",value:function(n){return{ngModule:i,providers:[{provide:ql,useValue:n.appId},{provide:BD,useExisting:ql},wU]}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(e,12))},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:p5,imports:[ht,o4]}),e}();function pt(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];var n=i[i.length-1];return bo(n)?(i.pop(),Gh(i,n)):jh(i)}function b5(e,i){return Uh(e,i,1)}function Ze(e,i){return function(n){return n.lift(new C5(e,i))}}"undefined"!=typeof window&&window;var C5=function(){function e(i,t){p(this,e),this.predicate=i,this.thisArg=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new k5(t,this.predicate,this.thisArg))}}]),e}(),k5=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).predicate=r,o.thisArg=a,o.count=0,o}return h(t,[{key:"_next",value:function(r){var a;try{a=this.predicate.call(this.thisArg,r,this.count++)}catch(o){return void this.destination.error(o)}a&&this.destination.next(r)}}]),t}(Ct),$D=h(function e(){p(this,e)}),XD=h(function e(){p(this,e)}),ou=function(){function e(i){var t=this;p(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?function(){t.headers=new Map,i.split("\n").forEach(function(n){var r=n.indexOf(":");if(r>0){var a=n.slice(0,r),o=a.toLowerCase(),s=n.slice(r+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(i).forEach(function(n){var r=i[n],a=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(a,r),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return h(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{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(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(r){n.headers.set(r,t.headers.get(r)),n.normalizedNames.set(r,t.normalizedNames.get(r))})}},{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(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,ke(r)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(r){return t(n.normalizedNames.get(r),n.headers.get(r))})}}]),e}(),w5=function(){function e(){p(this,e)}return h(e,[{key:"encodeKey",value:function(t){return JD(t)}},{key:"encodeValue",value:function(t){return JD(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function M5(e,i){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(r){var a=r.indexOf("="),s=Le(-1==a?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],2),l=s[0],u=s[1],c=t.get(l)||[];c.push(u),t.set(l,c)}),t}var S5=/%(\d[a-f0-9])/gi,D5={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function JD(e){return encodeURIComponent(e).replace(S5,function(i,t){var n;return null!==(n=D5[t])&&void 0!==n?n:i})}function ZD(e){return"".concat(e)}var _s=function(){function e(){var i=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new w5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=M5(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var r=t.fromObject[n];i.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}return h(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(r){var a=t[r];Array.isArray(a)?a.forEach(function(o){n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var r=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return r+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).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 t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var r=("a"===n.op?t.map.get(n.param):void 0)||[];r.push(ZD(n.value)),t.map.set(n.param,r);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(ZD(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),E5=function(){function e(){p(this,e),this.map=new Map}return h(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function eE(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function tE(e){return"undefined"!=typeof Blob&&e instanceof Blob}function nE(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Zm=function(){function e(i,t,n,r){var a;if(p(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.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!==n?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new ou),this.context||(this.context=new E5),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s<t.length-1?"&":"")+o}}else this.params=new _s,this.urlWithParams=t}return h(e,[{key:"serializeBody",value:function(){return null===this.body?null:eE(this.body)||tE(this.body)||nE(this.body)||function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _s?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||nE(this.body)?null:tE(this.body)?this.body.type||null:eE(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _s?"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 n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,d=t.params||this.params,f=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(_,b){return _.set(b,t.setHeaders[b])},c)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(_,b){return _.set(b,t.setParams[b])},d)),new e(r,a,s,{params:d,headers:c,context:f,reportProgress:u,responseType:o,withCredentials:l})}}]),e}(),su=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}({}),ev=h(function e(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,e),this.headers=i.headers||new ou,this.status=void 0!==i.status?i.status:t,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}),T5=function(e){k(t,e);var i=w(t);function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(n=i.call(this,r)).type=su.ResponseHeader,n}return h(t,[{key:"clone",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}]),t}(ev),iE=function(e){k(t,e);var i=w(t);function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(n=i.call(this,r)).type=su.Response,n.body=void 0!==r.body?r.body:null,n}return h(t,[{key:"clone",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}]),t}(ev),rE=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),r.error=n.error||null,r}return h(t)}(ev);function tv(e,i){return{body:i,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var kr=function(){var e=function(){function i(t){p(this,i),this.handler=t}return h(i,[{key:"request",value:function(n,r){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Zm)s=n;else{var l=void 0;l=o.headers instanceof ou?o.headers:new ou(o.headers);var u=void 0;o.params&&(u=o.params instanceof _s?o.params:new _s({fromObject:o.params})),s=new Zm(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=pt(s).pipe(b5(function(f){return a.handler.handle(f)}));if(n instanceof Zm||"events"===o.observe)return c;var d=c.pipe(Ze(function(f){return f instanceof iE}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(dt(function(f){if(null!==f.body&&!(f.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return f.body}));case"blob":return d.pipe(dt(function(f){if(null!==f.body&&!(f.body instanceof Blob))throw new Error("Response is not a Blob.");return f.body}));case"text":return d.pipe(dt(function(f){if(null!==f.body&&"string"!=typeof f.body)throw new Error("Response is not a string.");return f.body}));default:return d.pipe(dt(function(f){return f.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,r)}},{key:"get",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,r)}},{key:"head",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,r)}},{key:"jsonp",value:function(n,r){return this.request("JSONP",n,{params:(new _s).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,r)}},{key:"patch",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,tv(a,r))}},{key:"post",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,tv(a,r))}},{key:"put",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,tv(a,r))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x($D))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),aE=function(){function e(i,t){p(this,e),this.next=i,this.interceptor=t}return h(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),oE=new V("HTTP_INTERCEPTORS"),I5=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"intercept",value:function(n,r){return r.handle(n)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),R5=/^\)\]\}',?\n/,sE=function(){var e=function(){function i(t){p(this,i),this.xhrFactory=t}return h(i,[{key:"handle",value:function(n){var r=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Xe(function(a){var o=r.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach(function(I,E){return o.setRequestHeader(I,E.join(","))}),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var s=n.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(n.responseType){var l=n.responseType.toLowerCase();o.responseType="json"!==l?l:"text"}var u=n.serializeBody(),c=null,d=function(){if(null!==c)return c;var E=1223===o.status?204:o.status,N=o.statusText||"OK",z=new ou(o.getAllResponseHeaders()),re=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return c=new T5({headers:z,status:E,statusText:N,url:re})},f=function(){var E=d(),N=E.headers,z=E.status,re=E.statusText,Z=E.url,pe=null;204!==z&&(pe=void 0===o.response?o.responseText:o.response),0===z&&(z=pe?200:0);var Ne=z>=200&&z<300;if("json"===n.responseType&&"string"==typeof pe){var ut=pe;pe=pe.replace(R5,"");try{pe=""!==pe?JSON.parse(pe):null}catch(bt){pe=ut,Ne&&(Ne=!1,pe={error:bt,text:pe})}}Ne?(a.next(new iE({body:pe,headers:N,status:z,statusText:re,url:Z||void 0})),a.complete()):a.error(new rE({error:pe,headers:N,status:z,statusText:re,url:Z||void 0}))},_=function(E){var N=d(),re=new rE({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:N.url||void 0});a.error(re)},b=!1,C=function(E){b||(a.next(d()),b=!0);var N={type:su.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(N.total=E.total),"text"===n.responseType&&!!o.responseText&&(N.partialText=o.responseText),a.next(N)},S=function(E){var N={type:su.UploadProgress,loaded:E.loaded};E.lengthComputable&&(N.total=E.total),a.next(N)};return o.addEventListener("load",f),o.addEventListener("error",_),o.addEventListener("timeout",_),o.addEventListener("abort",_),n.reportProgress&&(o.addEventListener("progress",C),null!==u&&o.upload&&o.upload.addEventListener("progress",S)),o.send(u),a.next({type:su.Sent}),function(){o.removeEventListener("error",_),o.removeEventListener("abort",_),o.removeEventListener("load",f),o.removeEventListener("timeout",_),n.reportProgress&&(o.removeEventListener("progress",C),null!==u&&o.upload&&o.upload.removeEventListener("progress",S)),o.readyState!==o.DONE&&o.abort()}})}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(zm))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),nv=new V("XSRF_COOKIE_NAME"),iv=new V("XSRF_HEADER_NAME"),lE=h(function e(){p(this,e)}),F5=function(){var e=function(){function i(t,n,r){p(this,i),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return h(i,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=RD(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(oe),x(fn),x(nv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),rv=function(){var e=function(){function i(t,n){p(this,i),this.tokenService=t,this.headerName=n}return h(i,[{key:"intercept",value:function(n,r){var a=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||a.startsWith("http://")||a.startsWith("https://"))return r.handle(n);var o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),r.handle(n)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(lE),x(iv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),P5=function(){var e=function(){function i(t,n){p(this,i),this.backend=t,this.injector=n,this.chain=null}return h(i,[{key:"handle",value:function(n){if(null===this.chain){var r=this.injector.get(oE,[]);this.chain=r.reduceRight(function(a,o){return new aE(a,o)},this.backend)}return this.chain.handle(n)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(XD),x(at))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),N5=function(){var e=function(){function i(){p(this,i)}return h(i,null,[{key:"disable",value:function(){return{ngModule:i,providers:[{provide:rv,useClass:I5}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:i,providers:[n.cookieName?{provide:nv,useValue:n.cookieName}:[],n.headerName?{provide:iv,useValue:n.headerName}:[]]}}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[rv,{provide:oE,useExisting:rv,multi:!0},{provide:lE,useClass:F5},{provide:nv,useValue:"XSRF-TOKEN"},{provide:iv,useValue:"X-XSRF-TOKEN"}]}),e}(),av=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[kr,{provide:$D,useClass:P5},sE,{provide:XD,useExisting:sE}],imports:[[N5.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),B5=function(e,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,i)},Qa=function(){var e=function(){function i(){p(this,i);var t=window.location.search;this.authQs=this.constructAuthQueryString(t)}return h(i,[{key:"addAuthQsToUrl",value:function(n){if(!this.authQs.length)return n;var r=-1!==n.indexOf("?"),a=-1!==n.indexOf("#");if(r){var o=n.split("?");return"".concat(o[0]).concat(this.authQs,"&").concat(o[1])}if(a){var s=n.split("#");return"".concat(s[0]).concat(this.authQs,"#").concat(s[1])}return"".concat(n).concat(this.authQs)}},{key:"getAuthQs",value:function(){return this.authQs}},{key:"getEkitFromUrl",value:function(n){if(-1!==n.indexOf("ekit")){var r=n.split("ekit=");if(2===r.length){var a=r[1],o=a.indexOf("&");return-1!==o&&(a=a.substring(0,o)),-1!==a.indexOf("==")&&(a=encodeURIComponent(a)),a}}return null}},{key:"getGapImpersonateNameFromUrl",value:function(n){if(-1!==n.indexOf("impersonate")){var r=n.split("impersonate=");if(2===r.length)return r[1]}return null}},{key:"constructAuthQueryString",value:function(n){if(null===n||0===n.length)return"";var r=this.getGapImpersonateNameFromUrl(n),a=this.getEkitFromUrl(n);return null!==a?"?ekit=".concat(a):null!==r?"?impersonate=".concat(r):""}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e=function(e,i,t,n){var o,r=arguments.length,a=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(i,t,a):o(i,t))||a);return r>3&&a&&Object.defineProperty(i,t,a),a}([B5("design:paramtypes",[])],e),e}(),ov=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[Qa],imports:[[]]}),e}(),uE=function(){function e(i,t){this.httpClient=i,this.impersonate=t,this.options={withCredentials:!0}}return e.prototype.init=function(i){return this.httpClient.post("/header"+i,null,this.options)},e.prototype.getGapProjects=function(){return this.httpClient.get("/header/get-gap-projects"+this.impersonate.authQs)},e.prototype.setGapProject=function(i){return this.httpClient.post("/header/set-gap-project"+this.impersonate.authQs,{bcgGroup:i},this.options)},e.\u0275prov=G({token:e,factory:e.\u0275fac=function(t){return new(t||e)(x(kr),x(Qa))}}),e}(),V5=[uE],Vi=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this))._value=n,r}return h(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(r){var a=J(Y(t.prototype),"_subscribe",this).call(this,r);return a&&!a.closed&&r.next(this._value),a}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ba;return this._value}},{key:"next",value:function(r){J(Y(t.prototype),"next",this).call(this,this._value=r)}}]),t}($);function ea(){}function ys(e,i,t){return function(r){return r.lift(new H5(e,i,t))}}var H5=function(){function e(i,t,n){p(this,e),this.nextOrObserver=i,this.error=t,this.complete=n}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new G5(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),G5=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;return p(this,t),(s=i.call(this,n))._tapNext=ea,s._tapError=ea,s._tapComplete=ea,s._tapError=a||ea,s._tapComplete=o||ea,Ys(r)?(s._context=et(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||ea,s._tapError=r.error||ea,s._tapComplete=r.complete||ea),s}return h(t,[{key:"_next",value:function(r){try{this._tapNext.call(this._context,r)}catch(a){return void this.destination.error(a)}this.destination.next(r)}},{key:"_error",value:function(r){try{this._tapError.call(this._context,r)}catch(a){return void this.destination.error(a)}this.destination.error(r)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(r){return void this.destination.error(r)}return this.destination.complete()}}]),t}(Ct),j5={provide:LS,useFactory:function(e,i){return function(){if(Ya(i)){var t=Array.from(e.querySelectorAll("[class*=".concat(cE,"]"))),n=/\bflex-layout-.+?\b/g;t.forEach(function(r){r.classList.contains("".concat(cE,"ssr"))&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(n,"")})}}},deps:[oe,fn],multi:!0},cE="flex-layout-",sv=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[j5]}),e}(),lu=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=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;p(this,e),this.matches=i,this.mediaQuery=t,this.mqAlias=n,this.suffix=r,this.priority=a,this.property=""}return h(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),dE=function(){var e=function(){function i(){p(this,i),this.stylesheet=new Map}return h(i,[{key:"addStyleToElement",value:function(n,r,a){var o=this.stylesheet.get(n);o?o.set(r,a):this.stylesheet.set(n,new Map([[r,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,r){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(r);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),lv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Hi=new V("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return lv}}),Ka=new V("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),uv=new V("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function fE(e,i){return e=e?e.clone():new lu,i&&(e.mqAlias=i.alias,e.mediaQuery=i.mediaQuery,e.suffix=i.suffix,e.priority=i.priority),e}var cv="inline",hE=["row","column","row-reverse","column-reverse"];function z5(e){var i=function(e){var t=Le((e=e?e.toLowerCase():"").split(" "),3),n=t[0],r=t[1],a=t[2];return hE.find(function(o){return o===n})||(n=hE[0]),r===cv&&(r=a!==cv?a:"",a=cv),[n,Y5(r),!!a]}(e),t=Le(i,3);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[0],t[1],t[2])}function Y5(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 Tt=function(){var e=function(){function i(t,n,r,a){p(this,i),this.elementRef=t,this.styleBuilder=n,this.styler=r,this.marshal=a,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new $,this.styleCache=new Map}return h(i,[{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(n){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(n){var r=this;Object.keys(n).forEach(function(a){if(-1!==r.inputs.indexOf(a)){var o=a.split(".").slice(1).join(".");r.setValue(n[a].currentValue,o)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var n=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),n)}},{key:"addStyles",value:function(n,r){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,r),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,r)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(r){n.mru[r]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=Le(a,2),s=o[0],l=o[1];if(!l&&r){var u=z5(s),c=[n];this.styler.applyStyleToElements(u,c)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,r)}},{key:"setValue",value:function(n,r){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,r)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),i}();return e.\u0275fac=function(t){!function(){throw new Error("invalid")}()},e.\u0275dir=A({type:e,features:[xe]}),e}(),Q5=[{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}],pE="(orientation: portrait) and (max-width: 599.98px)",gE="(orientation: landscape) and (max-width: 959.98px)",mE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",vE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",_E="(orientation: portrait) and (min-width: 840px)",yE="(orientation: landscape) and (min-width: 1280px)",wr={HANDSET:"".concat(pE,", ").concat(gE),TABLET:"".concat(mE," , ").concat(vE),WEB:"".concat(_E,", ").concat(yE," "),HANDSET_PORTRAIT:"".concat(pE),TABLET_PORTRAIT:"".concat(mE," "),WEB_PORTRAIT:"".concat(_E),HANDSET_LANDSCAPE:"".concat(gE),TABLET_LANDSCAPE:"".concat(vE),WEB_LANDSCAPE:"".concat(yE)},K5=[{alias:"handset",priority:2e3,mediaQuery:wr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:wr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:wr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:wr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:wr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:wr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:wr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:wr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:wr.WEB_PORTRAIT,overlapping:!0}];function $5(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n<i;n++)t[n-1]=arguments[n];for(var r=0,a=t;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}var X5=/(\.|-|_)/g;function J5(e){var i=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return i.toUpperCase()+t}function e8(e){return e.forEach(function(i){i.suffix||(i.suffix=function(e){return e.replace(X5,"|").split("|").map(J5).join("")}(i.alias),i.overlapping=!!i.overlapping)}),e}var bE=new V("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var i=Lo(uv),t=Lo(Hi),n=[].concat.apply([],(i||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),i.forEach(function(n){t[n.alias]?$5(t[n.alias],n):t[n.alias]=n}),e8(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:Q5).concat(t.addOrientationBps?K5:[]),n)}});function uu(e,i){return(i&&i.priority||0)-(e&&e.priority||0)}function n8(e,i){return(e.priority||0)-(i.priority||0)}var cu=function(){var e=function(){function i(t){p(this,i),this.findByMap=new Map,this.items=ke(t).sort(n8)}return h(i,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(r){return r.alias==n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(r){return r.mediaQuery==n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return 1==n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){return n.suffix?n.suffix:""})}},{key:"findWithPredicate",value:function(n,r){var a=this.findByMap.get(n);return a||(a=this.items.find(r)||null,this.findByMap.set(n,a)),a||null}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(bE))},e.\u0275prov=G({factory:function(){return new e(x(bE))},token:e,providedIn:"root"}),e}(),Nd=function(){var e=function(){function i(t,n,r){p(this,i),this._zone=t,this._platformId=n,this._document=r,this.source=new Vi(new lu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return h(i,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(r,a){r.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var r=this.registry.get(n);return r?r.matches:this.registerQuery(n).some(function(a){return a.matches})}},{key:"observe",value:function(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(Ze(function(l){return!a||n.indexOf(l.mediaQuery)>-1})),s=new Xe(function(l){var u=r.registerQuery(n);if(u.length){var c=u.pop();u.forEach(function(d){l.next(d)}),r.source.next(c)}l.complete()});return Ke(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var r=this,a=Array.isArray(n)?n:[n],o=[];return function(e,i){var t=e.filter(function(o){return!CE[o]});if(t.length>0){var n=t.join(", ");try{var r=i.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var a="\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");r.appendChild(i.createTextNode(a))}i.head.appendChild(r),t.forEach(function(o){return CE[o]=r})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var l=function(d){r._zone.run(function(){return r.source.next(new lu(d.matches,s))})},u=r.registry.get(s);u||((u=r.buildMQL(s)).addListener(l),r.pendingRemoveListenerFns.push(function(){return u.removeListener(l)}),r.registry.set(s,u)),u.matches&&o.push(new lu(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function(e,i){return i&&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}}}(n,Ya(this._platformId))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(le),x(fn),x(oe))},e.\u0275prov=G({factory:function(){return new e(x(le),x(fn),x(oe))},token:e,providedIn:"root"}),e}(),CE={},bs="print",s8={alias:bs,mediaQuery:bs,priority:1e3},kE=function(){var e=function(){function i(t,n,r){p(this,i),this.breakpoints=t,this.layoutConfig=n,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new l8,this.deactivations=[]}return h(i,[{key:"withPrintQuery",value:function(n){return[].concat(ke(n),[bs])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(bs)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(r){return n.breakpoints.findByAlias(r)}).filter(function(r){return null!==r})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(ke(this.printBreakPoints),[a]):this.printBreakPoints).sort(uu)}},{key:"updateEvent",value:function(n){var r=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(r=this.getEventBreakpoints(n)[0],n.mediaQuery=r?r.mediaQuery:""),fE(n,r)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var r=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){r.isPrinting||(r.isPrintingBeforeAfterEvent=!0,r.startPrinting(n,r.getEventBreakpoints(new lu(!0,bs))),n.updateStyles())},o=function(){r.isPrintingBeforeAfterEvent=!1,r.isPrinting&&(r.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var r=this;return this.registerBeforeAfterPrintHooks(n),function(a){r.isPrintEvent(a)?a.matches&&!r.isPrinting?(r.startPrinting(n,r.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&r.isPrinting&&!r.isPrintingBeforeAfterEvent&&(r.stopPrinting(n),n.updateStyles()):r.collectActivations(a)}}},{key:"blockPropagation",value:function(){var n=this;return function(r){return!(n.isPrinting||n.isPrintEvent(r))}}},{key:"startPrinting",value:function(n,r){this.isPrinting=!0,n.activatedBreakpoints=this.queue.addPrintBreakpoints(r)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(n.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var r=this.breakpoints.findByQuery(n.mediaQuery);r&&(this.deactivations.push(r),this.deactivations.sort(uu))}}},{key:"ngOnDestroy",value:function(){var n=this;this.beforePrintEventListeners.forEach(function(r){return n._document.defaultView.removeEventListener("beforeprint",r)}),this.afterPrintEventListeners.forEach(function(r){return n._document.defaultView.removeEventListener("afterprint",r)})}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(cu),x(Hi),x(oe))},e.\u0275prov=G({factory:function(){return new e(x(cu),x(Hi),x(oe))},token:e,providedIn:"root"}),e}(),l8=function(){function e(){p(this,e),this.printBreakpoints=[]}return h(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(s8),t.sort(uu),t.forEach(function(r){return n.addBreakpoint(r)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(r){return r.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith(bs)}(t)?[t].concat(ke(this.printBreakpoints)):[].concat(ke(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function wE(e){for(var i in e){var t=e[i]||"";switch(i){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;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-"+i]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+i]=isNaN(+t)?"0":t}}return e}var wt=function(){var e=function(){function i(t,n,r,a){p(this,i),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=r,this.layoutConfig=a}return h(i,[{key:"applyStyleToElement",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof r&&(o[r]=a,r=o),o=this.layoutConfig.disableVendorPrefixes?r:wE(r),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:wE(n);a.forEach(function(s){r._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var r="flex-direction",a=this.lookupStyle(n,r);return[a||"row",this.lookupInlineStyle(n,r)||vs(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,r){return n.getAttribute(r)||""}},{key:"lookupInlineStyle",value:function(n,r){return Ya(this._platformId)?n.style.getPropertyValue(r):this._getServerStyle(n,r)}},{key:"lookupStyle",value:function(n,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,r);s||(Ya(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(r)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,r)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,r){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],l=Array.isArray(s)?s:[s];l.sort();var c,u=ct(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;d=d?d+"":"",Ya(a._platformId)||!a._serverModuleLoaded?Ya(a._platformId)?r.style.setProperty(o,d):a._setServerStyle(r,o,d):a._serverStylesheet.addStyleToElement(r,o,d)}}catch(f){u.e(f)}finally{u.f()}})}},{key:"_setServerStyle",value:function(n,r,a){r=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var o=this._readStyleAttribute(n);o[r]=a||"",this._writeStyleAttribute(n,o)}},{key:"_getServerStyle",value:function(n,r){return this._readStyleAttribute(n)[r]||""}},{key:"_readStyleAttribute",value:function(n){var r={},a=n.getAttribute("style");if(a)for(var o=a.split(/;+/g),s=0;s<o.length;s++){var l=o[s].trim();if(l.length>0){var u=l.indexOf(":");if(-1===u)throw new Error("Invalid CSS style: ".concat(l));r[l.substr(0,u).trim()]=l.substr(u+1).trim()}}return r}},{key:"_writeStyleAttribute",value:function(n,r){var a="";for(var o in r)r[o]&&(a+=o+":"+r[o]+";");n.setAttribute("style",a)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(dE),x(Ka),x(fn),x(Hi))},e.\u0275prov=G({factory:function(){return new e(x(dE),x(Ka),x(fn),x(Hi))},token:e,providedIn:"root"}),e}(),Lt=function(){function e(){p(this,e),this.shouldCache=!0}return h(e,[{key:"sideEffect",value:function(t,n,r){}}]),e}(),It=function(){var e=function(){function i(t,n,r){p(this,i),this.matchMedia=t,this.breakpoints=n,this.hook=r,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 $,this.observeActivations()}return h(i,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(n){var r=this.findByQuery(n.mediaQuery);r&&((n=fE(n,r)).matches&&-1===this.activatedBreakpoints.indexOf(r)?(this.activatedBreakpoints.push(r),this.activatedBreakpoints.sort(uu),this.updateStyles()):!n.matches&&-1!==this.activatedBreakpoints.indexOf(r)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(r),1),this.activatedBreakpoints.sort(uu),this.updateStyles()))}},{key:"init",value:function(n,r,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];DE(this.updateMap,n,r,a),DE(this.clearMap,n,r,o),this.buildElementKeyMap(n,r),this.watchExtraTriggers(n,r,s)}},{key:"getValue",value:function(n,r,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,r);if(s)return s.get(r)}}},{key:"hasValue",value:function(n,r){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,r);if(o)return void 0!==o.get(r)||!1}return!1}},{key:"setValue",value:function(n,r,a,o){var s=this.elementMap.get(n);if(s){var l=(s.get(o)||new Map).set(r,a);s.set(o,l),this.elementMap.set(n,s)}else s=(new Map).set(o,(new Map).set(r,a)),this.elementMap.set(n,s);var u=this.getValue(n,r);void 0!==u&&this.updateElement(n,r,u)}},{key:"trackValue",value:function(n,r){return this.subject.asObservable().pipe(Ze(function(a){return a.element===n&&a.key===r}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(r,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(r);s&&s.forEach(function(l,u){n.updateElement(a,u,l),o.delete(u)}),o.forEach(function(l){if(s=n.getActivatedValues(r,l)){var u=s.get(l);n.updateElement(a,l,u)}else n.clearElement(a,l)})})}},{key:"clearElement",value:function(n,r){var a=this.clearMap.get(n);if(a){var o=a.get(r);o&&(o(),this.subject.next({element:n,key:r,value:""}))}}},{key:"updateElement",value:function(n,r,a){var o=this.updateMap.get(n);if(o){var s=o.get(r);s&&(s(a),this.subject.next({element:n,key:r,value:a}))}}},{key:"releaseElement",value:function(n){var r=this.watcherMap.get(n);r&&(r.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,r){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,r);s&&(r?this.updateElement(n,r,s.get(r)):s.forEach(function(l,u){return a.updateElement(n,u,l)}))}}},{key:"buildElementKeyMap",value:function(n,r){var a=this.elementKeyMap.get(n);a||(a=new Set,this.elementKeyMap.set(n,a)),a.add(r)}},{key:"watchExtraTriggers",value:function(n,r,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||(s=new Map,this.watcherMap.set(n,s)),!s.get(r)){var u=Ke.apply(void 0,ke(a)).subscribe(function(){var c=o.getValue(n,r);o.updateElement(n,r,c)});s.set(r,u)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,r){for(var a=0;a<this.activatedBreakpoints.length;a++){var s=n.get(this.activatedBreakpoints[a].alias);if(s&&(void 0===r||s.has(r)&&null!=s.get(r)))return s}var l=n.get("");return void 0===r||l&&l.has(r)?l:void 0}},{key:"observeActivations",value:function(){var r=this.breakpoints.items.map(function(a){return a.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(r)).pipe(ys(this.hook.interceptEvents(this)),Ze(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Nd),x(cu),x(kE))},e.\u0275prov=G({factory:function(){return new e(x(Nd),x(cu),x(kE))},token:e,providedIn:"root"}),e}();function DE(e,i,t,n){if(void 0!==n){var r=e.get(i);r||(r=new Map,e.set(i,r)),r.set(t,n)}}var EE=new V("cdk-dir-doc",{providedIn:"root",factory:function(){return Lo(oe)}}),Qe=function(){var e=function(){function i(t){if(p(this,i),this.value="ltr",this.change=new j,t){var a=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===a||"rtl"===a?a:"ltr"}}return h(i,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(EE,8))},e.\u0275prov=G({factory:function(){return new e(x(EE,8))},token:e,providedIn:"root"}),e}(),$a=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}();function de(e){return function(i){return i.lift(new d8(e))}}var d8=function(){function e(i){p(this,e),this.notifier=i}return h(e,[{key:"call",value:function(t,n){var r=new f8(t),a=$s(this.notifier,new Qs(r));return a&&!r.seenValue?(r.add(a),n.subscribe(r)):r}}]),e}(),f8=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this,n)).seenValue=!1,r}return h(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(Ks),dv="inline",Ld=["row","column","row-reverse","column-reverse"];function AE(e){var t=Le((e=e?e.toLowerCase():"").split(" "),3),n=t[0],r=t[1],a=t[2];return Ld.find(function(o){return o===n})||(n=Ld[0]),r===dv&&(r=a!==dv?a:"",a=dv),[n,p8(r),!!a]}function du(e){return Le(AE(e),1)[0].indexOf("row")>-1}function p8(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 m8=function(){var e=function(i){k(n,i);var t=w(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"buildStyles",value:function(a){return function(e){var t=Le(AE(e),3);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[0],t[1],t[2])}(a)}}]),n}(Lt);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),v8=["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"],_8=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s){var l;return p(this,n),(l=t.call(this,r,o,a,s)).DIRECTIVE_KEY="layout",l.styleCache=y8,l.init(),l}return h(n)}(Tt);return e.\u0275fac=function(t){return new(t||e)(v(P),v(wt),v(m8),v(It))},e.\u0275dir=A({type:e,features:[R]}),e}(),fv=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.apply(this,arguments)).inputs=v8,r}return h(n)}(_8);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275dir=A({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:[R]}),e}(),y8=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 sj=function(){var e=function(i){k(n,i);var t=w(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"buildStyles",value:function(a,o){var s={},u=Le(a.split(" "),2),d=u[1];switch(u[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(d){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n<i;n++)t[n-1]=arguments[n];for(var r=0,a=t;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===d?du(o.layout)?null:"100%":null,"max-height":"stretch"===d&&du(o.layout)?"100%":null})}}]),n}(Lt);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),lj=["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"],uj=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s){var l;return p(this,n),(l=t.call(this,r,o,a,s)).DIRECTIVE_KEY="layout-align",l.layout="row",l.inline=!1,l.init(),l.marshal.trackValue(l.nativeElement,"layout").pipe(de(l.destroySubject)).subscribe(l.onLayoutChange.bind(et(l))),l}return h(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=pj:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=mj:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=gj:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=vj:"column-reverse"===o&&!s&&(this.styleCache=hj):this.styleCache=dj:this.styleCache=fj:this.styleCache=cj,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),Ld.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(Tt);return e.\u0275fac=function(t){return new(t||e)(v(P),v(wt),v(sj),v(It))},e.\u0275dir=A({type:e,features:[R]}),e}(),hv=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.apply(this,arguments)).inputs=lj,r}return h(n)}(uj);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275dir=A({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:[R]}),e}(),cj=new Map,dj=new Map,fj=new Map,hj=new Map,pj=new Map,gj=new Map,mj=new Map,vj=new Map,IE=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[sv,$a]]}),e}();function _j(e,i){if(1&e&&(g(0,"ul",1),g(1,"li"),g(2,"a"),M(3,"DNA Tests"),m(),g(4,"ul"),g(5,"li"),g(6,"a",2),M(7,"Family Finder\u2122"),m(),m(),g(8,"li"),g(9,"a"),M(10,"Y-DNA"),m(),g(11,"ul"),g(12,"li"),g(13,"a",2),M(14,"All Y-DNA Tests"),m(),m(),g(15,"li"),g(16,"a",2),M(17,"Big Y-700"),m(),m(),m(),m(),g(18,"li"),g(19,"a",2),M(20,"mtDNA"),m(),m(),m(),m(),g(21,"li"),g(22,"a"),M(23,"Upload DNA Data"),m(),g(24,"ul"),g(25,"li"),g(26,"a",2),M(27,"Autosomal DNA"),m(),m(),m(),m(),g(28,"li"),g(29,"a",2),M(30,"Group Projects"),m(),m(),g(31,"li"),g(32,"a"),M(33,"Shop"),m(),g(34,"ul"),g(35,"li"),g(36,"a",2),M(37,"Single Tests"),m(),m(),g(38,"li"),g(39,"a",2),M(40,"Bundle Tests"),m(),m(),g(41,"li"),g(42,"a",2),M(43,"Gift Cards"),m(),m(),m(),m(),m()),2&e){var t=O();y(6),H("href",t.urls.productsFamilyFinderUrl,T),y(7),H("href",t.urls.productsYDnaUrl,T),y(3),H("href",t.urls.productsBigYUrl,T),y(3),H("href",t.urls.productsMtDnaUrl,T),y(7),H("href",t.urls.autosomalTransferUrl,T),y(3),H("href",t.urls.groupProjectUrl,T),y(7),H("href",t.urls.singleTestsProductsUrl,T),y(3),H("href",t.urls.bundlesProductsUrl,T),y(3),H("href",t.urls.giftCardsUrl,T)}}function yj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Home"),m(),m()),2&e){var t=O(2);y(1),H("href",t.urls.dashboardUrl,T)}}function bj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Home"),m(),m()),2&e){var t=O(2);y(1),H("href","//"+t.model.gapUrl,T)}}function Cj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"myOrigins"),g(3,"sup"),M(4,"\xae"),m(),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.myOriginsUrl,T)}}function kj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"ancientOrigins"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ancientOriginsUrl,T)}}function wj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Chromosome Browser"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.chromosomeBrowserUrl,T)}}function Mj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Chromosome Painter"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.chromosomePaintingUrl,T)}}function Sj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Download Raw Data"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.downloadRawDataUrl,T)}}function Dj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Autosomal DNA"),m(),g(3,"ul"),g(4,"li"),g(5,"a",2),M(6,"Matches"),m(),m(),F(7,Cj,5,1,"li",3),F(8,kj,3,1,"li",3),F(9,wj,3,1,"li",3),F(10,Mj,3,1,"li",3),g(11,"li"),g(12,"a",2),M(13,"Matrix"),m(),m(),F(14,Sj,3,1,"li",3),m(),m()),2&e){var t=O(3);y(5),H("href",t.urls.familyFinderUrl,T),y(2),D("ngIf",t.model.hasPopFinder||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.hasAncientOrigins||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.hasChromosomeBrowser||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.chromosomePaintingEnabled),y(2),H("href",t.urls.matrixUrl,T),y(2),D("ngIf",!t.model.isFreeAutosomalTransfer)}}function Ej(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"mtDNA Journey"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.mtdnaJourneyUrl,T)}}function Aj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"mtDNA"),m(),g(3,"ul"),g(4,"li"),g(5,"a",2),M(6,"Matches"),m(),m(),g(7,"li"),g(8,"a",2),M(9,"Mutations"),m(),m(),g(10,"li"),g(11,"a",2),M(12,"Migration Maps"),m(),m(),g(13,"li"),g(14,"a",2),M(15,"Ancestral Origins"),m(),m(),g(16,"li"),g(17,"a",2),M(18,"Haplogroup Origins"),m(),m(),g(19,"li"),g(20,"a",2),M(21,"Matches Maps"),m(),m(),F(22,Ej,3,1,"li",3),m(),m()),2&e){var t=O(3);y(5),H("href",t.urls.mtdnaMatchesUrl,T),y(3),H("href",t.urls.mtdnaMutationsUrl,T),y(3),H("href",t.urls.mtdnaMigrationMapsUrl,T),y(3),H("href",t.urls.mtdnaAncestralOriginsUrl,T),y(3),H("href",t.urls.mtdnaHaplogroupOriginsUrl,T),y(3),H("href",t.urls.mtdnaMatchesMapUrl,T),y(2),D("ngIf",t.hasMtdnaFms)}}function xj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Matches"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaMatchesUrl,T)}}function Tj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Haplotree & SNPs"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaHaplotreeSnpsUrl,T)}}function Ij(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Migration Maps"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaMigrationMapsUrl,T)}}function Rj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Y-STR Results"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaResultsUrl,T)}}function Oj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Ancestral Origins"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaAncestralOriginsUrl,T)}}function Fj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Haplogroup Origins"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaHaplogroupOriginsUrl,T)}}function Pj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"SNP Map"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaSnpMapUrl,T)}}function Nj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Matches Maps"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaMatchesMapUrl,T)}}function Lj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Y-DNA"),m(),g(3,"ul"),F(4,xj,3,1,"li",3),F(5,Tj,3,1,"li",3),g(6,"li"),g(7,"a",2),M(8,"Discover\u2122 Haplogroup Reports"),m(),m(),F(9,Ij,3,1,"li",3),F(10,Rj,3,1,"li",3),F(11,Oj,3,1,"li",3),F(12,Fj,3,1,"li",3),F(13,Pj,3,1,"li",3),F(14,Nj,3,1,"li",3),m(),m()),2&e){var t=O(3);y(4),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.showYdnaHaplotreeLink),y(2),H("href",t.urls.discoverUrl,T),y(2),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults)}}function Bj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Big Y"),m(),g(3,"ul"),g(4,"li"),g(5,"a",2),M(6,"Block Tree"),m(),m(),g(7,"li"),g(8,"a",2),M(9,"Discover\u2122 Haplogroup Reports"),m(),m(),g(10,"li"),g(11,"a",2),M(12,"Matches"),m(),m(),g(13,"li"),g(14,"a",2),M(15,"Results"),m(),m(),g(16,"li"),g(17,"a",2),M(18,"Y-STR Results"),m(),m(),g(19,"li"),g(20,"a",2),M(21,"Discover\u2122 Globetrekker"),m(),m(),m(),m()),2&e){var t=O(3);y(5),H("href",t.urls.bigYBlockTreeUrl,T),y(3),H("href",t.urls.discoverUrl,T),y(3),H("href",t.urls.bigYMatchesUrl,T),y(3),H("href",t.urls.bigYResultsUrl,T),y(3),H("href",t.urls.bigYStrResultsUrl,T),y(3),H("href",t.urls.globetrekkerUrl,T)}}function Vj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Other Autosomal Results"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.otherAutosomalResultsUrl,T)}}function Hj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Factoids"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.factoidsUrl,T)}}function Gj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"Y-DNA Advanced"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.ydnaAdvancedMarkersUrl,T)}}function Uj(e,i){if(1&e&&(g(0,"li"),g(1,"a",2),M(2,"X-STR"),m(),m()),2&e){var t=O(4);y(1),H("href",t.urls.xStrUrl,T)}}function jj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Other Results"),m(),g(3,"ul"),F(4,Vj,3,1,"li",3),F(5,Hj,3,1,"li",3),F(6,Gj,3,1,"li",3),F(7,Uj,3,1,"li",3),m(),m()),2&e){var t=O(3);y(4),D("ngIf",t.model.hasOtherAutosomalResults),y(1),D("ngIf",t.model.hasFactoids),y(1),D("ngIf",t.model.hasAdvancedYSTR),y(1),D("ngIf",t.model.hasXSTR)}}function zj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Results & Tools"),m(),g(3,"ul"),F(4,Dj,15,7,"li",3),F(5,Aj,23,7,"li",3),F(6,Lj,15,9,"li",3),F(7,Bj,22,6,"li",3),F(8,jj,8,4,"li",3),m(),m()),2&e){var t=O(2);y(4),D("ngIf",t.model.hasFF),y(1),D("ngIf",t.model.hasMtResults),y(1),D("ngIf",t.model.hasYResults||t.model.hasFFOrGenoTransferAndYHaploGroup&&t.model.isMale),y(1),D("ngIf",t.model.hasBigY),y(1),D("ngIf",t.model.hasFactoids||t.model.hasOtherAutosomalResults||t.model.hasAdvancedYSTR||t.model.hasXSTR)}}function Wj(e,i){1&e&&(g(0,"a",6),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function Yj(e,i){1&e&&(g(0,"a",6),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function qj(e,i){1&e&&(g(0,"a",7),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function Qj(e,i){if(1&e&&(g(0,"li"),F(1,Wj,2,1,"a",4),F(2,Yj,2,1,"a",4),F(3,qj,2,1,"a",5),m()),2&e){var t=O(2);y(1),D("ngIf",!t.model.usingMHTreeUrl),y(1),D("ngIf",t.model.usingMHTreeUrl&&t.urls.familyTreeUrl.indexOf("/moved-family-tree")<0),y(1),D("ngIf",t.model.usingMHTreeUrl&&t.urls.familyTreeUrl.indexOf("/moved-family-tree")>=0)}}function Kj(e,i){if(1&e&&(g(0,"li"),g(1,"a"),M(2,"Group Projects"),m(),g(3,"ul"),g(4,"li"),g(5,"a",2),M(6,"Join A Project"),m(),m(),g(7,"li"),g(8,"a",2),M(9,"Manage Group Projects"),m(),m(),g(10,"li"),g(11,"a",2),M(12,"Learn More"),m(),m(),m(),m()),2&e){var t=O(2);y(5),H("href",t.urls.joinProjectUrl,T),y(3),H("href",t.urls.manageProjectsUrl,T),y(3),H("href",t.urls.projectsHomeUrl,T)}}function $j(e,i){if(1&e&&(g(0,"ul",1),F(1,yj,3,1,"li",3),F(2,bj,3,1,"li",3),F(3,zj,9,5,"li",3),F(4,Qj,4,3,"li",3),F(5,Kj,13,3,"li",3),m()),2&e){var t=O();y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.model.isLawEnforcement&&!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode)}}function Xj(e,i){if(1&e&&(g(0,"ul",1),g(1,"li"),g(2,"a",2),M(3,"Home"),m(),m(),g(4,"li"),g(5,"a"),M(6,"Reports"),m(),g(7,"ul"),g(8,"li"),g(9,"a"),M(10,"Member Reports"),m(),g(11,"ul",8),g(12,"li"),g(13,"a",2),M(14,"Country of Origin Charts"),m(),m(),g(15,"li"),g(16,"a",2),M(17,"Maternal Ancestry"),m(),m(),g(18,"li"),g(19,"a",2),M(20,"Member Distribution Map"),m(),m(),g(21,"li"),g(22,"a",2),M(23,"Member Information"),m(),m(),g(24,"li"),g(25,"a",2),M(26,"Member Notes"),m(),m(),g(27,"li"),g(28,"a",2),M(29,"Order Summary"),m(),m(),g(30,"li"),g(31,"a",2),M(32,"Paternal Ancestry"),m(),m(),g(33,"li"),g(34,"a",2),M(35,"Pending Lab Results"),m(),m(),g(36,"li"),g(37,"a",2),M(38,"Pending Shipment To Lab"),m(),m(),g(39,"li"),g(40,"a",2),M(41,"Project Joins"),m(),m(),g(42,"li"),g(43,"a",2),M(44,"Project Statistics"),m(),m(),g(45,"li"),g(46,"a",2),M(47,"Received Lab Results"),m(),m(),g(48,"li"),g(49,"a",2),M(50,"Unreceived Kits"),m(),m(),m(),m(),g(51,"li"),g(52,"a"),M(53,"Genetic Reports"),m(),g(54,"ul",8),g(55,"li"),g(56,"a",9),M(57,"Discover\u2122"),m(),m(),g(58,"li"),g(59,"a",2),M(60,"Family Finder\u2122 Group Matrix"),m(),m(),g(61,"li"),g(62,"a",2),M(63,"Family Finder\u2122 Group Report"),m(),m(),g(64,"li"),g(65,"a",2),M(66,"Haplogroup Charts"),m(),m(),g(67,"li"),g(68,"a",2),M(69,"mtDNA Results Classic"),m(),m(),g(70,"li"),g(71,"a",2),M(72,"mtDNA Results"),m(),m(),g(73,"li"),g(74,"a",2),M(75,"mtDNA Haplotree"),m(),m(),g(76,"li"),g(77,"a",2),M(78,"Y-DNA Genetic Distance"),m(),m(),g(79,"li"),g(80,"a",6),M(81,"Y-DNA Group Time Tree"),m(),m(),g(82,"li"),g(83,"a",2),M(84,"Y-DNA TiP"),m(),m(),g(85,"li"),g(86,"a",2),M(87,"Y-DNA Results Overview"),m(),m(),g(88,"li"),g(89,"a",2),M(90,"Y-DNA Haplogroups"),m(),m(),g(91,"li"),g(92,"a",2),M(93,"Y-DNA Unique Haplotypes"),m(),m(),g(94,"li"),g(95,"a",2),M(96,"Y-DNA Haplotree"),m(),m(),m(),m(),m(),m(),g(97,"li"),g(98,"a"),M(99,"Project Admin"),m(),g(100,"ul",8),g(101,"li"),g(102,"a",2),M(103,"Activity Feed"),m(),m(),g(104,"li"),g(105,"a",2),M(106,"Activity Log"),m(),m(),g(107,"li"),g(108,"a",2),M(109,"Bulk Email"),m(),m(),g(110,"li"),g(111,"a",2),M(112,"Download Files"),m(),m(),g(113,"li"),g(114,"a",2),M(115,"General Fund"),m(),m(),g(116,"li"),g(117,"a",2),M(118,"General Fund Charts"),m(),m(),g(119,"li"),g(120,"a",2),M(121,"Join Authorization"),m(),m(),g(122,"li"),g(123,"a",2),M(124,"Member Subgrouping"),m(),m(),g(125,"li"),g(126,"a",6),M(127,"New Member Order"),m(),m(),g(128,"li"),g(129,"a",2),M(130,"Price Comparison"),m(),m(),g(131,"li"),g(132,"a",2),M(133,"Project Administrators"),m(),m(),g(134,"li"),g(135,"a",2),M(136,"Project Profile"),m(),m(),g(137,"li"),g(138,"a",2),M(139,"Public Results Display Settings"),m(),m(),g(140,"li"),g(141,"a",2),M(142,"Public Website"),m(),m(),g(143,"li"),g(144,"a",2),M(145,"Unpaid Products"),m(),m(),g(146,"li"),g(147,"a",2),M(148,"Welcome Email"),m(),m(),m(),m(),g(149,"li"),g(150,"a"),M(151,"Resources"),m(),g(152,"ul",8),g(153,"li"),g(154,"a",10),M(155,"Terms & Policies"),m(),m(),g(156,"li"),g(157,"a",11),M(158,"Administrator Quick Start Guide"),m(),m(),g(159,"li"),g(160,"a",12),M(161,"Help Center Administrator Resources"),m(),m(),g(162,"li"),g(163,"a",13),M(164,"Project Admins Media Library"),m(),m(),g(165,"li"),g(166,"a",14),M(167,"Papers and Presentations"),m(),m(),g(168,"li"),g(169,"a",15),M(170,"Forums"),m(),m(),g(171,"li"),g(172,"a",16),M(173,"FamilyTreeDNA Blog"),m(),m(),m(),m(),m()),2&e){var t=O();y(2),H("href",t.urls.homeUrl,T),y(11),Fe("href","//",t.model.gapUrl,"/country-of-origin-charts.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/maternal-ancestry.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/distribution-map_v2.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/member-information.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/member-notes.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/order-summary.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/paternal-ancestry.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/pending-lab-results.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/pending-shipment-to-lab.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/project-joins.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/project-statistics.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/received-lab-results.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/unreceived-kits.aspx",t.authQs,"",T),y(10),Fe("href","//",t.model.gapUrl,"/family-finder-matrix-omniexpress.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/family-finder-results-omniexpress.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/haplogroup-charts.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/mtdna-results-classic.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/mtdna-results.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.wwwUrl,"/public/mt-dna-haplotree",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/genetic-distance-report.aspx",t.authQs,"",T),y(3),H("href",t.urls.ydnaGroupTimeTreeLink,T),y(3),Fe("href","//",t.model.gapUrl,"/gap-tip-report",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/ydna-results-overview.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/ydna-snp-report.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/unique-haplotypes.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.wwwUrl,"/public/y-dna-haplotree",t.authQs,"",T),y(7),Ce("href","//",t.urls.activityFeedUrl,"",T),y(3),Fe("href","//",t.model.gapUrl,"/notes.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/bulk-email.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/download-files.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/general-fund.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/general-fund-chart.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/join-authorization.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/member-subgrouping",t.authQs,"",T),y(3),Ce("href","//",t.urls.newMemberOrderUrl,"",T),y(3),Fe("href","//",t.model.gapUrl,"/price-comparison.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/project-administrators.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/project-profile",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/public-display-setting.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/public-website.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/member-unpaid-products.aspx",t.authQs,"",T),y(3),Fe("href","//",t.model.gapUrl,"/welcome-email.aspx",t.authQs,"",T)}}var Jj=function(){function e(){}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=te({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",4,"ngIf"],["target","_self",3,"href",4,"ngIf"],["target","_blank",3,"href"],["target","_self",3,"href"],[1,"condensed"],["href","https://discover.familytreedna.com/","target","_blank"],["href","https://help.familytreedna.com/hc/en-us/articles/4503232822287","target","_blank"],["href","https://help.familytreedna.com/hc/en-us/articles/6168057403407-Administrator-Quick-Start-Guide-","target","_blank"],["href","https://help.familytreedna.com/hc/en-us/sections/5909201090575","target","_blank"],["href","https://airtable.com/app0rnuXIq0g8l9t4/shrz5vOPLqPpapb4T/tblVgFV6Rz5HyYqfc","target","_blank"],["href","https://gap.familytreedna.com/papers-and-presentations.aspx","target","_blank"],["href","https://forums.familytreedna.com/","target","_blank"],["href","https://blog.familytreedna.com/","target","_blank"]],template:function(t,n){1&t&&(g(0,"div"),F(1,_j,44,9,"ul",0),F(2,$j,6,5,"ul",0),F(3,Xj,174,82,"ul",0),m()),2&t&&(y(1),D("ngIf",!n.isLoggedIn&&!n.isGapPage),y(1),D("ngIf",(n.hasMyFtdna||n.isLoggedIn)&&!n.isGapPage),y(1),D("ngIf",n.isLoggedIn&&n.isGapPage))},directives:[Dt],encapsulation:2}),e}(),pv=function(){function e(i,t){this.httpClient=i,this.impersonate=t}return e.prototype.getSimpleCartInfo=function(i){return this.httpClient.get("/api/shoppingCart/cart/"+i+"/getSimpleCartInfo"+this.impersonate.authQs)},e.\u0275prov=G({token:e,factory:e.\u0275fac=function(t){return new(t||e)(x(kr),x(Qa))}}),e}();function W(e){return null!=e&&"false"!=="".concat(e)}function Ye(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return RE(e)?Number(e):i}function RE(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Vd(e){return Array.isArray(e)?e:[e]}function zt(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Mr(e){return e instanceof P?e.nativeElement:e}new Map;var rz=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l,u,c){var d;return p(this,n),(d=t.call(this,r,null,a,o)).ngClassInstance=c,d.DIRECTIVE_KEY="ngClass",d.ngClassInstance||(d.ngClassInstance=new ar(s,l,r,u)),d.init(),d.setValue("",""),d}return h(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(Tt);return e.\u0275fac=function(t){return new(t||e)(v(P),v(wt),v(It),v(Sn),v($r),v(ir),v(ar,10))},e.\u0275dir=A({type:e,inputs:{klass:["class","klass"]},features:[R]}),e}(),az=["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"],FE=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.apply(this,arguments)).inputs=az,r}return h(n)}(rz);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275dir=A({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:[R]}),e}();new WeakMap;var HE=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[sv]]}),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 QE=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[sv]]}),e}(),KE=(new Kr("11.0.0-beta.33"),function(){var e=function(){function i(t,n){p(this,i),vs(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return h(i,null,[{key:"withConfig",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:i,providers:n.serverLoaded?[{provide:Hi,useValue:Object.assign(Object.assign({},lv),n)},{provide:uv,useValue:r,multi:!0},{provide:Ka,useValue:!0}]:[{provide:Hi,useValue:Object.assign(Object.assign({},lv),n)},{provide:uv,useValue:r,multi:!0}]}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Ka),x(fn))},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[IE,HE,QE],IE,HE,QE]}),e}()),Hd=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n,r)).scheduler=n,a.work=r,a.pending=!1,a}return h(t,[{key:"schedule",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(r.flush.bind(r,this),o)}},{key:"recycleAsyncId",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&this.delay===o&&!1===this.pending)return a;clearInterval(a)}},{key:"execute",value:function(r,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(r,a){var o=!1,s=void 0;try{this.work(r)}catch(l){o=!0,s=!!l&&l||new Error(l)}if(o)return this.unsubscribe(),s}},{key:"_unsubscribe",value:function(){var r=this.id,a=this.scheduler,o=a.actions,s=o.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&o.splice(s,1),null!=r&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null}}]),t}(function(e){k(t,e);var i=w(t);function t(n,r){return p(this,t),i.call(this)}return h(t,[{key:"schedule",value:function(r){return this}}]),t}(ye)),$E=function(){var e=function(){function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;p(this,i),this.SchedulerAction=t,this.now=n}return h(i,[{key:"schedule",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(a,r)}}]),i}();return e.now=function(){return Date.now()},e}(),Gd=function(e){k(t,e);var i=w(t);function t(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$E.now;return p(this,t),(r=i.call(this,n,function(){return t.delegate&&t.delegate!==et(r)?t.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return h(t,[{key:"schedule",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(r,a,o):J(Y(t.prototype),"schedule",this).call(this,r,a,o)}},{key:"flush",value:function(r){var a=this.actions;if(this.active)a.push(r);else{var o;this.active=!0;do{if(o=r.execute(r.state,r.delay))break}while(r=a.shift());if(this.active=!1,o){for(;r=a.shift();)r.unsubscribe();throw o}}}}]),t}($E),Ud=new Gd(Hd);function jd(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ud;return function(t){return t.lift(new V6(e,i))}}var V6=function(){function e(i,t){p(this,e),this.dueTime=i,this.scheduler=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new H6(t,this.dueTime,this.scheduler))}}]),e}(),H6=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).dueTime=r,o.scheduler=a,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return h(t,[{key:"_next",value:function(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(G6,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var r=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}}},{key:"clearDebounce",value:function(){var r=this.debouncedSubscription;null!==r&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Ct);function G6(e){e.debouncedNext()}var mv=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),XE=function(){var e=function(){function i(t){p(this,i),this._mutationObserverFactory=t,this._observedElements=new Map}return h(i,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(r,a){return n._cleanupObserver(a)})}},{key:"observe",value:function(n){var r=this,a=Mr(n);return new Xe(function(o){var l=r._observeElement(a).subscribe(o);return function(){l.unsubscribe(),r._unobserveElement(a)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var r=new $,a=this._mutationObserverFactory.create(function(o){return r.next(o)});a&&a.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:a,stream:r,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var r=this._observedElements.get(n),a=r.observer,o=r.stream;a&&a.disconnect(),o.complete(),this._observedElements.delete(n)}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(mv))},e.\u0275prov=G({factory:function(){return new e(x(mv))},token:e,providedIn:"root"}),e}(),fu=function(){var e=function(){function i(t,n,r){p(this,i),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new j,this._disabled=!1,this._currentSubscription=null}return h(i,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=W(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Ye(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var r=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?r.pipe(jd(n.debounce)):r).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(XE),v(P),v(le))},e.\u0275dir=A({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),hu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[mv]}),e}();function Rt(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n<i;n++)t[n-1]=arguments[n];return t.length?t.some(function(r){return e[r]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var J6=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}(),yv=new Xe(function(e){return e.complete()});function bv(e){return e?function(e){return new Xe(function(i){return e.schedule(function(){return i.complete()})})}(e):yv}function gt(e){return function(i){return 0===e?bv():i.lift(new e7(e))}}var e7=function(){function e(i){if(p(this,e),this.total=i,this.total<0)throw new J6}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new t7(t,this.total))}}]),e}(),t7=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).total=r,a.count=0,a}return h(t,[{key:"_next",value:function(r){var a=this.total,o=++this.count;o<=a&&(this.destination.next(r),o===a&&(this.destination.complete(),this.unsubscribe()))}}]),t}(Ct);var n7=function(){function e(i){p(this,e),this.total=i}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new i7(t,this.total))}}]),e}(),i7=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).total=r,a.count=0,a}return h(t,[{key:"_next",value:function(r){++this.count>this.total&&this.destination.next(r)}}]),t}(Ct);function Xa(e,i){return function(t){return t.lift(new r7(e,i))}}var Cv,r7=function(){function e(i,t){p(this,e),this.compare=i,this.keySelector=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new a7(t,this.compare,this.keySelector))}}]),e}(),a7=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).keySelector=a,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return h(t,[{key:"compare",value:function(r,a){return r===a}},{key:"_next",value:function(r){var a;try{var o=this.keySelector;a=o?o(r):r}catch(u){return this.destination.error(u)}var s=!1;if(this.hasKey)try{s=(0,this.compare)(this.key,a)}catch(u){return this.destination.error(u)}else this.hasKey=!0;s||(this.key=a,this.destination.next(r))}}]),t}(Ct);try{Cv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Cv=!1}var mu,Ja,kv,Te=function(){var e=h(function i(t){p(this,i),this._platformId=t,this.isBrowser=this._platformId?Ya(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&&!Cv)&&"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)(x(fn))},e.\u0275prov=G({factory:function(){return new e(x(fn))},token:e,providedIn:"root"}),e}(),Cs=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}();function ra(e){return function(){if(null==mu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return mu=!0}}))}finally{mu=mu||!1}return mu}()?e:!!e.capture}function t0(){if(null==Ja){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ja=!1;if("scrollBehavior"in document.documentElement.style)Ja=!0;else{var e=Element.prototype.scrollTo;Ja=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Ja}function n0(e){if(function(){if(null==kv){var e="undefined"!=typeof document?document.head:null;kv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return kv}()){var i=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Dr(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var i=e.shadowRoot.activeElement;if(i===e)break;e=i}return e}function aa(e){return e.composedPath?e.composedPath()[0]:e.target}function wv(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var l0=function(){function e(i){var t=this;p(this,e),this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new $,this._typeaheadSubscription=ye.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(n){return n.disabled},this._pressedLetters=[],this.tabOut=new $,this.change=new $,i instanceof Oi&&i.changes.subscribe(function(n){if(t._activeItem){var a=n.toArray().indexOf(t._activeItem);a>-1&&a!==t._activeItemIndex&&(t._activeItemIndex=a)}})}return h(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ys(function(r){return t._pressedLetters.push(r)}),jd(n),Ze(function(){return t._pressedLetters.length>0}),dt(function(){return t._pressedLetters.join("")})).subscribe(function(r){for(var a=t._getItemsArray(),o=1;o<a.length+1;o++){var s=(t._activeItemIndex+o)%a.length,l=a[s];if(!t._skipPredicateFn(l)&&0===l.getLabel().toUpperCase().trim().indexOf(r)){t.setActiveItem(s);break}}t._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,r=t.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(function(s){return!t[s]||n._allowedModifierKeys.indexOf(s)>-1});switch(r){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||Rt(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(r>=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r))))}this._pressedLetters=[],t.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(t){var n=this._getItemsArray(),r="number"==typeof t?t:n.indexOf(t),a=n[r];this._activeItem=null==a?null:a,this._activeItemIndex=r}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),r=1;r<=n.length;r++){var a=(this._activeItemIndex+t*r+n.length)%n.length;if(!this._skipPredicateFn(n[a]))return void this.setActiveItem(a)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var r=this._getItemsArray();if(r[t]){for(;this._skipPredicateFn(r[t]);)if(!r[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Oi?this._items.toArray():this._items}}]),e}(),u0=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"setActiveItem",value:function(r){this.activeItem&&this.activeItem.setInactiveStyles(),J(Y(t.prototype),"setActiveItem",this).call(this,r),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(l0),c0=function(){var e=function(){function i(t){p(this,i),this._platform=t}return h(i,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var r=function(e){try{return e.frameElement}catch(i){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(r&&(-1===f0(r)||!this.isVisible(r)))return!1;var a=n.nodeName.toLowerCase(),o=f0(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var i=e.nodeName.toLowerCase(),t="input"===i&&e.type;return"text"===t||"password"===t||"select"===i||"textarea"===i}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,r){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var i=e.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||d0(e))}(n)&&!this.isDisabled(n)&&((null==r?void 0:r.ignoreVisibility)||this.isVisible(n))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Te))},e.\u0275prov=G({factory:function(){return new e(x(Te))},token:e,providedIn:"root"}),e}();function d0(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var i=e.getAttribute("tabindex");return"-32768"!=i&&!(!i||isNaN(parseInt(i,10)))}function f0(e){if(!d0(e))return null;var i=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}var C7=function(){function e(i,t,n,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];p(this,e),this._element=i,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return h(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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(t){var n=this;return new Promise(function(r){n._executeOnStable(function(){return r(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(r){n._executeOnStable(function(){return r(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(r){n._executeOnStable(function(){return r(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),r=0;r<n.length;r++)n[r].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",n[r]):n[r].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",n[r]);return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(n.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",n),!this._checker.isFocusable(n)){var r=this._getFirstTabbableElement(n);return null==r||r.focus(t),!!r}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children||t.childNodes,r=0;r<n.length;r++){var a=n[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[r]):null;if(a)return a}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children||t.childNodes,r=n.length-1;r>=0;r--){var a=n[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[r]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(gt(1)).subscribe(t)}}]),e}(),Xd=function(){var e=function(){function i(t,n,r){p(this,i),this._checker=t,this._ngZone=n,this._document=r}return h(i,[{key:"create",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new C7(n,this._checker,this._ngZone,this._document,r)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(c0),x(le),x(oe))},e.\u0275prov=G({factory:function(){return new e(x(c0),x(le),x(oe))},token:e,providedIn:"root"}),e}();function Sv(e){return 0===e.offsetX&&0===e.offsetY}function Dv(e){var i=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}"undefined"!=typeof Element&&Element;var h0=new V("cdk-input-modality-detector-options"),D7={ignoreKeys:[18,17,224,91,16]},Ms=ra({passive:!0,capture:!0}),g0=function(){var e=function(){function i(t,n,r,a){var o=this;p(this,i),this._platform=t,this._mostRecentTarget=null,this._modality=new Vi(null),this._lastTouchMs=0,this._onKeydown=function(s){var l,u;(null===(u=null===(l=o._options)||void 0===l?void 0:l.ignoreKeys)||void 0===u?void 0:u.some(function(c){return c===s.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=aa(s))},this._onMousedown=function(s){Date.now()-o._lastTouchMs<650||(o._modality.next(Sv(s)?"keyboard":"mouse"),o._mostRecentTarget=aa(s))},this._onTouchstart=function(s){Dv(s)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=aa(s))},this._options=Object.assign(Object.assign({},D7),a),this.modalityDetected=this._modality.pipe(function(e){return function(i){return i.lift(new n7(e))}}(1)),this.modalityChanged=this.modalityDetected.pipe(Xa()),t.isBrowser&&n.runOutsideAngular(function(){r.addEventListener("keydown",o._onKeydown,Ms),r.addEventListener("mousedown",o._onMousedown,Ms),r.addEventListener("touchstart",o._onTouchstart,Ms)})}return h(i,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ms),document.removeEventListener("mousedown",this._onMousedown,Ms),document.removeEventListener("touchstart",this._onTouchstart,Ms))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Te),x(le),x(oe),x(h0,8))},e.\u0275prov=G({factory:function(){return new e(x(Te),x(le),x(oe),x(h0,8))},token:e,providedIn:"root"}),e}(),m0=new V("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),v0=new V("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),_0=function(){var e=function(){function i(t,n,r,a){p(this,i),this._ngZone=n,this._defaultOptions=a,this._document=r,this._liveElement=t||this._createLiveElement()}return h(i,[{key:"announce",value:function(n){for(var o,s,r=this,a=this._defaultOptions,l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];return 1===u.length&&"number"==typeof u[0]?s=u[0]:(o=u[0],s=u[1]),this.clear(),clearTimeout(this._previousTimeout),o||(o=a&&a.politeness?a.politeness:"polite"),null==s&&a&&(s=a.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(function(){return new Promise(function(d){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=n,d(),"number"==typeof s&&(r._previousTimeout=setTimeout(function(){return r.clear()},s))},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 n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),a=this._document.createElement("div"),o=0;o<r.length;o++)r[o].parentNode.removeChild(r[o]);return a.classList.add(n),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),this._document.body.appendChild(a),a}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(m0,8),x(le),x(oe),x(v0,8))},e.\u0275prov=G({factory:function(){return new e(x(m0,8),x(le),x(oe),x(v0,8))},token:e,providedIn:"root"}),e}(),y0=new V("cdk-focus-monitor-default-options"),Jd=ra({passive:!0,capture:!0}),Bt=function(){var e=function(){function i(t,n,r,a,o){var s=this;p(this,i),this._ngZone=t,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){s._windowFocused=!0,s._windowFocusTimeoutId=setTimeout(function(){return s._windowFocused=!1})},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=function(l){for(var u=aa(l),c="focus"===l.type?s._onFocus:s._onBlur,d=u;d;d=d.parentElement)c.call(s,l,d)},this._document=a,this._detectionMode=(null==o?void 0:o.detectionMode)||0}return h(i,[{key:"monitor",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=Mr(n);if(!this._platform.isBrowser||1!==a.nodeType)return pt(null);var o=n0(a)||this._getDocument(),s=this._elementInfo.get(a);if(s)return r&&(s.checkChildren=!0),s.subject;var l={checkChildren:r,subject:new $,rootNode:o};return this._elementInfo.set(a,l),this._registerGlobalListeners(l),l.subject}},{key:"stopMonitoring",value:function(n){var r=Mr(n),a=this._elementInfo.get(r);a&&(a.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(a))}},{key:"focusVia",value:function(n,r,a){var o=this,s=Mr(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(function(u){var c=Le(u,2);return o._originChanged(c[0],r,c[1])}):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(r,a){return n.stopMonitoring(a)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,r,a){a?n.classList.add(r):n.classList.remove(r)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,r){this._toggleClass(n,"cdk-focused",!!r),this._toggleClass(n,"cdk-touch-focused","touch"===r),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===r),this._toggleClass(n,"cdk-mouse-focused","mouse"===r),this._toggleClass(n,"cdk-program-focused","program"===r)}},{key:"_setOrigin",value:function(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){r._origin=n,r._originFromTouchInteraction="touch"===n&&a,0===r._detectionMode&&(clearTimeout(r._originTimeoutId),r._originTimeoutId=setTimeout(function(){return r._origin=null},r._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,r){var a=this._elementInfo.get(r),o=aa(n);!a||!a.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),a)}},{key:"_onBlur",value:function(n,r){var a=this._elementInfo.get(r);!a||a.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(a.subject,null))}},{key:"_emitOrigin",value:function(n,r){this._ngZone.run(function(){return n.next(r)})}},{key:"_registerGlobalListeners",value:function(n){var r=this;if(this._platform.isBrowser){var a=n.rootNode,o=this._rootNodeFocusListenerCount.get(a)||0;o||this._ngZone.runOutsideAngular(function(){a.addEventListener("focus",r._rootNodeFocusAndBlurListener,Jd),a.addEventListener("blur",r._rootNodeFocusAndBlurListener,Jd)}),this._rootNodeFocusListenerCount.set(a,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){r._getWindow().addEventListener("focus",r._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(de(this._stopInputModalityDetector)).subscribe(function(s){r._setOrigin(s,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){var a=this._rootNodeFocusListenerCount.get(r);a>1?this._rootNodeFocusListenerCount.set(r,a-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jd),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jd),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,r,a){this._setClasses(n,r),this._emitOrigin(a.subject,r),this._lastFocusOrigin=r}},{key:"_getClosestElementsInfo",value:function(n){var r=[];return this._elementInfo.forEach(function(a,o){(o===n||a.checkChildren&&o.contains(n))&&r.push([o,a])}),r}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(le),x(Te),x(g0),x(oe,8),x(y0,8))},e.\u0275prov=G({factory:function(){return new e(x(le),x(Te),x(g0),x(oe,8),x(y0,8))},token:e,providedIn:"root"}),e}(),b0="cdk-high-contrast-black-on-white",C0="cdk-high-contrast-white-on-black",Av="cdk-high-contrast-active",k0=function(){var e=function(){function i(t,n){p(this,i),this._platform=t,this._document=n}return h(i,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var r=this._document.defaultView||window,a=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(a&&a.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(Av),n.remove(b0),n.remove(C0),this._hasCheckedHighContrastMode=!0;var r=this.getHighContrastMode();1===r?(n.add(Av),n.add(b0)):2===r&&(n.add(Av),n.add(C0))}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Te),x(oe))},e.\u0275prov=G({factory:function(){return new e(x(Te),x(oe))},token:e,providedIn:"root"}),e}(),Zd=function(){var e=h(function i(t){p(this,i),t._applyBodyHighContrastModeCssClasses()});return e.\u0275fac=function(t){return new(t||e)(x(k0))},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[Cs,hu]]}),e}(),w0=new Kr("12.2.13");function x7(){return ib(1)}function xv(){return x7()(pt.apply(void 0,arguments))}function ot(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];var n=i[i.length-1];return bo(n)?(i.pop(),function(r){return xv(i,r,n)}):function(r){return xv(i,r)}}var M0=h(function e(){p(this,e)}),T7=h(function e(){p(this,e)}),Er="*";function Ot(e,i){return{type:7,name:e,definitions:i,options:{}}}function je(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:i,timings:e}}function S0(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:i}}function ue(e){return{type:6,styles:e,offset:null}}function Ie(e,i,t){return{type:0,name:e,styles:i,options:t}}function He(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:i,options:t}}function D0(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function E0(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:i,options:t}}function A0(e){Promise.resolve(null).then(e)}var Ss=function(){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(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=i+t}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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 t=this;A0(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),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(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(r){return r()}),n.length=0}}]),e}(),x0=function(){function e(i){var t=this;p(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=i;var n=0,r=0,a=0,o=this.players.length;0==o?A0(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++r==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(r){var a=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,r){return null===n||r.totalTime>n.totalTime?r:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(r){return r()}),n.length=0}}]),e}();function T0(){return"undefined"!=typeof window&&void 0!==window.document}function Iv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function oa(e){switch(e.length){case 0:return new Ss;case 1:return e[0];default:return new x0(e)}}function I0(e,i,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(n.forEach(function(d){var f=d.offset,_=f==l,b=_&&u||{};Object.keys(d).forEach(function(C){var S=C,I=d[C];if("offset"!==C)switch(S=i.normalizePropertyName(S,o),I){case"!":I=r[C];break;case Er:I=a[C];break;default:I=i.normalizeStyleValue(C,S,I,o)}b[S]=I}),_||s.push(b),u=b,l=f}),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function Rv(e,i,t,n){switch(i){case"start":e.onStart(function(){return n(t&&Ov(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&Ov(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&Ov(t,"destroy",e))})}}function Ov(e,i,t){var n=t.totalTime,a=Fv(e.element,e.triggerName,e.fromState,e.toState,i||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function Fv(e,i,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:i,fromState:t,toState:n,phaseName:r,totalTime:a,disabled:!!o}}function zn(e,i,t){var n;return e instanceof Map?(n=e.get(i))||e.set(i,n=t):(n=e[i])||(n=e[i]=t),n}function R0(e){var i=e.indexOf(":");return[e.substring(1,i),e.substr(i+1)]}var Pv=function(i,t){return!1},Nv=function(i,t){return!1},O0=function(i,t,n){return[]},F0=Iv();(F0||"undefined"!=typeof Element)&&(Pv=T0()?function(i,t){for(;t&&t!==document.documentElement;){if(t===i)return!0;t=t.parentNode||t.host}return!1}:function(i,t){return i.contains(t)},Nv=function(){if(F0||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,i=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return i?function(t,n){return i.apply(t,[n])}:Nv}(),O0=function(i,t,n){var r=[];if(n)for(var a=i.querySelectorAll(t),o=0;o<a.length;o++)r.push(a[o]);else{var s=i.querySelector(t);s&&r.push(s)}return r});var eo=null,P0=!1;function Lv(e){eo||(eo=("undefined"!=typeof document?document.body:null)||{},P0=!!eo.style&&"WebkitAppearance"in eo.style);var i=!0;return eo.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(i=e in eo.style)&&P0&&(i="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in eo.style),i}var Bv=Nv,Vv=Pv,Hv=O0;function N0(e){var i={};return Object.keys(e).forEach(function(t){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2");i[n]=e[t]}),i}var L0=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"validateStyleProperty",value:function(n){return Lv(n)}},{key:"matchesElement",value:function(n,r){return Bv(n,r)}},{key:"containsElement",value:function(n,r){return Vv(n,r)}},{key:"query",value:function(n,r,a){return Hv(n,r,a)}},{key:"computeStyle",value:function(n,r,a){return a||""}},{key:"animate",value:function(n,r,a,o,s){return new Ss(a,o)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),Gv=function(){var e=h(function i(){p(this,i)});return e.NOOP=new L0,e}(),V0="ng-enter",Uv="ng-leave",ef="ng-trigger",tf=".ng-trigger",H0="ng-animating",jv=".ng-animating";function to(e){if("number"==typeof e)return e;var i=e.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:zv(parseFloat(i[1]),i[2])}function zv(e,i){return"s"===i?1e3*e:e}function nf(e,i,t){return e.hasOwnProperty("duration")?e:function(e,i,t){var r,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return i.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=zv(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=zv(parseFloat(l),s[4]));var u=s[5];u&&(o=u)}else r=e;if(!t){var c=!1,d=i.length;r<0&&(i.push("Duration values below 0 are not allowed for this animation step."),c=!0),a<0&&(i.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&i.splice(d,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:a,easing:o}}(e,i,t)}function Ds(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}function sa(e,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(i)for(var n in e)t[n]=e[n];else Ds(e,t);return t}function G0(e,i,t){return t?i+":"+t+";":""}function U0(e){for(var i="",t=0;t<e.style.length;t++){var n=e.style.item(t);i+=G0(0,n,e.style.getPropertyValue(n))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(i+=G0(0,B7(r),e.style[r]));e.setAttribute("style",i)}function lr(e,i,t){e.style&&(Object.keys(i).forEach(function(n){var r=Yv(n);t&&!t.hasOwnProperty(n)&&(t[n]=e.style[r]),e.style[r]=i[n]}),Iv()&&U0(e))}function no(e,i){e.style&&(Object.keys(i).forEach(function(t){var n=Yv(t);e.style[n]=""}),Iv()&&U0(e))}function _u(e){return Array.isArray(e)?1==e.length?e[0]:S0(e):e}var Wv=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function j0(e){var i=[];if("string"==typeof e){for(var t;t=Wv.exec(e);)i.push(t[1]);Wv.lastIndex=0}return i}function rf(e,i,t){var n=e.toString(),r=n.replace(Wv,function(a,o){var s=i[o];return i.hasOwnProperty(o)||(t.push("Please provide a value for the animation param ".concat(o)),s=""),s.toString()});return r==n?e:r}function af(e){for(var i=[],t=e.next();!t.done;)i.push(t.value),t=e.next();return i}var L7=/-+([a-z0-9])/g;function Yv(e){return e.replace(L7,function(){for(var i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function B7(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function z0(e,i){return 0===e||0===i}function W0(e,i,t){var n=Object.keys(t);if(n.length&&i.length){var r=i[0],a=[];if(n.forEach(function(l){r.hasOwnProperty(l)||a.push(l),r[l]=t[l]}),a.length)for(var o=function(){var u=i[s];a.forEach(function(c){u[c]=qv(e,c)})},s=1;s<i.length;s++)o()}return i}function Wn(e,i,t){switch(i.type){case 7:return e.visitTrigger(i,t);case 0:return e.visitState(i,t);case 1:return e.visitTransition(i,t);case 2:return e.visitSequence(i,t);case 3:return e.visitGroup(i,t);case 4:return e.visitAnimate(i,t);case 5:return e.visitKeyframes(i,t);case 6:return e.visitStyle(i,t);case 8:return e.visitReference(i,t);case 9:return e.visitAnimateChild(i,t);case 10:return e.visitAnimateRef(i,t);case 11:return e.visitQuery(i,t);case 12:return e.visitStagger(i,t);default:throw new Error("Unable to resolve animation metadata node #".concat(i.type))}}function qv(e,i){return window.getComputedStyle(e)[i]}function V7(e,i){var t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(function(n){return function(e,i,t){if(":"==e[0]){var n=function(e,i){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n)<parseFloat(t)};default:return i.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,t);if("function"==typeof n)return void i.push(n);e=n}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),i;var a=r[1],o=r[2],s=r[3];i.push(Y0(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&i.push(Y0(s,a))}(n,t,i)}):t.push(e),t}var lf=new Set(["true","1"]),uf=new Set(["false","0"]);function Y0(e,i){var t=lf.has(e)||uf.has(e),n=lf.has(i)||uf.has(i);return function(r,a){var o="*"==e||e==r,s="*"==i||i==a;return!o&&t&&"boolean"==typeof r&&(o=r?lf.has(e):uf.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?lf.has(i):uf.has(i)),o&&s}}var U7=new RegExp("s*".concat(":self","s*,?"),"g");function Q0(e,i,t){return new j7(e).build(i,t)}var j7=function(){function e(i){p(this,e),this._driver=i}return h(e,[{key:"build",value:function(t,n){var r=new Y7(n);return this._resetContextStyleTimingState(r),Wn(this,_u(t),r)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var r=this,a=n.queryCount=0,o=n.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(u){if(r._resetContextStyleTimingState(n),0==u.type){var c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(function(_){c.name=_,s.push(r.visitState(c,n))}),c.name=d}else if(1==u.type){var f=r.visitTransition(u,n);a+=f.queryCount,o+=f.depCount,l.push(f)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var r=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(r.containsDynamicStyles){var o=new Set,s=a||{};if(r.styles.forEach(function(u){if(cf(u)){var c=u;Object.keys(c).forEach(function(d){j0(c[d]).forEach(function(f){s.hasOwnProperty(f)||o.add(f)})})}}),o.size){var l=af(o.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(l.join(", ")))}}return{type:0,name:t.name,style:r,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var r=Wn(this,_u(t.animation),n);return{type:1,matchers:V7(t.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:io(t.options)}}},{key:"visitSequence",value:function(t,n){var r=this;return{type:2,steps:t.steps.map(function(a){return Wn(r,a,n)}),options:io(t.options)}}},{key:"visitGroup",value:function(t,n){var r=this,a=n.currentTime,o=0,s=t.steps.map(function(l){n.currentTime=a;var u=Wn(r,l,n);return o=Math.max(o,n.currentTime),u});return n.currentTime=o,{type:3,steps:s,options:io(t.options)}}},{key:"visitAnimate",value:function(t,n){var r=function(e,i){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return Qv(nf(e,i).duration,0,"");var r=e,a=r.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=Qv(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Qv((t=t||nf(r,i)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;var a,o=t.styles?t.styles:ue({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,l=!1;if(!s){l=!0;var u={};r.easing&&(u.easing=r.easing),s=ue(u)}n.currentTime+=r.duration+r.delay;var c=this.visitStyle(s,n);c.isEmptyStep=l,a=c}return n.currentAnimateTimings=null,{type:4,timings:r,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}},{key:"_makeStyleAst",value:function(t,n){var r=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Er?r.push(s):n.errors.push("The provided style string value ".concat(s," is not allowed.")):r.push(s)}):r.push(t.styles);var a=!1,o=null;return r.forEach(function(s){if(cf(s)){var l=s,u=l.easing;if(u&&(o=u,delete l.easing),!a)for(var c in l)if(l[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:r,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var r=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(u){if(r._driver.validateStyleProperty(u)){var c=n.collectedStyles[n.currentQuerySelector],d=c[u],f=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(n.errors.push('The CSS property "'.concat(u,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(o,'ms"')),f=!1),s=d.startTime),f&&(c[u]={startTime:s,endTime:o}),n.options&&function(e,i,t){var n=i.params||{},r=j0(e);r.length&&r.forEach(function(a){n.hasOwnProperty(a)||t.push("Unable to resolve the local animation param ".concat(a," in the given list of values"))})}(l[u],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(u,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var r=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),a;var s=0,l=[],u=!1,c=!1,d=0,f=t.steps.map(function(N){var z=r._makeStyleAst(N,n),re=null!=z.offset?z.offset:function(e){if("string"==typeof e)return null;var i=null;if(Array.isArray(e))e.forEach(function(n){if(cf(n)&&n.hasOwnProperty("offset")){var r=n;i=parseFloat(r.offset),delete r.offset}});else if(cf(e)&&e.hasOwnProperty("offset")){var t=e;i=parseFloat(t.offset),delete t.offset}return i}(z.styles),Z=0;return null!=re&&(s++,Z=z.offset=re),c=c||Z<0||Z>1,u=u||Z<d,d=Z,l.push(Z),z});c&&n.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),u&&n.errors.push("Please ensure that all keyframe offsets are in order");var _=t.steps.length,b=0;s>0&&s<_?n.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(b=1/(_-1));var C=_-1,S=n.currentTime,I=n.currentAnimateTimings,E=I.duration;return f.forEach(function(N,z){var re=b>0?z==C?1:b*z:l[z],Z=re*E;n.currentTime=S+I.delay+Z,I.duration=Z,r._validateStyleAst(N,n),N.offset=re,a.styles.push(N)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:Wn(this,_u(t.animation),n),options:io(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:io(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:io(t.options)}}},{key:"visitQuery",value:function(t,n){var r=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function(e){var i=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return i&&(e=e.replace(U7,"")),e=e.replace(/@\*/g,tf).replace(/@\w+/g,function(t){return tf+"-"+t.substr(1)}).replace(/:animating/g,jv),[e,i]}(t.selector),s=Le(o,2),l=s[0],u=s[1];n.currentQuerySelector=r.length?r+" "+l:l,zn(n.collectedStyles,n.currentQuerySelector,{});var c=Wn(this,_u(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:u,animation:c,originalSelector:t.selector,options:io(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var r="full"===t.timings?{duration:0,delay:0,easing:"full"}:nf(t.timings,n.errors,!0);return{type:12,animation:Wn(this,_u(t.animation),n),timings:r,options:null}}}]),e}(),Y7=h(function e(i){p(this,e),this.errors=i,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 cf(e){return!Array.isArray(e)&&"object"==typeof e}function io(e){return e?(e=Ds(e)).params&&(e.params=function(e){return e?Ds(e):null}(e.params)):e={},e}function Qv(e,i,t){return{duration:e,delay:i,easing:t}}function Kv(e,i,t,n,r,a){var o=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:i,preStyleProps:t,postStyleProps:n,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var $v=function(){function e(){p(this,e),this._map=new Map}return h(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var r,a=this._map.get(t);a||this._map.set(t,a=[]),(r=a).push.apply(r,ke(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),X7=new RegExp(":enter","g"),Z7=new RegExp(":leave","g");function $0(e,i,t,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=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 eW).buildKeyframes(e,i,t,n,r,a,o,s,l,u)}var eW=function(){function e(){p(this,e)}return h(e,[{key:"buildKeyframes",value:function(t,n,r,a,o,s,l,u,c){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new $v;var f=new tW(t,n,c,a,o,d,[]);f.options=u,f.currentTimeline.setStyles([s],null,f.errors,u),Wn(this,r,f);var _=f.timelines.filter(function(C){return C.containsAnimation()});if(_.length&&Object.keys(l).length){var b=_[_.length-1];b.allowOnlyTimelineStyles()||b.setStyles([l],null,f.errors,u)}return _.length?_.map(function(C){return C.buildKeyframes()}):[Kv(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var r=n.subInstructions.consume(n.element);if(r){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,r){var o=n.currentTimeline.currentTime,s=null!=r.duration?to(r.duration):null,l=null!=r.delay?to(r.delay):null;return 0!==s&&t.forEach(function(u){var c=n.appendInstructionToTimeline(u,s,l);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),Wn(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var r=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=df);var l=to(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(u){return Wn(r,u,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var r=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?to(t.options.delay):0;t.steps.forEach(function(l){var u=n.createSubContext(t.options);s&&u.delayNextStep(s),Wn(r,l,u),o=Math.max(o,u.currentTimeline.currentTime),a.push(u.currentTimeline)}),a.forEach(function(l){return n.currentTimeline.mergeTimelineCollectedStyles(l)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var r=t.strValue;return nf(n.params?rf(r,n.params,n.errors):r,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var r=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var r=n.currentTimeline,a=n.currentAnimateTimings;!a&&r.getCurrentStyleProperties().length&&r.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var r=n.currentAnimateTimings,a=n.currentTimeline.duration,o=r.duration,l=n.createSubContext().currentTimeline;l.easing=r.easing,t.styles.forEach(function(u){l.forwardTime((u.offset||0)*o),l.setStyles(u.styles,u.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var r=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?to(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=df);var l=a,u=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=u.length;var c=null;u.forEach(function(d,f){n.currentQueryIndex=f;var _=n.createSubContext(t.options,d);s&&_.delayNextStep(s),d===n.element&&(c=_.currentTimeline),Wn(r,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,_.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(l),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var r=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(n.currentQueryTotal-1),u=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=r.currentStaggerTime}var d=n.currentTimeline;u&&d.delayNextStep(u);var f=d.currentTime;Wn(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=a.currentTime-f+(a.startTime-r.currentTimeline.startTime)}}]),e}(),df={},tW=function(){function e(i,t,n,r,a,o,s,l){p(this,e),this._driver=i,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=df,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new X0(this._driver,t,0),s.push(this.currentTimeline)}return h(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var r=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=to(a.duration)),null!=a.delay&&(o.delay=to(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(u){(!n||!l.hasOwnProperty(u))&&(l[u]=rf(s[u],l,r.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var r=t.params={};Object.keys(n).forEach(function(a){r[a]=n[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,r||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(t){return this.previousNode=df,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,r){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+t.delay,easing:""},o=new nW(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,r,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(X7,"."+this._enterClassName)).replace(Z7,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),l.push.apply(l,ke(c))}return!o&&0==l.length&&s.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),l}}]),e}(),X0=function(){function e(i,t,n,r){p(this,e),this._driver=i,this.element=t,this.startTime=n,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return h(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(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(r){n._backFill[r]=n._globalTimelineStyles[r]||Er,n._currentKeyframe[r]=Er}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,r,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},l=function(e,i){var n,t={};return e.forEach(function(r){"*"===r?(n=n||Object.keys(i)).forEach(function(a){t[a]=Er}):sa(r,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(u){var c=rf(l[u],s,r);o._pendingStyles[u]=c,o._localTimelineStyles.hasOwnProperty(u)||(o._backFill[u]=o._globalTimelineStyles.hasOwnProperty(u)?o._globalTimelineStyles[u]:Er),o._updateStyle(u,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,r=Object.keys(n);0!=r.length&&(this._pendingStyles={},r.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var r=t._localTimelineStyles[n];t._pendingStyles[n]=r,t._updateStyle(n,r)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(r){var a=n._styleSummary[r],o=t._styleSummary[r];(!a||o.time>a.time)&&n._updateStyle(r,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,r=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,f){var _=sa(d,!0);Object.keys(_).forEach(function(b){var C=_[b];"!"==C?n.add(b):C==Er&&r.add(b)}),a||(_.offset=f/t.duration),o.push(_)});var s=n.size?af(n.values()):[],l=r.size?af(r.values()):[];if(a){var u=o[0],c=Ds(u);u.offset=0,c.offset=1,o=[u,c]}return Kv(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),e}(),nW=function(e){k(t,e);var i=w(t);function t(n,r,a,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,t),(u=i.call(this,n,r,l.delay)).keyframes=a,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return h(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var r=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var u=[],c=s+o,d=o/c,f=sa(r[0],!1);f.offset=0,u.push(f);var _=sa(r[0],!1);_.offset=J0(d),u.push(_);for(var b=r.length-1,C=1;C<=b;C++){var S=sa(r[C],!1);S.offset=J0((o+S.offset*s)/c),u.push(S)}s=c,o=0,l="",r=u}return Kv(this.element,r,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(X0);function J0(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,i-1);return Math.round(e*t)/t}var Xv=h(function e(){p(this,e)}),rW=function(e){k(t,e);var i=w(t);function t(){return p(this,t),i.apply(this,arguments)}return h(t,[{key:"normalizePropertyName",value:function(r,a){return Yv(r)}},{key:"normalizeStyleValue",value:function(r,a,o,s){var l="",u=o.toString().trim();if(oW[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push("Please provide a CSS unit value for ".concat(r,":").concat(o))}return u+l}}]),t}(Xv),oW=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(","),i={},e.forEach(function(t){return i[t]=!0}),i;var e,i}();function Z0(e,i,t,n,r,a,o,s,l,u,c,d,f){return{type:0,element:e,triggerName:i,isRemovalTransition:r,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}var Jv={},eA=function(){function e(i,t,n){p(this,e),this._triggerName=i,this.ast=t,this._stateStyles=n}return h(e,[{key:"match",value:function(t,n,r,a){return function(e,i,t,n,r){return e.some(function(a){return a(i,t,n,r)})}(this.ast.matchers,t,n,r,a)}},{key:"buildStyles",value:function(t,n,r){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,r):{};return o?o.buildStyles(n,r):s}},{key:"build",value:function(t,n,r,a,o,s,l,u,c,d){var f=[],_=this.ast.options&&this.ast.options.params||Jv,C=this.buildStyles(r,l&&l.params||Jv,f),S=u&&u.params||Jv,I=this.buildStyles(a,S,f),E=new Set,N=new Map,z=new Map,re="void"===a,Z={params:Object.assign(Object.assign({},_),S)},pe=d?[]:$0(t,n,this.ast.animation,o,s,C,I,Z,c,f),Ne=0;if(pe.forEach(function(bt){Ne=Math.max(bt.duration+bt.delay,Ne)}),f.length)return Z0(n,this._triggerName,r,a,re,C,I,[],[],N,z,Ne,f);pe.forEach(function(bt){var Yt=bt.element,Kn=zn(N,Yt,{});bt.preStyleProps.forEach(function(rn){return Kn[rn]=!0});var hi=zn(z,Yt,{});bt.postStyleProps.forEach(function(rn){return hi[rn]=!0}),Yt!==n&&E.add(Yt)});var ut=af(E.values());return Z0(n,this._triggerName,r,a,re,C,I,pe,ut,N,z,Ne)}}]),e}(),uW=function(){function e(i,t,n){p(this,e),this.styles=i,this.defaultParams=t,this.normalizer=n}return h(e,[{key:"buildStyles",value:function(t,n){var r=this,a={},o=Ds(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(u){var c=l[u];c.length>1&&(c=rf(c,o,n));var d=r.normalizer.normalizePropertyName(u,n);c=r.normalizer.normalizeStyleValue(u,d,c,n),a[d]=c})}}),a}}]),e}(),dW=function(){function e(i,t,n){var r=this;p(this,e),this.name=i,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){r.states[a.name]=new uW(a.style,a.options&&a.options.params||{},n)}),tA(this.states,"true","1"),tA(this.states,"false","0"),t.transitions.forEach(function(a){r.transitionFactories.push(new eA(i,a,r.states))}),this.fallbackTransition=function(e,i,t){return new eA(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},i)}(i,this.states)}return h(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,r,a){return this.transitionFactories.find(function(s){return s.match(t,n,r,a)})||null}},{key:"matchStyles",value:function(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}}]),e}();function tA(e,i,t){e.hasOwnProperty(i)?e.hasOwnProperty(t)||(e[t]=e[i]):e.hasOwnProperty(t)&&(e[i]=e[t])}var hW=new $v,pW=function(){function e(i,t,n){p(this,e),this.bodyNode=i,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return h(e,[{key:"register",value:function(t,n){var r=[],a=Q0(this._driver,n,r);if(r.length)throw new Error("Unable to build the animation due to the following errors: ".concat(r.join("\n")));this._animations[t]=a}},{key:"_buildPlayer",value:function(t,n,r){var a=t.element,o=I0(this._driver,this._normalizer,a,t.keyframes,n,r);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var l,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],u=new Map;if(s?(l=$0(this._driver,n,s,V0,Uv,{},{},a,hW,o)).forEach(function(f){var _=zn(u,f.element,{});f.postStyleProps.forEach(function(b){return _[b]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),l=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));u.forEach(function(f,_){Object.keys(f).forEach(function(b){f[b]=r._driver.computeStyle(_,b,Er)})});var c=l.map(function(f){var _=u.get(f.element);return r._buildPlayer(f,{},_)}),d=oa(c);return this._playersById[t]=d,d.onDestroy(function(){return r.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,r,a){var o=Fv(n,"","","");return Rv(this._getPlayer(t),r,o,a),function(){}}},{key:"command",value:function(t,n,r,a){if("register"!=r)if("create"!=r){var s=this._getPlayer(t);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),nA="ng-animate-queued",iA="ng-animate-disabled",rA=".ng-animate-disabled",mW="ng-star-inserted",_W=[],aA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},li="__ng_removed",Zv=function(){function e(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,e),this.namespaceId=t;var n=i&&i.hasOwnProperty("value"),r=n?i.value:i;if(this.value=wW(r),n){var a=Ds(i);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return h(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var r=this.options.params;Object.keys(n).forEach(function(a){null==r[a]&&(r[a]=n[a])})}}}]),e}(),yu="void",e_=new Zv(yu),bW=function(){function e(i,t,n){p(this,e),this.id=i,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,ui(t,this._hostClassName)}return h(e,[{key:"listen",value:function(t,n,r,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(r,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==r||0==r.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(r))throw new Error('The provided animation trigger event "'.concat(r,'" for the animation trigger "').concat(n,'" is not supported!'));var s=zn(this._elementListeners,t,[]),l={name:n,phase:r,callback:a};s.push(l);var u=zn(this._engine.statesByElement,t,{});return u.hasOwnProperty(n)||(ui(t,ef),ui(t,ef+"-"+n),u[n]=e_),function(){o._engine.afterFlush(function(){var c=s.indexOf(l);c>=0&&s.splice(c,1),o._triggers[n]||delete u[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,r){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),l=new t_(this.id,n,t),u=this._engine.statesByElement.get(t);u||(ui(t,ef),ui(t,ef+"-"+n),this._engine.statesByElement.set(t,u={}));var c=u[n],d=new Zv(r,this.id),f=r&&r.hasOwnProperty("value");!f&&c&&d.absorbOptions(c.options),u[n]=d,c||(c=e_);var _=d.value===yu;if(_||c.value!==d.value){var I=zn(this._engine.playersByElement,t,[]);I.forEach(function(z){z.namespaceId==a.id&&z.triggerName==n&&z.queued&&z.destroy()});var E=s.matchTransition(c.value,d.value,t,d.params),N=!1;if(!E){if(!o)return;E=s.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:E,fromState:c,toState:d,player:l,isFallbackTransition:N}),N||(ui(t,nA),l.onStart(function(){Es(t,nA)})),l.onDone(function(){var z=a.players.indexOf(l);z>=0&&a.players.splice(z,1);var re=a._engine.playersByElement.get(t);if(re){var Z=re.indexOf(l);Z>=0&&re.splice(Z,1)}}),this.players.push(l),I.push(l),l}if(!EW(c.params,d.params)){var b=[],C=s.matchStyles(c.value,c.params,b),S=s.matchStyles(d.value,d.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(function(){no(t,C),lr(t,S)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(r,a){delete r[t]}),this._elementListeners.forEach(function(r,a){n._elementListeners.set(a,r.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(r){return r.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var r=this,a=this._engine.driver.query(t,tf,!0);a.forEach(function(o){if(!o[li]){var s=r._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,n,!1,!0)}):r.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return r.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,r,a){var o=this,s=this._engine.statesByElement.get(t);if(s){var l=[];if(Object.keys(s).forEach(function(u){if(o._triggers[u]){var c=o.trigger(t,u,yu,a);c&&l.push(c)}}),l.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),r&&oa(l).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,r=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(r&&a){var o=new Set;r.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var c=n._triggers[l].fallbackTransition,d=a[l]||e_,f=new Zv(yu),_=new t_(n.id,l,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:l,transition:c,fromState:d,toState:f,player:_,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var r=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var c=t[li];(!c||c===aA)&&(a.afterFlush(function(){return r.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){ui(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,r=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=n._elementListeners.get(s);l&&l.forEach(function(u){if(u.name==a.triggerName){var c=Fv(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,Rv(a.player,u.phase,c,u.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):r.push(a)}}),this._queue=[],r.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(r){return r.element===t})||n}}]),e}(),CW=function(){function e(i,t,n){p(this,e),this.bodyNode=i,this.driver=t,this._normalizer=n,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(r,a){}}return h(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(r){r.queued&&t.push(r)})}),t}},{key:"createNamespace",value:function(t,n){var r=new bW(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}},{key:"_balanceNamespaceList",value:function(t,n){var r=this._namespaceList.length-1;if(r>=0){for(var a=!1,o=r;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,n)){this._namespaceList.splice(o+1,0,t),a=!0;break}a||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}},{key:"registerTrigger",value:function(t,n,r){var a=this._namespaceLookup[t];a&&a.register(n,r)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var r=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){r.namespacesByHostElement.delete(a.hostElement),delete r._namespaceLookup[t];var o=r._namespaceList.indexOf(a);o>=0&&r._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,r=this.statesByElement.get(t);if(r)for(var a=Object.keys(r),o=0;o<a.length;o++){var s=r[a[o]].namespaceId;if(s){var l=this._fetchNamespace(s);l&&n.add(l)}}return n}},{key:"trigger",value:function(t,n,r,a){if(ff(n)){var o=this._fetchNamespace(t);if(o)return o.trigger(n,r,a),!0}return!1}},{key:"insertNode",value:function(t,n,r,a){if(ff(n)){var o=n[li];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(n,r)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ui(t,iA)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Es(t,iA))}},{key:"removeNode",value:function(t,n,r,a){if(ff(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),r){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,r,a){this.collectedLeaveElements.push(n),n[li]={namespaceId:t,setForRemoval:a,hasAnimation:r,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,r,a,o){return ff(n)?this._fetchNamespace(t).listen(n,r,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,r,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,r=this.driver.query(t,tf,!0);r.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(r=this.driver.query(t,jv,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(r){r.queued?r.markedForDestroy=!0:r.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(r){return r.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return oa(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,r=t[li];if(r&&r.setForRemoval){if(t[li]=aA,r.namespaceId){this.destroyInnerAnimations(t);var a=this._fetchNamespace(r.namespaceId);a&&a.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}this.driver.matchesElement(t,rA)&&this.markElementAsDisabled(t,!1),this.driver.query(t,rA,!0).forEach(function(o){n.markElementAsDisabled(o,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,r=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(f,_){return t._balanceNamespaceList(f,_)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var o=this.collectedEnterElements[a];ui(o,mW)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var s=[];try{r=this._flushAnimations(s,n)}finally{for(var l=0;l<s.length;l++)s[l]()}}else for(var u=0;u<this.collectedLeaveElements.length;u++){var c=this.collectedLeaveElements[u];this.processLeaveNode(c)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(f){return f()}),this._flushFns=[],this._whenQuietFns.length){var d=this._whenQuietFns;this._whenQuietFns=[],r.length?oa(r).onDone(function(){d.forEach(function(f){return f()})}):d.forEach(function(f){return f()})}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,n){var r=this,a=new $v,o=[],s=new Map,l=[],u=new Map,c=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(function(ge){f.add(ge);for(var we=r.driver.query(ge,".ng-animate-queued",!0),Re=0;Re<we.length;Re++)f.add(we[Re])});var _=this.bodyNode,b=Array.from(this.statesByElement.keys()),C=lA(b,this.collectedEnterElements),S=new Map,I=0;C.forEach(function(ge,we){var Re=V0+I++;S.set(we,Re),ge.forEach(function(Xt){return ui(Xt,Re)})});for(var E=[],N=new Set,z=new Set,re=0;re<this.collectedLeaveElements.length;re++){var Z=this.collectedLeaveElements[re],pe=Z[li];pe&&pe.setForRemoval&&(E.push(Z),N.add(Z),pe.hasAnimation?this.driver.query(Z,".ng-star-inserted",!0).forEach(function(ge){return N.add(ge)}):z.add(Z))}var Ne=new Map,ut=lA(b,Array.from(N));ut.forEach(function(ge,we){var Re=Uv+I++;Ne.set(we,Re),ge.forEach(function(Xt){return ui(Xt,Re)})}),t.push(function(){C.forEach(function(ge,we){var Re=S.get(we);ge.forEach(function(Xt){return Es(Xt,Re)})}),ut.forEach(function(ge,we){var Re=Ne.get(we);ge.forEach(function(Xt){return Es(Xt,Re)})}),E.forEach(function(ge){r.processLeaveNode(ge)})});for(var bt=[],Yt=[],Kn=this._namespaceList.length-1;Kn>=0;Kn--)this._namespaceList[Kn].drainQueuedTransitions(n).forEach(function(ge){var we=ge.player,Re=ge.element;if(bt.push(we),r.collectedEnterElements.length){var Xt=Re[li];if(Xt&&Xt.setForMove)return void we.destroy()}var go=!_||!r.driver.containsElement(_,Re),Us=Ne.get(Re),Rh=S.get(Re),yn=r._buildInstruction(ge,a,Rh,Us,go);if(yn.errors&&yn.errors.length)Yt.push(yn);else{if(go)return we.onStart(function(){return no(Re,yn.fromStyles)}),we.onDestroy(function(){return lr(Re,yn.toStyles)}),void o.push(we);if(ge.isFallbackTransition)return we.onStart(function(){return no(Re,yn.fromStyles)}),we.onDestroy(function(){return lr(Re,yn.toStyles)}),void o.push(we);yn.timelines.forEach(function(Wi){return Wi.stretchStartingKeyframe=!0}),a.append(Re,yn.timelines),l.push({instruction:yn,player:we,element:Re}),yn.queriedElements.forEach(function(Wi){return zn(u,Wi,[]).push(we)}),yn.preStyleProps.forEach(function(Wi,mo){var Oh=Object.keys(Wi);if(Oh.length){var vo=c.get(mo);vo||c.set(mo,vo=new Set),Oh.forEach(function(Hy){return vo.add(Hy)})}}),yn.postStyleProps.forEach(function(Wi,mo){var Oh=Object.keys(Wi),vo=d.get(mo);vo||d.set(mo,vo=new Set),Oh.forEach(function(Hy){return vo.add(Hy)})})}});if(Yt.length){var rn=[];Yt.forEach(function(ge){rn.push("@".concat(ge.triggerName," has failed due to:\n")),ge.errors.forEach(function(we){return rn.push("- ".concat(we,"\n"))})}),bt.forEach(function(ge){return ge.destroy()}),this.reportError(rn)}var pi=new Map,zi=new Map;l.forEach(function(ge){var we=ge.element;a.has(we)&&(zi.set(we,we),r._beforeAnimationBuild(ge.player.namespaceId,ge.instruction,pi))}),o.forEach(function(ge){var we=ge.element;r._getPreviousPlayers(we,!1,ge.namespaceId,ge.triggerName,null).forEach(function(Xt){zn(pi,we,[]).push(Xt),Xt.destroy()})});var ho=E.filter(function(ge){return cA(ge,c,d)}),po=new Map;sA(po,this.driver,z,d,Er).forEach(function(ge){cA(ge,c,d)&&ho.push(ge)});var Wu=new Map;C.forEach(function(ge,we){sA(Wu,r.driver,new Set(ge),c,"!")}),ho.forEach(function(ge){var we=po.get(ge),Re=Wu.get(ge);po.set(ge,Object.assign(Object.assign({},we),Re))});var Yu=[],xh=[],qu={};l.forEach(function(ge){var we=ge.element,Re=ge.player,Xt=ge.instruction;if(a.has(we)){if(f.has(we))return Re.onDestroy(function(){return lr(we,Xt.toStyles)}),Re.disabled=!0,Re.overrideTotalTime(Xt.totalTime),void o.push(Re);var go=qu;if(zi.size>1){for(var Us=we,Rh=[];Us=Us.parentNode;){var yn=zi.get(Us);if(yn){go=yn;break}Rh.push(Us)}Rh.forEach(function(mo){return zi.set(mo,go)})}var Vy=r._buildAnimation(Re.namespaceId,Xt,pi,s,Wu,po);if(Re.setRealPlayer(Vy),go===qu)Yu.push(Re);else{var Wi=r.playersByElement.get(go);Wi&&Wi.length&&(Re.parentPlayer=oa(Wi)),o.push(Re)}}else no(we,Xt.fromStyles),Re.onDestroy(function(){return lr(we,Xt.toStyles)}),xh.push(Re),f.has(we)&&o.push(Re)}),xh.forEach(function(ge){var we=s.get(ge.element);if(we&&we.length){var Re=oa(we);ge.setRealPlayer(Re)}}),o.forEach(function(ge){ge.parentPlayer?ge.syncPlayerEvents(ge.parentPlayer):ge.destroy()});for(var Qu=0;Qu<E.length;Qu++){var _a=E[Qu],Th=_a[li];if(Es(_a,Uv),!Th||!Th.hasAnimation){var ya=[];if(u.size){var Ku=u.get(_a);Ku&&Ku.length&&ya.push.apply(ya,ke(Ku));for(var Ih=this.driver.query(_a,jv,!0),Ly=0;Ly<Ih.length;Ly++){var By=u.get(Ih[Ly]);By&&By.length&&ya.push.apply(ya,ke(By))}}var UI=ya.filter(function(ge){return!ge.destroyed});UI.length?SW(this,_a,UI):this.processLeaveNode(_a)}}return E.length=0,Yu.forEach(function(ge){r.players.push(ge),ge.onDone(function(){ge.destroy();var we=r.players.indexOf(ge);r.players.splice(we,1)}),ge.play()}),Yu}},{key:"elementContainsData",value:function(t,n){var r=!1,a=n[li];return a&&a.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(t).elementContainsData(n)||r}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,n,r,a,o){var s=[];if(n){var l=this.playersByQueriedElement.get(t);l&&(s=l)}else{var u=this.playersByElement.get(t);if(u){var c=!o||o==yu;u.forEach(function(d){d.queued||!c&&d.triggerName!=a||s.push(d)})}}return(r||a)&&(s=s.filter(function(d){return!(r&&r!=d.namespaceId||a&&a!=d.triggerName)})),s}},{key:"_beforeAnimationBuild",value:function(t,n,r){var d,a=this,s=n.element,l=n.isRemovalTransition?void 0:t,u=n.isRemovalTransition?void 0:n.triggerName,c=ct(n.timelines);try{var f=function(){var C=d.value.element,S=C!==s,I=zn(r,C,[]);a._getPreviousPlayers(C,S,l,u,n.toState).forEach(function(N){var z=N.getRealPlayer();z.beforeDestroy&&z.beforeDestroy(),N.destroy(),I.push(N)})};for(c.s();!(d=c.n()).done;)f()}catch(_){c.e(_)}finally{c.f()}no(s,n.fromStyles)}},{key:"_buildAnimation",value:function(t,n,r,a,o,s){var l=this,u=n.triggerName,c=n.element,d=[],f=new Set,_=new Set,b=n.timelines.map(function(S){var I=S.element;f.add(I);var E=I[li];if(E&&E.removedBeforeQueried)return new Ss(S.duration,S.delay);var N=I!==c,z=function(e){var i=[];return uA(e,i),i}((r.get(I)||_W).map(function(bt){return bt.getRealPlayer()})).filter(function(bt){return!!bt.element&&bt.element===I}),re=o.get(I),Z=s.get(I),pe=I0(l.driver,l._normalizer,I,S.keyframes,re,Z),Ne=l._buildPlayer(S,pe,z);if(S.subTimeline&&a&&_.add(I),N){var ut=new t_(t,u,I);ut.setRealPlayer(Ne),d.push(ut)}return Ne});d.forEach(function(S){zn(l.playersByQueriedElement,S.element,[]).push(S),S.onDone(function(){return function(e,i,t){var n;if(e instanceof Map){if(n=e.get(i)){if(n.length){var r=n.indexOf(t);n.splice(r,1)}0==n.length&&e.delete(i)}}else if(n=e[i]){if(n.length){var a=n.indexOf(t);n.splice(a,1)}0==n.length&&delete e[i]}return n}(l.playersByQueriedElement,S.element,S)})}),f.forEach(function(S){return ui(S,H0)});var C=oa(b);return C.onDestroy(function(){f.forEach(function(S){return Es(S,H0)}),lr(c,n.toStyles)}),_.forEach(function(S){zn(a,S,[]).push(C)}),C}},{key:"_buildPlayer",value:function(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new Ss(t.duration,t.delay)}}]),e}(),t_=function(){function e(i,t,n){p(this,e),this.namespaceId=i,this.triggerName=t,this.element=n,this._player=new Ss,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return h(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(r){n._queuedCallbacks[r].forEach(function(a){return Rv(t,r,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,r=this._player;r.triggerCallback&&t.onStart(function(){return r.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){zn(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{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(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function wW(e){return null!=e?e:null}function ff(e){return e&&1===e.nodeType}function oA(e,i){var t=e.style.display;return e.style.display=null!=i?i:"none",t}function sA(e,i,t,n,r){var a=[];t.forEach(function(l){return a.push(oA(l))});var o=[];n.forEach(function(l,u){var c={};l.forEach(function(d){var f=c[d]=i.computeStyle(u,d,r);(!f||0==f.length)&&(u[li]=yW,o.push(u))}),e.set(u,c)});var s=0;return t.forEach(function(l){return oA(l,a[s++])}),o}function lA(e,i){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==i.length)return t;var r=new Set(i),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var u=s.parentNode;return l=t.has(u)?u:r.has(u)?1:o(u),a.set(s,l),l}return i.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}var hf="$$classes";function ui(e,i){if(e.classList)e.classList.add(i);else{var t=e[hf];t||(t=e[hf]={}),t[i]=!0}}function Es(e,i){if(e.classList)e.classList.remove(i);else{var t=e[hf];t&&delete t[i]}}function SW(e,i,t){oa(t).onDone(function(){return e.processLeaveNode(i)})}function uA(e,i){for(var t=0;t<e.length;t++){var n=e[t];n instanceof x0?uA(n.players,i):i.push(n)}}function EW(e,i){var t=Object.keys(e),n=Object.keys(i);if(t.length!=n.length)return!1;for(var r=0;r<t.length;r++){var a=t[r];if(!i.hasOwnProperty(a)||e[a]!==i[a])return!1}return!0}function cA(e,i,t){var n=t.get(e);if(!n)return!1;var r=i.get(e);return r?n.forEach(function(a){return r.add(a)}):i.set(e,n),t.delete(e),!0}var pf=function(){function e(i,t,n){var r=this;p(this,e),this.bodyNode=i,this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=function(a,o){},this._transitionEngine=new CW(i,t,n),this._timelineEngine=new pW(i,t,n),this._transitionEngine.onRemovalComplete=function(a,o){return r.onRemovalComplete(a,o)}}return h(e,[{key:"registerTrigger",value:function(t,n,r,a,o){var s=t+"-"+a,l=this._triggerCache[s];if(!l){var u=[],c=Q0(this._driver,o,u);if(u.length)throw new Error('The animation trigger "'.concat(a,'" has failed to build due to the following errors:\n - ').concat(u.join("\n - ")));l=function(e,i,t){return new dW(e,i,t)}(a,c,this._normalizer),this._triggerCache[s]=l}this._transitionEngine.registerTrigger(n,a,l)}},{key:"register",value:function(t,n){this._transitionEngine.register(t,n)}},{key:"destroy",value:function(t,n){this._transitionEngine.destroy(t,n)}},{key:"onInsert",value:function(t,n,r,a){this._transitionEngine.insertNode(t,n,r,a)}},{key:"onRemove",value:function(t,n,r,a){this._transitionEngine.removeNode(t,n,a||!1,r)}},{key:"disableAnimations",value:function(t,n){this._transitionEngine.markElementAsDisabled(t,n)}},{key:"process",value:function(t,n,r,a){if("@"==r.charAt(0)){var s=Le(R0(r),2);this._timelineEngine.command(s[0],n,s[1],a)}else this._transitionEngine.trigger(t,n,r,a)}},{key:"listen",value:function(t,n,r,a,o){if("@"==r.charAt(0)){var l=Le(R0(r),2);return this._timelineEngine.listen(l[0],n,l[1],o)}return this._transitionEngine.listen(t,n,r,a,o)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function dA(e,i){var t=null,n=null;return Array.isArray(i)&&i.length?(t=n_(i[0]),i.length>1&&(n=n_(i[i.length-1]))):i&&(t=n_(i)),t||n?new AW(e,t,n):null}var AW=function(){var e=function(){function i(t,n,r){p(this,i),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var a=i.initialStylesByElement.get(t);a||i.initialStylesByElement.set(t,a={}),this._initialStyles=a}return h(i,[{key:"start",value:function(){this._state<1&&(this._startStyles&&lr(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(lr(this._element,this._initialStyles),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(no(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(no(this._element,this._endStyles),this._endStyles=null),lr(this._element,this._initialStyles),this._state=3)}}]),i}();return e.initialStylesByElement=new WeakMap,e}();function n_(e){for(var i=null,t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];xW(r)&&((i=i||{})[r]=e[r])}return i}function xW(e){return"display"===e||"position"===e}var fA="animation",hA="animationend",RW=function(){function e(i,t,n,r,a,o,s){var l=this;p(this,e),this._element=i,this._name=t,this._duration=n,this._delay=r,this._easing=a,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(u){return l._handleCallback(u)}}return h(e,[{key:"apply",value:function(){(function(e,i){var t=r_(e,"").trim();t.length&&(function(e,i){for(var t=0,n=0;n<e.length;n++)","===e.charAt(n)&&t++;return t}(t)+1,i="".concat(t,", ").concat(i)),gf(e,"",i)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),mA(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){pA(this._element,this._name,"paused")}},{key:"resume",value:function(){pA(this._element,this._name,"running")}},{key:"setPosition",value:function(t){var n=gA(this._element,this._name);this._position=t*this._duration,gf(this._element,"Delay","-".concat(this._position,"ms"),n)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(t){var n=t._ngTestManualTimestamp||Date.now(),r=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(n-this._startTime,0)>=this._delay&&r>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),mA(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,i){var n=r_(e,"").split(","),r=i_(n,i);r>=0&&(n.splice(r,1),gf(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function pA(e,i,t){gf(e,"PlayState",t,gA(e,i))}function gA(e,i){var t=r_(e,"");return t.indexOf(",")>0?i_(t.split(","),i):i_([t],i)}function i_(e,i){for(var t=0;t<e.length;t++)if(e[t].indexOf(i)>=0)return t;return-1}function mA(e,i,t){t?e.removeEventListener(hA,i):e.addEventListener(hA,i)}function gf(e,i,t,n){var r=fA+i;if(null!=n){var a=e.style[r];if(a.length){var o=a.split(",");o[n]=t,t=o.join(",")}}e.style[r]=t}function r_(e,i){return e.style[fA+i]||""}var vA=function(){function e(i,t,n,r,a,o,s,l){p(this,e),this.element=i,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return h(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{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(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),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(t){this._styler.setPosition(t)}},{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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new RW(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(r){return r()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var r=this._state>=3;Object.keys(this._finalStyles).forEach(function(a){"offset"!=a&&(n[a]=r?t._finalStyles[a]:qv(t.element,a))})}this.currentSnapshot=n}}]),e}(),BW=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this)).element=n,a._startingStyles={},a.__initialized=!1,a._styles=N0(r),a}return h(t,[{key:"init",value:function(){var r=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(a){r._startingStyles[a]=r.element.style[a]}),J(Y(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var r=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(a){return r.element.style.setProperty(a,r._styles[a])}),J(Y(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var r=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(a){var o=r._startingStyles[a];o?r.element.style.setProperty(a,o):r.element.style.removeProperty(a)}),this._startingStyles=null,J(Y(t.prototype),"destroy",this).call(this))}}]),t}(Ss),VW="gen_css_kf_",yA=function(){function e(){p(this,e),this._count=0}return h(e,[{key:"validateStyleProperty",value:function(t){return Lv(t)}},{key:"matchesElement",value:function(t,n){return Bv(t,n)}},{key:"containsElement",value:function(t,n){return Vv(t,n)}},{key:"query",value:function(t,n,r){return Hv(t,n,r)}},{key:"computeStyle",value:function(t,n,r){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,r){r=r.map(function(l){return N0(l)});var a="@keyframes ".concat(n," {\n"),o="";r.forEach(function(l){o=" ";var u=parseFloat(l.offset);a+="".concat(o).concat(100*u,"% {\n"),o+=" ",Object.keys(l).forEach(function(c){var d=l[c];switch(c){case"offset":return;case"easing":return void(d&&(a+="".concat(o,"animation-timing-function: ").concat(d,";\n")));default:return void(a+="".concat(o).concat(c,": ").concat(d,";\n"))}}),a+="".concat(o,"}\n")}),a+="}\n";var s=document.createElement("style");return s.textContent=a,s}},{key:"animate",value:function(t,n,r,a,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=s.filter(function(I){return I instanceof vA}),c={};z0(r,a)&&u.forEach(function(I){var E=I.currentSnapshot;Object.keys(E).forEach(function(N){return c[N]=E[N]})});var d=GW(n=W0(t,n,c));if(0==r)return new BW(t,d);var f="".concat(VW).concat(this._count++),_=this.buildKeyframeElement(t,f,n),b=HW(t);b.appendChild(_);var C=dA(t,n),S=new vA(t,n,f,r,a,o,d,C);return S.onDestroy(function(){return UW(_)}),S}}]),e}();function HW(e){var i,t=null===(i=e.getRootNode)||void 0===i?void 0:i.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function GW(e){var i={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(r){"offset"==r||"easing"==r||(i[r]=n[r])})}),i}function UW(e){e.parentNode.removeChild(e)}var CA=function(){function e(i,t,n,r){p(this,e),this.element=i,this.keyframes=t,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,r){return t.animate(n,r)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),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(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*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 t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(r){"offset"!=r&&(n[r]=t._finished?t._finalKeyframe[r]:qv(t.element,r))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(r){return r()}),n.length=0}}]),e}(),jW=function(){function e(){p(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(kA().toString()),this._cssKeyframesDriver=new yA}return h(e,[{key:"validateStyleProperty",value:function(t){return Lv(t)}},{key:"matchesElement",value:function(t,n){return Bv(t,n)}},{key:"containsElement",value:function(t,n){return Vv(t,n)}},{key:"query",value:function(t,n,r){return Hv(t,n,r)}},{key:"computeStyle",value:function(t,n,r){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,r,a,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=arguments.length>6?arguments[6]:void 0,u=!l&&!this._isNativeImpl;if(u)return this._cssKeyframesDriver.animate(t,n,r,a,o,s);var c=0==a?"both":"forwards",d={duration:r,delay:a,fill:c};o&&(d.easing=o);var f={},_=s.filter(function(C){return C instanceof CA});z0(r,a)&&_.forEach(function(C){var S=C.currentSnapshot;Object.keys(S).forEach(function(I){return f[I]=S[I]})});var b=dA(t,n=W0(t,n=n.map(function(C){return sa(C,!1)}),f));return new CA(t,n,d,b)}}]),e}();function kA(){return T0()&&Element.prototype.animate||{}}var WW=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o;return p(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=r.createRenderer(a.body,{id:"0",encapsulation:vi.None,styles:[],data:{animation:[]}}),o}return h(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?S0(a):a;return wA(this._renderer,null,o,"register",[s]),new YW(o,this._renderer)}}]),n}(M0);return e.\u0275fac=function(t){return new(t||e)(x(La),x(oe))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),YW=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this))._id=n,a._renderer=r,a}return h(t,[{key:"create",value:function(r,a){return new qW(this._id,r,a||{},this._renderer)}}]),t}(T7),qW=function(){function e(i,t,n,r){p(this,e),this.id=i,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return h(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return wA(this._renderer,this.element,this.id,t,r)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{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"),this._started=!1}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){var t,n;return null!==(n=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==n?n:0}}]),e}();function wA(e,i,t,n,r){return e.setProperty(i,"@@".concat(t,":").concat(n),r)}var MA="@.disabled",QW=function(){var e=function(){function i(t,n,r){p(this,i),this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(a,o){o&&o.parentNode(a)&&o.removeChild(a.parentNode,a)}}return h(i,[{key:"createRenderer",value:function(n,r){var a=this,s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){var l=this._rendererCache.get(s);return l||(l=new SA("",s,this.engine),this._rendererCache.set(s,l)),l}var u=r.id,c=r.id+"-"+this._currentId;return this._currentId++,this.engine.register(c,n),r.data.animation.forEach(function _(b){Array.isArray(b)?b.forEach(_):a.engine.registerTrigger(u,c,n,b.name,b)}),new KW(this,c,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var n=this;this.promise.then(function(){n._microtaskId++})}},{key:"scheduleListenerCallback",value:function(n,r,a){var o=this;n>=0&&n<this._microtaskId?this._zone.run(function(){return r(a)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){o._zone.run(function(){o._animationCallbacksBuffer.forEach(function(s){var l=Le(s,2);(0,l[0])(l[1])}),o._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,a]))}},{key:"end",value:function(){var n=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){n._scheduleCountTask(),n.engine.flush(n._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(La),x(pf),x(le))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),SA=function(){function e(i,t,n){p(this,e),this.namespaceId=i,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(r){return t.destroyNode(r)}:null}return h(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(t,n){return this.delegate.createElement(t,n)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}},{key:"appendChild",value:function(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}},{key:"insertBefore",value:function(t,n,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,r,a){this.delegate.setAttribute(t,n,r,a)}},{key:"removeAttribute",value:function(t,n,r){this.delegate.removeAttribute(t,n,r)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,r,a){this.delegate.setStyle(t,n,r,a)}},{key:"removeStyle",value:function(t,n,r){this.delegate.removeStyle(t,n,r)}},{key:"setProperty",value:function(t,n,r){"@"==n.charAt(0)&&n==MA?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,r){return this.delegate.listen(t,n,r)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),KW=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;return p(this,t),(s=i.call(this,r,a,o)).factory=n,s.namespaceId=r,s}return h(t,[{key:"setProperty",value:function(r,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==MA?this.disableAnimations(r,o=void 0===o||!!o):this.engine.process(this.namespaceId,r,a.substr(1),o):this.delegate.setProperty(r,a,o)}},{key:"listen",value:function(r,a,o){var s=this;if("@"==a.charAt(0)){var l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(r),u=a.substr(1),c="";if("@"!=u.charAt(0)){var d=function(e){var i=e.indexOf(".");return[e.substring(0,i),e.substr(i+1)]}(u),f=Le(d,2);u=f[0],c=f[1]}return this.engine.listen(this.namespaceId,l,u,c,function(_){s.factory.scheduleListenerCallback(_._data||-1,o,_)})}return this.delegate.listen(r,a,o)}}]),t}(SA),JW=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o){return p(this,n),t.call(this,r.body,a,o)}return h(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(pf);return e.\u0275fac=function(t){return new(t||e)(x(oe),x(Gv),x(Xv))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),rt=new V("AnimationModuleType"),DA=[{provide:M0,useClass:WW},{provide:Xv,useFactory:function(){return new rW}},{provide:pf,useClass:JW},{provide:La,useFactory:function(e,i,t){return new QW(e,i,t)},deps:[Pd,pf,le]}],EA=[{provide:Gv,useFactory:function(){return"function"==typeof kA()?new jW:new yA}},{provide:rt,useValue:"BrowserAnimations"}].concat(DA),AA=[{provide:Gv,useClass:L0},{provide:rt,useValue:"NoopAnimations"}].concat(DA),nY=function(){var e=function(){function i(){p(this,i)}return h(i,null,[{key:"withConfig",value:function(n){return{ngModule:i,providers:n.disableAnimations?AA:EA}}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:EA,imports:[Xm]}),e}();function aY(e,i){if(1&e&&U(0,"mat-pseudo-checkbox",4),2&e){var t=O();D("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function oY(e,i){if(1&e&&(g(0,"span",5),M(1),m()),2&e){var t=O();y(1),cn("(",t.group.label,")")}}var sY=["*"],a_=function(){var e=h(function i(){p(this,i)});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}(),o_=function(){var e=h(function i(){p(this,i)});return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),xA=new Kr("12.2.13"),uY=new V("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),fe=function(){var e=function(){function i(t,n,r){p(this,i),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return h(i,[{key:"_checkIsEnabled",value:function(n){return!(!cm()||wv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("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._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var r=getComputedStyle(n);r&&"none"!==r.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(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&xA.full!==w0.full&&console.warn("The Angular Material version ("+xA.full+") does not match the Angular CDK version ("+w0.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(k0),x(uY,8),x(oe))},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[$a],$a]}),e}();function pn(e){return function(i){k(n,i);var t=w(n);function n(){var r;p(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(r=t.call.apply(t,[this].concat(o)))._disabled=!1,r}return h(n,[{key:"disabled",get:function(){return this._disabled},set:function(a){this._disabled=W(a)}}]),n}(e)}function Yn(e,i){return function(t){k(r,t);var n=w(r);function r(){var a;p(this,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(a=n.call.apply(n,[this].concat(s))).defaultColor=i,a.color=i,a}return h(r,[{key:"color",get:function(){return this._color},set:function(o){var s=o||this.defaultColor;s!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),s&&this._elementRef.nativeElement.classList.add("mat-".concat(s)),this._color=s)}}]),r}(e)}function xn(e){return function(i){k(n,i);var t=w(n);function n(){var r;p(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(r=t.call.apply(t,[this].concat(o)))._disableRipple=!1,r}return h(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(a){this._disableRipple=W(a)}}]),n}(e)}function Ar(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){k(r,t);var n=w(r);function r(){var a;p(this,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(a=n.call.apply(n,[this].concat(s)))._tabIndex=i,a.defaultTabIndex=i,a}return h(r,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(o){this._tabIndex=null!=o?Ye(o):this.defaultTabIndex}}]),r}(e)}function vf(e){return function(i){k(n,i);var t=w(n);function n(){var r;p(this,n);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(r=t.call.apply(t,[this].concat(o))).stateChanges=new $,r.errorState=!1,r}return h(n,[{key:"updateErrorState",value:function(){var a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}]),n}(e)}var ro,cY=new V("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Lo(_r)}}),Nt=function(){function e(){p(this,e),this._localeChanges=new $,this.localeChanges=this._localeChanges}return h(e,[{key:"getValidDateOrNull",value:function(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}},{key:"deserialize",value:function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}},{key:"setLocale",value:function(t){this.locale=t,this._localeChanges.next()}},{key:"compareDate",value:function(t,n){return this.getYear(t)-this.getYear(n)||this.getMonth(t)-this.getMonth(n)||this.getDate(t)-this.getDate(n)}},{key:"sameDate",value:function(t,n){if(t&&n){var r=this.isValid(t),a=this.isValid(n);return r&&a?!this.compareDate(t,n):r==a}return t==n}},{key:"clampDate",value:function(t,n,r){return n&&this.compareDate(t,n)<0?n:r&&this.compareDate(t,r)>0?r:t}}]),e}(),ur=new V("mat-date-formats");try{ro="undefined"!=typeof Intl}catch(e){ro=!1}var fY={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"]},pY=_f(31,function(i){return String(i+1)}),gY={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},mY=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function _f(e,i){for(var t=Array(e),n=0;n<e;n++)t[n]=i(n);return t}var vY=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o,s;return p(this,n),(s=t.call(this)).useUtcForDisplay=!0,J((o=et(s),Y(n.prototype)),"setLocale",o).call(o,r),s.useUtcForDisplay=!a.TRIDENT,s._clampDate=a.TRIDENT||a.EDGE,s}return h(n,[{key:"getYear",value:function(a){return a.getFullYear()}},{key:"getMonth",value:function(a){return a.getMonth()}},{key:"getDate",value:function(a){return a.getDate()}},{key:"getDayOfWeek",value:function(a){return a.getDay()}},{key:"getMonthNames",value:function(a){var o=this;if(ro){var s=new Intl.DateTimeFormat(this.locale,{month:a,timeZone:"utc"});return _f(12,function(l){return o._stripDirectionalityCharacters(o._format(s,new Date(2017,l,1)))})}return fY[a]}},{key:"getDateNames",value:function(){var a=this;if(ro){var o=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return _f(31,function(s){return a._stripDirectionalityCharacters(a._format(o,new Date(2017,0,s+1)))})}return pY}},{key:"getDayOfWeekNames",value:function(a){var o=this;if(ro){var s=new Intl.DateTimeFormat(this.locale,{weekday:a,timeZone:"utc"});return _f(7,function(l){return o._stripDirectionalityCharacters(o._format(s,new Date(2017,0,l+1)))})}return gY[a]}},{key:"getYearName",value:function(a){if(ro){var o=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(o,a))}return String(this.getYear(a))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(a){return this.getDate(this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+1,0))}},{key:"clone",value:function(a){return new Date(a.getTime())}},{key:"createDate",value:function(a,o,s){var l=this._createDateWithOverflow(a,o,s);return l.getMonth(),l}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(a){return"number"==typeof a?new Date(a):a?new Date(Date.parse(a)):null}},{key:"format",value:function(a,o){if(!this.isValid(a))throw Error("NativeDateAdapter: Cannot format invalid date.");if(ro){this._clampDate&&(a.getFullYear()<1||a.getFullYear()>9999)&&(a=this.clone(a)).setFullYear(Math.max(1,Math.min(9999,a.getFullYear()))),o=Object.assign(Object.assign({},o),{timeZone:"utc"});var s=new Intl.DateTimeFormat(this.locale,o);return this._stripDirectionalityCharacters(this._format(s,a))}return this._stripDirectionalityCharacters(a.toDateString())}},{key:"addCalendarYears",value:function(a,o){return this.addCalendarMonths(a,12*o)}},{key:"addCalendarMonths",value:function(a,o){var s=this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+o,this.getDate(a));return this.getMonth(s)!=((this.getMonth(a)+o)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}},{key:"addCalendarDays",value:function(a,o){return this._createDateWithOverflow(this.getYear(a),this.getMonth(a),this.getDate(a)+o)}},{key:"toIso8601",value:function(a){return[a.getUTCFullYear(),this._2digit(a.getUTCMonth()+1),this._2digit(a.getUTCDate())].join("-")}},{key:"deserialize",value:function(a){if("string"==typeof a){if(!a)return null;if(mY.test(a)){var o=new Date(a);if(this.isValid(o))return o}}return J(Y(n.prototype),"deserialize",this).call(this,a)}},{key:"isDateInstance",value:function(a){return a instanceof Date}},{key:"isValid",value:function(a){return!isNaN(a.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(a,o,s){var l=new Date;return l.setFullYear(a,o,s),l.setHours(0,0,0,0),l}},{key:"_2digit",value:function(a){return("00"+a).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(a){return a.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(a,o){var s=new Date;return s.setUTCFullYear(o.getFullYear(),o.getMonth(),o.getDate()),s.setUTCHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),a.format(s)}}]),n}(Nt);return e.\u0275fac=function(t){return new(t||e)(x(cY,8),x(Te))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),yY=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[{provide:Nt,useClass:vY}],imports:[[Cs]]}),e}(),bY={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"}}},yf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[{provide:ur,useValue:bY}],imports:[[yY]]}),e}(),Ui=function(){var e=function(){function i(){p(this,i)}return h(i,[{key:"isErrorState",value:function(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe],fe]}),e}(),CY=function(){function e(i,t,n){p(this,e),this._renderer=i,this.element=t,this.config=n,this.state=3}return h(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),IA={enterDuration:225,exitDuration:150},u_=ra({passive:!0}),RA=["mousedown","touchstart"],OA=["mouseup","mouseleave","touchend","touchcancel"],c_=function(){function e(i,t,n,r){p(this,e),this._target=i,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Mr(n))}return h(e,[{key:"fadeInRipple",value:function(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},IA),a.animation);a.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var l=a.radius||MY(t,n,o),u=t-o.left,c=n-o.top,d=s.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left="".concat(u-l,"px"),f.style.top="".concat(c-l,"px"),f.style.height="".concat(2*l,"px"),f.style.width="".concat(2*l,"px"),null!=a.color&&(f.style.backgroundColor=a.color),f.style.transitionDuration="".concat(d,"ms"),this._containerElement.appendChild(f),wY(f),f.style.transform="scale(1)";var _=new CY(this,f,a);return _.state=0,this._activeRipples.add(_),a.persistent||(this._mostRecentTransientRipple=_),this._runTimeoutOutsideZone(function(){var b=_===r._mostRecentTransientRipple;_.state=1,!a.persistent&&(!b||!r._isPointerDown)&&_.fadeOut()},d),_}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var r=t.element,a=Object.assign(Object.assign({},IA),t.config.animation);r.style.transitionDuration="".concat(a.exitDuration,"ms"),r.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,r.parentNode.removeChild(r)},a.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=Mr(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(RA))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(OA),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=Sv(t),r=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!n&&!r&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(t){if(!this._target.rippleDisabled&&!Dv(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var n=t.changedTouches,r=0;r<n.length;r++)this.fadeInRipple(n[r].clientX,n[r].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(r){n._triggerElement.addEventListener(r,n,u_)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(RA.forEach(function(n){t._triggerElement.removeEventListener(n,t,u_)}),this._pointerUpEventsRegistered&&OA.forEach(function(n){t._triggerElement.removeEventListener(n,t,u_)}))}}]),e}();function wY(e){window.getComputedStyle(e).getPropertyValue("opacity")}function MY(e,i,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(i-t.top),Math.abs(i-t.bottom));return Math.sqrt(n*n+r*r)}var Cf=new V("mat-ripple-global-options"),gn=function(){var e=function(){function i(t,n,r,a,o){p(this,i),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new c_(this,n,t,r)}return h(i,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,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(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,r,Object.assign(Object.assign({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(P),v(le),v(Te),v(Cf,8),v(rt,8))},e.\u0275dir=A({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&ie("mat-ripple-unbounded",n.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}(),ci=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe,Cs],fe]}),e}(),FA=function(){var e=h(function i(t){p(this,i),this._animationMode=t,this.state="unchecked",this.disabled=!1});return e.\u0275fac=function(t){return new(t||e)(v(rt,8))},e.\u0275cmp=te({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&ie("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},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}(),d_=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe]]}),e}(),kf=new V("MAT_OPTION_PARENT_COMPONENT"),SY=pn(function(){return h(function e(){p(this,e)})}()),DY=0,PA=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a,o;return p(this,n),(a=t.call(this))._labelId="mat-optgroup-label-".concat(DY++),a._inert=null!==(o=null==r?void 0:r.inertGroups)&&void 0!==o&&o,a}return h(n)}(SY);return e.\u0275fac=function(t){return new(t||e)(v(kf,8))},e.\u0275dir=A({type:e,inputs:{label:"label"},features:[R]}),e}(),wf=new V("MatOptgroup"),EY=0,NA=h(function e(i){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this,e),this.source=i,this.isUserInput=t}),AY=function(){var e=function(){function i(t,n,r,a){p(this,i),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(EY++),this.onSelectionChange=new j,this._stateChanges=new $}return h(i,[{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(n){this._disabled=W(n)}},{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(n,r){var a=this._getHostElement();"function"==typeof a.focus&&a.focus(r)}},{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(n){(13===n.keyCode||32===n.keyCode)&&!Rt(n)&&(this._selectViaInteraction(),n.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 n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new NA(this,n))}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(P),v(ve),v(void 0),v(PA))},e.\u0275dir=A({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Mf=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s){return p(this,n),t.call(this,r,a,o,s)}return h(n)}(AY);return e.\u0275fac=function(t){return new(t||e)(v(P),v(ve),v(kf,8),v(wf,8))},e.\u0275cmp=te({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&q("click",function(){return n._selectViaInteraction()})("keydown",function(a){return n._handleKeydown(a)}),2&t&&(en("id",n.id),ee("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),ie("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[R],ngContentSelectors:sY,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(t,n){1&t&&(be(),F(0,aY,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),se(2),m(),F(3,oY,2,1,"span",2),U(4,"div",3)),2&t&&(D("ngIf",n.multiple),y(3),D("ngIf",n.group&&n.group._inert),y(1),D("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Dt,gn,FA],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 f_(e,i,t){if(t.length){for(var n=i.toArray(),r=t.toArray(),a=0,o=0;o<e+1;o++)n[o].group&&n[o].group===r[a]&&a++;return a}return 0}var Sf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ci,ht,fe,d_]]}),e}();function qn(e,i,t,n){return Ys(t)&&(n=t,t=void 0),n?qn(e,i,t).pipe(dt(function(r){return _o(r)?n.apply(void 0,ke(r)):n(r)})):new Xe(function(r){BA(e,i,function(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function BA(e,i,t,n,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(i,t,r),a=function(){return o.removeEventListener(i,t,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(i,t),a=function(){return s.off(i,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(i,t),a=function(){return l.removeListener(i,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)BA(e[u],i,t,n,r)}n.add(a)}var RY=["underline"],OY=["connectionContainer"],FY=["inputContainer"],PY=["label"];function NY(e,i){1&e&&(Di(0),g(1,"div",14),U(2,"div",15),U(3,"div",16),U(4,"div",17),m(),g(5,"div",18),U(6,"div",15),U(7,"div",16),U(8,"div",17),m(),Ei())}function LY(e,i){1&e&&(g(0,"div",19),se(1,1),m())}function BY(e,i){if(1&e&&(Di(0),se(1,2),g(2,"span"),M(3),m(),Ei()),2&e){var t=O(2);y(3),Ge(t._control.placeholder)}}function VY(e,i){1&e&&se(0,3,["*ngSwitchCase","true"])}function HY(e,i){1&e&&(g(0,"span",23),M(1," *"),m())}function GY(e,i){if(1&e){var t=lt();g(0,"label",20,21),q("cdkObserveContent",function(){return Pe(t),O().updateOutlineGap()}),F(2,BY,4,1,"ng-container",12),F(3,VY,1,0,"ng-content",12),F(4,HY,2,0,"span",22),m()}if(2&e){var n=O();ie("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),D("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),ee("for",n._control.id)("aria-owns",n._control.id),y(2),D("ngSwitchCase",!1),y(1),D("ngSwitchCase",!0),y(1),D("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function UY(e,i){1&e&&(g(0,"div",24),se(1,4),m())}function jY(e,i){if(1&e&&(g(0,"div",25,26),U(2,"span",27),m()),2&e){var t=O();y(2),ie("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function zY(e,i){1&e&&(g(0,"div"),se(1,5),m()),2&e&&D("@transitionMessages",O()._subscriptAnimationState)}function WY(e,i){if(1&e&&(g(0,"div",31),M(1),m()),2&e){var t=O(2);D("id",t._hintLabelId),y(1),Ge(t.hintLabel)}}function YY(e,i){if(1&e&&(g(0,"div",28),F(1,WY,2,2,"div",29),se(2,6),U(3,"div",30),se(4,7),m()),2&e){var t=O();D("@transitionMessages",t._subscriptAnimationState),y(1),D("ngIf",t.hintLabel)}}var qY=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],QY=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],VA=new V("MatError"),$Y={transitionMessages:Ot("transitionMessages",[Ie("enter",ue({opacity:1,transform:"translateY(0%)"})),He("void => enter",[ue({opacity:0,transform:"translateY(-5px)"}),je("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},As=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=A({type:e}),e}(),HA=new V("MatHint"),h_=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=A({type:e,selectors:[["mat-label"]]}),e}(),JY=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=A({type:e,selectors:[["mat-placeholder"]]}),e}(),GA=new V("MatPrefix"),UA=new V("MatSuffix"),jA=0,e9=Yn(function(){return h(function e(i){p(this,e),this._elementRef=i})}(),"primary"),t9=new V("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xs=new V("MatFormField"),WA=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l,u,c,d){var f;return p(this,n),(f=t.call(this,r))._changeDetectorRef=a,f._dir=s,f._defaults=l,f._platform=u,f._ngZone=c,f._outlineGapCalculationNeededImmediately=!1,f._outlineGapCalculationNeededOnStable=!1,f._destroyed=new $,f._showAlwaysAnimate=!1,f._subscriptAnimationState="",f._hintLabel="",f._hintLabelId="mat-hint-".concat(jA++),f._labelId="mat-form-field-label-".concat(jA++),f.floatLabel=f._getDefaultFloatLabelState(),f._animationsEnabled="NoopAnimations"!==d,f.appearance=l&&l.appearance?l.appearance:"legacy",f._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker,f}return h(n,[{key:"appearance",get:function(){return this._appearance},set:function(a){var o=this._appearance;this._appearance=a||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&o!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=W(a)}},{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(a){this._hintLabel=a,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(a){this._explicitFormFieldControl=a}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var a=this;this._validateControlChild();var o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(o.controlType)),o.stateChanges.pipe(ot(null)).subscribe(function(){a._validatePlaceholders(),a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe(de(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(de(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&a.updateOutlineGap()})}),Ke(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0,a._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ot(null)).subscribe(function(){a._processHints(),a._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ot(null)).subscribe(function(){a._syncDescribedByIds(),a._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(de(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.updateOutlineGap()})}):a.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(a){var o=this._control?this._control.ngControl:null;return o&&o[a]}},{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 a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,qn(this._label.nativeElement,"transitionend").pipe(gt(1)).subscribe(function(){a._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 a=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&a.push.apply(a,ke(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var o=this._hintChildren?this._hintChildren.find(function(l){return"start"===l.align}):null,s=this._hintChildren?this._hintChildren.find(function(l){return"end"===l.align}):null;o?a.push(o.id):this._hintLabel&&a.push(this._hintLabelId),s&&a.push(s.id)}else this._errorChildren&&a.push.apply(a,ke(this._errorChildren.map(function(l){return l.id})));this._control.setDescribedByIds(a)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var a=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&a&&a.children.length&&a.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var o=0,s=0,l=this._connectionContainerRef.nativeElement,u=l.querySelectorAll(".mat-form-field-outline-start"),c=l.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var d=l.getBoundingClientRect();if(0===d.width&&0===d.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var f=this._getStartEnd(d),_=a.children,b=this._getStartEnd(_[0].getBoundingClientRect()),C=0,S=0;S<_.length;S++)C+=_[S].offsetWidth;o=Math.abs(b-f)-5,s=C>0?.75*C+10:0}for(var I=0;I<u.length;I++)u[I].style.width="".concat(o,"px");for(var E=0;E<c.length;E++)c[E].style.width="".concat(s,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left}},{key:"_isAttachedToDOM",value:function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var o=a.getRootNode();return o&&o!==a}return document.documentElement.contains(a)}}]),n}(e9);return e.\u0275fac=function(t){return new(t||e)(v(P),v(ve),v(P),v(Qe,8),v(t9,8),v(Te),v(le),v(rt,8))},e.\u0275cmp=te({type:e,selectors:[["mat-form-field"]],contentQueries:function(t,n,r){var a;1&t&&(he(r,As,5),he(r,As,7),he(r,h_,5),he(r,h_,7),he(r,JY,5),he(r,VA,5),he(r,HA,5),he(r,GA,5),he(r,UA,5)),2&t&&(L(a=B())&&(n._controlNonStatic=a.first),L(a=B())&&(n._controlStatic=a.first),L(a=B())&&(n._labelChildNonStatic=a.first),L(a=B())&&(n._labelChildStatic=a.first),L(a=B())&&(n._placeholderChild=a.first),L(a=B())&&(n._errorChildren=a),L(a=B())&&(n._hintChildren=a),L(a=B())&&(n._prefixChildren=a),L(a=B())&&(n._suffixChildren=a))},viewQuery:function(t,n){var r;1&t&&(me(RY,5),me(OY,7),me(FY,5),me(PY,5)),2&t&&(L(r=B())&&(n.underlineRef=r.first),L(r=B())&&(n._connectionContainerRef=r.first),L(r=B())&&(n._inputContainerRef=r.first),L(r=B())&&(n._label=r.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,n){2&t&&ie("mat-form-field-appearance-standard","standard"==n.appearance)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-appearance-legacy","legacy"==n.appearance)("mat-form-field-invalid",n._control.errorState)("mat-form-field-can-float",n._canLabelFloat())("mat-form-field-should-float",n._shouldLabelFloat())("mat-form-field-has-label",n._hasFloatingLabel())("mat-form-field-hide-placeholder",n._hideControlPlaceholder())("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-focused",n._control.focused)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))("_mat-animation-noopable",!n._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[K([{provide:xs,useExisting:e}]),R],ngContentSelectors:QY,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(t,n){1&t&&(be(qY),g(0,"div",0),g(1,"div",1,2),q("click",function(a){return n._control.onContainerClick&&n._control.onContainerClick(a)}),F(3,NY,9,0,"ng-container",3),F(4,LY,2,0,"div",4),g(5,"div",5,6),se(7),g(8,"span",7),F(9,GY,5,16,"label",8),m(),m(),F(10,UY,2,0,"div",9),m(),F(11,jY,3,4,"div",10),g(12,"div",11),F(13,zY,2,1,"div",12),F(14,YY,5,2,"div",13),m(),m()),2&t&&(y(3),D("ngIf","outline"==n.appearance),y(1),D("ngIf",n._prefixChildren.length),y(5),D("ngIf",n._hasFloatingLabel()),y(1),D("ngIf",n._suffixChildren.length),y(1),D("ngIf","outline"!=n.appearance),y(1),D("ngSwitch",n._getDisplayedMessages()),y(1),D("ngSwitchCase","error"),y(1),D("ngSwitchCase","hint"))},directives:[Dt,or,Zr,fu],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}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.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}.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:not([type=password])::-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}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}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}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.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:[$Y.transitionMessages]},changeDetection:0}),e}(),Cu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe,hu],fe]}),e}();function p_(e){return new Xe(function(i){var t;try{t=e()}catch(r){return void i.error(r)}return(t?Co(t):bv()).subscribe(i)})}function u9(e){return function(t){return t.lift(new c9(e))}}var c9=function(){function e(i){p(this,e),this.durationSelector=i}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new d9(t,this.durationSelector))}}]),e}(),d9=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).durationSelector=r,a.hasValue=!1,a}return h(t,[{key:"_next",value:function(r){if(this.value=r,this.hasValue=!0,!this.throttled){var a;try{a=(0,this.durationSelector)(r)}catch(l){return this.destination.error(l)}var s=$s(a,new Qs(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}},{key:"clearThrottle",value:function(){var r=this.value,a=this.hasValue,o=this.throttled;o&&(this.remove(o),this.throttled=void 0,o.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),t}(Ks);function QA(e){return!_o(e)&&e-parseFloat(e)+1>=0}function KA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return QA(i)?n=Number(i)<1?1:Number(i):bo(i)&&(t=i),bo(t)||(t=Ud),new Xe(function(r){var a=QA(e)?e:+e-t.now();return t.schedule(f9,a,{index:0,period:n,subscriber:r})})}function f9(e){var i=e.index,t=e.period,n=e.subscriber;if(n.next(i),!n.closed){if(-1===t)return n.complete();e.index=i+1,this.schedule(e,t)}}function Ef(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ud;return u9(function(){return KA(e,i)})}function xr(e,i){return"function"==typeof i?function(t){return t.pipe(xr(function(n,r){return Co(e(n,r)).pipe(dt(function(a,o){return i(n,a,r,o)}))}))}:function(t){return t.lift(new m9(e))}}var m9=function(){function e(i){p(this,e),this.project=i}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new v9(t,this.project))}}]),e}(),v9=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).project=r,a.index=0,a}return h(t,[{key:"_next",value:function(r){var a,o=this.index++;try{a=this.project(r,o)}catch(s){return void this.destination.error(s)}this._innerSub(a)}},{key:"_innerSub",value:function(r){var a=this.innerSubscription;a&&a.unsubscribe();var o=new Qs(this),s=this.destination;s.add(o),this.innerSubscription=$s(r,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var r=this.innerSubscription;(!r||r.closed)&&J(Y(t.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&&J(Y(t.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(r){this.destination.next(r)}}]),t}(Ks);function $A(e,i){return new Xe(i?function(t){return i.schedule(k9,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function k9(e){e.subscriber.error(e.error)}var Su=function(){function e(){var i=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p(this,e),this._multiple=t,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new $,n&&n.length&&(t?n.forEach(function(a){return i._markSelected(a)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return h(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];this._verifyValueAssignment(r),r.forEach(function(o){return t._markSelected(o)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];this._verifyValueAssignment(r),r.forEach(function(o){return t._unmarkSelected(o)}),this._emitChangeEvent()}},{key:"toggle",value:function(t){this.isSelected(t)?this.deselect(t):this.select(t)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(t){return this._selection.has(t)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(t){this._multiple&&this.selected&&this._selected.sort(t)}},{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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}},{key:"_unmarkSelected",value:function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}},{key:"_unmarkAll",value:function(){var t=this;this.isEmpty()||this._selection.forEach(function(n){return t._unmarkSelected(n)})}},{key:"_verifyValueAssignment",value:function(t){}}]),e}(),la=function(){var e=function(){function i(t,n,r){p(this,i),this._ngZone=t,this._platform=n,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return h(i,[{key:"register",value:function(n){var r=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return r._scrolled.next(n)}))}},{key:"deregister",value:function(n){var r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Xe(function(a){n._globalSubscription||n._addGlobalListener();var o=r>0?n._scrolled.pipe(Ef(r)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):pt()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(r,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,r){var a=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Ze(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var r=this,a=[];return this.scrollContainers.forEach(function(o,s){r._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,r){var a=Mr(r),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return qn(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(le),x(Te),x(oe,8))},e.\u0275prov=G({factory:function(){return new e(x(le),x(Te),x(oe,8))},token:e,providedIn:"root"}),e}(),Fn=function(){var e=function(){function i(t,n,r){var a=this;p(this,i),this._platform=t,this._change=new $,this._changeListener=function(o){a._change.next(o)},this._document=r,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return h(i,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),r=this.getViewportSize(),a=r.width,o=r.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,r=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||r.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||r.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(Ef(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Te),x(le),x(oe,8))},e.\u0275prov=G({factory:function(){return new e(x(Te),x(le),x(oe,8))},token:e,providedIn:"root"}),e}(),Tr=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),v_=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[$a,Cs,Tr],$a,Tr]}),e}(),__=function(){function e(){p(this,e)}return h(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),Is=function(e){k(t,e);var i=w(t);function t(n,r,a,o){var s;return p(this,t),(s=i.call(this)).component=n,s.viewContainerRef=r,s.injector=a,s.componentFactoryResolver=o,s}return h(t)}(__),ji=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this)).templateRef=n,o.viewContainerRef=r,o.context=a,o}return h(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,J(Y(t.prototype),"attach",this).call(this,r)}},{key:"detach",value:function(){return this.context=void 0,J(Y(t.prototype),"detach",this).call(this)}}]),t}(__),H9=function(e){k(t,e);var i=w(t);function t(n){var r;return p(this,t),(r=i.call(this)).element=n instanceof P?n.nativeElement:n,r}return h(t)}(__),Du=function(){function e(){p(this,e),this._isDisposed=!1,this.attachDomPortal=null}return h(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Is?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ji?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof H9?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),e1=function(e){k(t,e);var i=w(t);function t(n,r,a,o,s){var l,u;return p(this,t),(u=i.call(this)).outletElement=n,u._componentFactoryResolver=r,u._appRef=a,u._defaultInjector=o,u.attachDomPortal=function(c){var d=c.element,f=u._document.createComment("dom-portal");d.parentNode.insertBefore(f,d),u.outletElement.appendChild(d),u._attachedPortal=c,J((l=et(u),Y(t.prototype)),"setDisposeFn",l).call(l,function(){f.parentNode&&f.parentNode.replaceChild(d,f)})},u._document=s,u}return h(t,[{key:"attachComponentPortal",value:function(r){var l,a=this,s=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);return r.viewContainerRef?(l=r.viewContainerRef.createComponent(s,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(function(){return l.destroy()})):(l=s.create(r.injector||this._defaultInjector),this._appRef.attachView(l.hostView),this.setDisposeFn(function(){a._appRef.detachView(l.hostView),l.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(l)),this._attachedPortal=r,l}},{key:"attachTemplatePortal",value:function(r){var a=this,o=r.viewContainerRef,s=o.createEmbeddedView(r.templateRef,r.context);return s.rootNodes.forEach(function(l){return a.outletElement.appendChild(l)}),s.detectChanges(),this.setDisposeFn(function(){var l=o.indexOf(s);-1!==l&&o.remove(l)}),this._attachedPortal=r,s}},{key:"dispose",value:function(){J(Y(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(r){return r.hostView.rootNodes[0]}}]),t}(Du),Tn=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o){var s,l;return p(this,n),(l=t.call(this))._componentFactoryResolver=r,l._viewContainerRef=a,l._isInitialized=!1,l.attached=new j,l.attachDomPortal=function(u){var c=u.element,d=l._document.createComment("dom-portal");u.setAttachedHost(et(l)),c.parentNode.insertBefore(d,c),l._getRootNode().appendChild(c),l._attachedPortal=u,J((s=et(l),Y(n.prototype)),"setDisposeFn",s).call(s,function(){d.parentNode&&d.parentNode.replaceChild(c,d)})},l._document=o,l}return h(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&J(Y(n.prototype),"detach",this).call(this),a&&J(Y(n.prototype),"attach",this).call(this,a),this._attachedPortal=a)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){J(Y(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,l=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),u=o.createComponent(l,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(u.hostView.rootNodes[0]),J(Y(n.prototype),"setDisposeFn",this).call(this,function(){return u.destroy()}),this._attachedPortal=a,this._attachedRef=u,this.attached.emit(u),u}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return J(Y(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(Du);return e.\u0275fac=function(t){return new(t||e)(v(vr),v($e),v(oe))},e.\u0275dir=A({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[R]}),e}(),ua=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),U9=function(){function e(i,t){p(this,e),this.predicate=i,this.inclusive=t}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new j9(t,this.predicate,this.inclusive))}}]),e}(),j9=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).predicate=r,o.inclusive=a,o.index=0,o}return h(t,[{key:"_next",value:function(r){var o,a=this.destination;try{o=this.predicate(r,this.index++)}catch(s){return void a.error(s)}this.nextOrComplete(r,o)}},{key:"nextOrComplete",value:function(r,a){var o=this.destination;Boolean(a)?o.next(r):(this.inclusive&&o.next(r),o.complete())}}]),t}(Ct),t1=t0(),z9=function(){function e(i,t){p(this,e),this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return h(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=zt(-this._previousScrollPosition.left),t.style.top=zt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,r=t.style,a=this._document.body.style,o=r.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t1&&(r.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t1&&(r.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,r=this._viewportRuler.getViewportSize();return n.scrollHeight>r.height||n.scrollWidth>r.width}}]),e}(),W9=function(){function e(i,t,n,r){var a=this;p(this,e),this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return h(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var r=t._viewportRuler.getViewportScrollPosition().top;Math.abs(r-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.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}(),n1=function(){function e(){p(this,e)}return h(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function b_(e,i){return i.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function r1(e,i){return i.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var Y9=function(){function e(i,t,n,r){p(this,e),this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return h(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var r=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;b_(r,[{width:o,height:s,bottom:s,right:o,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),q9=function(){var e=h(function i(t,n,r,a){var o=this;p(this,i),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new n1},this.close=function(s){return new W9(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new z9(o._viewportRuler,o._document)},this.reposition=function(s){return new Y9(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(x(la),x(Fn),x(le),x(oe))},e.\u0275prov=G({factory:function(){return new e(x(la),x(Fn),x(le),x(oe))},token:e,providedIn:"root"}),e}(),Rs=h(function e(i){if(p(this,e),this.scrollStrategy=new n1,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i)for(var n=0,r=Object.keys(i);n<r.length;n++){var a=r[n];void 0!==i[a]&&(this[a]=i[a])}}),Q9=h(function e(i,t,n,r,a){p(this,e),this.offsetX=n,this.offsetY=r,this.panelClass=a,this.originX=i.originX,this.originY=i.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}),K9=h(function e(i,t){p(this,e),this.connectionPair=i,this.scrollableViewProperties=t}),a1=function(){var e=function(){function i(t){p(this,i),this._attachedOverlays=[],this._document=t}return h(i,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({factory:function(){return new e(x(oe))},token:e,providedIn:"root"}),e}(),$9=function(){var e=function(i){k(n,i);var t=w(n);function n(r){var a;return p(this,n),(a=t.call(this,r))._keydownListener=function(o){for(var s=a._attachedOverlays,l=s.length-1;l>-1;l--)if(s[l]._keydownEvents.observers.length>0){s[l]._keydownEvents.next(o);break}},a}return h(n,[{key:"add",value:function(a){J(Y(n.prototype),"add",this).call(this,a),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}(a1);return e.\u0275fac=function(t){return new(t||e)(x(oe))},e.\u0275prov=G({factory:function(){return new e(x(oe))},token:e,providedIn:"root"}),e}(),X9=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o;return p(this,n),(o=t.call(this,r))._platform=a,o._cursorStyleIsSet=!1,o._pointerDownListener=function(s){o._pointerDownEventTarget=aa(s)},o._clickListener=function(s){var l=aa(s),u="click"===s.type&&o._pointerDownEventTarget?o._pointerDownEventTarget:l;o._pointerDownEventTarget=null;for(var c=o._attachedOverlays.slice(),d=c.length-1;d>-1;d--){var f=c[d];if(!(f._outsidePointerEvents.observers.length<1)&&f.hasAttached()){if(f.overlayElement.contains(l)||f.overlayElement.contains(u))break;f._outsidePointerEvents.next(s)}}},o}return h(n,[{key:"add",value:function(a){if(J(Y(n.prototype),"add",this).call(this,a),!this._isAttached){var o=this._document.body;o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=o.style.cursor,o.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(a1);return e.\u0275fac=function(t){return new(t||e)(x(oe),x(Te))},e.\u0275prov=G({factory:function(){return new e(x(oe),x(Te))},token:e,providedIn:"root"}),e}(),Eu=function(){var e=function(){function i(t,n){p(this,i),this._platform=n,this._document=t}return h(i,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||wv())for(var r=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),a=0;a<r.length;a++)r[a].parentNode.removeChild(r[a]);var o=this._document.createElement("div");o.classList.add(n),wv()?o.setAttribute("platform","test"):this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._containerElement=o}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(oe),x(Te))},e.\u0275prov=G({factory:function(){return new e(x(oe),x(Te))},token:e,providedIn:"root"}),e}(),J9=function(){function e(i,t,n,r,a,o,s,l,u){var c=this;p(this,e),this._portalOutlet=i,this._host=t,this._pane=n,this._config=r,this._ngZone=a,this._keyboardDispatcher=o,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new $,this._attachments=new $,this._detachments=new $,this._locationChanges=ye.EMPTY,this._backdropClickHandler=function(d){return c._backdropClick.next(d)},this._keydownEvents=new $,this._outsidePointerEvents=new $,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return h(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(t){var n=this,r=this._portalOutlet.attach(t);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(gt(1)).subscribe(function(){n.hasAttached()&&n.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 n.dispose()})),this._outsideClickDispatcher.add(this),r}},{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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=zt(this._config.width),t.height=zt(this._config.height),t.minWidth=zt(this._config.minWidth),t.minHeight=zt(this._config.minHeight),t.maxWidth=zt(this._config.maxWidth),t.maxHeight=zt(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"":"none"}},{key:"_attachBackdrop",value:function(){var t=this,n="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(){t._backdropElement&&t._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t=this,n=this._backdropElement;if(n){var r,a=function o(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",o),t._disposeBackdrop(n)),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(r)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",a)}),n.style.pointerEvents="none",r=this._ngZone.runOutsideAngular(function(){return setTimeout(a,500)})}}},{key:"_toggleClasses",value:function(t,n,r){var a=t.classList;Vd(n).forEach(function(o){o&&(r?a.add(o):a.remove(o))})}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular(function(){var n=t._ngZone.onStable.pipe(de(Ke(t._attachments,t._detachments))).subscribe(function(){(!t._pane||!t._host||0===t._pane.children.length)&&(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),n.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}},{key:"_disposeBackdrop",value:function(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}]),e}(),o1="cdk-overlay-connected-position-bounding-box",Z9=/([A-Za-z%]+)$/,C_=function(){function e(i,t,n,r,a){p(this,e),this._viewportRuler=t,this._document=n,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 $,this._resizeSubscription=ye.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}return h(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){var n=this;this._validatePositions(),t.hostElement.classList.add(o1),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){n._isInitialRender=!0,n.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var o,l,t=this._originRect,n=this._overlayRect,r=this._viewportRect,a=[],s=ct(this._preferredPositions);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=this._getOriginPoint(t,u),d=this._getOverlayPoint(c,n,u),f=this._getOverlayFit(d,n,r,u);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(u,c);this._canFitWithFlexibleDimensions(f,d,r)?a.push({position:u,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,u)}):(!o||o.overlayFit.visibleArea<f.visibleArea)&&(o={overlayFit:f,overlayPoint:d,originPoint:c,position:u,overlayRect:n})}}catch(N){s.e(N)}finally{s.f()}if(a.length){var S,_=null,b=-1,C=ct(a);try{for(C.s();!(S=C.n()).done;){var I=S.value,E=I.boundingBoxRect.width*I.boundingBoxRect.height*(I.position.weight||1);E>b&&(b=E,_=I)}}catch(N){C.e(N)}finally{C.f()}return this._isPushed=!1,void this._applyPosition(_.position,_.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&oo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(o1),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 t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var r;if("center"==n.originX)r=t.left+t.width/2;else{var a=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;r="start"==n.originX?a:o}return{x:r,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,r){var a;return a="center"==r.overlayX?-n.width/2:"start"===r.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==r.overlayY?-n.height/2:"top"==r.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,r,a){var o=l1(n),s=t.x,l=t.y,u=this._getOffset(a,"x"),c=this._getOffset(a,"y");u&&(s+=u),c&&(l+=c);var _=0-l,b=l+o.height-r.height,C=this._subtractOverflows(o.width,0-s,s+o.width-r.width),S=this._subtractOverflows(o.height,_,b),I=C*S;return{visibleArea:I,isCompletelyWithinViewport:o.width*o.height===I,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:C==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,r){if(this._hasFlexibleDimensions){var a=r.bottom-n.y,o=r.right-n.x,s=s1(this._overlayRef.getConfig().minHeight),l=s1(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=l&&l<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,r){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var d,f,a=l1(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),l=Math.max(t.y+a.height-o.height,0),u=Math.max(o.top-r.top-t.y,0),c=Math.max(o.left-r.left-t.x,0);return this._previousPushAmount={x:d=a.width<=o.width?c||-s:t.x<this._viewportMargin?o.left-r.left-t.x:0,y:f=a.height<=o.height?u||-l:t.y<this._viewportMargin?o.top-r.top-t.y:0},{x:t.x+d,y:t.y+f}}},{key:"_applyPosition",value:function(t,n){if(this._setTransformOrigin(t),this._setOverlayElementStyles(n,t),this._setBoundingBoxStyles(n,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var r=this._getScrollVisibility(),a=new K9(t,r);this._positionChanges.next(a)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var r,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),a=t.overlayY;r="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<n.length;o++)n[o].style.transformOrigin="".concat(r," ").concat(a)}}},{key:"_calculateBoundingBoxRect",value:function(t,n){var o,s,l,_,b,C,r=this._viewportRect,a=this._isRtl();if("top"===n.overlayY)o=r.height-(s=t.y)+this._viewportMargin;else if("bottom"===n.overlayY)o=r.height-(l=r.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var u=Math.min(r.bottom-t.y+r.top,t.y),c=this._lastBoundingBoxSize.height;s=t.y-u,(o=2*u)>c&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-c/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)C=r.width-t.x+this._viewportMargin,_=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)b=t.x,_=r.right-t.x;else{var S=Math.min(r.right-t.x+r.left,t.x),I=this._lastBoundingBoxSize.width;b=t.x-S,(_=2*S)>I&&!this._isInitialRender&&!this._growAfterOpen&&(b=t.x-I/2)}return{top:s,left:b,bottom:l,right:C,width:_,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var r=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=zt(r.height),a.top=zt(r.top),a.bottom=zt(r.bottom),a.width=zt(r.width),a.left=zt(r.left),a.right=zt(r.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=zt(o)),s&&(a.maxWidth=zt(s))}this._lastBoundingBoxSize=r,oo(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){oo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){oo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var r={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var l=this._viewportRuler.getViewportScrollPosition();oo(r,this._getExactOverlayY(n,t,l)),oo(r,this._getExactOverlayX(n,t,l))}else r.position="static";var u="",c=this._getOffset(n,"x"),d=this._getOffset(n,"y");c&&(u+="translateX(".concat(c,"px) ")),d&&(u+="translateY(".concat(d,"px)")),r.transform=u.trim(),s.maxHeight&&(a?r.maxHeight=zt(s.maxHeight):o&&(r.maxHeight="")),s.maxWidth&&(a?r.maxWidth=zt(s.maxWidth):o&&(r.maxWidth="")),oo(this._pane.style,r)}},{key:"_getExactOverlayY",value:function(t,n,r){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r));var s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=zt(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,r){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=zt(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),r=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:r1(t,r),isOriginOutsideView:b_(t,r),isOverlayClipped:r1(n,r),isOverlayOutsideView:b_(n,r)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(function(o,s){return o-Math.max(s,0)},t)}},{key:"_getNarrowedViewportRect",value:function(){var t=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+t-this._viewportMargin,bottom:r.top+n-this._viewportMargin,width:t-2*this._viewportMargin,height:n-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(t,n){return"x"===n?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(t){var n=this;this._pane&&Vd(t).forEach(function(r){""!==r&&-1===n._appliedPanelClasses.indexOf(r)&&(n._appliedPanelClasses.push(r),n._pane.classList.add(r))})}},{key:"_clearPanelClasses",value:function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach(function(n){t._pane.classList.remove(n)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof P)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var n=t.width||0,r=t.height||0;return{top:t.y,bottom:t.y+r,left:t.x,right:t.x+n,height:r,width:n}}}]),e}();function oo(e,i){for(var t in i)i.hasOwnProperty(t)&&(e[t]=i[t]);return e}function s1(e){if("number"!=typeof e&&null!=e){var t=Le(e.split(Z9),2),r=t[1];return r&&"px"!==r?null:parseFloat(t[0])}return e||null}function l1(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 eq=function(){function e(i,t,n,r,a,o,s){p(this,e),this._preferredPositions=[],this._positionStrategy=new C_(n,r,a,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(i,t),this.onPositionChange=this._positionStrategy.positionChanges}return h(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.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(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,n,r,a){var o=new Q9(t,n,r,a);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}}]),e}(),u1="cdk-global-overlay-wrapper",tq=function(){function e(){p(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return h(e,[{key:"attach",value:function(t){var n=t.getConfig();this._overlayRef=t,this._width&&!n.width&&t.updateSize({width:this._width}),this._height&&!n.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(u1),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),a=r.width,o=r.height,s=r.maxWidth,l=r.maxHeight,u=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||l&&"100%"!==l&&"100vh"!==l);t.position=this._cssPosition,t.marginLeft=u?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,u?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,r=n.style;n.classList.remove(u1),r.justifyContent=r.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),nq=function(){var e=function(){function i(t,n,r,a){p(this,i),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=a}return h(i,[{key:"global",value:function(){return new tq}},{key:"connectedTo",value:function(n,r,a){return new eq(r,a,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new C_(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(Fn),x(oe),x(Te),x(Eu))},e.\u0275prov=G({factory:function(){return new e(x(Fn),x(oe),x(Te),x(Eu))},token:e,providedIn:"root"}),e}(),iq=0,mn=function(){var e=function(){function i(t,n,r,a,o,s,l,u,c,d,f){p(this,i),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=l,this._document=u,this._directionality=c,this._location=d,this._outsideClickDispatcher=f}return h(i,[{key:"create",value:function(n){var r=this._createHostElement(),a=this._createPaneElement(r),o=this._createPortalOutlet(a),s=new Rs(n);return s.direction=s.direction||this._directionality.value,new J9(o,r,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var r=this._document.createElement("div");return r.id="cdk-overlay-".concat(iq++),r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Ua)),new e1(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(q9),x(Eu),x(vr),x(nq),x($9),x(at),x(le),x(oe),x(Qe),x(Am),x(X9))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),rq=[{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"}],c1=new V("cdk-connected-overlay-scroll-strategy"),aq=function(){var e=h(function i(t){p(this,i),this.elementRef=t});return e.\u0275fac=function(t){return new(t||e)(v(P))},e.\u0275dir=A({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),d1=function(){var e=function(){function i(t,n,r,a,o){p(this,i),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ye.EMPTY,this._attachSubscription=ye.EMPTY,this._detachSubscription=ye.EMPTY,this._positionSubscription=ye.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new j,this.positionChange=new j,this.attach=new j,this.detach=new j,this.overlayKeydown=new j,this.overlayOutsideClick=new j,this._templatePortal=new ji(n,r),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}return h(i,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=W(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=W(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=W(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=W(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=W(n)}},{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(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=rq);var r=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=r.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=r.detachments().subscribe(function(){return n.detach.emit()}),r.keydownEvents().subscribe(function(a){n.overlayKeydown.next(a),27===a.keyCode&&!n.disableClose&&!Rt(a)&&(a.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(a){n.overlayOutsideClick.next(a)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Rs({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(r.width=this.width),(this.height||0===this.height)&&(r.height=this.height),(this.minWidth||0===this.minWidth)&&(r.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}},{key:"_updatePositionStrategy",value:function(n){var r=this,a=this.positions.map(function(o){return{originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||r.offsetX,offsetY:o.offsetY||r.offsetY,panelClass:o.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(a).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=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(r){n.backdropClick.emit(r)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new U9(e,i))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(r){n.positionChange.emit(r),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(mn),v(ze),v($e),v(c1),v(Qe,8))},e.\u0275dir=A({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:[xe]}),e}(),sq={provide:c1,deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},ca=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[mn,sq],imports:[[$a,ua,v_],v_]}),e}();function f1(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];if(1===i.length){var n=i[0];if(_o(n))return Tf(n,null);if(Bh(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Tf(r.map(function(o){return n[o]}),r)}}if("function"==typeof i[i.length-1]){var a=i.pop();return Tf(i=1===i.length&&_o(i[0])?i[0]:i,null).pipe(dt(function(o){return a.apply(void 0,ke(o))}))}return Tf(i,null)}function Tf(e,i){return new Xe(function(t){var n=e.length;if(0!==n)for(var r=new Array(n),a=0,o=0,s=function(c){var d=Co(e[c]),f=!1;t.add(d.subscribe({next:function(b){f||(f=!0,o++),r[c]=b},error:function(b){return t.error(b)},complete:function(){(++a===n||!f)&&(o===n&&t.next(i?i.reduce(function(b,C,S){return b[C]=r[S],b},{}):r),t.complete())}}))},l=0;l<n;l++)s(l);else t.complete()})}var Vt=new V("NgValidators"),fa=new V("NgAsyncValidators");function M1(e){return null!=e}function S1(e){var i=Yc(e)?Co(e):e;return Sg(i),i}function D1(e){var i={};return e.forEach(function(t){i=null!=t?Object.assign(Object.assign({},i),t):i}),0===Object.keys(i).length?null:i}function E1(e,i){return i.map(function(t){return t(e)})}function A1(e){return e.map(function(i){return function(e){return!e.validate}(i)?i:function(t){return i.validate(t)}})}function M_(e){return null!=e?function(e){if(!e)return null;var i=e.filter(M1);return 0==i.length?null:function(t){return D1(E1(t,i))}}(A1(e)):null}function S_(e){return null!=e?function(e){if(!e)return null;var i=e.filter(M1);return 0==i.length?null:function(t){return f1(E1(t,i).map(S1)).pipe(dt(D1))}}(A1(e)):null}function I1(e,i){return null===e?[i]:Array.isArray(e)?[].concat(ke(e),[i]):[e,i]}function R1(e){return e._rawValidators}function O1(e){return e._rawAsyncValidators}function D_(e){return e?Array.isArray(e)?e:[e]:[]}function If(e,i){return Array.isArray(e)?e.includes(i):e===i}function F1(e,i){var t=D_(i);return D_(e).forEach(function(r){If(t,r)||t.push(r)}),t}function P1(e,i){return D_(i).filter(function(t){return!If(e,t)})}var N1=function(){var e=function(){function i(){p(this,i),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return h(i,[{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(n){this._rawValidators=n||[],this._composedValidatorFn=M_(this._rawValidators)}},{key:"_setAsyncValidators",value:function(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=S_(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(n){this._onDestroyCallbacks.push(n)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(n){return n()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,r){return!!this.control&&this.control.hasError(n,r)}},{key:"getError",value:function(n,r){return this.control?this.control.getError(n,r):null}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=A({type:e}),e}(),vn=function(){var e=function(i){k(n,i);var t=w(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(N1);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275dir=A({type:e,features:[R]}),e}(),di=function(e){k(t,e);var i=w(t);function t(){var n;return p(this,t),(n=i.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return h(t)}(N1);function Au(e,i){x_(e,i),i.valueAccessor.writeValue(e.value),function(e,i){i.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&B1(e,i)})}(e,i),function(e,i){var t=function(r,a){i.valueAccessor.writeValue(r),a&&i.viewToModelUpdate(r)};e.registerOnChange(t),i._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,i),function(e,i){i.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&B1(e,i),"submit"!==e.updateOn&&e.markAsTouched()})}(e,i),function(e,i){if(i.valueAccessor.setDisabledState){var t=function(r){i.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),i._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,i)}function Ff(e,i){var n=function(){};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Nf(e,i),e&&(i._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function Pf(e,i){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function x_(e,i){var t=R1(e);null!==i.validator?e.setValidators(I1(t,i.validator)):"function"==typeof t&&e.setValidators([t]);var n=O1(e);null!==i.asyncValidator?e.setAsyncValidators(I1(n,i.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var r=function(){return e.updateValueAndValidity()};Pf(i._rawValidators,r),Pf(i._rawAsyncValidators,r)}function Nf(e,i){var t=!1;if(null!==e){if(null!==i.validator){var n=R1(e);if(Array.isArray(n)&&n.length>0){var r=n.filter(function(l){return l!==i.validator});r.length!==n.length&&(t=!0,e.setValidators(r))}}if(null!==i.asyncValidator){var a=O1(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(l){return l!==i.asyncValidator});o.length!==a.length&&(t=!0,e.setAsyncValidators(o))}}}var s=function(){};return Pf(i._rawValidators,s),Pf(i._rawAsyncValidators,s),t}function B1(e,i){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function V1(e,i){x_(e,i)}function H1(e,i){e._syncPendingControls(),i.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Lf(e,i){var t=e.indexOf(i);t>-1&&e.splice(t,1)}var xu="VALID",Bf="INVALID",Os="PENDING",Tu="DISABLED";function R_(e){return(F_(e)?e.validators:e)||null}function G1(e){return Array.isArray(e)?M_(e):e||null}function O_(e,i){return(F_(i)?i.asyncValidators:e)||null}function U1(e){return Array.isArray(e)?S_(e):e||null}function F_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var P_=function(){function e(i,t){p(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=i,this._rawAsyncValidators=t,this._composedValidatorFn=G1(this._rawValidators),this._composedAsyncValidatorFn=U1(this._rawAsyncValidators)}return h(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===xu}},{key:"invalid",get:function(){return this.status===Bf}},{key:"pending",get:function(){return this.status==Os}},{key:"disabled",get:function(){return this.status===Tu}},{key:"enabled",get:function(){return this.status!==Tu}},{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(t){this._rawValidators=t,this._composedValidatorFn=G1(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=U1(t)}},{key:"addValidators",value:function(t){this.setValidators(F1(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(F1(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(P1(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(P1(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return If(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return If(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Os,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=Tu,this.errors=null,this._forEachChild(function(r){r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(r){return r(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=xu,this._forEachChild(function(r){r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(r){return r(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=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===xu||this.status===Os)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Tu:xu}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=Os,this._hasOwnPendingAsyncValidator=!0;var r=S1(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,i,t){if(null==i||(Array.isArray(i)||(i=i.split(".")),Array.isArray(i)&&0===i.length))return null;var n=e;return i.forEach(function(r){n=n instanceof N_?n.controls.hasOwnProperty(r)?n.controls[r]:null:n instanceof Eq&&n.at(r)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new j,this.statusChanges=new j}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Tu:this.errors?Bf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Os)?Os:this._anyControlsHaveStatus(Bf)?Bf:xu}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){F_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Vf=function(e){k(t,e);var i=w(t);function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,t),(n=i.call(this,R_(a),O_(o,a)))._onChange=[],n._applyFormState(r),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return h(t,[{key:"setValue",value:function(r){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=r,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(r,a)}},{key:"reset",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(r),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(r){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(r){this._onChange.push(r)}},{key:"_unregisterOnChange",value:function(r){Lf(this._onChange,r)}},{key:"registerOnDisabledChange",value:function(r){this._onDisabledChange.push(r)}},{key:"_unregisterOnDisabledChange",value:function(r){Lf(this._onDisabledChange,r)}},{key:"_forEachChild",value:function(r){}},{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(r){this._isBoxedValue(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}}]),t}(P_),N_=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,R_(r),O_(a,r))).controls=n,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return h(t,[{key:"registerControl",value:function(r,a){return this.controls[r]?this.controls[r]:(this.controls[r]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(r,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[r]&&this.controls[r]._registerOnCollectionChange(function(){}),delete this.controls[r],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[r]&&this.controls[r]._registerOnCollectionChange(function(){}),delete this.controls[r],a&&this.registerControl(r,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}},{key:"setValue",value:function(r){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(r),Object.keys(r).forEach(function(s){a._throwIfControlMissing(s),a.controls[s].setValue(r[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(r){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=r&&(Object.keys(r).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(r[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(r[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(r,a,o){return r[o]=a instanceof Vf?a.value:a.getRawValue(),r})}},{key:"_syncPendingControls",value:function(){var r=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return r&&this.updateValueAndValidity({onlySelf:!0}),r}},{key:"_throwIfControlMissing",value:function(r){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[r])throw new Error("Cannot find form control with name: ".concat(r,"."))}},{key:"_forEachChild",value:function(r){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&r(s,o)})}},{key:"_setUpControls",value:function(){var r=this;this._forEachChild(function(a){a.setParent(r),a._registerOnCollectionChange(r._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(r){for(var a=0,o=Object.keys(this.controls);a<o.length;a++){var s=o[a],l=this.controls[s];if(this.contains(s)&&r(l))return!0}return!1}},{key:"_reduceValue",value:function(){var r=this;return this._reduceChildren({},function(a,o,s){return(o.enabled||r.disabled)&&(a[s]=o.value),a})}},{key:"_reduceChildren",value:function(r,a){var o=r;return this._forEachChild(function(s,l){o=a(o,s,l)}),o}},{key:"_allControlsDisabled",value:function(){for(var r=0,a=Object.keys(this.controls);r<a.length;r++)if(this.controls[a[r]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(r){this._forEachChild(function(a,o){if(void 0===r[o])throw new Error("Must supply a value for form control with name: '".concat(o,"'."))})}}]),t}(P_),Eq=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,R_(r),O_(a,r))).controls=n,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return h(t,[{key:"at",value:function(r){return this.controls[r]}},{key:"push",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(r,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[r]&&this.controls[r]._registerOnCollectionChange(function(){}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[r]&&this.controls[r]._registerOnCollectionChange(function(){}),this.controls.splice(r,1),a&&(this.controls.splice(r,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(r){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(r),r.forEach(function(s,l){a._throwIfControlMissing(l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(r){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=r&&(r.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(r[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(r){return r instanceof Vf?r.value:r.getRawValue()})}},{key:"clear",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}},{key:"_syncPendingControls",value:function(){var r=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}},{key:"_throwIfControlMissing",value:function(r){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(r))throw new Error("Cannot find form control at index ".concat(r))}},{key:"_forEachChild",value:function(r){this.controls.forEach(function(a,o){r(a,o)})}},{key:"_updateValue",value:function(){var r=this;this.value=this.controls.filter(function(a){return a.enabled||r.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(r){return this.controls.some(function(a){return a.enabled&&r(a)})}},{key:"_setUpControls",value:function(){var r=this;this._forEachChild(function(a){return r._registerControl(a)})}},{key:"_checkAllValuesPresent",value:function(r){this._forEachChild(function(a,o){if(void 0===r[o])throw new Error("Must supply a value for form control at index: ".concat(o,"."))})}},{key:"_allControlsDisabled",value:function(){var a,r=ct(this.controls);try{for(r.s();!(a=r.n()).done;)if(a.value.enabled)return!1}catch(s){r.e(s)}finally{r.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}}]),t}(P_),Aq={provide:vn,useExisting:De(function(){return Ir})},Iu=function(){return Promise.resolve(null)}(),Ir=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o;return p(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new j,o.form=new N_({},M_(r),S_(a)),o}return h(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(a){var o=this;Iu.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),Au(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.push(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;Iu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),Lf(o._directives,a)})}},{key:"addFormGroup",value:function(a){var o=this;Iu.then(function(){var s=o._findContainer(a.path),l=new N_({});V1(l,a),s.registerControl(a.name,l),l.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;Iu.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;Iu.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,H1(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),n}(vn);return e.\u0275fac=function(t){return new(t||e)(v(Vt,10),v(fa,10))},e.\u0275dir=A({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&q("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([Aq]),R]}),e}(),Vq={provide:vn,useExisting:De(function(){return Rr})},Rr=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a){var o;return p(this,n),(o=t.call(this)).validators=r,o.asyncValidators=a,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new j,o._setValidators(r),o._setAsyncValidators(a),o}return h(n,[{key:"ngOnChanges",value:function(a){this._checkFormPresent(),a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Nf(this.form,this),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(a){var o=this.form.get(a.path);return Au(o,a),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(a),o}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){Ff(a.control||null,a),Lf(this.directives,a)}},{key:"addFormGroup",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormGroup",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"addFormArray",value:function(a){this._setUpFormContainer(a)}},{key:"removeFormArray",value:function(a){this._cleanUpFormContainer(a)}},{key:"getFormArray",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){this.form.get(a.path).setValue(o)}},{key:"onSubmit",value:function(a){return this.submitted=!0,H1(this.form,this.directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_updateDomValue",value:function(){var a=this;this.directives.forEach(function(o){var s=o.control,l=a.form.get(o.path);s!==l&&(Ff(s||null,o),l instanceof Vf&&(Au(l,o),o.control=l))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(a){var o=this.form.get(a.path);V1(o,a),o.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(a){if(this.form){var o=this.form.get(a.path);if(o){var s=function(e,i){return Nf(e,i)}(o,a);s&&o.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){x_(this.form,this),this._oldForm&&Nf(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(vn);return e.\u0275fac=function(t){return new(t||e)(v(Vt,10),v(fa,10))},e.\u0275dir=A({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&q("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[K([Vq]),R,xe]}),e}(),vQ={provide:new V("mat-autocomplete-scroll-strategy"),deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Gf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[vQ],imports:[[ca,Sf,fe,ht],Tr,Sf,fe]}),e}(),hx=["mat-button",""],px=["*"],gx=".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",kQ=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],wQ=Yn(pn(xn(function(){return h(function e(i){p(this,e),this._elementRef=i})}()))),pa=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o){var s;p(this,n),(s=t.call(this,r))._focusMonitor=a,s._animationMode=o,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var u,l=ct(kQ);try{for(l.s();!(u=l.n()).done;){var c=u.value;s._hasHostAttributes(c)&&s._getHostElement().classList.add(c)}}catch(d){l.e(d)}finally{l.f()}return r.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return h(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,o){a?this._focusMonitor.focusVia(this._getHostElement(),a,o):this._getHostElement().focus(o)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return s.some(function(u){return a._getHostElement().hasAttribute(u)})}}]),n}(wQ);return e.\u0275fac=function(t){return new(t||e)(v(P),v(Bt),v(rt,8))},e.\u0275cmp=te({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(t,n){var r;1&t&&me(gn,5),2&t&&L(r=B())&&(n.ripple=r.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,n){2&t&&(ee("disabled",n.disabled||null),ie("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[R],attrs:hx,ngContentSelectors:px,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(t,n){1&t&&(be(),g(0,"span",0),se(1),m(),U(2,"span",1),U(3,"span",2)),2&t&&(y(2),ie("mat-button-ripple-round",n.isRoundButton||n.isIconButton),D("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[gn],styles:[gx],encapsulation:2,changeDetection:0}),e}(),z_=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o){return p(this,n),t.call(this,a,r,o)}return h(n,[{key:"_haltDisabledEvents",value:function(a){this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}]),n}(pa);return e.\u0275fac=function(t){return new(t||e)(v(Bt),v(P),v(rt,8))},e.\u0275cmp=te({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(t,n){1&t&&q("click",function(a){return n._haltDisabledEvents(a)}),2&t&&(ee("tabindex",n.disabled?-1:n.tabIndex||0)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),ie("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[R],attrs:hx,ngContentSelectors:px,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(t,n){1&t&&(be(),g(0,"span",0),se(1),m(),U(2,"span",1),U(3,"span",2)),2&t&&(y(2),ie("mat-button-ripple-round",n.isRoundButton||n.isIconButton),D("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[gn],styles:[gx],encapsulation:2,changeDetection:0}),e}(),ga=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ci,fe],fe]}),e}(),Uf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe],fe]}),e}(),_x=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),jf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ci,fe,hu,_x],fe,_x]}),e}(),Cx=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[Cs]]}),e}(),zf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[Ui],imports:[[Cx,Cu,fe],Cx,Cu]}),e}(),Ru=function(){var e=function(){function i(){p(this,i),this.changes=new $,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return h(i,[{key:"formatYearRange",value:function(n,r){return"".concat(n," \u2013 ").concat(r)}}]),i}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),kK={provide:new V("mat-datepicker-scroll-strategy"),deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Qf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[Ru,kK],imports:[[ht,ga,ca,Zd,ua,fe],Tr]}),e}();function RK(e,i){}var Z_=h(function e(){p(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}),OK={dialogContainer:Ot("dialogContainer",[Ie("void, exit",ue({opacity:0,transform:"scale(0.7)"})),Ie("enter",ue({transform:"none"})),He("* => enter",je("150ms cubic-bezier(0, 0, 0.2, 1)",ue({transform:"none",opacity:1}))),He("* => void, * => exit",je("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ue({opacity:0})))])},FK=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l,u){var c;return p(this,n),(c=t.call(this))._elementRef=r,c._focusTrapFactory=a,c._changeDetectorRef=o,c._config=l,c._focusMonitor=u,c._animationStateChanged=new j,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(d){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(d)},c._ariaLabelledBy=l.ariaLabelledBy||null,c._document=s,c}return h(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{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 a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var o=Dr(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.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=Dr())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,o=Dr();return a===o||a.contains(o)}}]),n}(Du);return e.\u0275fac=function(t){return new(t||e)(v(P),v(Xd),v(ve),v(oe,8),v(Z_),v(Bt))},e.\u0275dir=A({type:e,viewQuery:function(t,n){var r;1&t&&me(Tn,7),2&t&&L(r=B())&&(n._portalOutlet=r.first)},features:[R]}),e}(),PK=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.apply(this,arguments))._state="enter",r}return h(n,[{key:"_onAnimationDone",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===o&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:s}))}},{key:"_onAnimationStart",value:function(a){var o=a.toState,s=a.totalTime;"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(FK);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275cmp=te({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&Fa("@dialogContainer.start",function(a){return n._onAnimationStart(a)})("@dialogContainer.done",function(a){return n._onAnimationDone(a)}),2&t&&(en("id",n._id),ee("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Pa("@dialogContainer",n._state))},features:[R],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&F(0,RK,0,0,"ng-template",0)},directives:[Tn],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:[OK.dialogContainer]}}),e}(),NK=0,ey=function(){function e(i,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(NK++);p(this,e),this._overlayRef=i,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new $,this._afterClosed=new $,this._beforeClosed=new $,this._state=0,t._id=r,t._animationStateChanged.pipe(Ze(function(a){return"opened"===a.state}),gt(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(Ze(function(a){return"closed"===a.state}),gt(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),i.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),i.keydownEvents().pipe(Ze(function(a){return 27===a.keyCode&&!n.disableClose&&!Rt(a)})).subscribe(function(a){a.preventDefault(),ty(n,"keyboard")}),i.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():ty(n,"mouse")})}return h(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Ze(function(r){return"closing"===r.state}),gt(1)).subscribe(function(r){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},r.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(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),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 ty(e,i,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=i),e.close(t)}var LK=new V("MatDialogData"),BK=new V("mat-dialog-default-options"),Nx=new V("mat-dialog-scroll-strategy"),HK={provide:Nx,deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},GK=function(){var e=function(){function i(t,n,r,a,o,s,l,u,c){var d=this;p(this,i),this._overlay=t,this._injector=n,this._defaultOptions=r,this._parentDialog=a,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new $,this._afterOpenedAtThisLevel=new $,this._ariaHiddenElements=new Map,this.afterAllClosed=p_(function(){return d.openDialogs.length?d._getAfterAllClosed():d._getAfterAllClosed().pipe(ot(void 0))}),this._scrollStrategy=s}return h(i,[{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 n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,r){var a=this;r=function(e,i){return Object.assign(Object.assign({},i),e)}(r,this._defaultOptions||new Z_),r.id&&this.getDialogById(r.id);var o=this._createOverlay(r),s=this._attachDialogContainer(o,r),l=this._attachDialogContent(n,s,o,r);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return a._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(r){return r.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var r=this._getOverlayConfig(n);return this._overlay.create(r)}},{key:"_getOverlayConfig",value:function(n){var r=new Rs({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}},{key:"_attachDialogContainer",value:function(n,r){var o=at.create({parent:r&&r.viewContainerRef&&r.viewContainerRef.injector||this._injector,providers:[{provide:Z_,useValue:r}]}),s=new Is(this._dialogContainerType,r.viewContainerRef,o,r.componentFactoryResolver);return n.attach(s).instance}},{key:"_attachDialogContent",value:function(n,r,a,o){var s=new this._dialogRefConstructor(a,r,o.id);if(n instanceof ze)r.attachTemplatePortal(new ji(n,null,{$implicit:o.data,dialogRef:s}));else{var l=this._createInjector(o,s,r),u=r.attachComponentPortal(new Is(n,o.viewContainerRef,l));s.componentInstance=u.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}},{key:"_createInjector",value:function(n,r,a){var o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:r}];return n.direction&&(!o||!o.get(Qe,null,Ue.Optional))&&s.push({provide:Qe,useValue:{value:n.direction,change:pt()}}),at.create({parent:o||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(n){var r=this.openDialogs.indexOf(n);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,o){a?o.setAttribute("aria-hidden",a):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var r=n.parentElement.children,a=r.length-1;a>-1;a--){var o=r[a];o!==n&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var r=n.length;r--;)n[r].close()}}]),i}();return e.\u0275fac=function(t){return new(t||e)(v(mn),v(at),v(void 0),v(void 0),v(Eu),v(void 0),v(cl),v(cl),v(V))},e.\u0275dir=A({type:e}),e}(),ny=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l,u,c){return p(this,n),t.call(this,r,a,s,u,c,l,ey,PK,LK)}return h(n)}(GK);return e.\u0275fac=function(t){return new(t||e)(x(mn),x(at),x(Am,8),x(BK,8),x(Nx),x(e,12),x(Eu))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),e}(),Kf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[ny,HK],imports:[[ca,ua,fe],fe]}),e}(),Fu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe],fe]}),e}(),$f=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[bf,fe],bf,fe]}),e}(),t$=function(){function e(i){p(this,e),this.selector=i}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new n$(t,this.selector,this.caught))}}]),e}(),n$=function(e){k(t,e);var i=w(t);function t(n,r,a){var o;return p(this,t),(o=i.call(this,n)).selector=r,o.caught=a,o}return h(t,[{key:"error",value:function(r){if(!this.isStopped){var a;try{a=this.selector(r,this.caught)}catch(l){return void J(Y(t.prototype),"error",this).call(this,l)}this._unsubscribeAndRecycle();var o=new Qs(this);this.add(o);var s=$s(a,o);s!==o&&this.add(s)}}}]),t}(Ks),r$=function(){function e(i){p(this,e),this.callback=i}return h(e,[{key:"call",value:function(t,n){return n.subscribe(new a$(t,this.callback))}}]),e}(),a$=function(e){k(t,e);var i=w(t);function t(n,r){var a;return p(this,t),(a=i.call(this,n)).add(new ye(r)),a}return h(t)}(Ct),o$=["*"];function Ux(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function jx(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 zx(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var co=h(function e(i,t,n){p(this,e),this.url=i,this.svgText=t,this.options=n}),Xf=function(){var e=function(){function i(t,n,r,a){p(this,i),this._httpClient=t,this._sanitizer=n,this._errorHandler=a,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=r}return h(i,[{key:"addSvgIcon",value:function(n,r,a){return this.addSvgIconInNamespace("",n,r,a)}},{key:"addSvgIconLiteral",value:function(n,r,a){return this.addSvgIconLiteralInNamespace("",n,r,a)}},{key:"addSvgIconInNamespace",value:function(n,r,a,o){return this._addSvgIconConfig(n,r,new co(a,null,o))}},{key:"addSvgIconResolver",value:function(n){return this._resolvers.push(n),this}},{key:"addSvgIconLiteralInNamespace",value:function(n,r,a,o){var s=this._sanitizer.sanitize(Zt.HTML,a);if(!s)throw zx(a);return this._addSvgIconConfig(n,r,new co("",s,o))}},{key:"addSvgIconSet",value:function(n,r){return this.addSvgIconSetInNamespace("",n,r)}},{key:"addSvgIconSetLiteral",value:function(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}},{key:"addSvgIconSetInNamespace",value:function(n,r,a){return this._addSvgIconSetConfig(n,new co(r,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(n,r,a){var o=this._sanitizer.sanitize(Zt.HTML,r);if(!o)throw zx(r);return this._addSvgIconSetConfig(n,new co("",o,a))}},{key:"registerFontClassAlias",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,r),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var r=this,a=this._sanitizer.sanitize(Zt.RESOURCE_URL,n);if(!a)throw jx(n);var o=this._cachedIconsByUrl.get(a);return o?pt(Jf(o)):this._loadSvgIconFromConfig(new co(n,null)).pipe(ys(function(s){return r._cachedIconsByUrl.set(a,s)}),dt(function(s){return Jf(s)}))}},{key:"getNamedSvgIcon",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=Wx(r,n),o=this._svgIconConfigs.get(a);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,n))return this._svgIconConfigs.set(a,o),this._getSvgFromConfig(o);var s=this._iconSetConfigs.get(r);return s?this._getSvgFromIconSetConfigs(n,s):$A(Ux(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?pt(Jf(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(dt(function(r){return Jf(r)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,r){var a=this,o=this._extractIconWithNameFromAnySet(n,r);if(o)return pt(o);var s=r.filter(function(l){return!l.svgText}).map(function(l){return a._loadSvgIconSetFromConfig(l).pipe(function(e){return function(t){var n=new t$(e),r=t.lift(n);return n.caught=r}}(function(u){var c=a._sanitizer.sanitize(Zt.RESOURCE_URL,l.url),d="Loading icon set URL: ".concat(c," failed: ").concat(u.message);return a._errorHandler.handleError(new Error(d)),pt(null)}))});return f1(s).pipe(dt(function(){var l=a._extractIconWithNameFromAnySet(n,r);if(!l)throw Ux(n);return l}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,r){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o.svgText&&o.svgText.indexOf(n)>-1){var s=this._svgElementFromConfig(o),l=this._extractSvgIconFromSet(s,n,o.options);if(l)return l}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var r=this;return this._fetchIcon(n).pipe(ys(function(a){return n.svgText=a}),dt(function(){return r._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?pt(null):this._fetchIcon(n).pipe(ys(function(r){return n.svgText=r}))}},{key:"_extractSvgIconFromSet",value:function(n,r,a){var o=n.querySelector('[id="'.concat(r,'"]'));if(!o)return null;var s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,a);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),a);var l=this._svgElementFromString("<svg></svg>");return l.appendChild(s),this._setSvgAttributes(l,a)}},{key:"_svgElementFromString",value:function(n){var r=this._document.createElement("DIV");r.innerHTML=n;var a=r.querySelector("svg");if(!a)throw Error("<svg> tag not found");return a}},{key:"_toSvgElement",value:function(n){for(var r=this._svgElementFromString("<svg></svg>"),a=n.attributes,o=0;o<a.length;o++){var s=a[o],l=s.name;"id"!==l&&r.setAttribute(l,s.value)}for(var c=0;c<n.childNodes.length;c++)n.childNodes[c].nodeType===this._document.ELEMENT_NODE&&r.appendChild(n.childNodes[c].cloneNode(!0));return r}},{key:"_setSvgAttributes",value:function(n,r){return n.setAttribute("fit",""),n.setAttribute("height","100%"),n.setAttribute("width","100%"),n.setAttribute("preserveAspectRatio","xMidYMid meet"),n.setAttribute("focusable","false"),r&&r.viewBox&&n.setAttribute("viewBox",r.viewBox),n}},{key:"_fetchIcon",value:function(n){var a,r=this,o=n.url,s=n.options,l=null!==(a=null==s?void 0:s.withCredentials)&&void 0!==a&&a;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==o)throw Error('Cannot fetch icon from URL "'.concat(o,'".'));var u=this._sanitizer.sanitize(Zt.RESOURCE_URL,o);if(!u)throw jx(o);var c=this._inProgressUrlFetches.get(u);if(c)return c;var d=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe(function(e){return function(i){return i.lift(new r$(e))}}(function(){return r._inProgressUrlFetches.delete(u)}),ab());return this._inProgressUrlFetches.set(u,d),d}},{key:"_addSvgIconConfig",value:function(n,r,a){return this._svgIconConfigs.set(Wx(n,r),a),this}},{key:"_addSvgIconSetConfig",value:function(n,r){var a=this._iconSetConfigs.get(n);return a?a.push(r):this._iconSetConfigs.set(n,[r]),this}},{key:"_svgElementFromConfig",value:function(n){if(!n.svgElement){var r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}},{key:"_getIconConfigFromResolvers",value:function(n,r){for(var a=0;a<this._resolvers.length;a++){var o=this._resolvers[a](r,n);if(o)return u$(o)?new co(o.url,null,o.options):new co(o,null)}}}]),i}();return e.\u0275fac=function(t){return new(t||e)(x(kr,8),x(qa),x(oe,8),x(Ci))},e.\u0275prov=G({factory:function(){return new e(x(kr,8),x(qa),x(oe,8),x(Ci))},token:e,providedIn:"root"}),e}();function Jf(e){return e.cloneNode(!0)}function Wx(e,i){return e+":"+i}function u$(e){return!(!e.url||!e.options)}var c$=Yn(function(){return h(function e(i){p(this,e),this._elementRef=i})}()),d$=new V("mat-icon-location",{providedIn:"root",factory:function(){var e=Lo(oe),i=e?e.location:null;return{getPathname:function(){return i?i.pathname+i.search:""}}}}),Yx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],p$=Yx.map(function(i){return"[".concat(i,"]")}).join(", "),g$=/^url\(['"]?#(.*?)['"]?\)$/,ry=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l){var u;return p(this,n),(u=t.call(this,r))._iconRegistry=a,u._location=s,u._errorHandler=l,u._inline=!1,u._currentIconFetch=ye.EMPTY,o||r.nativeElement.setAttribute("aria-hidden","true"),u}return h(n,[{key:"inline",get:function(){return this._inline},set:function(a){this._inline=W(a)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},{key:"fontSet",get:function(){return this._fontSet},set:function(a){var o=this._cleanupFontValue(a);o!==this._fontSet&&(this._fontSet=o,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(a){var o=this._cleanupFontValue(a);o!==this._fontIcon&&(this._fontIcon=o,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(a){if(!a)return["",""];var o=a.split(":");switch(o.length){case 1:return["",o[0]];case 2:return o;default:throw Error('Invalid icon name: "'.concat(a,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var a=this._elementsWithExternalReferences;if(a&&a.size){var o=this._location.getPathname();o!==this._previousPath&&(this._previousPath=o,this._prependPathToReferences(o))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(a){this._clearSvgElement();for(var o=a.querySelectorAll("style"),s=0;s<o.length;s++)o[s].textContent+=" ";var l=this._location.getPathname();this._previousPath=l,this._cacheChildrenWithExternalReferences(a),this._prependPathToReferences(l),this._elementRef.nativeElement.appendChild(a)}},{key:"_clearSvgElement",value:function(){var a=this._elementRef.nativeElement,o=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();o--;){var s=a.childNodes[o];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&a.removeChild(s)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,o=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();o!=this._previousFontSetClass&&(this._previousFontSetClass&&a.classList.remove(this._previousFontSetClass),o&&a.classList.add(o),this._previousFontSetClass=o),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(a){return"string"==typeof a?a.trim().split(" ")[0]:a}},{key:"_prependPathToReferences",value:function(a){var o=this._elementsWithExternalReferences;o&&o.forEach(function(s,l){s.forEach(function(u){l.setAttribute(u.name,"url('".concat(a,"#").concat(u.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(a){for(var o=a.querySelectorAll(p$),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(d){Yx.forEach(function(f){var _=o[d],b=_.getAttribute(f),C=b?b.match(g$):null;if(C){var S=s.get(_);S||s.set(_,S=[]),S.push({name:f,value:C[1]})}})},u=0;u<o.length;u++)l(u)}},{key:"_updateSvgIcon",value:function(a){var o=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),a){var l=Le(this._splitIconName(a),2),u=l[0],c=l[1];u&&(this._svgNamespace=u),c&&(this._svgName=c),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(c,u).pipe(gt(1)).subscribe(function(d){return o._setSvgElement(d)},function(d){var f="Error retrieving icon ".concat(u,":").concat(c,"! ").concat(d.message);o._errorHandler.handleError(new Error(f))})}}}]),n}(c$);return e.\u0275fac=function(t){return new(t||e)(v(P),v(Xf),Gt("aria-hidden"),v(d$),v(Ci))},e.\u0275cmp=te({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,n){2&t&&(ee("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet),ie("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[R],ngContentSelectors:o$,decls:1,vars:0,template:function(t,n){1&t&&(be(),se(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;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}(),Pu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe],fe]}),e}(),Zf=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[bf,ci,fe,d_,ht],bf,fe,d_,Fu]}),e}(),N$={provide:new V("mat-menu-scroll-strategy"),deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},th=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[N$],imports:[[ht,fe,ci,ca],Tr,fe]}),e}(),B$=["trigger"],V$=["panel"];function H$(e,i){if(1&e&&(g(0,"span",8),M(1),m()),2&e){var t=O();y(1),Ge(t.placeholder)}}function G$(e,i){if(1&e&&(g(0,"span",12),M(1),m()),2&e){var t=O(2);y(1),Ge(t.triggerValue)}}function U$(e,i){1&e&&se(0,0,["*ngSwitchCase","true"])}function j$(e,i){1&e&&(g(0,"span",9),F(1,G$,2,1,"span",10),F(2,U$,1,0,"ng-content",11),m()),2&e&&(D("ngSwitch",!!O().customTrigger),y(2),D("ngSwitchCase",!0))}function z$(e,i){if(1&e){var t=lt();g(0,"div",13),g(1,"div",14,15),q("@transformPanel.done",function(a){return Pe(t),O()._panelDoneAnimatingStream.next(a.toState)})("keydown",function(a){return Pe(t),O()._handleKeydown(a)}),se(3,1),m(),m()}if(2&e){var n=O();D("@transformPanelWrap",void 0),y(1),Qc("mat-select-panel ",n._getPanelTheme(),""),St("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),D("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing"),ee("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}var W$=[[["mat-select-trigger"]],"*"],Y$=["mat-select-trigger","*"],aT={transformPanelWrap:Ot("transformPanelWrap",[He("* => void",E0("@transformPanel",[D0()],{optional:!0}))]),transformPanel:Ot("transformPanel",[Ie("void",ue({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Ie("showing",ue({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Ie("showing-multiple",ue({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),He("void => *",je("120ms cubic-bezier(0, 0, 0.2, 1)")),He("* => void",je("100ms 25ms linear",ue({opacity:0})))])},oT=0,lT=new V("mat-select-scroll-strategy"),$$=new V("MAT_SELECT_CONFIG"),X$={provide:lT,deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},J$=h(function e(i,t){p(this,e),this.source=i,this.value=t}),Z$=xn(Ar(pn(vf(function(){return h(function e(i,t,n,r,a){p(this,e),this._elementRef=i,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=r,this.ngControl=a})}())))),uT=new V("MatSelectTrigger"),eX=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l,u,c,d,f,_,b,C,S,I){var E,N,z,re;return p(this,n),(E=t.call(this,l,s,c,d,_))._viewportRuler=r,E._changeDetectorRef=a,E._ngZone=o,E._dir=u,E._parentFormField=f,E._liveAnnouncer=S,E._defaultOptions=I,E._panelOpen=!1,E._compareWith=function(Z,pe){return Z===pe},E._uid="mat-select-".concat(oT++),E._triggerAriaLabelledBy=null,E._destroy=new $,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-".concat(oT++),E._panelDoneAnimatingStream=new $,E._overlayPanelClass=(null===(N=E._defaultOptions)||void 0===N?void 0:N.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(re=null===(z=E._defaultOptions)||void 0===z?void 0:z.disableOptionCentering)&&void 0!==re&&re,E.ariaLabel="",E.optionSelectionChanges=p_(function(){var Z=E.options;return Z?Z.changes.pipe(ot(Z),xr(function(){return Ke.apply(void 0,ke(Z.map(function(pe){return pe.onSelectionChange})))})):E._ngZone.onStable.pipe(gt(1),xr(function(){return E.optionSelectionChanges}))}),E.openedChange=new j,E._openedStream=E.openedChange.pipe(Ze(function(Z){return Z}),dt(function(){})),E._closedStream=E.openedChange.pipe(Ze(function(Z){return!Z}),dt(function(){})),E.selectionChange=new j,E.valueChange=new j,E.ngControl&&(E.ngControl.valueAccessor=et(E)),null!=(null==I?void 0:I.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=I.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(b)||0,E.id=E.id,E}return h(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(a){this._placeholder=a,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(a){this._required=W(a),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(a){this._multiple=W(a)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=W(a)}},{key:"compareWith",get:function(){return this._compareWith},set:function(a){this._compareWith=a,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(a){(a!==this._value||this._multiple&&Array.isArray(a))&&(this.options&&this._setSelectionByValue(a),this._value=a)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(a){this._typeaheadDebounceInterval=Ye(a)}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var a=this;this._selectionModel=new Su(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xa(),de(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var a=this;this._initKeyManager(),this._selectionModel.changed.pipe(de(this._destroy)).subscribe(function(o){o.added.forEach(function(s){return s.select()}),o.removed.forEach(function(s){return s.deselect()})}),this.options.changes.pipe(ot(null),de(this._destroy)).subscribe(function(){a._resetOptions(),a._initializeSelection()})}},{key:"ngDoCheck",value:function(){var a=this._getTriggerAriaLabelledby();if(a!==this._triggerAriaLabelledBy){var o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=a,a?o.setAttribute("aria-labelledby",a):o.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(a){a.disabled&&this.stateChanges.next(),a.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(a){this.value=a}},{key:"registerOnChange",value:function(a){this._onChange=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var a,o;return this.multiple?(null===(a=this._selectionModel)||void 0===a?void 0:a.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(o){return o.viewValue});return this._isRtl()&&a.reverse(),a.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))}},{key:"_handleClosedKeydown",value:function(a){var o=a.keyCode,s=40===o||38===o||37===o||39===o,l=13===o||32===o,u=this._keyManager;if(!u.isTyping()&&l&&!Rt(a)||(this.multiple||a.altKey)&&s)a.preventDefault(),this.open();else if(!this.multiple){var c=this.selected;u.onKeydown(a);var d=this.selected;d&&c!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(a){var o=this._keyManager,s=a.keyCode,l=40===s||38===s,u=o.isTyping();if(l&&a.altKey)a.preventDefault(),this.close();else if(u||13!==s&&32!==s||!o.activeItem||Rt(a))if(!u&&this._multiple&&65===s&&a.ctrlKey){a.preventDefault();var c=this.options.some(function(f){return!f.disabled&&!f.selected});this.options.forEach(function(f){f.disabled||(c?f.select():f.deselect())})}else{var d=o.activeItemIndex;o.onKeydown(a),this._multiple&&l&&a.shiftKey&&o.activeItem&&o.activeItemIndex!==d&&o.activeItem._selectViaInteraction()}else a.preventDefault(),o.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 a=this;this._overlayDir.positionChange.pipe(gt(1)).subscribe(function(){a._changeDetectorRef.detectChanges(),a._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 a=this;Promise.resolve().then(function(){a._setSelectionByValue(a.ngControl?a.ngControl.value:a._value),a.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(a){var o=this;if(this._selectionModel.selected.forEach(function(l){return l.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&a)Array.isArray(a),a.forEach(function(l){return o._selectValue(l)}),this._sortValues();else{var s=this._selectValue(a);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(a){var o=this,s=this.options.find(function(l){if(o._selectionModel.isSelected(l))return!1;try{return null!=l.value&&o._compareWith(l.value,a)}catch(u){return!1}});return s&&this._selectionModel.select(s),s}},{key:"_initKeyManager",value:function(){var a=this;this._keyManager=new u0(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(de(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())}),this._keyManager.change.pipe(de(this._destroy)).subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):!a._panelOpen&&!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var a=this,o=Ke(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(de(o)).subscribe(function(s){a._onSelect(s.source,s.isUserInput),s.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())}),Ke.apply(void 0,ke(this.options.map(function(s){return s._stateChanges}))).pipe(de(o)).subscribe(function(){a._changeDetectorRef.markForCheck(),a.stateChanges.next()})}},{key:"_onSelect",value:function(a,o){var s=this._selectionModel.isSelected(a);null!=a.value||this._multiple?(s!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),o&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),o&&this.focus())):(a.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(a.value)),s!==this._selectionModel.isSelected(a)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var a=this;if(this.multiple){var o=this.options.toArray();this._selectionModel.sort(function(s,l){return a.sortComparator?a.sortComparator(s,l,o):o.indexOf(s)-o.indexOf(l)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(a){var o;o=this.multiple?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:a,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),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 a;return!this._panelOpen&&!this.disabled&&(null===(a=this.options)||void 0===a?void 0:a.length)>0}},{key:"focus",value:function(a){this._elementRef.nativeElement.focus(a)}},{key:"_getPanelAriaLabelledby",value:function(){var a;if(this.ariaLabel)return null;var o=null===(a=this._parentFormField)||void 0===a?void 0:a.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var a;if(this.ariaLabel)return null;var o=null===(a=this._parentFormField)||void 0===a?void 0:a.getLabelId(),s=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}},{key:"_panelDoneAnimating",value:function(a){this.openedChange.emit(a)}},{key:"setDescribedByIds",value:function(a){this._ariaDescribedby=a.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Z$);return e.\u0275fac=function(t){return new(t||e)(v(Fn),v(ve),v(le),v(Ui),v(P),v(Qe,8),v(Ir,8),v(Rr,8),v(xs,8),v(di,10),Gt("tabindex"),v(lT),v(_0),v($$,8))},e.\u0275dir=A({type:e,viewQuery:function(t,n){var r;1&t&&(me(B$,5),me(V$,5),me(d1,5)),2&t&&(L(r=B())&&(n.trigger=r.first),L(r=B())&&(n.panel=r.first),L(r=B())&&(n._overlayDir=r.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:[R,xe]}),e}(),cT=function(){var e=function(i){k(n,i);var t=w(n);function n(){var r;return p(this,n),(r=t.apply(this,arguments))._scrollTop=0,r._triggerFontSize=0,r._transformOrigin="top",r._offsetY=0,r._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],r}return h(n,[{key:"_calculateOverlayScroll",value:function(a,o,s){var l=this._getItemHeight();return Math.min(Math.max(0,l*a-o+l/2),s)}},{key:"ngOnInit",value:function(){var a=this;J(Y(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(de(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var a=this;J(Y(n.prototype),"_canOpen",this).call(this)&&(J(Y(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(gt(1)).subscribe(function(){a._triggerFontSize&&a._overlayDir.overlayRef&&a._overlayDir.overlayRef.overlayElement&&(a._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(a._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(a){var o=f_(a,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===o?0:function(e,i,t,n){return e<t?e:e+i>t+n?Math.max(0,e-n+i):t}((a+o)*s,s,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(a){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),J(Y(n.prototype),"_panelDoneAnimating",this).call(this,a)}},{key:"_getChangeEvent",value:function(a){return new J$(this,a)}},{key:"_calculateOverlayOffsetX",value:function(){var u,a=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),s=this._isRtl(),l=this.multiple?56:32;if(this.multiple)u=40;else if(this.disableOptionCentering)u=16;else{var c=this._selectionModel.selected[0]||this.options.first;u=c&&c.group?32:16}s||(u*=-1);var d=0-(a.left+u-(s?l:0)),f=a.right+u-o.width+(s?0:l);d>0?u+=d+8:f>0&&(u-=f+8),this._overlayDir.offsetX=Math.round(u),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(a,o,s){var d,l=this._getItemHeight(),u=(l-this._triggerRect.height)/2,c=Math.floor(256/l);return this.disableOptionCentering?0:(d=0===this._scrollTop?a*l:this._scrollTop===s?(a-(this._getItemCount()-c))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*d-u))}},{key:"_checkOverlayWithinViewport",value:function(a){var o=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,u=s.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),f=Math.min(this._getItemCount()*o,256)-c-this._triggerRect.height;f>u?this._adjustPanelUp(f,u):c>l?this._adjustPanelDown(c,l,a):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(a,o){var s=Math.round(a-o);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(a,o,s){var l=Math.round(a-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var c,a=this._getItemHeight(),o=this._getItemCount(),s=Math.min(o*a,256),u=o*a-s;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=f_(c,this.options,this.optionGroups);var d=s/2;this._scrollTop=this._calculateOverlayScroll(c,d,u),this._offsetY=this._calculateOverlayOffsetY(c,d,u),this._checkOverlayWithinViewport(u)}},{key:"_getOriginBasedOnOption",value:function(){var a=this._getItemHeight(),o=(a-this._triggerRect.height)/2,s=Math.abs(this._offsetY)-o+a/2;return"50% ".concat(s,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(eX);return e.\u0275fac=function(){var i;return function(n){return(i||(i=X(e)))(n||e)}}(),e.\u0275cmp=te({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,r){var a;1&t&&(he(r,uT,5),he(r,Mf,5),he(r,wf,5)),2&t&&(L(a=B())&&(n.customTrigger=a.first),L(a=B())&&(n.options=a),L(a=B())&&(n.optionGroups=a))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&q("keydown",function(a){return n._handleKeydown(a)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(ee("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),ie("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[K([{provide:As,useExisting:e},{provide:kf,useExisting:e}]),R],ngContentSelectors:Y$,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(t,n){if(1&t&&(be(W$),g(0,"div",0,1),q("click",function(){return n.toggle()}),g(3,"div",2),F(4,H$,2,1,"span",3),F(5,j$,3,2,"span",4),m(),g(6,"div",5),U(7,"div",6),m(),m(),F(8,z$,4,14,"ng-template",7),q("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var r=function(e){return Eo(Me.lFrame.contextLView,20+e)}(1);ee("aria-owns",n.panelOpen?n.id+"-panel":null),y(3),D("ngSwitch",n.empty),ee("id",n._valueId),y(1),D("ngSwitchCase",!0),y(1),D("ngSwitchCase",!1),y(3),D("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[aq,or,Zr,d1,Vm,ar],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;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[aT.transformPanelWrap,aT.transformPanel]},changeDetection:0}),e}(),Bu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[X$],imports:[[ht,ca,Sf,fe],Tr,Cu,Sf,fe]}),e}(),fX={provide:new V("mat-tooltip-scroll-strategy"),deps:[mn],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},Vu=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[fX],imports:[[Zd,ht,ca,fe],fe,Tr]}),e}(),Hu=function(){var e=h(function i(){p(this,i),this.changes=new $,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,r){if(0==r||0==n)return"0 of ".concat(r);var a=t*n,o=a<(r=Math.max(r,0))?Math.min(a+n,r):a+n;return"".concat(a+1," \u2013 ").concat(o," of ").concat(r)}});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),DX={provide:Hu,deps:[[new Kt,new Rn,Hu]],useFactory:function(e){return e||new Hu}},rh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[DX],imports:[[ht,ga,Bu,Vu,fe]]}),e}();function IX(e,i){if(1&e&&(sn(),U(0,"circle",3)),2&e){var t=O();St("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),ee("r",t._getCircleRadius())}}function RX(e,i){if(1&e&&(sn(),U(0,"circle",3)),2&e){var t=O();St("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),ee("r",t._getCircleRadius())}}function OX(e,i){if(1&e&&(sn(),U(0,"circle",3)),2&e){var t=O();St("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),ee("r",t._getCircleRadius())}}function FX(e,i){if(1&e&&(sn(),U(0,"circle",3)),2&e){var t=O();St("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),ee("r",t._getCircleRadius())}}var yT=".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",NX=Yn(function(){return h(function e(i){p(this,e),this._elementRef=i})}(),"primary"),bT=new V("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),VX=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l){var u;p(this,n),(u=t.call(this,r))._document=o,u._diameter=100,u._value=0,u._fallbackAnimation=!1,u.mode="determinate";var c=n._diameters;return u._spinnerAnimationLabel=u._getSpinnerAnimationLabel(),c.has(o.head)||c.set(o.head,new Set([100])),u._fallbackAnimation=a.EDGE||a.TRIDENT,u._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,l&&(l.diameter&&(u.diameter=l.diameter),l.strokeWidth&&(u.strokeWidth=l.strokeWidth)),u}return h(n,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=Ye(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=Ye(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,Ye(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=n0(a)||this._document.head,this._attachStyleNode();var o="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");a.classList.add(o)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{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 a=this._styleRoot,o=this._diameter,s=n._diameters,l=s.get(a);if(!l||!l.has(o)){var u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),l||(l=new Set,s.set(a,l)),l.add(o)}}},{key:"_getAnimationText",value:function(){var a=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*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(NX);return e.\u0275fac=function(t){return new(t||e)(v(P),v(Te),v(oe,8),v(rt,8),v(bT))},e.\u0275cmp=te({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(ee("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),St("width",n.diameter,"px")("height",n.diameter,"px"),ie("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[R],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(t,n){1&t&&(sn(),g(0,"svg",0),F(1,IX,1,9,"circle",1),F(2,RX,1,7,"circle",2),m()),2&t&&(St("width",n.diameter,"px")("height",n.diameter,"px"),D("ngSwitch","indeterminate"===n.mode),ee("viewBox",n._getViewBox()),y(1),D("ngSwitchCase",!0),y(1),D("ngSwitchCase",!1))},directives:[or,Zr],styles:[yT],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),HX=function(){var e=function(i){k(n,i);var t=w(n);function n(r,a,o,s,l){var u;return p(this,n),(u=t.call(this,r,a,o,s,l)).mode="indeterminate",u}return h(n)}(VX);return e.\u0275fac=function(t){return new(t||e)(v(P),v(Te),v(oe,8),v(rt,8),v(bT))},e.\u0275cmp=te({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,n){2&t&&(St("width",n.diameter,"px")("height",n.diameter,"px"),ie("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color"},features:[R],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(t,n){1&t&&(sn(),g(0,"svg",0),F(1,OX,1,9,"circle",1),F(2,FX,1,7,"circle",2),m()),2&t&&(St("width",n.diameter,"px")("height",n.diameter,"px"),D("ngSwitch","indeterminate"===n.mode),ee("viewBox",n._getViewBox()),y(1),D("ngSwitchCase",!0),y(1),D("ngSwitchCase",!1))},directives:[or,Zr],styles:[yT],encapsulation:2,changeDetection:0}),e}(),ah=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe,ht],fe]}),e}(),lh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe,Cs,Tr],Tr,fe]}),e}(),uh=function(){var e=h(function i(){p(this,i),this.changes=new $});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),uJ={provide:uh,deps:[[new Kt,new Rn,uh]],useFactory:function(e){return e||new uh}},ch=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[uJ],imports:[[ht,fe]]}),e}(),Cy=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[v_]]}),e}(),bh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[Cy,fe],fe]}),e}(),kh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe,ua,ci,hu,Zd],fe]}),e}(),wh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe],fe]}),e}(),Mh=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ca,ua,ht,ga,fe],fe]}),e}();function TZ(e,i){1&e&&(g(0,"div",4),U(1,"mat-spinner"),m())}function IZ(e,i){1&e&&(g(0,"mat-icon",13),M(1,"check_circle"),m())}function RZ(e,i){1&e&&(g(0,"mat-icon",14),M(1,"info"),m())}function OZ(e,i){if(1&e&&(g(0,"div",10),F(1,IZ,2,0,"mat-icon",11),F(2,RZ,2,0,"mat-icon",12),g(3,"span"),g(4,"b"),M(5),m(),M(6),m(),m()),2&e){var t=i.$implicit;y(1),D("ngIf",t.isSuccess),y(1),D("ngIf",!t.isSuccess),y(3),Ge(t.productName),y(1),cn("\xa0",t.message," ")}}function FZ(e,i){if(1&e){var t=lt();g(0,"div"),g(1,"div",5),g(2,"button",6),q("click",function(){return Pe(t),O(2).close()}),g(3,"mat-icon"),M(4,"close"),m(),m(),m(),g(5,"div"),F(6,OZ,7,4,"div",7),m(),g(7,"div",8),g(8,"a",9),M(9," View Cart "),m(),m(),m()}if(2&e){var n=O(2);y(6),D("ngForOf",n.validationResults),y(2),D("href",n.viewCartUrl,T)}}var PZ=function(i,t){return{success:i,fail:t}};function NZ(e,i){if(1&e&&(g(0,"div",1),F(1,TZ,2,0,"div",2),F(2,FZ,10,2,"div",3),m()),2&e){var t=O();D("ngClass",Ul(3,PZ,t.isAllSuccess,!t.isAllSuccess)),y(1),D("ngIf",t.loading),y(1),D("ngIf",!t.loading)}}var ZT=function(){var e=function(){return h(function i(){p(this,i)},[{key:"trackEventMultipleProducts",value:function(n,r,a){if(window.ga&&a.forEach(function(l){window.ga("send","event",n,r,l.productName,l.price)}),window.dataLayer&&void 0!==a){var o=[];a.forEach(function(l){o.push({item_id:l.productId,item_name:l.productName,price:l.price,quantity:1})});var s=a.reduce(function(l,u){return l+u.price},0);window.dataLayer.push({event:r,ecommerce:{currency:"USD",value:s,items:o}})}}},{key:"trackEvent",value:function(n,r,a,o,s){window.ga&&(console.log("ga",n,r,o,s),window.ga("send","event",n,r,o,s)),window.dataLayer&&null!=a&&null!=o&&null!=s&&(console.log("dataLayer",r,o,s),window.dataLayer.push({event:r,ecommerce:{currency:"USD",value:s,items:[{item_id:a,item_name:o,price:s,quantity:1}]}}))}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),eI=function(){var e=function(){return h(function i(t,n,r){p(this,i),this.httpClient=t,this.impersonateService=n,this.trackingService=r,this.options={withCredentials:!1},this.authQs="",this.authQs=n.getAuthQs()},[{key:"tryAddProductToCart",value:function(n,r,a,o){var s=this,l={p:r.project,c:r.coupon,oc:r.offerCode,rid:r.resellerId,kitId:a,productId:o,ev:r.productPrice};return this.httpClient.get("/api/shoppingCart/cart/".concat(o,"/getProduct").concat(this.authQs)).subscribe(function(u){s.trackingService.trackEvent("Add To Cart","add_to_cart",o,u.productName,u.price)}),this.httpClient.post("/api/shoppingCart/cart/".concat(n,"/addProduct").concat(this.authQs),l,this.options)}},{key:"tryAddProductsToCart",value:function(n,r,a,o){var s=this,l={p:r.project,c:r.coupon,oc:r.offerCode,rid:r.resellerId,kitId:a,productIds:o},u=[],c=o.length,d=0;return o.forEach(function(f){s.httpClient.get("/api/shoppingCart/cart/".concat(f,"/getProduct").concat(s.authQs)).subscribe(function(_){d++,u.push(_),d===c&&s.trackingService.trackEventMultipleProducts("Add To Cart","add_to_cart",u)})}),this.httpClient.post("/api/shoppingCart/cart/".concat(n,"/addProducts").concat(this.authQs),l,this.options)}}])}();return e.\u0275fac=function(t){return new(t||e)(x(kr),x(Qa),x(ZT))},e.\u0275prov=G({factory:function(){return new e(x(kr),x(Qa),x(ZT))},token:e,providedIn:"root"}),e}(),LZ=function(){var e=function(){return h(function i(t,n){p(this,i),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()},[{key:"ngOnInit",value:function(){this.viewCartUrl=this.ftdnaImpersonationService.addAuthQsToUrl(this.viewCartUrl)}},{key:"close",value:function(){this.open=!1}},{key:"initGlobalEventListener",value:function(){var n=this;window.addEventListener("try-add-to-cart",function(r){n.getAndTryAddProductToCart(r.detail.cartOptions)})}},{key:"getAndTryAddProductToCart",value:function(n){this.open=!0,this.loading=!0,this.validationResults=[],this.isAllSuccess=!1;var r=new URLSearchParams(window.location.search.toLowerCase());if(r.has("group")&&!n.project&&(n.project=r.get("group")),"string"==typeof n.productId&&n.productId.indexOf(",")>-1){var a=n.productId.split(",").map(function(s){return+s});this.tryAddProductsToCart(n,a)}else this.tryAddProductToCart(n,+n.productId)}},{key:"tryAddProductToCart",value:function(n,r){var a=this;this.addToCartService.tryAddProductToCart(this.cartId,n,this.cartKitId,r).subscribe(function(o){a.loading=!1,a.validationResults=o.productValidationResults.map(function(s){return{isSuccess:s.valid,productName:s.productName,message:s.reason+(s.additionalInfo?" "+s.additionalInfo:"")}}),a.cartId=o.id,a.cartKitId=o.kits[0].id,localStorage.cartId=a.cartId,a.isAllSuccess=a.validationResults.every(function(s){return s.isSuccess}),window.dispatchEvent(window.updateHeaderCartButtonEvent)})}},{key:"tryAddProductsToCart",value:function(n,r){var a=this;this.addToCartService.tryAddProductsToCart(this.cartId,n,this.cartKitId,r).subscribe(function(o){a.loading=!1,a.validationResults=o.productValidationResults.map(function(s){return{isSuccess:s.valid,productName:s.productName,message:s.reason+(s.additionalInfo?" "+s.additionalInfo:"")}}),a.cartId=o.id,a.cartKitId=o.kits[0].id,localStorage.cartId=a.cartId,a.isAllSuccess=a.validationResults.every(function(s){return s.isSuccess}),window.dispatchEvent(window.updateHeaderCartButtonEvent)})}}])}();return e.\u0275fac=function(t){return new(t||e)(v(eI),v(Qa))},e.\u0275cmp=te({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(t,n){1&t&&F(0,NZ,3,6,"div",0),2&t&&D("ngIf",n.open)},directives:[Dt,ar,FE,fv,hv,HX,pa,ry,Cr,z_],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: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}(),BZ=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[Cu,Pu,Uf,wh,th,Bu,ga,jf,bh,ch,rh,$f,Fu,zf,lh,Zf,Qf,yf,kh,ah,Kf,Gf,Vu,Mh]}),e}(),tI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[eI],imports:[[ht,BZ,KE,ov]]}),e}();function VZ(e,i){if(1&e&&(g(0,"span",5),M(1),m()),2&e){var t=O();y(1),Ge(null==t.cartInfo?null:t.cartInfo.productsCount)}}var HZ=function(){function e(i){this.service=i,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 i=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){i.initiateCartInfoData()})},e.prototype.initiateCartInfoData=function(){var i=this;this.cartId=localStorage.cartId&&!isNaN(localStorage.cartId)&&localStorage.cartId||-1,this.service.getSimpleCartInfo(this.cartId).subscribe(function(t){t?(i.cartInfo=t,i.cartKitId=t.kits?t.kits[0].id:-1):(i.cartInfo={kits:[],productsCount:0},i.cartKitId=-1)})},e.\u0275fac=function(t){return new(t||e)(v(pv))},e.\u0275cmp=te({type:e,selectors:[["app-header-shopping-cart"]],inputs:{cartUrl:"cartUrl"},features:[xe],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(t,n){1&t&&(g(0,"a",0),g(1,"div",1),U(2,"i",2),F(3,VZ,2,1,"span",3),m(),m(),U(4,"ftdna-add-to-cart-handler",4)),2&t&&(H("href",n.cartRelativeUrl,T),y(3),D("ngIf",n.cartInfo&&n.cartInfo.productsCount),y(1),D("cartId",n.cartId)("cartKitId",n.cartKitId))},directives:[Dt,LZ],encapsulation:2}),e}();function GZ(e,i){if(1&e){var t=lt();g(0,"div",2),g(1,"div",3),g(2,"mat-icon"),M(3,"warning"),m(),g(4,"div",4),g(5,"div",5),M(6,"You have Limited Access Permission"),m(),g(7,"div",6),M(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 "),g(9,"a",7),M(10,"Learning Center."),m(),m(),m(),m(),g(11,"button",8),q("click",function(){return Pe(t),O().toggleLimitedAccessPopup(!1)}),M(12,"Got it"),m(),m()}}var UZ=function(){function e(){}return e.prototype.toggleLimitedAccessPopup=function(i){this.showLimitedAccessPopup=i||!this.showLimitedAccessPopup},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=te({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(t,n){1&t&&(g(0,"div",0),q("click",function(){return n.toggleLimitedAccessPopup()}),M(1,"LIMITED ACCESS"),m(),F(2,GZ,13,0,"div",1)),2&t&&(y(2),D("ngIf",n.showLimitedAccessPopup))},directives:[Dt,ry,pa],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;white-space:initial}.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:normal}.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}(),nI=function(){function e(i){this.httpClient=i,this.options={withCredentials:!0}}return e.prototype.getNotifications=function(i,t){var n="//"+i+"/api/notification-feed/notifications?ekit="+encodeURIComponent(t);return this.httpClient.get(n,this.options)},e.prototype.markAllRead=function(i,t){var n="//"+i+"/api/notification-feed/all/mark-read?ekit="+encodeURIComponent(t);return this.httpClient.post(n,{},this.options)},e.\u0275prov=G({token:e,factory:e.\u0275fac=function(t){return new(t||e)(x(kr))}}),e}(),jZ=[nI];function zZ(e,i){if(1&e&&(g(0,"span",6),M(1),Ha(2,"async"),m()),2&e){var n,t=O();y(1),Ge(null==(n=Ga(2,1,t.notifications$))?null:n.length)}}function WZ(e,i){if(1&e){var t=lt();g(0,"a",1),q("click",function(){return Pe(t),O(2).markAllNotificationsRead()}),M(1,"Mark all read"),m()}}function YZ(e,i){if(1&e&&(g(0,"div",13),g(1,"a",14),U(2,"span"),g(3,"div"),U(4,"span",15),g(5,"span",16),M(6),m(),m(),m(),m()),2&e){var t=i.$implicit;y(1),H("href",t.navigateUrl,T),y(1),Qc("badge ",t.source,""),y(2),D("innerHtml",t.content,BC),y(2),Ge(t.age)}}function qZ(e,i){1&e&&(g(0,"div",17),g(1,"a"),g(2,"div"),g(3,"span",18),M(4,"There are no notifications."),m(),m(),m(),m())}function QZ(e,i){if(1&e&&(g(0,"div",7),g(1,"div",8),g(2,"span"),M(3,"NOTIFICATIONS"),m(),F(4,WZ,2,0,"a",9),Ha(5,"async"),m(),g(6,"div",10),F(7,YZ,7,6,"div",11),Ha(8,"async"),F(9,qZ,5,0,"div",12),Ha(10,"async"),m(),m()),2&e){var n,r,t=O();y(4),D("ngIf",null==(n=Ga(5,3,t.notifications$))?null:n.length),y(3),D("ngForOf",Ga(8,5,t.notifications$)),y(2),D("ngIf",0===(null==(r=Ga(10,7,t.notifications$))?null:r.length))}}var KZ=function(){function e(i,t){this.elem=i,this.service=t,this.isNotificationsVisible=!1,this.notifications$=pt([])}return e.prototype.onClickOutside=function(i){this.elem.nativeElement.contains(i.target)||(this.isNotificationsVisible=!1)},e.prototype.ngOnChanges=function(i){var t=i.model;t&&!this.isEmptyObject(t.currentValue)&&this.getNotifications()},e.prototype.markAllNotificationsRead=function(){var i=this;this.service.markAllRead(this.model.wwwUrl,this.model.kitEncrypted).subscribe(function(t){i.isNotificationsVisible=!1,i.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(i){for(var t in i)if(i.hasOwnProperty(t))return!1;return!0},e.\u0275fac=function(t){return new(t||e)(v(P),v(nI))},e.\u0275cmp=te({type:e,selectors:[["app-header-notifications"]],hostBindings:function(t,n){1&t&&q("click",function(a){return n.onClickOutside(a)},!1,YC)},inputs:{model:"model"},features:[xe],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(t,n){var r;(1&t&&(g(0,"div",0),g(1,"a",1),q("click",function(){return n.toggleNotifications()}),g(2,"div",2),U(3,"i",3),F(4,zZ,3,3,"span",4),Ha(5,"async"),m(),m(),F(6,QZ,11,9,"div",5),m()),2&t)&&(y(4),D("ngIf",null==(r=Ga(5,2,n.notifications$))?null:r.length),y(2),D("ngIf",n.isNotificationsVisible))},directives:[Dt,Cr],pipes:[Gm],encapsulation:2}),e}();function $Z(e,i){if(1&e&&(g(0,"ul",1),g(1,"li",2),U(2,"app-header-shopping-cart",3),m(),g(3,"li",4),g(4,"a",5),M(5,"Sign In"),m(),m(),g(6,"li",6),g(7,"a"),M(8,"Help"),m(),g(9,"ul"),g(10,"li"),g(11,"a",7),U(12,"i",8),M(13,"Help Center "),m(),m(),g(14,"li"),g(15,"a",7),U(16,"i",9),M(17,"Contact Us "),m(),m(),m(),m(),m()),2&e){var t=O();y(2),D("cartUrl",t.urls.cartUrl),y(2),H("href",t.urls.signInUrl,T),y(7),H("href",t.urls.helpCenterUrl,T),y(4),H("href",t.urls.contactUrl,T)}}function XZ(e,i){if(1&e&&(g(0,"li",14),g(1,"a",15),M(2,"Add Ons & Upgrades"),m(),m()),2&e){var t=O(2);y(1),H("href",t.urls.upgradesUrl,T)}}function JZ(e,i){1&e&&(g(0,"li",16),U(1,"app-limited-access"),m())}function ZZ(e,i){if(1&e&&(g(0,"li",16),U(1,"app-header-notifications",17),m()),2&e){var t=O(2);y(1),D("model",t.model)}}function eee(e,i){if(1&e&&(g(0,"li",2),U(1,"app-header-shopping-cart",3),m()),2&e){var t=O(2);y(1),D("cartUrl",t.urls.cartUrl)}}function tee(e,i){1&e&&U(0,"img",30),2&e&&D("src",O(3).model.profilePictureLocation,T)}function nee(e,i){if(1&e){var t=lt();g(0,"li",18),g(1,"a"),g(2,"div",19),g(3,"div",20),F(4,tee,1,1,"img",21),m(),g(5,"div",22),g(6,"div",23),M(7),m(),g(8,"div",24),M(9," Kit No. "),g(10,"div"),M(11),m(),m(),m(),U(12,"i",25),m(),m(),g(13,"ul"),g(14,"li"),g(15,"a",7),U(16,"i",26),M(17,"Account Settings "),m(),m(),g(18,"li"),g(19,"a",7),U(20,"i",27),M(21,"Order History "),m(),m(),g(22,"li"),g(23,"a",7),U(24,"i",8),M(25,"Help Center "),m(),m(),g(26,"li"),g(27,"a",28),q("click",function(){return Pe(t),O(2).signOut.emit()}),U(28,"i",29),M(29,"Sign Out "),m(),m(),m(),m()}if(2&e){var n=O(2);y(4),D("ngIf",n.model.profilePictureLocation),y(3),Ge(n.model.kitName),y(4),Ge(n.model.kitNum),y(4),H("href",n.urls.accountSettingsUrl,T),y(4),H("href",n.urls.orderHistoryUrl,T),y(4),H("href",n.urls.helpCenterUrl,T)}}function iee(e,i){if(1&e){var t=lt();g(0,"li",18),g(1,"a"),g(2,"div",19),g(3,"div",22),g(4,"div",23),M(5),m(),g(6,"div",24),M(7," User: "),g(8,"div"),M(9),m(),m(),m(),U(10,"i",25),m(),m(),g(11,"ul",31),g(12,"li"),g(13,"a",7),U(14,"i",32),M(15,"Add Projects"),m(),m(),g(16,"li"),g(17,"a",7),U(18,"i",33),M(19,"Change Password"),m(),m(),g(20,"li"),g(21,"a",7),U(22,"i",34),M(23,"Contact Information"),m(),m(),g(24,"li",35),g(25,"a",7),U(26,"i",26),M(27,"My Settings"),m(),m(),g(28,"li"),g(29,"a",28),q("click",function(){return Pe(t),O(2).signOut.emit()}),U(30,"i",29),M(31,"Sign Out"),m(),m(),m(),m()}if(2&e){var n=O(2);y(5),Ge(n.model.kitName),y(4),Ge(n.model.kitNum),y(4),Ce("href","//",n.urls.gapAddProjectsUrl,"",T),y(4),Ce("href","//",n.urls.gapChangePasswordUrl,"",T),y(4),Ce("href","//",n.urls.gapContactInformationUrl,"",T),y(4),Ce("href","//",n.urls.gapMySettingsUrl,"",T)}}function ree(e,i){if(1&e&&(g(0,"ul",1),F(1,XZ,3,1,"li",10),F(2,JZ,2,0,"li",11),F(3,ZZ,2,1,"li",11),F(4,eee,2,1,"li",12),F(5,nee,30,6,"li",13),F(6,iee,32,6,"li",13),m()),2&e){var t=O();y(1),D("ngIf",t.isFullAccess),y(1),D("ngIf",!t.isFullAccess&&!t.isGapPage&&!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",t.isFullAccess&&!t.isNonImpersonateGapMode),y(1),D("ngIf",t.model.hasMyFTDNA||!t.isGapMode),y(1),D("ngIf",t.isGapMode&&!t.model.hasMyFTDNA)}}var aee=function(){function e(){this.signOut=new j}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=te({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(t,n){1&t&&(g(0,"div"),F(1,$Z,18,4,"ul",0),F(2,ree,7,6,"ul",0),m()),2&t&&(y(1),D("ngIf",!n.isLoggedIn),y(1),D("ngIf",n.isLoggedIn))},directives:[Dt,HZ,z_,UZ,KZ],styles:[".condensed[_ngcontent-%COMP%]{z-index:100}"]}),e}();function oee(e,i){if(1&e&&(g(0,"ul",10),g(1,"li"),g(2,"span"),M(3,"DNA Tests"),m(),g(4,"ul"),g(5,"li"),g(6,"a",11),M(7,"Family Finder\u2122"),m(),m(),g(8,"li"),g(9,"a",11),M(10,"All Y-DNA Tests"),m(),m(),g(11,"li"),g(12,"a",11),M(13,"Big Y-700"),m(),m(),g(14,"li"),g(15,"a",11),M(16,"mtDNA"),m(),m(),m(),m(),g(17,"li"),g(18,"span"),M(19,"DNA Upload"),m(),g(20,"ul"),g(21,"li"),g(22,"a",11),M(23,"Autosomal DNA"),m(),m(),m(),m(),g(24,"li"),g(25,"span"),g(26,"a",11),M(27,"Group Projects"),m(),m(),m(),g(28,"li"),g(29,"span"),g(30,"a",11),M(31,"Shop"),m(),m(),m(),g(32,"li"),g(33,"span"),M(34,"HELP"),m(),g(35,"ul"),g(36,"li"),g(37,"a",11),M(38,"Help Center"),m(),m(),g(39,"li"),g(40,"a",11),M(41,"Contact Us"),m(),m(),m(),m(),m()),2&e){var t=O();y(6),H("href",t.urls.productsFamilyFinderUrl,T),y(3),H("href",t.urls.productsYDnaUrl,T),y(3),H("href",t.urls.productsBigYUrl,T),y(3),H("href",t.urls.productsMtDnaUrl,T),y(7),H("href",t.urls.autosomalTransferUrl,T),y(4),H("href",t.urls.groupProjectUrl,T),y(4),H("href",t.urls.productsUrl,T),y(7),H("href",t.urls.helpCenterUrl,T),y(3),H("href",t.urls.contactUrl,T)}}function see(e,i){1&e&&U(0,"img",21),2&e&&D("src",O(2).model.profilePictureLocation,T)}function lee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"myOrigins"),g(3,"sup"),M(4,"\xae"),m(),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.myOriginsUrl,T)}}function uee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"ancientOrigins"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ancientOriginsUrl,T)}}function cee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Chromosome Browser"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.chromosomeBrowserUrl,T)}}function dee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Chromosome Painter"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.chromosomePaintingUrl,T)}}function fee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Download Raw Data"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.downloadRawDataUrl,T)}}function hee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Autosomal DNA"),m(),g(3,"ul"),g(4,"li"),g(5,"a",11),M(6,"Matches"),m(),m(),F(7,lee,5,1,"li",19),F(8,uee,3,1,"li",19),F(9,cee,3,1,"li",19),F(10,dee,3,1,"li",19),g(11,"li"),g(12,"a",11),M(13,"Matrix"),m(),m(),g(14,"li"),g(15,"a",11),M(16,"Advanced Matches"),m(),m(),F(17,fee,3,1,"li",19),m(),m()),2&e){var t=O(2);y(5),H("href",t.urls.familyFinderUrl,T),y(2),D("ngIf",t.model.hasPopFinder||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.hasAncientOrigins||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.hasChromosomeBrowser||t.model.isFreeAutosomalTransfer),y(1),D("ngIf",t.model.chromosomePaintingEnabled),y(2),H("href",t.urls.matrixUrl,T),y(3),H("href",t.urls.advancedMatchesUrl,T),y(2),D("ngIf",!t.model.isFreeAutosomalTransfer)}}function pee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"mtDNA Journey"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.mtdnaJourneyUrl,T)}}function gee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"mtDNA"),m(),g(3,"ul"),g(4,"li"),g(5,"a",11),M(6,"Matches"),m(),m(),g(7,"li"),g(8,"a",11),M(9,"Mutations"),m(),m(),g(10,"li"),g(11,"a",11),M(12,"Migration Maps"),m(),m(),g(13,"li"),g(14,"a",11),M(15,"Ancestral Origins"),m(),m(),g(16,"li"),g(17,"a",11),M(18,"Haplogroup Origins"),m(),m(),g(19,"li"),g(20,"a",11),M(21,"Matches Maps"),m(),m(),F(22,pee,3,1,"li",19),m(),m()),2&e){var t=O(2);y(5),H("href",t.urls.mtdnaMatchesUrl,T),y(3),H("href",t.urls.mtdnaMutationsUrl,T),y(3),H("href",t.urls.mtdnaMigrationMapsUrl,T),y(3),H("href",t.urls.mtdnaAncestralOriginsUrl,T),y(3),H("href",t.urls.mtdnaHaplogroupOriginsUrl,T),y(3),H("href",t.urls.matchesMapUrl,T),y(2),D("ngIf",t.hasMtdnaFms)}}function mee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Matches"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaMatchesUrl,T)}}function vee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Haplotree & SNPs"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaHaplotreeSnpsUrl,T)}}function _ee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Migration Maps"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaMigrationMapsUrl,T)}}function yee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Y-STR Results"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaResultsUrl,T)}}function bee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Ancestral Origins"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaAncestralOriginsUrl,T)}}function Cee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Haplogroup Origins"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaHaplogroupOriginsUrl,T)}}function kee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"SNP Map"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaSnpMapUrl,T)}}function wee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Matches Maps"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.matchesMapUrl,T)}}function Mee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Y-DNA"),m(),g(3,"ul"),F(4,mee,3,1,"li",19),F(5,vee,3,1,"li",19),g(6,"li"),g(7,"a",11),M(8,"Discover\u2122 Haplogroup Reports"),m(),m(),F(9,_ee,3,1,"li",19),F(10,yee,3,1,"li",19),F(11,bee,3,1,"li",19),F(12,Cee,3,1,"li",19),F(13,kee,3,1,"li",19),F(14,wee,3,1,"li",19),m(),m()),2&e){var t=O(2);y(4),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.showYdnaHaplotreeLink),y(2),H("href",t.urls.discoverUrl,T),y(2),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults),y(1),D("ngIf",t.model.hasYResults)}}function See(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"BIG Y"),m(),g(3,"ul"),g(4,"li"),g(5,"a",11),M(6,"Matches"),m(),m(),g(7,"li"),g(8,"a",11),M(9,"Results"),m(),m(),g(10,"li"),g(11,"a",11),M(12,"Y-STR Results"),m(),m(),g(13,"li"),g(14,"a",11),M(15,"Discover\u2122 Globetrekker"),m(),m(),m(),m()),2&e){var t=O(2);y(5),H("href",t.urls.bigYMatchesUrl,T),y(3),H("href",t.urls.bigYResultsUrl,T),y(3),H("href",t.urls.bigYStrResultsUrl,T),y(3),H("href",t.urls.globetrekkerUrl,T)}}function Dee(e,i){1&e&&(g(0,"a",24),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function Eee(e,i){1&e&&(g(0,"a",24),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function Aee(e,i){1&e&&(g(0,"a",25),M(1,"Family Tree"),m()),2&e&&H("href",O(3).urls.familyTreeUrl,T)}function xee(e,i){if(1&e&&(g(0,"li"),F(1,Dee,2,1,"a",22),F(2,Eee,2,1,"a",22),F(3,Aee,2,1,"a",23),m()),2&e){var t=O(2);y(1),D("ngIf",!t.model.usingMHTreeUrl),y(1),D("ngIf",t.model.usingMHTreeUrl&&t.urls.familyTreeUrl.indexOf("/moved-family-tree")<0),y(1),D("ngIf",t.model.usingMHTreeUrl&&t.urls.familyTreeUrl.indexOf("/moved-family-tree")>=0)}}function Tee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Other Autosomal Results"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.otherAutosomalResultsUrl,T)}}function Iee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Factoids"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.factoidsUrl,T)}}function Ree(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Y-DNA Advanced"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.ydnaAdvancedMarkersUrl,T)}}function Oee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"X-STR"),m(),m()),2&e){var t=O(3);y(1),H("href",t.urls.xStrUrl,T)}}function Fee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Other Results"),m(),g(3,"ul"),F(4,Tee,3,1,"li",19),F(5,Iee,3,1,"li",19),F(6,Ree,3,1,"li",19),F(7,Oee,3,1,"li",19),m(),m()),2&e){var t=O(2);y(4),D("ngIf",t.model.hasOtherAutosomalResults),y(1),D("ngIf",t.model.hasFactoids),y(1),D("ngIf",t.model.hasAdvancedYSTR),y(1),D("ngIf",t.model.hasXSTR)}}function Pee(e,i){if(1&e&&(g(0,"ul",12),g(1,"li"),g(2,"div",13),g(3,"div",14),F(4,see,1,1,"img",15),m(),g(5,"div",16),g(6,"div",17),M(7),m(),g(8,"div",18),M(9," Kit No. "),g(10,"div"),M(11),m(),m(),m(),m(),m(),g(12,"li"),g(13,"a",11),M(14,"Home"),m(),m(),F(15,hee,18,8,"li",19),F(16,gee,23,7,"li",19),F(17,Mee,15,9,"li",19),F(18,See,16,4,"li",19),F(19,xee,4,3,"li",19),g(20,"li"),g(21,"a",20),M(22,"Group Projects"),m(),g(23,"ul"),g(24,"li"),g(25,"a",11),M(26,"Join A Project"),m(),m(),g(27,"li"),g(28,"a",11),M(29,"Manage Group Projects"),m(),m(),g(30,"li"),g(31,"a",11),M(32,"Learn More"),m(),m(),m(),m(),F(33,Fee,8,4,"li",19),m()),2&e){var t=O();y(4),D("ngIf",t.model.profilePictureLocation),y(3),Ge(t.model.kitName),y(4),Ge(t.model.kitNum),y(2),H("href",t.urls.dashboardUrl,T),y(2),D("ngIf",t.model.hasFF),y(1),D("ngIf",t.model.hasMtResults),y(1),D("ngIf",t.model.hasYResults||t.model.hasFFOrGenoTransferAndYHaploGroup&&t.model.isMale),y(1),D("ngIf",t.model.hasBigY),y(1),D("ngIf",!t.model.isLawEnforcement),y(6),H("href",t.urls.joinProjectUrl,T),y(3),H("href",t.urls.manageProjectsUrl,T),y(3),H("href",t.urls.projectsHomeUrl,T),y(2),D("ngIf",t.model.hasFactoids||t.model.hasOtherAutosomalResults||t.model.hasAdvancedYSTR||t.model.hasXSTR)}}function Nee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Home"),m(),m()),2&e){var t=O(2);y(1),H("href",t.urls.homeUrl,T)}}function Lee(e,i){if(1&e&&(g(0,"li"),g(1,"a",11),M(2,"Home"),m(),m()),2&e){var t=O(2);y(1),H("href","//"+t.model.gapUrl,T)}}function Bee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Member Reports"),m(),g(3,"ul",26),g(4,"li"),g(5,"a",11),M(6,"Country of Origin Charts"),m(),m(),g(7,"li"),g(8,"a",11),M(9,"Maternal Ancestry"),m(),m(),g(10,"li"),g(11,"a",11),M(12,"Member Distribution Map"),m(),m(),g(13,"li"),g(14,"a",11),M(15,"Member Information"),m(),m(),g(16,"li"),g(17,"a",11),M(18,"Member Notes"),m(),m(),g(19,"li"),g(20,"a",11),M(21,"Order Summary"),m(),m(),g(22,"li"),g(23,"a",11),M(24,"Paternal Ancestry"),m(),m(),g(25,"li"),g(26,"a",11),M(27,"Pending Lab Results"),m(),m(),g(28,"li"),g(29,"a",11),M(30,"Pending Shipment To Lab"),m(),m(),g(31,"li"),g(32,"a",11),M(33,"Project Joins"),m(),m(),g(34,"li"),g(35,"a",11),M(36,"Project Statistics"),m(),m(),g(37,"li"),g(38,"a",11),M(39,"Received Lab Results"),m(),m(),g(40,"li"),g(41,"a",11),M(42,"Unreceived Kits"),m(),m(),m(),m()),2&e){var t=O(2);y(5),Ce("href","//",t.model.gapUrl,"/country-of-origin-charts.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/maternal-ancestry.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/distribution-map_v2.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/member-information.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/member-notes.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/order-summary.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/paternal-ancestry.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/pending-lab-results.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/pending-shipment-to-lab.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/project-joins.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/project-statistics.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/received-lab-results.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/unreceived-kits.aspx",T)}}function Vee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Genetic Reports"),m(),g(3,"ul",26),g(4,"li"),g(5,"a",11),M(6,"Family Finder\u2122 Group Matrix"),m(),m(),g(7,"li"),g(8,"a",11),M(9,"Family Finder\u2122 Group Report"),m(),m(),g(10,"li"),g(11,"a",11),M(12,"Haplogroup Charts"),m(),m(),g(13,"li"),g(14,"a",11),M(15,"mtDNA Results Classic"),m(),m(),g(16,"li"),g(17,"a",11),M(18,"mtDNA Results"),m(),m(),g(19,"li"),g(20,"a",11),M(21,"Y-DNA Genetic Distance"),m(),m(),g(22,"li"),g(23,"a",11),M(24,"Y-DNA TiP"),m(),m(),g(25,"li"),g(26,"a",11),M(27,"Y-DNA Results Overview"),m(),m(),g(28,"li"),g(29,"a",11),M(30,"Y-DNA Haplogroups"),m(),m(),g(31,"li"),g(32,"a",11),M(33,"Y-DNA Unique Haplotypes"),m(),m(),m(),m()),2&e){var t=O(2);y(5),Ce("href","//",t.model.gapUrl,"/family-finder-matrix-omniexpress.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/family-finder-results-omniexpress.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/haplogroup-charts.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/mtdna-results-classic.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/mtdna-results.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/genetic-distance-report.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/gap-tip-report",T),y(3),Ce("href","//",t.model.gapUrl,"/ydna-results-overview.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/ydna-snp-report.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/unique-haplotypes.aspx",T)}}function Hee(e,i){if(1&e&&(g(0,"li"),g(1,"a",20),M(2,"Project Admin"),m(),g(3,"ul",26),g(4,"li"),g(5,"a",27),M(6,"Activity Feed"),m(),m(),g(7,"li"),g(8,"a",11),M(9,"Activity Log"),m(),m(),g(10,"li"),g(11,"a",11),M(12,"Bulk Email"),m(),m(),g(13,"li"),g(14,"a",11),M(15,"Download Files"),m(),m(),g(16,"li"),g(17,"a",11),M(18,"General Fund"),m(),m(),g(19,"li"),g(20,"a",11),M(21,"General Fund Charts"),m(),m(),g(22,"li"),g(23,"a",11),M(24,"Join Authorization"),m(),m(),g(25,"li"),g(26,"a",11),M(27,"Member Subgrouping"),m(),m(),g(28,"li"),g(29,"a",28),M(30,"New Member Order"),m(),m(),g(31,"li"),g(32,"a",11),M(33,"Price Comparison"),m(),m(),g(34,"li"),g(35,"a",11),M(36,"Project Administrators"),m(),m(),g(37,"li"),g(38,"a",11),M(39,"Project Profile"),m(),m(),g(40,"li"),g(41,"a",11),M(42,"Public Results Display Settings"),m(),m(),g(43,"li"),g(44,"a",11),M(45,"Public Website"),m(),m(),g(46,"li"),g(47,"a",29),M(48,"Unpaid Products"),m(),m(),g(49,"li"),g(50,"a",11),M(51,"Welcome Email"),m(),m(),m(),m()),2&e){var t=O(2);y(8),Ce("href","//",t.model.gapUrl,"/notes.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/bulk-email.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/download-files.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/general-fund.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/general-fund-chart.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/join-authorization.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/member-subgrouping",T),y(6),Ce("href","//",t.model.gapUrl,"/price-comparison.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/project-administrators.aspx",T),y(3),Fe("href","//",t.model.gapUrl,"/project-profile",t.authQs,"",T),y(3),Ce("href","//",t.model.gapUrl,"/public-display-setting.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/public-website.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/member-unpaid-products.aspx",T),y(3),Ce("href","//",t.model.gapUrl,"/welcome-email.aspx",T)}}function Gee(e,i){1&e&&(g(0,"li"),g(1,"a",20),M(2,"Resources"),m(),g(3,"ul",26),g(4,"li"),g(5,"a",30),M(6,"Terms & Policies"),m(),m(),g(7,"li"),g(8,"a",31),M(9,"Administrator Quick Start Guide"),m(),m(),g(10,"li"),g(11,"a",32),M(12,"Help Center Administrator Resources"),m(),m(),g(13,"li"),g(14,"a",33),M(15,"Project Admins Media Library"),m(),m(),g(16,"li"),g(17,"a",34),M(18,"Papers and Presentations"),m(),m(),g(19,"li"),g(20,"a",35),M(21,"Forums"),m(),m(),g(22,"li"),g(23,"a",36),M(24,"FamilyTreeDNA Blog"),m(),m(),m(),m())}function Uee(e,i){if(1&e&&(g(0,"ul",12),g(1,"li"),g(2,"div",13),g(3,"div",16),g(4,"div",17),M(5),m(),g(6,"div",18),M(7," User: "),g(8,"div"),M(9),m(),m(),m(),m(),m(),F(10,Nee,3,1,"li",19),F(11,Lee,3,1,"li",19),F(12,Bee,43,13,"li",19),F(13,Vee,34,10,"li",19),F(14,Hee,52,15,"li",19),F(15,Gee,25,0,"li",19),m()),2&e){var t=O();y(5),Ge(t.model.kitName),y(4),Ge(t.model.kitNum),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode),y(1),D("ngIf",!t.isNonImpersonateGapMode)}}function jee(e,i){1&e&&(g(0,"a",37),M(1,"Add Ons & Upgrades"),m()),2&e&&H("href",O().urls.upgradesUrl,T)}function zee(e,i){1&e&&(g(0,"a",37),M(1,"Sign In"),m()),2&e&&H("href",O().urls.signInUrl,T)}function Wee(e,i){if(1&e){var t=lt();g(0,"ul",38),g(1,"li"),g(2,"a",11),U(3,"i",39),M(4,"Account Settings "),m(),m(),g(5,"li"),g(6,"a",11),U(7,"i",40),M(8,"Order History "),m(),m(),g(9,"li"),g(10,"a",11),U(11,"i",41),M(12,"Help Center "),m(),m(),g(13,"li"),g(14,"a",42),q("click",function(){return Pe(t),O().signOut.emit()}),U(15,"i",43),M(16,"Sign Out "),m(),m(),m()}if(2&e){var n=O();y(2),H("href",n.urls.accountSettingsUrl,T),y(4),H("href",n.urls.orderHistoryUrl,T),y(4),H("href",n.urls.helpCenterUrl,T)}}function Yee(e,i){if(1&e){var t=lt();g(0,"ul",38),g(1,"li"),g(2,"a",11),U(3,"i",44),M(4,"Add Projects"),m(),m(),g(5,"li"),g(6,"a",11),U(7,"i",45),M(8,"Change Password"),m(),m(),g(9,"li"),g(10,"a",11),U(11,"i",46),M(12,"Contact Information"),m(),m(),g(13,"li"),g(14,"a",11),U(15,"i",39),M(16,"My Settings"),m(),m(),g(17,"li"),g(18,"a",42),q("click",function(){return Pe(t),O().signOut.emit()}),U(19,"i",43),M(20,"Sign Out"),m(),m(),m()}if(2&e){var n=O();y(2),Ce("href","//",n.model.gapUrl,"/add-projects.aspx",T),y(4),Ce("href","//",n.model.gapUrl,"/change-password.aspx",T),y(4),Ce("href","//",n.model.gapUrl,"/contact-information.aspx",T),y(4),Ce("href","//",n.model.gapUrl,"/my-settings.aspx",T)}}var qee=function(){function e(){this.signOut=new j}return e.prototype.ngOnInit=function(){this.model={}},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=te({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",4,"ngIf"],["target","_self",3,"href",4,"ngIf"],["target","_blank",3,"href"],["target","_self",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"],["href","https://help.familytreedna.com/hc/en-us/articles/4503232822287","target","_blank"],["href","https://help.familytreedna.com/hc/en-us/articles/6168057403407-Administrator-Quick-Start-Guide-","target","_blank"],["href","https://help.familytreedna.com/hc/en-us/sections/5909201090575","target","_blank"],["href","https://airtable.com/app0rnuXIq0g8l9t4/shrz5vOPLqPpapb4T/tblVgFV6Rz5HyYqfc","target","_blank"],["href","https://gap.familytreedna.com/papers-and-presentations.aspx","target","_blank"],["href","https://forums.familytreedna.com/","target","_blank"],["href","https://blog.familytreedna.com/","target","_blank"],["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(t,n){1&t&&(g(0,"div",0),U(1,"input",1),U(2,"span",2),U(3,"span",2),U(4,"span",2),g(5,"div",3),g(6,"div",4),F(7,oee,42,9,"ul",5),F(8,Pee,34,13,"ul",6),F(9,Uee,16,8,"ul",6),U(10,"div",7),F(11,jee,2,1,"a",8),F(12,zee,2,1,"a",8),F(13,Wee,17,3,"ul",9),F(14,Yee,21,4,"ul",9),m(),m(),m()),2&t&&(y(7),D("ngIf",!n.isLoggedIn||n.isLoggedIn&&!n.hasMyFtdna&&!n.isGapPage&&!n.isNonImpersonateGapMode),y(1),D("ngIf",n.hasMyFtdna),y(1),D("ngIf",n.isGapMode),y(2),D("ngIf",n.isLoggedIn&&n.isFullAccess&&!n.isNonImpersonateGapMode),y(1),D("ngIf",!n.isLoggedIn),y(1),D("ngIf",n.isLoggedIn&&!n.isGapMode),y(1),D("ngIf",n.isGapMode))},directives:[Dt,z_],encapsulation:2}),e}();function Qee(e,i){if(1&e&&(g(0,"mat-option",4),M(1),m()),2&e){var t=i.$implicit;H("value",t.shortName),y(1),Ge(t.groupName)}}var Kee=function(){function e(){this.projectChange=new j}return e.prototype.changeProject=function(i){this.projectChange.emit(i.value)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=te({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(t,n){1&t&&(g(0,"div",0),g(1,"mat-form-field",1),g(2,"mat-label"),M(3,"Project"),m(),g(4,"mat-select",2),q("valueChange",function(a){return n.selectedProject=a})("selectionChange",function(a){return n.changeProject(a)}),F(5,Qee,2,2,"mat-option",3),m(),m(),m()),2&t&&(y(4),D("value",n.selectedProject),y(1),D("ngForOf",n.projects))},directives:[WA,h_,cT,Cr,Mf],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 $ee(e,i){if(1&e){var t=lt();g(0,"app-gap-project",9),q("projectChange",function(a){return Pe(t),O().onChangeProject(a)}),m()}if(2&e){var n=O();D("projects",n.gapProjects)("selectedProject",n.model.bcgGroup)}}var Xee=function(){function e(i,t){this.headerService=i,this.impersonate=t,this.model={},this.urls={},this.gapProjects=[],this.showProjectsList=!1,this.initGlobalEventListener(),this.initGapGlobalEventListener()}return e.prototype.ngOnInit=function(){var i=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){i.gapProjects=t})},e.prototype.initGlobalEventListener=function(){var i=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){i.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 i=this;this.headerService.init(this.authQs).subscribe(function(t){i.model=t;var n=0===i.model.homeUrl.indexOf("//")?i.model.homeUrl:"//"+i.model.homeUrl;i.urls.homeUrl=i.getImpersonateUrlSafely(n),i.urls.accountSettingsUrl=i.getImpersonateUrlSafely("/my/account-information"),i.urls.activityFeedUrl=i.getImpersonateUrlSafely(i.model.wwwUrl+"/groups/"+i.model.groupPageUrl),i.urls.advancedMatchesUrl=i.getImpersonateUrlSafely("/my/advanced-matches"),i.urls.ancientOriginsUrl=i.getImpersonateUrlSafely("/my/ancient-origins"),i.urls.autosomalTransferUrl=i.getImpersonateUrlSafely("/autosomal-transfer"),i.urls.bigYBlockTreeUrl=i.getImpersonateUrlSafely("/my/bigy-blocktree"),i.urls.bigYMatchesUrl=i.getImpersonateUrlSafely("/my/big-y#matches"),i.urls.bigYResultsUrl=i.getImpersonateUrlSafely("/my/big-y"),i.urls.bigYStrResultsUrl=i.getImpersonateUrlSafely("/my/y-dna-dys"),i.urls.cartUrl=i.getImpersonateUrlSafely(i.model.cartUrl),i.urls.chromosomeBrowserUrl=i.getImpersonateUrlSafely("/my/family-finder/chromosome-browser"),i.urls.contactUrl=i.getImpersonateUrlSafely("/contact"),i.urls.dashboardUrl=i.getImpersonateUrlSafely("/my"),i.urls.discoverUrl=i.getImpersonateUrlSafely(i.model.discoverUrl),i.urls.globetrekkerUrl=i.getImpersonateUrlSafely(i.model.globetrekkerUrl),i.urls.downloadRawDataUrl=i.getImpersonateUrlSafely("/my/family-finder-downloads"),i.urls.factoidsUrl=i.getImpersonateUrlSafely("/my/factoids"),i.urls.familyFinderUrl=i.getImpersonateUrlSafely("/my/familyfinder/matches"),i.model.familyTreeUrl&&(i.urls.familyTreeUrl=i.getImpersonateUrlSafely(i.model.usingMHTreeUrl?i.model.familyTreeUrl:i.model.familyTreeUrl+localStorage.getItem("showMyHeritageIntegrationDialog"))),i.urls.gapAddProjectsUrl=i.getImpersonateUrlSafely(i.model.gapUrl+"/add-projects.aspx"),i.urls.gapChangePasswordUrl=i.getImpersonateUrlSafely(i.model.gapUrl+"/change-password.aspx"),i.urls.gapContactInformationUrl=i.getImpersonateUrlSafely(i.model.gapUrl+"/contact-information.aspx"),i.urls.gapMySettingsUrl=i.getImpersonateUrlSafely(i.model.gapUrl+"/my-settings.aspx"),i.urls.groupProjectUrl=i.getImpersonateUrlSafely("/group-project"),i.urls.joinProjectUrl=i.getImpersonateUrlSafely("/my/group-join.aspx"),i.urls.helpCenterUrl="https://help.familytreedna.com/hc/en-us",i.urls.otherAutosomalResultsUrl=i.getImpersonateUrlSafely("/my/autosomal-results"),i.urls.manageProjectsUrl=i.getImpersonateUrlSafely("/my/project-preferences"),i.urls.matrixUrl=i.getImpersonateUrlSafely("/my/family-finder/matrix"),i.urls.mtdnaAncestralOriginsUrl=i.getImpersonateUrlSafely("/my/mtdna-ancestral-origins"),i.urls.mtdnaHaplogroupOriginsUrl=i.getImpersonateUrlSafely("/my/mtdna-haplogroup-origins"),i.urls.mtdnaJourneyUrl=i.getImpersonateUrlSafely("/my/mtdna-journey"),i.urls.mtdnaMatchesMapUrl=i.getImpersonateUrlSafely("/my/matches-map?dt=hvr1"),i.urls.mtdnaMatchesUrl=i.getImpersonateUrlSafely("/my/mtdna-matches"),i.urls.mtdnaMigrationMapsUrl=i.getImpersonateUrlSafely("/my/mtdna-migration-map"),i.urls.mtdnaMutationsUrl=i.getImpersonateUrlSafely("/my/mtdna-results"),i.urls.myOriginsUrl=i.getImpersonateUrlSafely("/my/my-origins"),i.urls.newMemberOrderUrl=i.getImpersonateUrlSafely(i.model.wwwUrl+"/cart?Group="+i.model.bcgGroup),i.urls.orderHistoryUrl=i.getImpersonateUrlSafely("/my/order-history"),i.urls.productsUrl=i.getImpersonateUrlSafely("/products"),i.urls.singleTestsProductsUrl=i.getImpersonateUrlSafely("/products/single-tests"),i.urls.bundlesProductsUrl=i.getImpersonateUrlSafely("/products/bundles"),i.urls.giftCardsUrl=i.getImpersonateUrlSafely("/products/gift-cards"),i.urls.productsFamilyFinderUrl=i.getImpersonateUrlSafely("/products/family-finder"),i.urls.productsFamilyFinderMyDnaBundleUrl=i.getImpersonateUrlSafely("/products/familyfinder-mydnawellness/"),i.urls.productsMtDnaUrl=i.getImpersonateUrlSafely("/products/mt-dna"),i.urls.productsYDnaUrl=i.getImpersonateUrlSafely("/products/y-dna"),i.urls.productsBigYUrl=i.getImpersonateUrlSafely("/products/big-y"),i.urls.projectsHomeUrl="https://help.familytreedna.com/hc/en-us/articles/4503173806351-Introduction-to-Group-Projects-",i.urls.signInUrl=i.getImpersonateUrlSafely("/sign-in"),i.urls.upgradesUrl=i.getImpersonateUrlSafely("/my/upgrades"),i.urls.wwwUrl=i.getImpersonateUrlSafely(i.model.wwwUrl),i.urls.xStrUrl=i.getImpersonateUrlSafely("/my/x-str-results"),i.urls.ydnaAdvancedMarkersUrl=i.getImpersonateUrlSafely("/my/y-dna-advanced-markers"),i.urls.ydnaAncestralOriginsUrl=i.getImpersonateUrlSafely("/my/y-dna-ancestral-origins"),i.urls.ydnaDownloadSnpsUrl=i.getImpersonateUrlSafely("/my/y-dna-haplotree/download-snps"),i.urls.ydnaHaplogroupOriginsUrl=i.getImpersonateUrlSafely("/my/y-dna-haplo-matches"),i.urls.ydnaHaplotreeSnpsUrl=i.getImpersonateUrlSafely("/my/y-dna-haplotree"),i.urls.ydnaMatchesMapUrl=i.getImpersonateUrlSafely("/my/matches-map?dt=y12"),i.urls.ydnaMatchesUrl=i.getImpersonateUrlSafely("/my/ydna/matches"),i.urls.ydnaMigrationMapsUrl=i.getImpersonateUrlSafely("/my/y-dna-migration-map"),i.urls.ydnaSnpMapUrl=i.getImpersonateUrlSafely("/my/snp-map"),i.urls.ydnaResultsUrl=i.getImpersonateUrlSafely("/my/y-dna-dys"),i.urls.chromosomePaintingUrl=i.getImpersonateUrlSafely("/my/chromosome-painting"),i.urls.ydnaGroupTimeTreeLink=i.model.ydnaGroupTimeTreeLink,i.validatePermisions(),i.urls.logoUrl=i.getLogoUrl()})},e.prototype.onChangeProject=function(i){var t=this;this.headerService.setGapProject(i).subscribe(function(n){window.dispatchEvent(window.updateGapHeaderEvent),t.initHeaderData()})},e.prototype.signOut=function(){var i=document.getElementById("logoutForm");i&&i.submit()},e.prototype.getLogoUrl=function(){var t=-1!==window.location.href.indexOf("familytreedna.com/my/")&&this.isLoggedIn?"/my/":"/";return this.isNonImpersonateGapMode&&(t="//"+this.model.gapUrl),this.impersonate.addAuthQsToUrl(t)},e.prototype.validatePermisions=function(){this.model.isFullAccess||(this.urls.upgradesUrl="",this.urls.cartUrl="")},e.prototype.getImpersonateUrlSafely=function(i){return null!==i?this.impersonate.addAuthQsToUrl(i):""},e.\u0275fac=function(t){return new(t||e)(v(uE),v(Qa))},e.\u0275cmp=te({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(t,n){1&t&&(g(0,"header",0),g(1,"nav"),g(2,"a",1),U(3,"img",2),m(),g(4,"div",3),g(5,"div"),U(6,"app-header-primary-nav",4),m(),g(7,"div",5),F(8,$ee,1,2,"app-gap-project",6),g(9,"app-header-secondary-nav",7),q("signOut",function(){return n.signOut()}),m(),g(10,"app-header-mobile-nav",8),q("signOut",function(){return n.signOut()}),m(),m(),m(),m(),m()),2&t&&(y(2),H("href",n.urls.logoUrl,T),y(4),D("authQs",n.authQs)("hasMyFtdna",n.hasMyFtdna)("isGapMode",n.isGapMode)("hasMtdnaFms",n.model.hasMtdnaFms)("isGapPage",n.isGapPage)("isLoggedIn",n.isLoggedIn)("model",n.model)("isNonImpersonateGapMode",n.isNonImpersonateGapMode)("urls",n.urls),y(2),D("ngIf",n.showProjectsList),y(1),D("isFullAccess",n.isFullAccess)("isGapMode",n.isGapMode)("isLoggedIn",n.isLoggedIn)("isGapPage",n.isGapPage)("model",n.model)("urls",n.urls)("isNonImpersonateGapMode",n.isNonImpersonateGapMode),y(1),D("authQs",n.authQs)("isFullAccess",n.isFullAccess)("hasMyFtdna",n.hasMyFtdna)("isGapMode",n.isGapMode)("isGapPage",n.isGapPage)("isLoggedIn",n.isLoggedIn)("hasMtdnaFms",n.model.hasMtdnaFms)("model",n.model)("urls",n.urls)("isNonImpersonateGapMode",n.isNonImpersonateGapMode))},directives:[fv,hv,Jj,Dt,aee,qee,Kee],styles:[".header-full-container[_ngcontent-%COMP%]{width:100%}"]}),e}(),Jee=function(){function e(i){this.elRef=i,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 n=window.location.hostname.split(".");this.isGapPage=-1!==n[0].indexOf("gap")}return e.\u0275fac=function(t){return new(t||e)(v(P))},e.\u0275cmp=te({type:e,selectors:[["header-root"]],decls:1,vars:5,consts:[[3,"hasMyFtdna","isFullAccess","isLoggedIn","isGapMode","isGapPage"]],template:function(t,n){1&t&&U(0,"app-header-root-container",0),2&t&&D("hasMyFtdna",n.hasMyFtdna)("isFullAccess",n.isFullAccess)("isLoggedIn",n.isLoggedIn)("isGapMode",n.isGapMode)("isGapPage",n.isGapPage)},directives:[Xee],encapsulation:2}),e}(),Dy=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),iI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[Zd,fe],fe]}),e}();"".concat(o_.COMPLEX," ").concat(a_.ACCELERATION_CURVE),"".concat(o_.EXITING," ").concat(a_.DECELERATION_CURVE);var rI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ca,fe,ua],fe]}),e}(),uI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[fe,ci],fe]}),e}(),hI=new V("mat-chips-default-options"),Dte={separatorKeyCodes:[13]},pI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[Ui,{provide:hI,useValue:Dte}],imports:[[fe]]}),e}(),Rte=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),_I=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe,Rte,ua]]}),e}(),bI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe],fe]}),e}(),SI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ci,fe],fe]}),e}(),DI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({}),e}(),EI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[DI,ci,fe,hu],DI,fe]}),e}(),xI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,fe],fe]}),e}(),Lne=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[$a]]}),e}(),Eh=function(){var e=h(function i(){p(this,i),this.changes=new $,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=G({factory:function(){return new e},token:e,providedIn:"root"}),e}(),aie={provide:Eh,deps:[[new Kt,new Rn,Eh]],useFactory:function(e){return e||new Eh}},LI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[aie,Ui],imports:[[fe,ht,ua,ga,Lne,Pu,ci],fe]}),e}(),BI=function(){var e=h(function i(){p(this,i)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[Dy,fe],fe]}),e}(),bie=[Cy,Dy,Gf,iI,rI,ga,uI,Uf,jf,pI,LI,Qf,Kf,Fu,_I,$f,Pu,zf,Zf,th,yf,rh,bI,ah,SI,ci,Bu,lh,xI,EI,Mh,ch,bh,kh,wh,Vu,BI],Fy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[bie,Cy,Dy,Gf,iI,rI,ga,uI,Uf,jf,pI,LI,Qf,Kf,Fu,_I,$f,Pu,zf,Zf,th,yf,rh,bI,ah,SI,ci,Bu,lh,xI,EI,Mh,ch,bh,kh,wh,Vu,BI]}),e}(),Cie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[],imports:[[ht,Fy]]}),e}(),kie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht]]}),e}();function Mie(e,i,t){if(t||2===arguments.length)for(var a,n=0,r=i.length;n<r;n++)(a||!(n in i))&&(a||(a=Array.prototype.slice.call(i,0,n)),a[n]=i[n]);return e.concat(a||Array.prototype.slice.call(i))}var Die=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:Mie([],jZ),imports:[[ht,av]]}),e}(),Eie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[pv],imports:[[ht,av,tI]]}),e}(),Aie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({imports:[[ht,Die,Eie,Fy]]}),e}(),xie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=ne({providers:[V5],imports:[[ht,KE,av,Cie,kie,Aie,Fy,nY,ov,tI,ov]]}),e}(),Tie=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ae({type:e,bootstrap:[Jee]}),e.\u0275inj=ne({providers:[],imports:[[Xm,ht,xie]]}),e}();(function(){if(zS)throw new Error("Cannot enable prod mode after platform setup.");jS=!1})(),h5().bootstrapModule(Tie).catch(function(e){return console.log(e)})}},function(js){js(js.s=2338)}]);
