text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"1hPV":function(t,e,n){"use strict";var s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),i=n("v2vP"),r=n("uzuk"),o=n("6Br6"),a=n("7oWP"),l=n("QuXn"),c=n("tpAt"),h=function(t){function e(n,s,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.empty;break;case 1:if(!n){o.destination=r.empty;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new u(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new u(o,n,s,i)}return o}return s(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,s){var i=new e(t,n,s);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(o.Subscription);e.Subscriber=h;var u=function(t){function e(e,n,s,o){var a,l=t.call(this)||this;l._parentSubscriber=e;var c=l;return i.isFunction(n)?a=n:n&&(a=n.next,s=n.error,o=n.complete,n!==r.empty&&(c=Object.create(n),i.isFunction(c.unsubscribe)&&l.add(c.unsubscribe.bind(c)),c.unsubscribe=l.unsubscribe.bind(l))),l._context=c,l._next=a,l._error=s,l._complete=o,l}return s(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=l.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};l.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),l.config.useDeprecatedSynchronousErrorHandling)throw n;c.hostReportError(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return l.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(c.hostReportError(s),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(h);e.SafeSubscriber=u},"6Br6":function(t,e,n){"use strict";var s=n("D9en"),i=n("a96P"),r=n("v2vP"),o=n("ZGdk");function a(t){return t.reduce((function(t,e){return t.concat(e instanceof o.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,l=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if(r.isFunction(l))try{l.call(this)}catch(p){e=p instanceof o.UnsubscriptionError?a(p.errors):[p]}if(s.isArray(c)){h=-1;for(var u=c.length;++h<u;){var d=c[h];if(i.isObject(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof o.UnsubscriptionError?e=e.concat(a(p.errors)):e.push(p)}}}if(e)throw new o.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var s=n;(n=new t)._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}()},"7oWP":function(t,e,n){"use strict";e.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),e.$$rxSubscriber=e.rxSubscriber},D9en:function(t,e,n){"use strict";e.isArray=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},"E/Xc":function(t,e,n){"use strict";var s=n("hjML");function i(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:s.noop}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(t)},e.pipeFromArray=i},JJ8B:function(t,e,n){"use strict";var s=n("1hPV");e.canReportError=function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof s.Subscriber?e:null}return!0}},O09R:function(t,e,n){"use strict";e.ObjectUnsubscribedError=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},QuXn:function(t,e,n){"use strict";var s=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}}},Rdb5:function(t,e,n){"use strict";var s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}();e.SubjectSubscription=function(t){function e(e,n){var s=t.call(this)||this;return s.subject=e,s.subscriber=n,s.closed=!1,s}return s(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("6Br6").Subscription)},Yfti:function(t,e,n){"use strict";var s=n("1hPV"),i=n("7oWP"),r=n("uzuk");e.toSubscriber=function(t,e,n){if(t){if(t instanceof s.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new s.Subscriber(t,e,n):new s.Subscriber(r.empty)}},ZGdk:function(t,e,n){"use strict";e.UnsubscriptionError=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},a96P:function(t,e,n){"use strict";e.isObject=function(t){return null!==t&&"object"==typeof t}},hjML:function(t,e,n){"use strict";e.noop=function(){}},hk5J:function(t,e,n){"use strict";var s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),i=n("tkgy"),r=n("O09R");e.BehaviorSubject=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return s(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject)},"k/06":function(t,e,n){"use strict";e.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},qiMw:function(t,e,n){"use strict";var s=n("JJ8B"),i=n("Yfti"),r=n("k/06"),o=n("E/Xc"),a=n("QuXn");function l(t){if(t||(t=a.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var s=this.operator,r=i.toSubscriber(t,e,n);if(r.add(s?s.call(r,this.source):this.source||a.config.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.config.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),s.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,s){var i;i=n.subscribe((function(e){try{t(e)}catch(n){s(n),i&&i.unsubscribe()}}),s,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[r.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:o.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var s;e.subscribe((function(t){return s=t}),(function(t){return n(t)}),(function(){return t(s)}))}))},t.create=function(e){return new t(e)},t}()},tkgy:function(t,e,n){"use strict";var s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),i=n("qiMw"),r=n("1hPV"),o=n("6Br6"),a=n("O09R"),l=n("Rdb5"),c=n("7oWP"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return s(e,t),e}(r.Subscriber);e.SubjectSubscriber=h;var u=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return s(e,t),e.prototype[c.rxSubscriber]=function(){return new h(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,s=e.slice(),i=0;i<n;i++)s[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,s=e.slice(),i=0;i<n;i++)s[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),s=0;s<e;s++)n[s].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),o.Subscription.EMPTY):this.isStopped?(t.complete(),o.Subscription.EMPTY):(this.observers.push(t),new l.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(i.Observable);e.Subject=u;var d=function(t){function e(e,n){var s=t.call(this)||this;return s.destination=e,s.source=n,s}return s(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):o.Subscription.EMPTY},e}(u);e.AnonymousSubject=d},tpAt:function(t,e,n){"use strict";e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},uzuk:function(t,e,n){"use strict";var s=n("QuXn"),i=n("tpAt");e.empty={closed:!0,next:function(t){},error:function(t){if(s.config.useDeprecatedSynchronousErrorHandling)throw t;i.hostReportError(t)},complete:function(){}}},v2vP:function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:i,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(i))try{i.call(this)}catch(o){e=o instanceof h?d(o.errors):[o]}if(l(r)){let t=-1,n=r.length;for(;++t<n;){const n=r[t];if(c(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof h?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const s=new f(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(){}function y(...t){return v(t)}function v(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:_}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:v(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class E extends f{constructor(t){super(t),this.destination=t}}let x=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new S(this,t))}asObservable(){const t=new b;return t.source=this,t}}return t.create=(t,e)=>new k(t,e),t})();class k extends x{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class A extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const D=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const R=I(),P=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function O(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[m])return s=t,t=>{const e=s[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return D(t);if(O(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[R])return e=t,t=>{const n=e[R]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,n,s};function N(t,e,n,s,i=new A(t,n,s)){if(!i.closed)return e instanceof b?e.subscribe(i):M(e)(i)}class L extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function F(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new V(t,e))}}class V{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}class B extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function j(t,e){return new b(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function U(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[m]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(O(t))return function(t,e){return new b(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(P(t))return j(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[R](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(M(t))}function z(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(z((n,s)=>U(t(n,s)).pipe(F((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new A(this,e,n),i=this.destination;i.add(s);const r=N(this,t,void 0,void 0,s);r!==s&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,s,i){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t){return t}function W(t=Number.POSITIVE_INFINITY){return z(q,t)}function Y(t,e){return e?j(t,e):new b(D(t))}function Q(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return T(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:W(e)(Y(t,n))}function Z(){return function(t){return t.lift(new K(t))}}class K{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new G(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class G extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class X extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new tt(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Z()(this)}}const J=(()=>{const t=X.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tt extends E{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function et(){return new x}function nt(){return t=>{return Z()((e=et,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,J);return s.source=t,s.subjectFactory=n,s})(t));var e}}function st(t,e,n){const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}const it=st("Inject",t=>({token:t})),rt=st("Optional"),ot=st("Self"),at=st("SkipSelf");var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return dt(t,t[pt])||dt(t,t[ft])}function dt(t,e){return e&&e.token===t?e:null}const pt=ct({"\u0275prov":ct}),ft=ct({ngInjectableDef:ct});function gt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(gt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}const mt=ct({__forward_ref__:ct});function _t(t){return t.__forward_ref__=_t,t.toString=function(){return gt(this())},t}function yt(t){return"function"==typeof(e=t)&&e.hasOwnProperty(mt)&&e.__forward_ref__===_t?t():t;var e}const vt="undefined"!=typeof globalThis&&globalThis,bt="undefined"!=typeof window&&window,wt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ct="undefined"!=typeof global&&global,St=vt||Ct||bt||wt;class Et{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const xt=new Et("INJECTOR",-1),kt={},Tt=/\n/gm,At=ct({provide:String,useValue:ct});let Dt=void 0;function It(t){const e=Dt;return Dt=t,e}function Rt(t,e=lt.Default){return function(t,e=lt.Default){if(void 0===Dt)throw new Error("inject() must be called from an injection context");return null===Dt?function(t,e,n){const s=ut(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&lt.Optional)return null;throw new Error(`Injector: NOT_FOUND [${gt(t)}]`)}(t,0,e):Dt.get(t,e&lt.Optional?null:void 0,e)}(yt(t),e)}const Pt=Rt;class Ot{get(t,e=kt){if(e===kt){const e=new Error(`NullInjectorError: No provider for ${gt(t)}!`);throw e.name="NullInjectorError",e}return e}}function Mt(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=gt(e);if(Array.isArray(e))i=e.map(gt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):gt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Tt,"\n  ")}`}class Nt{}class Lt{}function Ft(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Vt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const Bt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}();let jt=void 0;const Ut=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(St))();function zt(t){return t.ngDebugContext}function Ht(t){return t.ngOriginalError}function $t(t,...e){t.error(...e)}class qt{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||$t}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?zt(t)?zt(t):this._findContext(Ht(t)):null}_findOriginalError(t){let e=Ht(t);for(;e&&Ht(e);)e=Ht(e);return e}}class Wt{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Yt extends Wt{getTypeName(){return"HTML"}}class Qt extends Wt{getTypeName(){return"Style"}}class Zt extends Wt{getTypeName(){return"Script"}}class Kt extends Wt{getTypeName(){return"URL"}}class Gt extends Wt{getTypeName(){return"ResourceURL"}}function Xt(t){return t instanceof Wt?t.changingThisBreaksApplicationSecurity:t}function Jt(t,e){const n=te(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function te(t){return t instanceof Wt&&t.getTypeName()||null}let ee=!0,ne=!1;function se(){return ne=!0,ee}class ie{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(s){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const re=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,oe=/^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 ae(t){return(t=String(t)).match(re)||t.match(oe)?t:(se()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function le(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ce(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const he=le("area,br,col,hr,img,wbr"),ue=le("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),de=le("rp,rt"),pe=ce(de,ue),fe=ce(he,ce(ue,le("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")),ce(de,le("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")),pe),ge=le("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),me=le("srcset"),_e=ce(ge,me,le("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"),le("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")),ye=le("script,style,template");class ve{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!fe.hasOwnProperty(e))return this.sanitizedSomething=!0,!ye.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!_e.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;ge[r]&&(o=ae(o)),me[r]&&(s=o,o=(s=String(s)).split(",").map(t=>ae(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ce(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();fe.hasOwnProperty(e)&&!he.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ce(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const be=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,we=/([^\#-~ |!])/g;function Ce(t){return t.replace(/&/g,"&amp;").replace(be,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(we,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Se;function Ee(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const xe=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),ke=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Te=/^url\(([^)]+)\)$/,Ae=/([A-Z])/g;function De(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}let Ie=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Re(),t})();const Re=(...t)=>{},Pe=new Et("Set Injector scope."),Oe=function(t,e,n){return new Be(t,e,n)};let Me=(()=>{class t{static create(t,e){return Array.isArray(t)?Oe(t,e,""):Oe(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=kt,t.NULL=new Ot,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Rt(xt)}),t.__NG_ELEMENT_ID__=-1,t})();const Ne=function(t){return t},Le=[],Fe=Ne,Ve=function(){return Array.prototype.slice.call(arguments)};class Be{constructor(t,e=Me.NULL,n=null){this.parent=e,this.source=n;const s=this._records=new Map;s.set(Me,{token:Me,fn:Ne,deps:Le,value:this,useNew:!1}),s.set(xt,{token:xt,fn:Ne,deps:Le,value:this,useNew:!1}),this.scope=function t(e,n){let s=null;if(n)if(n=yt(n),Array.isArray(n))for(let i=0;i<n.length;i++)s=t(e,n[i])||s;else{if("function"==typeof n)throw ze("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw ze("Unexpected provider",n);{let t=yt(n.provide);const i=je(n);if(!0===n.multi){let s=e.get(t);if(s){if(s.fn!==Ve)throw Ue(t)}else e.set(t,s={token:n.provide,deps:[],useNew:!1,fn:Ve,value:Le});t=n,s.deps.push({token:t,options:6})}const r=e.get(t);if(r&&r.fn==Ve)throw Ue(t);t===Pe&&(s=i.value),e.set(t,i)}}return s}(s,t)}get(t,e,n=lt.Default){const s=this._records;let i=s.get(t);if(void 0===i){const e=ut(t);if(e){const n=e&&e.providedIn;("any"===n||null!=n&&n===this.scope)&&s.set(t,i=je({provide:t,useFactory:e.factory,deps:Le}))}void 0===i&&s.set(t,null)}let r=It(this);try{return function t(e,n,s,i,r,o){try{return function(e,n,s,i,r,o){let a;if(!n||o&lt.SkipSelf)a=o&lt.Self?Me.NULL.get(e,o&lt.Optional?void 0!==r?r:null:r):i.get(e,r,lt.Default);else{if(a=n.value,a==Fe)throw Error("\u0275Circular dependency");if(a===Le){n.value=Fe;let e=void 0,r=n.useNew,o=n.fn,l=n.deps,c=Le;if(l.length){c=[];for(let e=0;e<l.length;e++){const n=l[e],r=n.options,o=2&r?s.get(n.token):void 0;c.push(t(n.token,o,s,o||4&r?i:Me.NULL,1&r?null:Me.THROW_IF_NOT_FOUND,lt.Default))}}n.value=a=r?new o(...c):o.apply(e,c)}}return a}(e,n,s,i,r,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(e),n&&n.value==Fe&&(n.value=Le),a}}(t,i,s,this.parent,e,n)}catch(o){return function(t,e,n,s){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=Mt("\n"+t.message,i,"StaticInjectorError",s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,0,this.source)}finally{It(r)}}toString(){const t=[];return this._records.forEach((e,n)=>t.push(gt(n))),`StaticInjector[${t.join(", ")}]`}}function je(t){const e=function(t){let e=Le;const n=t.deps;if(n&&n.length){e=[];for(let t=0;t<n.length;t++){let s=6,i=yt(n[t]);if(Array.isArray(i))for(let t=0,e=i;t<e.length;t++){const n=e[t];n instanceof rt||n==rt?s|=1:n instanceof at||n==at?s&=-3:n instanceof ot||n==ot?s&=-5:i=n instanceof it?n.token:yt(n)}e.push({token:i,options:s})}}else if(t.useExisting)e=[{token:yt(t.useExisting),options:6}];else if(!(n||At in t))throw ze("'deps' required",t);return e}(t);let n=Ne,s=Le,i=!1,r=yt(t.provide);if(At in t)s=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=yt(t.useClass);else{if("function"!=typeof r)throw ze("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=r}return{deps:e,fn:n,useNew:i,value:s}}function Ue(t){return ze("Cannot mix multi providers and regular providers",t)}function ze(t,e){return new Error(Mt(t,e,"StaticInjectorError"))}const He=new Et("AnalyzeForEntryComponents");let $e=null;function qe(){if(!$e){const t=St.Symbol;if(t&&t.iterator)$e=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&($e=n)}}}return $e}function We(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Ye(t,e){const n=Ze(t),s=Ze(e);if(n&&s)return function(t,e,n){const s=t[qe()](),i=e[qe()]();for(;;){const t=s.next(),e=i.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,Ye);{const i=t&&("object"==typeof t||"function"==typeof t),r=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||s||!r)||We(t,e)}}class Qe{constructor(t){this.wrapped=t}static wrap(t){return new Qe(t)}static unwrap(t){return Qe.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Qe}}function Ze(t){return!!Ke(t)&&(Array.isArray(t)||!(t instanceof Map)&&qe()in t)}function Ke(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ge(t){return!!t&&"function"==typeof t.then}function Xe(t){return!!t&&"function"==typeof t.subscribe}class Je{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}class tn{}function en(t){const e=Error(`No component factory found for ${gt(t)}. Did you add it to @NgModule.entryComponents?`);return e[nn]=t,e}const nn="ngComponent";class sn{resolveComponentFactory(t){throw en(t)}}let rn=(()=>{class t{}return t.NULL=new sn,t})();class on{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let s=0;s<t.length;s++){const e=t[s];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw en(t);return new an(e,this._ngModule)}}class an extends tn{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,s){return this.factory.create(t,e,n,s||this.ngModule)}}function ln(...t){}let cn=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>hn(t),t})();const hn=ln;class un{}const dn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let pn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>fn(),t})();const fn=ln;let gn=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class mn{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const _n=new mn("9.0.5");class yn{constructor(){}supports(t){return Ze(t)}create(t){return new bn(t)}}const vn=(t,e)=>e;class bn{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vn}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<En(n,s,i)?e:n,o=En(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ze(t))throw new Error(`Error trying to diff '${gt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&We(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),We(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[qe()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&We(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),We(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(We(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(We(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new wn(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sn),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sn),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}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class wn{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Cn{constructor(){this._head=null,this._tail=null}add(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)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&We(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Sn{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Cn,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function En(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class xn{constructor(){}supports(t){return t instanceof Map||Ke(t)}create(){return new kn}}class kn{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ke(t)))throw new Error(`Error trying to diff '${gt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Tn(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(t,e){We(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Tn{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let An=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new rt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new yn])}),t})(),Dn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new rt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new xn])}),t})();const In=[new xn],Rn=new An([new yn]),Pn=new Dn(In);let On=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Mn(t,cn),t})();const Mn=ln;let Nn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ln(t,cn),t})();const Ln=ln;function Fn(t,e,n,s){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return s&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return Vn(n,e),n}(i,t)}function Vn(t,e){t.ngDebugContext=e,t.ngErrorLogger=e.logError.bind(e)}function Bn(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function jn(t,e,n){const s=t.state,i=1792&s;return i===e?(t.state=-1793&s|n,t.initIndex=-1,!0):i===n}function Un(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function zn(t,e){return t.nodes[e]}function Hn(t,e){return t.nodes[e]}function $n(t,e){return t.nodes[e]}function qn(t,e){return t.nodes[e]}function Wn(t,e){return t.nodes[e]}const Yn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Qn=()=>{},Zn=new Map;function Kn(t){let e=Zn.get(t);return e||(e=gt(t)+"_"+Zn.size,Zn.set(t,e)),e}function Gn(t){return{id:"$$undefined",styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let Xn=0;function Jn(t,e,n,s){return!(!(2&t.state)&&We(t.oldValues[e.bindingIndex+n],s))}function ts(t,e,n,s){return!!Jn(t,e,n,s)&&(t.oldValues[e.bindingIndex+n]=s,!0)}function es(t,e,n,s){const i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Ye(i,s)){const r=e.bindings[n].name;throw Fn(Yn.createDebugContext(t,e.nodeIndex),`${r}: ${i}`,`${r}: ${s}`,0!=(1&t.state))}}function ns(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function ss(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function is(t,e,n,s){try{return ns(33554432&t.def.nodes[e].flags?Hn(t,e).componentView:t),Yn.handleEvent(t,e,n,s)}catch(i){t.root.errorHandler.handleError(i)}}function rs(t){return t.parent?Hn(t.parent,t.parentNodeDef.nodeIndex):null}function os(t){return t.parent?t.parentNodeDef.parent:null}function as(t,e){switch(201347067&e.flags){case 1:return Hn(t,e.nodeIndex).renderElement;case 2:return zn(t,e.nodeIndex).renderText}}function ls(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function cs(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function hs(t){return 1<<t%32}function us(t){const e={};let n=0;const s={};return t&&t.forEach(([t,i])=>{"number"==typeof t?(e[t]=i,n|=hs(t)):s[t]=i}),{matchedQueries:e,references:s,matchedQueryIds:n}}function ds(t,e){return t.map(t=>{let n,s;return Array.isArray(t)?[s,n]=t:(s=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,"__source",{value:e,configurable:!0}),{flags:s,token:n,tokenKey:Kn(n)}})}function ps(t,e,n){let s=n.renderParent;return s?0==(1&s.flags)||0==(33554432&s.flags)||s.element.componentRendererType&&s.element.componentRendererType.encapsulation===Bt.Native?Hn(t,n.renderParent.nodeIndex).renderElement:void 0:e}const fs=new WeakMap;function gs(t){let e=fs.get(t);return e||(e=t(()=>Qn),e.factory=t,fs.set(t,e)),e}function ms(t,e,n,s,i){3===e&&(n=t.renderer.parentNode(as(t,t.def.lastRenderRootNode))),_s(t,e,0,t.def.nodes.length-1,n,s,i)}function _s(t,e,n,s,i,r,o){for(let a=n;a<=s;a++){const n=t.def.nodes[a];11&n.flags&&vs(t,n,e,i,r,o),a+=n.childCount}}function ys(t,e,n,s,i,r){let o=t;for(;o&&!ls(o);)o=o.parent;const a=o.parent,l=os(o),c=l.nodeIndex+l.childCount;for(let h=l.nodeIndex+1;h<=c;h++){const t=a.def.nodes[h];t.ngContentIndex===e&&vs(a,t,n,s,i,r),h+=t.childCount}if(!a.parent){const o=t.root.projectableNodes[e];if(o)for(let e=0;e<o.length;e++)bs(t,o[e],n,s,i,r)}}function vs(t,e,n,s,i,r){if(8&e.flags)ys(t,e.ngContent.index,n,s,i,r);else{const o=as(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&bs(t,o,n,s,i,r),32&e.bindingFlags&&bs(Hn(t,e.nodeIndex).componentView,o,n,s,i,r)):bs(t,o,n,s,i,r),16777216&e.flags){const o=Hn(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<o.length;t++)ms(o[t],n,s,i,r)}1&e.flags&&!e.element.name&&_s(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,s,i,r)}}function bs(t,e,n,s,i,r){const o=t.renderer;switch(n){case 1:o.appendChild(s,e);break;case 2:o.insertBefore(s,e,i);break;case 3:o.removeChild(s,e);break;case 0:r.push(e)}}const ws=/^:([^:]+):(.+)$/;function Cs(t){if(":"===t[0]){const e=t.match(ws);return[e[1],e[2]]}return["",t]}function Ss(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}const Es={},xs=Kn(Me),ks=Kn(xt),Ts=Kn(Nt);function As(t,e,n,s){return n=yt(n),{index:-1,deps:ds(s,gt(e)),flags:t,token:e,value:n}}function Ds(t,e,n=Me.THROW_IF_NOT_FOUND){const s=It(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const i=e.tokenKey;switch(i){case xs:case ks:case Ts:return t}const r=t._def.providersByKey[i];let o;if(r){let e=t._providers[r.index];return void 0===e&&(e=t._providers[r.index]=Is(t,r)),e===Es?void 0:e}if((o=ut(e.token))&&function(t,e){const n=e.providedIn;return null!=n&&("any"===n||n===t._def.scope||function(t,e){return t._def.modules.indexOf(e)>-1}(t,n))}(t,o)){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:e.token},t._providers[n]=Es,t._providers[n]=Is(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{It(s)}}function Is(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const s=n.length;switch(s){case 0:return new e;case 1:return new e(Ds(t,n[0]));case 2:return new e(Ds(t,n[0]),Ds(t,n[1]));case 3:return new e(Ds(t,n[0]),Ds(t,n[1]),Ds(t,n[2]));default:const i=[];for(let e=0;e<s;e++)i[e]=Ds(t,n[e]);return new e(...i)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const s=n.length;switch(s){case 0:return e();case 1:return e(Ds(t,n[0]));case 2:return e(Ds(t,n[0]),Ds(t,n[1]));case 3:return e(Ds(t,n[0]),Ds(t,n[1]),Ds(t,n[2]));default:const i=[];for(let e=0;e<s;e++)i[e]=Ds(t,n[e]);return e(...i)}}(t,e.value,e.deps);break;case 2048:n=Ds(t,e.deps[0]);break;case 256:n=e.value}return n===Es||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Es:n}function Rs(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const s=n[e];return s.viewContainerParent=null,Vt(n,e),Yn.dirtyParentQueries(s),Os(s),s}function Ps(t,e,n){const s=e?as(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(s),r=n.renderer.nextSibling(s);ms(n,2,i,r,void 0)}function Os(t){ms(t,3,null,null,void 0)}const Ms={};function Ns(t,e,n,s,i,r){return new Ls(t,e,n,s,i,r)}class Ls extends tn{constructor(t,e,n,s,i,r){super(),this.selector=t,this.componentType=e,this._inputs=s,this._outputs=i,this.ngContentSelectors=r,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,s){if(!s)throw new Error("ngModule should be provided");const i=gs(this.viewDefFactory),r=i.nodes[0].element.componentProvider.nodeIndex,o=Yn.createRootView(t,e||[],n,i,s,Ms),a=$n(o,r).instance;return n&&o.renderer.setAttribute(Hn(o,0).renderElement,"ng-version",_n.full),new Fs(o,new Us(o),a)}}class Fs extends class{}{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new cn(Hn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new qs(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function Vs(t,e,n){return new Bs(t,e,n)}class Bs{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new cn(this._data.renderElement)}get injector(){return new qs(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=os(t),t=t.parent;return t?new qs(t,e):new qs(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=Rs(this._data,t);Yn.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Us(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;i||t instanceof an||(i=r.get(Nt));const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,s){let i=e.viewContainer._embeddedViews;null==n&&(n=i.length),s.viewContainerParent=t,Ft(i,n,s),function(t,e){const n=rs(e);if(!n||n===t||16&e.state)return;e.state|=16;let s=n.template._projectedViews;s||(s=n.template._projectedViews=[]),s.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,s),Yn.dirtyParentQueries(s),Ps(e,n>0?i[n-1]:null,s)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const s=t.viewContainer._embeddedViews,i=s[e];Vt(s,e),null==n&&(n=s.length),Ft(s,n,i),Yn.dirtyParentQueries(i),Os(i),Ps(t,n>0?s[n-1]:null,i)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=Rs(this._data,t);e&&Yn.destroyView(e)}detach(t){const e=Rs(this._data,t);return e?new Us(e):null}}function js(t){return new Us(t)}class Us{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return ms(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ns(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){Yn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Os(this._view),Yn.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function zs(t,e){return new Hs(t,e)}class Hs extends On{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Us(Yn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new cn(Hn(this._parentView,this._def.nodeIndex).renderElement)}}function $s(t,e){return new qs(t,e)}class qs{constructor(t,e){this.view=t,this.elDef=e}get(t,e=Me.THROW_IF_NOT_FOUND){return Yn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Kn(t)},e)}}function Ws(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=Hn(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return zn(t,n.nodeIndex).renderText;if(20240&n.flags)return $n(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function Ys(t,e,n,s){return new Qs(t,e,n,s)}class Qs{constructor(t,e,n,s){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=s,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=function(t,e){const n=[];for(let s=0;s<t;s++)n.push(void 0);return n}(e.providers.length);for(let s=0;s<e.providers.length;s++){const i=e.providers[s];4096&i.flags||void 0===n[s]&&(n[s]=Is(t,i))}}(this)}get(t,e=Me.THROW_IF_NOT_FOUND,n=lt.Default){let s=0;return n&lt.SkipSelf?s|=1:n&lt.Self&&(s|=4),Ds(this,{token:t,tokenKey:Kn(t),flags:s},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(rn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${gt(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,s=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const e=t._providers[i];if(e&&e!==Es){const t=e.ngOnDestroy;"function"!=typeof t||s.has(e)||(t.apply(e),s.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const Zs=Kn(pn),Ks=Kn(cn),Gs=Kn(Nn),Xs=Kn(On),Js=Kn(Ie),ti=Kn(Me),ei=Kn(xt);function ni(t,e,n,s,i,r,o,a){const l=[];if(o)for(let h in o){const[t,e]=o[h];l[t]={flags:8,name:h,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let h in a)c.push({type:1,propName:h,target:null,eventName:a[h]});return si(t,e|=16384,n,s,i,i,r,l,c)}function si(t,e,n,s,i,r,o,a,l){const{matchedQueries:c,references:h,matchedQueryIds:u}=us(n);l||(l=[]),a||(a=[]),r=yt(r);const d=ds(o,gt(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:u,references:h,ngContentIndex:-1,childCount:s,bindings:a,bindingFlags:Ss(a),outputs:l,element:null,provider:{token:i,value:r,deps:d},text:null,query:null,ngContent:null}}function ii(t,e){return li(t,e)}function ri(t,e){let n=t;for(;n.parent&&!ls(n);)n=n.parent;return ci(n.parent,os(n),!0,e.provider.value,e.provider.deps)}function oi(t,e){const n=ci(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let s=0;s<e.outputs.length;s++){const i=e.outputs[s],r=n[i.propName];if(!Xe(r))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=r.subscribe(ai(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+s]=n.unsubscribe.bind(n)}}return n}function ai(t,e,n){return s=>is(t,e,n,s)}function li(t,e){const n=(8192&e.flags)>0,s=e.provider;switch(201347067&e.flags){case 512:return ci(t,e.parent,n,s.value,s.deps);case 1024:return function(t,e,n,s,i){const r=i.length;switch(r){case 0:return s();case 1:return s(ui(t,e,n,i[0]));case 2:return s(ui(t,e,n,i[0]),ui(t,e,n,i[1]));case 3:return s(ui(t,e,n,i[0]),ui(t,e,n,i[1]),ui(t,e,n,i[2]));default:const o=[];for(let s=0;s<r;s++)o.push(ui(t,e,n,i[s]));return s(...o)}}(t,e.parent,n,s.value,s.deps);case 2048:return ui(t,e.parent,n,s.deps[0]);case 256:return s.value}}function ci(t,e,n,s,i){const r=i.length;switch(r){case 0:return new s;case 1:return new s(ui(t,e,n,i[0]));case 2:return new s(ui(t,e,n,i[0]),ui(t,e,n,i[1]));case 3:return new s(ui(t,e,n,i[0]),ui(t,e,n,i[1]),ui(t,e,n,i[2]));default:const o=[];for(let s=0;s<r;s++)o.push(ui(t,e,n,i[s]));return new s(...o)}}const hi={};function ui(t,e,n,s,i=Me.THROW_IF_NOT_FOUND){if(8&s.flags)return s.token;const r=t;2&s.flags&&(i=null);const o=s.tokenKey;o===Js&&(n=!(!e||!e.element.componentView)),e&&1&s.flags&&(n=!1,e=e.parent);let a=t;for(;a;){if(e)switch(o){case Zs:return di(a,e,n).renderer;case Ks:return new cn(Hn(a,e.nodeIndex).renderElement);case Gs:return Hn(a,e.nodeIndex).viewContainer;case Xs:if(e.element.template)return Hn(a,e.nodeIndex).template;break;case Js:return js(di(a,e,n));case ti:case ei:return $s(a,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[o];if(t){let e=$n(a,t.nodeIndex);return e||(e={instance:li(a,t)},a.nodes[t.nodeIndex]=e),e.instance}}n=ls(a),e=os(a),a=a.parent,4&s.flags&&(a=null)}const l=r.root.injector.get(s.token,hi);return l!==hi||i===hi?l:r.root.ngModule.injector.get(s.token,i)}function di(t,e,n){let s;if(n)s=Hn(t,e.nodeIndex).componentView;else for(s=t;s.parent&&!ls(s);)s=s.parent;return s}function pi(t,e,n,s,i,r){if(32768&n.flags){const e=Hn(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[s].name]=i,524288&n.flags){r=r||{};const e=Qe.unwrap(t.oldValues[n.bindingIndex+s]);r[n.bindings[s].nonMinifiedName]=new Je(e,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+s]=i,r}function fi(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let s=0;for(let i=0;i<n.length;i++){const r=n[i];let o=r.parent;for(!o&&r.flags&e&&mi(t,i,r.flags&e,s++),0==(r.childFlags&e)&&(i+=r.childCount);o&&1&o.flags&&i===o.nodeIndex+o.childCount;)o.directChildFlags&e&&(s=gi(t,o,e,s)),o=o.parent}}function gi(t,e,n,s){for(let i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){const e=t.def.nodes[i];e.flags&n&&mi(t,i,e.flags&n,s++),i+=e.childCount}return s}function mi(t,e,n,s){const i=$n(t,e);if(!i)return;const r=i.instance;r&&(Yn.setCurrentNode(t,e),1048576&n&&Un(t,512,s)&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&Un(t,768,s)&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}const _i=new Et("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ut}),yi=void 0;var vi=["en",[["a","p"],["AM","PM"],yi],[["AM","PM"],yi,yi],[["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"]],yi,[["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"]],yi,[["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}",yi,"{1} 'at' {0}",yi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let bi={};function wi(t){return t in bi||(bi[t]=St.ng&&St.ng.common&&St.ng.common.locales&&St.ng.common.locales[t]),bi[t]}const Ci=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();class Si extends x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}}function Ei(){return this._results[qe()]()}class xi{constructor(){this.dirty=!0,this._results=[],this.changes=new Si,this.length=0;const t=qe(),e=xi.prototype;e[t]||(e[t]=Ei)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?(n===e&&(n=e.slice(0,s)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const ki=new Et("Application Initializer");class Ti{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ge(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}const Ai=new Et("AppId");function Di(){return`${Ii()}${Ii()}${Ii()}`}function Ii(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ri=new Et("Platform Initializer"),Pi=new Et("Platform ID"),Oi=new Et("appBootstrapListener");class Mi{log(t){console.log(t)}warn(t){console.warn(t)}}const Ni=new Et("LocaleId"),Li=new Et("DefaultCurrencyCode");function Fi(){throw new Error("Runtime compiler is not loaded")}const Vi=Fi,Bi=Fi,ji=Fi,Ui=Fi;class zi{constructor(){this.compileModuleSync=Vi,this.compileModuleAsync=Bi,this.compileModuleAndAllComponentsSync=ji,this.compileModuleAndAllComponentsAsync=Ui}clearCache(){}clearCacheFor(t){}getModuleId(t){}}class Hi{}const $i=(()=>Promise.resolve(0))();function qi(t){"undefined"==typeof Zone?$i.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Si(!1),this.onMicrotaskEmpty=new Si(!1),this.onStable=new Si(!1),this.onError=new Si(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=St.requestAnimationFrame,e=St.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(St,()=>{t.lastRequestAnimationFrameId=-1,Ki(t),Zi(t)}),Ki(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return Gi(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Xi(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return Gi(t),e.invoke(s,i,r,o,a)}finally{Xi(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Ki(t),Zi(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Wi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Qi,Yi,Yi);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Yi(){}const Qi={};function Zi(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ki(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Gi(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Xi(t){t._nesting--,Zi(t)}class Ji{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Si,this.onMicrotaskEmpty=new Si,this.onStable=new Si,this.onError=new Si}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,s){return t.apply(e,n)}}class tr{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wi.assertNotInAngularZone(),qi(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())qi(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}class er{constructor(){this._applications=new Map,ir.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return ir.findTestabilityInTree(this,t,e)}}class nr{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let sr,ir=new nr;const rr=new Et("AllowMultipleToken");class or{constructor(t,e){this.name=t,this.token=e}}function ar(t,e,n=[]){const s=`Platform: ${e}`,i=new Et(s);return(e=[])=>{let r=lr();if(!r||r.injector.get(rr,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Pe,useValue:"platform"});!function(t){if(sr&&!sr.destroyed&&!sr.injector.get(rr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");sr=t.get(cr);const e=t.get(Ri,null);e&&e.forEach(t=>t())}(Me.create({providers:t,name:s}))}return function(t){const e=lr();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function lr(){return sr&&!sr.destroyed?sr:null}class cr{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Ji:("zone.js"===t?void 0:t)||new Wi({enableLongStackTrace:se(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Wi,useValue:n}];return n.run(()=>{const e=Me.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(qt,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>dr(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return Ge(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Ti);return t.runInitializers(),t.donePromise.then(()=>(this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=hr({},e);return function(t,e,n){return t.get(Hi).createCompiler([e]).compileModuleAsync(n)}(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ur);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${gt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}function hr(t,e){return Array.isArray(e)?e.reduce(hr,t):Object.assign(Object.assign({},t),e)}class ur{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=se(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Wi.assertNotInAngularZone(),qi(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Wi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Q(o,a.pipe(nt()))}bootstrap(t,e){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.");let n;n=t instanceof tn?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n instanceof an?void 0:this._injector.get(Nt),i=n.create(Me.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(tr,null);return r&&i.injector.get(er).registerApplication(i.location.nativeElement,r),this._loadComponent(i),se()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;dr(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Oi,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),dr(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}function dr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class pr{}class fr{}const gr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class mr{constructor(t,e){this._compiler=t,this._config=e||gr}load(t){return this._compiler instanceof zi?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n("zn8P")(e).then(t=>t[s]).then(t=>_r(t,e,s)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,s]=t.split("#"),i="NgFactory";return void 0===s&&(s="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+i]).then(t=>_r(t,e,s))}}function _r(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class yr{constructor(t,e){this.name=t,this.callback=e}}class vr{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof br&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class br extends vr{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,s){e.childNodes.forEach(e=>{e instanceof br&&(n(e)&&s.push(e),t(e,n,s))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,s){e instanceof br&&e.childNodes.forEach(e=>{n(e)&&s.push(e),e instanceof br&&t(e,n,s)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof br)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}const wr=new Map;function Cr(t){return wr.get(t)||null}const Sr=Cr;function Er(t){wr.set(t.nativeNode,t)}const xr=ar(null,"core",[{provide:Pi,useValue:"unknown"},{provide:cr,deps:[Me]},{provide:er,deps:[]},{provide:Mi,deps:[]}]);function kr(){return Rn}function Tr(){return Pn}function Ar(t){return t||"en-US"}function Dr(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}class Ir{constructor(t){}}function Rr(t,e,n,s,i,r){t|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=us(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:s,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:r?gs(r):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Qn},provider:null,text:null,query:null,ngContent:null}}function Pr(t,e,n,s,i,r,o=[],a,l,c,h,u){c||(c=Qn);const{matchedQueries:d,references:p,matchedQueryIds:f}=us(n);let g=null,m=null;r&&([g,m]=Cs(r)),a=a||[];const _=[];for(let b=0;b<a.length;b++){const[t,e,n]=a[b],[s,i]=Cs(e);let r=void 0,o=void 0;switch(15&t){case 4:o=n;break;case 1:case 8:r=n}_[b]={flags:t,ns:s,name:i,nonMinifiedName:i,securityContext:r,suffix:o}}l=l||[];const y=[];for(let b=0;b<l.length;b++){const[t,e]=l[b];y[b]={type:0,target:t,eventName:e,propName:null}}const v=(o=o||[]).map(([t,e])=>{const[n,s]=Cs(t);return[n,s,e]});return u=function(t){if(t&&"$$undefined"===t.id){const e=null!=t.encapsulation&&t.encapsulation!==Bt.None||t.styles.length||Object.keys(t.data).length;t.id=e?`c${Xn++}`:"$$empty"}return t&&"$$empty"===t.id&&(t=null),t||null}(u),h&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:s,childCount:i,bindings:_,bindingFlags:Ss(_),outputs:y,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:h||null,componentRendererType:u,publicProviders:null,allProviders:null,handleEvent:c||Qn},provider:null,text:null,query:null,ngContent:null}}function Or(t,e,n){const s=n.element,i=t.root.selectorOrNode,r=t.renderer;let o;if(t.parent||!i){o=s.name?r.createElement(s.name,s.ns):r.createComment("");const i=ps(t,e,n);i&&r.appendChild(i,o)}else o=r.selectRootElement(i,!!s.componentRendererType&&s.componentRendererType.encapsulation===Bt.ShadowDom);if(s.attrs)for(let a=0;a<s.attrs.length;a++){const[t,e,n]=s.attrs[a];r.setAttribute(o,e,n,t)}return o}function Mr(t,e,n,s){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Nr(t,n.nodeIndex,(r=a.eventName,(i=a.target)?`${i}:${r}`:r));let c=a.target,h=t;"component"===a.target&&(c=null,h=e);const u=h.renderer.listen(c||s,a.eventName,l);t.disposables[n.outputIndex+o]=u}var i,r}function Nr(t,e,n){return s=>is(t,e,n,s)}function Lr(t,e,n,s){if(!ts(t,e,n,s))return!1;const i=e.bindings[n],r=Hn(t,e.nodeIndex),o=r.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,s,i,r){const o=e.securityContext;let a=o?t.root.sanitizer.sanitize(o,r):r;a=null!=a?a.toString():null;const l=t.renderer;null!=r?l.setAttribute(n,i,a,s):l.removeAttribute(n,i,s)}(t,i,o,i.ns,a,s);break;case 2:!function(t,e,n,s){const i=t.renderer;s?i.addClass(e,n):i.removeClass(e,n)}(t,o,a,s);break;case 4:!function(t,e,n,s,i){let r=t.root.sanitizer.sanitize(xe.STYLE,i);if(null!=r){r=r.toString();const t=e.suffix;null!=t&&(r+=t)}else r=null;const o=t.renderer;null!=r?o.setStyle(n,s,r):o.removeStyle(n,s)}(t,i,o,a,s);break;case 8:!function(t,e,n,s,i){const r=e.securityContext;let o=r?t.root.sanitizer.sanitize(r,i):i;t.renderer.setProperty(n,s,o)}(33554432&e.flags&&32&i.flags?r.componentView:t,i,o,a,s)}return!0}function Fr(t,e,n){let s=[];for(let i in n)s.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:hs(e),bindings:s},ngContent:null}}function Vr(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&cs(t);){let n=t.parentNodeDef;t=t.parent;const s=n.nodeIndex+n.childCount;for(let i=0;i<=s;i++){const s=t.def.nodes[i];67108864&s.flags&&536870912&s.flags&&(s.query.filterId&e)===s.query.filterId&&Wn(t,i).setDirty(),!(1&s.flags&&i+s.childCount<n.nodeIndex)&&67108864&s.childFlags&&536870912&s.childFlags||(i+=s.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&Wn(t,n).setDirty(),n+=e.childCount}}function Br(t,e){const n=Wn(t,e.nodeIndex);if(!n.dirty)return;let s,i=void 0;if(67108864&e.flags){const n=e.parent.parent;i=jr(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),s=$n(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=jr(t,0,t.def.nodes.length-1,e.query,[]),s=t.component);n.reset(i);const r=e.query.bindings;let o=!1;for(let a=0;a<r.length;a++){const t=r[a];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,o=!0}s[t.propName]=e}o&&n.notifyOnChanges()}function jr(t,e,n,s,i){for(let r=e;r<=n;r++){const e=t.def.nodes[r],n=e.matchedQueries[s.id];if(null!=n&&i.push(Ur(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&s.filterId)===s.filterId){const n=Hn(t,r);if((e.childMatchedQueries&s.filterId)===s.filterId&&(jr(t,r+1,r+e.childCount,s,i),r+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const r=t[e],o=rs(r);o&&o===n&&jr(r,0,r.def.nodes.length-1,s,i)}}const o=n.template._projectedViews;if(o)for(let t=0;t<o.length;t++){const e=o[t];jr(e,0,e.def.nodes.length-1,s,i)}}(e.childMatchedQueries&s.filterId)!==s.filterId&&(r+=e.childCount)}return i}function Ur(t,e,n){if(null!=n)switch(n){case 1:return Hn(t,e.nodeIndex).renderElement;case 0:return new cn(Hn(t,e.nodeIndex).renderElement);case 2:return Hn(t,e.nodeIndex).template;case 3:return Hn(t,e.nodeIndex).viewContainer;case 4:return $n(t,e.nodeIndex).instance}}function zr(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Hr(t,e,n){const s=ps(t,e,n);s&&ys(t,n.ngContent.index,1,s,null,void 0)}function $r(t,e){const n=Object.keys(e),s=n.length,i=[];for(let r=0;r<s;r++)i.push(n[r]);return function(t,e,n){const s=[];for(let i=0;i<n.length;i++){const t=n[i];s.push({flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:s,bindingFlags:Ss(s),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,t,i)}function qr(t,e,n){const s=[];for(let i=1;i<n.length;i++)s[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:s,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Wr(t,e,n){let s;const i=t.renderer;s=i.createText(n.text.prefix);const r=ps(t,e,n);return r&&i.appendChild(r,s),{renderText:s}}function Yr(t,e){return(null!=t?t.toString():"")+e.suffix}function Qr(t,e,n,s){let i=0,r=0,o=0,a=0,l=0,c=null,h=null,u=!1,d=!1,p=null;for(let f=0;f<e.length;f++){const t=e[f];if(t.nodeIndex=f,t.parent=c,t.bindingIndex=i,t.outputIndex=r,t.renderParent=h,o|=t.flags,l|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=c?c.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,u=!1,d=!1,t.element.template&&(l|=t.element.template.nodeMatchedQueries)}if(Kr(c,t,e.length),i+=t.bindings.length,r+=t.outputs.length,!h&&3&t.flags&&(p=t),20224&t.flags){u||(u=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?c.element.publicProviders[Kn(t.provider.token)]=t:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Kn(t.provider.token)]=t),e&&(c.element.componentProvider=t)}if(c?(c.childFlags|=t.flags,c.directChildFlags|=t.flags,c.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(c.childMatchedQueries|=t.element.template.nodeMatchedQueries)):a|=t.flags,t.childCount>0)c=t,Zr(t)||(h=t);else for(;c&&f===c.nodeIndex+c.childCount;){const t=c.parent;t&&(t.childFlags|=c.childFlags,t.childMatchedQueries|=c.childMatchedQueries),c=t,h=c&&Zr(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Qn,updateRenderer:s||Qn,handleEvent:(t,n,s,i)=>e[n].element.handleEvent(t,s,i),bindingCount:i,outputCount:r,lastRenderRootNode:p}}function Zr(t){return 0!=(1&t.flags)&&null===t.element.name}function Kr(t,e,n){const s=e.element&&e.element.template;if(s){if(!s.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(s.lastRenderRootNode&&16777216&s.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const s=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=s&&e.nodeIndex+e.childCount>s)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function Gr(t,e,n,s){const i=to(t.root,t.renderer,t,e,n);return eo(i,t.component,s),no(i),i}function Xr(t,e,n){const s=to(t,t.renderer,null,null,e);return eo(s,n,n),no(s),s}function Jr(t,e,n,s){const i=e.element.componentRendererType;let r;return r=i?t.root.rendererFactory.createRenderer(s,i):t.root.renderer,to(t.root,r,t,e.element.componentProvider,n)}function to(t,e,n,s,i){const r=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:s,context:null,component:null,nodes:r,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function eo(t,e,n){t.component=e,t.context=n}function no(t){let e;ls(t)&&(e=Hn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,s=t.nodes;for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];let o;switch(Yn.setCurrentNode(t,i),201347067&r.flags){case 1:const n=Or(t,e,r);let a=void 0;if(33554432&r.flags){const e=gs(r.element.componentView);a=Yn.createComponentView(t,r,e,n)}Mr(t,a,r,n),o={renderElement:n,componentView:a,viewContainer:null,template:r.element.template?zs(t,r):void 0},16777216&r.flags&&(o.viewContainer=Vs(t,r,o));break;case 2:o=Wr(t,e,r);break;case 512:case 1024:case 2048:case 256:o=s[i],o||4096&r.flags||(o={instance:ii(t,r)});break;case 16:o={instance:ri(t,r)};break;case 16384:o=s[i],o||(o={instance:oi(t,r)}),32768&r.flags&&eo(Hn(t,r.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new xi;break;case 8:Hr(t,e,r),o=void 0}s[i]=o}uo(t,ho.CreateViewNodes),mo(t,201326592,268435456,0)}function so(t){oo(t),Yn.updateDirectives(t,1),po(t,ho.CheckNoChanges),Yn.updateRenderer(t,1),uo(t,ho.CheckNoChanges),t.state&=-97}function io(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,jn(t,0,256),oo(t),Yn.updateDirectives(t,0),po(t,ho.CheckAndUpdate),mo(t,67108864,536870912,0);let e=jn(t,256,512);fi(t,2097152|(e?1048576:0)),Yn.updateRenderer(t,0),uo(t,ho.CheckAndUpdate),mo(t,134217728,536870912,0),e=jn(t,512,768),fi(t,8388608|(e?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,jn(t,768,1024)}function ro(t,e,n,s,i,r,o,a,l,c,h,u,d){return 0===n?function(t,e,n,s,i,r,o,a,l,c,h,u){switch(201347067&e.flags){case 1:return function(t,e,n,s,i,r,o,a,l,c,h,u){const d=e.bindings.length;let p=!1;return d>0&&Lr(t,e,0,n)&&(p=!0),d>1&&Lr(t,e,1,s)&&(p=!0),d>2&&Lr(t,e,2,i)&&(p=!0),d>3&&Lr(t,e,3,r)&&(p=!0),d>4&&Lr(t,e,4,o)&&(p=!0),d>5&&Lr(t,e,5,a)&&(p=!0),d>6&&Lr(t,e,6,l)&&(p=!0),d>7&&Lr(t,e,7,c)&&(p=!0),d>8&&Lr(t,e,8,h)&&(p=!0),d>9&&Lr(t,e,9,u)&&(p=!0),p}(t,e,n,s,i,r,o,a,l,c,h,u);case 2:return function(t,e,n,s,i,r,o,a,l,c,h,u){let d=!1;const p=e.bindings,f=p.length;if(f>0&&ts(t,e,0,n)&&(d=!0),f>1&&ts(t,e,1,s)&&(d=!0),f>2&&ts(t,e,2,i)&&(d=!0),f>3&&ts(t,e,3,r)&&(d=!0),f>4&&ts(t,e,4,o)&&(d=!0),f>5&&ts(t,e,5,a)&&(d=!0),f>6&&ts(t,e,6,l)&&(d=!0),f>7&&ts(t,e,7,c)&&(d=!0),f>8&&ts(t,e,8,h)&&(d=!0),f>9&&ts(t,e,9,u)&&(d=!0),d){let d=e.text.prefix;f>0&&(d+=Yr(n,p[0])),f>1&&(d+=Yr(s,p[1])),f>2&&(d+=Yr(i,p[2])),f>3&&(d+=Yr(r,p[3])),f>4&&(d+=Yr(o,p[4])),f>5&&(d+=Yr(a,p[5])),f>6&&(d+=Yr(l,p[6])),f>7&&(d+=Yr(c,p[7])),f>8&&(d+=Yr(h,p[8])),f>9&&(d+=Yr(u,p[9]));const g=zn(t,e.nodeIndex).renderText;t.renderer.setValue(g,d)}return d}(t,e,n,s,i,r,o,a,l,c,h,u);case 16384:return function(t,e,n,s,i,r,o,a,l,c,h,u){const d=$n(t,e.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=e.bindings.length;return m>0&&Jn(t,e,0,n)&&(f=!0,g=pi(t,d,e,0,n,g)),m>1&&Jn(t,e,1,s)&&(f=!0,g=pi(t,d,e,1,s,g)),m>2&&Jn(t,e,2,i)&&(f=!0,g=pi(t,d,e,2,i,g)),m>3&&Jn(t,e,3,r)&&(f=!0,g=pi(t,d,e,3,r,g)),m>4&&Jn(t,e,4,o)&&(f=!0,g=pi(t,d,e,4,o,g)),m>5&&Jn(t,e,5,a)&&(f=!0,g=pi(t,d,e,5,a,g)),m>6&&Jn(t,e,6,l)&&(f=!0,g=pi(t,d,e,6,l,g)),m>7&&Jn(t,e,7,c)&&(f=!0,g=pi(t,d,e,7,c,g)),m>8&&Jn(t,e,8,h)&&(f=!0,g=pi(t,d,e,8,h,g)),m>9&&Jn(t,e,9,u)&&(f=!0,g=pi(t,d,e,9,u,g)),g&&p.ngOnChanges(g),65536&e.flags&&Un(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,s,i,r,o,a,l,c,h,u);case 32:case 64:case 128:return function(t,e,n,s,i,r,o,a,l,c,h,u){const d=e.bindings;let p=!1;const f=d.length;if(f>0&&ts(t,e,0,n)&&(p=!0),f>1&&ts(t,e,1,s)&&(p=!0),f>2&&ts(t,e,2,i)&&(p=!0),f>3&&ts(t,e,3,r)&&(p=!0),f>4&&ts(t,e,4,o)&&(p=!0),f>5&&ts(t,e,5,a)&&(p=!0),f>6&&ts(t,e,6,l)&&(p=!0),f>7&&ts(t,e,7,c)&&(p=!0),f>8&&ts(t,e,8,h)&&(p=!0),f>9&&ts(t,e,9,u)&&(p=!0),p){const p=qn(t,e.nodeIndex);let g;switch(201347067&e.flags){case 32:g=[],f>0&&g.push(n),f>1&&g.push(s),f>2&&g.push(i),f>3&&g.push(r),f>4&&g.push(o),f>5&&g.push(a),f>6&&g.push(l),f>7&&g.push(c),f>8&&g.push(h),f>9&&g.push(u);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=s),f>2&&(g[d[2].name]=i),f>3&&(g[d[3].name]=r),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=c),f>8&&(g[d[8].name]=h),f>9&&(g[d[9].name]=u);break;case 128:const t=n;switch(f){case 1:g=t.transform(n);break;case 2:g=t.transform(s);break;case 3:g=t.transform(s,i);break;case 4:g=t.transform(s,i,r);break;case 5:g=t.transform(s,i,r,o);break;case 6:g=t.transform(s,i,r,o,a);break;case 7:g=t.transform(s,i,r,o,a,l);break;case 8:g=t.transform(s,i,r,o,a,l,c);break;case 9:g=t.transform(s,i,r,o,a,l,c,h);break;case 10:g=t.transform(s,i,r,o,a,l,c,h,u)}}p.value=g}return p}(t,e,n,s,i,r,o,a,l,c,h,u);default:throw"unreachable"}}(t,e,s,i,r,o,a,l,c,h,u,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let s=!1;for(let i=0;i<n.length;i++)Lr(t,e,i,n[i])&&(s=!0);return s}(t,e,n);case 2:return function(t,e,n){const s=e.bindings;let i=!1;for(let r=0;r<n.length;r++)ts(t,e,r,n[r])&&(i=!0);if(i){let i="";for(let t=0;t<n.length;t++)i+=Yr(n[t],s[t]);i=e.text.prefix+i;const r=zn(t,e.nodeIndex).renderText;t.renderer.setValue(r,i)}return i}(t,e,n);case 16384:return function(t,e,n){const s=$n(t,e.nodeIndex),i=s.instance;let r=!1,o=void 0;for(let a=0;a<n.length;a++)Jn(t,e,a,n[a])&&(r=!0,o=pi(t,s,e,a,n[a],o));return o&&i.ngOnChanges(o),65536&e.flags&&Un(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),r}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const s=e.bindings;let i=!1;for(let r=0;r<n.length;r++)ts(t,e,r,n[r])&&(i=!0);if(i){const i=qn(t,e.nodeIndex);let r;switch(201347067&e.flags){case 32:r=n;break;case 64:r={};for(let i=0;i<n.length;i++)r[s[i].name]=n[i];break;case 128:const t=n[0],e=n.slice(1);r=t.transform(...e)}i.value=r}return i}(t,e,n);default:throw"unreachable"}}(t,e,s)}function oo(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const s=e.nodes[n];if(4&s.flags){const e=Hn(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const s=e[n];s.state|=32,ss(s,t)}}else 0==(4&s.childFlags)&&(n+=s.childCount)}}function ao(t,e,n,s,i,r,o,a,l,c,h,u,d){return 0===n?function(t,e,n,s,i,r,o,a,l,c,h,u){const d=e.bindings.length;d>0&&es(t,e,0,n),d>1&&es(t,e,1,s),d>2&&es(t,e,2,i),d>3&&es(t,e,3,r),d>4&&es(t,e,4,o),d>5&&es(t,e,5,a),d>6&&es(t,e,6,l),d>7&&es(t,e,7,c),d>8&&es(t,e,8,h),d>9&&es(t,e,9,u)}(t,e,s,i,r,o,a,l,c,h,u,d):function(t,e,n){for(let s=0;s<n.length;s++)es(t,e,s,n[s])}(t,e,s),!1}function lo(t,e){if(Wn(t,e.nodeIndex).dirty)throw Fn(Yn.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function co(t){if(!(128&t.state)){if(po(t,ho.Destroy),uo(t,ho.Destroy),fi(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=rs(t);if(e){const n=e.template._projectedViews;n&&(Vt(n,n.indexOf(t)),Yn.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(Hn(t,n).renderElement):2&e.flags?t.renderer.destroyNode(zn(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&Wn(t,n).destroy()}}(t),ls(t)&&t.renderer.destroy(),t.state|=128}}const ho=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function uo(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];33554432&i.flags?fo(Hn(t,s).componentView,e):0==(33554432&i.childFlags)&&(s+=i.childCount)}}function po(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];if(16777216&i.flags){const n=Hn(t,s).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)fo(n[t],e)}else 0==(16777216&i.childFlags)&&(s+=i.childCount)}}function fo(t,e){const n=t.state;switch(e){case ho.CheckNoChanges:0==(128&n)&&(12==(12&n)?so(t):64&n&&go(t,ho.CheckNoChangesProjectedViews));break;case ho.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?so(t):64&n&&go(t,e));break;case ho.CheckAndUpdate:0==(128&n)&&(12==(12&n)?io(t):64&n&&go(t,ho.CheckAndUpdateProjectedViews));break;case ho.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?io(t):64&n&&go(t,e));break;case ho.Destroy:co(t);break;case ho.CreateViewNodes:no(t)}}function go(t,e){po(t,e),uo(t,e)}function mo(t,e,n,s){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const i=t.def.nodes.length;for(let r=0;r<i;r++){const i=t.def.nodes[r];if(i.flags&e&&i.flags&n)switch(Yn.setCurrentNode(t,i.nodeIndex),s){case 0:Br(t,i);break;case 1:lo(t,i)}i.childFlags&e&&i.childFlags&n||(r+=i.childCount)}}let _o=!1;function yo(t,e,n,s,i,r){const o=i.injector.get(un);return Xr(bo(t,i,o,e,n),s,r)}function vo(t,e,n,s,i,r){const o=i.injector.get(un),a=bo(t,i,new Xo(o),e,n),l=Io(s);return Ko(Lo.create,Xr,null,[a,l,r])}function bo(t,e,n,s,i){const r=e.injector.get(gn),o=e.injector.get(qt),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:s,selectorOrNode:i,sanitizer:r,rendererFactory:n,renderer:a,errorHandler:o}}function wo(t,e,n,s){const i=Io(n);return Ko(Lo.create,Gr,null,[t,e,i,s])}function Co(t,e,n,s){return n=ko.get(e.element.componentProvider.provider.token)||Io(n),Ko(Lo.create,Jr,null,[t,e,n,s])}function So(t,e,n,s){return Ys(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===Eo.size||(t.providers.forEach(t=>{const s=Eo.get(t.token);3840&t.flags&&s&&(e=!0,n=n||s.deprecatedBehavior)}),t.modules.forEach(t=>{xo.forEach((s,i)=>{ut(i).providedIn===t&&(e=!0,n=n||s.deprecatedBehavior)})})),{hasOverrides:e,hasDeprecatedOverrides:n}}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const s=t.providers[e];n&&(s.flags|=4096);const i=Eo.get(s.token);i&&(s.flags=-3841&s.flags|i.flags,s.deps=ds(i.deps),s.value=i.value)}if(xo.size>0){let e=new Set(t.modules);xo.forEach((s,i)=>{if(e.has(ut(i).providedIn)){let e={token:i,flags:s.flags|(n?4096:0),deps:ds(s.deps),value:s.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Kn(i)]=e}})}}(t=t.factory(()=>Qn)),t):t}(s))}const Eo=new Map,xo=new Map,ko=new Map;function To(t){let e;Eo.set(t.token,t),"function"==typeof t.token&&(e=ut(t.token))&&"function"==typeof e.providedIn&&xo.set(t.token,t)}function Ao(t,e){const n=gs(e.viewDefFactory),s=gs(n.nodes[0].element.componentView);ko.set(t,s)}function Do(){Eo.clear(),xo.clear(),ko.clear()}function Io(t){if(0===Eo.size)return t;const e=function(t){const e=[];let n=null;for(let s=0;s<t.nodes.length;s++){const i=t.nodes[s];1&i.flags&&(n=i),n&&3840&i.flags&&Eo.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>Qn);for(let s=0;s<e.length;s++)n(t,e[s]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=Eo.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=ds(n.deps),t.value=n.value)}}}}function Ro(t,e,n,s,i,r,o,a,l,c,h,u,d){const p=t.def.nodes[e];return ro(t,p,n,s,i,r,o,a,l,c,h,u,d),224&p.flags?qn(t,e).value:void 0}function Po(t,e,n,s,i,r,o,a,l,c,h,u,d){const p=t.def.nodes[e];return ao(t,p,n,s,i,r,o,a,l,c,h,u,d),224&p.flags?qn(t,e).value:void 0}function Oo(t){return Ko(Lo.detectChanges,io,null,[t])}function Mo(t){return Ko(Lo.checkNoChanges,so,null,[t])}function No(t){return Ko(Lo.destroy,co,null,[t])}const Lo=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();let Fo,Vo,Bo;function jo(t,e){Vo=t,Bo=e}function Uo(t,e,n,s){return jo(t,e),Ko(Lo.handleEvent,t.def.handleEvent,null,[t,e,n,s])}function zo(t,e){if(128&t.state)throw Bn(Lo[Fo]);return jo(t,Wo(t,0)),t.def.updateDirectives((function(t,n,s,...i){const r=t.def.nodes[n];return 0===e?$o(t,r,s,i):qo(t,r,s,i),16384&r.flags&&jo(t,Wo(t,n)),224&r.flags?qn(t,r.nodeIndex).value:void 0}),t)}function Ho(t,e){if(128&t.state)throw Bn(Lo[Fo]);return jo(t,Yo(t,0)),t.def.updateRenderer((function(t,n,s,...i){const r=t.def.nodes[n];return 0===e?$o(t,r,s,i):qo(t,r,s,i),3&r.flags&&jo(t,Yo(t,n)),224&r.flags?qn(t,r.nodeIndex).value:void 0}),t)}function $o(t,e,n,s){if(ro(t,e,n,...s)){const o=1===n?s[0]:s;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const s=e.bindings[t],a=o[t];8&s.flags&&(n[(i=s.nonMinifiedName,r=void 0,r=i.replace(/[$@]/g,"_"),`ng-reflect-${i=r.replace(Ae,(...t)=>"-"+t[1].toLowerCase())}`)]=De(a))}const s=e.parent,a=Hn(t,s.nodeIndex).renderElement;if(s.element.name)for(let e in n){const s=n[e];null!=s?t.renderer.setAttribute(a,e,s):t.renderer.removeAttribute(a,e)}else t.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var i,r}function qo(t,e,n,s){ao(t,e,n,...s)}function Wo(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function Yo(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class Qo{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,s=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&s;)n=os(s),s=s.parent;this.elDef=n,this.elView=s}get elOrCompView(){return Hn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return $s(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){Zo(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&Zo(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!ls(t);)t=t.parent;return t.parent?Hn(t.parent,os(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?as(this.view,this.nodeDef):as(this.elView,this.elDef)}logError(t,...e){let n,s;2&this.nodeDef.flags?(n=this.view.def,s=this.nodeDef.nodeIndex):(n=this.elView.def,s=this.elDef.nodeIndex);const i=function(t,e){let n=-1;for(let s=0;s<=e;s++)3&t.nodes[s].flags&&n++;return n}(n,s);let r=-1;n.factory(()=>(r++,r===i?t.error.bind(t,...e):Qn)),r<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function Zo(t,e,n){for(let s in e.references)n[s]=Ur(t,e,e.references[s])}function Ko(t,e,n,s){const i=Fo,r=Vo,o=Bo;try{Fo=t;const a=e.apply(n,s);return Vo=r,Bo=o,Fo=i,a}catch(a){if(zt(a)||!Vo)throw a;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Vn(t,e),t}(a,Go())}}function Go(){return Vo?new Qo(Vo,Bo):null}class Xo{constructor(t){this.delegate=t}createRenderer(t,e){return new Jo(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Jo{constructor(t){this.delegate=t,this.debugContextFactory=Go,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const e=Sr(t);!function(t){wr.delete(t.nativeNode)}(e),e instanceof vr&&(e.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),s=this.createDebugContext(n);if(s){const e=new br(n,null,s);e.name=t,Er(e)}return n}createComment(t){const e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&Er(new vr(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&Er(new vr(e,null,n)),e}appendChild(t,e){const n=Sr(t),s=Sr(e);n&&s&&n instanceof br&&n.addChild(s),this.delegate.appendChild(t,e)}insertBefore(t,e,n){const s=Sr(t),i=Sr(e),r=Sr(n);s&&i&&s instanceof br&&s.insertBefore(r,i),this.delegate.insertBefore(t,e,n)}removeChild(t,e){const n=Sr(t),s=Sr(e);n&&s&&n instanceof br&&n.removeChild(s),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),s=Go();return s&&Er(new br(n,null,s)),n}setAttribute(t,e,n,s){const i=Sr(t);i&&i instanceof br&&(i.attributes[s?s+":"+e:e]=n),this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){const s=Sr(t);s&&s instanceof br&&(s.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=Sr(t);n&&n instanceof br&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=Sr(t);n&&n instanceof br&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,s){const i=Sr(t);i&&i instanceof br&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){const s=Sr(t);s&&s instanceof br&&(s.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const s=Sr(t);s&&s instanceof br&&(s.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const s=Sr(t);s&&s.listeners.push(new yr(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function ta(t,e,n){return new ea(t,e,n)}class ea extends Lt{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){!function(){if(_o)return;_o=!0;const t=se()?{setCurrentNode:jo,createRootView:vo,createEmbeddedView:wo,createComponentView:Co,createNgModuleRef:So,overrideProvider:To,overrideComponentView:Ao,clearOverrides:Do,checkAndUpdateView:Oo,checkNoChangesView:Mo,destroyView:No,createDebugContext:(t,e)=>new Qo(t,e),handleEvent:Uo,updateDirectives:zo,updateRenderer:Ho}:{setCurrentNode:()=>{},createRootView:yo,createEmbeddedView:Gr,createComponentView:Jr,createNgModuleRef:Ys,overrideProvider:Qn,overrideComponentView:Qn,clearOverrides:Qn,checkAndUpdateView:io,checkNoChangesView:so,destroyView:co,createDebugContext:(t,e)=>new Qo(t,e),handleEvent:(t,e,n,s)=>t.def.handleEvent(t,e,n,s),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Ro:Po,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Ro:Po,t)};Yn.setCurrentNode=t.setCurrentNode,Yn.createRootView=t.createRootView,Yn.createEmbeddedView=t.createEmbeddedView,Yn.createComponentView=t.createComponentView,Yn.createNgModuleRef=t.createNgModuleRef,Yn.overrideProvider=t.overrideProvider,Yn.overrideComponentView=t.overrideComponentView,Yn.clearOverrides=t.clearOverrides,Yn.checkAndUpdateView=t.checkAndUpdateView,Yn.checkNoChangesView=t.checkNoChangesView,Yn.destroyView=t.destroyView,Yn.resolveDep=ui,Yn.createDebugContext=t.createDebugContext,Yn.handleEvent=t.handleEvent,Yn.updateDirectives=t.updateDirectives,Yn.updateRenderer=t.updateRenderer,Yn.dirtyParentQueries=Vr}();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),s={};for(const i in t.providersByKey)s[i]=t.providersByKey[i];return{factory:t.factory,scope:t.scope,providers:e,modules:n,providersByKey:s}}(gs(this._ngModuleDefFactory));return Yn.createNgModuleRef(this.moduleType,t||Me.NULL,this._bootstrapComponents,e)}}class na{}let sa=(()=>{class t{}return t.MENU_ITEMS=[{Label:"Maps",Url:"/landingPage",Disabled:"false",Icon:"map"},{Label:"Iteneraries",Url:"",Disabled:"false",Icon:"public"},{Label:"Top Lists",Url:"www",Disabled:"true",Icon:"sort"},{Label:"Albums",Url:"www",Disabled:"true",Icon:"photo_library"},{Label:"Friends",Url:"www",Disabled:"true",Icon:"photo_library"},{Label:"Profile",Url:"www",Disabled:"true",Icon:"account_circle"}],t})();class ia{constructor(t,e,n){this.router=t,this.activatedRoute=e,this.overlayContainer=n,this.Items=new Array,this.openedSubject=new x,this.Color="black",this.HoverColor="#FF9849",this.ButtonBgColor="white",this.ButtonHoverBgColor="red",this.FontColor="#8b868d"}ngOnInit(){this.Items=sa.MENU_ITEMS}toggleSide(){this.openedSubject.next(!1)}NavItemClicked(t){console.log(t)}}let ra=null;function oa(){return ra}const aa=new Et("DocumentToken");let la=(()=>{class t{}return t.\u0275prov=ht({factory:ca,token:t,providedIn:"platform"}),t})();function ca(){return Rt(ua)}const ha=new Et("Location Initialized");let ua=(()=>{class t extends la{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=oa().getLocation(),this._history=oa().getHistory()}getBaseHrefFromDOM(){return oa().getBaseHref(this._doc)}onPopState(t){oa().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){oa().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){da()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){da()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275prov=ht({factory:pa,token:t,providedIn:"platform"}),t})();function da(){return!!window.history.pushState}function pa(){return new ua(Rt(aa))}function fa(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function ga(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ma(t){return t&&"?"!==t[0]?"?"+t:t}let _a=(()=>{class t{}return t.\u0275prov=ht({factory:ya,token:t,providedIn:"root"}),t})();function ya(t){const e=Rt(aa).location;return new ba(Rt(la),e&&e.origin||"")}const va=new Et("appBaseHref");class ba extends _a{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return fa(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ma(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+ma(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+ma(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class wa extends _a{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=fa(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let i=this.prepareExternalUrl(n+ma(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){let i=this.prepareExternalUrl(n+ma(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}let Ca=(()=>{class t{constructor(t,e){this._subject=new Si,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ga(Ea(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+ma(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ea(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ma(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ma(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.normalizeQueryParams=ma,t.joinWithSlash=fa,t.stripTrailingSlash=ga,t.\u0275prov=ht({factory:Sa,token:t,providedIn:"root"}),t})();function Sa(){return new Ca(Rt(_a),Rt(la))}function Ea(t){return t.replace(/\/index.html$/,"")}const xa=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class ka{}class Ta extends ka{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=wi(e);if(n)return n;const s=e.split("-")[0];if(n=wi(s),n)return n;if("en"===s)return vi;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Ci.PluralCase]}(e||this.locale)(t)){case xa.Zero:return"zero";case xa.One:return"one";case xa.Two:return"two";case xa.Few:return"few";case xa.Many:return"many";default:return"other"}}}function Aa(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}class Da{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ze(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${gt(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}class Ia{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Ra{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){se()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ia(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new Pa(t,n);e.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new Pa(t,i);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}class Pa{constructor(t,e){this.record=t,this.view=e}}class Oa{constructor(t,e){this._viewContainer=t,this._context=new Ma,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Na("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Na("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(t,e){return!0}}class Ma{constructor(){this.$implicit=null,this.ngIf=null}}function Na(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${gt(e)}'.`)}class La{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}class Fa{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}class Va{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new La(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}class Ba{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,s]=t.split(".");null!=(e=null!=e&&s?`${e}${s}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}class ja{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ua{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const za=new Ua,Ha=new ja;class $a{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):We(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Qe.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(t){if(Ge(t))return za;if(Xe(t))return Ha;throw Error(`InvalidPipeArgument: '${t}' for pipe '${gt($a)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}class qa{}function Wa(t){return"browser"===t}function Ya(t){return"server"===t}let Qa=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new Za(Rt(aa),window,Rt(qt))}),t})();class Za{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],s-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}function Ka(...t){let e=t[t.length-1];return T(e)?(t.pop(),j(t,e)):Y(t)}class Ga extends x{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}const Xa=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Ja={};function tl(...t){let e=null,n=null;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),Y(t,n).lift(new el(e))}class el{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new nl(t,this.resultSelector))}}class nl extends L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Ja),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(N(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,s,i){const r=this.values,o=this.toRespond?r[n]===Ja?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const sl=new b(t=>t.complete());function il(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):sl}function rl(t){return new b(e=>{let n;try{n=t()}catch(s){return void e.error(s)}return(n?U(n):il()).subscribe(e)})}function ol(){return W(1)}function al(t,e){return function(n){return n.lift(new ll(t,e))}}class ll{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new cl(t,this.predicate,this.thisArg))}}class cl extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const hl=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ul(t){return function(e){return 0===t?il():e.lift(new dl(t))}}class dl{constructor(t){if(this.total=t,this.total<0)throw new hl}call(t,e){return e.subscribe(new pl(t,this.total))}}class pl extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(t):e[s%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(s[i])}}t.complete()}}function fl(t=_l){return e=>e.lift(new gl(t))}class gl{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ml(t,this.errorFactory))}}class ml extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function _l(){return new Xa}function yl(t=null){return e=>e.lift(new vl(t))}class vl{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new bl(t,this.defaultValue))}}class bl extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function wl(t,e){const n=arguments.length>=2;return s=>s.pipe(t?al((e,n)=>t(e,n,s)):q,ul(1),n?yl(e):fl(()=>new Xa))}function Cl(t){return function(e){const n=new Sl(t),s=e.lift(n);return n.caught=s}}class Sl{constructor(t){this.selector=t}call(t,e){return e.subscribe(new El(t,this.selector,this.caught))}}class El extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new A(this,void 0,void 0);this.add(s);const i=N(this,n,void 0,void 0,s);i!==s&&this.add(i)}}}function xl(t){return e=>0===t?il():e.lift(new kl(t))}class kl{constructor(t){if(this.total=t,this.total<0)throw new hl}call(t,e){return e.subscribe(new Tl(t,this.total))}}class Tl extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Al(t,e){const n=arguments.length>=2;return s=>s.pipe(t?al((e,n)=>t(e,n,s)):q,xl(1),n?yl(e):fl(()=>new Xa))}class Dl{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Il(t,this.predicate,this.thisArg,this.source))}}class Il extends f{constructor(t,e,n,s){super(t),this.predicate=e,this.thisArg=n,this.source=s,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Rl(t,e){return"function"==typeof e?n=>n.pipe(Rl((n,s)=>U(t(n,s)).pipe(F((t,i)=>e(n,t,s,i))))):e=>e.lift(new Pl(t))}class Pl{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ol(t,this.project))}}class Ol extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e,t,n)}_innerSub(t,e,n){const s=this.innerSubscription;s&&s.unsubscribe();const i=new A(this,e,n),r=this.destination;r.add(i),this.innerSubscription=N(this,t,void 0,void 0,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,s,i){this.destination.next(e)}}function Ml(...t){return ol()(Ka(...t))}function Nl(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>Ml(t,n,e)):e=>Ml(t,e)}function Ll(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new Fl(t,e,n))}}class Fl{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Vl(t,this.accumulator,this.seed,this.hasSeed))}}class Vl extends f{constructor(t,e,n,s){super(t),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function Bl(t,e){return z(t,e,1)}function jl(t,e,n){return function(s){return s.lift(new Ul(t,e,n))}}class Ul{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new zl(t,this.nextOrObserver,this.error,this.complete))}}class zl extends f{constructor(t,e,n,i){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=i||_,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Hl(t){return e=>e.lift(new $l(t))}class $l{constructor(t){this.callback=t}call(t,e){return e.subscribe(new ql(t,this.callback))}}class ql extends f{constructor(t,e){super(t),this.add(new u(e))}}class Wl{constructor(t,e){this.id=t,this.url=e}}class Yl extends Wl{constructor(t,e,n="imperative",s=null){super(t,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ql extends Wl{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zl extends Wl{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kl extends Wl{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gl extends Wl{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xl extends Wl{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jl extends Wl{constructor(t,e,n,s,i){super(t,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tc extends Wl{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ec extends Wl{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nc{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sc{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ic{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rc{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oc{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ac{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lc{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class cc{}class hc{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function uc(t){return new hc(t)}function dc(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pc(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.length<t.length))return null;const i={};for(let r=0;r<s.length;r++){const e=s[r],n=t[r];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,s.length),posParams:i}}class fc{constructor(t,e){this.routes=t,this.module=e}}function gc(t,e=""){for(let n=0;n<t.length;n++){const s=t[n];mc(s,_c(e,s))}}function mc(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&gc(t.children,e)}function _c(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function yc(t){const e=t.children&&t.children.map(yc),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=cc),n}function vc(t,e){const n=Object.keys(t),s=Object.keys(e);if(!n||!s||n.length!=s.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!bc(t[i],e[i]))return!1;return!0}function bc(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function wc(t){return Array.prototype.concat.apply([],t)}function Cc(t){return t.length>0?t[t.length-1]:null}function Sc(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ec(t){return Xe(t)?t:Ge(t)?U(Promise.resolve(t)):Ka(t)}function xc(t,e,n){return n?function(t,e){return vc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Dc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>bc(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,s,i){if(n.segments.length>i.length)return!!Dc(n.segments.slice(0,i.length),i)&&!s.hasChildren();if(n.segments.length===i.length){if(!Dc(n.segments,i))return!1;for(const e in s.children){if(!n.children[e])return!1;if(!t(n.children[e],s.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),r=i.slice(n.segments.length);return!!Dc(n.segments,t)&&!!n.children.primary&&e(n.children.primary,s,r)}}(e,n,n.segments)}(t.root,e.root)}class kc{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=uc(this.queryParams)),this._queryParamMap}toString(){return Oc.serialize(this)}}class Tc{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Sc(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mc(this)}}class Ac{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=uc(this.parameters)),this._parameterMap}toString(){return jc(this)}}function Dc(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Ic(t,e){let n=[];return Sc(t.children,(t,s)=>{"primary"===s&&(n=n.concat(e(t,s)))}),Sc(t.children,(t,s)=>{"primary"!==s&&(n=n.concat(e(t,s)))}),n}class Rc{}class Pc{parse(t){const e=new qc(t);return new kc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return Mc(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",s=[];return Sc(e.children,(e,n)=>{"primary"!==n&&s.push(`${n}:${t(e,!1)}`)}),s.length>0?`${n}(${s.join("//")})`:n}{const n=Ic(e,(n,s)=>"primary"===s?[t(e.children.primary,!1)]:[`${s}:${t(n,!1)}`]);return`${Mc(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Lc(e)}=${Lc(t)}`).join("&"):`${Lc(e)}=${Lc(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Oc=new Pc;function Mc(t){return t.segments.map(t=>jc(t)).join("/")}function Nc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lc(t){return Nc(t).replace(/%3B/gi,";")}function Fc(t){return Nc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vc(t){return decodeURIComponent(t)}function Bc(t){return Vc(t.replace(/\+/g,"%20"))}function jc(t){return`${Fc(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Fc(t)}=${Fc(e[t])}`).join("")}`;var e}const Uc=/^[^\/()?;=#]+/;function zc(t){const e=t.match(Uc);return e?e[0]:""}const Hc=/^[^=?&#]+/,$c=/^[^?&#]+/;class qc{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tc([],{}):new Tc([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Tc(t,e)),n}parseSegment(){const t=zc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ac(Vc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=zc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=zc(this.remaining);t&&(n=t,this.capture(n))}t[Vc(e)]=Vc(n)}parseQueryParam(t){const e=function(t){const e=t.match(Hc);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($c);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const s=Bc(e),i=Bc(n);if(t.hasOwnProperty(s)){let e=t[s];Array.isArray(e)||(e=[e],t[s]=e),e.push(i)}else t[s]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=zc(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const r=this.parseChildren();e[i]=1===Object.keys(r).length?r.primary:new Tc([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Wc{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Yc(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Yc(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Qc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Qc(t,this._root).map(t=>t.value)}}function Yc(t,e){if(t===e.value)return e;for(const n of e.children){const e=Yc(t,n);if(e)return e}return null}function Qc(t,e){if(t===e.value)return[e];for(const n of e.children){const s=Qc(t,n);if(s.length)return s.unshift(e),s}return[]}class Zc{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Kc(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Gc extends Wc{constructor(t,e){super(t),this.snapshot=e,sh(this,t)}toString(){return this.snapshot.toString()}}function Xc(t,e){const n=function(t,e){const n=new eh([],{},{},"",{},"primary",e,null,t.root,-1,{});return new nh("",new Zc(n,[]))}(t,e),s=new Ga([new Ac("",{})]),i=new Ga({}),r=new Ga({}),o=new Ga({}),a=new Ga(""),l=new Jc(s,i,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new Gc(new Zc(l,[]),n)}class Jc{constructor(t,e,n,s,i,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=i,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(F(t=>uc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(F(t=>uc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function th(t,e="emptyOnly"){const n=t.pathFromRoot;let s=0;if("always"!==e)for(s=n.length-1;s>=1;){const t=n[s],e=n[s-1];if(t.routeConfig&&""===t.routeConfig.path)s--;else{if(e.component)break;s--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class eh{constructor(t,e,n,s,i,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=i,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=uc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=uc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nh extends Wc{constructor(t,e){super(e),this.url=t,sh(this,e)}toString(){return ih(this._root)}}function sh(t,e){e.value._routerState=t,e.children.forEach(e=>sh(t,e))}function ih(t){const e=t.children.length>0?` { ${t.children.map(ih).join(", ")} } `:"";return`${t.value}${e}`}function rh(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,vc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),vc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!vc(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),vc(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function oh(t,e){var n,s;return vc(t.params,e.params)&&Dc(n=t.url,s=e.url)&&n.every((t,e)=>vc(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||oh(t.parent,e.parent))}function ah(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function lh(t,e,n,s,i){let r={};return s&&Sc(s,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new kc(n.root===t?e:function t(e,n,s){const i={};return Sc(e.children,(e,r)=>{i[r]=e===n?s:t(e,n,s)}),new Tc(e.segments,i)}(n.root,t,e),r,i)}class ch{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ah(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(s&&s!==Cc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hh{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function uh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function dh(t,e,n){if(t||(t=new Tc([],{})),0===t.segments.length&&t.hasChildren())return ph(t,e,n);const s=function(t,e,n){let s=0,i=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(s>=n.length)return r;const e=t.segments[i],o=uh(n[s]),a=s<n.length-1?n[s+1]:null;if(i>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!_h(o,a,e))return r;s+=2}else{if(!_h(o,{},e))return r;s++}i++}return{match:!0,pathIndex:i,commandIndex:s}}(t,e,n),i=n.slice(s.commandIndex);if(s.match&&s.pathIndex<t.segments.length){const e=new Tc(t.segments.slice(0,s.pathIndex),{});return e.children.primary=new Tc(t.segments.slice(s.pathIndex),t.children),ph(e,0,i)}return s.match&&0===i.length?new Tc(t.segments,{}):s.match&&!t.hasChildren()?fh(t,e,n):s.match?ph(t,0,i):fh(t,e,n)}function ph(t,e,n){if(0===n.length)return new Tc(t.segments,{});{const s=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),i={};return Sc(s,(n,s)=>{null!==n&&(i[s]=dh(t.children[s],e,n))}),Sc(t.children,(t,e)=>{void 0===s[e]&&(i[e]=t)}),new Tc(t.segments,i)}}function fh(t,e,n){const s=t.segments.slice(0,e);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const t=gh(n[i].outlets);return new Tc(s,t)}if(0===i&&ah(n[0])){s.push(new Ac(t.segments[e].path,n[0])),i++;continue}const r=uh(n[i]),o=i<n.length-1?n[i+1]:null;r&&o&&ah(o)?(s.push(new Ac(r,mh(o))),i+=2):(s.push(new Ac(r,{})),i++)}return new Tc(s,{})}function gh(t){const e={};return Sc(t,(t,n)=>{null!==t&&(e[n]=fh(new Tc([],{}),0,t))}),e}function mh(t){const e={};return Sc(t,(t,n)=>e[n]=`${t}`),e}function _h(t,e,n){return t==n.path&&vc(e,n.parameters)}class yh{constructor(t,e,n,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),rh(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=Kc(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),Sc(s,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const s=t.value,i=e?e.value:null;if(s===i)if(s.component){const i=n.getContext(s.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const s=Kc(t),i=t.value.component?n.children:e;Sc(s,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const s=Kc(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new ac(t.value.snapshot))}),t.children.length&&this.forwardEvent(new rc(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,i=e?e.value:null;if(rh(s),s===i)if(s.component){const i=n.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(s.component){const e=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const t=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),vh(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=s,e.resolver=i,e.outlet&&e.outlet.activateWith(s,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function vh(t){rh(t.value),t.children.forEach(vh)}function bh(t){return"function"==typeof t}function wh(t){return t instanceof kc}class Ch{constructor(t){this.segmentGroup=t||null}}class Sh{constructor(t){this.urlTree=t}}function Eh(t){return new b(e=>e.error(new Ch(t)))}function xh(t){return new b(e=>e.error(new Sh(t)))}function kh(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Th{constructor(t,e,n,s,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Nt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(F(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Cl(t=>{if(t instanceof Sh)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ch)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(F(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Cl(t=>{if(t instanceof Ch)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const s=t.segments.length>0?new Tc([],{primary:t}):t;return new kc(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(F(t=>new Tc([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Ka({});const n=[],s=[],i={};return Sc(t,(t,r)=>{const o=e(r,t).pipe(F(t=>i[r]=t));"primary"===r?n.push(o):s.push(o)}),Ka.apply(null,n.concat(s)).pipe(ol(),wl(),F(()=>i))}(n.children,(n,s)=>this.expandSegmentGroup(t,e,s,n))}expandSegment(t,e,n,s,i,r){return Ka(...n).pipe(F(o=>this.expandSegmentAgainstRoute(t,e,n,o,s,i,r).pipe(Cl(t=>{if(t instanceof Ch)return Ka(null);throw t}))),ol(),Al(t=>!!t),Cl((t,n)=>{if(t instanceof Xa||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,s,i))return Ka(new Tc([],{}));throw new Ch(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,s,i,r,o){return Rh(s)!==r?Eh(e):void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r):Eh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,s){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xh(i):this.lineralizeSegments(n,i).pipe(z(n=>{const i=new Tc(n,{});return this.expandSegment(t,i,e,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ah(e,s,i);if(!o)return Eh(e);const h=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?xh(h):this.lineralizeSegments(s,h).pipe(z(s=>this.expandSegment(t,e,n,s.concat(i.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(F(t=>(n._loadedConfig=t,new Tc(s,{})))):Ka(new Tc(s,{}));const{matched:i,consumedSegments:r,lastChild:o}=Ah(e,n,s);if(!i)return Eh(e);const a=s.slice(o);return this.getChildConfig(t,n,s).pipe(z(t=>{const n=t.module,s=t.routes,{segmentGroup:i,slicedSegments:o}=function(t,e,n,s){return n.length>0&&function(t,e,n){return n.some(n=>Ih(t,e,n)&&"primary"!==Rh(n))}(t,n,s)?{segmentGroup:Dh(new Tc(e,function(t,e){const n={};n.primary=e;for(const s of t)""===s.path&&"primary"!==Rh(s)&&(n[Rh(s)]=new Tc([],{}));return n}(s,new Tc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ih(t,e,n))}(t,n,s)?{segmentGroup:Dh(new Tc(t.segments,function(t,e,n,s){const i={};for(const r of n)Ih(t,e,r)&&!s[Rh(r)]&&(i[Rh(r)]=new Tc([],{}));return Object.assign(Object.assign({},s),i)}(t,n,s,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,s);return 0===o.length&&i.hasChildren()?this.expandChildren(n,s,i).pipe(F(t=>new Tc(r,t))):0===s.length&&0===o.length?Ka(new Tc(r,{})):this.expandSegment(n,i,s,o,"primary",!0).pipe(F(t=>new Tc(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ka(new fc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ka(e._loadedConfig):function(t,e,n){const s=e.canLoad;return s&&0!==s.length?U(s).pipe(F(s=>{const i=t.get(s);let r;if(function(t){return t&&bh(t.canLoad)}(i))r=i.canLoad(e,n);else{if(!bh(i))throw new Error("Invalid CanLoad guard");r=i(e,n)}return Ec(r)})).pipe(ol(),(i=t=>!0===t,t=>t.lift(new Dl(i,void 0,t)))):Ka(!0);var i}(t.injector,e,n).pipe(z(n=>n?this.configLoader.load(t.injector,e).pipe(F(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(dc(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ka(new fc([],t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return Ka(n);if(s.numberOfChildren>1||!s.children.primary)return kh(t.redirectTo);s=s.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,s){const i=this.createSegmentGroup(t,e.root,n,s);return new kc(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Sc(t,(t,s)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[s]=e[i]}else n[s]=t}),n}createSegmentGroup(t,e,n,s){const i=this.createSegments(t,e.segments,n,s);let r={};return Sc(e.children,(e,i)=>{r[i]=this.createSegmentGroup(t,e,n,s)}),new Tc(i,r)}createSegments(t,e,n,s){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,s):this.findOrReturn(e,n))}findPosParam(t,e,n){const s=n[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let n=0;for(const s of e){if(s.path===t.path)return e.splice(n),s;n++}return t}}function Ah(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const s=(e.matcher||pc)(n,t,e);return s?{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,positionalParamSegments:s.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Dh(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Tc(t.segments.concat(e.segments),e.children)}return t}function Ih(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Rh(t){return t.outlet||"primary"}class Ph{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Oh{constructor(t,e){this.component=t,this.route=e}}function Mh(t,e,n){const s=t._root;return function t(e,n,s,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Kc(n);return e.children.forEach(e=>{!function(e,n,s,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=s?s.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Dc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Dc(t.url,e.url)||!vc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oh(t,e)||!vc(t.queryParams,e.queryParams);case"paramsChange":default:return!oh(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Ph(i)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:s,i,r),c&&r.canDeactivateChecks.push(new Oh(l&&l.outlet&&l.outlet.component||null,a))}else a&&Lh(n,l,r),r.canActivateChecks.push(new Ph(i)),t(e,null,o.component?l?l.children:null:s,i,r)}(e,o[e.value.outlet],s,i.concat([e.value]),r),delete o[e.value.outlet]}),Sc(o,(t,e)=>Lh(t,s.getContext(e),r)),r}(s,e?e._root:null,n,[s.value])}function Nh(t,e,n){const s=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(s?s.module.injector:n).get(t)}function Lh(t,e,n){const s=Kc(t),i=t.value;Sc(s,(t,s)=>{Lh(t,i.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Oh(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const Fh=Symbol("INITIAL_VALUE");function Vh(){return Rl(t=>tl(...t.map(t=>t.pipe(xl(1),Nl(Fh)))).pipe(Ll((t,e)=>{let n=!1;return e.reduce((t,s,i)=>{if(t!==Fh)return t;if(s===Fh&&(n=!0),!n){if(!1===s)return s;if(i===e.length-1||wh(s))return s}return t},t)},Fh),al(t=>t!==Fh),F(t=>wh(t)?t:!0===t),xl(1)))}function Bh(t,e){return null!==t&&e&&e(new oc(t)),Ka(!0)}function jh(t,e){return null!==t&&e&&e(new ic(t)),Ka(!0)}function Uh(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;return s&&0!==s.length?Ka(s.map(s=>rl(()=>{const i=Nh(s,e,n);let r;if(function(t){return t&&bh(t.canActivate)}(i))r=Ec(i.canActivate(e,t));else{if(!bh(i))throw new Error("Invalid CanActivate guard");r=Ec(i(e,t))}return r.pipe(Al())}))).pipe(Vh()):Ka(!0)}function zh(t,e,n){const s=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>rl(()=>Ka(e.guards.map(i=>{const r=Nh(i,e.node,n);let o;if(function(t){return t&&bh(t.canActivateChild)}(r))o=Ec(r.canActivateChild(s,t));else{if(!bh(r))throw new Error("Invalid CanActivateChild guard");o=Ec(r(s,t))}return o.pipe(Al())})).pipe(Vh())));return Ka(i).pipe(Vh())}class Hh{}class $h{constructor(t,e,n,s,i,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=r}recognize(){try{const t=Yh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new eh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Zc(n,e),i=new nh(this.url,s);return this.inheritParamsAndData(i._root),Ka(i)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=th(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Ic(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),s=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${s}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,s){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,s)}catch(i){if(!(i instanceof Hh))throw i}if(this.noLeftoversInUrl(e,n,s))return[];throw new Hh}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo)throw new Hh;if((t.outlet||"primary")!==s)throw new Hh;let i,r=[],o=[];if("**"===t.path){const r=n.length>0?Cc(n).parameters:{};i=new eh(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Kh(t),s,t.component,t,qh(e),Wh(e)+n.length,Gh(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Hh;return{consumedSegments:[],lastChild:0,parameters:{}}}const s=(e.matcher||pc)(n,t,e);if(!s)throw new Hh;const i={};Sc(s.posParams,(t,e)=>{i[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),i=new eh(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Kh(t),s,t.component,t,qh(e),Wh(e)+r.length,Gh(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Yh(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Zc(i,t)]}if(0===a.length&&0===c.length)return[new Zc(i,[])];const h=this.processSegment(a,l,c,"primary");return[new Zc(i,h)]}}function qh(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Wh(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Yh(t,e,n,s,i){if(n.length>0&&function(t,e,n){return n.some(n=>Qh(t,e,n)&&"primary"!==Zh(n))}(t,n,s)){const i=new Tc(e,function(t,e,n,s){const i={};i.primary=s,s._sourceSegment=t,s._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Zh(r)){const n=new Tc([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Zh(r)]=n}return i}(t,e,s,new Tc(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Qh(t,e,n))}(t,n,s)){const r=new Tc(t.segments,function(t,e,n,s,i,r){const o={};for(const a of s)if(Qh(t,n,a)&&!i[Zh(a)]){const n=new Tc([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Zh(a)]=n}return Object.assign(Object.assign({},i),o)}(t,e,n,s,t.children,i));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Tc(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Qh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zh(t){return t.outlet||"primary"}function Kh(t){return t.data||{}}function Gh(t){return t.resolve||{}}function Xh(t,e,n,s){const i=Nh(t,e,s);return Ec(i.resolve?i.resolve(e,n):i(e,n))}function Jh(t){return function(e){return e.pipe(Rl(e=>{const n=t(e);return n?U(n).pipe(F(()=>e)):U([e])}))}}class tu{}class eu{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const nu=new Et("ROUTES");class su{constructor(t,e,n,s){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(F(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new fc(wc(s.injector.get(nu)).map(yc),s)}))}loadModuleFactory(t){return"string"==typeof t?U(this.loader.load(t)):Ec(t()).pipe(z(t=>t instanceof Lt?Ka(t):U(this.compiler.compileModuleAsync(t))))}}class iu{}class ru{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function ou(t){throw t}function au(t,e,n){return e.parse("/")}function lu(t,e){return Ka(null)}class cu{constructor(t,e,n,s,i,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x,this.errorHandler=ou,this.malformedUriErrorHandler=au,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lu,afterPreactivation:lu},this.urlHandlingStrategy=new ru,this.routeReuseStrategy=new eu,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Nt),this.console=i.get(Mi);const l=i.get(Wi);this.isNgZoneEnabled=l instanceof Wi,this.resetConfig(a),this.currentUrlTree=new kc(new Tc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new su(r,o,t=>this.triggerEvent(new nc(t)),t=>this.triggerEvent(new sc(t))),this.routerState=Xc(this.currentUrlTree,this.rootComponentType),this.transitions=new Ga({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(al(t=>0!==t.id),F(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Rl(t=>{let n=!1,s=!1;return Ka(t).pipe(jl(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Rl(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ka(t).pipe(Rl(t=>{const n=this.transitions.getValue();return e.next(new Yl(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?sl:[t]}),Rl(t=>Promise.resolve(t)),(s=this.ngModule.injector,i=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Rl(t=>function(t,e,n,s,i){return new Th(t,e,n,s,i).apply()}(s,i,r,t.extractedUrl,o).pipe(F(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),jl(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,i){return function(r){return r.pipe(z(r=>function(t,e,n,s,i="emptyOnly",r="legacy"){return new $h(t,e,n,s,i,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),s,i).pipe(F(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),jl(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),jl(t=>{const n=new Gl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var s,i,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:i,restoredState:r,extras:o}=t,a=new Yl(n,this.serializeUrl(s),i,r);e.next(a);const l=Xc(s,this.rootComponentType).snapshot;return Ka(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),sl}),Jh(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),jl(t=>{const e=new Xl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),F(t=>Object.assign(Object.assign({},t),{guards:Mh(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(z(n=>{const{targetSnapshot:s,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Ka(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,s){return U(t).pipe(z(t=>function(t,e,n,s,i){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Ka(r.map(r=>{const o=Nh(r,e,i);let a;if(function(t){return t&&bh(t.canDeactivate)}(o))a=Ec(o.canDeactivate(t,e,n,s));else{if(!bh(o))throw new Error("Invalid CanDeactivate guard");a=Ec(o(t,e,n,s))}return a.pipe(Al())})).pipe(Vh()):Ka(!0)}(t.component,t.route,n,e,s)),Al(t=>!0!==t,!0))}(o,s,i,t).pipe(z(n=>n&&"boolean"==typeof n?function(t,e,n,s){return U(e).pipe(Bl(e=>U([jh(e.route.parent,s),Bh(e.route,s),zh(t,e.path,n),Uh(t,e.route,n)]).pipe(ol(),Al(t=>!0!==t,!0))),Al(t=>!0!==t,!0))}(s,r,t,e):Ka(n)),F(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),jl(t=>{if(wh(t.guardsResult)){const e=dc(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),jl(t=>{const e=new Jl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),al(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Zl(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Jh(t=>{if(t.guards.canActivateChecks.length)return Ka(t).pipe(jl(t=>{const e=new tc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(z(t=>{const{targetSnapshot:s,guards:{canActivateChecks:i}}=t;return i.length?U(i).pipe(Bl(t=>function(t,e,n,s){return function(t,e,n,s){const i=Object.keys(t);if(0===i.length)return Ka({});if(1===i.length){const r=i[0];return Xh(t[r],e,n,s).pipe(F(t=>({[r]:t})))}const r={};return U(i).pipe(z(i=>Xh(t[i],e,n,s).pipe(F(t=>(r[i]=t,t))))).pipe(wl(),F(()=>r))}(t._resolve,t,e,s).pipe(F(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),th(t,n).resolve),null)))}(t.route,s,e,n)),function(t,e){return arguments.length>=2?function(n){return y(Ll(t,e),ul(1),yl(e))(n)}:function(e){return y(Ll((e,n,s)=>t(e,n,s+1)),ul(1))(e)}}((t,e)=>t),F(e=>t)):Ka(t)}))}),jl(t=>{const e=new ec(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Jh(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),F(t=>{const e=function(t,e,n){const s=function t(e,n,s){if(s&&e.shouldReuseRoute(n.value,s.value.snapshot)){const i=s.value;i._futureSnapshot=n.value;const r=function(e,n,s){return n.children.map(n=>{for(const i of s.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,s);return new Zc(i,r)}{const s=e.retrieve(n.value);if(s){const t=s.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let s=0;s<e.children.length;++s)t(e.children[s],n.children[s])}(n,t),t}{const s=new Jc(new Ga((i=n.value).url),new Ga(i.params),new Ga(i.queryParams),new Ga(i.fragment),new Ga(i.data),i.outlet,i.component,i),r=n.children.map(n=>t(e,n));return new Zc(s,r)}}var i}(t,e._root,n?n._root:void 0);return new Gc(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),jl(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),F(t=>(new yh(r,t.targetRouterState,t.currentRouterState,o).activate(i),t))),jl({next(){n=!0},complete(){n=!0}}),Hl(()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new Zl(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Cl(n=>{if(s=!0,(i=n)&&i.ngNavigationCancelingError){const s=wh(n.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new Zl(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const s=new Kl(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var i;return sl}));var i,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",s=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,s,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){gc(t),this.config=t.map(yc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:s,fragment:i,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;se()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i;let h=null;if(o)switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=s||null}else h=r?this.currentUrlTree.queryParams:s||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,s,i){if(0===n.length)return lh(e.root,e.root,e,s,i);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ch(!0,0,t);let e=0,n=!1;const s=t.reduce((t,s,i)=>{if("object"==typeof s&&null!=s){if(s.outlets){const e={};return Sc(s.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(s.segmentPath)return[...t,s.segmentPath]}return"string"!=typeof s?[...t,s]:0===i?(s.split("/").forEach((s,i)=>{0==i&&"."===s||(0==i&&""===s?n=!0:".."===s?e++:""!=s&&t.push(s))}),t):[...t,s]},[]);return new ch(n,e,s)}(n);if(r.toRoot())return lh(e.root,new Tc([],{}),e,s,i);const o=function(t,e,n){if(t.isAbsolute)return new hh(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new hh(n.snapshot._urlSegment,!0,0);const s=ah(t.commands[0])?0:1;return function(t,e,n){let s=t,i=e,r=n;for(;r>i;){if(r-=i,s=s.parent,!s)throw new Error("Invalid number of '../'");i=s.segments.length}return new hh(s,!1,i-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?ph(o.segmentGroup,o.index,r.commands):dh(o.segmentGroup,o.index,r.commands);return lh(o.segmentGroup,a,e,s,i)}(l,this.currentUrlTree,t,h,c)}navigateByUrl(t,e={skipLocationChange:!1}){se()&&this.isNgZoneEnabled&&!Wi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=wh(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(wh(t))return xc(this.currentUrlTree,t,e);const n=this.parseUrl(t);return xc(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const s=t[n];return null!=s&&(e[n]=s),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Ql(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,s,i){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;i?(o=i.resolve,a=i.reject,l=i.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,s){const i=this.urlSerializer.serialize(t);s=s||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},s),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},s),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class hu{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new uu,this.attachRef=null}}class uu{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new hu,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class du{constructor(t,e,n,s,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Si,this.deactivateEvents=new Si,this.name=s||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,i=new pu(t,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class pu{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Jc?this.route:t===uu?this.childContexts:this.parent.get(t,e)}}class fu{}class gu{preload(t,e){return e().pipe(Cl(()=>Ka(null)))}}class mu{preload(t,e){return Ka(null)}}class _u{constructor(t,e,n,s,i){this.router=t,this.injector=s,this.preloadingStrategy=i,this.loader=new su(e,n,e=>t.triggerEvent(new nc(e)),e=>t.triggerEvent(new sc(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(al(t=>t instanceof Ql),Bl(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Nt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const s of e)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const t=s._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children));return U(n).pipe(W(),F(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}class yu{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Yl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ql&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof lc&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new lc(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const vu=new Et("ROUTER_CONFIGURATION"),bu=new Et("ROUTER_FORROOT_GUARD"),wu=[Ca,{provide:Rc,useClass:Pc},{provide:cu,useFactory:Au,deps:[Rc,uu,Ca,Me,pr,zi,nu,vu,[iu,new rt],[tu,new rt]]},uu,{provide:Jc,useFactory:Du,deps:[cu]},{provide:pr,useClass:mr},_u,mu,gu,{provide:vu,useValue:{enableTracing:!1}}];function Cu(){return new or("Router",cu)}class Su{constructor(t,e){}static forRoot(t,e){return{ngModule:Su,providers:[wu,Tu(t),{provide:bu,useFactory:ku,deps:[[cu,new rt,new at]]},{provide:vu,useValue:e||{}},{provide:_a,useFactory:xu,deps:[la,[new it(va),new rt],vu]},{provide:yu,useFactory:Eu,deps:[cu,Qa,vu]},{provide:fu,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:mu},{provide:or,multi:!0,useFactory:Cu},[Iu,{provide:ki,multi:!0,useFactory:Ru,deps:[Iu]},{provide:Ou,useFactory:Pu,deps:[Iu]},{provide:Oi,multi:!0,useExisting:Ou}]]}}static forChild(t){return{ngModule:Su,providers:[Tu(t)]}}}function Eu(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new yu(t,e,n)}function xu(t,e,n={}){return n.useHash?new wa(t,e):new ba(t,e)}function ku(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Tu(t){return[{provide:He,multi:!0,useValue:t},{provide:nu,multi:!0,useValue:t}]}function Au(t,e,n,s,i,r,o,a={},l,c){const h=new cu(null,t,e,n,s,i,r,wc(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=oa();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function Du(t){return t.routerState.root}class Iu{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new x}appInitializer(){return this.injector.get(ha,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(cu),s=this.injector.get(vu);if(this.isLegacyDisabled(s)||this.isLegacyEnabled(s))t(!0);else if("disabled"===s.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==s.initialNavigation)throw new Error(`Invalid initialNavigation options: '${s.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Ka(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(vu),n=this.injector.get(_u),s=this.injector.get(yu),i=this.injector.get(cu),r=this.injector.get(ur);t===r.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),s.init(),i.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}function Ru(t){return t.appInitializer.bind(t)}function Pu(t){return t.bootstrapListener.bind(t)}const Ou=new Et("Router Initializer");var Mu=Gn({encapsulation:2,styles:[],data:{}});function Nu(t){return Qr(0,[(t()(),Pr(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ni(1,212992,null,0,du,[uu,Nn,rn,[8,null],Ie],null,null)],(function(t,e){t(e,1,0)}),null)}function Lu(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"ng-component",[],null,null,null,Nu,Mu)),ni(1,49152,null,0,cc,[],null,null)],null,null)}var Fu=Ns("ng-component",cc,Lu,{},{},[]);function Vu(t){return null!=t&&"false"!==`${t}`}function Bu(t,e=0){return ju(t)?Number(t):e}function ju(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Uu(t){return Array.isArray(t)?t:[t]}function zu(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Hu(t){return t instanceof cn?t.nativeElement:t}function $u(t,e,n,i){return s(n)&&(i=n,n=void 0),i?$u(t,e,n).pipe(F(t=>l(t)?i(...t):i(t))):new b(s=>{!function t(e,n,s,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,r),o=()=>t.removeEventListener(n,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,i,r)}i.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class qu extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Wu extends qu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,s=void 0;try{this.work(t)}catch(i){n=!0,s=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class Yu extends Wu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}let Qu=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Zu extends Qu{constructor(t,e=Qu.now){super(t,()=>Zu.delegate&&Zu.delegate!==this?Zu.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Zu.delegate&&Zu.delegate!==this?Zu.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class Ku extends Zu{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s<i&&(t=e.shift()));if(this.active=!1,n){for(;++s<i&&(t=e.shift());)t.unsubscribe();throw n}}}const Gu=new Ku(Yu);class Xu{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Ju(t,this.compare,this.keySelector))}}class Ju extends f{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const td=new Zu(Wu);class ed{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new nd(t,this.durationSelector))}}class nd extends L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=N(this,n);!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function sd(t){return!l(t)&&t-parseFloat(t)+1>=0}function id(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function rd(t,e=td){return n=()=>function(t=0,e,n){let s=-1;return sd(e)?s=Number(e)<1?1:Number(e):T(e)&&(n=e),T(n)||(n=td),new b(e=>{const i=sd(t)?t:+t-n.now();return n.schedule(id,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new ed(n))};var n}function od(t){return e=>e.lift(new ad(t))}class ad{constructor(t){this.notifier=t}call(t,e){const n=new ld(t),s=N(n,this.notifier);return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class ld extends L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,s,i){this.seenValue=!0,this.complete()}notifyComplete(){}}class cd extends Wu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class hd extends Zu{}const ud=new hd(cd);function dd(t,e){return new b(e?n=>e.schedule(pd,0,{error:t,subscriber:n}):e=>e.error(t))}function pd({error:t,subscriber:e}){e.error(t)}let fd,gd=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Ka(this.value);case"E":return dd(this.error);case"C":return il()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class md extends f{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(md.dispatch,this.delay,new _d(t,this.destination)))}_next(t){this.scheduleMessage(gd.createNext(t))}_error(t){this.scheduleMessage(gd.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(gd.createComplete()),this.unsubscribe()}}class _d{constructor(t,e){this.notification=t,this.destination=e}}class yd extends x{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new vd(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new S(this,t)),s&&t.add(t=new md(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||ud).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class vd{constructor(t,e){this.time=t,this.value=e}}try{fd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(UE){fd=!1}let bd,wd,Cd,Sd=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Wa(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&&!fd)&&"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 t.\u0275prov=ht({factory:function(){return new t(Rt(Pi,8))},token:t,providedIn:"root"}),t})();class Ed{}function xd(t){return function(){if(null==bd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>bd=!0}))}finally{bd=bd||!1}return bd}()?t:!!t.capture}function kd(){if("object"!=typeof document||!document)return 0;if(null==wd){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),s=n.style;s.width="2px",s.height="1px",t.appendChild(n),document.body.appendChild(t),wd=0,0===t.scrollLeft&&(t.scrollLeft=1,wd=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return wd}let Td=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(rd(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ka()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(al(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>$u(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Wi),Rt(Sd))},token:t,providedIn:"root"}),t})();class Ad{constructor(t,e,n,s){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=s,this._destroyed=new x,this._elementScrolled=new b(t=>this.ngZone.runOutsideAngular(()=>$u(this.elementRef.nativeElement,"scroll").pipe(od(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=kd()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==kd()?t.left=t.right:1==kd()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==kd()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==kd()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}let Dd=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?Q($u(window,"resize"),$u(window,"orientationchange")):Ka(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(rd(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Sd),Rt(Wi))},token:t,providedIn:"root"}),t})();class Id{}function Rd(){throw Error("Host already has a portal attached")}class Pd{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Rd(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Od extends Pd{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class Md extends Pd{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Nd extends Pd{constructor(t){super(),this.element=t instanceof cn?t.nativeElement:t}}class Ld{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Rd(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Od?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Md?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Nd?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fd extends Ld{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class Vd extends Ld{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Si,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}class Bd{}class jd{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}function Ud(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class zd{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=zu(-this._previousScrollPosition.left),t.style.top=zu(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Hd(){return Error("Scroll strategy has already been attached.")}class $d{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Hd();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class qd{enable(){}disable(){}attach(){}}function Wd(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function Yd(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Qd{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Hd();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Wd(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Zd=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new qd,this.close=t=>new $d(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new zd(this._viewportRuler,this._document),this.reposition=t=>new Qd(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Td),Rt(Dd),Rt(Wi),Rt(aa))},token:t,providedIn:"root"}),t})();class Kd{constructor(t){if(this.scrollStrategy=new qd,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Gd{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Xd{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Jd(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function tp(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let ep=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(aa))},token:t,providedIn:"root"}),t})();const np=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let sp=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||np){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),np?e.setAttribute("platform","test"):t||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275prov=ht({factory:function(){return new t(Rt(aa),Rt(Sd))},token:t,providedIn:"root"}),t})();class ip{constructor(t,e,n,s,i,r,o,a){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=i,this._keyboardDispatcher=r,this._document=o,this._location=a,this._backdropElement=null,this._backdropClick=new x,this._attachments=new x,this._detachments=new x,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEventsObservable=new b(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new x,this._keydownEventSubscriptions=0,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=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.asObservable().pipe(xl(1)).subscribe(()=>{this.hasAttached()&&this.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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._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()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=zu(this._config.width),t.height=zu(this._config.height),t.minWidth=zu(this._config.minWidth),t.minHeight=zu(this._config.minHeight),t.maxWidth=zu(this._config.maxWidth),t.maxHeight=zu(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;Uu(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(od(Q(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const rp=/([A-Za-z%]+)$/;class op{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,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 x,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),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(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;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();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,s=[];let i;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ap(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){let{x:i,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(i+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-i,i+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=lp(this._overlayRef.getConfig().minHeight),o=lp(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,i=Math.max(t.x+e.width-s.right,0),r=Math.max(t.y+e.height-s.bottom,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=s.width?a||-i:t.x<this._viewportMargin?s.left-n.left-t.x:0,c=e.height<=s.height?o||-r:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new Xd(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let i,r,o,a,l,c;if("top"===e.overlayY)r=t.y,i=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=2*e,r=t.y-e,i>s&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=zu(n.height),s.top=zu(n.top),s.bottom=zu(n.bottom),s.width=zu(n.width),s.left=zu(n.left),s.right=zu(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=zu(t)),i&&(s.maxWidth=zu(i))}this._lastBoundingBoxSize=n,ap(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ap(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ap(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();ap(n,this._getExactOverlayY(e,t,s)),ap(n,this._getExactOverlayX(e,t,s))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(s?n.maxHeight=zu(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=zu(r.maxWidth):i&&(n.maxWidth="")),ap(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=`${this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)}px`:s.top=zu(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}px`:i.left=zu(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Yd(t,n),isOriginOutsideView:Wd(t,n),isOverlayClipped:Yd(e,n),isOverlayOutsideView:Wd(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{tp("originX",t.originX),Jd("originY",t.originY),tp("overlayX",t.overlayX),Jd("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Uu(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof cn)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function ap(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function lp(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(rp);return n&&"px"!==n?null:parseFloat(e)}return t||null}class cp{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new op(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const i=new Gd(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class hp{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let up=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new hp}connectedTo(t,e,n){return new cp(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new op(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Dd),Rt(aa),Rt(Sd),Rt(sp))},token:t,providedIn:"root"}),t})(),dp=0;class pp{constructor(t,e,n,s,i,r,o,a,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new Kd(t);return i.direction=i.direction||this._directionality.value,new ip(s,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${dp++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ur)),new Fd(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}const fp=new Et("cdk-connected-overlay-scroll-strategy");function gp(t){return()=>t.scrollStrategies.reposition()}class mp{}const _p=new Et("cdk-dir-doc",{providedIn:"root",factory:function(){return Pt(aa)}});let yp=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Si,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275prov=ht({factory:function(){return new t(Rt(_p,8))},token:t,providedIn:"root"}),t})();class vp{}class bp{}function wp(t,e=null){return{type:2,steps:t,options:e}}function Cp(t){return{type:6,styles:t,offset:null}}function Sp(t){Promise.resolve(null).then(t)}class Ep{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Sp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xp{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const i=this.players.length;0==i?Sp(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class kp{constructor(){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}}function Tp(){throw Error("Attempting to attach dialog content after content is already attached")}class Ap extends Ld{constructor(t,e,n,s,i){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=i,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new Si,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&Tp(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=i.ariaLabelledBy||null,this._document=s}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&Tp(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&Tp(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}let Dp=0;class Ip{constructor(t,e,n=`mat-dialog-${Dp++}`){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new x,this._afterClosed=new x,this._beforeClosed=new x,this._state=0,e._id=n,e._animationStateChanged.pipe(al(t=>"done"===t.phaseName&&"enter"===t.toState),xl(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(al(t=>"done"===t.phaseName&&"exit"===t.toState),xl(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(al(t=>27===t.keyCode&&!this.disableClose&&!Ud(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(al(t=>"start"===t.phaseName),xl(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const Rp=new Et("MatDialogData"),Pp=new Et("mat-dialog-default-options"),Op=new Et("mat-dialog-scroll-strategy");function Mp(t){return()=>t.scrollStrategies.block()}class Np{constructor(t,e,n,s,i,r,o){this._overlay=t,this._injector=e,this._defaultOptions=s,this._parentDialog=r,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new x,this._afterOpenedAtThisLevel=new x,this._ariaHiddenElements=new Map,this.afterAllClosed=rl(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Nl(void 0))),this._scrollStrategy=i}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new kp)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),s=this._attachDialogContainer(n,e),i=this._attachDialogContent(t,s,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(i),i.afterClosed().subscribe(()=>this._removeOpenDialog(i)),this.afterOpened.next(i),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Kd({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=Me.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:kp,useValue:e}]}),s=new Od(Ap,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(s).instance}_attachDialogContent(t,e,n,s){const i=new Ip(n,e,s.id);if(s.hasBackdrop&&n.backdropClick().subscribe(()=>{i.disableClose||i.close()}),t instanceof On)e.attachTemplatePortal(new Md(t,null,{$implicit:s.data,dialogRef:i}));else{const n=this._createInjector(s,i,e),r=e.attachComponentPortal(new Od(t,s.viewContainerRef,n));i.componentInstance=r.instance}return i.updateSize(s.width,s.height).updatePosition(s.position),i}_createInjector(t,e,n){const s=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=[{provide:Ap,useValue:n},{provide:Rp,useValue:t.data},{provide:Ip,useValue:e}];return!t.direction||s&&s.get(yp,null)||i.push({provide:yp,useValue:{value:t.direction,change:Ka()}}),Me.create({parent:s||this._injector,providers:i})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let s=e[n];s===t||"SCRIPT"===s.nodeName||"STYLE"===s.nodeName||s.hasAttribute("aria-live")||(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}class Lp{}function Fp(t,e=td){return n=>n.lift(new Vp(t,e))}class Vp{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Bp(t,this.dueTime,this.scheduler))}}class Bp extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(jp,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function jp(t){t.debouncedNext()}let Up=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(UE){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Hp(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let s=t.nodeName.toLowerCase(),i=Hp(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===s)return!1;if("audio"===s){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===s){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==s||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||zp(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Sd))},token:t,providedIn:"root"}),t})();function zp(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Hp(t){if(!zp(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class $p{constructor(t,e,n,s,i=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated `+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated attribute `+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.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",t),se()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const 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}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(xl(1)).subscribe(t)}}let qp=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new $p(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Up),Rt(Wi),Rt(aa))},token:t,providedIn:"root"}),t})();class Wp{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Vu(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Vu(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}"undefined"!=typeof Element&&Element;const Yp=new Et("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Qp=new Et("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Zp=(()=>{class t{constructor(t,e,n,s){this._ngZone=e,this._defaultOptions=s,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let s,i;return 1===e.length&&"number"==typeof e[0]?i=e[0]:[s,i]=e,this.clear(),clearTimeout(this._previousTimeout),s||(s=n&&n.politeness?n.politeness:"polite"),null==i&&n&&(i=n.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof i&&(this._previousTimeout=setTimeout(()=>this.clear(),i))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Yp,8),Rt(Wi),Rt(aa),Rt(Qp,8))},token:t,providedIn:"root"}),t})();class Kp{constructor(t,e,n,s){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=s,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}const Gp=xd({passive:!0,capture:!0});let Xp=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(t,e=!1){if(!this._platform.isBrowser)return Ka(null);const n=Hu(t);if(this._elementInfo.has(n)){let t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}let s={unlisten:()=>{},checkChildren:e,subject:new x};this._elementInfo.set(n,s),this._incrementMonitoredElementCount();let i=t=>this._onFocus(t,n),r=t=>this._onBlur(t,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",i,!0),n.addEventListener("blur",r,!0)}),s.unlisten=()=>{n.removeEventListener("focus",i,!0),n.removeEventListener("blur",r,!0)},s.subject.asObservable()}stopMonitoring(t){const e=Hu(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,n){const s=Hu(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==t.target)return;let s=this._origin;s||(s=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,Gp),document.addEventListener("mousedown",this._documentMousedownListener,Gp),document.addEventListener("touchstart",this._documentTouchstartListener,Gp),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Gp),document.removeEventListener("mousedown",this._documentMousedownListener,Gp),document.removeEventListener("touchstart",this._documentTouchstartListener,Gp),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Wi),Rt(Sd))},token:t,providedIn:"root"}),t})();class Jp{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Si,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}let tf=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Sd),Rt(aa))},token:t,providedIn:"root"}),t})();class ef{constructor(t){t._applyBodyHighContrastModeCssClasses()}}const nf=new mn("9.1.1");class sf extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new sf,ra||(ra=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=of||(of=document.querySelector("base"),of)?of.getAttribute("href"):null;return null==e?null:(n=e,rf||(rf=document.createElement("a")),rf.setAttribute("href",n),"/"===rf.pathname.charAt(0)?rf.pathname:"/"+rf.pathname);var n}resetBaseElement(){of=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Aa(document.cookie,t)}}let rf,of=null;const af=new Et("TRANSITION_ID"),lf=[{provide:ki,useFactory:function(t,e,n){return()=>{n.get(Ti).donePromise.then(()=>{const n=oa();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[af,aa,Me],multi:!0}];class cf{static init(){var t;t=new cf,ir=t}addToWindow(t){St.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},St.getAllAngularTestabilities=()=>t.getAllTestabilities(),St.getAllAngularRootElements=()=>t.getAllRootElements(),St.frameworkStabilizers||(St.frameworkStabilizers=[]),St.frameworkStabilizers.push(t=>{const e=St.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?oa().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}function hf(t,e){"undefined"!=typeof COMPILED&&COMPILED||((St.ng=St.ng||{})[t]=e)}const uf=(()=>({ApplicationRef:ur,NgZone:Wi}))();function df(t){return Cr(t)}const pf=new Et("EventManagerPlugins");class ff{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}class gf{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=oa().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}class mf{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}class _f extends mf{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>oa().remove(t))}}const yf={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/"},vf=/%COMP%/g;function bf(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?bf(t,i,n):(i=i.replace(vf,t),n.push(i))}return n}function wf(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class Cf{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Sf(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Bt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ef(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case Bt.Native:case Bt.ShadowDom:return new xf(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=bf(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class Sf{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const i=yf[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=yf[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&dn.DashCase?t.style.setProperty(e,n,s&dn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&dn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,wf(n)):this.eventManager.addEventListener(t,e,wf(n))}}class Ef extends Sf{constructor(t,e,n,s){super(t),this.component=n;const i=bf(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(vf,s+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(vf,t)}(s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class xf extends Sf{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===Bt.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=bf(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}class kf extends gf{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}const Tf={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Af=new Et("HammerGestureConfig"),Df=new Et("HammerLoader");class If{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}class Rf extends gf{constructor(t,e,n,s){super(t),this._config=e,this.console=n,this.loader=s}supports(t){return!(!Tf.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(t,e,n){const s=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let s=!1,i=()=>{s=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=()=>{});s||(i=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom `+"Hammer.JS loader failed."),i=()=>{}}),()=>{i()}}return s.runOutsideAngular(()=>{const i=this._config.buildHammer(t),r=function(t){s.runGuarded((function(){n(t)}))};return i.on(e,r),()=>{i.off(e,r),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}const Pf=["alt","control","meta","shift"],Of={"\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"},Mf={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"},Nf={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class Lf extends gf{constructor(t){super(t)}supports(t){return null!=Lf.parseEventName(t)}addEventListener(t,e,n){const s=Lf.parseEventName(e),i=Lf.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oa().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;const s=Lf._normalizeKey(e.pop());let i="";if(Pf.forEach(t=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=s,0!=e.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=i,r}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Mf.hasOwnProperty(e)&&(e=Mf[e]))}return Of[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Pf.forEach(s=>{s!=n&&(0,Nf[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(t,e,n){return s=>{Lf.getEventFullKey(s)===t&&n.runGuarded(()=>e(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}let Ff=(()=>{class t{}return t.\u0275prov=ht({factory:function(){return Rt(Vf)},token:t,providedIn:"root"}),t})(),Vf=(()=>{class t extends Ff{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case xe.NONE:return e;case xe.HTML:return Jt(e,"HTML")?Xt(e):function(t,e){let n=null;try{Se=Se||new ie(t);let s=e?String(e):"";n=Se.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Se.getInertBodyElement(s)}while(s!==r);const o=new ve,a=o.sanitizeChildren(Ee(n)||n);return se()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Ee(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case xe.STYLE:return Jt(e,"Style")?Xt(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(Te);return e&&ae(e[1])===e[1]||t.match(ke)&&function(t){let e=!0,n=!0;for(let s=0;s<t.length;s++){const i=t.charAt(s);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(se()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}(e);case xe.SCRIPT:if(Jt(e,"Script"))return Xt(e);throw new Error("unsafe value used in a script context");case xe.URL:return te(e),Jt(e,"URL")?Xt(e):ae(String(e));case xe.RESOURCE_URL:if(Jt(e,"ResourceURL"))return Xt(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Yt(t)}bypassSecurityTrustStyle(t){return new Qt(t)}bypassSecurityTrustScript(t){return new Zt(t)}bypassSecurityTrustUrl(t){return new Kt(t)}bypassSecurityTrustResourceUrl(t){return new Gt(t)}}return t.\u0275prov=ht({factory:function(){return t=Rt(xt),new Vf(t.get(aa));var t},token:t,providedIn:"root"}),t})();function Bf(){return new qt}const jf=ar(xr,"browser",[{provide:Pi,useValue:"browser"},{provide:Ri,useValue:function(){sf.makeCurrent(),cf.init()},multi:!0},{provide:aa,useFactory:function(){return function(t){jt=t}(document),document},deps:[]}]);class Uf{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:Uf,providers:[{provide:Ai,useValue:t.appId},{provide:af,useExisting:Ai},lf]}}}"undefined"!=typeof window&&window;const zf=new mn("9.1.1"),Hf=new Et("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});class $f{constructor(t,e){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checksAreEnabled(){return se()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle))return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&zf.full!==nf.full&&console.warn("The Angular Material version ("+zf.full+") does not match the Angular CDK version ("+nf.full+").\nPlease ensure the versions of these two packages exactly match.")}}function qf(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Vu(t)}}}function Wf(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function Yf(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Vu(t)}}}function Qf(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}class Zf{constructor(){this._localeChanges=new x}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),s=this.isValid(e);return n&&s?!this.compareDate(t,e):n==s}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Kf=new Et("mat-date-formats");let Gf;try{Gf="undefined"!=typeof Intl}catch(UE){Gf=!1}let Xf=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Jf{}class tg{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const eg={enterDuration:450,exitDuration:400},ng=xd({passive:!0});class sg{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=function(t){return 0===t.buttons}(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},this._onTouchStart=t=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},s.isBrowser&&(this._containerElement=Hu(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},eg),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+i*i)}(t,e,s),o=t-s.left,a=e-s.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-r}px`,c.style.top=`${a-r}px`,c.style.height=`${2*r}px`,c.style.width=`${2*r}px`,null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new tg(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign(Object.assign({},eg),t.config.animation);n.style.transitionDuration=`${s.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Hu(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,n)=>{e.addEventListener(n,t,ng)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,ng)})}}const ig=new Et("mat-ripple-global-options");class rg{constructor(t,e,n,s,i){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new sg(this,e,t,n),"NoopAnimations"===i&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}class og{}class ag{}class lg{}var cg=Gn({encapsulation:2,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;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"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function hg(t){return Qr(0,[(t()(),Rr(0,null,null,0))],null,null)}function ug(t){return Qr(0,[Fr(402653184,1,{_portalOutlet:0}),(t()(),Rr(16777216,null,null,1,null,hg)),ni(2,212992,[[1,4]],0,Vd,[rn,Nn,aa],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function dg(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],(function(t,e,n){var s=!0;return"component:@dialogContainer.start"===e&&(s=!1!==Ws(t,1)._onAnimationStart(n)&&s),"component:@dialogContainer.done"===e&&(s=!1!==Ws(t,1)._onAnimationDone(n)&&s),s}),ug,cg)),ni(1,49152,null,0,Ap,[cn,qp,Ie,[2,aa],kp],null,null)],null,(function(t,e){t(e,0,0,Ws(e,1)._id,Ws(e,1)._config.role,Ws(e,1)._config.ariaLabel?null:Ws(e,1)._ariaLabelledBy,Ws(e,1)._config.ariaLabel,Ws(e,1)._config.ariaDescribedBy||null,Ws(e,1)._state)}))}var pg=Ns("mat-dialog-container",Ap,dg,{},{},[]);function fg(...t){if(1===t.length){const e=t[0];if(l(e))return gg(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return gg(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return gg(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(F(t=>e(...t)))}return gg(t,null)}function gg(t,e){return new b(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=U(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}function mg(t){return null==t||0===t.length}const _g=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class yg{static min(t){return e=>{if(mg(e.value)||mg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(mg(e.value)||mg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return mg(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return mg(t.value)||_g.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(mg(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return yg.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(mg(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(vg);return 0==e.length?null:function(t){return wg(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(vg);return 0==e.length?null:function(t){return fg(function(t,e){return e.map(e=>e(t))}(t,e).map(bg)).pipe(F(wg))}}}function vg(t){return null!=t}function bg(t){const e=Ge(t)?U(t):t;if(!Xe(e))throw new Error("Expected validator to return Promise or Observable.");return e}function wg(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Cg(t){return t.validate?e=>t.validate(e):t}function Sg(t){return t.validate?e=>t.validate(e):t}class Eg{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}function xg(t){const e=Tg(t)?t.validators:t;return Array.isArray(e)?null!=(n=e)?yg.compose(n.map(Cg)):null:e||null;var n}function kg(t,e){const n=Tg(e)?e.asyncValidators:t;return Array.isArray(n)?null!=(s=n)?yg.composeAsync(s.map(Sg)):null:n||null;var s}function Tg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ag{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=xg(t)}setAsyncValidators(t){this.asyncValidator=kg(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.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:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||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)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=bg(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof Ig?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof Rg&&s.at(t)||null}),s}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Si,this.statusChanges=new Si}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Tg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Dg extends Ag{constructor(t=null,e,n){super(xg(e),kg(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ig extends Ag{constructor(t,e,n){super(xg(e),kg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Dg?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,s)=>{e=e||this.contains(s)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Rg extends Ag{constructor(t,e,n){super(xg(e),kg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Dg?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Pg=new Et("NgModelWithFormControlWarning");class Og{}class Mg{group(t,e=null){const n=this._reduceControls(t);let s=null,i=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Ig(n,{asyncValidators:i,updateOn:r,validators:s})}control(t,e,n){return new Dg(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new Rg(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Dg||t instanceof Ig||t instanceof Rg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}class Ng{}class Lg{static withConfig(t){return{ngModule:Lg,providers:[{provide:Pg,useValue:t.warnOnNgModelWithFormControl}]}}}function Fg(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let Vg=(()=>{class t{constructor(){this.changes=new x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Bg{constructor(t,e,n,s,i={}){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=s,this.cssClasses=i}}class jg{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Si}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:s}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?s-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/s}%`),!e&&this._cellWidth||(this._cellWidth=`${100/s}%`)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(xl(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}class Ug{constructor(t,e,n,s){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=s,this._rerenderSubscription=u.EMPTY,this.selectedChange=new Si,this._userSelection=new Si,this.activeDateChange=new Si,!this._dateAdapter)throw Fg("DateAdapter");if(!this._dateFormats)throw Fg("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nl(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(s)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,s=this._firstWeekOffset;n<t;n++,s++){7==s&&(this._weeks.push([]),s=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),i=this._shouldEnableDate(t),r=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(t):void 0;this._weeks[this._weeks.length-1].push(new Bg(n+1,e[n],r,i,o))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}class zg{constructor(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=u.EMPTY,this.selectedChange=new Si,this.yearSelected=new Si,this.activeDateChange=new Si,!this._dateAdapter)throw Fg("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Hg(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nl(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-$g(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<24;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-$g(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-$g(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return $g(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new Bg(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}function Hg(t,e,n,s,i){const r=t.getYear(e),o=t.getYear(n),a=qg(t,s,i);return Math.floor((r-a)/24)===Math.floor((o-a)/24)}function $g(t,e,n,s){return((t.getYear(e)-qg(t,n,s))%24+24)%24}function qg(t,e,n){let s=0;return n?s=t.getYear(n)-24+1:e&&(s=t.getYear(e)),s}class Wg{constructor(t,e,n,s){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=s,this._rerenderSubscription=u.EMPTY,this.selectedChange=new Si,this.monthSelected=new Si,this.activeDateChange=new Si,!this._dateAdapter)throw Fg("DateAdapter");if(!this._dateFormats)throw Fg("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nl(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const n=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new Bg(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>s}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<s}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}class Yg{constructor(t,e,n,s,i){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=s,this.calendar.stateChanges.subscribe(()=>i.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-$g(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,s)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Hg(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}class Qg{constructor(t,e,n,s){if(this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Si,this.yearSelected=new Si,this.monthSelected=new Si,this._userSelection=new Si,this.stateChanges=new x,!this._dateAdapter)throw Fg("DateAdapter");if(!this._dateFormats)throw Fg("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new Od(this.headerComponent||Yg),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e.ngAfterContentInit()}_dateSelected(t){t&&!this._dateAdapter.sameDate(t,this.selected)&&this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}const Zg=new Et("mat-datepicker-scroll-strategy");function Kg(t){return()=>t.scrollStrategies.reposition()}class Gg{constructor(t){this._elementRef=t}}const Xg=Wf(Gg);class Jg extends Xg{constructor(t,e){super(t),this._changeDetectorRef=e,this._animationState="enter",this._animationDone=new x}ngAfterViewInit(){this._calendar.focusActiveCell()}ngOnDestroy(){this._animationDone.complete()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}class tm{}let em=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),nm=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Hu(t);return new b(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new x,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275prov=ht({factory:function(){return new t(Rt(em))},token:t,providedIn:"root"}),t})();class sm{}const im=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class rm{constructor(t){this._elementRef=t}}const om=Wf(qf(Yf(rm)));class am extends om{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of im)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}class lm{}function cm(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hm(t){switch(t.length){case 0:return new Ep;case 1:return t[0];default:return new xp(t)}}function um(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function dm(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&pm(n,"start",t)));break;case"done":t.onDone(()=>s(n&&pm(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&pm(n,"destroy",t)))}}function pm(t,e,n){const s=n.totalTime,i=fm(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function fm(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function gm(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function mm(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let _m=(t,e)=>!1,ym=(t,e)=>!1,vm=(t,e,n)=>[];const bm=cm();(bm||"undefined"!=typeof Element)&&(_m=(t,e)=>t.contains(e),ym=(()=>{if(bm||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):ym}})(),vm=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let wm=null,Cm=!1;const Sm=ym,Em=_m,xm=vm;class km{validateStyleProperty(t){return function(t){wm||(wm=("undefined"!=typeof document?document.body:null)||{},Cm=!!wm.style&&"WebkitAppearance"in wm.style);let e=!0;return wm.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in wm.style,!e&&Cm)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in wm.style),e}(t)}matchesElement(t,e){return Sm(t,e)}containsElement(t,e){return Em(t,e)}query(t,e,n){return xm(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new Ep(n,s)}}let Tm=(()=>{class t{}return t.NOOP=new km,t})();function Am(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Dm(parseFloat(e[1]),e[2])}function Dm(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Im(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=Dm(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=Dm(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function Rm(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Pm(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else Rm(t,n);return n}function Om(t,e,n){return n?e+":"+n+";":""}function Mm(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=Om(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Om(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Nm(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=Hm(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),cm()&&Mm(t))}function Lm(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Hm(e);t.style[n]=""}),cm()&&Mm(t))}function Fm(t){return Array.isArray(t)?1==t.length?t[0]:wp(t):t}const Vm=new RegExp("{{\\s*(.+?)\\s*}}","g");function Bm(t){let e=[];if("string"==typeof t){let n;for(;n=Vm.exec(t);)e.push(n[1]);Vm.lastIndex=0}return e}function jm(t,e,n){const s=t.toString(),i=s.replace(Vm,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),i=""),i.toString()});return i==s?t:i}function Um(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const zm=/-+([a-z0-9])/g;function Hm(t){return t.replace(zm,(...t)=>t[1].toUpperCase())}function $m(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function qm(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(Qm(i,o)),"<"!=r[0]||"*"==i&&"*"==o||e.push(Qm(o,i))}(t,n,e)):n.push(t),n}const Wm=new Set(["true","1"]),Ym=new Set(["false","0"]);function Qm(t,e){const n=Wm.has(t)||Ym.has(t),s=Wm.has(e)||Ym.has(e);return(i,r)=>{let o="*"==t||t==i,a="*"==e||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?Wm.has(t):Ym.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?Wm.has(e):Ym.has(e)),o&&a}}const Zm=new RegExp("s*:selfs*,?","g");function Km(t,e,n){return new Gm(t).build(e,n)}class Gm{constructor(t){this._driver=t}build(t,e){const n=new Xm(e);return this._resetContextStyleTimingState(n),$m(this,Fm(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(Jm(t)){const e=t;Object.keys(e).forEach(t=>{Bm(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=Um(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=$m(this,Fm(t.animation),e);return{type:1,matchers:qm(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:t_(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>$m(this,t,e)),options:t_(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=$m(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:t_(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return e_(Im(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=e_(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||Im(s,e),e_(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:Cp({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=Cp(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(Jm(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=Bm(t);i.length&&i.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Jm(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Jm(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=h>0?s==u?1:h*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:$m(this,Fm(t.animation),e),options:t_(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:t_(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:t_(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Zm,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,gm(e.collectedStyles,e.currentQuerySelector,{});const o=$m(this,Fm(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:t_(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Im(t.timings,e.errors,!0);return{type:12,animation:$m(this,Fm(t.animation),e),timings:n,options:null}}}class Xm{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Jm(t){return!Array.isArray(t)&&"object"==typeof t}function t_(t){var e;return t?(t=Rm(t)).params&&(t.params=(e=t.params)?Rm(e):null):t={},t}function e_(t,e,n){return{duration:t,delay:e,easing:n}}function n_(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class s_{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const i_=new RegExp(":enter","g"),r_=new RegExp(":leave","g");function o_(t,e,n,s,i,r={},o={},a,l,c=[]){return(new a_).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class a_{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new s_;const h=new c_(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),$m(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[n_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?Am(n.duration):null,r=null!=n.delay?Am(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),$m(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=l_);const t=Am(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>$m(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?Am(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),$m(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Im(e.params?jm(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?Am(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=l_);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),$m(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;$m(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const l_={};class c_{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=l_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new h_(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=Am(n.duration)),null!=n.delay&&(s.delay=Am(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=jm(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,i=new c_(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=l_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new u_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(i_,"."+this._enterClassName)).replace(r_,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class h_{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new h_(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]="*"})):Pm(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=jm(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=Pm(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):"*"==s&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?Um(t.values()):[],r=e.size?Um(e.values()):[];if(n){const t=s[0],e=Rm(t);t.offset=0,e.offset=1,s=[t,e]}return n_(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class u_ extends h_{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=Pm(t[0],!1);a.offset=0,i.push(a);const l=Pm(t[0],!1);l.offset=d_(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=Pm(t[s],!1);o.offset=d_((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return n_(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function d_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class p_{}class f_ extends p_{normalizePropertyName(t,e){return Hm(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(g_[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const g_=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),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(",")))();function m_(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const __={};class y_{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||__,d=this.buildStyles(n,o&&o.params||__,h),p=a&&a.params||__,f=this.buildStyles(s,p,h),g=new Set,m=new Map,_=new Map,y="void"===s,v={params:Object.assign(Object.assign({},u),p)},b=c?[]:o_(t,e,this.ast.animation,i,r,d,f,v,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return m_(e,this._triggerName,n,s,y,d,f,[],[],m,_,w,h);b.forEach(t=>{const n=t.element,s=gm(m,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=gm(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const C=Um(g.values());return m_(e,this._triggerName,n,s,y,d,f,b,C,m,_,w)}}class v_{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=Rm(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=jm(r,s,e)),n[t]=r})}}),n}}class b_{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new v_(t.style,t.options&&t.options.params||{})}),w_(this.states,"true","1"),w_(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new y_(t,e,this.states))}),this.fallbackTransition=new y_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function w_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const C_=new s_;class S_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=Km(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,i=um(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=o_(this._driver,e,i,"ng-enter","ng-leave",{},{},n,C_,s),r.forEach(t=>{const e=gm(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=hm(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,s){const i=fm(e,"","","");return dm(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const E_=[],x_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},k_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class T_{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=Rm(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const A_=new T_("void");class D_{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,L_(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=gm(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=gm(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(L_(t,"ng-trigger"),L_(t,"ng-trigger-"+e),a[e]=A_),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new R_(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(L_(t,"ng-trigger"),L_(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new T_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=A_),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Lm(t,n),Nm(t,s)})}return}const c=gm(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(L_(t,"ng-animate-queued"),r.onStart(()=>{F_(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&hm(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const i=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||A_,o=new T_("void"),a=new R_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==x_||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){L_(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=fm(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,dm(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class I_{constructor(t,e,n){this.bodyNode=t,this.driver=e,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new D_(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(P_(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!P_(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),L_(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),F_(t,"ng-animate-disabled"))}removeNode(t,e,n,s){if(P_(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return P_(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return hm(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=x_,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)L_(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?hm(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new s_,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=N_(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n="ng-enter"+f++;p.set(e,n),t.forEach(t=>L_(t,n))});const g=[],m=new Set,_=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const t=this.collectedLeaveElements[I],e=t.__ng_removed;e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):_.add(t))}const y=new Map,v=N_(u,Array.from(m));v.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>L_(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>F_(t,n))}),v.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>F_(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(b.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(!f.errors||!f.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>Lm(i,f.fromStyles)),e.onDestroy(()=>Nm(i,f.toStyles)),void s.push(e)):(f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>gm(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))}));w.push(f)});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{gm(C,e,[]).push(t),t.destroy()})});const E=g.filter(t=>B_(t,a,l)),x=new Map;M_(x,this.driver,_,l,"*").forEach(t=>{B_(t,a,l)&&E.push(t)});const k=new Map;d.forEach((t,e)=>{M_(k,this.driver,new Set(t),a,"!")}),E.forEach(t=>{const e=x.get(t),n=k.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],A=[],D={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Nm(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=D;if(S.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,i,k,x);if(r.setRealPlayer(n),t===D)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=hm(e)),s.push(r)}}else Lm(e,o.fromStyles),r.onDestroy(()=>Nm(e,o.toStyles)),A.push(r),c.has(e)&&s.push(r)}),A.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=hm(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let I=0;I<g.length;I++){const t=g[I],e=t.__ng_removed;if(F_(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,".ng-animating",!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?V_(this,t,s):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||"void"==i;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=gm(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Lm(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new Ep(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const i=e[s];i instanceof xp?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||E_).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),g=i.get(u),m=r.get(u),_=um(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&h.add(u),p){const e=new R_(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{gm(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>L_(t,"ng-animating"));const d=hm(u);return d.onDestroy(()=>{c.forEach(t=>F_(t,"ng-animating")),Nm(a,e.toStyles)}),h.forEach(t=>{gm(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ep(t.duration,t.delay)}}class R_{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ep,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>dm(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){gm(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function P_(t){return t&&1===t.nodeType}function O_(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function M_(t,e,n,s,i){const r=[];n.forEach(t=>r.push(O_(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=k_,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>O_(t,r[a++])),o}function N_(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=i.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:s.has(o)?1:t(o),i.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function L_(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function F_(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function V_(t,e,n){hm(n).onDone(()=>t.processLeaveNode(e))}function B_(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class j_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new I_(t,e,n),this._timelineEngine=new S_(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=Km(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new b_(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=mm(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=mm(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}class U_ extends bp{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Bt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?wp(t):t;return $_(this._renderer,null,e,"register",[n]),new z_(e,this._renderer)}}class z_ extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new H_(this._id,t,e||{},this._renderer)}}class H_{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return $_(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function $_(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}class q_{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new W_("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new Y_(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}class W_{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Y_ extends W_{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return"@"!=i.charAt(0)&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}class Q_ extends j_{constructor(t,e,n){super(t.body,e,n)}}function Z_(){return new f_}function K_(t,e,n){return new q_(t,e,n)}const G_=new Et("AnimationModuleType");class X_{}var J_=Gn({encapsulation:2,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .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[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-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[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[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[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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n"],data:{}});function ty(t){return Qr(2,[Fr(671088640,1,{ripple:0}),(t()(),Pr(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),zr(null,0),(t()(),Pr(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),ni(4,212992,[[1,4]],0,rg,[cn,Wi,Sd,[2,ig],[2,G_]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Pr(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())}),(function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,Ws(e,4).unbounded)}))}var ey=Gn({encapsulation:2,styles:[],data:{}});function ny(t){return Qr(2,[(t()(),Pr(0,0,null,null,12,"div",[["class","mat-calendar-header"]],null,null,null,null,null)),(t()(),Pr(1,0,null,null,11,"div",[["class","mat-calendar-controls"]],null,null,null,null,null)),(t()(),Pr(2,0,null,null,4,"button",[["cdkAriaLive","polite"],["class","mat-calendar-period-button mat-focus-indicator"],["mat-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.currentPeriodClicked()&&s),s}),ty,J_)),ni(3,180224,null,0,am,[cn,Xp,[2,G_]],null,null),ni(4,147456,null,0,Kp,[cn,Zp,nm,Wi],{politeness:[0,"politeness"]},null),(t()(),qr(5,0,[" "," "])),(t()(),Pr(6,0,null,0,0,"div",[["class","mat-calendar-arrow"]],[[2,"mat-calendar-invert",null]],null,null,null,null)),(t()(),Pr(7,0,null,null,0,"div",[["class","mat-calendar-spacer"]],null,null,null,null,null)),zr(null,0),(t()(),Pr(9,0,null,null,1,"button",[["class","mat-calendar-previous-button mat-focus-indicator"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.previousClicked()&&s),s}),ty,J_)),ni(10,180224,null,0,am,[cn,Xp,[2,G_]],{disabled:[0,"disabled"]},null),(t()(),Pr(11,0,null,null,1,"button",[["class","mat-calendar-next-button mat-focus-indicator"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.nextClicked()&&s),s}),ty,J_)),ni(12,180224,null,0,am,[cn,Xp,[2,G_]],{disabled:[0,"disabled"]},null)],(function(t,e){var n=e.component;t(e,4,0,"polite"),t(e,10,0,!n.previousEnabled()),t(e,12,0,!n.nextEnabled())}),(function(t,e){var n=e.component;t(e,2,0,n.periodButtonLabel,Ws(e,3).disabled||null,"NoopAnimations"===Ws(e,3)._animationMode),t(e,5,0,n.periodButtonText),t(e,6,0,"month"!=n.calendar.currentView),t(e,9,0,n.prevButtonLabel,Ws(e,10).disabled||null,"NoopAnimations"===Ws(e,10)._animationMode),t(e,11,0,n.nextButtonLabel,Ws(e,12).disabled||null,"NoopAnimations"===Ws(e,12)._animationMode)}))}function sy(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-calendar-header",[],null,null,null,ny,ey)),ni(1,49152,null,0,Yg,[Vg,Qg,[2,Zf],[2,Kf],Ie],null,null)],null,null)}var iy=Ns("mat-calendar-header",Yg,sy,{},{},["*"]),ry=Gn({encapsulation:2,styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],data:{}});function oy(t){return Qr(0,[(t()(),Rr(0,null,null,0))],null,null)}function ay(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-month-view",[],null,[[null,"activeDateChange"],[null,"selectedChange"],[null,"_userSelection"]],(function(t,e,n){var s=!0,i=t.component;return"activeDateChange"===e&&(s=!1!==(i.activeDate=n)&&s),"selectedChange"===e&&(s=!1!==i._dateSelected(n)&&s),"_userSelection"===e&&(s=!1!==i._userSelected()&&s),s}),Sy,wy)),ni(1,1228800,[[1,4]],0,Ug,[Ie,[2,Kf],[2,Zf],[2,yp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"],dateClass:[5,"dateClass"]},{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter,n.dateClass)}),null)}function ly(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-year-view",[],null,[[null,"activeDateChange"],[null,"monthSelected"],[null,"selectedChange"]],(function(t,e,n){var s=!0,i=t.component;return"activeDateChange"===e&&(s=!1!==(i.activeDate=n)&&s),"monthSelected"===e&&(s=!1!==i._monthSelectedInYearView(n)&&s),"selectedChange"===e&&(s=!1!==i._goToDateInView(n,"month")&&s),s}),xy,Ey)),ni(1,1228800,[[2,4]],0,Wg,[Ie,[2,Kf],[2,Zf],[2,yp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function cy(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-multi-year-view",[],null,[[null,"activeDateChange"],[null,"yearSelected"],[null,"selectedChange"]],(function(t,e,n){var s=!0,i=t.component;return"activeDateChange"===e&&(s=!1!==(i.activeDate=n)&&s),"yearSelected"===e&&(s=!1!==i._yearSelectedInMultiYearView(n)&&s),"selectedChange"===e&&(s=!1!==i._goToDateInView(n,"year")&&s),s}),Ty,ky)),ni(1,1228800,[[3,4]],0,zg,[Ie,[2,Zf],[2,yp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function hy(t){return Qr(2,[Fr(671088640,1,{monthView:0}),Fr(671088640,2,{yearView:0}),Fr(671088640,3,{multiYearView:0}),(t()(),Rr(16777216,null,null,1,null,oy)),ni(4,212992,null,0,Vd,[rn,Nn,aa],{portal:[0,"portal"]},null),(t()(),Pr(5,0,null,null,8,"div",[["cdkMonitorSubtreeFocus",""],["class","mat-calendar-content"],["tabindex","-1"]],null,null,null,null,null)),ni(6,16384,null,0,Fa,[],{ngSwitch:[0,"ngSwitch"]},null),ni(7,147456,null,0,Jp,[cn,Xp],null,null),(t()(),Rr(16777216,null,null,1,null,ay)),ni(9,278528,null,0,Va,[Nn,On,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Rr(16777216,null,null,1,null,ly)),ni(11,278528,null,0,Va,[Nn,On,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Rr(16777216,null,null,1,null,cy)),ni(13,278528,null,0,Va,[Nn,On,Fa],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,4,0,n._calendarHeaderPortal),t(e,6,0,n.currentView),t(e,9,0,"month"),t(e,11,0,"year"),t(e,13,0,"multi-year")}),null)}var uy=Gn({encapsulation:2,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n"],data:{}});function dy(t){return Qr(0,[(t()(),Pr(0,0,null,null,2,"tr",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Pr(1,0,null,null,1,"td",[["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),qr(2,null,[" "," "]))],null,(function(t,e){var n=e.component;t(e,1,0,n.numCols,n._cellPadding,n._cellPadding),t(e,2,0,n.label)}))}function py(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"td",[["aria-hidden","true"],["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),qr(1,null,[" "," "]))],null,(function(t,e){var n=e.component;t(e,0,0,n._firstRowOffset,n._cellPadding,n._cellPadding),t(e,1,0,n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}))}function fy(t){return Qr(0,[(t()(),Pr(0,0,null,null,3,"td",[["class","mat-calendar-body-cell mat-focus-indicator"],["role","button"]],[[8,"tabIndex",0],[2,"mat-calendar-body-disabled",null],[2,"mat-calendar-body-active",null],[1,"aria-label",0],[1,"aria-disabled",0],[1,"aria-selected",0],[4,"width",null],[4,"paddingTop",null],[4,"paddingBottom",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component._cellClicked(t.context.$implicit)&&s),s}),null,null)),ni(1,278528,null,0,Da,[An,Dn,cn,pn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Pr(2,0,null,null,1,"div",[["class","mat-calendar-body-cell-content"]],[[2,"mat-calendar-body-selected",null],[2,"mat-calendar-body-today",null]],null,null,null,null)),(t()(),qr(3,null,[" "," "]))],(function(t,e){t(e,1,0,"mat-calendar-body-cell mat-focus-indicator",e.context.$implicit.cssClasses)}),(function(t,e){var n=e.component;t(e,0,0,n._isActiveCell(e.parent.context.index,e.context.index)?0:-1,!e.context.$implicit.enabled,n._isActiveCell(e.parent.context.index,e.context.index),e.context.$implicit.ariaLabel,!e.context.$implicit.enabled||null,n.selectedValue===e.context.$implicit.value,n._cellWidth,n._cellPadding,n._cellPadding),t(e,2,0,n.selectedValue===e.context.$implicit.value,n.todayValue===e.context.$implicit.value),t(e,3,0,e.context.$implicit.displayValue)}))}function gy(t){return Qr(0,[(t()(),Pr(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(t()(),Rr(16777216,null,null,1,null,py)),ni(2,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null),(t()(),Rr(16777216,null,null,1,null,fy)),ni(4,278528,null,0,Ra,[Nn,On,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,0===e.context.index&&e.component._firstRowOffset),t(e,4,0,e.context.$implicit)}),null)}function my(t){return Qr(2,[(t()(),Rr(16777216,null,null,1,null,dy)),ni(1,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null),(t()(),Rr(16777216,null,null,1,null,gy)),ni(3,278528,null,0,Ra,[Nn,On,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,1,0,n._firstRowOffset<n.labelMinRequiredCells),t(e,3,0,n.rows)}),null)}var _y=Gn({encapsulation:2,styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(1, 0.8)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms linear"},options:null}],options:{}},{type:7,name:"fadeInCalendar",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null}],options:{}}]}});function yy(t){return Qr(2,[Fr(671088640,1,{_calendar:0}),(t()(),Pr(1,0,null,null,3,"mat-calendar",[["cdkTrapFocus",""],["class","mat-calendar"]],[[8,"id",0],[24,"@fadeInCalendar",0]],[[null,"selectedChange"],[null,"yearSelected"],[null,"monthSelected"],[null,"_userSelection"]],(function(t,e,n){var s=!0,i=t.component;return"selectedChange"===e&&(s=!1!==i.datepicker.select(n)&&s),"yearSelected"===e&&(s=!1!==i.datepicker._selectYear(n)&&s),"monthSelected"===e&&(s=!1!==i.datepicker._selectMonth(n)&&s),"_userSelection"===e&&(s=!1!==i.datepicker.close()&&s),s}),hy,ry)),ni(2,278528,null,0,Da,[An,Dn,cn,pn],{ngClass:[0,"ngClass"]},null),ni(3,1458176,null,0,Wp,[cn,qp,aa],{enabled:[0,"enabled"]},null),ni(4,10141696,[[1,4]],0,Qg,[Vg,[2,Zf],[2,Kf],Ie],{headerComponent:[0,"headerComponent"],startAt:[1,"startAt"],startView:[2,"startView"],selected:[3,"selected"],minDate:[4,"minDate"],maxDate:[5,"maxDate"],dateFilter:[6,"dateFilter"],dateClass:[7,"dateClass"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"})],(function(t,e){var n=e.component;t(e,2,0,n.datepicker.panelClass),t(e,3,0,""),t(e,4,0,n.datepicker.calendarHeaderComponent,n.datepicker.startAt,n.datepicker.startView,n.datepicker._selected,n.datepicker._minDate,n.datepicker._maxDate,n.datepicker._dateFilter,n.datepicker.dateClass)}),(function(t,e){t(e,1,0,e.component.datepicker.id,"enter")}))}function vy(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-datepicker-content",[["class","mat-datepicker-content"]],[[40,"@transformPanel",0],[2,"mat-datepicker-content-touch",null]],[["component","@transformPanel.done"]],(function(t,e,n){var s=!0;return"component:@transformPanel.done"===e&&(s=!1!==Ws(t,1)._animationDone.next()&&s),s}),yy,_y)),ni(1,4374528,null,0,Jg,[cn,Ie],null,null)],null,(function(t,e){t(e,0,0,Ws(e,1)._animationState,Ws(e,1).datepicker.touchUi)}))}var by=Ns("mat-datepicker-content",Jg,vy,{color:"color"},{},[]),wy=Gn({encapsulation:2,styles:[],data:{}});function Cy(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"th",[["scope","col"]],[[1,"aria-label",0]],null,null,null,null)),(t()(),qr(1,null,["",""]))],null,(function(t,e){t(e,0,0,e.context.$implicit.long),t(e,1,0,e.context.$implicit.narrow)}))}function Sy(t){return Qr(2,[Fr(671088640,1,{_matCalendarBody:0}),(t()(),Pr(1,0,null,null,8,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Pr(2,0,null,null,5,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Pr(3,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Rr(16777216,null,null,1,null,Cy)),ni(5,278528,null,0,Ra,[Nn,On,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Pr(6,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Pr(7,0,null,null,0,"th",[["aria-hidden","true"],["class","mat-calendar-table-header-divider"],["colspan","7"]],null,null,null,null,null)),(t()(),Pr(8,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,i=t.component;return"selectedValueChange"===e&&(s=!1!==i._dateSelected(n)&&s),"keydown"===e&&(s=!1!==i._handleCalendarBodyKeydown(n)&&s),s}),my,uy)),ni(9,573440,[[1,4]],0,jg,[cn,Wi],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],activeCell:[5,"activeCell"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,5,0,n._weekdays),t(e,9,0,n._monthLabel,n._weeks,n._todayDate,n._selectedDate,3,n._dateAdapter.getDate(n.activeDate)-1)}),null)}var Ey=Gn({encapsulation:2,styles:[],data:{}});function xy(t){return Qr(2,[Fr(671088640,1,{_matCalendarBody:0}),(t()(),Pr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Pr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Pr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Pr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Pr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,i=t.component;return"selectedValueChange"===e&&(s=!1!==i._monthSelected(n)&&s),"keydown"===e&&(s=!1!==i._handleCalendarBodyKeydown(n)&&s),s}),my,uy)),ni(6,573440,[[1,4]],0,jg,[cn,Wi],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],numCols:[5,"numCols"],activeCell:[6,"activeCell"],cellAspectRatio:[7,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._yearLabel,n._months,n._todayMonth,n._selectedMonth,2,4,n._dateAdapter.getMonth(n.activeDate),4/7)}),null)}var ky=Gn({encapsulation:2,styles:[],data:{}});function Ty(t){return Qr(2,[Fr(671088640,1,{_matCalendarBody:0}),(t()(),Pr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Pr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Pr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Pr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Pr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,i=t.component;return"selectedValueChange"===e&&(s=!1!==i._yearSelected(n)&&s),"keydown"===e&&(s=!1!==i._handleCalendarBodyKeydown(n)&&s),s}),my,uy)),ni(6,573440,[[1,4]],0,jg,[cn,Wi],{rows:[0,"rows"],todayValue:[1,"todayValue"],selectedValue:[2,"selectedValue"],numCols:[3,"numCols"],activeCell:[4,"activeCell"],cellAspectRatio:[5,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._years,n._todayYear,n._selectedYear,4,n._getActiveCell(),4/7)}),null)}class Ay{constructor(t){this.total=t}call(t,e){return e.subscribe(new Dy(t,this.total))}}class Dy extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Iy=new Set;let Ry,Py=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Oy}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Iy.has(t))try{Ry||(Ry=document.createElement("style"),Ry.setAttribute("type","text/css"),document.head.appendChild(Ry)),Ry.sheet&&(Ry.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Iy.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Sd))},token:t,providedIn:"root"}),t})();function Oy(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let My=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Ny(Uu(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=tl(Ny(Uu(t)).map(t=>this._registerQuery(t).observable));return e=Ml(e.pipe(xl(1)),e.pipe(t=>t.lift(new Ay(1)),Fp(0))),e.pipe(F(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new b(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Nl(e),F(e=>({query:t,matches:e.matches})),od(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Py),Rt(Wi))},token:t,providedIn:"root"}),t})();function Ny(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Ly="(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Fy=new Et("mat-tooltip-scroll-strategy");function Vy(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}class By{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new x,this._isHandset=this._breakpointObserver.observe(Ly)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}class jy{}var Uy=Gn({encapsulation:2,styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"initial, void, hidden",styles:{type:6,styles:{opacity:0,transform:"scale(0)"},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)"},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:0,transform:"scale(0)",offset:0},offset:null},{type:6,styles:{opacity:.5,transform:"scale(0.99)",offset:.5},offset:null},{type:6,styles:{opacity:1,transform:"scale(1)",offset:1},offset:null}]},timings:"200ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms cubic-bezier(0, 0, 0.2, 1)"},options:null}],options:{}}]}});function zy(t){return Qr(2,[(t()(),Pr(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],(function(t,e,n){var s=!0,i=t.component;return"@state.start"===e&&(s=!1!==i._animationStart()&&s),"@state.done"===e&&(s=!1!==i._animationDone(n)&&s),s}),null,null)),ni(1,278528,null,0,Da,[An,Dn,cn,pn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e=131072,n=$a,s=[Ie],si(-1,e|=16,null,0,n,n,s)),(t()(),qr(3,null,["",""]))],(function(t,e){t(e,1,0,"mat-tooltip",e.component.tooltipClass)}),(function(t,e){var n,s=e.component;t(e,0,0,null==(n=function(t,e,n,s){if(Qe.isWrapped(s)){s=Qe.unwrap(s);const e=t.def.nodes[0].bindingIndex+0,n=Qe.unwrap(t.oldValues[e]);t.oldValues[e]=new Qe(n)}return s}(e,0,0,Ws(e,2).transform(s._isHandset)))?null:n.matches,s._visibility),t(e,3,0,s.message)}));var e,n,s}function Hy(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],(function(t,e,n){var s=!0;return"body:click"===e&&(s=!1!==Ws(t,1)._handleBodyInteraction()&&s),s}),zy,Uy)),ni(1,180224,null,0,By,[Ie,My],null,null)],null,(function(t,e){t(e,0,0,"visible"===Ws(e,1)._visibility?1:null)}))}var $y=Ns("mat-tooltip-component",By,Hy,{},{},[]);const qy=Math.pow(2,31)-1;class Wy{constructor(t,e){this._overlayRef=e,this._afterDismissed=new x,this._afterOpened=new x,this._onAction=new x,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,qy))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const Yy=new Et("MatSnackBarData");class Qy{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}class Zy{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}class Ky extends Ld{constructor(t,e,n,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this.snackBarConfig=s,this._destroyed=!1,this._onExit=new x,this._onEnter=new x,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(xl(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}class Gy{}var Xy=Gn({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function Jy(t){return Qr(0,[(t()(),Rr(0,null,null,0))],null,null)}function tv(t){return Qr(0,[Fr(402653184,1,{_portalOutlet:0}),(t()(),Rr(16777216,null,null,1,null,Jy)),ni(2,212992,[[1,4]],0,Vd,[rn,Nn,aa],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function ev(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],(function(t,e,n){var s=!0;return"component:@state.done"===e&&(s=!1!==Ws(t,1).onAnimationEnd(n)&&s),s}),tv,Xy)),ni(1,180224,null,0,Ky,[Wi,cn,Ie,Qy],null,null)],null,(function(t,e){t(e,0,0,Ws(e,1)._role,Ws(e,1)._animationState)}))}var nv=Ns("snack-bar-container",Ky,ev,{},{},[]),sv=Gn({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],data:{}});function iv(t){return Qr(0,[(t()(),Pr(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),Pr(1,0,null,null,2,"button",[["class","mat-focus-indicator"],["mat-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.action()&&s),s}),ty,J_)),ni(2,180224,null,0,am,[cn,Xp,[2,G_]],null,null),(t()(),qr(3,0,["",""]))],null,(function(t,e){var n=e.component;t(e,1,0,Ws(e,2).disabled||null,"NoopAnimations"===Ws(e,2)._animationMode),t(e,3,0,n.data.action)}))}function rv(t){return Qr(2,[(t()(),Pr(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),qr(1,null,["",""])),(t()(),Rr(16777216,null,null,1,null,iv)),ni(3,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,3,0,e.component.hasAction)}),(function(t,e){t(e,1,0,e.component.data.message)}))}function ov(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,rv,sv)),ni(1,49152,null,0,Zy,[Wy,Yy],null,null)],null,null)}var av=Ns("simple-snack-bar",Zy,ov,{},{},[]);class lv{}class cv{}class hv{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof hv?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new hv;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof hv?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class uv{encodeKey(t){return dv(t)}encodeValue(t){return dv(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function dv(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class pv{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new uv,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new pv({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function fv(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gv(t){return"undefined"!=typeof Blob&&t instanceof Blob}function mv(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _v{constructor(t,e,n,s){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new hv),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new pv,this.urlWithParams=e}serializeBody(){return null===this.body?null:fv(this.body)||gv(this.body)||mv(this.body)||"string"==typeof this.body?this.body:this.body instanceof pv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||mv(this.body)?null:gv(this.body)?this.body.type||null:fv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof pv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new _v(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}const yv=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class vv{constructor(t,e=200,n="OK"){this.headers=t.headers||new hv,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class bv extends vv{constructor(t={}){super(t),this.type=yv.ResponseHeader}clone(t={}){return new bv({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class wv extends vv{constructor(t={}){super(t),this.type=yv.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new wv({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Cv extends vv{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Sv(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}class Ev{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof _v)s=t;else{let i=void 0;i=n.headers instanceof hv?n.headers:new hv(n.headers);let r=void 0;n.params&&(r=n.params instanceof pv?n.params:new pv({fromObject:n.params})),s=new _v(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Ka(s).pipe(Bl(t=>this.handler.handle(t)));if(t instanceof _v||"events"===n.observe)return i;const r=i.pipe(al(t=>t instanceof wv));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(F(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(F(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(F(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(F(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new pv).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Sv(n,e))}post(t,e,n={}){return this.request("POST",t,Sv(n,e))}put(t,e,n={}){return this.request("PUT",t,Sv(n,e))}}class xv{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const kv=new Et("HTTP_INTERCEPTORS");class Tv{intercept(t,e){return e.handle(t)}}const Av=/^\)\]\}',?\n/;class Dv{}class Iv{constructor(){}build(){return new XMLHttpRequest}}class Rv{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const s=t.serializeBody();let i=null;const r=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,s=n.statusText||"OK",r=new hv(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new bv({headers:r,status:e,statusText:s,url:o}),i},o=()=>{let{headers:s,status:i,statusText:o,url:a}=r(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Av,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new wv({body:l,headers:s,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new Cv({error:l,headers:s,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=r(),i=new Cv({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(i)};let l=!1;const c=s=>{l||(e.next(r()),l=!0);let i={type:yv.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(i.total=s.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},h=t=>{let n={type:yv.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==s&&n.upload&&n.upload.addEventListener("progress",h)),n.send(s),e.next({type:yv.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",h)),n.abort()}})}}const Pv=new Et("XSRF_COOKIE_NAME"),Ov=new Et("XSRF_HEADER_NAME");class Mv{}class Nv{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Aa(t,this.cookieName),this.lastCookieString=t),this.lastToken}}class Lv{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}class Fv{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(kv,[]);this.chain=t.reduceRight((t,e)=>new xv(t,e),this.backend)}return this.chain.handle(t)}}class Vv{static disable(){return{ngModule:Vv,providers:[{provide:Lv,useClass:Tv}]}}static withOptions(t={}){return{ngModule:Vv,providers:[t.cookieName?{provide:Pv,useValue:t.cookieName}:[],t.headerName?{provide:Ov,useValue:t.headerName}:[]]}}}class Bv{}function jv(t){return Error(`Unable to find icon with the name "${t}"`)}function Uv(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function zv(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class Hv{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let $v=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,s){return this._addSvgIconConfig(t,e,new Hv(n,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(xe.HTML,n);if(!i)throw zv(n);const r=this._createSvgElementForSingleIcon(i,s);return this._addSvgIconConfig(t,e,new Hv(r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new Hv(e,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(xe.HTML,e);if(!s)throw zv(e);const i=this._svgElementFromString(s);return this._addSvgIconSetConfig(t,new Hv(i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(xe.RESOURCE_URL,t);if(!e)throw Uv(t);const n=this._cachedIconsByUrl.get(e);return n?Ka(qv(n)):this._loadSvgIconFromConfig(new Hv(t)).pipe(jl(t=>this._cachedIconsByUrl.set(e,t)),F(t=>qv(t)))}getNamedSvgIcon(t,e=""){const n=Wv(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):dd(jv(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Ka(qv(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(jl(e=>t.svgElement=e),F(t=>qv(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Ka(n):fg(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Cl(e=>{const n=`Loading icon set URL: ${this._sanitizer.sanitize(xe.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n),Ka(null)})))).pipe(F(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw jv(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgElement){const e=this._extractSvgIconFromSet(s.svgElement,t,s.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(F(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Ka(t.svgElement):this._fetchUrl(t.url).pipe(F(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const i=s.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(i),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let s=0;s<n.length;s++){const{name:t,value:i}=n[s];"id"!==t&&e.setAttribute(t,i)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchUrl(t){if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error(`Cannot fetch icon from URL "${t}".`);const e=this._sanitizer.sanitize(xe.RESOURCE_URL,t);if(!e)throw Uv(t);const n=this._inProgressUrlFetches.get(e);if(n)return n;const s=this._httpClient.get(e,{responseType:"text"}).pipe(Hl(()=>this._inProgressUrlFetches.delete(e)),nt());return this._inProgressUrlFetches.set(e,s),s}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Wv(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Ev,8),Rt(Ff),Rt(aa,8),Rt(qt,8))},token:t,providedIn:"root"}),t})();function qv(t){return t.cloneNode(!0)}function Wv(t,e){return t+":"+e}class Yv{constructor(t){this._elementRef=t}}const Qv=Wf(Yv),Zv=new Et("mat-icon-location",{providedIn:"root",factory:function(){const t=Pt(aa),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Kv=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gv=Kv.map(t=>`[${t}]`).join(", "),Xv=/^url\(['"]?#(.*?)['"]?\)$/;class Jv extends Qv{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Vu(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(xl(1)).subscribe(t=>this._setSvgElement(t),n=>{const s=`Error retrieving icon ${t}:${e}! ${n.message}`;this._errorHandler?this._errorHandler.handleError(new Error(s)):console.error(s)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n<e.length;n++)e[n].textContent+=" ";if(this._location){const e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e)}this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Gv),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)Kv.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(Xv):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}class tb{}var eb=Gn({encapsulation:2,styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],data:{}});function nb(t){return Qr(2,[zr(null,0)],null,null)}const sb=new Et("MAT_MENU_PANEL");class ib{}const rb=Yf(qf(ib));class ob extends rb{constructor(t,e,n,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=s,this.role="menuitem",this._hovered=new x,this._focused=new x,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.monitor(this._elementRef,!1),s&&s.addItem&&s.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let n="";if(t.childNodes){const s=t.childNodes.length;for(let i=0;i<s;i++)t.childNodes[i].nodeType===e&&(n+=t.childNodes[i].textContent)}return n.trim()}}const ab=new Et("mat-menu-scroll-strategy");function lb(t){return()=>t.scrollStrategies.reposition()}class cb{}class hb{}var ub=Gn({encapsulation:2,styles:[],data:{}});function db(t){return Qr(2,[zr(null,0),(t()(),Pr(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),ni(2,212992,null,0,rg,[cn,Wi,Sd,[2,ig],[2,G_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],(function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())}),(function(t,e){t(e,1,0,Ws(e,2).unbounded)}))}class pb{}class fb{constructor(t=!1,e="all",n="",s="",i=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=s,this.priority=i,this.property=""}clone(){return new fb(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let gb=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const s=this.stylesheet.get(t);s?s.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let s="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(s=t+"")}return s}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const mb={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},_b=new Et("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>mb}),yb=new Et("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),vb=new Et("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function bb(t,e){return t=t?t.clone():new fb,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const wb=["row","column","row-reverse","column-reverse"];function Cb(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}class Sb{constructor(t,e,n,s){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,s=n.shouldCache;let i=this.styleCache.get(t);i&&s||(i=n.buildStyles(t,e),s&&this.styleCache.set(t,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,s]=this.styler.getFlowDirection(t);if(!s&&e){const e=function(t){let[e,n,s]=function(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return wb.find(t=>t===e)||(e=wb[0]),"inline"===n&&(n="inline"!==s?s:"",s="inline"),[e,Cb(n),!!s]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.addStyles(t)}}const Eb=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{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}],xb="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",kb="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",Tb="(orientation: portrait) and (min-width: 840px)",Ab="(orientation: landscape) and (min-width: 1280px)",Db={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:`${xb} , ${kb}`,WEB:`${Tb}, ${Ab} `,HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:`${xb} `,WEB_PORTRAIT:`${Tb}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)]",TABLET_LANDSCAPE:`${kb}`,WEB_LANDSCAPE:`${Ab}`},Ib=[{alias:"handset",priority:2e3,mediaQuery:Db.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Db.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Db.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Db.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Db.TABLET},{alias:"tablet.portrait",priority:2100,mediaQuery:Db.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Db.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Db.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Db.WEB_PORTRAIT,overlapping:!0}],Rb=/(\.|-|_)/g;function Pb(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const Ob=new Et("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Pt(vb),e=Pt(_b),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(s=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(Rb,"|").split("|").map(Pb).join(""),t.overlapping=!!t.overlapping)}),s;var s}((e.disableDefaultBps?[]:Eb).concat(e.addOrientationBps?Ib:[]),n)}});function Mb(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Nb(t,e){return(t.priority||0)-(e.priority||0)}let Lb=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Nb)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Ob))},token:t,providedIn:"root"}),t})(),Fb=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new Ga(new fb(!0)),this.registry=new Map,this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return!!e&&e.matches}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(al(n=>!e||t.indexOf(n.mediaQuery)>-1));return Q(new b(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!Vb[t]);if(n.length>0){const t=n.join(", ");try{const s=e.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(e.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(s),n.forEach(t=>Vb[t]=s)}catch(s){console.error(s)}}}(e,this._document),e.forEach(t=>{let e=this.registry.get(t);e||(e=this.buildMQL(t),e.addListener(e=>{this._zone.run(()=>this.source.next(new fb(e.matches,t)))}),this.registry.set(t,e)),e.matches&&n.push(new fb(!0,t))}),n}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}(t,Wa(this._platformId))}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Wi),Rt(Pi),Rt(aa))},token:t,providedIn:"root"}),t})();const Vb={},Bb={alias:"print",mediaQuery:"print",priority:1e3};let jb=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.isPrinting=!1,this.queue=new Ub,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Mb)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),bb(t,e)}registerBeforeAfterPrintHooks(t){this._document.defaultView&&!this.registeredBeforeAfterPrintHooks&&(this.registeredBeforeAfterPrintHooks=!0,this._document.defaultView.addEventListener("beforeprint",()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new fb(!0,"print"))),t.updateStyles())}),this._document.defaultView.addEventListener("afterprint",()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())}))}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Mb))}}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Lb),Rt(_b),Rt(aa))},token:t,providedIn:"root"}),t})();class Ub{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(Bb),t.sort(Mb),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function zb(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let Hb=(()=>{class t{constructor(t,e,n,s){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=s}applyStyleToElement(t,e,n=null){let s={};"string"==typeof e&&(s[e]=n,e=s),s=this.layoutConfig.disableVendorPrefixes?e:zb(e),this._applyMultiValueStyleToElement(s,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:zb(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Ya(this._platformId)&&this._serverModuleLoaded?e:""]}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Wa(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let s="";return t&&((s=this.lookupInlineStyle(t,e))||(Wa(this._platformId)?n||(s=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,e)))),s?s.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const s=t[n],i=Array.isArray(s)?s:[s];i.sort();for(let t of i)t=t?t+"":"",Wa(this._platformId)||!this._serverModuleLoaded?Wa(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const s=this._readStyleAttribute(t);s[e]=n||"",this._writeStyleAttribute(t,s)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const s=t[n].trim();if(s.length>0){const t=s.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${s}`);e[s.substr(0,t).trim()]=s.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const s in e)e[s]&&(n+=s+":"+e[s]+";");t.setAttribute("style",n)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(gb),Rt(yb),Rt(Pi),Rt(_b))},token:t,providedIn:"root"}),t})();class $b{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}let qb=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,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 x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=bb(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Mb),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Mb),this.updateStyles()))}init(t,e,n,s,i=[]){Wb(this.updateMap,t,e,n),Wb(this.clearMap,t,e,s),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)}getValue(t,e,n){const s=this.elementMap.get(t);if(s){const t=void 0!==n?s.get(n):this.getActivatedValues(s,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,s){let i=this.elementMap.get(t);if(i){const r=(i.get(s)||new Map).set(e,n);i.set(s,r),this.elementMap.set(t,i)}else i=(new Map).set(s,(new Map).set(e,n)),this.elementMap.set(t,i);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(al(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let s=this.getActivatedValues(t);s&&s.forEach((t,s)=>{this.updateElement(e,s,t),n.delete(s)}),n.forEach(n=>{if(s=this.getActivatedValues(t,n),s){const t=s.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const s=n.get(e);s&&(s(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const s=this.updateMap.get(t);if(s){const i=s.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const s=this.getActivatedValues(n,e);s&&(e?this.updateElement(t,e,s.get(e)):s.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let s=this.watcherMap.get(t);if(s||(s=new Map,this.watcherMap.set(t,s)),!s.get(e)){const i=Q(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});s.set(e,i)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let s=0;s<this.activatedBreakpoints.length;s++){const n=t.get(this.activatedBreakpoints[s].alias);if(n&&(void 0===e||n.has(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(jl(this.hook.interceptEvents(this)),al(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Fb),Rt(Lb),Rt(jb))},token:t,providedIn:"root"}),t})();function Wb(t,e,n,s){if(void 0!==s){let i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,s)}}const Yb=["row","column","row-reverse","column-reverse"];function Qb(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return Yb.find(t=>t===e)||(e=Yb[0]),"inline"===n&&(n="inline"!==s?s:"",s="inline"),[e,Kb(n),!!s]}function Zb(t){let[e]=Qb(t);return e.indexOf("row")>-1}function Kb(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Gb=(()=>{class t extends $b{buildStyles(t){return function(t){let[e,n,s]=Qb(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(t)}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Xb=["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"];class Jb extends Sb{constructor(t,e,n,s){super(t,n,e,s),this.DIRECTIVE_KEY="layout",this.styleCache=ew,this.init()}}class tw extends Jb{constructor(){super(...arguments),this.inputs=Xb}}const ew=new Map;let nw=(()=>{class t extends $b{buildStyles(t,e){const n={},[s,i]=t.split(" ");switch(s){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===i?Zb(e.layout)?null:"100%":null,"max-height":"stretch"===i&&Zb(e.layout)?"100%":null})}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sw=["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"];class iw extends Sb{constructor(t,e,n,s){super(t,n,e,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(od(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=hw:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=dw:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=uw:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=pw:"column-reverse"!==e||n||(this.styleCache=cw):this.styleCache=aw:this.styleCache=lw:this.styleCache=ow,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),Yb.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}class rw extends iw{constructor(){super(...arguments),this.inputs=sw}}const ow=new Map,aw=new Map,lw=new Map,cw=new Map,hw=new Map,uw=new Map,dw=new Map,pw=new Map;class fw{}class gw{constructor(t,e,n=!0){this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function mw(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function _w(t){const[e,...n]=t.split(":");return new gw(e,n.join(":"))}function yw(t,e){return e.key&&(t[e.key]=e.value),t}class vw extends Sb{constructor(t,e,n,s,i,r,o,a,l){super(t,null,e,n),this.sanitizer=s,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Ba(t,i,r)),this.init();const c=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(c),this.isServer=a&&Ya(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(xe.STYLE,t)||"";if(t)switch(mw(t)){case"string":return Cw(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return Cw(t,e);case"set":default:return function(t,e){let n=[];return"set"===mw(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(_w).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(yw,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}const bw=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];class ww extends vw{constructor(){super(...arguments),this.inputs=bw}}function Cw(t,e){return t.map(_w).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(yw,{})}class Sw{}function Ew(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const xw=new Et("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),kw=new Et("MAT_DRAWER_CONTAINER");class Tw extends Ad{constructor(t,e,n,s,i){super(n,s,i),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}class Aw extends Tw{constructor(t,e,n,s,i){super(t,e,n,s,i)}}class Dw extends class{constructor(t,e,n,s,i,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=s,this._ngZone=i,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new x,this._animationEnd=new x,this._animationState="void",this.openedChange=new Si(!0),this._destroyed=new x,this.onPositionChanged=new Si,this._modeChanged=new x,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{$u(this._elementRef.nativeElement,"keydown").pipe(al(t=>27===t.keyCode&&!this.disableClose&&!Ud(t)),od(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(function(t,e){return e=>e.lift(new Xu(t,void 0))}((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Vu(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Vu(t)}get opened(){return this._opened}set opened(t){this.toggle(Vu(t))}get _openedStream(){return this.openedChange.pipe(al(t=>t),F(()=>{}))}get openedStart(){return this._animationStarted.pipe(al(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),F(()=>{}))}get _closedStream(){return this.openedChange.pipe(al(t=>!t),F(()=>{}))}get closedStart(){return this._animationStarted.pipe(al(t=>t.fromState!==t.toState&&"void"===t.toState),F(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(xl(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Vu(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Bu(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Bu(t)}}class Iw extends class{constructor(t,e,n,s,i,r=!1,o){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=s,this._animationMode=o,this._drawers=new xi,this.backdropClick=new Si,this._destroyed=new x,this._doCheckSubject=new x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new x,t&&t.change.pipe(od(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(od(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Vu(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Vu(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Nl(this._allDrawers),od(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Nl(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Fp(10),od(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const n=this._left._width;t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const n=this._right._width;e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(al(t=>t.fromState!==t.toState),od(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(od(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(od(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(xl(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(od(Q(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&Ew("end"),this._end=t):(null!=this._start&&Ew("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}{}class Rw{}var Pw=Gn({encapsulation:2,styles:[],data:{}});function Ow(t){return Qr(2,[zr(null,0)],null,null)}var Mw=Gn({encapsulation:2,styles:[],data:{animation:[{type:7,name:"transform",definitions:[{type:0,name:"open, open-instant",styles:{type:6,styles:{transform:"none",visibility:"visible"},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{"box-shadow":"none",visibility:"hidden"},offset:null},options:void 0},{type:1,expr:"void => open-instant",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"void <=> open, open-instant => void",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function Nw(t){return Qr(2,[(t()(),Pr(0,0,null,null,1,"div",[["class","mat-drawer-inner-container"]],null,null,null,null,null)),zr(null,0)],null,null)}var Lw=Gn({encapsulation:2,styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],data:{}});function Fw(t){return Qr(0,[(t()(),Pr(0,0,null,null,0,"div",[["class","mat-drawer-backdrop"]],[[2,"mat-drawer-shown",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component._onBackdropClicked()&&s),s}),null,null))],null,(function(t,e){t(e,0,0,e.component._isShowingBackdrop())}))}function Vw(t){return Qr(0,[(t()(),Pr(0,0,null,null,3,"mat-sidenav-content",[["cdkScrollable",""],["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,Ow,Pw)),ni(1,212992,null,0,Ad,[cn,Td,Wi,[2,yp]],null,null),ni(2,1294336,null,0,Aw,[Ie,Iw,cn,Td,Wi],null,null),zr(0,2)],(function(t,e){t(e,1,0),t(e,2,0)}),(function(t,e){t(e,0,0,Ws(e,2)._container._contentMargins.left,Ws(e,2)._container._contentMargins.right)}))}function Bw(t){return Qr(2,[Fr(671088640,1,{_userContent:0}),(t()(),Rr(16777216,null,null,1,null,Fw)),ni(2,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null),zr(null,0),zr(null,1),(t()(),Rr(16777216,null,null,1,null,Vw)),ni(6,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component;t(e,2,0,n.hasBackdrop),t(e,6,0,!n._content)}),null)}class jw{constructor(t){this.breakpointObserver=t,this.isHandset$=this.breakpointObserver.observe(Ly).pipe(F(t=>t.matches)),this.NavItemClicked=new Si,this.openedSubject=new x,this.MatContentWidth="50px",this.MatContentHeight="40px",this.MatContainerWidth="50px"}ngOnInit(){this.setDefaultStyles()}ngAfterContentInit(){this.openedSubject.subscribe(t=>{this.sidenav[t?"open":"close"](),this.setStyles()})}ButtonClicked(t){this.NavItemClicked.emit(t)}toggleDrawer(){this.openedSubject.next(!this.sidenav.opened),this.sidenav.opened?(this.MatContentWidth="0px",this.MatContentHeight="94vh",this.MatContainerWidth="230px"):(this.MatContentWidth="50px",this.MatContainerWidth="50px",this.MatContentHeight="40px")}OnHover(){this.MenuBGColor=this.HoverMenuColor}OnButtonHover(){this.ButtonHover=!0}LeaveHover(){this.MenuBGColor=this.MenuColor}LeaveButtonHover(){this.ButtonHover=!1}setStyles(){this.MatContentWidth="50px",this.MatContainerWidth="50px",this.MatContentHeight="40px"}setDefaultStyles(){this.setStyles(),this.FontColor||(this.FontColor="black"),this.FontFamily||(this.FontFamily="'Montserrat', sans-serif"),this.FontWeight||(this.FontWeight="bold"),this.FontSize||(this.FontSize="20px"),this.ButtonBackgroundColorHover||(this.ButtonBackgroundColorHover="grey"),this.ButtonBackgroundColor||(this.ButtonBackgroundColor="white"),this.ButtonBorder||(this.ButtonBorder="none"),this.ButtonTextPadding||(this.ButtonTextPadding="0px 0px 0px 30px"),this.MenuColor||(this.MenuBGColor="black"),this.MenuBGColor=this.MenuColor,this.HoverMenuColor||(this.HoverMenuColor="grey")}}var Uw=Gn({encapsulation:0,styles:[[".hamburger-menu[_ngcontent-%COMP%]{background-color:transparent;border-width:0;outline:none;font-size:30px;margin-left:15px}.mat-sidenav-container[_ngcontent-%COMP%]{z-index:2;background-color:transparent}  .mat-sidenav-container .mat-drawer-inner-container{z-index:10!important;background-color:transparent!important;overflow:hidden!important}.mat-sidenav-content[_ngcontent-%COMP%], .side-nav[_ngcontent-%COMP%]{background-color:transparent;overflow:hidden}.side-nav[_ngcontent-%COMP%]{height:100vh;width:230px;border-right:transparent}.button-container[_ngcontent-%COMP%]{background-color:transparent;z-index:10;width:100%}.button-container[_ngcontent-%COMP%]   .item-button[_ngcontent-%COMP%]{height:40px;width:100%;font-size:20px;background-color:#fff}.button-container[_ngcontent-%COMP%]   .item-button[_ngcontent-%COMP%]   .button-icon[_ngcontent-%COMP%]{padding-left:17px}.button-container[_ngcontent-%COMP%]   .item-button[_ngcontent-%COMP%]:last-child{border-bottom:none}.button-container[_ngcontent-%COMP%]   .item-button[_ngcontent-%COMP%]:hover{background-color:#f4f4f3;cursor:pointer}"]],data:{}});function zw(t){return Qr(0,[(t()(),Pr(0,0,null,null,2,"mat-icon",[["class","button-icon material-icons material-icons-outlined mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,nb,eb)),ni(1,9158656,null,0,Jv,[cn,$v,[8,null],[2,Zv],[2,qt]],null,null),(t()(),qr(2,0,["",""]))],(function(t,e){t(e,1,0)}),(function(t,e){t(e,0,0,Ws(e,1).inline,"primary"!==Ws(e,1).color&&"accent"!==Ws(e,1).color&&"warn"!==Ws(e,1).color),t(e,2,0,e.parent.context.$implicit.Icon)}))}function Hw(t){return Qr(0,[(t()(),Pr(0,0,null,null,16,"button",[["class","item-button mat-focus-indicator"],["fxLayoutAlign","start center"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item",null],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],(function(t,e,n){var s=!0,i=t.component;return"click"===e&&(s=!1!==Ws(t,6)._checkDisabled(n)&&s),"mouseenter"===e&&(s=!1!==Ws(t,6)._handleMouseEnter()&&s),"click"===e&&(s=!1!==i.ButtonClicked(t.context.$implicit)&&s),s}),db,ub)),ni(1,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(2,{color:0,border:1}),ni(3,671744,null,0,rw,[cn,Hb,nw,qb],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),ni(4,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(5,{color:0,border:1}),ni(6,180224,null,0,ob,[cn,aa,Xp,[2,sb]],{disabled:[0,"disabled"]},null),(t()(),Pr(7,0,null,0,9,"div",[["fxLayoutAlign","start center"]],[[1,"id",0]],null,null,null,null)),ni(8,671744,null,0,rw,[cn,Hb,nw,qb],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),Rr(16777216,null,null,1,null,zw)),ni(10,16384,null,0,Oa,[Nn,On],{ngIf:[0,"ngIf"]},null),(t()(),Pr(11,0,null,null,5,"span",[["class","button-title"]],null,null,null,null,null)),ni(12,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(13,{"font-family":0,"font-weight":1,padding:2,"font-size":3}),ni(14,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(15,{"font-family":0,"font-weight":1,padding:2,"font-size":3}),(t()(),qr(16,null,["",""]))],(function(t,e){var n=e.component,s=t(e,2,0,n.FontColor,n.ButtonBorder);t(e,1,0,s),t(e,3,0,"start center");var i=t(e,5,0,n.FontColor,n.ButtonBorder);t(e,4,0,i),t(e,6,0,e.context.$implicit.Disabled),t(e,8,0,"start center"),t(e,10,0,e.context.$implicit.Icon);var r=t(e,13,0,n.FontFamily,n.FontWeight,n.ButtonTextPadding,n.FontSize);t(e,12,0,r);var o=t(e,15,0,n.FontFamily,n.FontWeight,n.ButtonTextPadding,n.FontSize);t(e,14,0,o)}),(function(t,e){t(e,0,0,Ws(e,6).role,!0,Ws(e,6)._highlighted,Ws(e,6)._triggersSubmenu,Ws(e,6)._getTabIndex(),Ws(e,6).disabled.toString(),Ws(e,6).disabled||null),t(e,7,0,"button-"+e.context.$implicit.Label),t(e,16,0,e.context.$implicit.Label)}))}function $w(t){return Qr(0,[Fr(671088640,1,{sidenav:0}),(t()(),Pr(1,0,null,null,39,"mat-sidenav-container",[["class","mat-sidenav-container mat-drawer-container mat-sidenav-container"]],[[2,"mat-drawer-container-explicit-backdrop",null]],null,null,Bw,Lw)),ni(2,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(3,{width:0}),ni(4,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(5,{width:0}),ni(6,1490944,null,2,Iw,[[2,yp],cn,Wi,Ie,Dd,xw,[2,G_]],{hasBackdrop:[0,"hasBackdrop"]},null),Fr(603979776,2,{_allDrawers:1}),Fr(603979776,3,{_content:0}),(2048,null,e=kw,null,n=[Iw],si(-1,2048,null,0,e,null,n)),(t()(),Pr(10,0,null,1,14,"mat-sidenav-content",[["class","mat-sidenav-content mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,Ow,Pw)),ni(11,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(12,{width:0,height:1}),ni(13,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(14,{width:0,height:1}),ni(15,1294336,[[3,4]],0,Aw,[Ie,Iw,cn,Td,Wi],null,null),(t()(),Pr(16,0,null,0,8,"button",[["class","hamburger-menu mat-focus-indicator"],["mat-icon-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.toggleDrawer()&&s),s}),ty,J_)),ni(17,180224,null,0,am,[cn,Xp,[2,G_]],null,null),(t()(),Pr(18,0,null,0,6,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"mouseover"],[null,"mouseleave"]],(function(t,e,n){var s=!0,i=t.component;return"mouseover"===e&&(s=!1!==i.OnHover()&&s),"mouseleave"===e&&(s=!1!==i.LeaveHover()&&s),s}),nb,eb)),ni(19,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(20,{color:0}),ni(21,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(22,{color:0}),ni(23,9158656,null,0,Jv,[cn,$v,[8,null],[2,Zv],[2,qt]],{inline:[0,"inline"]},null),(t()(),qr(-1,0,["menu"])),(t()(),Pr(25,0,null,0,15,"mat-sidenav",[["class","side-nav mat-drawer mat-sidenav"],["mode","side"],["tabIndex","-1"]],[[1,"align",0],[2,"mat-drawer-end",null],[2,"mat-drawer-over",null],[2,"mat-drawer-push",null],[2,"mat-drawer-side",null],[2,"mat-drawer-opened",null],[2,"mat-sidenav-fixed",null],[4,"top","px"],[4,"bottom","px"],[40,"@transform",0]],[[null,"click"],["component","@transform.start"],["component","@transform.done"]],(function(t,e,n){var s=!0,i=t.component;return"component:@transform.start"===e&&(s=!1!==Ws(t,26)._animationStartListener(n)&&s),"component:@transform.done"===e&&(s=!1!==Ws(t,26)._animationDoneListener(n)&&s),"click"===e&&(s=!1!==i.toggleDrawer()&&s),s}),Nw,Mw)),ni(26,3325952,[[2,4],[1,4],["sidenav",4]],0,Dw,[cn,qp,Xp,Sd,Wi,[2,aa],[2,kw]],{mode:[0,"mode"]},null),(t()(),Pr(27,0,null,0,8,"button",[["class","hamburger-menu mat-focus-indicator"],["mat-icon-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,ty,J_)),ni(28,180224,null,0,am,[cn,Xp,[2,G_]],null,null),(t()(),Pr(29,0,null,0,6,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"mouseover"],[null,"mouseleave"]],(function(t,e,n){var s=!0,i=t.component;return"mouseover"===e&&(s=!1!==i.OnHover()&&s),"mouseleave"===e&&(s=!1!==i.LeaveHover()&&s),s}),nb,eb)),ni(30,278528,null,0,Ba,[cn,Dn,pn],{ngStyle:[0,"ngStyle"]},null),$r(31,{color:0}),ni(32,933888,null,0,ww,[cn,Hb,qb,Ff,Dn,pn,[6,Ba],yb,Pi],{ngStyle:[0,"ngStyle"]},null),$r(33,{color:0}),ni(34,9158656,null,0,Jv,[cn,$v,[8,null],[2,Zv],[2,qt]],{inline:[0,"inline"]},null),(t()(),qr(-1,0,["menu"])),(t()(),Pr(36,0,null,0,4,"div",[["class","button-container"],["fxLayout","column"],["fxLayoutAlign","space-between"]],null,null,null,null,null)),ni(37,671744,null,0,tw,[cn,Hb,Gb,qb],{fxLayout:[0,"fxLayout"]},null),ni(38,671744,null,0,rw,[cn,Hb,nw,qb],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),Rr(16777216,null,null,1,null,Hw)),ni(40,278528,null,0,Ra,[Nn,On,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component,s=t(e,3,0,n.MatContainerWidth);t(e,2,0,s);var i=t(e,5,0,n.MatContainerWidth);t(e,4,0,i),t(e,6,0,!1);var r=t(e,12,0,n.MatContentWidth,n.MatContentHeight);t(e,11,0,r);var o=t(e,14,0,n.MatContentWidth,n.MatContentHeight);t(e,13,0,o),t(e,15,0);var a=t(e,20,0,n.MenuBGColor);t(e,19,0,a);var l=t(e,22,0,n.MenuBGColor);t(e,21,0,l),t(e,23,0,!0),t(e,26,0,"side");var c=t(e,31,0,n.MenuBGColor);t(e,30,0,c);var h=t(e,33,0,n.MenuBGColor);t(e,32,0,h),t(e,34,0,!0),t(e,37,0,"column"),t(e,38,0,"space-between"),t(e,40,0,n.MenuItems)}),(function(t,e){t(e,1,0,Ws(e,6)._backdropOverride),t(e,10,0,Ws(e,15)._container._contentMargins.left,Ws(e,15)._container._contentMargins.right),t(e,16,0,Ws(e,17).disabled||null,"NoopAnimations"===Ws(e,17)._animationMode),t(e,18,0,Ws(e,23).inline,"primary"!==Ws(e,23).color&&"accent"!==Ws(e,23).color&&"warn"!==Ws(e,23).color),t(e,25,0,null,"end"===Ws(e,26).position,"over"===Ws(e,26).mode,"push"===Ws(e,26).mode,"side"===Ws(e,26).mode,Ws(e,26).opened,Ws(e,26).fixedInViewport,Ws(e,26).fixedInViewport?Ws(e,26).fixedTopGap:null,Ws(e,26).fixedInViewport?Ws(e,26).fixedBottomGap:null,Ws(e,26)._animationState),t(e,27,0,Ws(e,28).disabled||null,"NoopAnimations"===Ws(e,28)._animationMode),t(e,29,0,Ws(e,34).inline,"primary"!==Ws(e,34).color&&"accent"!==Ws(e,34).color&&"warn"!==Ws(e,34).color)}));var e,n}function qw(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"lcu-side-nav",[],null,null,null,$w,Uw)),ni(1,1163264,null,0,jw,[My],null,null)],(function(t,e){t(e,1,0)}),null)}var Ww=Ns("lcu-side-nav",jw,qw,{MenuItems:"menu-items",openedSubject:"opened-subject",FontFamily:"font-family",FontWeight:"font-weight",FontSize:"font-size",MenuColor:"menu-color",HoverMenuColor:"hover-menu-color",MatContentWidth:"mat-content-width",MatContentHeight:"mat-content-height",MatContainerWidth:"mat-container-width",ButtonBorder:"button-border",ButtonBackgroundColor:"button-background-color",ButtonBackgroundColorHover:"button-background-color-hover",ButtonTextPadding:"button-text-padding",FontColor:"font-color"},{NavItemClicked:"nav-item-clicked"},[]),Yw=Gn({encapsulation:0,styles:[[""]],data:{}});function Qw(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"lcu-side-nav",[],null,[[null,"nav-item-clicked"]],(function(t,e,n){var s=!0;return"nav-item-clicked"===e&&(s=!1!==t.component.NavItemClicked(n)&&s),s}),$w,Uw)),ni(1,1163264,null,0,jw,[My],{MenuItems:[0,"MenuItems"],openedSubject:[1,"openedSubject"],MenuColor:[2,"MenuColor"],HoverMenuColor:[3,"HoverMenuColor"],ButtonBackgroundColor:[4,"ButtonBackgroundColor"],ButtonBackgroundColorHover:[5,"ButtonBackgroundColorHover"],FontColor:[6,"FontColor"]},{NavItemClicked:"nav-item-clicked"})],(function(t,e){var n=e.component;t(e,1,0,n.Items,n.openedSubject,n.Color,n.HoverColor,n.ButtonBgColor,n.ButtonHoverBgColor,n.FontColor)}),null)}function Zw(t){return Qr(0,[(t()(),Pr(0,0,null,null,1,"lcu-root",[],null,null,null,Qw,Yw)),ni(1,114688,null,0,ia,[cu,Jc,sp],null,null)],(function(t,e){t(e,1,0)}),null)}var Kw=Ns("lcu-root",ia,Zw,{},{},[]);const Gw=new Et("mat-autocomplete-scroll-strategy");function Xw(t){return()=>t.scrollStrategies.reposition()}class Jw{}const tC=new Et("mat-select-scroll-strategy");function eC(t){return()=>t.scrollStrategies.reposition()}class nC{}let sC=(()=>{class t{constructor(){this.changes=new x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const s=t*e;return`${s+1} \u2013 ${s<(n=Math.max(n,0))?Math.min(s+e,n):s+e} of ${n}`}}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();function iC(t){return t||new sC}class rC{}const oC=qf(Qf(rC));class aC{}class lC{}const cC=Qf(qf(lC));let hC=(()=>{class t{constructor(){this.changes=new x,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();function uC(t){return t||new hC}class dC{}class pC{}let fC=(()=>{class t{constructor(){this.changes=new x,this.optionalLabel="Optional"}}return t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();function gC(t){return t||new fC}class mC{}class _C{constructor(t){this.template=t}}class yC{}function vC(t){const{subscriber:e,counter:n,period:s}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:s},s)}function bC(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function wC(t,e){const n=e?"":"none";bC(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function CC(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function SC(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const EC=xd({passive:!0}),xC=xd({passive:!1});class kC{constructor(t,e,n,s,i,r){this._config=e,this._document=n,this._ngZone=s,this._viewportRuler=i,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new x,this._pointerMoveSubscription=u.EMPTY,this._pointerUpSubscription=u.EMPTY,this._scrollSubscription=u.EMPTY,this._resizeSubscription=u.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new x,this.started=new x,this.released=new x,this.ended=new x,this.entered=new x,this.exited=new x,this.dropped=new x,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Vu(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>Hu(t)),this._handles.forEach(t=>wC(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Hu(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,xC),e.addEventListener("touchstart",this._pointerDown,EC),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?Hu(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&IC(this._rootElement),IC(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&IC(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&IC(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),RC(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,n=t.parentNode,s=this._preview=this._createPreviewElement(),i=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(r,t),t.style.display="none",this._document.body.appendChild(n.replaceChild(i,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(s),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const n=this.isDragging(),s=RC(e),i=!s&&0!==e.button,r=this._rootElement,o=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||i||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor,r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(Nl(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),s=this._getPointerPositionOnPage(t),i=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:i}),e.drop(this,n,this._initialContainer,r,i,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let n=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,t,e,n===this._initialContainer?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=TC(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let s;if(n){const e=t.viewContainer.createEmbeddedView(n,t.context);s=PC(e,this._document),this._previewRef=e,t.matchSize?OC(s,this._rootElement):s.style.transform=TC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;s=AC(t),OC(s,t)}return bC(s.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),wC(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>s.classList.add(t)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=TC(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=SC(e,"transition-property"),s=n.find(t=>"transform"===t||"all"===t);if(!s)return 0;const i=n.indexOf(s),r=SC(e,"transition-duration"),o=SC(e,"transition-delay");return CC(r[i])+CC(o[i])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(s))},s=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),n=PC(this._placeholderRef,this._document)):n=AC(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),s=t===this._rootElement?null:t,i=s?s.getBoundingClientRect():n,r=RC(e)?e.targetTouches[0]:e;return{x:i.left-n.left+(r.pageX-i.left-this._scrollPosition.left),y:i.top-n.top+(r.pageY-i.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=RC(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),n=this.constrainPosition?this.constrainPosition(e,this):e,s=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===s?n.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==s||(n.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,i=this._previewRect,r=s.top+e,o=s.bottom-(i.height-e);n.x=DC(n.x,s.left+t,s.right-(i.width-t)),n.y=DC(n.y,r,o)}return n}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,s=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-i.x),o=Math.abs(n-i.y);return r>this._config.pointerDirectionChangeThreshold&&(s.x=e>i.x?1:-1,i.x=e),o>this._config.pointerDirectionChangeThreshold&&(s.y=n>i.y?1:-1,i.y=n),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,wC(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,xC),t.removeEventListener("touchstart",this._pointerDown,EC)}_applyRootElementTransform(t,e){const n=TC(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===s.width&&0===s.height)return;const i=n.left-s.left,r=s.right-n.right,o=n.top-s.top,a=s.bottom-n.bottom;n.width>s.width?(i>0&&(t+=i),r>0&&(t-=r)):t=0,n.height>s.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:RC(t)?e.touch:e?e.mouse:0}}function TC(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function AC(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),s=t.querySelectorAll("canvas");e.removeAttribute("id");for(let i=0;i<n.length;i++)n[i].removeAttribute("id");if(s.length){const t=e.querySelectorAll("canvas");for(let e=0;e<s.length;e++){const n=t[e].getContext("2d");n&&n.drawImage(s[e],0,0)}}return e}function DC(t,e,n){return Math.max(e,Math.min(n,t))}function IC(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function RC(t){return"t"===t.type[0]}function PC(t,e){const n=t.rootNodes[0];if(n.nodeType!==e.ELEMENT_NODE){const t=e.createElement("div");return t.appendChild(n),t}return n}function OC(t,e){const n=e.getBoundingClientRect();t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=TC(n.left,n.top)}function MC(t,e){return Math.max(0,Math.min(e,t))}class NC{constructor(t,e,n,s,i){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=i,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new x,this.entered=new x,this.exited=new x,this.dropped=new x,this.sorted=new x,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=td){return(!sd(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=td),new b(n=>(n.add(e.schedule(vC,t,{subscriber:n,counter:0,period:t})),n))}(0,Gu).pipe(od(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?UC(t,-2):2===this._verticalScrollDirection&&UC(t,2),1===this._horizontalScrollDirection?zC(t,-2):2===this._horizontalScrollDirection&&zC(t,2)})},this.element=Hu(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=Hu(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,n,s){let i;this.start(),null==s?(i=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===i&&(i=this._getItemIndexFromPointerPosition(t,e,n))):i=s;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let l=r[i];if(l===t&&(l=r[i+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(a,e),r.splice(i,0,t)}else Hu(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,s,i,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:s,distance:i})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Hu(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?VC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,s){if(this.sortingDisabled||!FC(this._clientRect,e,n))return;const i=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,s);if(-1===r&&i.length>0)return;const o="horizontal"===this._orientation,a=VC(i,e=>e.drag===t),l=i[r],c=i[a].clientRect,h=l.clientRect,u=a>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?s.x:s.y;const d=this._getItemOffsetPx(c,h,u),p=this._getSiblingOffsetPx(a,i,u),f=i.slice();!function(t,e,n){const s=MC(e,t.length-1),i=MC(n,t.length-1);if(s===i)return;const r=t[s],o=i<s?-1:1;for(let a=s;a!==i;a+=o)t[a]=t[a+o];t[i]=r}(i,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),i.forEach((e,n)=>{if(f[n]===e)return;const s=e.drag===t,i=s?d:p,r=s?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=i,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,LC(e.clientRect,0,i)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,LC(e.clientRect,i,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,s=0,i=0;if(this._parentPositions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!n&&FC(r.clientRect,t,e)&&([s,i]=function(t,e,n,s){const i=HC(e,s),r=$C(e,n);let o=0,a=0;if(i){const e=t.scrollTop;1===i?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(s||i)&&(n=o))}),!s&&!i){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};s=HC(a,e),i=$C(a,t),n=window}!n||s===this._verticalScrollDirection&&i===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=s,this._horizontalScrollDirection=i,this._scrollNode=n,(s||i)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=jC(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:jC(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=Hu(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const s="horizontal"===this._orientation,i=e[t].clientRect,r=e[t+-1*n];let o=i[s?"width":"height"]*n;if(r){const t=s?"left":"top",e=s?"right":"bottom";-1===n?o-=r.clientRect[t]-i[e]:o+=i[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const s="horizontal"===this._orientation;let i=s?e.left-t.left:e.top-t.top;return-1===n&&(i+=s?e.width-t.width:e.height-t.height),i}_getItemIndexFromPointerPosition(t,e,n,s){const i="horizontal"===this._orientation;return VC(this._itemPositions,({drag:r,clientRect:o},a,l)=>{if(r===t)return l.length<2;if(s){const t=i?s.x:s.y;if(r===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return i?e>=Math.floor(o.left)&&e<=Math.floor(o.right):n>=Math.floor(o.top)&&n<=Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,n){const s=this._parentPositions.get(t).scrollPosition,i=s.top-e,r=s.left-n;this._parentPositions.forEach((e,n)=>{e.clientRect&&t!==n&&t.contains(n)&&LC(e.clientRect,i,r)}),this._itemPositions.forEach(({clientRect:t})=>{LC(t,i,r)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),s.top=e,s.left=n}_isOverContainer(t,e){return BC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(s=>s._canReceive(t,e,n))}_canReceive(t,e,n){if(!BC(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,n);if(!s)return!1;const i=Hu(this.element);return s===i||i.contains(s)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,n;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,n=e.left}else t=e.scrollTop,n=e.scrollLeft;this._updateAfterScroll(e,t,n)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(function(){if(null==Cd){const t="undefined"!=typeof document?document.head:null;Cd=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Cd}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(Hu(this.element))||this._document),this._cachedShadowRoot}}function LC(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function FC(t,e,n){const{top:s,right:i,bottom:r,left:o,width:a,height:l}=t,c=.05*a,h=.05*l;return n>s-h&&n<r+h&&e>o-c&&e<i+c}function VC(t,e){for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function BC(t,e,n){const{top:s,bottom:i,left:r,right:o}=t;return n>=s&&n<=i&&e>=r&&e<=o}function jC(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function UC(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function zC(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function HC(t,e){const{top:n,bottom:s,height:i}=t,r=.05*i;return e>=n-r&&e<=n+r?1:e>=s-r&&e<=s+r?2:0}function $C(t,e){const{left:n,right:s,width:i}=t,r=.05*i;return e>=n-r&&e<=n+r?1:e>=s-r&&e<=s+r?2:0}const qC=xd({passive:!1,capture:!0});let WC=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new x,this.pointerUp=new x,this.scroll=new x,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,qC)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,qC)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),n=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:qC}).set(n,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275prov=ht({factory:function(){return new t(Rt(Wi),Rt(aa))},token:t,providedIn:"root"}),t})();const YC={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let QC=(()=>{class t{constructor(t,e,n,s){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=s}createDrag(t,e=YC){return new kC(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new NC(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(aa),Rt(Wi),Rt(Dd),Rt(WC))},token:t,providedIn:"root"}),t})();class ZC{}class KC{}class GC{}class XC{constructor(t,e){Ya(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,e=[]){return{ngModule:XC,providers:t.serverLoaded?[{provide:_b,useValue:Object.assign(Object.assign({},mb),t)},{provide:vb,useValue:e,multi:!0},{provide:yb,useValue:!0}]:[{provide:_b,useValue:Object.assign(Object.assign({},mb),t)},{provide:vb,useValue:e,multi:!0}]}}}var JC,tS=(JC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}JC(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),eS=function(t){function e(e,n){var s=this,i=this.constructor.prototype;return(s=t.call(this,e)||this).statusCode=n,s.__proto__=i,s}return tS(e,t),e}(Error),nS=function(t){function e(e){void 0===e&&(e="A timeout occurred.");var n=this,s=this.constructor.prototype;return(n=t.call(this,e)||this).__proto__=s,n}return tS(e,t),e}(Error),sS=function(t){function e(e){void 0===e&&(e="An abort occurred.");var n=this,s=this.constructor.prototype;return(n=t.call(this,e)||this).__proto__=s,n}return tS(e,t),e}(Error),iS=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},rS=function(){return function(t,e,n){this.statusCode=t,this.statusText=e,this.content=n}}(),oS=function(){function t(){}return t.prototype.get=function(t,e){return this.send(iS({},e,{method:"GET",url:t}))},t.prototype.post=function(t,e){return this.send(iS({},e,{method:"POST",url:t}))},t.prototype.delete=function(t,e){return this.send(iS({},e,{method:"DELETE",url:t}))},t.prototype.getCookieString=function(t){return""},t}(),aS=function(t){return t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None",t}({}),lS=function(){function t(){}return t.prototype.log=function(t,e){},t.instance=new t,t}(),cS=function(){function t(){}return t.isRequired=function(t,e){if(null==t)throw new Error("The '"+e+"' argument is required.")},t.isIn=function(t,e,n){if(!(t in e))throw new Error("Unknown "+n+" value: "+t+".")},t}();function hS(t,e){var n="";return uS(t)?(n="Binary data of length "+t.byteLength,e&&(n+=". Content: '"+function(t){var e=new Uint8Array(t),n="";return e.forEach((function(t){n+="0x"+(t<16?"0":"")+t.toString(16)+" "})),n.substr(0,n.length-1)}(t)+"'")):"string"==typeof t&&(n="String data of length "+t.length,e&&(n+=". Content: '"+t+"'")),n}function uS(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function dS(t,e,n,s,i,r,o){return a=this,void 0,c=function(){var a,l,c,h,u;return function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(d){switch(d.label){case 0:return i?[4,i()]:[3,2];case 1:(c=d.sent())&&((a={}).Authorization="Bearer "+c,l=a),d.label=2;case 2:return t.log(aS.Trace,"("+e+" transport) sending data. "+hS(r,o)+"."),h=uS(r)?"arraybuffer":"text",[4,n.post(s,{content:r,headers:l,responseType:h})];case 3:return u=d.sent(),t.log(aS.Trace,"("+e+" transport) request complete. Response status: "+u.statusCode+"."),[2]}}))},new((l=void 0)||(l=Promise))((function(t,e){function n(t){try{i(c.next(t))}catch(n){e(n)}}function s(t){try{i(c.throw(t))}catch(n){e(n)}}function i(e){e.done?t(e.value):new l((function(t){t(e.value)})).then(n,s)}i((c=c.apply(a,[])).next())}));var a,l,c}var pS,fS=function(){function t(){this.observers=[]}return t.prototype.next=function(t){for(var e=0,n=this.observers;e<n.length;e++)n[e].next(t)},t.prototype.error=function(t){for(var e=0,n=this.observers;e<n.length;e++){var s=n[e];s.error&&s.error(t)}},t.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var n=e[t];n.complete&&n.complete()}},t.prototype.subscribe=function(t){return this.observers.push(t),new gS(this,t)},t}(),gS=function(){function t(t,e){this.subject=t,this.observer=e}return t.prototype.dispose=function(){var t=this.subject.observers.indexOf(this.observer);t>-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(t){}))},t}(),mS=function(){function t(t){this.minimumLogLevel=t}return t.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case aS.Critical:case aS.Error:console.error("["+(new Date).toISOString()+"] "+aS[t]+": "+e);break;case aS.Warning:console.warn("["+(new Date).toISOString()+"] "+aS[t]+": "+e);break;case aS.Information:console.info("["+(new Date).toISOString()+"] "+aS[t]+": "+e);break;default:console.log("["+(new Date).toISOString()+"] "+aS[t]+": "+e)}},t}(),_S=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),yS=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};if("undefined"==typeof XMLHttpRequest){var vS=require;pS=vS("request")}var bS=function(t){function e(e){var n=t.call(this)||this;if(void 0===pS)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=pS.jar(),n.request=pS.defaults({jar:n.cookieJar}),n}return _S(e,t),e.prototype.send=function(t){var e=this;return new Promise((function(n,s){var i;i=uS(t.content)?Buffer.from(t.content):t.content||"";var r=e.request(t.url,{body:i,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:yS({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(i,r,o){if(t.abortSignal&&(t.abortSignal.onabort=null),i)return"ETIMEDOUT"===i.code&&(e.logger.log(aS.Warning,"Timeout from HTTP request."),s(new nS)),e.logger.log(aS.Warning,"Error from HTTP request. "+i),void s(i);r.statusCode>=200&&r.statusCode<300?n(new rS(r.statusCode,r.statusMessage||"",o)):s(new eS(r.statusMessage||"",r.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){r.abort(),s(new sS)})}))},e.prototype.getCookieString=function(t){return this.cookieJar.getCookieString(t)},e}(oS),wS=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),CS=function(t){function e(e){var n=t.call(this)||this;return n.logger=e,n}return wS(e,t),e.prototype.send=function(t){var e=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new sS):t.method?t.url?new Promise((function(n,s){var i=new XMLHttpRequest;i.open(t.method,t.url,!0),i.withCredentials=!0,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var r=t.headers;r&&Object.keys(r).forEach((function(t){i.setRequestHeader(t,r[t])})),t.responseType&&(i.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){i.abort(),s(new sS)}),t.timeout&&(i.timeout=t.timeout),i.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new rS(i.status,i.statusText,i.response||i.responseText)):s(new eS(i.statusText,i.status))},i.onerror=function(){e.logger.log(aS.Warning,"Error from HTTP request. "+i.status+": "+i.statusText+"."),s(new eS(i.statusText,i.status))},i.ontimeout=function(){e.logger.log(aS.Warning,"Timeout from HTTP request."),s(new nS)},i.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e}(oS),SS=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function s(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}}(),ES=function(t){function e(e){var n=t.call(this)||this;return n.httpClient="undefined"!=typeof XMLHttpRequest?new CS(e):new bS(e),n}return SS(e,t),e.prototype.send=function(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new sS):t.method?t.url?this.httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e.prototype.getCookieString=function(t){return this.httpClient.getCookieString(t)},e}(oS),xS=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}(),kS=function(){function t(){}return t.prototype.writeHandshakeRequest=function(t){return xS.write(JSON.stringify(t))},t.prototype.parseHandshakeResponse=function(t){var e,n;if(uS(t)||"undefined"!=typeof Buffer&&t instanceof Buffer){var s=new Uint8Array(t);if(-1===(r=s.indexOf(xS.RecordSeparatorCode)))throw new Error("Message is incomplete.");var i=r+1;e=String.fromCharCode.apply(null,s.slice(0,i)),n=s.byteLength>i?s.slice(i).buffer:null}else{var r,o=t;if(-1===(r=o.indexOf(xS.RecordSeparator)))throw new Error("Message is incomplete.");e=o.substring(0,i=r+1),n=o.length>i?o.substring(i):null}var a=xS.parse(e),l=JSON.parse(a[0]);if(l.type)throw new Error("Expected a handshake response from the server.");return[n,l]},t}(),TS=function(t){return t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t}({}),AS=function(t,e,n,s){return new(n||(n=Promise))((function(i,r){function o(t){try{l(s.next(t))}catch(e){r(e)}}function a(t){try{l(s.throw(t))}catch(e){r(e)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(o,a)}l((s=s.apply(t,e||[])).next())}))},DS=function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},IS=function(t){return t[t.Disconnected=0]="Disconnected",t[t.Connected=1]="Connected",t}({}),RS=function(){function t(t,e,n){var s=this;cS.isRequired(t,"connection"),cS.isRequired(e,"logger"),cS.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=e,this.protocol=n,this.connection=t,this.handshakeProtocol=new kS,this.connection.onreceive=function(t){return s.processIncomingData(t)},this.connection.onclose=function(t){return s.connectionClosed(t)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0,this.receivedHandshakeResponse=!1,this.connectionState=IS.Disconnected,this.cachedPingMessage=this.protocol.writeMessage({type:TS.Ping})}return t.create=function(e,n,s){return new t(e,n,s)},Object.defineProperty(t.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),t.prototype.start=function(){return AS(this,void 0,void 0,(function(){var t,e,n=this;return DS(this,(function(s){switch(s.label){case 0:return t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(aS.Debug,"Starting HubConnection."),this.receivedHandshakeResponse=!1,e=new Promise((function(t,e){n.handshakeResolver=t,n.handshakeRejecter=e})),[4,this.connection.start(this.protocol.transferFormat)];case 1:return s.sent(),this.logger.log(aS.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 2:return s.sent(),this.logger.log(aS.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 3:return s.sent(),this.connectionState=IS.Connected,[2]}}))}))},t.prototype.stop=function(){return this.logger.log(aS.Debug,"Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),this.connection.stop()},t.prototype.stream=function(t){for(var e=this,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var i,r=this.createStreamInvocation(t,n),o=new fS;o.cancelCallback=function(){var t=e.createCancelInvocation(r.invocationId),n=e.protocol.writeMessage(t);return delete e.callbacks[r.invocationId],i.then((function(){return e.sendMessage(n)}))},this.callbacks[r.invocationId]=function(t,e){e?o.error(e):t&&(t.type===TS.Completion?t.error?o.error(new Error(t.error)):o.complete():o.next(t.item))};var a=this.protocol.writeMessage(r);return i=this.sendMessage(a).catch((function(t){o.error(t),delete e.callbacks[r.invocationId]})),o},t.prototype.sendMessage=function(t){return this.resetKeepAliveInterval(),this.connection.send(t)},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=this.createInvocation(t,e,!0),i=this.protocol.writeMessage(s);return this.sendMessage(i)},t.prototype.invoke=function(t){for(var e=this,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var i=this.createInvocation(t,n,!1),r=new Promise((function(t,n){e.callbacks[i.invocationId]=function(e,s){s?n(s):e&&(e.type===TS.Completion?e.error?n(new Error(e.error)):t(e.result):n(new Error("Unexpected message type: "+e.type)))};var s=e.protocol.writeMessage(i);e.sendMessage(s).catch((function(t){n(t),delete e.callbacks[i.invocationId]}))}));return r},t.prototype.on=function(t,e){t&&e&&(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},t.prototype.off=function(t,e){if(t){t=t.toLowerCase();var n=this.methods[t];if(n)if(e){var s=n.indexOf(e);-1!==s&&(n.splice(s,1),0===n.length&&delete this.methods[t])}else delete this.methods[t]}},t.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},t.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var e=0,n=this.protocol.parseMessages(t,this.logger);e<n.length;e++){var s=n[e];switch(s.type){case TS.Invocation:this.invokeClientMethod(s);break;case TS.StreamItem:case TS.Completion:var i=this.callbacks[s.invocationId];null!=i&&(s.type===TS.Completion&&delete this.callbacks[s.invocationId],i(s));break;case TS.Ping:break;case TS.Close:this.logger.log(aS.Information,"Close message received from server."),this.connection.stop(s.error?new Error("Server returned an error on close: "+s.error):void 0);break;default:this.logger.log(aS.Warning,"Invalid message type: "+s.type+".")}}this.resetTimeoutPeriod()},t.prototype.processHandshakeResponse=function(t){var e,n,s;try{s=(e=this.handshakeProtocol.parseHandshakeResponse(t))[0],n=e[1]}catch(o){var i;this.logger.log(aS.Error,i="Error parsing handshake response: "+o);var r=new Error(i);throw this.connection.stop(r),this.handshakeRejecter(r),r}if(n.error)throw this.logger.log(aS.Error,i="Server returned handshake error: "+n.error),this.handshakeRejecter(i),this.connection.stop(new Error(i)),new Error(i);return this.logger.log(aS.Debug,"Server handshake complete."),this.handshakeResolver(),s},t.prototype.resetKeepAliveInterval=function(){var t=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return AS(t,void 0,void 0,(function(){return DS(this,(function(t){switch(t.label){case 0:if(this.connectionState!==IS.Connected)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return t.sent(),[3,4];case 3:return t.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},t.prototype.resetTimeoutPeriod=function(){var t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return t.serverTimeout()}),this.serverTimeoutInMilliseconds))},t.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},t.prototype.invokeClientMethod=function(t){var e=this,n=this.methods[t.target.toLowerCase()];if(n){if(n.forEach((function(n){return n.apply(e,t.arguments)})),t.invocationId){var s="Server requested a response, which is not supported in this version of the client.";this.logger.log(aS.Error,s),this.connection.stop(new Error(s))}}else this.logger.log(aS.Warning,"No client method with the name '"+t.target+"' found.")},t.prototype.connectionClosed=function(t){var e=this,n=this.callbacks;this.callbacks={},this.connectionState=IS.Disconnected,this.handshakeRejecter&&this.handshakeRejecter(t),Object.keys(n).forEach((function(e){(0,n[e])(null,t||new Error("Invocation canceled due to connection being closed."))})),this.cleanupTimeout(),this.cleanupPingTimer(),this.closedCallbacks.forEach((function(n){return n.apply(e,[t])}))},t.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},t.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},t.prototype.createInvocation=function(t,e,n){if(n)return{arguments:e,target:t,type:TS.Invocation};var s=this.id;return this.id++,{arguments:e,invocationId:s.toString(),target:t,type:TS.Invocation}},t.prototype.createStreamInvocation=function(t,e){var n=this.id;return this.id++,{arguments:e,invocationId:n.toString(),target:t,type:TS.StreamInvocation}},t.prototype.createCancelInvocation=function(t){return{invocationId:t,type:TS.CancelInvocation}},t}(),PS=function(t){return t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling",t}({}),OS=function(t){return t[t.Text=1]="Text",t[t.Binary=2]="Binary",t}({}),MS=function(){function t(){this.isAborted=!1,this.onabort=null}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),NS=function(t,e,n,s){return new(n||(n=Promise))((function(i,r){function o(t){try{l(s.next(t))}catch(e){r(e)}}function a(t){try{l(s.throw(t))}catch(e){r(e)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(o,a)}l((s=s.apply(t,e||[])).next())}))},LS=function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},FS=function(){function t(t,e,n,s){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.pollAbort=new MS,this.logMessageContent=s,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(t.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),t.prototype.connect=function(t,e){return NS(this,void 0,void 0,(function(){var n,s,i,r;return LS(this,(function(o){switch(o.label){case 0:if(cS.isRequired(t,"url"),cS.isRequired(e,"transferFormat"),cS.isIn(e,OS,"transferFormat"),this.url=t,this.logger.log(aS.Trace,"(LongPolling transport) Connecting."),e===OS.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},e===OS.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return s=o.sent(),this.updateHeaderToken(n,s),i=t+"&_="+Date.now(),this.logger.log(aS.Trace,"(LongPolling transport) polling: "+i+"."),[4,this.httpClient.get(i,n)];case 2:return 200!==(r=o.sent()).statusCode?(this.logger.log(aS.Error,"(LongPolling transport) Unexpected response code: "+r.statusCode+"."),this.closeError=new eS(r.statusText||"",r.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},t.prototype.getAccessToken=function(){return NS(this,void 0,void 0,(function(){return LS(this,(function(t){switch(t.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,null]}}))}))},t.prototype.updateHeaderToken=function(t,e){t.headers||(t.headers={}),e?t.headers.Authorization="Bearer "+e:t.headers.Authorization&&delete t.headers.Authorization},t.prototype.poll=function(t,e){return NS(this,void 0,void 0,(function(){var n,s,i,r;return LS(this,(function(o){switch(o.label){case 0:o.trys.push([0,,8,9]),o.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=o.sent(),this.updateHeaderToken(e,n),o.label=3;case 3:return o.trys.push([3,5,,6]),s=t+"&_="+Date.now(),this.logger.log(aS.Trace,"(LongPolling transport) polling: "+s+"."),[4,this.httpClient.get(s,e)];case 4:return 204===(i=o.sent()).statusCode?(this.logger.log(aS.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==i.statusCode?(this.logger.log(aS.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new eS(i.statusText||"",i.statusCode),this.running=!1):i.content?(this.logger.log(aS.Trace,"(LongPolling transport) data received. "+hS(i.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(i.content)):this.logger.log(aS.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return r=o.sent(),this.running?r instanceof nS?this.logger.log(aS.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=r,this.running=!1):this.logger.log(aS.Trace,"(LongPolling transport) Poll errored after shutdown: "+r.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(aS.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},t.prototype.send=function(t){return NS(this,void 0,void 0,(function(){return LS(this,(function(e){return this.running?[2,dS(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return NS(this,void 0,void 0,(function(){var t,e;return LS(this,(function(n){switch(n.label){case 0:this.logger.log(aS.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(aS.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.getAccessToken()];case 3:return e=n.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 4:return n.sent(),this.logger.log(aS.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(aS.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},t.prototype.raiseOnClose=function(){if(this.onclose){var t="(LongPolling transport) Firing onclose event.";this.closeError&&(t+=" Error: "+this.closeError),this.logger.log(aS.Trace,t),this.onclose(this.closeError)}},t}(),VS=function(t,e,n,s){return new(n||(n=Promise))((function(i,r){function o(t){try{l(s.next(t))}catch(e){r(e)}}function a(t){try{l(s.throw(t))}catch(e){r(e)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(o,a)}l((s=s.apply(t,e||[])).next())}))},BS=function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},jS=function(){function t(t,e,n,s,i){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.logMessageContent=s,this.eventSourceConstructor=i,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return VS(this,void 0,void 0,(function(){var n,s=this;return BS(this,(function(i){switch(i.label){case 0:return cS.isRequired(t,"url"),cS.isRequired(e,"transferFormat"),cS.isIn(e,OS,"transferFormat"),this.logger.log(aS.Trace,"(SSE transport) Connecting."),this.url=t,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var r=!1;if(e===OS.Text){var o;if("undefined"!=typeof window)o=new s.eventSourceConstructor(t,{withCredentials:!0});else{var a=s.httpClient.getCookieString(t);o=new s.eventSourceConstructor(t,{withCredentials:!0,headers:{Cookie:a}})}try{o.onmessage=function(t){if(s.onreceive)try{s.logger.log(aS.Trace,"(SSE transport) data received. "+hS(t.data,s.logMessageContent)+"."),s.onreceive(t.data)}catch(e){return void s.close(e)}},o.onerror=function(t){var e=new Error(t.data||"Error occurred");r?s.close(e):i(e)},o.onopen=function(){s.logger.log(aS.Information,"SSE connected to "+s.url),s.eventSource=o,r=!0,n()}}catch(l){return void i(l)}}else i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},t.prototype.send=function(t){return VS(this,void 0,void 0,(function(){return BS(this,(function(e){return this.eventSource?[2,dS(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return this.close(),Promise.resolve()},t.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(t))},t}(),US=function(){function t(t,e,n,s,i){this.logger=n,this.accessTokenFactory=e,this.logMessageContent=s,this.webSocketConstructor=i,this.httpClient=t,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return n=this,void 0,i=function(){var n,s=this;return function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(i){switch(i.label){case 0:return cS.isRequired(t,"url"),cS.isRequired(e,"transferFormat"),cS.isIn(e,OS,"transferFormat"),this.logger.log(aS.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var r;t=t.replace(/^http/,"ws");var o=s.httpClient.getCookieString(t);"undefined"==typeof window&&o&&(r=new s.webSocketConstructor(t,void 0,{headers:{Cookie:""+o}})),r||(r=new s.webSocketConstructor(t)),e===OS.Binary&&(r.binaryType="arraybuffer"),r.onopen=function(e){s.logger.log(aS.Information,"WebSocket connected to "+t+"."),s.webSocket=r,n()},r.onerror=function(t){var e=null;"undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent&&(e=t.error),i(e)},r.onmessage=function(t){s.logger.log(aS.Trace,"(WebSockets transport) data received. "+hS(t.data,s.logMessageContent)+"."),s.onreceive&&s.onreceive(t.data)},r.onclose=function(t){return s.close(t)}}))]}}))},new((s=void 0)||(s=Promise))((function(t,e){function r(t){try{a(i.next(t))}catch(n){e(n)}}function o(t){try{a(i.throw(t))}catch(n){e(n)}}function a(e){e.done?t(e.value):new s((function(t){t(e.value)})).then(r,o)}a((i=i.apply(n,[])).next())}));var n,s,i},t.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(aS.Trace,"(WebSockets transport) sending data. "+hS(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},t.prototype.stop=function(){return this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0,this.close(void 0)),Promise.resolve()},t.prototype.close=function(t){this.logger.log(aS.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!t||!1!==t.wasClean&&1e3===t.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+t.code+" ("+t.reason+").")))},t}(),zS=function(t,e,n,s){return new(n||(n=Promise))((function(i,r){function o(t){try{l(s.next(t))}catch(e){r(e)}}function a(t){try{l(s.throw(t))}catch(e){r(e)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(o,a)}l((s=s.apply(t,e||[])).next())}))},HS=function(t,e){var n,s,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(a){r=[6,a],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},$S=null,qS=null;if("undefined"==typeof window){var WS=require;$S=WS("ws"),qS=WS("eventsource")}var YS=function(){function t(t,e){var n;void 0===e&&(e={}),this.features={},cS.isRequired(t,"url"),this.logger=void 0===(n=e.logger)?new mS(aS.Information):null===n?lS.instance:n.log?n:new mS(n),this.baseUrl=this.resolveUrl(t),(e=e||{}).logMessageContent=e.logMessageContent||!1;var s="undefined"==typeof window;s||"undefined"==typeof WebSocket||e.WebSocket?s&&!e.WebSocket&&$S&&(e.WebSocket=$S):e.WebSocket=WebSocket,s||"undefined"==typeof EventSource||e.EventSource?s&&!e.EventSource&&void 0!==qS&&(e.EventSource=qS):e.EventSource=EventSource,this.httpClient=e.httpClient||new ES(this.logger),this.connectionState=2,this.options=e,this.onreceive=null,this.onclose=null}return t.prototype.start=function(t){return cS.isIn(t=t||OS.Binary,OS,"transferFormat"),this.logger.log(aS.Debug,"Starting connection with transfer format '"+OS[t]+"'."),2!==this.connectionState?Promise.reject(new Error("Cannot start a connection that is not in the 'Disconnected' state.")):(this.connectionState=0,this.startPromise=this.startInternal(t),this.startPromise)},t.prototype.send=function(t){if(1!==this.connectionState)throw new Error("Cannot send data if the connection is not in the 'Connected' State.");return this.transport.send(t)},t.prototype.stop=function(t){return zS(this,void 0,void 0,(function(){return HS(this,(function(e){switch(e.label){case 0:this.connectionState=2,this.stopError=t,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startPromise];case 2:case 3:return e.sent(),[3,4];case 4:return this.transport?[4,this.transport.stop()]:[3,6];case 5:e.sent(),this.transport=void 0,e.label=6;case 6:return[2]}}))}))},t.prototype.startInternal=function(t){return zS(this,void 0,void 0,(function(){var e,n,s,i,r,o,a,l=this;return HS(this,(function(c){switch(c.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==PS.WebSockets?[3,3]:(this.transport=this.constructTransport(PS.WebSockets),[4,this.transport.connect(e,t)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,s=0,i=function(){var t;return HS(this,(function(i){switch(i.label){case 0:return[4,r.getNegotiationResponse(e)];case 1:if(n=i.sent(),2===r.connectionState)return[2,{value:void 0}];if(n.error)throw Error(n.error);if(n.ProtocolVersion)throw Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(e=n.url),n.accessToken&&(t=n.accessToken,r.accessTokenFactory=function(){return t}),s++,[2]}}))},r=this,c.label=6;case 6:return[5,i()];case 7:if("object"==typeof(o=c.sent()))return[2,o.value];c.label=8;case 8:if(n.url&&s<100)return[3,6];c.label=9;case 9:if(100===s&&n.url)throw Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,n,t)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof FS&&(this.features.inherentKeepAlive=!0),this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return l.stopConnection(t)},this.changeState(0,1),[3,13];case 12:throw a=c.sent(),this.logger.log(aS.Error,"Failed to start the connection: "+a),this.connectionState=2,this.transport=void 0,a;case 13:return[2]}}))}))},t.prototype.getNegotiationResponse=function(t){return zS(this,void 0,void 0,(function(){var e,n,s,i,r,o;return HS(this,(function(a){switch(a.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(s=a.sent())&&((e={}).Authorization="Bearer "+s,n=e),a.label=2;case 2:i=this.resolveNegotiateUrl(t),this.logger.log(aS.Debug,"Sending negotiation request: "+i+"."),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this.httpClient.post(i,{content:"",headers:n})];case 4:if(200!==(r=a.sent()).statusCode)throw Error("Unexpected status code returned from negotiate "+r.statusCode);return[2,JSON.parse(r.content)];case 5:throw o=a.sent(),this.logger.log(aS.Error,"Failed to complete negotiation with the server: "+o),o;case 6:return[2]}}))}))},t.prototype.createConnectUrl=function(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+"id="+e:t},t.prototype.createTransport=function(t,e,n,s){return zS(this,void 0,void 0,(function(){var i,r,o,a,l,c;return HS(this,(function(h){switch(h.label){case 0:return i=this.createConnectUrl(t,n.connectionId),this.isITransport(e)?(this.logger.log(aS.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.transport.connect(i,s)]):[3,2];case 1:return h.sent(),this.changeState(0,1),[2];case 2:r=0,o=n.availableTransports||[],h.label=3;case 3:return r<o.length?(a=o[r],this.connectionState=0,"number"!=typeof(l=this.resolveTransport(a,e,s))?[3,8]:(this.transport=this.constructTransport(l),n.connectionId?[3,5]:[4,this.getNegotiationResponse(t)])):[3,9];case 4:n=h.sent(),i=this.createConnectUrl(t,n.connectionId),h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.transport.connect(i,s)];case 6:return h.sent(),this.changeState(0,1),[2];case 7:return c=h.sent(),this.logger.log(aS.Error,"Failed to start the transport '"+PS[l]+"': "+c),this.connectionState=2,n.connectionId=void 0,[3,8];case 8:return r++,[3,3];case 9:throw new Error("Unable to initialize any of the available transports.")}}))}))},t.prototype.constructTransport=function(t){switch(t){case PS.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new US(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case PS.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new jS(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case PS.LongPolling:return new FS(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.resolveTransport=function(t,e,n){var s=PS[t.transport];if(null==s)this.logger.log(aS.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client.");else{var i=t.transferFormats.map((function(t){return OS[t]}));if(function(t,e){return!t||0!=(e&t)}(e,s))if(i.indexOf(n)>=0){if((s!==PS.WebSockets||this.options.WebSocket)&&(s!==PS.ServerSentEvents||this.options.EventSource))return this.logger.log(aS.Debug,"Selecting transport '"+PS[s]+"'."),s;this.logger.log(aS.Debug,"Skipping transport '"+PS[s]+"' because it is not supported in your environment.'")}else this.logger.log(aS.Debug,"Skipping transport '"+PS[s]+"' because it does not support the requested transfer format '"+OS[n]+"'.");else this.logger.log(aS.Debug,"Skipping transport '"+PS[s]+"' because it was disabled by the client.")}return null},t.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},t.prototype.changeState=function(t,e){return this.connectionState===t&&(this.connectionState=e,!0)},t.prototype.stopConnection=function(t){this.transport=void 0,(t=this.stopError||t)?this.logger.log(aS.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(aS.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(t)},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if("undefined"==typeof window||!window||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(aS.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),n=t.substring(0,-1===e?t.length:e);return"/"!==n[n.length-1]&&(n+="/"),(n+="negotiate")+(-1===e?"":t.substring(e))},t}(),QS=function(){function t(){this.name="json",this.version=1,this.transferFormat=OS.Text}return t.prototype.parseMessages=function(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=lS.instance);for(var n=[],s=0,i=xS.parse(t);s<i.length;s++){var r=JSON.parse(i[s]);if("number"!=typeof r.type)throw new Error("Invalid payload.");switch(r.type){case TS.Invocation:this.isInvocationMessage(r);break;case TS.StreamItem:this.isStreamItemMessage(r);break;case TS.Completion:this.isCompletionMessage(r);break;case TS.Ping:case TS.Close:break;default:e.log(aS.Information,"Unknown message type '"+r.type+"' ignored.");continue}n.push(r)}return n},t.prototype.writeMessage=function(t){return xS.write(JSON.stringify(t))},t.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},t.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},t.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},t.prototype.assertNotEmptyString=function(t,e){if("string"!=typeof t||""===t)throw new Error(e)},t}(),ZS=function(){function t(){}return t.prototype.configureLogging=function(t){return cS.isRequired(t,"logging"),this.logger=void 0!==t.log?t:new mS(t),this},t.prototype.withUrl=function(t,e){return cS.isRequired(t,"url"),this.url=t,this.httpConnectionOptions="object"==typeof e?e:{transport:e},this},t.prototype.withHubProtocol=function(t){return cS.isRequired(t,"protocol"),this.protocol=t,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new YS(this.url,t);return RS.create(e,this.logger||lS.instance,this.protocol||new QS)},t}();class KS{}class GS{}const XS=new Et("MatBottomSheetData");class JS{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}class tE extends Ld{constructor(t,e,n,s,i,r){super(),this._elementRef=t,this._changeDetectorRef=e,this._focusTrapFactory=n,this.bottomSheetConfig=r,this._animationState="void",this._animationStateChanged=new Si,this._elementFocusedBeforeOpened=null,this.attachDomPortal=t=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._document=i,this._breakpointSubscription=s.observe(["(min-width: 960px) and (max-width: 1279.99px)","(min-width: 1280px) and (max-width: 1919.99px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",s.isMatched("(min-width: 960px) and (max-width: 1279.99px)")),this._toggleClass("mat-bottom-sheet-container-large",s.isMatched("(min-width: 1280px) and (max-width: 1919.99px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",s.isMatched("(min-width: 1920px)"))})}attachComponentPortal(t){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(t){"hidden"===t.toState?this._restoreFocus():"visible"===t.toState&&this._trapFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_toggleClass(t,e){const n=this._elementRef.nativeElement.classList;e?n.add(t):n.remove(t)}_validatePortalAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach bottom sheet content after content is already attached")}_setPanelClass(){const t=this._elementRef.nativeElement,e=this.bottomSheetConfig.panelClass;Array.isArray(e)?e.forEach(e=>t.classList.add(e)):e&&t.classList.add(e)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}}class eE{}class nE{constructor(t,e,n){this._overlayRef=e,this._afterDismissed=new x,this._afterOpened=new x,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(al(t=>"done"===t.phaseName&&"visible"===t.toState),xl(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(al(t=>"done"===t.phaseName&&"hidden"===t.toState),xl(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),e.dispose()}),e.detachments().pipe(xl(1)).subscribe(()=>{this._afterDismissed.next(this._result),this._afterDismissed.complete()}),Q(e.backdropClick(),e.keydownEvents().pipe(al(t=>27===t.keyCode))).subscribe(t=>{this.disableClose||"keydown"===t.type&&Ud(t)||(t.preventDefault(),this.dismiss())})}dismiss(t){this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(al(t=>"start"===t.phaseName),xl(1)).subscribe(t=>{this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},t.totalTime+100),this._overlayRef.detachBackdrop()}),this._result=t,this.containerInstance.exit())}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this._afterOpened.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}}const sE=new Et("mat-bottom-sheet-default-options");let iE=(()=>{class t{constructor(t,e,n,s,i){this._overlay=t,this._injector=e,this._parentBottomSheet=n,this._location=s,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}get _openedBottomSheetRef(){const t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}open(t,e){const n=function(t,e){return Object.assign(Object.assign({},t),e)}(this._defaultOptions||new JS,e),s=this._createOverlay(n),i=this._attachContainer(s,n),r=new nE(i,s,this._location);if(t instanceof On)i.attachTemplatePortal(new Md(t,null,{$implicit:n.data,bottomSheetRef:r}));else{const e=new Od(t,void 0,this._createInjector(n,r)),s=i.attachComponentPortal(e);r.instance=s.instance}return r.afterDismissed().subscribe(()=>{this._openedBottomSheetRef==r&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>r.containerInstance.enter()),this._openedBottomSheetRef.dismiss()):r.containerInstance.enter(),this._openedBottomSheetRef=r,r}dismiss(){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss()}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}_attachContainer(t,e){const n=new jd(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[JS,e]])),s=new Od(tE,e.viewContainerRef,n);return t.attach(s).instance}_createOverlay(t){const e=new Kd({direction:t.direction,hasBackdrop:t.hasBackdrop,disposeOnNavigation:t.closeOnNavigation,maxWidth:"100%",scrollStrategy:t.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return t.backdropClass&&(e.backdropClass=t.backdropClass),this._overlay.create(e)}_createInjector(t,e){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=new WeakMap([[nE,e],[XS,t.data]]);return!t.direction||n&&n.get(yp,null)||s.set(yp,{value:t.direction,change:Ka()}),new jd(n||this._injector,s)}}return t.\u0275prov=ht({factory:function(){return new t(Rt(pp),Rt(xt),Rt(t,12),Rt(Ca,8),Rt(sE,8))},token:t,providedIn:eE}),t})();class rE{}class oE{}class aE{}class lE{}class cE{}class hE{}class uE{}class dE{}class pE{}class fE{}class gE{}class mE{}class _E{}class yE{}class vE{}class bE{}class wE{}class CE{}class SE{}const EE=new Et("mat-chips-default-options");class xE{}class kE{}class TE{}class AE{}n("hk5J");class DE{}let IE=(()=>{let t=class{constructor(t){this.injector=t,this.ReconnectionAttempt=new x,this.connectionAttempts=0;try{this.Settings=t.get(DE),this.zone=t.get(Wi)}catch(e){}this.started=new yd,this.Started=this.started.asObservable(),this.start()}Start(){return new Promise((t,e)=>{this.buildHub("").then(n=>{this.hub=n,this.hub.serverTimeoutInMilliseconds=6e5,this.hub.onclose(t=>{console.log("onclose: "+t),this.retryConnection()});try{this.hub.start().then(()=>{console.log("Connection started"),t(this.hub)}).catch(t=>{this.retryConnection(),this.showConnectionError&&(e(t),console.log("Error while starting connection: "+t),this.showConnectionError=!1)})}catch(s){console.log("Error while starting connection 02: "+s),this.retryConnection()}})})}RegisterHandler(t){return this.WithHub(e=>b.create(n=>{try{e.on(t,t=>{n.next(t),this.zone.run(()=>{})})}catch(s){console.log(`Error while handling ${t}: `+s),n.error(s),this.retryConnection()}}))}Invoke(t,...e){return this.WithHub(n=>b.create(s=>{try{n.invoke(t,...e).then(t=>{s.next(t),this.zone.run(()=>{})}).catch(t=>{s.error(t)})}catch(i){console.log(`Error while invoking ${t}: `+i),s.error(i),this.retryConnection()}}))}WithHub(t){try{return b.create(e=>{this.hub.state!==IS.Connected?this.Start().then(n=>{console.log("Restarting connection in flight..."),this.runWithHub(e,t)}):this.runWithHub(e,t)})}catch(e){return b.create(t=>{t.error(e),t.complete()})}}buildHub(t){return e=this,void 0,s=function*(){return this.url=this.buildHubUrl(t),(new ZS).configureLogging(aS.Information).withUrl(this.url).build()},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{a(s.next(t))}catch(e){i(e)}}function o(t){try{a(s.throw(t))}catch(e){i(e)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(r,o)}a((s=s.apply(e,[])).next())}));var e,n,s}buildHubUrl(t){return this.loadHubUrl(t)}loadHubPath(){return`${this.loadStateRoot()}?lcu-app-id=${this.Settings.AppConfig.ID}&lcu-app-ent-api-key=${this.Settings.AppConfig.EnterpriseAPIKey}&lcu-environment=${this.Settings.StateConfig.Environment||""}`}loadHubUrl(t){return`${this.Settings&&this.Settings.APIRoot||""}${t||""}${this.loadHubPath()}`}loadStateRoot(){return"/state"}runWithHub(t,e){const n=e(this.hub);n&&n.subscribe(e=>{t.next(e),this.zone.run(()=>{})},e=>{t.error(e)})}start(){setTimeout(()=>{this.Start().then(t=>this.started.next(t))},50)}stop(){this.showConnectionError=!0}retryConnection(){this.connectionAttempts<5?(console.log(`Retrying connection attempt ${this.connectionAttempts}`),this.connectionAttempts+=1,this.reconnect()):this.connectionAttempts>=5&&this.stopReconnection()}reconnect(){this.attemptingToReconnect=!0,this.reconnectionMessage(),this.start()}stopReconnection(){this.attemptingToReconnect=!1,this.reconnectionMessage(),this.stop()}reconnectionMessage(){this.ReconnectionAttempt.next(this.attemptingToReconnect)}};return t.\u0275prov=ht({factory:function(){return new t(Rt(xt))},token:t,providedIn:"root"}),t})();class RE{constructor(t){this.settings=t}intercept(t,e){const n=t.clone({headers:t.headers.set("lcu-app-id",this.settings.AppConfig.ID).set("lcu-app-ent-api-key",this.settings.AppConfig.EnterpriseAPIKey).set("lcu-environment",this.settings.StateConfig.Environment||"").set("lcu-username-mock",this.settings.StateConfig.UsernameMock||"")});return e.handle(n)}}var PE;const OE=window;let ME=PE=class{static DefaultServiceSettings(t,e){return{APIRoot:OE.LCU&&OE.LCU.APIRoot?OE.LCU.APIRoot:"",AppConfig:{ID:OE.LCU&&OE.LCU.Application&&OE.LCU.Application.ID?OE.LCU.Application.ID:"test-app",EnterpriseAPIKey:OE.LCU&&OE.LCU.Application.EnterpriseAPIKey?OE.LCU.Application.EnterpriseAPIKey:"test-app"},StateConfig:{Environment:OE.LCU.State?OE.LCU.State.Environment:"",ActionRoot:OE.LCU.State?OE.LCU.State.Root:"",Root:OE.LCU.State?OE.LCU.State.Root:"",UsernameMock:OE.LCU.State?OE.LCU.State.UsernameMock:""},Settings:OE.LCU.Settings}}static forRoot(){return{ngModule:PE,providers:[IE,{provide:kv,useClass:RE,multi:!0,deps:[DE]}]}}};var NE;const LE=[iE,class extends oC{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new Si,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:s,showFirstLastButtons:i}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=s&&(this._hidePageSize=s),null!=i&&(this._showFirstLastButtons=i)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Bu(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Bu(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Bu(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Bu(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Vu(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Vu(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},class extends cC{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new x,this.start="asc",this._direction="",this.sortChange=new Si}get direction(){return this._direction}set direction(t){if(se()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(`${t} is not a valid sort direction ('asc' or 'desc').`)}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Vu(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}},class extends class{}{constructor(t=[]){super(),this._renderData=new Ga([]),this._filter=new Ga(""),this._internalPageChanges=new x,this._renderChangesSubscription=u.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(ju(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,s=e.direction;return n&&""!=s?t.sort((t,e)=>{let i=this.sortingDataAccessor(t,n),r=this.sortingDataAccessor(e,n),o=0;return null!=i&&null!=r?i>r?o=1:i<r&&(o=-1):null!=i?o=1:null!=r&&(o=-1),o*("asc"==s?1:-1)}):t},this.filterPredicate=(t,e)=>{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),s=e.trim().toLowerCase();return-1!=n.indexOf(s)},this._data=new Ga(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Q(this._sort.sortChange,this._sort.initialized):Ka(null),e=this._paginator?Q(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ka(null),n=tl([this._data,this._filter]).pipe(F(([t])=>this._filterData(t))),s=tl([n,t]).pipe(F(([t])=>this._orderData(t))),i=tl([s,e]).pipe(F(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=i.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}];let FE=NE=class{static forRoot(){return{ngModule:NE,providers:[LE]}}};var VE;VE=class{static forRoot(){return{ngModule:VE,providers:[]}}};class BE{}var jE=ta(na,[ia],(function(t){return function(t){const e={},n=[];let s=null;for(let i=0;i<t.length;i++){const r=t[i];r.token===Pe&&(s=r.value),1073741824&r.flags&&n.push(r.token),r.index=i,e[Kn(r.token)]=r}return{factory:null,providersByKey:e,providers:t,modules:n,scope:s}}([As(512,rn,on,[[8,[Fu,pg,by,iy,$y,nv,av,Ww,Kw]],[3,rn],Nt]),As(5120,Ni,Ar,[[3,Ni]]),As(4608,ka,Ta,[Ni]),As(5120,_i,Dr,[Wi]),As(5120,Ai,Di,[]),As(5120,An,kr,[]),As(5120,Dn,Tr,[]),As(4608,Ff,Vf,[aa]),As(6144,gn,null,[Ff]),As(4608,Af,If,[]),As(5120,pf,(function(t,e,n,s,i,r,o,a){return[new kf(t,e,n),new Lf(s),new Rf(i,r,o,a)]}),[aa,Wi,Pi,aa,aa,Af,Mi,[2,Df]]),As(4608,ff,ff,[pf,Wi]),As(135680,_f,_f,[aa]),As(4608,Cf,Cf,[ff,_f,Ai]),As(4608,Tm,km,[]),As(5120,p_,Z_,[]),As(4608,j_,Q_,[aa,Tm,p_]),As(5120,un,K_,[Cf,j_,Wi]),As(6144,mf,null,[_f]),As(4608,tr,tr,[Wi]),As(4608,bp,U_,[un,aa]),As(5120,Jc,Du,[cu]),As(4608,mu,mu,[]),As(6144,fu,null,[mu]),As(135680,_u,_u,[cu,pr,zi,Me,fu]),As(4608,gu,gu,[]),As(5120,yu,Eu,[cu,Qa,vu]),As(5120,Ou,Pu,[Iu]),As(5120,Oi,(function(t,e,n){return[t,(s=e,i=n,()=>{if(Wa(i)){const t=Array.from(s.querySelectorAll("[class*=flex-layout-]")),e=/\bflex-layout-.+?\b/g;t.forEach(t=>{t.classList.contains("flex-layout-ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(e,"")})}})];var s,i}),[Ou,aa,Pi]),As(4608,Eg,Eg,[]),As(4608,Mv,Nv,[aa,Pi,Pv]),As(4608,Lv,Lv,[Mv,Ov]),As(5120,kv,(function(t){return[t]}),[Lv]),As(4608,Iv,Iv,[]),As(6144,Dv,null,[Iv]),As(4608,Rv,Rv,[Dv]),As(6144,cv,null,[Rv]),As(4608,lv,Fv,[cv,Me]),As(4608,Ev,Ev,[lv]),As(4608,pp,pp,[Zd,sp,rn,up,ep,Me,Wi,aa,yp,[2,Ca]]),As(5120,fp,gp,[pp]),As(5120,Gw,Xw,[pp]),As(4608,em,em,[]),As(4608,Xf,Xf,[]),As(5120,Op,Mp,[pp]),As(135680,Np,Np,[pp,Me,[2,Ca],[2,Pp],Op,[3,Np],sp]),As(4608,Vg,Vg,[]),As(5120,Zg,Kg,[pp]),As(5120,ab,lb,[pp]),As(5120,tC,eC,[pp]),As(5120,Fy,Vy,[pp]),As(5120,sC,iC,[[3,sC]]),As(5120,hC,uC,[[3,hC]]),As(5120,fC,gC,[[3,fC]]),As(135680,Xp,Xp,[Wi,Sd]),As(4608,_C,_C,[On]),As(4608,QC,QC,[aa,Wi,Dd,WC]),As(4608,Mg,Mg,[]),As(1073742336,qa,qa,[]),As(1024,qt,Bf,[]),As(1024,or,(function(){return[Cu()]}),[]),As(512,Iu,Iu,[Me]),As(1024,ki,(function(t,e){return[(n=t,hf("probe",df),hf("coreTokens",Object.assign(Object.assign({},uf),(n||[]).reduce((t,e)=>(t[e.name]=e.token,t),{}))),()=>df),Ru(e)];var n}),[[2,or],Iu]),As(512,Ti,Ti,[[2,ki]]),As(131584,ur,ur,[Wi,Mi,Me,qt,rn,Ti]),As(1073742336,Ir,Ir,[ur]),As(1073742336,Uf,Uf,[[3,Uf]]),As(1073742336,X_,X_,[]),As(1024,bu,ku,[[3,cu]]),As(512,Rc,Pc,[]),As(512,uu,uu,[]),As(256,vu,{},[]),As(1024,_a,xu,[la,[2,va],vu]),As(512,Ca,Ca,[_a,la]),As(512,zi,zi,[]),As(512,pr,mr,[zi,[2,fr]]),As(1024,nu,(function(){return[[{path:"",redirectTo:"landingPage",pathMatch:"full"}]]}),[]),As(1024,cu,Au,[Rc,uu,Ca,Me,pr,zi,nu,vu,[2,iu],[2,tu]]),As(1073742336,Su,Su,[[2,bu],[2,cu]]),As(1073742336,KC,KC,[]),As(1073742336,pb,pb,[]),As(1073742336,vp,vp,[]),As(1073742336,fw,fw,[]),As(1073742336,Sw,Sw,[]),As(1073742336,GC,GC,[]),As(1073742336,XC,XC,[yb,Pi]),As(1073742336,Og,Og,[]),As(1073742336,Ng,Ng,[]),As(1073742336,Vv,Vv,[]),As(1073742336,Bv,Bv,[]),As(1073742336,ME,ME,[]),As(1073742336,$f,$f,[tf,[2,Hf]]),As(1073742336,Ed,Ed,[]),As(1073742336,og,og,[]),As(1073742336,ag,ag,[]),As(1073742336,lg,lg,[]),As(1073742336,Bd,Bd,[]),As(1073742336,Id,Id,[]),As(1073742336,mp,mp,[]),As(1073742336,Jw,Jw,[]),As(1073742336,sm,sm,[]),As(1073742336,ef,ef,[tf]),As(1073742336,rE,rE,[]),As(1073742336,lm,lm,[]),As(1073742336,SE,SE,[]),As(1073742336,vE,vE,[]),As(1073742336,aE,aE,[]),As(1073742336,lE,lE,[]),As(1073742336,xE,xE,[]),As(1073742336,Lp,Lp,[]),As(1073742336,tm,tm,[]),As(1073742336,oE,oE,[]),As(1073742336,wE,wE,[]),As(1073742336,CE,CE,[]),As(1073742336,uE,uE,[]),As(1073742336,Jf,Jf,[]),As(1073742336,yE,yE,[]),As(1073742336,tb,tb,[]),As(1073742336,cE,cE,[]),As(1073742336,hE,hE,[]),As(1073742336,_E,_E,[]),As(1073742336,cb,cb,[]),As(1073742336,hb,hb,[]),As(1073742336,nC,nC,[]),As(1073742336,jy,jy,[]),As(1073742336,aC,aC,[]),As(1073742336,TE,TE,[]),As(1073742336,kE,kE,[]),As(1073742336,dE,dE,[]),As(1073742336,Rw,Rw,[]),As(1073742336,fE,fE,[]),As(1073742336,gE,gE,[]),As(1073742336,pE,pE,[]),As(1073742336,Gy,Gy,[]),As(1073742336,dC,dC,[]),As(1073742336,pC,pC,[]),As(1073742336,mC,mC,[]),As(1073742336,KS,KS,[]),As(1073742336,AE,AE,[]),As(1073742336,bE,bE,[]),As(1073742336,mE,mE,[]),As(1073742336,yC,yC,[]),As(1073742336,GS,GS,[]),As(1073742336,ZC,ZC,[]),As(1073742336,FE,FE,[]),As(1073742336,Lg,Lg,[]),As(1073742336,BE,BE,[]),As(1073742336,na,na,[]),As(256,Li,"USD",[]),As(256,Pe,"root",[]),As(256,G_,"NoopAnimations",[]),As(256,Pv,"XSRF-TOKEN",[]),As(256,Ov,"X-XSRF-TOKEN",[]),As(256,EE,{separatorKeyCodes:[13]},[])])}));(function(){if(ne)throw new Error("Cannot enable prod mode after platform setup.");ee=!1})(),jf().bootstrapModuleFactory(jE).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);