@drayman/elements 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/dist/button/3rdpartylicenses.txt +3 -45
- package/dist/button/main.js +1 -1
- package/dist/button/polyfills.js +1 -1
- package/dist/calendar/3rdpartylicenses.txt +3 -52
- package/dist/calendar/main.js +1 -1
- package/dist/calendar/polyfills.js +1 -1
- package/dist/calendar/styles.css +1 -1
- package/dist/checkbox/3rdpartylicenses.txt +3 -30
- package/dist/checkbox/main.js +1 -1
- package/dist/checkbox/polyfills.js +1 -1
- package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
- package/dist/claviz-charts/main.js +1 -1
- package/dist/claviz-charts/polyfills.js +1 -1
- package/dist/code-editor/3rdpartylicenses.txt +2 -139
- package/dist/code-editor/main.js +1 -1
- package/dist/code-editor/polyfills.js +1 -1
- package/dist/datepicker/3rdpartylicenses.txt +3 -91
- package/dist/datepicker/main.js +1 -1
- package/dist/datepicker/polyfills.js +1 -1
- package/dist/file-uploader/3rdpartylicenses.txt +1 -28
- package/dist/file-uploader/main.js +1 -1
- package/dist/file-uploader/polyfills.js +1 -1
- package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
- package/dist/gauge/main.js +1 -0
- package/dist/gauge/polyfills.js +1 -0
- package/dist/grid/3rdpartylicenses.txt +3 -45
- package/dist/grid/main.js +1 -1
- package/dist/grid/polyfills.js +1 -1
- package/dist/menu/3rdpartylicenses.txt +3 -45
- package/dist/menu/main.js +1 -1
- package/dist/menu/polyfills.js +1 -1
- package/dist/nebula/3rdpartylicenses.txt +24 -62
- package/dist/nebula/main.js +1 -1
- package/dist/nebula/polyfills.js +1 -1
- package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
- package/dist/ngx-charts/main.js +1 -1
- package/dist/ngx-charts/polyfills.js +1 -1
- package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
- package/dist/ngx-graph/main.js +1 -1
- package/dist/ngx-graph/polyfills.js +1 -1
- package/dist/number-field/3rdpartylicenses.txt +3 -30
- package/dist/number-field/main.js +1 -1
- package/dist/number-field/polyfills.js +1 -1
- package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
- package/dist/pdf-viewer/main.js +1 -1
- package/dist/pdf-viewer/polyfills.js +1 -1
- package/dist/radio-group/3rdpartylicenses.txt +3 -52
- package/dist/radio-group/main.js +1 -1
- package/dist/radio-group/polyfills.js +1 -1
- package/dist/select/3rdpartylicenses.txt +3 -30
- package/dist/select/main.js +1 -1
- package/dist/select/polyfills.js +1 -1
- package/dist/table/3rdpartylicenses.txt +3 -91
- package/dist/table/main.js +1 -1
- package/dist/table/polyfills.js +1 -1
- package/dist/text-field/3rdpartylicenses.txt +3 -45
- package/dist/text-field/main.js +1 -1
- package/dist/text-field/polyfills.js +1 -1
- package/dist/textarea-field/3rdpartylicenses.txt +3 -30
- package/dist/textarea-field/main.js +1 -1
- package/dist/textarea-field/polyfills.js +1 -1
- package/dist/timepicker/3rdpartylicenses.txt +3 -67
- package/dist/timepicker/main.js +1 -1
- package/dist/timepicker/polyfills.js +1 -1
- package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
- package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
- package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
- package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
- package/dist/types/gauge/src/app/models/gauge-options.d.ts +87 -0
- package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +0 -0
- package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
- package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
- package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
- package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
- package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
- package/dist/types/select/src/app/models/select-options.d.ts +0 -0
- package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
- package/dist/types/shared/models/button-options-base.d.ts +0 -0
- package/dist/types/shared/models/button-options.d.ts +0 -0
- package/dist/types/shared/models/field-options-base.d.ts +0 -0
- package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
- package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
- package/dist/types/table/src/app/models/table-options.d.ts +0 -0
- package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
- package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
- package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
- package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
- package/dist/youtube-player/3rdpartylicenses.txt +2 -29
- package/dist/youtube-player/main.js +1 -1
- package/dist/youtube-player/polyfills.js +1 -1
- package/package.json +188 -183
- package/types/index.d.ts +35 -0
- package/dist/jsondiffpatch/favicon.ico +0 -0
- package/dist/jsondiffpatch/main.js +0 -1
- package/dist/jsondiffpatch/polyfills.js +0 -1
- package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
- package/dist/monaco-editor/favicon.ico +0 -0
- package/dist/monaco-editor/main.js +0 -1
- package/dist/monaco-editor/polyfills.js +0 -1
- package/dist/monaco-editor/styles.css +0 -1
- package/dist/picasso/3rdpartylicenses.txt +0 -465
- package/dist/picasso/favicon.ico +0 -0
- package/dist/picasso/main.js +0 -1
- package/dist/picasso/polyfills.js +0 -1
- package/dist/picasso/styles.css +0 -0
- package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
- package/dist/pivot-grid/main.js +0 -1
- package/dist/pivot-grid/polyfills.js +0 -1
- package/dist/pivot-grid/styles.css +0 -0
- package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
- package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
- /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
- /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
package/dist/menu/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,(function(e){return t[e]}).bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},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._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=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(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}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 m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(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 m 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 g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let y=(()=>{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=b(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)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w 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 C=(()=>{class t extends y{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 S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;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 v;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 v;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 v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends C{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 x(t){return t&&"function"==typeof t.schedule}function k(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 T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I 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)}}const O=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function A(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const R=A(),D=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return s=t,t=>{const e=s[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(D(t))return O(t);if(P(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(;;){let e;try{e=n.next()}catch(s){return t.error(s),t}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 M(t,e){return new y(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 F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[g]();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(P(t))return function(t,e){return new y(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(D(t))return M(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 y(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 y?t:new y(N(t))}class L extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function H(t,e){if(!e.closed)return t instanceof y?t.subscribe(e):N(t)(e)}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(V((n,s)=>F(t(n,s)).pipe(k((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends j{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)}_innerSub(t){const e=new L(this),n=this.destination;n.add(e);const s=H(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function U(t=Number.POSITIVE_INFINITY){return V(_,t)}function q(t,e){return e?M(t,e):new y(O(t))}function $(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return x(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 y?t[0]:U(e)(q(t,n))}function W(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new K(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class K 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 Q extends y{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 G(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return W()(this)}}const Y=(()=>{const t=Q.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 G 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 X(){return new C}function J(){return t=>{return W()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,Y);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{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(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];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 st=nt("Inject",t=>({token:t})),it=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=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 lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[mt])||pt(t,t[yt])}function pt(t,e){return e&&e.token===t?e:null}function ft(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(bt))?t[gt]:null}const mt=lt({"\u0275prov":lt}),gt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).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)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Et=lt({__forward_ref__:lt});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return vt(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(Et)&&t.__forward_ref__===Ct}const kt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot="undefined"!=typeof global&&global,At=kt||Ot||Tt||It,Rt=lt({"\u0275cmp":lt}),Dt=lt({"\u0275dir":lt}),Pt=lt({"\u0275pipe":lt}),Nt=lt({"\u0275mod":lt}),Mt=lt({"\u0275loc":lt}),Ft=lt({"\u0275fac":lt}),Lt=lt({__NG_ELEMENT_ID__:lt});class jt{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 Ht=new jt("INJECTOR",-1),Vt={},Bt=/\n/gm,zt="__source",Ut=lt({provide:String,useValue:lt});let qt,$t=void 0;function Wt(t){const e=$t;return $t=t,e}function Zt(t){const e=qt;return qt=t,e}function Kt(t,e=at.Default){if(void 0===$t)throw new Error("inject() must be called from an injection context");return null===$t?Gt(t,void 0,e):$t.get(t,e&at.Optional?null:void 0,e)}function Qt(t,e=at.Default){return(qt||Kt)(St(t),e)}const Yt=Qt;function Gt(t,e,n){const s=dt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const s=St(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<s.length;e++){const i=s[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof rt||"Self"===i.ngMetadataName||i===rt?n|=at.Self:t=i instanceof st||i===st?i.token:i}e.push(Qt(t,n))}else e.push(Qt(s))}return e}class Jt{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function re(t,e,n){let s=ae(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},ue=[];let de=0;function pe(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=de++,n.inputs=ye(t.inputs,e),n.outputs=ye(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(me):null,n})}function fe(t){return we(t)||function(t){return t[Dt]||null}(t)}function me(t){return function(t){return t[Pt]||null}(t)}const ge={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ge[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const be=pe;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Rt]||null}function Ee(t,e){return t.hasOwnProperty(Ft)?t[Ft]:null}function Ce(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}const Se=20,xe=10;function ke(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Ie(t){return 0!=(8&t.flags)}function Oe(t){return 2==(2&t.flags)}function Ae(t){return 1==(1&t.flags)}function Re(t){return null!==t.template}function De(t){return 0!=(512&t[2])}class Pe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ne(){return Me}function Me(t){return t.type.prototype.ngOnChanges&&(t.setInput=Le),Fe}function Fe(){const t=je(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Le(t,e,n,s){const i=je(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Pe(l&&l.currentValue,e,o===he),t[s]=e}function je(t){return t.__ngSimpleChanges__||null}Ne.ngInherit=!0;let He=void 0;function Ve(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function Be(t){return!!t.listen}const ze={createRenderer:(t,e)=>Ve()};function Ue(t){for(;Array.isArray(t);)t=t[0];return t}function qe(t,e){return Ue(e[t+Se])}function $e(t,e){return Ue(e[t.index])}function We(t,e){return t.data[e+Se]}function Ze(t,e){return t[e+Se]}function Ke(t,e){const n=e[t];return ke(n)?n:n[0]}function Qe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ye(t){return 4==(4&t[2])}function Ge(t){return 128==(128&t[2])}function Xe(t,e){return null===t||null==e?null:t[e]}function Je(t){t[18]=0}function tn(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const en={lFrame:En(null),bindingsEnabled:!0,checkNoChangesMode:!1};function nn(){return en.bindingsEnabled}function sn(){return en.lFrame.lView}function rn(){return en.lFrame.tView}function on(t){en.lFrame.contextLView=t}function an(){return en.lFrame.previousOrParentTNode}function ln(t,e){en.lFrame.previousOrParentTNode=t,en.lFrame.isParent=e}function cn(){return en.lFrame.isParent}function hn(){en.lFrame.isParent=!1}function un(){return en.checkNoChangesMode}function dn(t){en.checkNoChangesMode=t}function pn(){return en.lFrame.bindingIndex++}function fn(t){const e=en.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t,e){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=t,gn(e)}function gn(t){en.lFrame.currentDirectiveIndex=t}function _n(){return en.lFrame.currentQueryIndex}function yn(t){en.lFrame.currentQueryIndex=t}function bn(t,e){const n=wn();en.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function vn(t,e){const n=wn(),s=t[1];en.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function wn(){const t=en.lFrame,e=null===t?null:t.child;return null===e?En(t):e}function En(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Cn(){const t=en.lFrame;return en.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Sn=Cn;function xn(){const t=Cn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function kn(){return en.lFrame.selectedIndex}function Tn(t){en.lFrame.selectedIndex=t}function In(){const t=en.lFrame;return We(t.tView,t.selectedIndex)}function On(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function An(t,e,n){Pn(t,e,3,n)}function Rn(t,e,n,s){(3&t[2])===n&&Pn(t,e,n,s)}function Dn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Pn(t,e,n,s){const i=null!=s?s:-1;let r=0;for(let o=void 0!==s?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=s&&r>=s)break}else e[o]<0&&(t[18]+=65536),(r<i||-1==i)&&(Nn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Nn(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Mn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Fn(t,e,n){const s=Be(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];jn(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Ln(t){return 3===t||4===t||6===t}function jn(t){return 64===t.charCodeAt(0)}function Hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Vn(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Vn(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function Bn(t){return-1!==t}function zn(t){return 32767&t}function Un(t){return t>>16}function qn(t,e){let n=Un(t),s=e;for(;n>0;)s=s[15],n--;return s}function $n(t){return"string"==typeof t?t:null==t?"":""+t}function Wn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():$n(t)}const Zn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function Kn(t){return{name:"body",target:t.ownerDocument.body}}function Qn(t){return t instanceof Function?t():t}let Yn=!0;function Gn(t){const e=Yn;return Yn=t,e}let Xn=0;function Jn(t,e){const n=es(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,ts(s.data,t),ts(e,null),ts(s.blueprint,null));const i=ns(t,e),r=t.injectorIndex;if(Bn(i)){const t=zn(i),n=qn(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function ts(t,e){t.push(0,0,0,0,0,0,0,0,e)}function es(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ns(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function ss(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Lt)&&(s=n[Lt]),null==s&&(s=n[Lt]=Xn++);const i=255&s,r=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function is(t,e,n,s=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Lt)?t[Lt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){bn(e,t);try{const t=i();if(null!=t||s&at.Optional)return t;throw new Error(`No provider for ${Wn(n)}!`)}finally{Sn()}}else if("number"==typeof i){if(-1===i)return new us(t,e);let r=null,o=es(t,e),a=-1,l=s&at.Host?e[16][6]:null;for((-1===o||s&at.SkipSelf)&&(a=-1===o?ns(t,e):e[o+8],hs(s,!1)?(r=e[1],o=zn(a),e=qn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(cs(i,o,t.data)){const t=os(o,e,n,r,s,l);if(t!==rs)return t}hs(s,e[1].data[o+8]===l)&&cs(i,o,e)?(r=t,o=zn(a),e=qn(a,e)):o=-1}}}if(s&at.Optional&&void 0===i&&(i=null),0==(s&(at.Self|at.Host))){const t=e[9],r=Zt(void 0);try{return t?t.get(n,i,s&at.Optional):Gt(n,i,s&at.Optional)}finally{Zt(r)}}if(s&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Wn(n)}]`)}const rs={};function os(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=as(a,o,n,null==s?Oe(a)&&Yn:s!=o&&3===a.type,i&at.Host&&r===a);return null!==l?ls(e,o,l,a):rs}function as(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Re(t)&&t.type===n)return l}return null}function ls(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Mn){const o=i;if(o.resolving)throw new Error("Circular dep for "+Wn(r[n]));const a=Gn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Zt(o.injectImpl)),bn(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=Me(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Zt(l),Gn(a),o.resolving=!1,Sn()}}return i}function cs(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<<t)}function hs(t,e){return!(t&at.Self||t&at.Host&&e)}class us{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return is(this._tNode,this._lView,t,void 0,e)}}function ds(t){const e=t;if(xt(t))return()=>{const t=ds(St(e));return t?t():null};let n=Ee(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function ps(t){return tt(()=>{const e=t.prototype.constructor,n=e[Ft]||ds(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Ft]||ds(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function fs(t){return t.ngDebugContext}function ms(t){return t.ngOriginalError}function gs(t,...e){t.error(...e)}class _s{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||gs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?fs(t)?fs(t):this._findContext(ms(t)):null}_findOriginalError(t){let e=ms(t);for(;e&&ms(e);)e=ms(e);return e}}class ys{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class bs extends ys{getTypeName(){return"HTML"}}class vs extends ys{getTypeName(){return"Style"}}class ws extends ys{getTypeName(){return"Script"}}class Es extends ys{getTypeName(){return"URL"}}class Cs extends ys{getTypeName(){return"ResourceURL"}}function Ss(t){return t instanceof ys?t.changingThisBreaksApplicationSecurity:t}function xs(t,e){const n=ks(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 ks(t){return t instanceof ys&&t.getTypeName()||null}let Ts=!0,Is=!1;function Os(){return Is=!0,Ts}class As{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Rs{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(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 Ds=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ps=/^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 Ns(t){return(t=String(t)).match(Ds)||t.match(Ps)?t:(Os()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Ms(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Fs(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ls=Ms("area,br,col,hr,img,wbr"),js=Ms("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hs=Ms("rp,rt"),Vs=Fs(Hs,js),Bs=Fs(Ls,Fs(js,Ms("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")),Fs(Hs,Ms("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")),Vs),zs=Ms("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Us=Ms("srcset"),qs=Fs(zs,Us,Ms("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"),Ms("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")),$s=Ms("script,style,template");class Ws{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(!Bs.hasOwnProperty(e))return this.sanitizedSomething=!0,!$s.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(!qs.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;zs[r]&&(o=Ns(o)),Us[r]&&(s=o,o=(s=String(s)).split(",").map(t=>Ns(t.trim())).join(", ")),this.buf.push(" ",e,'="',Qs(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Bs.hasOwnProperty(e)&&!Ls.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Qs(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 Zs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ks=/([^\#-~ |!])/g;function Qs(t){return t.replace(/&/g,"&").replace(Zs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ks,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Ys;function Gs(t,e){let n=null;try{Ys=Ys||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new As:new Rs(t)}(t);let s=e?String(e):"";n=Ys.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=Ys.getInertBodyElement(s)}while(s!==r);const o=new Ws,a=o.sanitizeChildren(Xs(n)||n);return Os()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Xs(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Xs(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Js=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ti(t){const e=function(){const t=sn();return t&&t[12]}();return e?e.sanitize(Js.HTML,t)||"":xs(t,"HTML")?Ss(t):Gs(Ve(),$n(t))}function ei(t,e){t.__ngContext__=e}function ni(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function si(){throw new Error("Cannot mix multi providers and regular providers")}function ii(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ri="ng-template";function oi(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==ii(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ai(t){return 0===t.type&&t.tagName!==ri}function li(t,e,n){return e===(0!==t.type||n?t.tagName:ri)}function ci(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Ln(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!li(t,l,n)||""===l&&1===e.length){if(hi(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!oi(t.attrs,c,n)){if(hi(s))return!1;o=!0}continue}const h=ui(8&s?"class":l,i,ai(t),n);if(-1===h){if(hi(s))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==ii(e,c,0)||2&s&&c!==t){if(hi(s))return!1;o=!0}}}}else{if(!o&&!hi(s)&&!hi(l))return!1;if(o&&hi(l))continue;o=!1,s=l|1&s}}return hi(s)||o}function hi(t){return 0==(1&t)}function ui(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function di(t,e,n=!1){for(let s=0;s<e.length;s++)if(ci(t,e[s],n))return!0;return!1}function pi(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function fi(t,e){return t?":not("+e.trim()+")":e}function mi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||hi(o)||(e+=fi(r,i),i=""),s=o,r=r||!hi(s);n++}return""!==i&&(e+=fi(r,i)),e}const gi={};function _i(t){const e=t[3];return Te(e)?e[3]:e}function yi(t){return vi(t[13])}function bi(t){return vi(t[4])}function vi(t){for(;null!==t&&!Te(t);)t=t[4];return t}function wi(t){Ei(rn(),sn(),kn()+t,un())}function Ei(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&An(e,s,n)}else{const s=t.preOrderHooks;null!==s&&Rn(e,s,0,n)}Tn(n)}function Ci(t,e){return t<<17|e<<2}function Si(t){return t>>17&32767}function xi(t){return 2|t}function ki(t){return(131068&t)>>2}function Ti(t,e){return-131069&t|e<<2}function Ii(t){return 1|t}function Oi(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];yn(i),n.contentQueries(2,e[r],r)}}}function Ai(t,e,n){return Be(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ri(t,e,n,s,i,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=i,h[2]=140|s,Je(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Di(t,e,n,s,i,r){const o=n+Se,a=t.data[o]||function(t,e,n,s,i,r){const o=an(),a=cn(),l=a?o:o&&o.parent,c=t.data[n]=Ui(0,l&&l!==e?l:null,s,n,i,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,s,i,r);return ln(a,!0),a}function Pi(t,e,n){vn(e,e[6]);try{const s=t.viewQuery;null!==s&&hr(1,s,n);const i=t.template;null!==i&&Fi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Oi(t,e),t.staticViewQueries&&hr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,xn()}}function Ni(t,e,n,s){const i=e[2];if(256==(256&i))return;vn(e,e[6]);const r=un();try{Je(e),en.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Fi(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&An(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Rn(e,n,0,null),Dn(e,0)}if(function(t){for(let e=yi(t);null!==e;e=bi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&tn(s,1),n[2]|=1024}}}(e),function(t){for(let e=yi(t);null!==e;e=bi(e))for(let t=xe;t<e.length;t++){const n=e[t],s=n[1];Ge(n)&&Ni(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Oi(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&An(e,n)}else{const n=t.contentHooks;null!==n&&Rn(e,n,1),Dn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let s=t.expandoStartIndex,i=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Tn(r),s+=9+n[++t],i=s):s+=o:(null!==o&&(mn(s,i),o(2,e[i])),i++)}}}finally{Tn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ir(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&hr(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&An(e,n)}else{const n=t.viewHooks;null!==n&&Rn(e,n,2),Dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,tn(e[3],-1))}finally{xn()}}function Mi(t,e,n,s){const i=e[10],r=!un(),o=Ye(e);try{r&&!o&&i.begin&&i.begin(),o&&Pi(t,e,s),Ni(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Fi(t,e,n,s,i){const r=kn();try{Tn(-1),2&s&&e.length>Se&&Ei(t,e,0,un()),n(s,i)}finally{Tn(r)}}function Li(t,e,n){if(Ie(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function ji(t,e,n){nn()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Jn(n,e),ei(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=Re(s);r&&tr(e,n,s);const l=ls(e,t,a,n);ei(l,e),null!==o&&er(0,a-i,l,s,0,o),r&&(Ke(n.index,e)[8]=l)}}(t,e,n,$e(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Se,l=en.lFrame.currentDirectiveIndex;try{Tn(a);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];gn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?Ki(s,i):o&&r.push(null)}}finally{Tn(-1),gn(l)}}(t,e,n))}function Hi(t,e,n=$e){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Bi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Bi(t,e,n,s,i,r,o,a,l,c){const h=Se+s,u=h+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:gi);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function zi(t,e,n,s){const i=dr(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(s,i.length-1)}function Ui(t,e,n,s,i,r){return{type:n,index:s,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function qi(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function $i(t,e,n,s){let i=!1;if(nn()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];di(n,o.selectors,!1)&&(i||(i=[]),ss(Jn(n,e),t,o.type),Re(o)?(2&n.flags&&ni(n),Yi(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){let s=0;i=!0,Xi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Qi(t,n,r.length);let a=!1,l=!1;for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Hn(n.mergedAttrs,c.hostAttrs),Ji(t,e,c),Gi(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Se),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Se),l=!0),Wi(t,c),s+=c.hostVars}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||ai(e)?null:nr(n,i);r.push(c),o=qi(n,l,o),a=qi(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Zi(t,e,s)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),i}function Wi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Zi(t,e,n){for(let s=0;s<n;s++)e.push(gi),t.blueprint.push(gi),t.data.push(null)}function Ki(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Qi(t,e,n){const s=Se-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(s,i,n)}function Yi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;Re(e)&&(n[""]=t)}}function Xi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ji(t,e,n){t.data.push(n);const s=n.factory||(n.factory=Ee(n.type)),i=new Mn(s,Re(n),null);t.blueprint.push(i),e.push(i)}function tr(t,e,n){const s=$e(e,t),i=Vi(n),r=t[10],o=or(t,Ri(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n)));t[e.index]=o}function er(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function nr(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function sr(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function ir(t,e){const n=Ke(e,t);if(Ge(n)){const t=n[1];80&n[2]?Ni(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let s=yi(e);null!==s;s=bi(s))for(let e=xe;e<s.length;e++){const n=s[e];if(1024&n[2]){const t=n[1];Ni(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let s=0;s<n.length;s++){const i=Ke(n[s],e);Ge(i)&&i[5]>0&&t(i)}}(n)}}function rr(t,e){const n=Ke(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Pi(s,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_i(t);if(De(t)&&!e)return t;t=e}return null}function lr(t,e,n){const s=e[10];s.begin&&s.begin();try{Ni(t,e,t.template,n)}catch(i){throw pr(e,i),i}finally{s.end&&s.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Qe(n),i=s[1];Mi(i,s,i.template,n)}}(t[8])}function hr(t,e,n){yn(0),e(t,n)}const ur=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function pr(t,e){const n=t[9],s=n?n.get(_s,null):null;s&&s.handleError(e)}function fr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function mr(t,e){const n=e[3];return-1===t.index?Te(n)?n:null:n}function gr(t,e){const n=mr(t,e);return n?Ir(e[11],n[7]):null}function _r(t,e,n,s,i){if(null!=s){let r,o=!1;Te(s)?r=s:ke(s)&&(o=!0,s=s[0]);const a=Ue(s);0===t&&null!==n?null==i?kr(e,n,a):xr(e,n,a,i||null):1===t&&null!==n?xr(e,n,a,i||null):2===t?function(t,e,n){const s=Ir(t,e);s&&function(t,e,n,s){Be(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==Ue(n)&&_r(e,t,s,r,i);for(let o=xe;o<n.length;o++){const i=n[o];Pr(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function yr(t,e,n,s){const i=gr(t.node,e);i&&Pr(t,e,e[11],n?1:2,i,s)}function br(t,e){const n=t[9],s=n.indexOf(e);1024&e[2]&&tn(e[3],-1),n.splice(s,1)}function vr(t,e){if(t.length<=xe)return;const n=xe+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&br(i,s),e>0&&(t[n-1][4]=s[4]);const r=se(t,xe+e);yr(s[1],s,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function wr(t,e){if(!(256&e[2])){const n=e[11];Be(n)&&n.destroyNode&&Pr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Cr(t[1],t);for(;e;){let n=null;if(ke(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ke(e)&&Cr(e[1],e),e=Er(e,t);null===e&&(e=t),ke(e)&&Cr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Er(t,e){let n;return ke(t)&&(n=t[6])&&2===n.type?mr(n,t):t[3]===e?null:t[3]}function Cr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Mn)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const i=n[s+1],r="function"==typeof i?i(e):Ue(e[i]),o=t[n[s+2]],a=n[s+3];"boolean"==typeof a?r.removeEventListener(n[s],o,a):a>=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Be(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&Te(e[3])){s!==e[3]&&br(s,e);const n=e[19];null!==n&&n.detachView(t)}}}function Sr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?gr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return $e(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return $e(s,n)}function xr(t,e,n,s){Be(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function kr(t,e,n){Be(t)?t.appendChild(e,n):e.appendChild(n)}function Tr(t,e,n,s){null!==s?xr(t,e,n,s):kr(t,e,n)}function Ir(t,e){return Be(t)?t.parentNode(e):e.parentNode}function Or(t,e){if(2===t.type){const n=mr(t,e);return null===n?null:Rr(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?$e(t,e):null}function Ar(t,e,n,s){const i=Sr(t,s,e);if(null!=i){const t=e[11],r=Or(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Tr(t,i,n[e],r);else Tr(t,i,n,r)}}function Rr(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return function t(e,n){if(null!==n){const s=n.type;if(3===s)return $e(n,e);if(0===s)return Rr(-1,e[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return t(e,s);{const t=e[n.index];return Te(t)?Rr(-1,t):Ue(t)}}{const s=e[16],i=s[6],r=_i(s),o=i.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,s)}return e[7]}function Dr(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===e&&(a&&ei(Ue(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Dr(t,e,n.child,s,i,r,!1),_r(e,t,i,a,r)):1===l?Nr(t,e,s,n,i,r):_r(e,t,i,a,r)),n=o?n.projectionNext:n.next}}function Pr(t,e,n,s,i,r){Dr(n,s,t.node.child,e,i,r,!1)}function Nr(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)_r(e,t,i,a[l],r);else Dr(t,e,a,o[3],i,r,!0)}function Mr(t,e,n){Be(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Fr(t,e,n){Be(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Lr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,s,i,r=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&i.push(Ue(o)),Te(o))for(let e=xe;e<o.length;e++){const n=o[e],s=n[1].firstChild;null!==s&&t(n[1],n,s,i)}const a=s.type;if(4===a||5===a)t(e,n,s.child,i);else if(1===a){const e=n[16],r=e[6].projection[s.projection];if(Array.isArray(r))i.push(...r);else{const n=_i(e);t(n[1],n,r,i,!0)}}s=r?s.projectionNext:s.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wr(this._lView[1],this._lView)}onDestroy(t){zi(this._lView[1],this._lView,null,t)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){dn(!0);try{lr(t,e,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Pr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class jr extends Lr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){dn(!0);try{cr(t)}finally{dn(!1)}}(this._view)}get context(){return null}}let Hr,Vr,Br;function zr(t,e,n){return Hr||(Hr=class extends t{}),new Hr($e(e,n))}function Ur(t,e,n,s){return Vr||(Vr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ri(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Pi(e,n,t),new Lr(n)}}),0===n.type?new Vr(s,n,zr(e,n,s)):null}function qr(t,e,n,s){let i;Br||(Br=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return zr(e,this._hostTNode,this._hostView)}get injector(){return new us(this._hostTNode,this._hostView)}get parentInjector(){const t=ns(this._hostTNode,this._hostView),e=qn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=Un(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return Bn(t)&&null!=n?new us(n,e):new us(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}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;if(!i&&null==t.ngModule&&r){const t=r.get(te,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new Br(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=xe+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-xe?(e[4]=n[i],ne(n,xe+s,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(s,n,this._lContainer,i),yr(s,n,!0,Rr(i,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);n&&(se(this._lContainer[8],e),wr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Lr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=s[n.index];if(Te(r))i=r;else{let t;if(4===n.type)t=Ue(r);else if(t=s[11].createComment(""),De(s)){const e=s[11],i=$e(n,s);xr(e,Ir(e,i),t,function(t,e){return Be(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Ar(s[1],s,t,n);s[n.index]=i=sr(r,s,t,n),or(s,i)}return new Br(i,n,s)}function $r(t=!1){return function(t,e,n){if(!n&&Oe(t)){const n=Ke(t.index,e);return new Lr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Lr(e[16],e):null}(an(),sn(),t)}let Wr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Zr(),t})();const Zr=$r,Kr=new jt("Set Injector scope."),Qr={},Yr={},Gr=[];let Xr=void 0;function Jr(){return void 0===Xr&&(Xr=new Jt),Xr}function to(t,e=null,n=null,s){return new eo(t,n,e||Jr(),s)}class eo{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(Ht,io(void 0,this));const r=this.records.get(Kr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:vt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Vt,n=at.Default){this.assertNotDestroyed();const s=Wt(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof jt)&&dt(t);e=n&&this.injectableDefInScope(n)?io(no(t),Qr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Jr():this.parent).get(t,e=n&at.Optional&&e===Vt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(vt(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[zt]&&i.unshift(e[zt]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=vt(e);if(Array.isArray(e))i=e.map(vt).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):vt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Wt(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let s=ft(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=ft(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];ee(s,t=>this.processProvider(t,n,s||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,io(s.factory,Qr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=oo(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return ro(t)?io(void 0,t.useValue):io(so(t,e,n),Qr)}(t,e,n);if(oo(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&si()}else{let e=this.records.get(s);e?void 0===e.multi&&si():(e=io(void 0,Qr,!0),e.factory=()=>Xt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Yr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===Qr&&(e.value=Yr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=dt(t),n=null!==e?e.factory:Ee(t);if(null!==n)return n;const s=ft(t);if(null!==s)return s.factory;if(t instanceof jt)throw new Error(`Token ${vt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ie(e,"?");throw new Error(`Can't resolve all parameters for ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function so(t,e,n){let s=void 0;if(oo(t)){const e=St(t);return Ee(e)||no(e)}if(ro(t))s=()=>St(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Qt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(i)||no(i);s=()=>new i(...Xt(t.deps))}var i;return s}function io(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ro(t){return null!==t&&"object"==typeof t&&Ut in t}function oo(t){return"function"==typeof t}const ao=function(t,e,n){return function(t,e=null,n=null,s){const i=to(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let lo=(()=>{class t{static create(t,e){return Array.isArray(t)?ao(t,e,""):ao(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Qt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();function co(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=wt(i,t):2==r&&(s=wt(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}let ho=null;function uo(){if(!ho){const t=At.Symbol;if(t&&t.iterator)ho=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&&(ho=n)}}}return ho}class po{constructor(t){this.wrapped=t}static wrap(t){return new po(t)}static unwrap(t){return po.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof po}}function fo(t){return!!mo(t)&&(Array.isArray(t)||!(t instanceof Map)&&uo()in t)}function mo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function go(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function _o(t,e,n,s){const i=sn();return go(i,pn(),e)&&(rn(),function(t,e,n,s,i,r){const o=$e(t,e),a=e[11];if(null==s)Be(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==i?$n(s):i(s,t.tagName||"",n);Be(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(In(),i,t,e,n,s)),_o}function yo(t,e,n,s,i,r,o,a){const l=sn(),c=rn(),h=t+Se,u=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,h=Di(e,n[6],t,0,o||null,Xe(c,a));$i(e,n,h,Xe(c,l)),On(e,h);const u=h.tViews=Bi(2,-1,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Ui(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,s,i,r,o):c.data[h];ln(u,!1);const d=l[11].createComment("");Ar(c,l,d,u),ei(d,l),or(l,l[h]=sr(d,l,d,u)),Ae(u)&&ji(c,l,u),null!=o&&Hi(l,u,a)}function bo(t){return Ze(en.lFrame.contextLView,t)}function vo(t,e=at.Default){const n=sn();return null==n?Qt(t,e):is(an(),n,St(t),e)}function wo(t,e,n){const s=sn();return go(s,pn(),e)&&function(t,e,n,s,i,r,o,a){const l=$e(e,n);let c,h=e.inputs;var u;null!=h&&(c=h[s])?(fr(t,n,c,s,i),Oe(e)&&function(t,e){const n=Ke(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(s="class"===(u=s)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=o?o(i,e.tagName||"",s):i,Be(r)?r.setProperty(l,s,i):jn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}(rn(),In(),s,t,e,s[11],n),wo}function Eo(t,e,n,s,i){const r=i?"class":"style";fr(t,n,e.inputs[r],r,s)}function Co(t,e,n,s){const i=sn(),r=rn(),o=Se+t,a=i[11],l=i[o]=Ai(e,a,en.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Xe(a,r),c=Di(e,n[6],t,3,i,l);return $i(e,n,c,Xe(a,o)),null!==c.attrs&&co(c,c.attrs,!1),null!==c.mergedAttrs&&co(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,i,0,e,n,s):r.data[o];ln(c,!0);const h=c.mergedAttrs;null!==h&&Fn(a,l,h);const u=c.classes;null!==u&&Fr(a,l,u);const d=c.styles;null!==d&&Mr(a,l,d),Ar(r,i,l,c),0===en.lFrame.elementDepthCount&&ei(l,i),en.lFrame.elementDepthCount++,Ae(c)&&(ji(r,i,c),Li(r,c,i)),null!==s&&Hi(i,c)}function So(){let t=an();cn()?hn():(t=t.parent,ln(t,!1));const e=t;en.lFrame.elementDepthCount--;const n=rn();n.firstCreatePass&&(On(n,t),Ie(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Eo(n,e,sn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Eo(n,e,sn(),e.stylesWithoutHost,!1)}function xo(t,e,n,s){Co(t,e,n,s),So()}function ko(t,e,n){const s=sn(),i=rn(),r=t+Se,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Xe(r,s),a=Di(e,n[6],t,4,"ng-container",o);return null!==o&&co(a,o,!0),$i(e,n,a,Xe(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,s,e,n):i.data[r];ln(o,!0);const a=s[r]=s[11].createComment("");Ar(i,s,a,o),ei(a,s),Ae(o)&&(ji(i,s,o),Li(i,o,s)),null!=n&&Hi(s,o)}function To(){let t=an();const e=rn();cn()?hn():(t=t.parent,ln(t,!1)),e.firstCreatePass&&(On(e,t),Ie(t)&&e.queries.elementEnd(t))}function Io(t,e,n){ko(t,e,n),To()}function Oo(){return sn()}function Ao(t){return!!t&&"function"==typeof t.then}function Ro(t,e,n=!1,s){const i=sn(),r=rn(),o=an();return function(t,e,n,s,i,r,o=!1,a){const l=Ae(s),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=dr(e);let u=!0;if(3===s.type){const d=$e(s,e),p=a?a(d):he,f=p.target||d,m=h.length,g=a?t=>a(Ue(t[s.index])).target:s.index;if(Be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Po(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,g,m,m+1)}}else r=Po(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,g,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,n,s),Ro}function Do(t,e,n){try{return!1!==e(n)}catch(s){return pr(t,s),!1}}function Po(t,e,n,s){return function i(r){if(r===Function)return n;const o=2&t.flags?Ke(t.index,e):e;0==(32&e[2])&&ar(o);let a=Do(e,n,r),l=i.__ngNextListenerFn__;for(;l;)a=Do(e,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function No(t=1){return function(t){return(en.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,en.lFrame.contextLView))[8]}(t)}function Mo(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?di(t,r,!0):pi(s,r))return i}else n=i}return n}function Fo(t){const e=sn()[16][6];if(!e.projection){const n=e.projection=ie(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?Mo(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function Lo(t,e=0,n){const s=sn(),i=rn(),r=Di(i,s[6],t,1,null,n||null);null===r.projection&&(r.projection=e),hn(),function(t,e,n){Nr(e[11],0,e,n,Sr(t,n,e),Or(n.parent||e[6],e))}(i,s,r)}const jo=[];function Ho(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?Si(r):ki(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Vo(t[a],e)&&(l=!0,t[a+1]=s?Ii(n):xi(n)),a=s?Si(n):ki(n)}l&&(t[n+1]=s?xi(r):Ii(r))}function Vo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zo(t){return t.substring(Bo.key,Bo.keyEnd)}function Uo(t){return t.substring(Bo.value,Bo.valueEnd)}function qo(t,e){const n=Bo.textEnd;let s=Bo.key=$o(t,e,n);return n===s?-1:(s=Bo.keyEnd=function(t,e,n){let s;for(;e<n&&(45===(s=t.charCodeAt(e))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)e++;return e}(t,s,n),s=Wo(t,s,n),s=Bo.value=$o(t,s,n),s=Bo.valueEnd=function(t,e,n){let s=-1,i=-1,r=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Zo(t,l,o,n):e===o-4&&85===r&&82===i&&76===s&&40===l?a=o=Zo(t,41,o,n):l>32&&(a=o),r=i,i=s,s=-33&l}return a}(t,s,n),Wo(t,s,n))}function $o(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Wo(t,e,n,s){return(e=$o(t,e,n))<n&&e++,e}function Zo(t,e,n,s){let i=-1,r=n;for(;r<s;){const n=t.charCodeAt(r++);if(n==e&&92!==i)return r;i=92==n&&92===i?0:n}throw new Error}function Ko(t,e,n){return Go(t,e,n,!1),Ko}function Qo(t,e){return Go(t,e,null,!0),Qo}function Yo(t,e){for(let n=function(t){return function(t){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=t.length}(t),qo(t,$o(t,0,Bo.textEnd))}(e);n>=0;n=qo(e,n))na(t,zo(e),Uo(e))}function Go(t,e,n,s){const i=sn(),r=rn(),o=fn(2);r.firstUpdatePass&&Jo(r,t,o,s),e!==gi&&go(i,o,e)&&sa(r,r.data[kn()+Se],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=vt(Ss(t)))),t}(e,n),s,o)}function Xo(t,e){return e>=t.expandoStartIndex}function Jo(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[kn()+Se],o=Xo(t,n);oa(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=en.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=ta(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==ki(s))return t[Si(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],s),n=ea(n,e.attrs,s),function(t,e,n,s){t[Si(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=ea(s,t[r].hostAttrs,n);return ea(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=Si(o),l=ki(o);t[s]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=Si(t[a+1]);t[s+1]=Ci(e,a),0!==e&&(t[e+1]=Ti(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=Ci(a,0),0!==a&&(t[a+1]=Ti(t[a+1],s)),a=s;else t[s+1]=Ci(l,0),0===a?a=s:t[l+1]=Ti(t[l+1],s),l=s;h&&(t[s+1]=xi(t[s+1])),Ho(t,c,s,!0),Ho(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[s+1]=Ii(n[s+1]))}(e,c,t,s,r),o=Ci(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}function ta(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=ea(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function ea(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function na(t,e,n){re(t,e,Ss(n))}function sa(t,e,n,s,i,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];ra(1==(1&c)?ia(l,e,n,i,ki(c),o):void 0)||(ra(r)||2==(2&c)&&(r=ia(l,null,n,i,a,o)),function(t,e,n,s,i){const r=Be(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{const e=-1==s.indexOf("-")?void 0:2;null==i?r?t.removeStyle(n,s,e):n.style.removeProperty(s):r?t.setStyle(n,s,i,e):n.style.setProperty(s,i)}}(s,o,qe(kn(),n),i,r))}function ia(t,e,n,s,i,r){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===gi&&(h=c?jo:void 0);let u=c?oe(h,s):l===s?h:void 0;if(r&&!ra(u)&&(u=oe(e,s)),ra(u)&&(a=u,o))return a;const d=t[i+1];i=o?Si(d):ki(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function ra(t){return void 0!==t}function oa(t,e){return 0!=(t.flags&(e?16:32))}function aa(t,e=""){const n=sn(),s=rn(),i=t+Se,r=s.firstCreatePass?Di(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return Be(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ar(s,n,o,r),ln(r,!1)}function la(t){return ca("",t,""),la}function ca(t,e,n){const s=sn(),i=function(t,e,n,s){return go(t,pn(),n)?e+$n(n)+s:gi}(s,t,e,n);return i!==gi&&function(t,e,n){const s=qe(e,t),i=t[11];Be(i)?i.setValue(s,n):s.textContent=n}(s,kn(),i),ca}function ha(t,e){const n=Qe(t)[1],s=n.data.length-1;On(n,{directiveStart:s,directiveEnd:s+1})}function ua(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Re(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=da(t.inputs),e.declaredInputs=da(t.declaredInputs),e.outputs=da(t.outputs);const n=i.hostBindings;n&&ma(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&pa(t,r),o&&fa(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Re(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===ua&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Hn(i.hostAttrs,n=Hn(n,i.hostAttrs))}}(s)}function da(t){return t===he?{}:t===ue?[]:t}function pa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function fa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function ma(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}function ga(t,e,n,s,i){if(t=St(t),Array.isArray(t))for(let r=0;r<t.length;r++)ga(t[r],e,n,s,i);else{const r=rn(),o=sn();let a=oo(t)?t:St(t.provide),l=so(t);const c=an(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(oo(t)||!t.multi){const s=new Mn(l,i,vo),p=ba(a,e,i?h:h+d,u);-1===p?(ss(Jn(c,o),r,a),_a(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=ba(a,e,h+d,u),f=ba(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(i&&!g||!i&&!m){ss(Jn(c,o),r,a);const h=function(t,e,n,s,i){const r=new Mn(t,n,vo);return r.multi=[],r.index=e,r.componentProviders=0,ya(r,i,s&&!n),r}(i?wa:va,n.length,i,s,l);!i&&g&&(n[f].providerFactory=h),_a(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else _a(r,t,p>-1?p:f,ya(n[i?f:p],l,!i&&s));!i&&s&&g&&n[f].componentProviders++}}}function _a(t,e,n,s){const i=oo(e);if(i||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[s,r]):o[t+1].push(s,r)}else o.push(n,r)}}}function ya(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ba(t,e,n,s){for(let i=n;i<s;i++)if(e[i]===t)return i;return-1}function va(t,e,n,s){return Ea(this.multi,[])}function wa(t,e,n,s){const i=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ls(n,n[1],this.providerFactory.index,s);r=e.slice(0,t),Ea(i,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Ea(i,r);return r}function Ea(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ca(t,e=[]){return n=>{n.providersResolver=(n,s)=>function(t,e,n){const s=rn();if(s.firstCreatePass){const i=Re(t);ga(n,s.data,s.blueprint,i,!0),ga(e,s.data,s.blueprint,i,!1)}}(n,s?s(t):t,e)}}class Sa{}class xa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ka=(()=>{class t{}return t.NULL=new xa,t})(),Ta=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ia(t),t})();const Ia=function(t){return zr(t,an(),sn())};class Oa{}var Aa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ra=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Da(),t})();const Da=function(){const t=sn(),e=Ke(an().index,t);return function(t){const e=t[11];if(Be(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ke(e)?e:t)};let Pa=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Na{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ma=new Na("10.1.0");class Fa{constructor(){}supports(t){return fo(t)}create(t){return new ja(t)}}const La=(t,e)=>e;class ja{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||La}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<za(n,s,i)?e:n,o=za(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=[]),!fo(t))throw new Error(`Error trying to diff '${vt(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&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(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[uo()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(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))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Ha(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 Ba),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 Ba),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 Ha{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 Va{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)&&Object.is(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 Ba{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Va,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 za(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 Ua{constructor(){}supports(t){return t instanceof Map||mo(t)}create(){return new qa}}class qa{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||mo(t)))throw new Error(`Error trying to diff '${vt(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 $a(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){Object.is(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 $a{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 Wa=(()=>{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 ot,new it]]}}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 Fa])}),t})(),Za=(()=>{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 ot,new it]]}}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 Ua])}),t})();const Ka=[new Ua],Qa=new Wa([new Fa]),Ya=new Za(Ka);let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Xa(t,Ta),t})();const Xa=function(t,e){return Ur(t,e,an(),sn())};let Ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>tl(t,Ta),t})();const tl=function(t,e){return qr(t,e,an(),sn())},el={};class nl extends ka{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new rl(e,this.ngModule)}}function sl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const il=new jt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Zn});class rl extends Sa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return sl(this.componentDef.inputs)}get outputs(){return sl(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,el,i);return r!==el||s===el?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(Oa,ze),o=i.get(Pa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Be(t))return t.selectRootElement(e,n===ce.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Ai(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Zn,clean:ur,playerHandler:null,flags:0},d=Bi(0,-1,null,1,0,null,null,null,null,null),p=Ri(null,d,u,h,null,null,r,a,o,i);let f,m;vn(p,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Di(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(co(a,l,!0),null!==t&&(Fn(i,t,l),null!==a.classes&&Fr(i,t,a.classes),null!==a.styles&&Mr(i,t,a.styles)));const c=s.createRenderer(t,e),h=Ri(n,Vi(e),null,e.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(ss(Jn(a,n),o,e.type),Yi(o,a),Xi(a,n.length,1)),or(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Fn(a,c,["ng-version",Ma.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!hi(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Fn(a,c,t),e&&e.length>0&&Fr(a,c,e.join(" "))}if(m=We(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=an();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qi(t,s,1),Ji(t,e,n));const i=ls(e,t,e.length-1,s);ei(i,e);const r=$e(s,e);return r&&ei(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=an();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Tn(a.index-Se);const t=n[1];Wi(t,e),Zi(t,n,e.hostVars),Ki(e,o)}return o}(t,this.componentDef,p,u,[ha]),Pi(d,p,null)}finally{xn()}const g=new ol(this.componentType,f,zr(Ta,m,p),p,m);return d.node.child=m,g}}class ol extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new jr(s),function(t,e,n,s){let i=t.node;null==i&&(t.node=i=Ui(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new us(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const al=void 0;var ll=["en",[["a","p"],["AM","PM"],al],[["AM","PM"],al,al],[["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"]],al,[["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"]],al,[["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}",al,"{1} 'at' {0}",al],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let cl={};function hl(t){return t in cl||(cl[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),cl[t]}var ul=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const dl="en-US";let pl=dl;function fl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(pl=t.toLowerCase().replace(/_/g,"-"))}const ml=new Map;class gl extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new nl(this);const n=Ce(t),s=t[Mt]||null;s&&fl(s),this._bootstrapComponents=Qn(n.bootstrap),this._r3Injector=to(t,e,[{provide:te,useValue:this},{provide:ka,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=lo.THROW_IF_NOT_FOUND,n=at.Default){return t===lo||t===te||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class _l extends class{}{constructor(t){super(),this.moduleType=t,null!==Ce(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${vt(e)} vs ${vt(e.name)}`)})(t,ml.get(t),e),ml.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new gl(this.moduleType,t)}}function yl(t,e,n){const s=sn(),i=Ze(s,t);return function(t,e){return po.isWrapped(e)&&(e=po.unwrap(e),t[en.lFrame.bindingIndex]=gi),e}(s,function(t,e){return t[1].data[e+Se].pure}(s,t)?function(t,e,n,s,i,r){const o=e+n;return go(t,o,i)?function(t,e,n){return t[e]=n}(t,o+1,r?s.call(r,i):s(i)):function(t,e){const n=t[e];return n===gi?void 0:n}(t,o+1)}(s,function(){const t=en.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}const bl=class extends C{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 vl(){return this._results[uo()]()}class wl{constructor(){this.dirty=!0,this._results=[],this.changes=new bl,this.length=0;const t=uo(),e=wl.prototype;e[t]||(e[t]=vl)}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()}}class El{constructor(t){this.queryList=t,this.matches=null}clone(){return new El(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new Cl(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ll(t,e).matches&&this.queries[e].setDirty()}}class Sl{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class xl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new xl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class kl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new kl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,Tl(e,i)),this.matchTNodeWithReadOption(t,e,as(e,t,i,!1,!1))}else n===Ga?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,as(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===Ta||s===Ja||s===Ga&&0===e.type)this.addMatch(e.index,-2);else{const n=as(e,t,s,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Tl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function Il(t,e,n,s){return-1===n?function(t,e){return 3===t.type||4===t.type?zr(Ta,t,e):0===t.type?Ur(Ga,Ta,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ta?zr(Ta,e,t):n===Ga?Ur(Ga,Ta,e,t):n===Ja?qr(Ja,Ta,e,t):void 0}(t,e,s):ls(t,t[1],n,e)}function Ol(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:Il(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function Al(t){const e=sn(),n=rn(),s=_n();yn(s+1);const i=Ll(n,s);if(t.dirty&&Ye(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?function t(e,n,s,i){const r=e.queries.getByIndex(s),o=r.matches;if(null!==o){const a=Ol(e,n,r,s);for(let e=0;e<o.length;e+=2){const s=o[e];if(s>0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const s=e[n];t(s[1],s,r,i)}}}}}return i}(n,e,s,[]):Ol(n,e,i,s);t.reset(r),t.notifyOnChanges()}return!0}return!1}function Rl(t,e,n){Dl(rn(),sn(),t,e,n,!1)}function Dl(t,e,n,s,i,r){t.firstCreatePass&&(Fl(t,new Sl(n,s,r,i),-1),r&&(t.staticViewQueries=!0)),Ml(t,e)}function Pl(t,e,n,s){!function(t,e,n,s,i,r,o,a){t.firstCreatePass&&(Fl(t,new Sl(n,s,false,i),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),Ml(t,e)}(rn(),sn(),e,n,s,0,an(),t)}function Nl(){return t=sn(),e=_n(),t[19].queries[e].queryList;var t,e}function Ml(t,e){const n=new wl;zi(t,e,n,n.destroy),null===e[19]&&(e[19]=new Cl),e[19].queries.push(new El(n))}function Fl(t,e,n){null===t.queries&&(t.queries=new xl),t.queries.track(new kl(e,n))}function Ll(t,e){return t.queries.getByIndex(e)}function jl(t,e){return Ur(Ga,Ta,t,e)}const Hl=new jt("Application Initializer");let Vl=(()=>{class t{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]();Ao(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(Hl,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Bl=new jt("AppId"),zl={provide:Bl,useFactory:function(){return`${Ul()}${Ul()}${Ul()}`},deps:[]};function Ul(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ql=new jt("Platform Initializer"),$l=new jt("Platform ID"),Wl=new jt("appBootstrapListener");let Zl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Kl=new jt("LocaleId"),Ql=new jt("DefaultCurrencyCode");class Yl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Gl=function(t){return new _l(t)},Xl=Gl,Jl=function(t){return Promise.resolve(Gl(t))},tc=function(t){const e=Gl(t),n=Qn(Ce(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new rl(n)),t},[]);return new Yl(e,n)},ec=tc,nc=function(t){return Promise.resolve(tc(t))};let sc=(()=>{class t{constructor(){this.compileModuleSync=Xl,this.compileModuleAsync=Jl,this.compileModuleAndAllComponentsSync=ec,this.compileModuleAndAllComponentsAsync=nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ic=(()=>Promise.resolve(0))();function rc(t){"undefined"==typeof Zone?ic.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class oc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new bl(!1),this.onMicrotaskEmpty=new bl(!1),this.onStable=new bl(!1),this.onError=new bl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.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(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,hc(t),cc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),hc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return uc(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),dc(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return uc(t),e.invoke(s,i,r,o,a)}finally{dc(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,hc(t),cc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oc.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,lc,ac,ac);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 ac(){}const lc={};function cc(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 hc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function uc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dc(t){t._nesting--,cc(t)}class pc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new bl,this.onMicrotaskEmpty=new bl,this.onStable=new bl,this.onError=new bl}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)}}let fc=(()=>{class t{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:()=>{oc.assertNotInAngularZone(),rc(()=>{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())rc(()=>{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[]}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),mc=(()=>{class t{constructor(){this._applications=new Map,yc.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 yc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class gc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let _c,yc=new gc;const bc=new jt("AllowMultipleToken");function vc(t,e,n=[]){const s="Platform: "+e,i=new jt(s);return(e=[])=>{let r=wc();if(!r||r.injector.get(bc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Kr,useValue:"platform"});!function(t){if(_c&&!_c.destroyed&&!_c.injector.get(bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_c=t.get(Ec);const e=t.get(ql,null);e&&e.forEach(t=>t())}(lo.create({providers:t,name:s}))}return function(t){const e=wc();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 wc(){return _c&&!_c.destroyed?_c:null}let Ec=(()=>{class t{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 pc:("zone.js"===t?void 0:t)||new oc({enableLongStackTrace:Os(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:oc,useValue:n}];return n.run(()=>{const e=lo.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(_s,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>xc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return Ao(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(Vl);return t.runInitializers(),t.donePromise.then(()=>(fl(i.injector.get(Kl,dl)||dl),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=Cc({},e);return function(t,e,n){const s=new _l(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Sc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(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}}return t.\u0275fac=function(e){return new(e||t)(Qt(lo))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Cc(t,e){return Array.isArray(e)?e.reduce(Cc,t):Object.assign(Object.assign({},t),e)}let Sc=(()=>{class t{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=Os(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{oc.assertNotInAngularZone(),rc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{oc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(J()))}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 Sa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(lo.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(fc,null);return r&&i.injector.get(mc).registerApplication(i.location.nativeElement,r),this._loadComponent(i),Os()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable 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;xc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Wl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),xc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(Zl),Qt(lo),Qt(_s),Qt(ka),Qt(Vl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function xc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const kc=vc(null,"core",[{provide:$l,useValue:"unknown"},{provide:Ec,deps:[lo]},{provide:mc,deps:[]},{provide:Zl,deps:[]}]),Tc=[{provide:Sc,useClass:Sc,deps:[oc,Zl,lo,_s,ka,Vl]},{provide:il,deps:[oc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vl,useClass:Vl,deps:[[new it,Hl]]},{provide:sc,useClass:sc,deps:[]},zl,{provide:Wa,useFactory:function(){return Qa},deps:[]},{provide:Za,useFactory:function(){return Ya},deps:[]},{provide:Kl,useFactory:function(t){return fl(t=t||"undefined"!=typeof $localize&&$localize.locale||dl),t},deps:[[new st(Kl),new it,new ot]]},{provide:Ql,useValue:"USD"}];let Ic=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(Sc))},providers:Tc}),t})();class Oc extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Ac extends Oc{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 Rc extends Ac{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)}}let Dc=(()=>{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 Pc extends Dc{constructor(t,e=Dc.now){super(t,()=>Pc.delegate&&Pc.delegate!==this?Pc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Pc.delegate&&Pc.delegate!==this?Pc.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 Nc extends Pc{}const Mc=new Nc(Rc),Fc=new y(t=>t.complete());function Lc(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Fc}function jc(...t){let e=t[t.length-1];return x(e)?(t.pop(),M(t,e)):q(t)}function Hc(t,e){return new y(e?n=>e.schedule(Vc,0,{error:t,subscriber:n}):e=>e.error(t))}function Vc({error:t,subscriber:e}){e.error(t)}let Bc=(()=>{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 jc(this.value);case"E":return Hc(this.error);case"C":return Lc()}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 zc 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(zc.dispatch,this.delay,new Uc(t,this.destination)))}_next(t){this.scheduleMessage(Bc.createNext(t))}_error(t){this.scheduleMessage(Bc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Bc.createComplete()),this.unsubscribe()}}class Uc{constructor(t,e){this.notification=t,this.destination=e}}class qc extends C{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 $c(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 v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),s&&t.add(t=new zc(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||Mc).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 $c{constructor(t,e){this.time=t,this.value=e}}function Wc(t,e){return"function"==typeof e?n=>n.pipe(Wc((n,s)=>F(t(n,s)).pipe(k((t,i)=>e(n,t,s,i))))):e=>e.lift(new Zc(t))}class Zc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Kc(t,this.project))}}class Kc extends j{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)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new L(this),s=this.destination;s.add(n),this.innerSubscription=H(t,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Qc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Yc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Yc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Yc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Gc(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Qc.call(t,e)}(t,e)||(s=n,0))),s}class Xc{constructor(t,e){this.componentFactory=e.get(ka).resolveComponentFactory(t)}create(t){return new Jc(this.componentFactory,t)}}class Jc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new qc(1),this.events=this.eventEmitters.pipe(Wc(t=>$(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(oc),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Yc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=e)!==(s=this.getInputValue(t))&&(n==n||s==s)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=lo.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Gc(t,e,i);-1!==o&&s[o].push(t)}return s}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Sc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(k(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Yc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new Pe(i,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class th extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function eh(t,e){const n=function(t,e){return e.get(ka).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Xc(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends th{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=s.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?i.forEach(([t])=>delete this[t]):nh(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,s){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(i),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),nh(n,r.prototype),r}function nh(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let sh=null;function ih(){return sh}const rh=new jt("DocumentToken");let oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:ah,token:t,providedIn:"platform"}),t})();function ah(){return Qt(lh)}let lh=(()=>{class t extends oh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().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){ch()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ch()?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.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({factory:hh,token:t,providedIn:"platform"}),t})();function ch(){return!!window.history.pushState}function hh(){return new lh(Qt(rh))}function uh(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 dh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}let fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:mh,token:t,providedIn:"root"}),t})();function mh(t){const e=Qt(rh).location;return new _h(Qt(oh),e&&e.origin||"")}const gh=new jt("appBaseHref");let _h=(()=>{class t extends fh{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 uh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+ph(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+ph(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(oh),Qt(gh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t{constructor(t,e){this._subject=new bl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=dh(vh(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+ph(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,vh(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+ph(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=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.\u0275fac=function(e){return new(e||t)(Qt(fh),Qt(oh))},t.normalizeQueryParams=ph,t.joinWithSlash=uh,t.stripTrailingSlash=dh,t.\u0275prov=ht({factory:bh,token:t,providedIn:"root"}),t})();function bh(){return new yh(Qt(fh),Qt(oh))}function vh(t){return t.replace(/\/index.html$/,"")}var wh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Eh{}let Ch=(()=>{class t extends Eh{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=hl(e);if(n)return n;const s=e.split("-")[0];if(n=hl(s),n)return n;if("en"===s)return ll;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ul.PluralCase]}(e||this.locale)(t)){case wh.Zero:return"zero";case wh.One:return"one";case wh.Two:return"two";case wh.Few:return"few";case wh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Qt(Kl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Sh=(()=>{class t{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&&(fo(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 "+vt(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)})}}return t.\u0275fac=function(e){return new(e||t)(vo(Wa),vo(Za),vo(Ta),vo(Ra))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class xh{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}}let kh=(()=>{class t{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){Os()&&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 xh(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new Th(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 Th(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}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja),vo(Ga),vo(Wa))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Th{constructor(t,e){this.record=t,this.view=e}}let Ih=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Oh,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){Ah("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ah("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}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja),vo(Ga))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Oh{constructor(){this.$implicit=null,this.ngIf=null}}function Ah(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Rh{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()}}let Dh=(()=>{class t{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)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ph=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Rh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja),vo(Ga),vo(Dh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Nh=(()=>{class t{constructor(t,e,n){n._addDefault(new Rh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja),vo(Ga),vo(Dh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Mh=(()=>{class t{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))}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(Za),vo(Ra))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Fh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ne]}),t})();class Lh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class jh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Hh=new jh,Vh=new Lh;let Bh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=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)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Ao(e))return Hh;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Vh;throw Error(`InvalidPipeArgument: '${e}' for pipe '${vt(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=$r(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"async",type:t,pure:!1}),t})(),zh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Eh,useClass:Ch}]}),t})();class Uh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Uh,sh||(sh=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=$h||($h=document.querySelector("base"),$h)?$h.getAttribute("href"):null;return null==e?null:(n=e,qh||(qh=document.createElement("a")),qh.setAttribute("href",n),"/"===qh.pathname.charAt(0)?qh.pathname:"/"+qh.pathname);var n}resetBaseElement(){$h=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 function(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}(document.cookie,t)}}let qh,$h=null;const Wh=new jt("TRANSITION_ID"),Zh=[{provide:Hl,useFactory:function(t,e,n){return()=>{n.get(Vl).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Wh,rh,lo],multi:!0}];class Kh{static init(){var t;t=new Kh,yc=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.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?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Qh=new jt("EventManagerPlugins");let Yh=(()=>{class t{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)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Qh),Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Gh{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=ih().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Xh=(()=>{class t{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)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Jh=(()=>{class t extends Xh{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=>ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const tu={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/"},eu=/%COMP%/g;function nu(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?nu(t,i,n):(i=i.replace(eu,t),n.push(i))}return n}function su(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let iu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ru(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ou(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new au(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=nu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Qt(Yh),Qt(Jh),Qt(Bl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class ru{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(tu[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=tu[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=tu[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&Aa.DashCase?t.style.setProperty(e,n,s&Aa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Aa.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,su(n)):this.eventManager.addEventListener(t,e,su(n))}}class ou extends ru{constructor(t,e,n,s){super(t),this.component=n;const i=nu(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(eu,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(eu,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 au extends ru{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=nu(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)))}}let lu=(()=>{class t extends Gh{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)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const cu=["alt","control","meta","shift"],hu={"\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"},uu={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"},du={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let pu=(()=>{class t extends Gh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(cu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}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&&uu.hasOwnProperty(e)&&(e=uu[e]))}return hu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),cu.forEach(s=>{s!=n&&(0,du[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),fu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Qt(mu)},token:t,providedIn:"root"}),t})(),mu=(()=>{class t extends fu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Js.NONE:return e;case Js.HTML:return xs(e,"HTML")?Ss(e):Gs(this._doc,String(e));case Js.STYLE:return xs(e,"Style")?Ss(e):e;case Js.SCRIPT:if(xs(e,"Script"))return Ss(e);throw new Error("unsafe value used in a script context");case Js.URL:return ks(e),xs(e,"URL")?Ss(e):Ns(String(e));case Js.RESOURCE_URL:if(xs(e,"ResourceURL"))return Ss(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 bs(t)}bypassSecurityTrustStyle(t){return new vs(t)}bypassSecurityTrustScript(t){return new ws(t)}bypassSecurityTrustUrl(t){return new Es(t)}bypassSecurityTrustResourceUrl(t){return new Cs(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({factory:function(){return t=Qt(Ht),new mu(t.get(rh));var t},token:t,providedIn:"root"}),t})();const gu=vc(kc,"browser",[{provide:$l,useValue:"browser"},{provide:ql,useValue:function(){Uh.makeCurrent(),Kh.init()},multi:!0},{provide:rh,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),_u=[[],{provide:Kr,useValue:"root"},{provide:_s,useFactory:function(){return new _s},deps:[]},{provide:Qh,useClass:lu,multi:!0,deps:[rh,oc,$l]},{provide:Qh,useClass:pu,multi:!0,deps:[rh]},[],{provide:iu,useClass:iu,deps:[Yh,Jh,Bl]},{provide:Oa,useExisting:iu},{provide:Xh,useExisting:Jh},{provide:Jh,useClass:Jh,deps:[rh]},{provide:fc,useClass:fc,deps:[oc]},{provide:Yh,useClass:Yh,deps:[Qh,oc]},[]];let yu=(()=>{class t{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(e){return{ngModule:t,providers:[{provide:Bl,useValue:e.appId},{provide:Wh,useExisting:Bl},Zh]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(t,12))},providers:_u,imports:[zh,Ic]}),t})();"undefined"!=typeof window&&window;class bu{}const vu="*";function wu(t,e){return{type:7,name:t,definitions:e,options:{}}}function Eu(t,e=null){return{type:4,styles:e,timings:t}}function Cu(t,e=null){return{type:3,steps:t,options:e}}function Su(t,e=null){return{type:2,steps:t,options:e}}function xu(t){return{type:6,styles:t,offset:null}}function ku(t,e,n){return{type:0,name:t,styles:e,options:n}}function Tu(t){return{type:5,steps:t}}function Iu(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Ou(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function Au(t){Promise.resolve(null).then(t)}class Ru{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(){Au(()=>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 Du{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?Au(()=>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}}function Pu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nu(t){switch(t.length){case 0:return new Ru;case 1:return t[0];default:return new Du(t)}}function Mu(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 vu: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 Fu(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&Lu(n,"start",t)));break;case"done":t.onDone(()=>s(n&&Lu(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&Lu(n,"destroy",t)))}}function Lu(t,e,n){const s=n.totalTime,i=ju(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 ju(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Hu(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 Vu(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Bu=(t,e)=>!1,zu=(t,e)=>!1,Uu=(t,e,n)=>[];const qu=Pu();(qu||"undefined"!=typeof Element)&&(Bu=(t,e)=>t.contains(e),zu=(()=>{if(qu||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]):zu}})(),Uu=(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 $u=null,Wu=!1;function Zu(t){$u||($u=("undefined"!=typeof document?document.body:null)||{},Wu=!!$u.style&&"WebkitAppearance"in $u.style);let e=!0;return $u.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in $u.style,!e&&Wu)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in $u.style),e}const Ku=zu,Qu=Bu,Yu=Uu;function Gu(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let Xu=(()=>{class t{validateStyleProperty(t){return Zu(t)}matchesElement(t,e){return Ku(t,e)}containsElement(t,e){return Qu(t,e)}query(t,e,n){return Yu(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new Ru(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ju=(()=>{class t{}return t.NOOP=new Xu,t})();const td="ng-enter",ed="ng-leave",nd="ng-trigger",sd=".ng-trigger",id="ng-animating",rd=".ng-animating";function od(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ad(parseFloat(e[1]),e[2])}function ad(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ld(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=ad(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=ad(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 cd(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function hd(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else cd(t,n);return n}function ud(t,e,n){return n?e+":"+n+";":""}function dd(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=ud(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=ud(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function pd(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=wd(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),Pu()&&dd(t))}function fd(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=wd(e);t.style[n]=""}),Pu()&&dd(t))}function md(t){return Array.isArray(t)?1==t.length?t[0]:Su(t):t}const gd=new RegExp("{{\\s*(.+?)\\s*}}","g");function _d(t){let e=[];if("string"==typeof t){let n;for(;n=gd.exec(t);)e.push(n[1]);gd.lastIndex=0}return e}function yd(t,e,n){const s=t.toString(),i=s.replace(gd,(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 bd(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const vd=/-+([a-z0-9])/g;function wd(t){return t.replace(vd,(...t)=>t[1].toUpperCase())}function Ed(t,e){return 0===t||0===e}function Cd(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach((function(e){n[e]=xd(t,e)}))}}return e}function Sd(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 xd(t,e){return window.getComputedStyle(t)[e]}const kd="*";function Td(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(Ad(i,o)),"<"!=r[0]||i==kd&&o==kd||e.push(Ad(o,i))}(t,n,e)):n.push(t),n}const Id=new Set(["true","1"]),Od=new Set(["false","0"]);function Ad(t,e){const n=Id.has(t)||Od.has(t),s=Id.has(e)||Od.has(e);return(i,r)=>{let o=t==kd||t==i,a=e==kd||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?Id.has(t):Od.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?Id.has(e):Od.has(e)),o&&a}}const Rd=new RegExp("s*:selfs*,?","g");function Dd(t,e,n){return new Pd(t).build(e,n)}class Pd{constructor(t){this._driver=t}build(t,e){const n=new Nd(e);return this._resetContextStyleTimingState(n),Sd(this,md(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(Md(t)){const e=t;Object.keys(e).forEach(t=>{_d(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=bd(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=Sd(this,md(t.animation),e);return{type:1,matchers:Td(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Fd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Sd(this,t,e)),options:Fd(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=Sd(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:Fd(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 Ld(ld(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ld(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||ld(s,e),Ld(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:xu({});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=xu(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==vu?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(Md(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=_d(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(Md(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Md(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:Sd(this,md(t.animation),e),options:Fd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Fd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Fd(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(Rd,"")),[t=t.replace(/@\*/g,sd).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,rd),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Hu(e.collectedStyles,e.currentQuerySelector,{});const o=Sd(this,md(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:Fd(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"}:ld(t.timings,e.errors,!0);return{type:12,animation:Sd(this,md(t.animation),e),timings:n,options:null}}}class Nd{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 Md(t){return!Array.isArray(t)&&"object"==typeof t}function Fd(t){var e;return t?(t=cd(t)).params&&(t.params=(e=t.params)?cd(e):null):t={},t}function Ld(t,e,n){return{duration:t,delay:e,easing:n}}function jd(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 Hd{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 Vd=new RegExp(":enter","g"),Bd=new RegExp(":leave","g");function zd(t,e,n,s,i,r={},o={},a,l,c=[]){return(new Ud).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class Ud{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new Hd;const h=new $d(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Sd(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()):[jd(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?od(n.duration):null,r=null!=n.delay?od(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),Sd(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=qd);const t=od(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Sd(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?od(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),Sd(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 ld(e.params?yd(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?od(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qd);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),Sd(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;Sd(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const qd={};class $d{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=qd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Wd(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=od(n.duration)),null!=n.delay&&(s.delay=od(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]=yd(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 $d(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=qd,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 Zd(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(Vd,"."+this._enterClassName)).replace(Bd,"."+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 Wd{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 Wd(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]||vu,this._currentKeyframe[t]=vu}),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]=vu})):hd(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=yd(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:vu),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=hd(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==vu&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?bd(t.values()):[],r=e.size?bd(e.values()):[];if(n){const t=s[0],e=cd(t);t.offset=0,e.offset=1,s=[t,e]}return jd(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class Zd extends Wd{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=hd(t[0],!1);a.offset=0,i.push(a);const l=hd(t[0],!1);l.offset=Kd(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=hd(t[s],!1);o.offset=Kd((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return jd(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function Kd(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Qd{}class Yd extends Qd{normalizePropertyName(t,e){return wd(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(Gd[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 Gd=(()=>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 Xd(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 Jd={};class tp{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||Jd,d=this.buildStyles(n,o&&o.params||Jd,h),p=a&&a.params||Jd,f=this.buildStyles(s,p,h),m=new Set,g=new Map,_=new Map,y="void"===s,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:zd(t,e,this.ast.animation,i,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Xd(e,this._triggerName,n,s,y,d,f,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,s=Hu(g,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Hu(_,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const E=bd(m.values());return Xd(e,this._triggerName,n,s,y,d,f,v,E,g,_,w)}}class ep{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=cd(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=yd(r,s,e)),n[t]=r})}}),n}}class np{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new ep(t.style,t.options&&t.options.params||{})}),sp(this.states,"true","1"),sp(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new tp(t,e,this.states))}),this.fallbackTransition=new tp(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 sp(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const ip=new Hd;class rp{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=Dd(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=Mu(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=zd(this._driver,e,i,td,ed,{},{},n,ip,s),r.forEach(t=>{const e=Hu(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,vu)})});const a=Nu(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=ju(e,"","","");return Fu(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 op="ng-animate-queued",ap="ng-animate-disabled",lp=".ng-animate-disabled",cp=[],hp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},up={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class dp{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=cd(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 pp="void",fp=new dp(pp);class mp{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,Ep(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=Hu(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=Hu(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ep(t,nd),Ep(t,"ng-trigger-"+e),a[e]=fp),()=>{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 _p(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Ep(t,nd),Ep(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new dp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=fp),l.value!==pp&&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(()=>{fd(t,n),pd(t,s)})}return}const c=Hu(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||(Ep(t,op),r.onStart(()=>{Cp(t,op)})),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,sd,!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,pp,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Nu(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]||fp,o=new dp(pp),a=new _p(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!==hp||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ep(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=ju(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,Fu(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 gp{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 mp(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(yp(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!yp(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),Ep(t,ap)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Cp(t,ap))}removeNode(t,e,n,s){if(yp(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 yp(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,sd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,rd,!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 Nu(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=hp,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,lp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,lp,!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++)Ep(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?Nu(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 Hd,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=wp(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=td+f++;p.set(e,n),t.forEach(t=>Ep(t,n))});const m=[],g=new Set,_=new Set;for(let A=0;A<this.collectedLeaveElements.length;A++){const t=this.collectedLeaveElements[A],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,b=wp(u,Array.from(g));b.forEach((t,e)=>{const n=ed+f++;y.set(e,n),t.forEach(t=>Ep(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Cp(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Cp(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.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)w.push(f);else{if(c)return e.onStart(()=>fd(i,f.fromStyles)),e.onDestroy(()=>pd(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>fd(i,f.fromStyles)),e.onDestroy(()=>pd(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=>Hu(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))}}),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))})}});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`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,C=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Hu(E,e,[]).push(t),t.destroy()})});const S=m.filter(t=>xp(t,a,l)),x=new Map;vp(x,this.driver,_,l,vu).forEach(t=>{xp(t,a,l)&&S.push(t)});const k=new Map;d.forEach((t,e)=>{vp(k,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=k.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>pd(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=O;if(C.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>C.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,E,i,k,x);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Nu(e)),s.push(r)}}else fd(e,o.fromStyles),r.onDestroy(()=>pd(e,o.toStyles)),I.push(r),c.has(e)&&s.push(r)}),I.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Nu(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A<m.length;A++){const t=m[A],e=t.__ng_removed;if(Cp(t,ed),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,rd,!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?Sp(this,t,s):this.processLeaveNode(t)}return m.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||i==pp;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=Hu(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)})}fd(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 Ru(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 Du?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||cp).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),g=r.get(u),_=Mu(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&h.add(u),p){const e=new _p(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Hu(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=>Ep(t,id));const d=Nu(u);return d.onDestroy(()=>{c.forEach(t=>Cp(t,id)),pd(a,e.toStyles)}),h.forEach(t=>{Hu(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 Ru(t.duration,t.delay)}}class _p{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ru,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=>Fu(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){Hu(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 yp(t){return t&&1===t.nodeType}function bp(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function vp(t,e,n,s,i){const r=[];n.forEach(t=>r.push(bp(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=up,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>bp(t,r[a++])),o}function wp(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 Ep(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Cp(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Sp(t,e,n){Nu(n).onDone(()=>t.processLeaveNode(e))}function xp(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 kp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new gp(t,e,n),this._timelineEngine=new rp(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=Dd(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 np(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]=Vu(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]=Vu(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()}}function Tp(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Op(e[0]),e.length>1&&(s=Op(e[e.length-1]))):e&&(n=Op(e)),n||s?new Ip(t,n,s):null}let Ip=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&pd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pd(this._element,this._initialStyles),this._endStyles&&(pd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(fd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fd(this._element,this._endStyles),this._endStyles=null),pd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Op(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];Ap(i)&&(e=e||{},e[i]=t[i])}return e}function Ap(t){return"display"===t||"position"===t}const Rp="animation",Dp="animationend";class Pp{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Hp(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),jp(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Lp(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Np(this._element,this._name,"paused")}resume(){Np(this._element,this._name,"running")}setPosition(t){const e=Mp(this._element,this._name);this._position=t*this._duration,jp(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Lp(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Hp(t,"").split(","),s=Fp(n,e);s>=0&&(n.splice(s,1),jp(t,"",n.join(",")))}(this._element,this._name))}}function Np(t,e,n){jp(t,"PlayState",n,Mp(t,e))}function Mp(t,e){const n=Hp(t,"");return n.indexOf(",")>0?Fp(n.split(","),e):Fp([n],e)}function Fp(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Lp(t,e,n){n?t.removeEventListener(Dp,e):t.addEventListener(Dp,e)}function jp(t,e,n,s){const i=Rp+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function Hp(t,e){return t.style[Rp+e]}class Vp{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Pp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:xd(this.element,n))})}this.currentSnapshot=t}}class Bp extends Ru{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Gu(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class zp{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Zu(t)}matchesElement(t,e){return Ku(t,e)}containsElement(t,e){return Qu(t,e)}query(t,e,n){return Yu(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Gu(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=i+"}\n"}),s+="}\n";const r=document.createElement("style");return r.innerHTML=s,r}animate(t,e,n,s,i,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Vp),l={};Ed(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Cd(t,e,l));if(0==n)return new Bp(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Tp(t,e),p=new Vp(t,e,h,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Up{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:xd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class qp{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test($p().toString()),this._cssKeyframesDriver=new zp}validateStyleProperty(t){return Zu(t)}matchesElement(t,e){return Ku(t,e)}containsElement(t,e){return Qu(t,e)}query(t,e,n){return Yu(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof Up);Ed(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Tp(t,e=Cd(t,e=e.map(t=>hd(t,!1)),l));return new Up(t,e,a,h)}}function $p(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Wp=(()=>{class t extends bu{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Su(t):t;return Qp(this._renderer,null,e,"register",[n]),new Zp(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Oa),Qt(rh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Zp extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Kp(this._id,t,e||{},this._renderer)}}class Kp{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 Qp(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 Qp(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const Yp="@",Gp="@.disabled";let Xp=(()=>{class t{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 Jp("",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 tf(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()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Oa),Qt(kp),Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Jp{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)==Yp&&e==Gp?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 tf extends Jp{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Yp?"."==e.charAt(1)&&e==Gp?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)==Yp){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)!=Yp&&([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)}}let ef=(()=>{class t extends kp{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh),Qt(Ju),Qt(Qd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const nf=new jt("AnimationModuleType"),sf=[{provide:Ju,useFactory:function(){return"function"==typeof $p()?new qp:new zp}},{provide:nf,useValue:"BrowserAnimations"},{provide:bu,useClass:Wp},{provide:Qd,useFactory:function(){return new Yd}},{provide:kp,useClass:ef},{provide:Oa,useFactory:function(t,e,n){return new Xp(t,e,n)},deps:[iu,kp,oc]}];let rf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:sf,imports:[yu]}),t})();function of(t){return null!=t&&""+t!="false"}function af(t){return Array.isArray(t)?t:[t]}function lf(t){return null==t?"":"string"==typeof t?t:t+"px"}function cf(t){return t instanceof Ta?t.nativeElement:t}let hf=1;const uf=(()=>Promise.resolve())(),df={};function pf(t){return t in df&&(delete df[t],!0)}const ff={setImmediate(t){const e=hf++;return df[e]=!0,uf.then(()=>pf(e)&&t()),e},clearImmediate(t){pf(t)}};class mf extends Ac{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=ff.setImmediate(t.flush.bind(t,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&&(ff.clearImmediate(e),t.scheduled=void 0)}}class gf extends Pc{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 _f=new gf(mf),yf=new Pc(Ac);class bf{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new vf(t,this.durationSelector))}}class vf extends j{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=H(n,new L(this));!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=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function wf(t){return!l(t)&&t-parseFloat(t)+1>=0}function Ef(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 Cf(t,e=yf){return n=()=>function(t=0,e,n){let s=-1;return wf(e)?s=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=yf),new y(e=>{const i=wf(t)?t:+t-n.now();return n.schedule(Ef,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new bf(n))};var n}function Sf(t,e){return function(n){return n.lift(new xf(t,e))}}class xf{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new kf(t,this.predicate,this.thisArg))}}class kf 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)}}function Tf(t){return e=>e.lift(new If(t))}class If{constructor(t){this.notifier=t}call(t,e){const n=new Of(t),s=H(this.notifier,new L(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class Of extends j{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Af(...t){return U(1)(jc(...t))}function Rf(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Af(t,n,e)):e=>Af(t,e)}let Df;try{Df="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fv){Df=!1}let Pf,Nf,Mf=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===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&&!Df)&&"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.\u0275fac=function(e){return new(e||t)(Qt($l))},t.\u0275prov=ht({factory:function(){return new t(Qt($l))},token:t,providedIn:"root"}),t})(),Ff=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function Lf(t){return function(){if(null==Pf&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pf=!0}))}finally{Pf=Pf||!1}return Pf}()?t:!!t.capture}const jf=new jt("cdk-dir-doc",{providedIn:"root",factory:function(){return Yt(rh)}});let Hf=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new bl,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.\u0275fac=function(e){return new(e||t)(Qt(jf,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(jf,8))},token:t,providedIn:"root"}),t})(),Vf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Bf=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Cf(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):jc()}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(Sf(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_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(()=>function t(e,n,i,r){return s(i)&&(r=i,i=void 0),r?t(e,n,i).pipe(k(t=>l(t)?r(...t):r(t))):new y(t=>{!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)}(e,n,(function(e){t.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),t,i)})}(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(Mf),Qt(rh,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(oc),Qt(Mf),Qt(rh,8))},token:t,providedIn:"root"}),t})(),zf=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new C,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}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=this._getDocument(),e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Cf(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Qt(Mf),Qt(oc),Qt(rh,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(Mf),Qt(oc),Qt(rh,8))},token:t,providedIn:"root"}),t})(),Uf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),qf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Vf,Ff,Uf],Vf,Uf]}),t})();class $f{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Wf extends $f{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class Zf extends $f{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 Kf extends $f{constructor(t){super(),this.element=t instanceof Ta?t.nativeElement:t}}class Qf extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Zf?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Kf?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}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)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,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.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),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]}}let Yf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const Gf=(()=>{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 Xf(t){return e=>0===t?Lc():e.lift(new Jf(t))}class Jf{constructor(t){if(this.total=t,this.total<0)throw new Gf}call(t,e){return e.subscribe(new tm(t,this.total))}}class tm 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 em(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class nm{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=lf(-this._previousScrollPosition.left),t.style.top=lf(-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}}class sm{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){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 im{enable(){}disable(){}attach(){}}function rm(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function om(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class am{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,this._scrollSubscription=null}attach(t){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();rm(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 lm=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new im,this.close=t=>new sm(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new nm(this._viewportRuler,this._document),this.reposition=t=>new am(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(Qt(Bf),Qt(zf),Qt(oc),Qt(rh))},t.\u0275prov=ht({factory:function(){return new t(Qt(Bf),Qt(zf),Qt(oc),Qt(rh))},token:t,providedIn:"root"}),t})();class cm{constructor(t){if(this.scrollStrategy=new im,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 hm{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 um{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let dm=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),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()}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({factory:function(){return new t(Qt(rh))},token:t,providedIn:"root"}),t})(),pm=(()=>{class t extends dm{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({factory:function(){return new t(Qt(rh))},token:t,providedIn:"root"}),t})(),fm=(()=>{class t extends dm{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh),Qt(Mf))},t.\u0275prov=ht({factory:function(){return new t(Qt(rh),Qt(Mf))},token:t,providedIn:"root"}),t})();const mm=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let gm=(()=>{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,e="cdk-overlay-container";if(t||mm){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),mm?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh),Qt(Mf))},t.\u0275prov=ht({factory:function(){return new t(Qt(rh),Qt(Mf))},token:t,providedIn:"root"}),t})();class _m{constructor(t,e,n,s,i,r,o,a,l){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._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new C,this._attachments=new C,this._detachments=new C,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new C,this._outsidePointerEvents=new C,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.pipe(Xf(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())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),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(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),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._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}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=lf(this._config.width),t.height=lf(this._config.height),t.minWidth=lf(this._config.minWidth),t.minHeight=lf(this._config.minHeight),t.maxWidth=lf(this._config.maxWidth),t.maxHeight=lf(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_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;af(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Tf($(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 ym="cdk-overlay-connected-position-bounding-box",bm=/([A-Za-z%]+)$/;class vm{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 C,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(ym),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&&wm(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ym),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=Em(this._overlayRef.getConfig().minHeight),o=Em(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.width,0),r=Math.max(t.y+e.height-s.height,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 um(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=lf(n.height),s.top=lf(n.top),s.bottom=lf(n.bottom),s.width=lf(n.width),s.left=lf(n.left),s.right=lf(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=lf(t)),i&&(s.maxWidth=lf(i))}this._lastBoundingBoxSize=n,wm(this._boundingBox.style,s)}_resetBoundingBoxStyles(){wm(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){wm(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();wm(n,this._getExactOverlayY(e,t,s)),wm(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=lf(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=lf(r.maxWidth):i&&(n.maxWidth="")),wm(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=lf(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=lf(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:om(t,n),isOriginOutsideView:rm(t,n),isOverlayClipped:om(e,n),isOverlayOutsideView:rm(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(){}_addPanelClasses(t){this._pane&&af(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 Ta)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)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 wm(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Em(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(bm);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Cm{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new vm(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=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 hm(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}}const Sm="cdk-global-overlay-wrapper";class xm{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(Sm),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(Sm),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let km=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new xm}connectedTo(t,e,n){return new Cm(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new vm(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(zf),Qt(rh),Qt(Mf),Qt(gm))},t.\u0275prov=ht({factory:function(){return new t(Qt(zf),Qt(rh),Qt(Mf),Qt(gm))},token:t,providedIn:"root"}),t})(),Tm=0,Im=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){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,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new cm(t);return i.direction=i.direction||this._directionality.value,new _m(s,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Tm++,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(Sc)),new Qf(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Qt(lm),Qt(gm),Qt(ka),Qt(km),Qt(pm),Qt(lo),Qt(oc),Qt(rh),Qt(Hf),Qt(yh),Qt(fm))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Om={provide:new jt("cdk-connected-overlay-scroll-strategy"),deps:[Im],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Am=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Im,Om],imports:[[Vf,Yf,qf],qf]}),t})();function Rm(){}function Dm(t,e,n){return function(s){return s.lift(new Pm(t,e,n))}}class Pm{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Nm(t,this.nextOrObserver,this.error,this.complete))}}class Nm extends f{constructor(t,e,n,i){super(t),this._tapNext=Rm,this._tapError=Rm,this._tapComplete=Rm,this._tapError=n||Rm,this._tapComplete=i||Rm,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Rm,this._tapError=e.error||Rm,this._tapComplete=e.complete||Rm)}_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 Mm(t,e=yf){return n=>n.lift(new Fm(t,e))}class Fm{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Lm(t,this.dueTime,this.scheduler))}}class Lm 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(jm,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 jm(t){t.debouncedNext()}let Hm=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Vm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Hm]}),t})();function Bm(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const zm="cdk-describedby-message-container",Um="cdk-describedby-host";let qm=0;const $m=new Map;let Wm=null,Zm=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),$m.set(e,{messageElement:e,referenceCount:0})):$m.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=$m.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Wm&&0===Wm.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(Um);Wm&&this._deleteMessagesContainer(),$m.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Wm.appendChild(e),$m.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+qm++)}_deleteMessageElement(t){const e=$m.get(t),n=e&&e.messageElement;Wm&&n&&Wm.removeChild(n),$m.delete(t)}_createMessagesContainer(){if(!Wm){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(zm);e&&e.parentNode&&e.parentNode.removeChild(e),Wm=this._document.createElement("div"),Wm.id=zm,Wm.classList.add("cdk-visually-hidden"),Wm.setAttribute("aria-hidden",t+""),this._document.body.appendChild(Wm)}}_deleteMessagesContainer(){Wm&&Wm.parentNode&&(Wm.parentNode.removeChild(Wm),Wm=null)}_removeCdkDescribedByReferenceIds(t){const e=Bm(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=$m.get(e);!function(t,e,n){const s=Bm(t,e);s.some(t=>t.trim()==n.trim())||(s.push(n.trim()),t.setAttribute(e,s.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(Um,""),n.referenceCount++}_removeMessageReference(t,e){const n=$m.get(e);n.referenceCount--,function(t,e,n){const s=Bm(t,e).filter(t=>t!=n.trim());s.length?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(Um)}_isElementDescribedByMessage(t,e){const n=Bm(t,"aria-describedby"),s=$m.get(e),i=s&&s.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),s=t.getAttribute("aria-label");return!(!n||s&&s.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh),Qt(Mf))},t.\u0275prov=ht({factory:function(){return new t(Qt(rh),Qt(Mf))},token:t,providedIn:"root"}),t})();class Km extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,t instanceof wl&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Dm(t=>this._pressedLetters.push(t)),Mm(t),Sf(()=>this._pressedLetters.length>0),k(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const s=(this._activeItemIndex+n)%e.length,i=e[s];if(!this._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||em(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),s=e[n];this._activeItem=null==s?null:s,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const s=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof wl?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Qm(t){return 0===t.buttons}"undefined"!=typeof Element&∈const Ym=new jt("cdk-focus-monitor-default-options"),Gm=Lf({passive:!0,capture:!0});let Xm=(()=>{class t{constructor(t,e,n,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Qm(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Jm(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Jm(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return jc(null);const n=cf(t),s=function(t){if(function(){if(null==Nf){const t="undefined"!=typeof document?document.head:null;Nf=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Nf}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const r={checkChildren:e,subject:new C,rootNode:s};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=cf(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const s=cf(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){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,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Jm(t);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!==Jm(t))return;const s=this._getFocusOrigin(t);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))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gm),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gm)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Gm),t.addEventListener("mousedown",this._documentMousedownListener,Gm),t.addEventListener("touchstart",this._documentTouchstartListener,Gm),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gm),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gm),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Gm),t.removeEventListener("mousedown",this._documentMousedownListener,Gm),t.removeEventListener("touchstart",this._documentTouchstartListener,Gm),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(Mf),Qt(rh,8),Qt(Ym,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(oc),Qt(Mf),Qt(rh,8),Qt(Ym,8))},token:t,providedIn:"root"}),t})();function Jm(t){return t.composedPath?t.composedPath()[0]:t.target}const tg="cdk-high-contrast-black-on-white",eg="cdk-high-contrast-white-on-black",ng="cdk-high-contrast-active";let sg=(()=>{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||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){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(ng),t.remove(tg),t.remove(eg);const e=this.getHighContrastMode();1===e?(t.add(ng),t.add(tg)):2===e&&(t.add(ng),t.add(eg))}}}return t.\u0275fac=function(e){return new(e||t)(Qt(Mf),Qt(rh))},t.\u0275prov=ht({factory:function(){return new t(Qt(Mf),Qt(rh))},token:t,providedIn:"root"}),t})(),ig=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(sg))},imports:[[Ff,Vm]]}),t})();const rg=new Na("10.2.0"),og=new Na("10.2.0"),ag=new jt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let lg,cg=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Os()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.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"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&og.full!==rg.full&&console.warn("The Angular Material version ("+og.full+") does not match the Angular CDK version ("+rg.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(sg),Qt(ag,8),Qt(rh,8))},imports:[[Vf],Vf]}),t})();function hg(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=of(t)}}}function ug(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function dg(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=of(t)}}}try{lg="undefined"!=typeof Intl}catch(fv){lg=!1}class pg{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const fg={enterDuration:450,exitDuration:400},mg=Lf({passive:!0}),gg=["mousedown","touchstart"],_g=["mouseup","mouseleave","touchend","touchcancel"];class yg{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=cf(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},fg),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 pg(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({},fg),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=cf(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(gg))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_g),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Qm(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))}_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)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,mg)})})}_removeTriggerEvents(){this._triggerElement&&(gg.forEach(t=>{this._triggerElement.removeEventListener(t,this,mg)}),this._pointerUpEventsRegistered&&_g.forEach(t=>{this._triggerElement.removeEventListener(t,this,mg)}))}}const bg=new jt("mat-ripple-global-options");let vg=(()=>{class t{constructor(t,e,n,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new yg(this,e,t,n)}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(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),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))}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(oc),vo(Mf),vo(bg,8),vo(nf,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Qo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),wg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[cg,Ff],cg]}),t})();const Eg=["mat-button",""],Cg=["*"],Sg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class xg{constructor(t){this._elementRef=t}}const kg=ug(hg(dg(xg)));let Tg=(()=>{class t extends kg{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 Sg)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}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))}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(Xm),vo(nf,8))},t.\u0275cmp=pe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&Rl(vg,!0),2&t&&Al(n=Nl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(_o("disabled",e.disabled||null),Qo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ua],attrs:Eg,ngContentSelectors:Cg,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Fo(),Co(0,"span",0),Lo(1),So(),xo(2,"span",1),xo(3,"span",2)),2&t&&(wi(2),Qo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),wo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[vg],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.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"],encapsulation:2,changeDetection:0}),t})(),Ig=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[wg,cg],cg]}),t})();function Og(t,e){return new y(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=F(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 Ag(t){return function(e){const n=new Rg(t),s=e.lift(n);return n.caught=s}}class Rg{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Dg(t,this.selector,this.caught))}}class Dg extends j{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 L(this);this.add(s);const i=H(n,s);i!==s&&this.add(i)}}}class Pg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Ng(t,this.callback))}}class Ng extends f{constructor(t,e){super(t),this.add(new u(e))}}class Mg{}class Fg{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 Fg?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 Fg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fg?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 Lg{encodeKey(t){return jg(t)}encodeValue(t){return jg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function jg(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 Hg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Lg,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 Hg({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 Vg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Bg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function zg(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Ug{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 Fg),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 Hg,this.urlWithParams=e}serializeBody(){return null===this.body?null:Vg(this.body)||Bg(this.body)||zg(this.body)||"string"==typeof this.body?this.body:this.body instanceof Hg?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||zg(this.body)?null:Bg(this.body)?this.body.type||null:Vg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Hg?"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 Ug(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var qg=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class $g extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new Fg,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}}{constructor(t={}){super(t),this.type=qg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new $g({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})}}function Wg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Zg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof Ug)s=t;else{let i=void 0;i=n.headers instanceof Fg?n.headers:new Fg(n.headers);let r=void 0;n.params&&(r=n.params instanceof Hg?n.params:new Hg({fromObject:n.params})),s=new Ug(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=jc(s).pipe(V(t=>this.handler.handle(t),void 0,1));if(t instanceof Ug||"events"===n.observe)return i;const r=i.pipe(Sf(t=>t instanceof $g));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(k(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(k(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(k(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(k(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 Hg).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,Wg(n,e))}post(t,e,n={}){return this.request("POST",t,Wg(n,e))}put(t,e,n={}){return this.request("PUT",t,Wg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Qt(Mg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Kg=["*"];function Qg(t){return Error(`Unable to find icon with the name "${t}"`)}function Yg(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Gg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Xg{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Jg=(()=>{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 Xg(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(Js.HTML,n);if(!i)throw Gg(n);return this._addSvgIconConfig(t,e,new Xg("",i,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 Xg(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(Js.HTML,e);if(!s)throw Gg(e);return this._addSvgIconSetConfig(t,new Xg("",s,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(Js.RESOURCE_URL,t);if(!e)throw Yg(t);const n=this._cachedIconsByUrl.get(e);return n?jc(t_(n)):this._loadSvgIconFromConfig(new Xg(t,null)).pipe(Dm(t=>this._cachedIconsByUrl.set(e,t)),k(t=>t_(t)))}getNamedSvgIcon(t,e=""){const n=e_(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):Hc(Qg(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?jc(t_(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(k(t=>t_(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?jc(n):function(...t){if(1===t.length){const e=t[0];if(l(e))return Og(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Og(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Og(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(k(t=>e(...t)))}return Og(t,null)}(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Ag(e=>{const n=this._sanitizer.sanitize(Js.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),jc(null)})))).pipe(k(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Qg(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Dm(e=>t.svgText=e),k(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?jc(null):this._fetchIcon(t).pipe(Dm(e=>t.svgText=e))}_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}_fetchIcon(t){var e;const{url:n,options:s}=t,i=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;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==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(Js.RESOURCE_URL,n);if(!r)throw Yg(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:i}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new Pg(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(e_(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(Qt(Zg,8),Qt(fu),Qt(rh,8),Qt(_s))},t.\u0275prov=ht({factory:function(){return new t(Qt(Zg,8),Qt(fu),Qt(rh,8),Qt(_s))},token:t,providedIn:"root"}),t})();function t_(t){return t.cloneNode(!0)}function e_(t,e){return t+":"+e}class n_{constructor(t){this._elementRef=t}}const s_=ug(n_),i_=new jt("mat-icon-location",{providedIn:"root",factory:function(){const t=Yt(rh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),r_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],o_=r_.map(t=>`[${t}]`).join(", "),a_=/^url\(['"]?#(.*?)['"]?\)$/;let l_=(()=>{class t extends s_{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=of(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(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(Xf(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let s=0;s<e.length;s++)e[s].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),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(o_),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)r_.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(a_):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(Jg),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Ln(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(an(),"aria-hidden")),vo(i_),vo(_s))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(_o("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Qo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[ua,Ne],ngContentSelectors:Kg,decls:1,vars:0,template:function(t,e){1&t&&(Fo(),Lo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),c_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[cg],cg]}),t})();class h_ extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class u_ 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()}}function d_(t,e,n,s,i=new u_(t,n,s)){if(!i.closed)return e instanceof y?e.subscribe(i):N(e)(i)}const p_={};class f_{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m_(t,this.resultSelector))}}class m_ extends h_{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(p_),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++)this.add(d_(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===p_?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class g_{constructor(t){this.total=t}call(t,e){return e.subscribe(new __(t,this.total))}}class __ extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const y_=new Set;let b_,v_=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w_}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y_.has(t))try{b_||(b_=document.createElement("style"),b_.setAttribute("type","text/css"),document.head.appendChild(b_)),b_.sheet&&(b_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y_.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Mf))},t.\u0275prov=ht({factory:function(){return new t(Qt(Mf))},token:t,providedIn:"root"}),t})();function w_(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let E_=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return C_(af(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return x(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]),q(t,n).lift(new f_(e))}(C_(af(t)).map(t=>this._registerQuery(t).observable));return e=Af(e.pipe(Xf(1)),e.pipe(t=>t.lift(new g_(1)),Mm(0))),e.pipe(k(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Rf(e),k(({matches:e})=>({query:t,matches:e})),Tf(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Qt(v_),Qt(oc))},t.\u0275prov=ht({factory:function(){return new t(Qt(v_),Qt(oc))},token:t,providedIn:"root"}),t})();function C_(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const S_={tooltipState:wu("state",[ku("initial, void, hidden",xu({opacity:0,transform:"scale(0)"})),ku("visible",xu({transform:"scale(1)"})),Iu("* => visible",Eu("200ms cubic-bezier(0, 0, 0.2, 1)",Tu([xu({opacity:0,transform:"scale(0)",offset:0}),xu({opacity:.5,transform:"scale(0.99)",offset:.5}),xu({opacity:1,transform:"scale(1)",offset:1})]))),Iu("* => hidden",Eu("100ms cubic-bezier(0, 0, 0.2, 1)",xu({opacity:0})))])},x_=Lf({passive:!0}),k_=new jt("mat-tooltip-scroll-strategy"),T_={provide:k_,deps:[Im],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},I_=new jt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let O_=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=s,this._ngZone=i,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!em(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),i.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=of(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tf(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,x_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Wf(A_,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Tf(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Tf(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Tf(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:s,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:s,originY:i}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:s,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:s,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Xf(1),Tf(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,x_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(vo(Im),vo(Ta),vo(Bf),vo(Ja),vo(oc),vo(Mf),vo(Zm),vo(Xm),vo(k_),vo(Hf,8),vo(I_,8))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),A_=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new C,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}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}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()}}return t.\u0275fac=function(e){return new(e||t)(vo(Wr),vo(E_))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Ro("click",(function(){return e._handleBodyInteraction()}),!1,Kn),2&t&&Ko("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Co(0,"div",0),Ro("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=rn();let s;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,s.onDestroy)):s=n.data[21];const i=s.factory||(s.factory=Ee(s.type)),r=Zt(vo),o=Gn(!1),a=i();Gn(o),Zt(r),function(t,e,n,s){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=s}(n,sn(),0,a)}(),aa(2),So()),2&t&&(Qo("mat-tooltip-handset",null==(n=yl(1,5,e._isHandset))?null:n.matches),wo("ngClass",e.tooltipClass)("@state",e._visibility),wi(2),la(e.message))},directives:[Sh],pipes:[Bh],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"],encapsulation:2,data:{animation:[S_.tooltipState]},changeDetection:0}),t})(),R_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[T_],imports:[[ig,zh,Am,cg],cg,Uf]}),t})(),D_=(()=>{class t{constructor(t){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="cdk-overlay-container",e=this._document.querySelectorAll("."+t);if(null==e?void 0:e.length)this._containerElement=e[0];else{const e=this._document.createElement("div");e.classList.add(t),this._document.body.appendChild(e),this._containerElement=e}}}return t.\u0275fac=function(e){return new(e||t)(Qt(rh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const P_=new y(Rm);function N_(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function M_(t){return"img"===t.nodeName.toLowerCase()}function F_(t,e,n){return M_(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function L_(t){return e=>{const n=e.parentElement.getElementsByTagName("source");for(let s=0;s<n.length;s++){const e=n[s].getAttribute(t);e&&("srcset"in n[s]?n[s].srcset=e:n[s].src=e)}}}const j_=L_("defaultImage"),H_=L_("lazyLoad"),V_=L_("errorImage");function B_(t){return(e,n,s)=>{M_(e)&&N_(e)&&t(e),n&&F_(e,n,s)}}const z_=B_(j_),U_=B_(H_),q_=B_(V_),$_="ng-lazyloaded",W_="ng-lazyloading";function Z_(t,e){t.className=t.className.replace(e,"")}function K_(t,e){t.className.includes(e)||(t.className+=" "+e)}let Q_=(()=>{class t extends class extends class{constructor(){this.navigator="undefined"!=typeof window?window.navigator:void 0}setPlatformId(t){this.platformId=t}onDestroy(t){}onAttributeChange(t){}}{setup(t){var e;z_(t.element,t.defaultImagePath,t.useSrcset),K_(t.element,W_),(e=t.element).className&&e.className.includes("ng-lazyloaded")&&Z_(t.element,$_)}finally(t){K_(t.element,$_),Z_(t.element,W_)}loadImage(t){if(this.skipLazyLoading(t))return[t.imagePath];const{element:e,useSrcset:n,imagePath:s,decode:i}=t;let r;if(M_(e)&&N_(e)){const t=e.parentNode.cloneNode(!0);r=t.getElementsByTagName("img")[0],H_(r),F_(r,s,n)}else r=new Image,M_(e)&&e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),M_(e)&&e.sizes&&(r.sizes=e.sizes),n&&"srcset"in r?r.srcset=s:r.src=s;return i&&r.decode?r.decode().then(()=>s):new Promise((t,e)=>{r.onload=()=>t(s),r.onerror=()=>e(null)})}setErrorImage(t,e){const{element:n,useSrcset:s,errorImagePath:i}=e;q_(n,i,s),K_(n,"ng-failed-lazyloaded")}setLoadedImage(t,e){const{element:n,useSrcset:s}=e;U_(n,t,s)}isDisabled(){return"server"===this.platformId&&!this.isBot()}skipLazyLoading(t){return this.isBot(t)}isBot(t){var e;return!!(null===(e=this.navigator)||void 0===e?void 0:e.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new C,this.uniqKey={}}getObservable(t){if(this.skipLazyLoading(t))return jc({isIntersecting:!0});if(t.customObservable)return t.customObservable;const e=t.scrollContainer||this.uniqKey,n={root:t.scrollContainer||null};t.offset&&(n.rootMargin=t.offset+"px");let s=this.observers.get(e);return s||(s=new IntersectionObserver(t=>this.loadingCallback(t),n),this.observers.set(e,s)),s.observe(t.element),y.create(e=>{const n=this.intersectionSubject.pipe(Sf(e=>e.target===t.element)).subscribe(e);return()=>{n.unsubscribe(),s.unobserve(t.element)}})}isVisible(t){return t.isIntersecting}loadingCallback(t){t.forEach(t=>this.intersectionSubject.next(t))}}return t.\u0275fac=function(e){return Y_(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Y_=ps(Q_),G_=new jt("LazyLoadImageHooks");let X_=(()=>{class t{constructor(t,e,n,s){this.onStateChange=new bl,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new qc,this.hooks=s,this.hooks.setPlatformId(n),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(Dm(t=>this.hooks.onAttributeChange(t)),Dm(t=>t.onStateChange.emit({reason:"setup"})),Dm(t=>this.hooks.setup(t)),Wc(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return n=>n.pipe(Dm(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Sf(n=>t.isVisible(n,e)),Xf(1),Dm(()=>e.onStateChange.emit({reason:"start-loading"})),V(()=>t.loadImage(e)),Dm(()=>e.onStateChange.emit({reason:"mount-image"})),Dm(n=>t.setLoadedImage(n,e)),Dm(()=>e.onStateChange.emit({reason:"loading-succeeded"})),k(()=>!0),Ag(n=>(e.onStateChange.emit({reason:"loading-failed",data:n}),t.setErrorImage(n,e),jc(!1))),Dm(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):P_)).subscribe({next:()=>null})})}ngOnDestroy(){var t,e;this.propertyChanges$.pipe(Xf(1)).subscribe({next:t=>this.hooks.onDestroy(t)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(oc),vo($l),vo(G_))},t.\u0275dir=be({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Ne]}),t})(),J_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:G_,useClass:Q_}]}),t})();var ty="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ey=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(ty&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),ny=ty&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),ey))}};function sy(t){return t&&"[object Function]"==={}.toString.call(t)}function iy(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function ry(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function oy(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=iy(t);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?t:oy(ry(t))}function ay(t){return t&&t.referenceNode?t.referenceNode:t}var ly=ty&&!(!window.MSInputMethodContext||!document.documentMode),cy=ty&&/MSIE 10/.test(navigator.userAgent);function hy(t){return 11===t?ly:10===t?cy:ly||cy}function uy(t){if(!t)return document.documentElement;for(var e=hy(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var s=n&&n.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===iy(n,"position")?uy(n):n:t?t.ownerDocument.documentElement:document.documentElement}function dy(t){return null!==t.parentNode?dy(t.parentNode):t}function py(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,s=n?t:e,i=n?e:t,r=document.createRange();r.setStart(s,0),r.setEnd(i,0);var o,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||s.contains(i))return"BODY"===(a=(o=l).nodeName)||"HTML"!==a&&uy(o.firstElementChild)!==o?uy(l):l;var c=dy(t);return c.host?py(c.host,e):py(t,dy(e).host)}function fy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",s=t.nodeName;if("BODY"===s||"HTML"===s){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function my(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=fy(e,"top"),i=fy(e,"left"),r=n?-1:1;return t.top+=s*r,t.bottom+=s*r,t.left+=i*r,t.right+=i*r,t}function gy(t,e){var n="x"===e?"Left":"Top",s="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+s+"Width"])}function _y(t,e,n,s){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],hy(10)?parseInt(n["offset"+t])+parseInt(s["margin"+("Height"===t?"Top":"Left")])+parseInt(s["margin"+("Height"===t?"Bottom":"Right")]):0)}function yy(t){var e=t.body,n=t.documentElement,s=hy(10)&&getComputedStyle(n);return{height:_y("Height",e,n,s),width:_y("Width",e,n,s)}}var by=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},vy=function(){function t(t,e){for(var n=0;n<e.length;n++){var s=e[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,n,s){return n&&t(e.prototype,n),s&&t(e,s),e}}(),wy=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Ey=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t};function Cy(t){return Ey({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Sy(t){var e={};try{if(hy(10)){e=t.getBoundingClientRect();var n=fy(t,"top"),s=fy(t,"left");e.top+=n,e.left+=s,e.bottom+=n,e.right+=s}else e=t.getBoundingClientRect()}catch(c){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?yy(t.ownerDocument):{},o=t.offsetWidth-(r.width||t.clientWidth||i.width),a=t.offsetHeight-(r.height||t.clientHeight||i.height);if(o||a){var l=iy(t);o-=gy(l,"x"),a-=gy(l,"y"),i.width-=o,i.height-=a}return Cy(i)}function xy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=hy(10),i="HTML"===e.nodeName,r=Sy(t),o=Sy(e),a=oy(t),l=iy(e),c=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var u=Cy({top:r.top-o.top-c,left:r.left-o.left-h,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!s&&i){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);u.top-=c-d,u.bottom-=c-d,u.left-=h-p,u.right-=h-p,u.marginTop=d,u.marginLeft=p}return(s&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=my(u,e)),u}function ky(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,s=xy(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:fy(n),a=e?0:fy(n,"left"),l={top:o-s.top+s.marginTop,left:a-s.left+s.marginLeft,width:i,height:r};return Cy(l)}function Ty(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===iy(t,"position"))return!0;var n=ry(t);return!!n&&Ty(n)}function Iy(t){if(!t||!t.parentElement||hy())return document.documentElement;for(var e=t.parentElement;e&&"none"===iy(e,"transform");)e=e.parentElement;return e||document.documentElement}function Oy(t,e,n,s){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},o=i?Iy(t):py(t,ay(e));if("viewport"===s)r=ky(o,i);else{var a=void 0;"scrollParent"===s?"BODY"===(a=oy(ry(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===s?t.ownerDocument.documentElement:s;var l=xy(a,o,i);if("HTML"!==a.nodeName||Ty(o))r=l;else{var c=yy(t.ownerDocument),h=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=h+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function Ay(t){return t.width*t.height}function Ry(t,e,n,s,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var o=Oy(n,s,r,i),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map((function(t){return Ey({key:t},a[t],{area:Ay(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){return t.width>=n.clientWidth&&t.height>=n.clientHeight})),h=c.length>0?c[0].key:l[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function Dy(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=s?Iy(e):py(e,ay(n));return xy(n,i,s)}function Py(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),s=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+s,height:t.offsetHeight+n}}function Ny(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function My(t,e,n){n=n.split("-")[0];var s=Py(t),i={width:s.width,height:s.height},r=-1!==["right","left"].indexOf(n),o=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[o]=e[o]+e[l]/2-s[l]/2,i[a]=n===a?e[a]-s[c]:e[Ny(a)],i}function Fy(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Ly(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var s=Fy(t,(function(t){return t.name===n}));return t.indexOf(s)}(t,0,n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&sy(n)&&(e.offsets.popper=Cy(e.offsets.popper),e.offsets.reference=Cy(e.offsets.reference),e=n(e,t))})),e}function jy(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Dy(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ry(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=My(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Ly(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Hy(t,e){return t.some((function(t){return t.enabled&&t.name===e}))}function Vy(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),s=0;s<e.length;s++){var i=e[s],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function By(){return this.state.isDestroyed=!0,Hy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Vy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zy(t){var e=t.ownerDocument;return e?e.defaultView:window}function Uy(){this.state.eventsEnabled||(this.state=function(t,e,n,s){n.updateBound=s,zy(t).addEventListener("resize",n.updateBound,{passive:!0});var i=oy(t);return function t(e,n,s,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(n,s,{passive:!0}),r||t(oy(o.parentNode),n,s,i),i.push(o)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}(this.reference,0,this.state,this.scheduleUpdate))}function qy(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return zy(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function $y(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Wy(t,e){Object.keys(e).forEach((function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$y(e[n])&&(s="px"),t.style[n]=e[n]+s}))}var Zy=ty&&/Firefox/i.test(navigator.userAgent);function Ky(t,e,n){var s=Fy(t,(function(t){return t.name===e})),i=!!s&&t.some((function(t){return t.name===n&&t.enabled&&t.order<s.order}));if(!i){var r="`"+e+"`";console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Qy=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Yy=Qy.slice(3);function Gy(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Yy.indexOf(t),s=Yy.slice(n+1).concat(Yy.slice(0,n));return e?s.reverse():s}var Xy={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],s=e.split("-")[1];if(s){var i=t.offsets,r=i.reference,o=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:wy({},l,r[l]),end:wy({},l,r[l]+r[c]-o[c])};t.offsets.popper=Ey({},o,h[s])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,s=e.offset,i=t.offsets,r=i.popper,o=i.reference,a=t.placement.split("-")[0];return n=$y(+s)?[+s,0]:function(t,e,n,s){var i=[0,0],r=-1!==["right","left"].indexOf(s),o=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=o.indexOf(Fy(o,(function(t){return-1!==t.search(/,|\s/)})));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return(c=c.map((function(t,s){var i=(1===s?!r:r)?"height":"width",o=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,s){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],o=i[2];if(!r)return t;if(0===o.indexOf("%")){var a=void 0;switch(o){case"%p":a=n;break;case"%":case"%r":default:a=s}return Cy(a)[e]/100*r}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,s){$y(n)&&(i[e]+=n*("-"===t[s-1]?-1:1))}))})),i}(s,r,o,a),"left"===a?(r.top+=n[0],r.left-=n[1]):"right"===a?(r.top+=n[0],r.left+=n[1]):"top"===a?(r.left+=n[0],r.top-=n[1]):"bottom"===a&&(r.left+=n[0],r.top+=n[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||uy(t.instance.popper);t.instance.reference===n&&(n=uy(n));var s=Vy("transform"),i=t.instance.popper.style,r=i.top,o=i.left,a=i[s];i.top="",i.left="",i[s]="";var l=Oy(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=o,i[s]=a,e.boundaries=l;var c=t.offsets.popper,h={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),wy({},t,n)},secondary:function(t){var n="right"===t?"left":"top",s=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(s=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),wy({},n,s)}};return e.priority.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=Ey({},c,h[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,s=e.reference,i=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[a]<r(s[l])&&(t.offsets.popper[l]=r(s[l])-n[c]),n[l]>r(s[a])&&(t.offsets.popper[l]=r(s[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Ky(t.instance.modifiers,"arrow","keepTogether"))return t;var s=e.element;if("string"==typeof s){if(!(s=t.instance.popper.querySelector(s)))return t}else if(!t.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,o=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",f=Py(s)[c];a[p]-f<o[u]&&(t.offsets.popper[u]-=o[u]-(a[p]-f)),a[u]+f>o[p]&&(t.offsets.popper[u]+=a[u]+f-o[p]),t.offsets.popper=Cy(t.offsets.popper);var m=a[u]+a[c]/2-f/2,g=iy(t.instance.popper),_=parseFloat(g["margin"+h]),y=parseFloat(g["border"+h+"Width"]),b=m-t.offsets.popper[u]-_-y;return b=Math.max(Math.min(o[c]-f,b),0),t.arrowElement=s,t.offsets.arrow=(wy(n={},u,Math.round(b)),wy(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Hy(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Oy(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),s=t.placement.split("-")[0],i=Ny(s),r=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[s,i];break;case"clockwise":o=Gy(s);break;case"counterclockwise":o=Gy(s,!0);break;default:o=e.behavior}return o.forEach((function(a,l){if(s!==a||o.length===l+1)return t;s=t.placement.split("-")[0],i=Ny(s);var c=t.offsets.popper,h=t.offsets.reference,u=Math.floor,d="left"===s&&u(c.right)>u(h.left)||"right"===s&&u(c.left)<u(h.right)||"top"===s&&u(c.bottom)>u(h.top)||"bottom"===s&&u(c.top)<u(h.bottom),p=u(c.left)<u(n.left),f=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),_="left"===s&&p||"right"===s&&f||"top"===s&&m||"bottom"===s&&g,y=-1!==["top","bottom"].indexOf(s),b=!!e.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&g)||!!e.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&g||!y&&"end"===r&&m);(d||_||b)&&(t.flipped=!0,(d||_)&&(s=o[l+1]),b&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=s+(r?"-"+r:""),t.offsets.popper=Ey({},t.offsets.popper,My(t.instance.popper,t.offsets.reference,t.placement)),t=Ly(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],s=t.offsets,i=s.popper,r=s.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[n]-(a?i[o?"width":"height"]:0),t.placement=Ny(e),t.offsets.popper=Cy(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Ky(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Fy(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,s=e.y,i=t.offsets.popper,r=Fy(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o,a,l=void 0!==r?r:e.gpuAcceleration,c=uy(t.instance.popper),h=Sy(c),u={position:i.position},d=function(t,e){var n=t.offsets,s=n.popper,i=Math.round,r=Math.floor,o=function(t){return t},a=i(n.reference.width),l=i(s.width),c=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),u=e?c||h||a%2==l%2?i:r:o,d=e?i:o;return{left:u(a%2==1&&l%2==1&&!h&&e?s.left-1:s.left),top:d(s.top),bottom:d(s.bottom),right:u(s.right)}}(t,window.devicePixelRatio<2||!Zy),p="bottom"===n?"top":"bottom",f="right"===s?"left":"right",m=Vy("transform");if(a="bottom"===p?"HTML"===c.nodeName?-c.clientHeight+d.bottom:-h.height+d.bottom:d.top,o="right"===f?"HTML"===c.nodeName?-c.clientWidth+d.right:-h.width+d.right:d.left,l&&m)u[m]="translate3d("+o+"px, "+a+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var g="right"===f?-1:1;u[p]=a*("bottom"===p?-1:1),u[f]=o*g,u.willChange=p+", "+f}return t.attributes=Ey({},{"x-placement":t.placement},t.attributes),t.styles=Ey({},u,t.styles),t.arrowStyles=Ey({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Wy(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Wy(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,s,i){var r=Dy(i,e,t,n.positionFixed),o=Ry(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",o),Wy(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Jy=function(){function t(e,n){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};by(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=ny(this.update.bind(this)),this.options=Ey({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ey({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){s.options.modifiers[e]=Ey({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Ey({name:t},s.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&sy(t.onLoad)&&t.onLoad(s.reference,s.popper,s.options,t,s.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return vy(t,[{key:"update",value:function(){return jy.call(this)}},{key:"destroy",value:function(){return By.call(this)}},{key:"enableEventListeners",value:function(){return Uy.call(this)}},{key:"disableEventListeners",value:function(){return qy.call(this)}}]),t}();Jy.Utils=("undefined"!=typeof window?window:global).PopperUtils,Jy.placements=Qy,Jy.Defaults=Xy;var tb=Jy;const eb=["popperViewRef"];function nb(t,e){1&t&&(Co(0,"div",5),Lo(1),So()),2&t&&wo("innerHTML",No().text,ti)}function sb(t,e){1&t&&(Co(0,"div",6),Lo(1,1),So())}const ib=["*","*"];let rb=(()=>{class t{}return t.CLICK="click",t.HOVER="hover",t.MOUSEDOWN="mousedown",t.NONE="none",t})(),ob=(()=>{class t{}return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.TopStart="top-start",t.BottomStart="bottom-start",t.LeftStart="left-start",t.RightStart="right-start",t.TopEnd="top-end",t.BottomEnd="bottom-end",t.LeftEnd="left-end",t.RightEnd="right-end",t.Auto="auto",t.AutoStart="auto-start",t.AutoEnd="auto-end",t})(),ab=(()=>{class t{constructor(t,e,n,s){this.elemRef=t,this.renderer=e,this.viewRef=n,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:ob.Auto,boundariesElement:"",trigger:rb.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new bl,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===rb.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let e={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(e.onUpdate=this.onUpdate);let n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);e.modifiers&&n&&(e.modifiers.preventOverflow={boundariesElement:n}),e.modifiers&&void 0!==this.popperOptions.preventOverflow&&(e.modifiers.preventOverflow=e.modifiers.preventOverflow||{},e.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,e.modifiers.preventOverflow.enabled||(e.modifiers.hide={enabled:!1})),this.determineArrowColor(),e.modifiers=Object.assign(e.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new tb(this.referenceObject,this.popperViewRef.nativeElement,e),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!!this.popperOptions.styles&&!!this.popperOptions.styles.hasOwnProperty(t)&&(this.arrowColor=this.popperOptions.styles[t],!0))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((t,e)=>(t[e]=!0,t),{})}catch(e){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(Ra),vo(Ja),vo(Wr))},t.\u0275cmp=pe({type:t,selectors:[["popper-content"]],viewQuery:function(t,e){var n;1&t&&Rl(eb,!0),2&t&&Al(n=Nl())&&(e.popperViewRef=n.first)},hostBindings:function(t,e){1&t&&Ro("mouseover",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.showOnLeave()}))},ngContentSelectors:ib,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,e){1&t&&(Fo(ib),Co(0,"div",0,1),yo(2,nb,2,1,"div",2),yo(3,sb,2,0,"div",3),xo(4,"div",4),So()),2&t&&(Ko("display",e.displayType)("opacity",e.opacity),Qo("ngxp__container",!e.popperOptions.disableDefaultStyling)("ngxp__animation",!e.popperOptions.disableAnimation),wo("ngStyle",e.popperOptions.styles)("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyClass)),_o("aria-hidden",e.ariaHidden)("aria-describedby",e.popperOptions.ariaDescribe||null)("role",e.popperOptions.ariaRole),wi(2),wo("ngIf",e.text),wi(1),wo("ngIf",!e.text),wi(1),Ko("border-color",e.arrowColor),Qo("__force-arrow",e.arrowColor),wo("ngClass",e.extractAppliedClassListExpr(e.popperOptions.applyArrowClass)))},directives:[Mh,Sh,Ih],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),t})(),lb=(()=>{class t{constructor(e,n,s,i,r,o={}){this.viewContainerRef=e,this.changeDetectorRef=n,this.resolver=s,this.elementRef=i,this.renderer=r,this.popperDefaults=o,this.popperContentClass=ab,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new bl,this.popperOnHidden=new bl,this.popperOnUpdate=new bl,t.baseOptions=Object.assign({},t.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(t){this.disabled||!this.hideOnClickOutside||t.srcElement&&t.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(t.srcElement)||this.scheduledHide(t,this.hideTimeout)}hideOnScrollHandler(t){!this.disabled&&this.hideOnScroll&&this.scheduledHide(t,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case rb.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case rb.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case rb.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==rb.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(t,...e){for(const n of e)for(const e of Object.keys(n)){const s=n[e];void 0!==s&&(t[e]=s)}return t}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const t=this.popperContent;t.referenceObject=this.getRefElement(),this.setContentProperties(t),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(t){t.popperDisabled&&t.popperDisabled.currentValue&&this.hide(),t.content&&!t.content.firstChange&&"string"==typeof t.content.currentValue&&(this.popperContent.text=t.content.currentValue),t.applyClass&&!t.applyClass.firstChange&&"string"==typeof t.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=t.applyClass.currentValue),t.applyArrowClass&&!t.applyArrowClass.firstChange&&"string"==typeof t.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=t.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe&&t.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const t=this.popperContent,e=this.getRefElement();t.referenceObject!==e&&(t.referenceObject=e),this.setContentProperties(t),t.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())}scheduledShow(t=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},t))}scheduledHide(t=null,e=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const e=t?t.toElement:null,n=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!n||n===e||n.contains(e)||this.content.isMouseOver||(this.hide(),this.applyChanges())},e))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?t.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?t.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?t.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?t.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?t.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?t.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?t.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},t.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(t=>{t&&"function"==typeof t&&t()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const t=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(t),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=t.assignDefined(e.popperOptions,t.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(t){const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t?"visible"!==e&&"hidden"!==e&&t.scrollHeight>=t.clientHeight?t:this.getScrollParent(t.parentNode)||document:null}onPopperUpdate(t){this.popperOnUpdate.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(vo(Ja),vo(Wr),vo(ka),vo(Ta),vo(Ra),vo("popperDefaults"))},t.\u0275dir=be({type:t,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Ne]}),t.baseOptions={showDelay:0,placement:ob.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:rb.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},t})(),cb=(()=>{class t{ngDoBootstrap(){}static forRoot(e={}){return{ngModule:t,providers:[{provide:"popperDefaults",useValue:e}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[zh]]}),t})();function hb(t,e){1&t&&Io(0)}function ub(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",7),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,hb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" raised button"),wi(1),wo("ngTemplateOutlet",n)}}function db(t,e){1&t&&Io(0)}function pb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",9),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,db,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" stroked button"),wi(1),wo("ngTemplateOutlet",n)}}function fb(t,e){1&t&&Io(0)}function mb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",10),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,fb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" flat button"),wi(1),wo("ngTemplateOutlet",n)}}function gb(t,e){1&t&&Io(0)}function _b(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",11),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,gb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" icon button"),wi(1),wo("ngTemplateOutlet",n)}}function yb(t,e){1&t&&Io(0)}function bb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",12),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,yb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" fab button"),wi(1),wo("ngTemplateOutlet",n)}}function vb(t,e){1&t&&Io(0)}function wb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",13),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,vb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" mini fab button"),wi(1),wo("ngTemplateOutlet",n)}}function Eb(t,e){1&t&&Io(0)}function Cb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",14),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,Eb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup)),_o("aria-label",t.label+" unstyled button"),wi(1),wo("ngTemplateOutlet",n)}}function Sb(t,e){1&t&&Io(0)}function xb(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",15),Ro("click",(function(e){return on(t),No().emitClick(e)})),yo(2,Sb,1,0,"ng-container",8),So(),To()}if(2&t){const t=No(),e=bo(12),n=bo(10);wi(1),wo("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",e)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),_o("aria-label",t.label+" basic button"),wi(1),wo("ngTemplateOutlet",n)}}function kb(t,e){if(1&t&&(Co(0,"mat-icon",18),aa(1),So()),2&t){const t=No(2);wo("ngStyle",t.buttonIconStyle),wi(1),la(t.icon)}}function Tb(t,e){if(1&t&&(Co(0,"div"),aa(1),So()),2&t){const t=No(2);wi(1),la(t.label||"Button")}}function Ib(t,e){if(1&t&&(yo(0,kb,2,2,"mat-icon",16),yo(1,Tb,2,1,"div",17)),2&t){const t=No();wo("ngIf",t.icon),wi(1),wo("ngIf",!t.icon)}}function Ob(t,e){1&t&&xo(0,"img",19),2&t&&wo("lazyLoad",No().imgUrl)}function Ab(t,e){if(1&t&&(Co(0,"div"),aa(1),So()),2&t){const t=No();(function(t,e,n,s){const i=rn(),r=fn(2);i.firstUpdatePass&&Jo(i,null,r,s);const o=sn();if(n!==gi&&go(o,r,n)){const a=i.data[kn()+Se];if(oa(a,s)&&!Xo(i,r)){let t=a.stylesWithoutHost;null!==t&&(n=wt(t,n||"")),Eo(i,a,o,n,s)}else!function(t,e,n,s,i,r,o,a){i===gi&&(i=jo);let l=0,c=0,h=0<i.length?i[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const o=l<i.length?i[l+1]:void 0,d=c<r.length?r[c+1]:void 0;let p=null,f=void 0;h===u?(l+=2,c+=2,o!==d&&(p=u,f=d)):null===u||null!==h&&h<u?(l+=2,p=h):(c+=2,p=u,f=d),null!==p&&sa(t,e,n,s,p,f,!1,a),h=l<i.length?i[l]:null,u=c<r.length?r[c]:null}}(i,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return jo;const s=[],i=Ss(n);if(Array.isArray(i))for(let r=0;r<i.length;r++)t(s,i[r],!0);else if("object"==typeof i)for(const r in i)i.hasOwnProperty(r)&&t(s,r,i[r]);else"string"==typeof i&&e(s,i);return s}(t,e,n),0,r)}})(na,Yo,t.popup.style,!1),wi(1),la(t.popup.text)}}let Rb=(()=>{class t{emitClick(t){t.stopPropagation(),this.onClick()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,e){1&t&&(ko(0,0),yo(1,ub,3,7,"ng-container",1),yo(2,pb,3,7,"ng-container",1),yo(3,mb,3,7,"ng-container",1),yo(4,_b,3,7,"ng-container",1),yo(5,bb,3,7,"ng-container",1),yo(6,wb,3,7,"ng-container",1),yo(7,Cb,3,7,"ng-container",1),yo(8,xb,3,8,"ng-container",2),To(),yo(9,Ib,2,2,"ng-template",null,3,jl),Co(11,"popper-content",null,4),yo(13,Ob,1,1,"img",5),yo(14,Ab,2,3,"div",6),So()),2&t&&(wo("ngSwitch",e.view),wi(1),wo("ngSwitchCase","raised"),wi(1),wo("ngSwitchCase","stroked"),wi(1),wo("ngSwitchCase","flat"),wi(1),wo("ngSwitchCase","icon"),wi(1),wo("ngSwitchCase","fab"),wi(1),wo("ngSwitchCase","miniFab"),wi(1),wo("ngSwitchCase","unstyled"),wi(6),wo("ngIf",e.imgUrl),wi(1),wo("ngIf",e.popup))},directives:[Dh,Ph,Nh,ab,Ih,Tg,O_,Mh,lb,Fh,l_,X_],styles:[""]}),t})();class Db extends Q_{loadImage({imagePath:t}){return e=this,void 0,s=function*(){const e=yield fetch(t),n=yield e.blob();if(n.size)return URL.createObjectURL(n)},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}}let Pb=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=eh(Rb,{injector:this.injector});customElements.define("drayman-button",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(lo))},providers:[{provide:G_,useClass:Db},{provide:gm,useClass:D_}],imports:[[yu,rf,Ig,R_,c_,J_,cb.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),t})();function Nb(t,e=yf){var n;const s=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new Mb(s,e))}class Mb{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Fb(t,this.delay,this.scheduler))}}class Fb extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,s=t.scheduler,i=t.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const e=Math.max(0,n[0].time-s.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Fb.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Lb(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Bc.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Bc.createComplete()),this.unsubscribe()}}class Lb{constructor(t,e){this.time=t,this.notification=e}}const jb=["mat-menu-item",""],Hb=["*"];function Vb(t,e){if(1&t){const t=Oo();Co(0,"div",0),Ro("keydown",(function(e){return on(t),No()._handleKeydown(e)}))("click",(function(){return on(t),No().closed.emit("click")}))("@transformMenu.start",(function(e){return on(t),No()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return on(t),No()._onAnimationDone(e)})),Co(1,"div",1),Lo(2),So(),So()}if(2&t){const t=No();wo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),_o("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const Bb={transformMenu:wu("transformMenu",[ku("void",xu({opacity:0,transform:"scale(0.8)"})),Iu("void => enter",Cu([Ou(".mat-menu-content, .mat-mdc-menu-content",Eu("100ms linear",xu({opacity:1}))),Eu("120ms cubic-bezier(0, 0, 0.2, 1)",xu({transform:"scale(1)"}))])),Iu("* => void",Eu("100ms 25ms linear",xu({opacity:0})))]),fadeInItems:wu("fadeInItems",[ku("showing",xu({opacity:1})),Iu("void => *",[xu({opacity:0}),Eu("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},zb=new jt("MatMenuContent"),Ub=new jt("MAT_MENU_PANEL");class qb{}const $b=dg(hg(qb));let Wb=(()=>{class t extends $b{constructor(t,e,n,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=s,this.role="menuitem",this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!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)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}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()}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(rh),vo(Xm),vo(Ub,8))},t.\u0275cmp=pe({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&Ro("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(_o("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),Qo("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ua],attrs:jb,ngContentSelectors:Hb,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(Fo(),Lo(0),xo(1,"div",0)),2&t&&(wi(1),wo("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[vg],encapsulation:2,changeDetection:0}),t})();const Zb=new jt("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Kb=0,Qb=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new wl,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new bl,this.close=this.closed,this.panelId="mat-menu-panel-"+Kb++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=of(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=of(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Km(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Rf(this._directDescendantItems),Wc(t=>$(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Rf(this._directDescendantItems),Wc(t=>$(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:em(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Xf(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Rf(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(oc),vo(Zb))},t.\u0275dir=be({type:t,contentQueries:function(t,e,n){var s;1&t&&(Pl(n,zb,!0),Pl(n,Wb,!0),Pl(n,Wb,!1)),2&t&&(Al(s=Nl())&&(e.lazyContent=s.first),Al(s=Nl())&&(e._allItems=s),Al(s=Nl())&&(e.items=s))},viewQuery:function(t,e){var n;1&t&&Rl(Ga,!0),2&t&&Al(n=Nl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Yb=(()=>{class t extends Qb{}return t.\u0275fac=function(e){return Gb(e||t)},t.\u0275dir=be({type:t,features:[ua]}),t})();const Gb=ps(Yb);let Xb=(()=>{class t extends Yb{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(vo(Ta),vo(oc),vo(Zb))},t.\u0275cmp=pe({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Ca([{provide:Ub,useExisting:Yb},{provide:Yb,useExisting:t}]),ua],ngContentSelectors:Hb,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Fo(),yo(0,Vb,3,6,"ng-template"))},directives:[Sh],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Bb.transformMenu,Bb.fadeInItems]},changeDetection:0}),t})();const Jb=new jt("mat-menu-scroll-strategy"),tv={provide:Jb,deps:[Im],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},ev=Lf({passive:!0});let nv=(()=>{class t{constructor(t,e,n,s,i,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new bl,this.onMenuOpen=this.menuOpened,this.menuClosed=new bl,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,ev),r&&(r._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=s}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ev),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Yb&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof Yb?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Sf(t=>"void"===t.toState),Xf(1),Tf(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new cm({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,i]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[s,i],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===s?8:-8):this.menu.overlapTrigger||(r="top"===s?"bottom":"top",o="top"===i?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:s,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:i,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:i,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return $(t,this._parentMenu?this._parentMenu.closed:jc(),this._parentMenu?this._parentMenu._hovered().pipe(Sf(t=>t!==this._menuItemInstance),Sf(()=>this._menuOpen)):jc(),e)}_handleMousedown(t){Qm(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Sf(t=>t===this._menuItemInstance&&!t.disabled),Nb(0,_f)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yb&&this.menu._isAnimating?this.menu._animationDone.pipe(Xf(1),Nb(0,_f),Tf(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Zf(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(vo(Im),vo(Ta),vo(Ja),vo(Jb),vo(Yb,8),vo(Wb,10),vo(Hf,8),vo(Xm))},t.\u0275dir=be({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Ro("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&_o("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),sv=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[tv],imports:[cg]}),t})(),iv=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[tv],imports:[[zh,cg,wg,Am,sv],Uf,cg,sv]}),t})();const rv=["childMenu"];function ov(t,e){if(1&t&&(Co(0,"mat-icon"),aa(1),So()),2&t){const t=No(2).$implicit;wi(1),la(t.icon)}}function av(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",3),yo(2,ov,2,1,"mat-icon",2),Co(3,"span"),aa(4),So(),So(),Co(5,"drayman-menu-item-internal",4,5),Ro("itemClick",(function(e){return on(t),No(2).itemClick.emit(e)})),So(),To()}if(2&t){const t=bo(6),e=No().$implicit;wi(1),wo("disabled",e.disabled)("matMenuTriggerFor",t.childMenu),wi(1),wo("ngIf",e.icon),wi(2),la(e.label),wi(1),wo("items",e.items)}}function lv(t,e){if(1&t&&(Co(0,"mat-icon"),aa(1),So()),2&t){const t=No(2).$implicit;wi(1),la(t.icon)}}function cv(t,e){if(1&t){const t=Oo();ko(0),Co(1,"button",6),Ro("click",(function(){on(t);const e=No().$implicit;return No().itemClick.emit(e)})),yo(2,lv,2,1,"mat-icon",2),Co(3,"span"),aa(4),So(),So(),To()}if(2&t){const t=No().$implicit;wi(1),wo("disabled",t.disabled),wi(1),wo("ngIf",t.icon),wi(2),la(t.label)}}function hv(t,e){if(1&t&&(ko(0),yo(1,av,7,5,"ng-container",2),yo(2,cv,5,3,"ng-container",2),To()),2&t){const t=e.$implicit;wi(1),wo("ngIf",null==t.items?null:t.items.length),wi(1),wo("ngIf",!(null!=t.items&&t.items.length))}}let uv=(()=>{class t{constructor(){this.items=[],this.itemClick=new bl}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-menu-item-internal"]],viewQuery:function(t,e){var n,s;1&t&&(s=rv,!0,Dl(rn(),sn(),s,true,undefined,!0)),2&t&&Al(n=Nl())&&(e.childMenu=n.first)},inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:3,vars:1,consts:[["childMenu","matMenu"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""],["mat-menu-item","",3,"disabled","click"]],template:function(t,e){1&t&&(Co(0,"mat-menu",null,0),yo(2,hv,3,2,"ng-container",1),So()),2&t&&(wi(2),wo("ngForOf",e.items))},directives:[Xb,kh,Ih,Wb,nv,t,l_],styles:[""]}),t})(),dv=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-menu-internal"]],inputs:{items:"items",onItemClick:"onItemClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",buttonStyle:"buttonStyle"},decls:3,vars:9,consts:[[1,"trigger-btn",3,"label","view","icon","tooltip","disabled","imgUrl","buttonStyle","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""]],template:function(t,e){if(1&t&&(xo(0,"drayman-button-internal",0),Co(1,"drayman-menu-item-internal",1,2),Ro("itemClick",(function(t){return e.onItemClick(t)})),So()),2&t){const t=bo(2);wo("label",e.label)("view",e.view)("icon",e.icon)("tooltip",e.tooltip)("disabled",e.disabled)("imgUrl",e.imgUrl)("buttonStyle",e.buttonStyle)("matMenuTriggerFor",t.childMenu),wi(1),wo("items",e.items)}},directives:[Rb,nv,uv],styles:[".trigger-btn[_ngcontent-%COMP%]{display:block}"]}),t})(),pv=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=eh(dv,{injector:this.injector});customElements.define("drayman-menu",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Qt(lo))},providers:[{provide:gm,useClass:D_}],imports:[[yu,rf,Pb,iv,c_]]}),t})();(function(){if(Is)throw new Error("Cannot enable prod mode after platform setup.");Ts=!1})(),gu().bootstrapModule(pv).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"}});
|
|
1
|
+
(()=>{"use strict";function Yr(n){return"function"==typeof n}let Rl=!1;const Ut={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Rl&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Rl=n},get useDeprecatedSynchronousErrorHandling(){return Rl}};function Fi(n){setTimeout(()=>{throw n},0)}const ho={closed:!0,next(n){},error(n){if(Ut.useDeprecatedSynchronousErrorHandling)throw n;Fi(n)},complete(){}},Ni=Array.isArray||(n=>n&&"number"==typeof n.length);function kl(n){return null!==n&&"object"==typeof n}const fo=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class X{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof X)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Yr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof fo?Zh(o.errors):[o]}}if(Ni(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(kl(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof fo?e=e.concat(Zh(c.errors)):e.push(c)}}}if(e)throw new fo(e)}add(e){let t=e;if(!e)return X.EMPTY;switch(typeof e){case"function":t=new X(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof X)){const s=t;t=new X,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof X){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Zh(n){return n.reduce((e,t)=>e.concat(t instanceof fo?t.errors:t),[])}X.EMPTY=((n=new X).closed=!0,n);const po="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends X{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ho;break;case 1:if(!e){this.destination=ho;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Xh(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Xh(this,e,t,i)}}[po](){return this}static create(e,t,i){const r=new he(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Xh extends he{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Yr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==ho&&(o=Object.create(t),Yr(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ut.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=Ut;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Fi(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Fi(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ut.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),Ut.useDeprecatedSynchronousErrorHandling)throw i;Fi(i)}}__tryOrSetError(e,t,i){if(!Ut.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Ut.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Fi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qh(n){return n}let le=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function IE(n,e,t){if(n){if(n instanceof he)return n;if(n[po])return n[po]()}return n||e||t?new he(n,e,t):new he(ho)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Ut.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ut.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Ut.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function TE(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof he?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=ef(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Kr](){return this}pipe(...t){return 0===t.length?this:function Jh(n){return 0===n.length?Qh:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=ef(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function ef(n){if(n||(n=Ut.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ai=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class tf extends X{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class nf extends he{constructor(e){super(e),this.destination=e}}let de=(()=>{class n extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[po](){return new nf(this)}lift(t){const i=new rf(this,this);return i.operator=t,i}next(t){if(this.closed)throw new ai;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new ai;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new ai;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new ai;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new ai;return this.hasError?(t.error(this.thrownError),X.EMPTY):this.isStopped?(t.complete(),X.EMPTY):(this.observers.push(t),new tf(this,t))}asObservable(){const t=new le;return t.source=this,t}}return n.create=(e,t)=>new rf(e,t),n})();class rf extends de{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):X.EMPTY}}function Li(n){return n&&"function"==typeof n.schedule}function He(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new xE(n,e))}}class xE{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new AE(e,this.project,this.thisArg))}}class AE extends he{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const sf=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},mo=function RE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),af=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function lf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Pl=n=>{if(n&&"function"==typeof n[Kr])return(n=>e=>{const t=n[Kr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(af(n))return sf(n);if(lf(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Fi),e))(n);if(n&&"function"==typeof n[mo])return(n=>e=>{const t=n[mo]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${kl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Fl(n,e){return new le(t=>{const i=new X;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Nl(n,e){return e?function HE(n,e){if(null!=n){if(function BE(n){return n&&"function"==typeof n[Kr]}(n))return function FE(n,e){return new le(t=>{const i=new X;return i.add(e.schedule(()=>{const r=n[Kr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(lf(n))return function NE(n,e){return new le(t=>{const i=new X;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(af(n))return Fl(n,e);if(function VE(n){return n&&"function"==typeof n[mo]}(n)||"string"==typeof n)return function LE(n,e){if(!n)throw new Error("Iterable cannot be null");return new le(t=>{const i=new X;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[mo](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof le?n:new le(Pl(n))}class Zr extends he{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Xr extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Qr(n,e){if(!e.closed)return n instanceof le?n.subscribe(e):Pl(n)(e)}function go(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(go((r,s)=>Nl(n(r,s)).pipe(He((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new jE(n,t)))}class jE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new $E(e,this.project,this.concurrent))}}class $E extends Xr{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Zr(this),i=this.destination;i.add(t);const r=Qr(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function cf(n=Number.POSITIVE_INFINITY){return go(Qh,n)}function Ll(n,e){return e?Fl(n,e):new le(sf(n))}function Bi(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Li(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof le?n[0]:cf(e)(Ll(n,t))}function uf(){return function(e){return e.lift(new UE(e))}}class UE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new zE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class zE extends he{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class WE extends le{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new X,e.add(this.source.subscribe(new qE(this.getSubject(),this))),e.closed&&(this._connection=null,e=X.EMPTY)),e}refCount(){return uf()(this)}}const GE=(()=>{const n=WE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class qE extends nf{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class ZE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function XE(){return new de}function df(){return n=>uf()(function KE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new ZE(r,e));const s=Object.create(i,GE);return s.source=i,s.subjectFactory=r,s}}(XE)(n))}function oe(n){for(let e in n)if(n[e]===oe)return e;throw Error("Could not find renamed property on target object.")}function Bl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ne(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ne).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Vl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const QE=oe({__forward_ref__:oe});function Hl(n){return n.__forward_ref__=Hl,n.toString=function(){return ne(this())},n}function $(n){return hf(n)?n():n}function hf(n){return"function"==typeof n&&n.hasOwnProperty(QE)&&n.__forward_ref__===Hl}class S extends Error{constructor(e,t){super(function jl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function N(n){return"string"==typeof n?n:null==n?"":String(n)}function Ue(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():N(n)}function _o(n,e){const t=e?` in ${e}`:"";throw new S(-201,`No provider for ${Ue(n)} found${t}`)}function pt(n,e){null==n&&function ie(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function me(n){return{providers:n.providers||[],imports:n.imports||[]}}function $l(n){return ff(n,yo)||ff(n,mf)}function ff(n,e){return n.hasOwnProperty(e)?n[e]:null}function pf(n){return n&&(n.hasOwnProperty(Ul)||n.hasOwnProperty(sD))?n[Ul]:null}const yo=oe({\u0275prov:oe}),Ul=oe({\u0275inj:oe}),mf=oe({ngInjectableDef:oe}),sD=oe({ngInjectorDef:oe});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let zl;function jn(n){const e=zl;return zl=n,e}function gf(n,e,t){const i=$l(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&V.Optional?null:void 0!==e?e:void _o(ne(n),"Injector")}function $n(n){return{toString:n}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),Wt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Wt||(Wt={})),Wt))();const aD="undefined"!=typeof globalThis&&globalThis,lD="undefined"!=typeof window&&window,cD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=aD||"undefined"!=typeof global&&global||lD||cD,Vi={},ae=[],vo=oe({\u0275cmp:oe}),Wl=oe({\u0275dir:oe}),Gl=oe({\u0275pipe:oe}),_f=oe({\u0275mod:oe}),Cn=oe({\u0275fac:oe}),Jr=oe({__NG_ELEMENT_ID__:oe});let uD=0;function Gt(n){return $n(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Wt.Emulated,id:"c",styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=uD++,i.inputs=wf(n.inputs,t),i.outputs=wf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(yf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(vf):null,i})}function yf(n){return ze(n)||function Un(n){return n[Wl]||null}(n)}function vf(n){return function li(n){return n[Gl]||null}(n)}const bf={};function be(n){return $n(()=>{const e={type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(bf[n.id]=n.type),e})}function wf(n,e){if(null==n)return Vi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Ce=Gt;function at(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ze(n){return n[vo]||null}function At(n,e){const t=n[_f]||null;if(!t&&!0===e)throw new Error(`Type ${ne(n)} does not have '\u0275mod' property.`);return t}const j=11;function an(n){return Array.isArray(n)&&"object"==typeof n[1]}function Yt(n){return Array.isArray(n)&&!0===n[1]}function Kl(n){return 0!=(8&n.flags)}function Do(n){return 2==(2&n.flags)}function Co(n){return 1==(1&n.flags)}function Kt(n){return null!==n.template}function gD(n){return 0!=(512&n[2])}function hi(n,e){return n.hasOwnProperty(Cn)?n[Cn]:null}class Df{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Cf}function Cf(n){return n.type.prototype.ngOnChanges&&(n.setInput=bD),vD}function vD(){const n=Mf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Vi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function bD(n,e,t,i){const r=Mf(n)||function wD(n,e){return n[Sf]=e}(n,{previous:Vi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Df(l&&l.currentValue,e,o===Vi),n[i]=e}zi.ngInherit=!0;const Sf="__ngSimpleChanges__";function Mf(n){return n[Sf]||null}let ec;function tc(){return void 0!==ec?ec:"undefined"!=typeof document?document:void 0}function Ee(n){return!!n.listen}const Tf={createRenderer:(n,e)=>tc()};function Te(n){for(;Array.isArray(n);)n=n[0];return n}function So(n,e){return Te(e[n])}function gt(n,e){return Te(e[n.index])}function nc(n,e){return n.data[e]}function Wi(n,e){return n[e]}function _t(n,e){const t=e[n];return an(t)?t:t[0]}function If(n){return 4==(4&n[2])}function ic(n){return 128==(128&n[2])}function zn(n,e){return null==e?null:n[e]}function xf(n){n[18]=0}function rc(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:Bf(null),bindingsEnabled:!0};function Of(){return L.bindingsEnabled}function b(){return L.lFrame.lView}function K(){return L.lFrame.tView}function Qe(n){return L.lFrame.contextLView=n,n[8]}function ke(){let n=Rf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Rf(){return L.lFrame.currentTNode}function ln(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function sc(){return L.lFrame.isParent}function oc(){L.lFrame.isParent=!1}function Gi(){return L.lFrame.bindingIndex++}function Mn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function BD(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,ac(e)}function ac(n){L.lFrame.currentDirectiveIndex=n}function Ff(){return L.lFrame.currentQueryIndex}function cc(n){L.lFrame.currentQueryIndex=n}function HD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Nf(n,e,t){if(t&V.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&V.Host||(r=HD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=L.lFrame=Lf();return i.currentTNode=e,i.lView=n,!0}function To(n){const e=Lf(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Lf(){const n=L.lFrame,e=null===n?null:n.child;return null===e?Bf(n):e}function Bf(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Vf(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Hf=Vf;function Io(){const n=Vf();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function et(){return L.lFrame.selectedIndex}function Wn(n){L.lFrame.selectedIndex=n}function ge(){const n=L.lFrame;return nc(n.tView,n.selectedIndex)}function xo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Ao(n,e,t){$f(n,e,3,t)}function Oo(n,e,t,i){(3&n[2])===t&&$f(n,e,t,i)}function uc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function $f(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(YD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function YD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class rs{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Ro(n,e,t){const i=Ee(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];hc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Uf(n){return 3===n||4===n||6===n}function hc(n){return 64===n.charCodeAt(0)}function ko(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||zf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function zf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Wf(n){return-1!==n}function qi(n){return 32767&n}function Yi(n,e){let t=function JD(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let fc=!0;function Po(n){const e=fc;return fc=n,e}let eC=0;function os(n,e){const t=mc(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,pc(i.data,n),pc(e,null),pc(i.blueprint,null));const r=Fo(n,e),s=n.injectorIndex;if(Wf(r)){const o=qi(r),a=Yi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function pc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function mc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Fo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function No(n,e,t){!function tC(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Jr)&&(i=t[Jr]),null==i&&(i=t[Jr]=eC++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Yf(n,e,t){if(t&V.Optional)return n;_o(e,"NodeInjector")}function Kf(n,e,t,i){if(t&V.Optional&&void 0===i&&(i=null),0==(t&(V.Self|V.Host))){const r=n[9],s=jn(void 0);try{return r?r.get(e,i,t&V.Optional):gf(e,i,t&V.Optional)}finally{jn(s)}}return Yf(i,e,t)}function Zf(n,e,t,i=V.Default,r){if(null!==n){const s=function sC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Jr)?n[Jr]:void 0;return"number"==typeof e?e>=0?255&e:iC:e}(t);if("function"==typeof s){if(!Nf(e,n,i))return i&V.Host?Yf(r,t,i):Kf(e,t,i,r);try{const o=s(i);if(null!=o||i&V.Optional)return o;_o(t)}finally{Hf()}}else if("number"==typeof s){let o=null,a=mc(n,e),l=-1,c=i&V.Host?e[16][6]:null;for((-1===a||i&V.SkipSelf)&&(l=-1===a?Fo(n,e):e[a+8],-1!==l&&Jf(i,!1)?(o=e[1],a=qi(l),e=Yi(l,e)):a=-1);-1!==a;){const u=e[1];if(Qf(s,a,u.data)){const d=rC(a,e,t,o,i,c);if(d!==Xf)return d}l=e[a+8],-1!==l&&Jf(i,e[1].data[a+8]===c)&&Qf(s,a,e)?(o=u,a=qi(l),e=Yi(l,e)):a=-1}}}return Kf(e,t,i,r)}const Xf={};function iC(){return new Ki(ke(),b())}function rC(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Lo(a,o,t,null==i?Do(a)&&fc:i!=o&&0!=(3&a.type),r&V.Host&&s===a);return null!==u?as(e,o,u,a):Xf}function Lo(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Kt(f)&&f.type===t)return l}return null}function as(n,e,t,i){let r=n[t];const s=e.data;if(function KD(n){return n instanceof rs}(r)){const o=r;o.resolving&&function JE(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new S(-200,`Circular dependency in DI detected for ${n}${t}`)}(Ue(s[t]));const a=Po(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?jn(o.injectImpl):null;Nf(n,i,V.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function qD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=Cf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&jn(l),Po(a),o.resolving=!1,Hf()}}return r}function Qf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Jf(n,e){return!(n&V.Self||n&V.Host&&e)}class Ki{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Zf(this._tNode,this._lView,e,i,t)}}function gc(n){return hf(n)?()=>{const e=gc($(n));return e&&e()}:hi(n)}const Xi="__parameters__";function Ji(n,e,t){return $n(()=>{const i=function _c(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Xi)?l[Xi]:Object.defineProperty(l,Xi,{value:[]})[Xi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function kt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),kt(i,e)):e!==n&&e.push(i)}return e}function cn(n,e){n.forEach(t=>Array.isArray(t)?cn(t,e):e(t))}function np(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Vo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function us(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function yt(n,e,t){let i=er(n,e);return i>=0?n[1|i]=t:(i=~i,function cC(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function vc(n,e){const t=er(n,e);if(t>=0)return n[1|t]}function er(n,e){return function sp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const ds={},wc="__NG_DI_FLAG__",jo="ngTempTokenPath",gC=/\n/gm,ap="__source",yC=oe({provide:String,useValue:oe});let hs;function lp(n){const e=hs;return hs=n,e}function vC(n,e=V.Default){if(void 0===hs)throw new S(203,"");return null===hs?gf(n,void 0,e):hs.get(n,e&V.Optional?null:void 0,e)}function y(n,e=V.Default){return(function oD(){return zl}()||vC)($(n),e)}const $o=y;function Ec(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,"");let r,s=V.Default;for(let o=0;o<i.length;o++){const a=i[o],l=bC(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(y(r,s))}else e.push(y(i))}return e}function fs(n,e){return n[wc]=e,n.prototype[wc]=e,n}function bC(n){return n[wc]}const fi=fs(Ji("Optional"),8),ps=fs(Ji("SkipSelf"),4);var vt=(()=>((vt=vt||{})[vt.Important=1]="Important",vt[vt.DashCase=2]="DashCase",vt))();const gp="__ngContext__";function Ye(n,e){n[gp]=e}function Mc(n){const e=function gs(n){return n[gp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Ic(n,e){return undefined(n,e)}function _s(n){const e=n[3];return Yt(e)?e[3]:e}function xc(n){return Dp(n[13])}function Ac(n){return Dp(n[4])}function Dp(n){for(;null!==n&&!Yt(n);)n=n[4];return n}function nr(n,e,t,i,r){if(null!=i){let s,o=!1;Yt(i)?s=i:an(i)&&(o=!0,i=i[0]);const a=Te(i);0===n&&null!==t?null==r?xp(e,t,a):pi(e,t,a,r||null,!0):1===n&&null!==t?pi(e,t,a,r||null,!0):2===n?function Lc(n,e,t){const i=zo(n,e);i&&function XC(n,e,t,i){Ee(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function e0(n,e,t,i,r){const s=t[7];s!==Te(t)&&nr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ys(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Rc(n,e,t){if(Ee(n))return n.createElement(e,t);{const i=null!==t?function SD(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function Sp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,rc(r,-1)),t.splice(i,1)}function kc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Sp(r,i),e>0&&(n[t-1][4]=i[4]);const s=Vo(n,10+e);!function UC(n,e){ys(n,e,e[j],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Mp(n,e){if(!(256&e[2])){const t=e[j];Ee(t)&&t.destroyNode&&ys(n,e,t,3,null,null),function GC(n){let e=n[13];if(!e)return Pc(n[1],n);for(;e;){let t=null;if(an(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)an(e)&&Pc(e[1],e),e=e[3];null===e&&(e=n),an(e)&&Pc(e[1],e),t=e&&e[4]}e=t}}(e)}}function Pc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function ZC(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof rs)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function KC(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Te(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Ee(e[j])&&e[j].destroy();const t=e[17];if(null!==t&&Yt(e[3])){t!==e[3]&&Sp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Tp(n,e,t){return function Ip(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Wt.None||r===Wt.Emulated)return null}return gt(i,t)}(n,e.parent,t)}function pi(n,e,t,i,r){Ee(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function xp(n,e,t){Ee(n)?n.appendChild(e,t):e.appendChild(t)}function Ap(n,e,t,i,r){null!==i?pi(n,e,t,i,r):xp(n,e,t)}function zo(n,e){return Ee(n)?n.parentNode(e):e.parentNode}function Op(n,e,t){return kp(n,e,t)}let qo,Yo,kp=function Rp(n,e,t){return 40&n.type?gt(n,t):null};function Wo(n,e,t,i){const r=Tp(n,i,e),s=e[j],a=Op(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Ap(s,r,t[l],a,!1);else Ap(s,r,t,a,!1)}function Go(n,e){if(null!==e){const t=e.type;if(3&t)return gt(e,n);if(4&t)return Nc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Go(n,i);{const r=n[e.index];return Yt(r)?Nc(-1,r):Te(r)}}if(32&t)return Ic(e,n)()||Te(n[e.index]);{const i=Fp(n,e);return null!==i?Array.isArray(i)?i[0]:Go(_s(n[16]),i):Go(n,e.next)}}return null}function Fp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Nc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Go(i,r)}return e[7]}function Bc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Ye(Te(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Bc(n,e,t.child,i,r,s,!1),nr(e,n,r,a,s);else if(32&l){const c=Ic(t,i);let u;for(;u=c();)nr(e,n,r,u,s);nr(e,n,r,a,s)}else 16&l?Np(n,e,i,t,r,s):nr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ys(n,e,t,i,r,s){Bc(t,i,n.firstChild,e,r,s,!1)}function Np(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)nr(e,n,r,l[c],s);else Bc(n,e,l,o[3],r,s,!0)}function Lp(n,e,t){Ee(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Vc(n,e,t){Ee(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function mi(n){var e;return(null===(e=function Hc(){if(void 0===qo&&(qo=null,se.trustedTypes))try{qo=se.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return qo}())||void 0===e?void 0:e.createHTML(n))||n}function Bp(n){var e;return(null===(e=function jc(){if(void 0===Yo&&(Yo=null,se.trustedTypes))try{Yo=se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Yo}())||void 0===e?void 0:e.createHTML(n))||n}class gi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class o0 extends gi{getTypeName(){return"HTML"}}class a0 extends gi{getTypeName(){return"Style"}}class l0 extends gi{getTypeName(){return"Script"}}class c0 extends gi{getTypeName(){return"URL"}}class u0 extends gi{getTypeName(){return"ResourceURL"}}function bt(n){return n instanceof gi?n.changingThisBreaksApplicationSecurity:n}function un(n,e){const t=jp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function jp(n){return n instanceof gi&&n.getTypeName()||null}class g0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(mi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class _0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=mi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=mi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const v0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,b0=/^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 vs(n){return(n=String(n)).match(v0)||n.match(b0)?n:"unsafe:"+n}function Up(n){return(n=String(n)).split(",").map(e=>vs(e.trim())).join(", ")}function dn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function bs(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const zp=dn("area,br,col,hr,img,wbr"),Wp=dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gp=dn("rp,rt"),$c=bs(zp,bs(Wp,dn("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")),bs(Gp,dn("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")),bs(Gp,Wp)),Uc=dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zc=dn("srcset"),qp=bs(Uc,zc,dn("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"),dn("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")),w0=dn("script,style,template");class E0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!$c.hasOwnProperty(t))return this.sanitizedSomething=!0,!w0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!qp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Uc[a]&&(l=vs(l)),zc[a]&&(l=Up(l)),this.buf.push(" ",o,'="',Yp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();$c.hasOwnProperty(t)&&!zp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Yp(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const D0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C0=/([^\#-~ |!])/g;function Yp(n){return n.replace(/&/g,"&").replace(D0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(C0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ko;function Kp(n,e){let t=null;try{Ko=Ko||function $p(n){const e=new _0(n);return function y0(){try{return!!(new window.DOMParser).parseFromString(mi(""),"text/html")}catch(n){return!1}}()?new g0(e):e}(n);let i=e?String(e):"";t=Ko.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Ko.getInertBodyElement(i)}while(i!==s);return mi((new E0).sanitizeChildren(Wc(t)||t))}finally{if(t){const i=Wc(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wc(n){return"content"in n&&function S0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ee=(()=>((ee=ee||{})[ee.NONE=0]="NONE",ee[ee.HTML=1]="HTML",ee[ee.STYLE=2]="STYLE",ee[ee.SCRIPT=3]="SCRIPT",ee[ee.URL=4]="URL",ee[ee.RESOURCE_URL=5]="RESOURCE_URL",ee))();function Zp(n){const e=function ws(){const n=b();return n&&n[12]}();return e?Bp(e.sanitize(ee.HTML,n)||""):un(n,"HTML")?Bp(bt(n)):Kp(tc(),N(n))}function qc(n){return n.ngOriginalError}function F0(n,...e){n.error(...e)}class qn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function P0(n){return n&&n.ngErrorLogger||F0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&qc(e);for(;t&&qc(t);)t=qc(t);return t||null}}const $0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function hn(n){return n instanceof Function?n():n}function em(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const tm="ng-template";function G0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==em(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function nm(n){return 4===n.type&&n.value!==tm}function q0(n,e,t){return e===(4!==n.type||t?n.value:tm)}function Y0(n,e,t){let i=4;const r=n.attrs||[],s=function X0(n){for(let e=0;e<n.length;e++)if(Uf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!q0(n,l,t)||""===l&&1===e.length){if(Zt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!G0(n.attrs,c,t)){if(Zt(i))return!1;o=!0}continue}const d=K0(8&i?"class":l,r,nm(n),t);if(-1===d){if(Zt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==em(f,c,0)||2&i&&c!==h){if(Zt(i))return!1;o=!0}}}}else{if(!o&&!Zt(i)&&!Zt(l))return!1;if(o&&Zt(l))continue;o=!1,i=l|1&i}}return Zt(i)||o}function Zt(n){return 0==(1&n)}function K0(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function Q0(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function im(n,e,t=!1){for(let i=0;i<e.length;i++)if(Y0(n,e[i],t))return!0;return!1}function J0(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function rm(n,e){return n?":not("+e.trim()+")":e}function eS(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Zt(o)&&(e+=rm(s,r),r=""),i=o,s=s||!Zt(i);t++}return""!==r&&(e+=rm(s,r)),e}const B={};function k(n){sm(K(),b(),et()+n,!1)}function sm(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Ao(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Oo(e,s,0,t)}Wn(t)}function Zo(n,e){return n<<17|e<<2}function Xt(n){return n>>17&32767}function Yc(n){return 2|n}function Tn(n){return(131068&n)>>2}function Kc(n,e){return-131069&n|e<<2}function Zc(n){return 1|n}function gm(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];cc(r),o.contentQueries(2,e[s],s)}}}function Es(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,xf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[j]=a||n&&n[j],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function rr(n,e,t,i,r){let s=n.data[e];if(null===s)s=function su(n,e,t,i,r){const s=Rf(),o=sc(),l=n.data[e]=function yS(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function LD(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function is(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return ln(s,!0),s}function sr(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function Ds(n,e,t){To(e);try{const i=n.viewQuery;null!==i&&pu(1,i,t);const r=n.template;null!==r&&_m(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&gm(n,e),n.staticViewQueries&&pu(2,n.viewQuery,t);const s=n.components;null!==s&&function mS(n,e){for(let t=0;t<e.length;t++)NS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Io()}}function or(n,e,t,i){const r=e[2];if(256!=(256&r)){To(e);try{xf(e),function kf(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&_m(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Ao(e,c,null)}else{const c=n.preOrderHooks;null!==c&&Oo(e,c,0,null),uc(e,0)}if(function PS(n){for(let e=xc(n);null!==e;e=Ac(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&rc(s,1),r[2]|=1024}}}(e),function kS(n){for(let e=xc(n);null!==e;e=Ac(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];ic(i)&&or(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&gm(n,e),o){const c=n.contentCheckHooks;null!==c&&Ao(e,c)}else{const c=n.contentHooks;null!==c&&Oo(e,c,1),uc(e,1)}!function fS(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Wn(~r);else{const s=r,o=t[++i],a=t[++i];BD(o,s),a(2,e[s])}}}finally{Wn(-1)}}(n,e);const a=n.components;null!==a&&function pS(n,e){for(let t=0;t<e.length;t++)FS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&pu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Ao(e,c)}else{const c=n.viewHooks;null!==c&&Oo(e,c,2),uc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,rc(e[3],-1))}finally{Io()}}}function gS(n,e,t,i){const r=e[10],o=If(e);try{!o&&r.begin&&r.begin(),o&&Ds(n,e,i),or(n,e,t,i)}finally{!o&&r.end&&r.end()}}function _m(n,e,t,i,r){const s=et(),o=2&i;try{Wn(-1),o&&e.length>20&&sm(n,e,20,!1),t(i,r)}finally{Wn(s)}}function ym(n,e,t){if(Kl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function ou(n,e,t){!Of()||(function SS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||os(t,e),Ye(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Kt(l);c&&AS(e,t,l);const u=as(e,n,a,t);Ye(u,e),null!==o&&OS(0,a-r,u,l,0,o),c&&(_t(t.index,e)[8]=u)}}(n,e,t,gt(t,e)),128==(128&t.flags)&&function MS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function VD(){return L.lFrame.currentDirectiveIndex}();try{Wn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];ac(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Mm(c,u)}}finally{Wn(-1),ac(a)}}(n,e,t))}function au(n,e,t=gt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function vm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Jo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Jo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function _S(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:B);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Em(n,e,t,i){const r=Rm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&km(n).push(i,r.length-1))}function Dm(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function lu(n,e,t,i){let r=!1;if(Of()){const s=function TS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];im(t,o.selectors,!1)&&(r||(r=[]),No(os(t,e),n,o.type),Kt(o)?(Tm(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Im(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=sr(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=ko(t.mergedAttrs,d.hostAttrs),xm(n,t,e,c,d),xS(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function vS(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||nm(e)?null:RS(d,s);o.push(h),a=Dm(d,c,a),l=Dm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function IS(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new S(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=ko(t.mergedAttrs,t.attrs),r}function Sm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function CS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Mm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Tm(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function xS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Kt(e)&&(t[""]=n)}}function Im(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function xm(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=hi(r.type)),o=new rs(s,Kt(r),null);n.blueprint[i]=o,t[i]=o,Sm(n,e,0,i,sr(n,t,r.hostVars,B),r)}function AS(n,e,t){const i=gt(e,n),r=vm(t),s=n[10],o=ea(n,Es(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function fn(n,e,t,i,r,s){const o=gt(n,e);!function cu(n,e,t,i,r,s,o){if(null==s)Ee(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?N(s):o(s,i||"",r);Ee(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[j],o,s,n.value,t,i,r)}function OS(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function RS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function Am(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function FS(n,e){const t=_t(e,n);if(ic(t)){const i=t[1];80&t[2]?or(i,t,i.template,t[8]):t[5]>0&&uu(t)}}function uu(n){for(let i=xc(n);null!==i;i=Ac(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];or(o,s,o.template,s[8])}else s[5]>0&&uu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=_t(t[i],n);ic(r)&&r[5]>0&&uu(r)}}function NS(n,e){const t=_t(e,n),i=t[1];(function LS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),Ds(i,t,t[8])}function ea(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function du(n){for(;n;){n[2]|=64;const e=_s(n);if(gD(n)&&!e)return n;n=e}return null}function Om(n){!function hu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=Mc(t),r=i[1];gS(r,i,r.template,t)}}(n[8])}function pu(n,e,t){cc(0),e(n,t)}const VS=(()=>Promise.resolve(null))();function Rm(n){return n[7]||(n[7]=[])}function km(n){return n.cleanup||(n.cleanup=[])}function Fm(n,e){const t=n[9],i=t?t.get(qn,null):null;i&&i.handleError(e)}function Nm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function In(n,e,t){const i=So(e,n);!function Cp(n,e,t){Ee(n)?n.setValue(e,t):e.textContent=t}(n[j],i,t)}function ta(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Vl(r,a):2==s&&(i=Vl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const mu=new I("INJECTOR",-1);class Lm{get(e,t=ds){if(t===ds){const i=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw i.name="NullInjectorError",i}return t}}const gu=new I("Set Injector scope."),Cs={},$S={};let _u;function Bm(){return void 0===_u&&(_u=new Lm),_u}function Vm(n,e=null,t=null,i){const r=Hm(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Hm(n,e=null,t=null,i){return new US(n,t,e||Bm(),i)}class US{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&cn(t,a=>this.processProvider(a,e,t)),cn([e],a=>this.processInjectorType(a,[],s)),this.records.set(mu,ar(void 0,this));const o=this.records.get(gu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ne(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ds,i=V.Default){this.assertNotDestroyed();const r=lp(this),s=jn(void 0);try{if(!(i&V.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function XS(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(e)&&$l(e);a=l&&this.injectableDefInScope(l)?ar(yu(e),Cs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&V.Self?Bm():this.parent).get(e,t=i&V.Optional&&t===ds?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[jo]=o[jo]||[]).unshift(ne(e)),r)throw o;return function wC(n,e,t,i){const r=n[jo];throw e[ap]&&r.unshift(e[ap]),n.message=function EC(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ne(e);if(Array.isArray(e))r=e.map(ne).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ne(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(gC,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[jo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{jn(s),lp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ne(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=pf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=pf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{cn(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];cn(f,p=>this.processProvider(p,h,f||ae))}}this.injectorDefTypes.add(o);const l=hi(o)||(()=>new o);this.records.set(o,ar(l,Cs));const c=r.providers;if(null!=c&&!a){const u=e;cn(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=lr(e=$(e))?e:$(e&&e.provide);const s=function WS(n,e,t){return $m(n)?ar(void 0,n.useValue):ar(jm(n),Cs)}(e);if(lr(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=ar(void 0,Cs,!0),o.factory=()=>Ec(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Cs&&(t.value=$S,t.value=t.factory()),"object"==typeof t.value&&t.value&&function ZS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function yu(n){const e=$l(n),t=null!==e?e.factory:hi(n);if(null!==t)return t;if(n instanceof I)throw new S(204,!1);if(n instanceof Function)return function zS(n){const e=n.length;if(e>0)throw us(e,"?"),new S(204,!1);const t=function iD(n){const e=n&&(n[yo]||n[mf]);if(e){const t=function rD(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new S(204,!1)}function jm(n,e,t){let i;if(lr(n)){const r=$(n);return hi(r)||yu(r)}if($m(n))i=()=>$(n.useValue);else if(function qS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Ec(n.deps||[]));else if(function GS(n){return!(!n||!n.useExisting)}(n))i=()=>y($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function KS(n){return!!n.deps}(n))return hi(r)||yu(r);i=()=>new r(...Ec(n.deps))}return i}function ar(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function $m(n){return null!==n&&"object"==typeof n&&yC in n}function lr(n){return"function"==typeof n}let Ke=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Vm({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Vm({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ds,n.NULL=new Lm,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>y(mu)}),n.__NG_ELEMENT_ID__=-1,n})();function sM(n,e){xo(Mc(n)[1],ke())}function xn(n){let e=function eg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Kt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=wu(n.inputs),o.declaredInputs=wu(n.declaredInputs),o.outputs=wu(n.outputs);const a=r.hostBindings;a&&cM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&aM(n,l),c&&lM(n,c),Bl(n.inputs,r.inputs),Bl(n.declaredInputs,r.declaredInputs),Bl(n.outputs,r.outputs),Kt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===xn&&(t=!1)}}e=Object.getPrototypeOf(e)}!function oM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,t=ko(t,r.hostAttrs))}}(i)}function wu(n){return n===Vi?{}:n===ae?[]:n}function aM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function lM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function cM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let na=null;function cr(){if(!na){const n=se.Symbol;if(n&&n.iterator)na=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(na=i)}}}return na}function Ss(n){return!!Eu(n)&&(Array.isArray(n)||!(n instanceof Map)&&cr()in n)}function Eu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ze(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function We(n,e,t,i){const r=b();return Ze(r,Gi(),e)&&(K(),fn(ge(),r,n,e,t,i)),We}function te(n,e,t,i,r,s,o,a){const l=b(),c=K(),u=n+20,d=c.firstCreatePass?function gM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=rr(e,n,4,o||null,zn(c,a));lu(e,t,u,zn(c,l)),xo(e,u);const d=u.tViews=Jo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];ln(d,!1);const h=l[j].createComment("");Wo(c,l,h,d),Ye(h,l),ea(l,l[u]=Am(h,l,h,d)),Co(d)&&ou(c,l,d),null!=o&&au(l,d,a)}function Fe(n){return Wi(function ND(){return L.lFrame.contextLView}(),20+n)}function w(n,e=V.Default){const t=b();return null===t?y(n,e):Zf(ke(),t,$(n),e)}function O(n,e,t){const i=b();return Ze(i,Gi(),e)&&function wt(n,e,t,i,r,s,o,a){const l=gt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Nm(n,t,u,i,r),Do(e)&&function wS(n,e){const t=_t(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function bS(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Ee(s)?s.setProperty(l,i,r):hc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(K(),ge(),i,n,e,i[j],t,!1),O}function Tu(n,e,t,i,r){const o=r?"class":"style";Nm(n,t,e.inputs[o],o,i)}function Q(n,e,t,i){const r=b(),s=K(),o=20+n,a=r[j],l=r[o]=Rc(a,e,function GD(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function LM(n,e,t,i,r,s,o){const a=e.consts,c=rr(e,n,2,r,zn(a,s));return lu(e,t,c,zn(a,o)),null!==c.attrs&&ta(c,c.attrs,!1),null!==c.mergedAttrs&&ta(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];ln(c,!0);const u=c.mergedAttrs;null!==u&&Ro(a,l,u);const d=c.classes;null!==d&&Vc(a,l,d);const h=c.styles;return null!==h&&Lp(a,l,h),64!=(64&c.flags)&&Wo(s,r,l,c),0===function OD(){return L.lFrame.elementDepthCount}()&&Ye(l,r),function RD(){L.lFrame.elementDepthCount++}(),Co(c)&&(ou(s,r,c),ym(s,c,r)),null!==i&&au(r,c),Q}function re(){let n=ke();sc()?oc():(n=n.parent,ln(n,!1));const e=n;!function kD(){L.lFrame.elementDepthCount--}();const t=K();return t.firstCreatePass&&(xo(t,n),Kl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function XD(n){return 0!=(16&n.flags)}(e)&&Tu(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function QD(n){return 0!=(32&n.flags)}(e)&&Tu(t,e,b(),e.stylesWithoutHost,!1),re}function Zn(n,e,t,i){return Q(n,e,t,i),re(),Zn}function nt(n,e,t){const i=b(),r=K(),s=n+20,o=r.firstCreatePass?function BM(n,e,t,i,r){const s=e.consts,o=zn(s,i),a=rr(e,n,8,"ng-container",o);return null!==o&&ta(a,o,!0),lu(e,t,a,zn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];ln(o,!0);const a=i[s]=i[j].createComment("");return Wo(r,i,a,o),Ye(a,i),Co(o)&&(ou(r,i,o),ym(r,o,i)),null!=t&&au(i,o),nt}function it(){let n=ke();const e=K();return sc()?oc():(n=n.parent,ln(n,!1)),e.firstCreatePass&&(xo(e,n),Kl(n)&&e.queries.elementEnd(n)),it}function mn(n,e,t){return nt(n,e,t),it(),mn}function Ft(){return b()}function Iu(n){return!!n&&"function"==typeof n.then}function wg(n){return!!n&&"function"==typeof n.subscribe}const VM=wg;function Ne(n,e,t,i){const r=b(),s=K(),o=ke();return function Dg(n,e,t,i,r,s,o,a){const l=Co(i),u=n.firstCreatePass&&km(n),d=e[8],h=Rm(e);let f=!0;if(3&i.type||a){const _=gt(i,e),v=a?a(_):_,g=h.length,E=a?T=>a(Te(T[i.index])):i.index;if(Ee(t)){let T=null;if(!a&&l&&(T=function HM(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=xu(i,e,d,s,!1);const H=t.listen(v,r,s);h.push(s,H),u&&u.push(r,E,g,g+1)}}else s=xu(i,e,d,s,!0),v.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=xu(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let v=0;v<_;v+=2){const pe=e[m[v]][m[v+1]].subscribe(s),ye=h.length;h.push(s,pe),u&&u.push(r,i.index,ye,-(ye+1))}}}(s,r,r[j],o,n,e,!!t,i),Ne}function Cg(n,e,t,i){try{return!1!==t(i)}catch(r){return Fm(n,r),!1}}function xu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?_t(n.index,e):e;0==(32&e[2])&&du(a);let l=Cg(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Cg(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Y(n=1){return function jD(n){return(L.lFrame.contextLView=function $D(n,e){for(;n>0;)e=e[15],n--;return e}(n,L.lFrame.contextLView))[8]}(n)}function jM(n,e){let t=null;const i=function Z0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?im(n,s,!0):J0(i,s))return r}else t=r}return t}function br(n){const e=b()[16][6];if(!e.projection){const i=e.projection=us(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?jM(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function yi(n,e=0,t){const i=b(),r=K(),s=rr(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),oc(),64!=(64&s.flags)&&function JC(n,e,t){Np(e[j],0,e,t,Tp(n,t,e),Op(t.parent||e[6],t,e))}(r,i,s)}function Pg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?Xt(s):Tn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];zM(n[a],e)&&(l=!0,n[a+1]=i?Zc(u):Yc(u)),a=i?Xt(u):Tn(u)}l&&(n[t+1]=i?Yc(s):Zc(s))}function zM(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&er(n,e)>=0}const Le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fg(n){return n.substring(Le.key,Le.keyEnd)}function WM(n){return n.substring(Le.value,Le.valueEnd)}function Lg(n,e){const t=Le.textEnd;let i=Le.key=wr(n,e,t);return t===i?-1:(i=Le.keyEnd=function KM(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=Vg(n,i,t),i=Le.value=wr(n,i,t),i=Le.valueEnd=function ZM(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Hg(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=Hg(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),Vg(n,i,t))}function wr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Vg(n,e,t,i){return(e=wr(n,e,t))<t&&e++,e}function Hg(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Ts(n,e,t){return en(n,e,t,!1),Ts}function gn(n,e){return en(n,e,null,!0),gn}function Jt(n){!function tn(n,e,t,i){const r=K(),s=Mn(2);r.firstUpdatePass&&$g(r,null,s,i);const o=b();if(t!==B&&Ze(o,s,t)){const a=r.data[et()];if(Gg(a,i)&&!jg(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Vl(l,t||"")),Tu(r,a,o,t,i)}else!function rT(n,e,t,i,r,s,o,a){r===B&&(r=ae);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let m,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&zg(n,e,t,i,p,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[j],o[s+1],o[s+1]=function iT(n,e,t){if(null==t||""===t)return ae;const i=[],r=bt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(Ug,XM,n,!1)}function XM(n,e){for(let t=function qM(n){return function Bg(n){Le.key=0,Le.keyEnd=0,Le.value=0,Le.valueEnd=0,Le.textEnd=n.length}(n),Lg(n,wr(n,0,Le.textEnd))}(e);t>=0;t=Lg(e,t))Ug(n,Fg(e),WM(e))}function en(n,e,t,i){const r=b(),s=K(),o=Mn(2);s.firstUpdatePass&&$g(s,n,o,i),e!==B&&Ze(r,o,e)&&zg(s,s.data[et()],r,r[j],n,r[o+1]=function sT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ne(bt(n)))),n}(e,t),i,o)}function jg(n,e){return e>=n.expandoStartIndex}function $g(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[et()],o=jg(n,t);Gg(s,i)&&null===e&&!o&&(e=!1),e=function JM(n,e,t,i){const r=function lc(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=Is(t=Ou(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=Ou(r,n,e,t,i),null===s){let l=function eT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Tn(i))return n[Xt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Ou(null,n,e,l[1],i),l=Is(l,e.attrs,i),function tT(n,e,t,i){n[Xt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function nT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Is(i,n[s].hostAttrs,t);return Is(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function $M(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Xt(o),l=Tn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||er(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=Xt(n[a+1]);n[i+1]=Zo(h,a),0!==h&&(n[h+1]=Kc(n[h+1],i)),n[a+1]=function iS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Zo(a,0),0!==a&&(n[a+1]=Kc(n[a+1],i)),a=i;else n[i+1]=Zo(l,0),0===a?a=i:n[l+1]=Kc(n[l+1],i),l=i;c&&(n[i+1]=Yc(n[i+1])),Pg(n,u,i,!0),Pg(n,u,i,!1),function UM(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&er(s,e)>=0&&(t[i+1]=Zc(t[i+1]))}(e,u,n,i,s),o=Zo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function Ou(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=Is(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function Is(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),yt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Ug(n,e,t){yt(n,e,bt(t))}function zg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];sa(function lm(n){return 1==(1&n)}(c)?Wg(l,e,t,r,Tn(c),o):void 0)||(sa(s)||function am(n){return 2==(2&n)}(c)&&(s=Wg(l,null,t,r,a,o)),function t0(n,e,t,i,r){const s=Ee(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:vt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=vt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,So(et(),t),r,s))}function Wg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===B&&(h=d?ae:void 0);let f=d?vc(h,i):u===i?h:void 0;if(c&&!sa(f)&&(f=vc(l,i)),sa(f)&&(a=f,o))return a;const p=n[r+1];r=o?Xt(p):Tn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=vc(l,i))}return a}function sa(n){return void 0!==n}function Gg(n,e){return 0!=(n.flags&(e?16:32))}function An(n,e=""){const t=b(),i=K(),r=n+20,s=i.firstCreatePass?rr(i,r,1,e,null):i.data[r],o=t[r]=function Oc(n,e){return Ee(n)?n.createText(e):n.createTextNode(e)}(t[j],e);Wo(i,t,o,s),ln(s,!1)}function yn(n){return Ru("",n,""),yn}function Ru(n,e,t){const i=b(),r=function dr(n,e,t,i){return Ze(n,Gi(),t)?e+N(t)+i:B}(i,n,e,t);return r!==B&&In(i,et(),r),Ru}const oa="en-US";let p_=oa;function Fu(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)Fu(n[s],e,t,i,r);else{const s=K(),o=b();let a=lr(n)?n:$(n.provide),l=jm(n);const c=ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(lr(n)||!n.multi){const f=new rs(l,r,w),p=Lu(a,e,r?u:u+h,d);-1===p?(No(os(c,o),s,a),Nu(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Lu(a,e,u+h,d),p=Lu(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){No(os(c,o),s,a);const v=function CI(n,e,t,i,r){const s=new rs(n,t,w);return s.multi=[],s.index=e,s.componentProviders=0,B_(s,r,i&&!t),s}(r?DI:EI,t.length,r,i,l);!r&&_&&(t[p].providerFactory=v),Nu(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(v),o.push(v)}else Nu(s,n,f>-1?f:p,B_(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function Nu(n,e,t,i){const r=lr(e),s=function YS(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function B_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Lu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function EI(n,e,t,i){return Bu(this.multi,[])}function DI(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=as(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Bu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Bu(r,s);return s}function Bu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function V_(n,e=[]){return t=>{t.providersResolver=(i,r)=>function wI(n,e,t){const i=K();if(i.firstCreatePass){const r=Kt(n);Fu(t,i.data,i.blueprint,r,!0),Fu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class H_{}class TI{resolveComponentFactory(e){throw function MI(n){const e=Error(`No component factory found for ${ne(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Xn=(()=>{class n{}return n.NULL=new TI,n})();function II(){return Cr(ke(),b())}function Cr(n,e){return new Ie(gt(n,e))}let Ie=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=II,n})();function xI(n){return n instanceof Ie?n.nativeElement:n}class ks{}let da=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function OI(){const n=b(),t=_t(ke().index,n);return function AI(n){return n[j]}(an(t)?t:n)}(),n})(),RI=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Sr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const kI=new Sr("13.4.0"),Vu={};function ha(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Te(s)),Yt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&ha(l[1],l,c,i)}const o=t.type;if(8&o)ha(n,e,t.child,i);else if(32&o){const a=Ic(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Fp(e,t);if(Array.isArray(a))i.push(...a);else{const l=_s(e[16]);ha(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Ps{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return ha(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Yt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(kc(e,i),Vo(t,i))}this._attachedToViewContainer=!1}Mp(this._lView[1],this._lView)}onDestroy(e){Em(this._lView[1],this._lView,null,e)}markForCheck(){du(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function fu(n,e,t){const i=e[10];i.begin&&i.begin();try{or(n,e,n.template,t)}catch(r){throw Fm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function WC(n,e){ys(n,e,e[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=e}}class PI extends Ps{constructor(e){super(e),this._view=e}detectChanges(){Om(this._view)}checkNoChanges(){}get context(){return null}}class $_ extends Xn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ze(e);return new Hu(t,this.ngModule)}}function U_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Hu extends H_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function tS(n){return n.map(eS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return U_(this.componentDef.inputs)}get outputs(){return U_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function NI(n,e){return{get:(t,i,r)=>{const s=n.get(t,Vu,r);return s!==Vu||i===Vu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(ks,Tf),a=s.get(RI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function wm(n,e,t){if(Ee(n))return n.selectRootElement(e,t===Wt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Rc(o.createRenderer(null,this.componentDef),c,function FI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Jm(n,e){return{components:[],scheduler:n||$0,clean:VS,playerHandler:e||null,flags:0}}(),f=Jo(0,null,null,1,0,null,null,null,null,null),p=Es(null,f,h,d,null,null,o,l,a,s);let m,_;To(p);try{const v=function Xm(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=rr(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ta(l,c,!0),null!==n&&(Ro(r,n,c),null!==l.classes&&Vc(r,n,l.classes),null!==l.styles&&Lp(r,n,l.styles)));const u=i.createRenderer(n,e),d=Es(t,vm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(No(os(l,t),o,e.type),Tm(o,l),Im(l,t.length,1)),ea(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Ro(l,u,["ng-version",kI.full]);else{const{attrs:g,classes:E}=function nS(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Zt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&Ro(l,u,g),E&&E.length>0&&Vc(l,u,E.join(" "))}if(_=nc(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const T=t[E];g.push(null!=T?Array.from(T):null)}}m=function Qm(n,e,t,i,r){const s=t[1],o=function DS(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),xm(n,i,e,sr(n,e,1,null),t));const r=as(e,n,i.directiveStart,i);Ye(r,e);const s=gt(i,e);return s&&Ye(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Wn(a.index),Sm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Mm(e,o)),o}(v,this.componentDef,p,h,[sM]),Ds(f,p,null)}finally{Io()}return new BI(this.componentType,m,Cr(_,p),p,_)}}class BI extends class SI{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new PI(r),this.componentType=e}get injector(){return new Ki(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Mr{}const Tr=new Map;class G_ extends Mr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $_(this);const i=At(e);this._bootstrapComponents=hn(i.bootstrap),this._r3Injector=Hm(e,t,[{provide:Mr,useValue:this},{provide:Xn,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ke.THROW_IF_NOT_FOUND,i=V.Default){return e===Ke||e===Mr||e===mu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ju extends class HI{}{constructor(e){super(),this.moduleType=e,null!==At(e)&&function jI(n){const e=new Set;!function t(i){const r=At(i,!0),s=r.id;null!==s&&(function z_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ne(e)} vs ${ne(e.name)}`)}(s,Tr.get(s),i),Tr.set(s,i));const o=hn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new G_(this.moduleType,e)}}function q_(n,e,t,i,r,s){const o=e+t;return Ze(n,o,r)?function pn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function Fs(n,e){const t=n[e];return t===B?void 0:t}(n,o+1)}function J_(n,e,t){const i=n+20,r=b(),s=Wi(r,i);return function Ns(n,e){return n[1].data[e].pure}(r,i)?q_(r,function Je(){const n=L.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function $u(n){return e=>{setTimeout(n,void 0,e)}}const xe=class ix extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=$u(l),a&&(a=$u(a)),c&&(c=$u(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof X&&e.add(u),u}};function rx(){return this._results[cr()]()}class Ir{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=cr(),i=Ir.prototype;i[t]||(i[t]=rx)}get changes(){return this._changes||(this._changes=new xe)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=kt(e);(this._changesDetected=!function aC(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let vn=(()=>{class n{}return n.__NG_ELEMENT_ID__=ax,n})();const sx=vn,ox=class extends sx{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Es(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),Ds(t,i,e),new Ps(i)}};function ax(){return fa(ke(),b())}function fa(n,e){return 4&n.type?new ox(e,n,Cr(n,e)):null}let lt=(()=>{class n{}return n.__NG_ELEMENT_ID__=lx,n})();function lx(){return ny(ke(),b())}const cx=lt,ey=class extends cx{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Cr(this._hostTNode,this._hostLView)}get injector(){return new Ki(this._hostTNode,this._hostLView)}get parentInjector(){const e=Fo(this._hostTNode,this._hostLView);if(Wf(e)){const t=Yi(e,this._hostLView),i=qi(e);return new Ki(t[1].data[i+8],t)}return new Ki(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=ty(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function cs(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Hu(ze(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Mr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function AD(n){return Yt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new ey(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function qC(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],np(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function YC(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Nc(s,o),l=i[j],c=zo(l,o[7]);return null!==c&&function zC(n,e,t,i,r,s){i[0]=r,i[6]=e,ys(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),np(Uu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=ty(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=kc(this._lContainer,t);i&&(Vo(Uu(this._lContainer),t),Mp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=kc(this._lContainer,t);return i&&null!=Vo(Uu(this._lContainer),t)?new Ps(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function ty(n){return n[8]}function Uu(n){return n[8]||(n[8]=[])}function ny(n,e){let t;const i=e[n.index];if(Yt(i))t=i;else{let r;if(8&n.type)r=Te(i);else{const s=e[j];r=s.createComment("");const o=gt(n,e);pi(s,zo(s,o),r,function QC(n,e){return Ee(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=Am(i,e,r,n),ea(e,t)}return new ey(t,n,e)}class zu{constructor(e){this.queryList=e,this.matches=null}clone(){return new zu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Wu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Wu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==ay(e,t).matches&&this.queries[t].setDirty()}}class iy{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Gu{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Gu(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class qu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new qu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,hx(t,s)),this.matchTNodeWithReadOption(e,t,Lo(t,e,s,!1,!1))}else i===vn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Lo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ie||r===lt||r===vn&&4&t.type)this.addMatch(t.index,-2);else{const s=Lo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function hx(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function px(n,e,t,i){return-1===t?function fx(n,e){return 11&n.type?Cr(n,e):4&n.type?fa(n,e):null}(e,n):-2===t?function mx(n,e,t){return t===Ie?Cr(e,n):t===vn?fa(e,n):t===lt?ny(e,n):void 0}(n,e,i):as(n,n[1],t,e)}function ry(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:px(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Yu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=ry(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Yu(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Yu(f[1],f,c,i)}}}}}return i}function On(n){const e=b(),t=K(),i=Ff();cc(i+1);const r=ay(t,i);if(n.dirty&&If(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Yu(t,e,i,[]):ry(t,e,r,i);n.reset(s,xI),n.notifyOnChanges()}return!0}return!1}function xr(n,e,t){const i=K();i.firstCreatePass&&(oy(i,new iy(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),sy(i,b(),e)}function pa(n,e,t,i){const r=K();if(r.firstCreatePass){const s=ke();oy(r,new iy(e,t,i),s.index),function _x(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}sy(r,b(),t)}function Rn(){return function gx(n,e){return n[19].queries[e].queryList}(b(),Ff())}function sy(n,e,t){const i=new Ir(4==(4&t));Em(n,e,i,i.destroy),null===e[19]&&(e[19]=new Wu),e[19].queries.push(new zu(i))}function oy(n,e,t){null===n.queries&&(n.queries=new Gu),n.queries.track(new qu(e,t))}function ay(n,e){return n.queries.getByIndex(e)}function ly(n,e){return fa(n,e)}function _a(...n){}const Sy=new I("Application Initializer");let ed=(()=>{class n{constructor(t){this.appInits=t,this.resolve=_a,this.reject=_a,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Iu(s))t.push(s);else if(VM(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(y(Sy,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Bs=new I("AppId",{providedIn:"root",factory:function My(){return`${td()}${td()}${td()}`}});function td(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ty=new I("Platform Initializer"),ya=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Px=new I("appBootstrapListener"),kn=new I("LocaleId",{providedIn:"root",factory:()=>$o(kn,V.Optional|V.SkipSelf)||function Fx(){return"undefined"!=typeof $localize&&$localize.locale||oa}()}),Vx=(()=>Promise.resolve(0))();function nd(n){"undefined"==typeof Zone?Vx.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class J{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Hx(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function Ux(n){const e=()=>{!function $x(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,rd(n),n.isCheckStableRunning=!0,id(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),rd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Iy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),xy(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Iy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),xy(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,rd(n),id(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!J.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(J.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,jx,_a,_a);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const jx={};function id(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function rd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Iy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xy(n){n._nesting--,id(n)}class zx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let sd=(()=>{class n{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:()=>{J.assertNotInAngularZone(),nd(()=>{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())nd(()=>{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(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(J))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Wx=(()=>{class n{constructor(){this._applications=new Map,od.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return od.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class Gx{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let od=new Gx,bi=null;const Ay=new I("AllowMultipleToken"),Oy=new I("PlatformOnDestroy");function Ry(n,e,t=[]){const i=`Platform: ${e}`,r=new I(i);return(s=[])=>{let o=ad();if(!o||o.injector.get(Ay,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function Zx(n){if(bi&&!bi.get(Ay,!1))throw new S(400,"");bi=n;const e=n.get(ky),t=n.get(Ty,null);t&&t.forEach(i=>i())}(function Qx(n=[],e){return Ke.create({name:e,providers:[{provide:gu,useValue:"platform"},{provide:Oy,useValue:()=>bi=null},...n]})}(a,i))}return function Xx(n){const e=ad();if(!e)throw new S(401,"");return e}()}}function ad(){var n;return null!==(n=null==bi?void 0:bi.get(ky))&&void 0!==n?n:null}let ky=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function Jx(n,e){let t;return t="noop"===n?new zx:("zone.js"===n?void 0:n)||new J({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:J,useValue:a}];return a.run(()=>{const c=Ke.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(qn,null);if(!d)throw new S(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{ld(this._modules,u),h.unsubscribe()})}),function eA(n,e,t){try{const i=t();return Iu(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(ed);return h.runInitializers(),h.donePromise.then(()=>(function AT(n){pt(n,"Expected localeId to be defined"),"string"==typeof n&&(p_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,oa)||oa),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Py({},i);return function Yx(n,e,t){const i=new ju(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(va);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Oy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Py(n,e){return Array.isArray(e)?e.reduce(Py,n):Object.assign(Object.assign({},n),e)}let va=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new le(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new le(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{J.assertNotInAngularZone(),nd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{J.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Bi(o,a.pipe(df()))}bootstrap(t,i){if(!this._initStatus.done)throw new S(405,"");let r;r=t instanceof H_?t:this._injector.get(Xn).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function Kx(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Mr),a=r.create(Ke.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(sd,null),u=c&&a.injector.get(Wx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),ld(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ld(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Px,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(y(J),y(Ke),y(qn),y(ed))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ld(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Ny=!0,Pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=iA,n})();function iA(n){return function rA(n,e,t){if(Do(n)&&!t){const i=_t(n.index,e);return new Ps(i,i)}return 47&n.type?new Ps(e[16],e):null}(ke(),b(),16==(16&n))}class jy{constructor(){}supports(e){return Ss(e)}create(e){return new uA(e)}}const cA=(n,e)=>e;class uA{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||cA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Uy(i,r,s)?t:i,a=Uy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ss(e))throw new S(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function mM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[cr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new dA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new $y),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new $y),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class dA{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class hA{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class $y{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new hA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class zy{constructor(){}supports(e){return e instanceof Map||Eu(e)}create(){return new fA}}class fA{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Eu(e)))throw new S(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new pA(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class pA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Wy(){return new Ea([new jy])}let Ea=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Wy()),deps:[[n,new ps,new fi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Wy}),n})();function Gy(){return new Vs([new zy])}let Vs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Gy()),deps:[[n,new ps,new fi]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Gy}),n})();const _A=Ry(null,"core",[]);let yA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(va))},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})(),Da=null;function Qn(){return Da}const G=new I("DocumentToken");let Hs=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function EA(){return y(qy)}()},providedIn:"platform"}),n})(),qy=(()=>{class n extends Hs{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qn().getBaseHref(this._doc)}onPopState(t){const i=Qn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Qn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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,i,r){Yy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Yy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:function(){return function DA(){return new qy(y(G))}()},providedIn:"platform"}),n})();function Yy(){return!!window.history.pushState}function Ky(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Zy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Ei(n){return n&&"?"!==n[0]?"?"+n:n}let fd=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function CA(n){const e=y(G).location;return new MA(y(Hs),e&&e.origin||"")}()},providedIn:"root"}),n})();const SA=new I("appBaseHref");let MA=(()=>{class n extends fd{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ky(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Ei(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Ei(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Ei(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(y(Hs),y(SA,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Xy=(()=>{class n{constructor(t,i){this._subject=new xe,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Zy(Qy(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Ei(i))}normalize(t){return n.stripTrailingSlash(function IA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Qy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ei(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ei(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Ei,n.joinWithSlash=Ky,n.stripTrailingSlash=Zy,n.\u0275fac=function(t){return new(t||n)(y(fd),y(Hs))},n.\u0275prov=x({token:n,factory:function(){return function TA(){return new Xy(y(fd),y(Hs))}()},providedIn:"root"}),n})();function Qy(n){return n.replace(/\/index.html$/,"")}let ka=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,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&&(Ss(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(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ne(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(w(Ea),w(Vs),w(Ie),w(da))},n.\u0275dir=Ce({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class fO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}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}}let av=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new fO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),lv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{lv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Ea))},n.\u0275dir=Ce({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function lv(n,e){n.context.$implicit=e.item}let Us=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new pO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){cv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){cv("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,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn))},n.\u0275dir=Ce({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class pO{constructor(){this.$implicit=null,this.ngIf=null}}function cv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ne(e)}'.`)}const uv="browser";class Sd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Na=(()=>{class n{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 i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),mv=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new Sd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Na,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),gv=(()=>{class n{constructor(t,i,r){r._addDefault(new Sd(t,i))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Na,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Md=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,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,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Vs),w(da))},n.\u0275dir=Ce({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),yv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(w(lt))},n.\u0275dir=Ce({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[zi]}),n})();class GO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class qO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const YO=new qO,KO=new GO;let vv=(()=>{class n{constructor(t){this._ref=t,this._latestValue=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)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Iu(t))return YO;if(wg(t))return KO;throw function rn(n,e){return new S(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(w(Pn,16))},n.\u0275pipe=at({name:"async",type:n,pure:!1}),n})(),La=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();class xd extends class mR extends class wA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function bA(n){Da||(Da=n)}(new xd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function gR(){return Ws=Ws||document.querySelector("base"),Ws?Ws.getAttribute("href"):null}();return null==t?null:function _R(n){Ba=Ba||document.createElement("a"),Ba.setAttribute("href",n);const e=Ba.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Ws=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function dO(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Ba,Ws=null;const Ev=new I("TRANSITION_ID"),vR=[{provide:Sy,useFactory:function yR(n,e,t){return()=>{t.get(ed).donePromise.then(()=>{const i=Qn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Ev,G,Ke],multi:!0}];class Ad{static init(){!function qx(n){od=n}(new Ad)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Qn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let bR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Va=new I("EventManagerPlugins");let Ha=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(y(Va),y(J))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Dv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Qn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Cv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Gs=(()=>{class n extends Cv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Sv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Sv))}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Sv(n){Qn().remove(n)}const Od={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/",math:"http://www.w3.org/1998/MathML/"},Rd=/%COMP%/g;function ja(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?ja(n,r,t):(r=r.replace(Rd,n),t.push(r))}return t}function Iv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let $a=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new kd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Wt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new MR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Wt.ShadowDom:return new TR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=ja(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(y(Ha),y(Gs),y(Bs))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class kd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Od[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Od[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Od[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(vt.DashCase|vt.Important)?e.style.setProperty(t,i,r&vt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&vt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Iv(i)):this.eventManager.addEventListener(e,t,Iv(i))}}class MR extends kd{constructor(e,t,i,r){super(e),this.component=i;const s=ja(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function DR(n){return"_ngcontent-%COMP%".replace(Rd,n)}(r+"-"+i.id),this.hostAttr=function CR(n){return"_nghost-%COMP%".replace(Rd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class TR extends kd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ja(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let IR=(()=>{class n extends Dv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Av=["alt","control","meta","shift"],AR={"\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"},Ov={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"},OR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let RR=(()=>{class n extends Dv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(Av.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function kR(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&Ov.hasOwnProperty(e)&&(e=Ov[e]))}return AR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Av.forEach(s=>{s!=r&&OR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const LR=Ry(_A,"browser",[{provide:ya,useValue:uv},{provide:Ty,useValue:function PR(){xd.makeCurrent(),Ad.init()},multi:!0},{provide:G,useFactory:function NR(){return function MD(n){ec=n}(document),document},deps:[]}]),BR=[{provide:gu,useValue:"root"},{provide:qn,useFactory:function FR(){return new qn},deps:[]},{provide:Va,useClass:IR,multi:!0,deps:[G,J,ya]},{provide:Va,useClass:RR,multi:!0,deps:[G]},{provide:$a,useClass:$a,deps:[Ha,Gs,Bs]},{provide:ks,useExisting:$a},{provide:Cv,useExisting:Gs},{provide:Gs,useClass:Gs,deps:[G]},{provide:sd,useClass:sd,deps:[J]},{provide:Ha,useClass:Ha,deps:[Va,J]},{provide:class fR{},useClass:bR,deps:[]}];let Pd=(()=>{class n{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:n,providers:[{provide:Bs,useValue:t.appId},{provide:Ev,useExisting:Bs},vR]}}}return n.\u0275fac=function(t){return new(t||n)(y(n,12))},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:BR,imports:[La,yA]}),n})();"undefined"!=typeof window&&window;let Nd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(Pv),i},providedIn:"root"}),n})(),Pv=(()=>{class n extends Nd{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ee.NONE:return i;case ee.HTML:return un(i,"HTML")?bt(i):Kp(this._doc,String(i)).toString();case ee.STYLE:return un(i,"Style")?bt(i):i;case ee.SCRIPT:if(un(i,"Script"))return bt(i);throw new Error("unsafe value used in a script context");case ee.URL:return jp(i),un(i,"URL")?bt(i):vs(String(i));case ee.RESOURCE_URL:if(un(i,"ResourceURL"))return bt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function d0(n){return new o0(n)}(t)}bypassSecurityTrustStyle(t){return function h0(n){return new a0(n)}(t)}bypassSecurityTrustScript(t){return function f0(n){return new l0(n)}(t)}bypassSecurityTrustUrl(t){return function p0(n){return new c0(n)}(t)}bypassSecurityTrustResourceUrl(t){return function m0(n){return new u0(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new t:function YR(n){return new Pv(n.get(G))}(y(Ke)),i},providedIn:"root"}),n})();class KR extends X{constructor(e,t){super()}schedule(e,t=0){return this}}class Ua extends KR{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Fv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class sn extends Fv{constructor(e,t=Fv.now){super(e,()=>sn.delegate&&sn.delegate!==this?sn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return sn.delegate&&sn.delegate!==this?sn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const QR=new class XR extends sn{}(class ZR extends Ua{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),JR=new le(n=>n.complete());function Nv(n){return n?function ek(n){return new le(e=>n.schedule(()=>e.complete()))}(n):JR}function ut(...n){let e=n[n.length-1];return Li(e)?(n.pop(),Fl(n,e)):Ll(n)}function Lv(n,e){return new le(e?t=>e.schedule(tk,0,{error:n,subscriber:t}):t=>t.error(n))}function tk({error:n,subscriber:e}){e.error(n)}class dt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return ut(this.value);case"E":return Lv(this.error);case"C":return Nv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new dt("N",e):dt.undefinedValueNotification}static createError(e){return new dt("E",void 0,e)}static createComplete(){return dt.completeNotification}}dt.completeNotification=new dt("C"),dt.undefinedValueNotification=new dt("N",void 0);class za extends he{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(za.dispatch,this.delay,new ik(e,this.destination)))}_next(e){this.scheduleMessage(dt.createNext(e))}_error(e){this.scheduleMessage(dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(dt.createComplete()),this.unsubscribe()}}class ik{constructor(e,t){this.notification=e,this.destination=t}}class Bv extends de{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new rk(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new ai;if(this.isStopped||this.hasError?o=X.EMPTY:(this.observers.push(e),o=new tf(this,e)),r&&e.add(e=new za(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||QR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class rk{constructor(e,t){this.time=e,this.value=t}}function qs(n,e){return"function"==typeof e?t=>t.pipe(qs((i,r)=>Nl(n(i,r)).pipe(He((s,o)=>e(i,s,r,o))))):t=>t.lift(new sk(n))}class sk{constructor(e){this.project=e}call(e,t){return t.subscribe(new ok(e,this.project))}}class ok extends Xr{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Zr(this),r=this.destination;r.add(i),this.innerSubscription=Qr(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Wa={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Wa.schedule(n,0);if(void 0===window.requestAnimationFrame)return Wa.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Ld;function mk(n,e,t){let i=t;return function lk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function uk(n,e){if(!Ld){const t=Element.prototype;Ld=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Ld.call(n,e)}(n,r)||(i=s,0))),i}class _k{constructor(e,t){this.componentFactory=t.get(Xn).resolveComponentFactory(e)}create(e){return new yk(this.componentFactory,e)}}class yk{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Bv(1),this.events=this.eventEmitters.pipe(qs(i=>Bi(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(J),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Wa.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function dk(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Ke.create({providers:[],parent:this.injector}),i=function pk(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=mk(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Pn),this.implementsOnChanges=function ck(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(va).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(He(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Wa.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Df(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class vk extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Vv(n,e){const t=function fk(n,e){return e.get(Xn).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new _k(n,e.injector),r=function hk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function ak(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends vk{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}class Hv{}const Nn="*";function Bd(n,e){return{type:7,name:n,definitions:e,options:{}}}function Ys(n,e=null){return{type:4,styles:e,timings:n}}function jv(n,e=null){return{type:2,steps:n,options:e}}function Et(n){return{type:6,styles:n,offset:null}}function Ga(n,e,t){return{type:0,name:n,styles:e,options:t}}function Ks(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function $v(n){Promise.resolve(null).then(n)}class Zs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$v(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Uv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?$v(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const q=!1;function zv(n){return new S(3e3,q)}function tP(){return"undefined"!=typeof window&&void 0!==window.document}function Hd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ei(n){switch(n.length){case 0:return new Zs;case 1:return n[0];default:return new Uv(n)}}function Wv(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case Nn:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function zk(n){return new S(3502,q)}();return a}function jd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&$d(t,"start",n)));break;case"done":n.onDone(()=>i(t&&$d(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&$d(t,"destroy",n)))}}function $d(n,e,t){const i=t.totalTime,s=Ud(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Ud(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Dt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function Gv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let zd=(n,e)=>!1,qv=(n,e,t)=>[],Yv=null;function Wd(n){const e=n.parentNode||n.host;return e===Yv?null:e}(Hd()||"undefined"!=typeof Element)&&(tP()?(Yv=(()=>document.documentElement)(),zd=(n,e)=>{for(;e;){if(e===n)return!0;e=Wd(e)}return!1}):zd=(n,e)=>n.contains(e),qv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Di=null,Kv=!1;function Zv(n){Di||(Di=function iP(){return"undefined"!=typeof document?document.body:null}()||{},Kv=!!Di.style&&"WebkitAppearance"in Di.style);let e=!0;return Di.style&&!function nP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Di.style,!e&&Kv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Di.style)),e}const Xv=zd,Qv=qv;let Jv=(()=>{class n{validateStyleProperty(t){return Zv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Xv(t,i)}getParentElement(t){return Wd(t)}query(t,i,r){return Qv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Zs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Gd=(()=>{class n{}return n.NOOP=new Jv,n})();const qd="ng-enter",Ya="ng-leave",Ka="ng-trigger",Za=".ng-trigger",tb="ng-animating",Yd=".ng-animating";function Ci(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Kd(parseFloat(e[1]),e[2])}function Kd(n,e){return"s"===e?1e3*n:n}function Xa(n,e,t){return n.hasOwnProperty("duration")?n:function oP(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(zv()),{duration:0,delay:0,easing:""};r=Kd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Kd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Ek(){return new S(3100,q)}()),a=!0),s<0&&(e.push(function Dk(){return new S(3101,q)}()),a=!0),a&&e.splice(l,0,zv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Or(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ti(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Or(n,t);return t}function ib(n,e,t){return t?e+":"+t+";":""}function rb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=ib(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=ib(0,cP(t),n.style[t]));n.setAttribute("style",e)}function bn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Xd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Hd()&&rb(n))}function Si(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Xd(t);n.style[i]=""}),Hd()&&rb(n))}function Xs(n){return Array.isArray(n)?1==n.length?n[0]:jv(n):n}const Zd=new RegExp("{{\\s*(.+?)\\s*}}","g");function sb(n){let e=[];if("string"==typeof n){let t;for(;t=Zd.exec(n);)e.push(t[1]);Zd.lastIndex=0}return e}function Qa(n,e,t){const i=n.toString(),r=i.replace(Zd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function Sk(n){return new S(3003,q)}()),a=""),a.toString()});return r==i?n:r}function Ja(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const lP=/-+([a-z0-9])/g;function Xd(n){return n.replace(lP,(...e)=>e[1].toUpperCase())}function cP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ct(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function Mk(n){return new S(3004,q)}()}}function ob(n,e){return window.getComputedStyle(n)[e]}function mP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function gP(n,e,t){if(":"==n[0]){const l=function _P(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function Hk(n){return new S(3016,q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function Vk(n){return new S(3015,q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(ab(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(ab(o,r))}(i,t,e)):t.push(n),t}const il=new Set(["true","1"]),rl=new Set(["false","0"]);function ab(n,e){const t=il.has(n)||rl.has(n),i=il.has(e)||rl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?il.has(n):rl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?il.has(e):rl.has(e)),o&&a}}const yP=new RegExp("s*:selfs*,?","g");function Qd(n,e,t,i){return new vP(n).build(e,t,i)}class vP{constructor(e){this._driver=e}build(e,t,i){const r=new EP(t);this._resetContextStyleTimingState(r);const s=Ct(this,Xs(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function Ik(){return new S(3006,q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function xk(){return new S(3007,q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(sl(a)){const l=a;Object.keys(l).forEach(c=>{sb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Ja(s.values()),t.errors.push(function Ak(n,e){return new S(3008,q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Ct(this,Xs(e.animation),t);return{type:1,matchers:mP(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Mi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Ct(this,i,t)),options:Mi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Ct(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Mi(e.options)}}visitAnimate(e,t){const i=function CP(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Jd(Xa(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Jd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=Xa(t,e);return Jd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Et({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Et(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Nn?i.push(o):t.errors.push(function Ok(n){return new S(3002,q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(sl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function Rk(n,e,t,i,r){return new S(3010,q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function aP(n,e,t){const i=e.params||{},r=sb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function Ck(n){return new S(3001,q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function kk(){return new S(3011,q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const g=this._makeStyleAst(v,t);let E=null!=g.offset?g.offset:function DP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(sl(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(sl(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),T=0;return null!=E&&(s++,T=g.offset=E),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),g});l&&t.errors.push(function Pk(){return new S(3012,q)}()),a&&t.errors.push(function Fk(){return new S(3200,q)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function Nk(){return new S(3202,q)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((v,g)=>{const E=h>0?g==f?1:h*g:o[g],T=E*_;t.currentTime=p+m.delay+T,m.duration=T,this._validateStyleAst(v,t),v.offset=E,i.styles.push(v)}),i}visitReference(e,t){return{type:8,animation:Ct(this,Xs(e.animation),t),options:Mi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Mi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Mi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function bP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(yP,"")),n=n.replace(/@\*/g,Za).replace(/@\w+/g,t=>Za+"-"+t.substr(1)).replace(/:animating/g,Yd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Dt(t.collectedStyles,t.currentQuerySelector,{});const a=Ct(this,Xs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Mi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Lk(){return new S(3013,q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Xa(e.timings,t.errors,!0);return{type:12,animation:Ct(this,Xs(e.animation),t),timings:i,options:null}}}class EP{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function sl(n){return!Array.isArray(n)&&"object"==typeof n}function Mi(n){return n?(n=Or(n)).params&&(n.params=function wP(n){return n?Or(n):null}(n.params)):n={},n}function Jd(n,e,t){return{duration:n,delay:e,easing:t}}function eh(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class ol{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const TP=new RegExp(":enter","g"),xP=new RegExp(":leave","g");function th(n,e,t,i,r,s={},o={},a,l,c=[]){return(new AP).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class AP{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new ol;const d=new nh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Ct(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[eh(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Ci(i.duration):null,a=null!=i.delay?Ci(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Ct(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=al);const o=Ci(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Ct(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ci(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Ct(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Xa(t.params?Qa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ci(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=al);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Ct(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ct(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const al={};class nh{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=al,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ll(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Ci(i.duration)),null!=i.delay&&(r.delay=Ci(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Qa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new nh(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=al,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new OP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(TP,"."+this._enterClassName)).replace(xP,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function Bk(n){return new S(3014,q)}()),a}}class ll{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ll(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Nn,this._currentKeyframe[t]=Nn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function RP(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=Nn})):ti(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Qa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Nn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ti(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Nn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Ja(e.values()):[],o=t.size?Ja(t.values()):[];if(i){const a=r[0],l=Or(a);a.offset=0,l.offset=1,r=[a,l]}return eh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class OP extends ll{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ti(e[0],!1);l.offset=0,s.push(l);const c=ti(e[0],!1);c.offset=ub(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ti(e[d],!1);h.offset=ub((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return eh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function ub(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class ih{}class kP extends ih{normalizePropertyName(e,t){return Xd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(PP[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Tk(n,e){return new S(3005,q)}())}return o+s}}const PP=(()=>function FP(n){const e={};return n.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 db(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const rh={};class hb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function NP(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||rh,p=this.buildStyles(i,a&&a.params||rh,d),m=l&&l.params||rh,_=this.buildStyles(r,m,d),v=new Set,g=new Map,E=new Map,T="void"===r,H={params:Object.assign(Object.assign({},h),m)},pe=u?[]:th(e,t,this.ast.animation,s,o,p,_,H,c,d);let ye=0;if(pe.forEach(Tt=>{ye=Math.max(Tt.duration+Tt.delay,ye)}),d.length)return db(t,this._triggerName,i,r,T,p,_,[],[],g,E,ye,d);pe.forEach(Tt=>{const It=Tt.element,Wr=Dt(g,It,{});Tt.preStyleProps.forEach(on=>Wr[on]=!0);const Hn=Dt(E,It,{});Tt.postStyleProps.forEach(on=>Hn[on]=!0),It!==t&&v.add(It)});const Mt=Ja(v.values());return db(t,this._triggerName,i,r,T,p,_,pe,Mt,g,E,ye)}}class LP{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Or(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Qa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class VP{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new LP(r.style,r.options&&r.options.params||{},i)}),fb(this.states,"true","1"),fb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new hb(e,r,this.states))}),this.fallbackTransition=function HP(n,e,t){return new hb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function fb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const jP=new ol;class $P{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Qd(this._driver,t,i,[]);if(i.length)throw function Wk(n){return new S(3503,q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Wv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=th(this._driver,t,s,qd,Ya,{},{},i,jP,r),o.forEach(u=>{const d=Dt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function Gk(){return new S(3300,q)}()),o=[]),r.length)throw function qk(n){return new S(3504,q)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Nn)})});const c=ei(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function Yk(n){return new S(3301,q)}();return t}listen(e,t,i,r){const s=Ud(t,"","","");return jd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const pb="ng-animate-queued",sh="ng-animate-disabled",qP=[],mb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},YP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bt="__ng_removed";class oh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function QP(n){return null!=n?n:null}(i?e.value:e),i){const s=Or(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Qs="void",ah=new oh(Qs);class KP{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Vt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function Kk(n,e){return new S(3302,q)}();if(null==i||0==i.length)throw function Zk(n){return new S(3303,q)}();if(!function JP(n){return"start"==n||"done"==n}(i))throw function Xk(n,e){return new S(3400,q)}();const s=Dt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Dt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Vt(e,Ka),Vt(e,Ka+"-"+t),a[t]=ah),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function Qk(n){return new S(3401,q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new lh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Vt(e,Ka),Vt(e,Ka+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new oh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=ah),c.value!==Qs&&l.value===c.value){if(!function nF(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),v=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Si(e,_),bn(e,v)})}return}const h=Dt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Vt(e,pb),o.onStart(()=>{Rr(e,pb)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let v=_.indexOf(o);v>=0&&_.splice(v,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Za,!0);i.forEach(r=>{if(r[Bt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,Qs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ei(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||ah,u=new oh(Qs),d=new lh(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Bt];(!s||s===mb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Vt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Ud(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,jd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class ZP{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new KP(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(cl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!cl(t))return;const s=t[Bt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Vt(e,sh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Rr(e,sh))}removeNode(e,t,i,r){if(cl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Bt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return cl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Za,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Yd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ei(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Bt];if(i&&i.setForRemoval){if(e[Bt]=mb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(sh))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Vt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?ei(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function Jk(n){return new S(3402,q)}()}_flushAnimations(e,t){const i=new ol,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(M=>{u.add(M);const A=this.driver.query(M,".ng-animate-queued",!0);for(let F=0;F<A.length;F++)u.add(A[F])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=yb(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((M,A)=>{const F=qd+m++;p.set(A,F),M.forEach(Z=>Vt(Z,F))});const _=[],v=new Set,g=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const A=this.collectedLeaveElements[M],F=A[Bt];F&&F.setForRemoval&&(_.push(A),v.add(A),F.hasAnimation?this.driver.query(A,".ng-star-inserted",!0).forEach(Z=>v.add(Z)):g.add(A))}const E=new Map,T=yb(h,Array.from(v));T.forEach((M,A)=>{const F=Ya+m++;E.set(A,F),M.forEach(Z=>Vt(Z,F))}),e.push(()=>{f.forEach((M,A)=>{const F=p.get(A);M.forEach(Z=>Rr(Z,F))}),T.forEach((M,A)=>{const F=E.get(A);M.forEach(Z=>Rr(Z,F))}),_.forEach(M=>{this.processLeaveNode(M)})});const H=[],pe=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach(F=>{const Z=F.player,$e=F.element;if(H.push(Z),this.collectedEnterElements.length){const ot=$e[Bt];if(ot&&ot.setForMove){if(ot.previousTriggersValues&&ot.previousTriggersValues.has(F.triggerName)){const ki=ot.previousTriggersValues.get(F.triggerName),oi=this.statesByElement.get(F.element);oi&&oi[F.triggerName]&&(oi[F.triggerName].value=ki)}return void Z.destroy()}}const En=!d||!this.driver.containsElement(d,$e),xt=E.get($e),si=p.get($e),ve=this._buildInstruction(F,i,si,xt,En);if(ve.errors&&ve.errors.length)return void pe.push(ve);if(En)return Z.onStart(()=>Si($e,ve.fromStyles)),Z.onDestroy(()=>bn($e,ve.toStyles)),void r.push(Z);if(F.isFallbackTransition)return Z.onStart(()=>Si($e,ve.fromStyles)),Z.onDestroy(()=>bn($e,ve.toStyles)),void r.push(Z);const ME=[];ve.timelines.forEach(ot=>{ot.stretchStartingKeyframe=!0,this.disabledNodes.has(ot.element)||ME.push(ot)}),ve.timelines=ME,i.append($e,ve.timelines),o.push({instruction:ve,player:Z,element:$e}),ve.queriedElements.forEach(ot=>Dt(a,ot,[]).push(Z)),ve.preStyleProps.forEach((ot,ki)=>{const oi=Object.keys(ot);if(oi.length){let Pi=l.get(ki);Pi||l.set(ki,Pi=new Set),oi.forEach(Kh=>Pi.add(Kh))}}),ve.postStyleProps.forEach((ot,ki)=>{const oi=Object.keys(ot);let Pi=c.get(ki);Pi||c.set(ki,Pi=new Set),oi.forEach(Kh=>Pi.add(Kh))})});if(pe.length){const M=[];pe.forEach(A=>{M.push(function eP(n,e){return new S(3505,q)}())}),H.forEach(A=>A.destroy()),this.reportError(M)}const ye=new Map,Mt=new Map;o.forEach(M=>{const A=M.element;i.has(A)&&(Mt.set(A,A),this._beforeAnimationBuild(M.player.namespaceId,M.instruction,ye))}),r.forEach(M=>{const A=M.element;this._getPreviousPlayers(A,!1,M.namespaceId,M.triggerName,null).forEach(Z=>{Dt(ye,A,[]).push(Z),Z.destroy()})});const Tt=_.filter(M=>bb(M,l,c)),It=new Map;_b(It,this.driver,g,c,Nn).forEach(M=>{bb(M,l,c)&&Tt.push(M)});const Hn=new Map;f.forEach((M,A)=>{_b(Hn,this.driver,new Set(M),l,"!")}),Tt.forEach(M=>{const A=It.get(M),F=Hn.get(M);It.set(M,Object.assign(Object.assign({},A),F))});const on=[],Gr=[],qr={};o.forEach(M=>{const{element:A,player:F,instruction:Z}=M;if(i.has(A)){if(u.has(A))return F.onDestroy(()=>bn(A,Z.toStyles)),F.disabled=!0,F.overrideTotalTime(Z.totalTime),void r.push(F);let $e=qr;if(Mt.size>1){let xt=A;const si=[];for(;xt=xt.parentNode;){const ve=Mt.get(xt);if(ve){$e=ve;break}si.push(xt)}si.forEach(ve=>Mt.set(ve,$e))}const En=this._buildAnimation(F.namespaceId,Z,ye,s,Hn,It);if(F.setRealPlayer(En),$e===qr)on.push(F);else{const xt=this.playersByElement.get($e);xt&&xt.length&&(F.parentPlayer=ei(xt)),r.push(F)}}else Si(A,Z.fromStyles),F.onDestroy(()=>bn(A,Z.toStyles)),Gr.push(F),u.has(A)&&r.push(F)}),Gr.forEach(M=>{const A=s.get(M.element);if(A&&A.length){const F=ei(A);M.setRealPlayer(F)}}),r.forEach(M=>{M.parentPlayer?M.syncPlayerEvents(M.parentPlayer):M.destroy()});for(let M=0;M<_.length;M++){const A=_[M],F=A[Bt];if(Rr(A,Ya),F&&F.hasAnimation)continue;let Z=[];if(a.size){let En=a.get(A);En&&En.length&&Z.push(...En);let xt=this.driver.query(A,Yd,!0);for(let si=0;si<xt.length;si++){let ve=a.get(xt[si]);ve&&ve.length&&Z.push(...ve)}}const $e=Z.filter(En=>!En.destroyed);$e.length?eF(this,A,$e):this.processLeaveNode(A)}return _.length=0,on.forEach(M=>{this.players.push(M),M.onDone(()=>{M.destroy();const A=this.players.indexOf(M);this.players.splice(A,1)}),M.play()}),on}elementContainsData(e,t){let i=!1;const r=t[Bt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Qs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Dt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Si(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Bt];if(_&&_.removedBeforeQueried)return new Zs(p.duration,p.delay);const v=m!==l,g=function tF(n){const e=[];return vb(n,e),e}((i.get(m)||qP).map(ye=>ye.getRealPlayer())).filter(ye=>!!ye.element&&ye.element===m),E=s.get(m),T=o.get(m),H=Wv(0,this._normalizer,0,p.keyframes,E,T),pe=this._buildPlayer(p,H,g);if(p.subTimeline&&r&&d.add(m),v){const ye=new lh(e,a,m);ye.setRealPlayer(pe),c.push(ye)}return pe});c.forEach(p=>{Dt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function XP(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Vt(p,tb));const f=ei(h);return f.onDestroy(()=>{u.forEach(p=>Rr(p,tb)),bn(l,t.toStyles)}),d.forEach(p=>{Dt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Zs(e.duration,e.delay)}}class lh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Zs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>jd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Dt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function cl(n){return n&&1===n.nodeType}function gb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function _b(n,e,t,i,r){const s=[];t.forEach(l=>s.push(gb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Bt]=YP,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>gb(l,s[a++])),o}function yb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Vt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Rr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function eF(n,e,t){ei(t).onDone(()=>n.processLeaveNode(e))}function vb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Uv?vb(i.players,e):e.push(i)}}function bb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class ul{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new ZP(e,t,i),this._timelineEngine=new $P(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Qd(this._driver,s,l,[]);if(l.length)throw function Uk(n,e){return new S(3404,q)}();a=function BP(n,e,t){return new VP(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=Gv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=Gv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let rF=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Si(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Si(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ch(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];sF(r)&&(e=e||{},e[r]=n[r])}return e}function sF(n){return"display"===n||"position"===n}class wb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:ob(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class oF{validateStyleProperty(e){return Zv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Xv(e,t)}getParentElement(e){return Wd(e)}query(e,t,i){return Qv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof wb);(function uP(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function dP(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=ob(n,l)})}}return e}(e,t=t.map(h=>ti(h,!1)),c);const d=function iF(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ch(e[0]),e.length>1&&(i=ch(e[e.length-1]))):e&&(t=ch(e)),t||i?new rF(n,t,i):null}(e,t);return new wb(e,t,l,d)}}let aF=(()=>{class n extends Hv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Wt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?jv(t):t;return Eb(this._renderer,null,i,"register",[r]),new lF(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(ks),y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class lF extends class bk{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new cF(this._id,e,t||{},this._renderer)}}class cF{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Eb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Eb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Db="@.disabled";let uF=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Cb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new dF(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(t){return new(t||n)(y(ks),y(ul),y(J))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Cb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Db?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class dF extends Cb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Db?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function hF(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function fF(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let pF=(()=>{class n extends ul{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(G),y(Gd),y(ih))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const kr=new I("AnimationModuleType"),Sb=[{provide:Hv,useClass:aF},{provide:ih,useFactory:function mF(){return new kP}},{provide:ul,useClass:pF},{provide:ks,useFactory:function gF(n,e,t){return new uF(n,e,t)},deps:[$a,ul,J]}],Mb=[{provide:Gd,useFactory:()=>new oF},{provide:kr,useValue:"BrowserAnimations"},...Sb],_F=[{provide:Gd,useClass:Jv},{provide:kr,useValue:"NoopAnimations"},...Sb];let Tb=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?_F:Mb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:Mb,imports:[Pd]}),n})();function Pr(n){return null!=n&&"false"!=`${n}`}function Ib(n,e=0){return function yF(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function hl(n){return Array.isArray(n)?n:[n]}function Re(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fr(n){return n instanceof Ie?n.nativeElement:n}function xb(n,e,t,i){return Yr(t)&&(i=t,t=void 0),i?xb(n,e,t).pipe(He(r=>Ni(r)?i(...r):i(r))):new le(r=>{Ab(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function Ab(n,e,t,i,r){let s;if(function wF(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function bF(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function vF(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)Ab(n[o],e,t,i,r)}i.add(s)}new class DF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class EF extends Ua{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let SF=1;const MF=Promise.resolve(),fl={};function Ob(n){return n in fl&&(delete fl[n],!0)}const Rb={setImmediate(n){const e=SF++;return fl[e]=!0,MF.then(()=>Ob(e)&&n()),e},clearImmediate(n){Ob(n)}},uh=new class IF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class TF extends Ua{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Rb.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Rb.clearImmediate(t),e.scheduled=void 0)}}),pl=new sn(Ua);class AF{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new OF(e,this.durationSelector))}}class OF extends Xr{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Qr(t,new Zr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function kb(n){return!Ni(n)&&n-parseFloat(n)+1>=0}function kF(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Pb(n,e=pl){return function xF(n){return function(t){return t.lift(new AF(n))}}(()=>function RF(n=0,e,t){let i=-1;return kb(e)?i=Number(e)<1?1:Number(e):Li(e)&&(t=e),Li(t)||(t=pl),new le(r=>{const s=kb(n)?n:+n-t.now();return t.schedule(kF,s,{index:0,period:i,subscriber:r})})}(n,e))}function Ln(n,e){return function(i){return i.lift(new PF(n,e))}}class PF{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new FF(e,this.predicate,this.thisArg))}}class FF extends he{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let dh;try{dh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){dh=!1}let Js,Ti,hh,Ht=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function yO(n){return n===uv}(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&&!dh)&&"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 n.\u0275fac=function(t){return new(t||n)(y(ya))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eo(n){return function NF(){if(null==Js&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Js=!0}))}finally{Js=Js||!1}return Js}()?n:!!n.capture}function LF(){if(null==Ti){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ti=!1,Ti;if("scrollBehavior"in document.documentElement.style)Ti=!0;else{const n=Element.prototype.scrollTo;Ti=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Ti}function Ii(n){return n.composedPath?n.composedPath()[0]:n.target}function fh(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const HF=new I("cdk-dir-doc",{providedIn:"root",factory:function jF(){return $o(G)}}),$F=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ph=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new xe,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function UF(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?$F.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(HF,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),to=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})(),Nb=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new le(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(Pb(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ut()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Ln(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(J),y(Ht),y(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lb=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}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:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Pb(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(Ht),y(J),y(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})(),Bb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[to,gl],to,gl]}),n})();class mh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Vb extends mh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class Hb extends mh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class GF extends mh{constructor(e){super(),this.element=e instanceof Ie?e.nativeElement:e}}class YF extends class qF{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Vb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Hb?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof GF?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Ke.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let KF=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({}),n})();const ZF=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Bn(n){return e=>0===n?Nv():e.lift(new XF(n))}class XF{constructor(e){if(this.total=e,this.total<0)throw new ZF}call(e,t){return t.subscribe(new QF(e,this.total))}}class QF extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function ht(n){return e=>e.lift(new JF(n))}class JF{constructor(e){this.notifier=e}call(e,t){const i=new eN(e),r=Qr(this.notifier,new Zr(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class eN extends Xr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const jb=LF();class tN{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Re(-this._previousScrollPosition.left),e.style.top=Re(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),jb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class nN{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class $b{enable(){}disable(){}attach(){}}function gh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Ub(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class iN{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}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:i,height:r}=this._viewportRuler.getViewportSize();gh(t,[{width:i,height:r,bottom:r,right:i,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 rN=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new $b,this.close=o=>new nN(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new tN(this._viewportRuler,this._document),this.reposition=o=>new iN(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(y(Nb),y(Lb),y(J),y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class zb{constructor(e){if(this.scrollStrategy=new $b,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class sN{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class oN{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new de,this._attachments=new de,this._detachments=new de,this._locationChanges=X.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new de,this._outsidePointerEvents=new de,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Bn(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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Re(this._config.width),e.height=Re(this._config.height),e.minWidth=Re(this._config.minWidth),e.minHeight=Re(this._config.minHeight),e.maxWidth=Re(this._config.maxWidth),e.maxHeight=Re(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;!e||(e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500)))}_toggleClasses(e,t,i){const r=hl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(ht(Bi(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._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let _l=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||fh()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),fh()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(y(G),y(Ht))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wb="cdk-overlay-connected-position-bounding-box",aN=/([A-Za-z%]+)$/;class lN{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,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 de,this._resizeSubscription=X.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Wb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Wb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=qb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Gb(this._overlayRef.getConfig().minHeight),a=Gb(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=qb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new sN(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Re(i.height),r.top=Re(i.top),r.bottom=Re(i.bottom),r.width=Re(i.width),r.left=Re(i.left),r.right=Re(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Re(s)),o&&(r.maxWidth=Re(o))}this._lastBoundingBoxSize=i,xi(this._boundingBox.style,r)}_resetBoundingBoxStyles(){xi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();xi(i,this._getExactOverlayY(t,e,u)),xi(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Re(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Re(o.maxWidth):s&&(i.maxWidth="")),xi(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Re(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Re(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ub(e,i),isOriginOutsideView:gh(e,i),isOverlayClipped:Ub(t,i),isOverlayOutsideView:gh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&hl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ie)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function xi(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Gb(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(aN);return t&&"px"!==t?null:parseFloat(e)}return n||null}function qb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Yb="cdk-global-overlay-wrapper";class cN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Yb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Yb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let uN=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new cN}flexibleConnectedTo(t){return new lN(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(Lb),y(G),y(Ht),y(_l))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Kb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dN=(()=>{class n extends Kb{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(G),y(J,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hN=(()=>{class n extends Kb{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Ii(s)},this._clickListener=s=>{const o=Ii(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(G),y(Ht),y(J,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fN=0,Lr=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new zb(t);return o.direction=o.direction||this._directionality.value,new oN(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+fN++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(va)),new YF(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(rN),y(_l),y(Xn),y(uN),y(dN),y(Ke),y(J),y(G),y(ph),y(Xy),y(hN))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const gN={provide:new I("cdk-connected-overlay-scroll-strategy"),deps:[Lr],useFactory:function mN(n){return()=>n.scrollStrategies.reposition()}};let Zb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[Lr,gN],imports:[[to,KF,Bb],Bb]}),n})();class _N extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ai;return this._value}next(e){super.next(this._value=e)}}function vh(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Vn(){}function St(n,e,t){return function(r){return r.lift(new RN(n,e,t))}}class RN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new kN(e,this.nextOrObserver,this.error,this.complete))}}class kN extends he{constructor(e,t,i,r){super(e),this._tapNext=Vn,this._tapError=Vn,this._tapComplete=Vn,this._tapError=i||Vn,this._tapComplete=r||Vn,Yr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Vn,this._tapError=t.error||Vn,this._tapComplete=t.complete||Vn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function tw(n,e=pl){return t=>t.lift(new PN(n,e))}class PN{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new FN(e,this.dueTime,this.scheduler))}}class FN extends he{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(NN,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function NN(n){n.debouncedNext()}function nw(n){return e=>e.lift(new LN(n))}class LN{constructor(e){this.total=e}call(e,t){return t.subscribe(new BN(e,this.total))}}class BN extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class HN{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new jN(e,this.compare,this.keySelector))}}class jN extends he{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}let $N=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[$N]}),n})();function yl(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const rw="cdk-describedby-message",vl="cdk-describedby-host";let sw=0,GN=(()=>{class n{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+sw++,this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=bh(i,r);"string"!=typeof i?(ow(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){var s;if(!i||!this._isElementNode(t))return;const o=bh(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var t;const i=this._document.querySelectorAll(`[${vl}="${this._id}"]`);for(let r=0;r<i.length;r++)this._removeCdkDescribedByReferenceIds(i[r]),i[r].removeAttribute(vl);null===(t=this._messagesContainer)||void 0===t||t.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");ow(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(bh(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i,r;null===(r=null===(i=this._messageRegistry.get(t))||void 0===i?void 0:i.messageElement)||void 0===r||r.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;const t="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let s=0;s<i.length;s++)i[s].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){const i=yl(t,"aria-describedby").filter(r=>0!=r.indexOf(rw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function zN(n,e,t){const i=yl(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(vl,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function WN(n,e,t){const r=yl(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(vl)}_isElementDescribedByMessage(t,i){const r=yl(t,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(y(G),y(Ht))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function bh(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function ow(n){n.id||(n.id=`${rw}-${sw++}`)}class YN extends class qN{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=X.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,e instanceof Ir&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(St(t=>this._pressedLetters.push(t)),tw(e),Ln(()=>this._pressedLetters.length>0),He(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||vh(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ir?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function wh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Eh(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const e1=new I("cdk-input-modality-detector-options"),t1={ignoreKeys:[18,17,224,91,16]},Br=eo({passive:!0,capture:!0});let n1=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new _N(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ii(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wh(o)?"keyboard":"mouse"),this._mostRecentTarget=Ii(o))},this._onTouchstart=o=>{Eh(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ii(o))},this._options=Object.assign(Object.assign({},t1),s),this.modalityDetected=this._modality.pipe(nw(1)),this.modalityChanged=this.modalityDetected.pipe(function VN(n,e){return t=>t.lift(new HN(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Br),r.addEventListener("mousedown",this._onMousedown,Br),r.addEventListener("touchstart",this._onTouchstart,Br)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Br),document.removeEventListener("mousedown",this._onMousedown,Br),document.removeEventListener("touchstart",this._onTouchstart,Br))}}return n.\u0275fac=function(t){return new(t||n)(y(Ht),y(J),y(G),y(e1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const s1=new I("cdk-focus-monitor-default-options"),bl=eo({passive:!0,capture:!0});let wl=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=a=>{const l=Ii(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=Fr(t);if(!this._platform.isBrowser||1!==r.nodeType)return ut(null);const s=function VF(n){if(function BF(){if(null==hh){const n="undefined"!=typeof document?document.head:null;hh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return hh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new de,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Fr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Fr(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=Ii(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,bl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,bl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ht(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(y(J),y(Ht),y(n1),y(G,8),y(s1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cw="cdk-high-contrast-black-on-white",uw="cdk-high-contrast-white-on-black",Dh="cdk-high-contrast-active";let dw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}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 i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Dh),t.remove(cw),t.remove(uw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Dh),t.add(cw)):2===i&&(t.add(Dh),t.add(uw))}}}return n.\u0275fac=function(t){return new(t||n)(y(Ht),y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o1=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(dw))},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[UN]]}),n})();const l1=new I("mat-sanity-checks",{providedIn:"root",factory:function a1(){return!0}});let wn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!fh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(dw),y(l1,8),y(G))},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[to],to]}),n})();function fw(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Pr(e)}}}function pw(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function mw(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Pr(e)}}}class u1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const gw={enterDuration:225,exitDuration:150},Ch=eo({passive:!0}),_w=["mousedown","touchstart"],yw=["mouseup","mouseleave","touchend","touchcancel"];class h1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},gw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function p1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function f1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new u1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},gw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Fr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(_w))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(yw),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=wh(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Eh(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Ch)})})}_removeTriggerEvents(){this._triggerElement&&(_w.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ch)}),this._pointerUpEventsRegistered&&yw.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ch)}))}}const m1=new I("mat-ripple-global-options");let Sh=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new h1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),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()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(J),w(Ht),w(m1,8),w(kr,8))},n.\u0275dir=Ce({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&gn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),vw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[wn],wn]}),n})();const g1=["mat-button",""],_1=["*"],v1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],b1=pw(fw(mw(class{constructor(n){this._elementRef=n}})));let w1=(()=>{class n extends b1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of v1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(wl),w(kr,8))},n.\u0275cmp=Gt({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&xr(Sh,5),2&t){let r;On(r=Rn())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(We("disabled",i.disabled||null),gn("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[xn],attrs:g1,ngContentSelectors:_1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(br(),Q(0,"span",0),yi(1),re(),Zn(2,"span",1)(3,"span",2)),2&t&&(k(2),gn("mat-button-ripple-round",i.isRoundButton||i.isIconButton),O("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Sh],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),E1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[vw,wn],wn]}),n})();function El(n,e){return new le(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Nl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function bw(n){return function(t){const i=new C1(n),r=t.lift(i);return i.caught=r}}class C1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new S1(e,this.selector,this.caught))}}class S1 extends Xr{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Zr(this);this.add(i);const r=Qr(t,i);r!==i&&this.add(r)}}}class T1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new I1(e,this.callback))}}class I1 extends he{constructor(e,t){super(e),this.add(new X(t))}}class A1{}class ni{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ni?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ni;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ni?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class O1{encodeKey(e){return ww(e)}encodeValue(e){return ww(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const k1=/%(\d[a-f0-9])/gi,P1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ww(n){return encodeURIComponent(n).replace(k1,(e,t)=>{var i;return null!==(i=P1[t])&&void 0!==i?i:e})}function Ew(n){return`${n}`}class ii{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new O1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function R1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new ii({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Ew(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Ew(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class F1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Dw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Cw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Sw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class io{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function N1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ni),this.context||(this.context=new F1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new ii,this.urlWithParams=t}serializeBody(){return null===this.body?null:Dw(this.body)||Cw(this.body)||Sw(this.body)||function L1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ii?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||Sw(this.body)?null:Cw(this.body)?this.body.type||null:Dw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ii?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new io(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Ge=(()=>((Ge=Ge||{})[Ge.Sent=0]="Sent",Ge[Ge.UploadProgress=1]="UploadProgress",Ge[Ge.ResponseHeader=2]="ResponseHeader",Ge[Ge.DownloadProgress=3]="DownloadProgress",Ge[Ge.Response=4]="Response",Ge[Ge.User=5]="User",Ge))();class Mh extends class B1{constructor(e,t=200,i="OK"){this.headers=e.headers||new ni,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=Ge.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Mh({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Th(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Tw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof io)s=t;else{let l,c;l=r.headers instanceof ni?r.headers:new ni(r.headers),r.params&&(c=r.params instanceof ii?r.params:new ii({fromObject:r.params})),s=new io(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ut(s).pipe(function x1(n,e){return go(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof io||"events"===r.observe)return o;const a=o.pipe(Ln(l=>l instanceof Mh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(He(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(He(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(He(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new ii).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Th(r,i))}post(t,i,r={}){return this.request("POST",t,Th(r,i))}put(t,i,r={}){return this.request("PUT",t,Th(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(A1))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const H1=["*"];let Dl;function ro(n){var e;return(null===(e=function j1(){if(void 0===Dl&&(Dl=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Dl=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Dl}())||void 0===e?void 0:e.createHTML(n))||n}function Iw(n){return Error(`Unable to find icon with the name "${n}"`)}function xw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Aw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ai{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Cl=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new Ai(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(ee.HTML,r);if(!o)throw Aw(r);const a=ro(o);return this._addSvgIconConfig(t,i,new Ai("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Ai(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(ee.HTML,i);if(!s)throw Aw(i);const o=ro(s);return this._addSvgIconSetConfig(t,new Ai("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(ee.RESOURCE_URL,t);if(!i)throw xw(t);const r=this._cachedIconsByUrl.get(i);return r?ut(Sl(r)):this._loadSvgIconFromConfig(new Ai(t,null)).pipe(St(s=>this._cachedIconsByUrl.set(i,s)),He(s=>Sl(s)))}getNamedSvgIcon(t,i=""){const r=Ow(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):Lv(Iw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?ut(Sl(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(He(i=>Sl(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?ut(r):function D1(...n){if(1===n.length){const e=n[0];if(Ni(e))return El(e,null);if(kl(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return El(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return El(n=1===n.length&&Ni(n[0])?n[0]:n,null).pipe(He(t=>e(...t)))}return El(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(bw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ee.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),ut(null)})))).pipe(He(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Iw(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(St(i=>t.svgText=i),He(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ut(null):this._fetchIcon(t).pipe(St(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(ro("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(ro("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function $1(){return 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==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(ee.RESOURCE_URL,r);if(!a)throw xw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(He(u=>ro(u)),function M1(n){return e=>e.lift(new T1(n))}(()=>this._inProgressUrlFetches.delete(a)),df());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(Ow(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return z1(s)?new Ai(s.url,null,s.options):new Ai(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(y(Tw,8),y(Nd),y(G,8),y(qn))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Sl(n){return n.cloneNode(!0)}function Ow(n,e){return n+":"+e}function z1(n){return!(!n.url||!n.options)}const W1=pw(class{constructor(n){this._elementRef=n}}),G1=new I("mat-icon-location",{providedIn:"root",factory:function q1(){const n=$o(G),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Rw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Y1=Rw.map(n=>`[${n}]`).join(", "),K1=/^url\(['"]?#(.*?)['"]?\)$/;let kw=(()=>{class n extends W1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=X.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Pr(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),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 i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(Y1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)Rw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(K1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Bn(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Cl),function Bo(n){return function nC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Uf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(ke(),n)}("aria-hidden"),w(G1),w(qn))},n.\u0275cmp=Gt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(We("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),gn("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[xn],ngContentSelectors:H1,decls:1,vars:0,template:function(t,i){1&t&&(br(),yi(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Pw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[wn],wn]}),n})();class Z1 extends he{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class X1 extends he{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Q1(n,e,t,i,r=new X1(n,t,i)){if(!r.closed)return e instanceof le?e.subscribe(r):Pl(e)(r)}const Fw={};class eL{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new tL(e,this.resultSelector))}}class tL extends Z1{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Fw),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(Q1(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===Fw?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function Ih(...n){return function nL(){return cf(1)}()(ut(...n))}function Ml(...n){const e=n[n.length-1];return Li(e)?(n.pop(),t=>Ih(n,t,e)):t=>Ih(n,t)}const Nw=new Set;let Vr,iL=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):sL}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function rL(n){if(!Nw.has(n))try{Vr||(Vr=document.createElement("style"),Vr.setAttribute("type","text/css"),document.head.appendChild(Vr)),Vr.sheet&&(Vr.sheet.insertRule(`@media ${n} {body{ }}`,0),Nw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Ht))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sL(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let oL=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Lw(hl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function J1(...n){let e,t;return Li(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Ni(n[0])&&(n=n[0]),Ll(n,t).lift(new eL(e))}(Lw(hl(t)).map(o=>this._registerQuery(o).observable));return s=Ih(s.pipe(Bn(1)),s.pipe(nw(1),tw(0))),s.pipe(He(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new le(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ml(i),He(({matches:o})=>({query:t,matches:o})),ht(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(y(iL),y(J))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Lw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const lL=["tooltip"],Bw="tooltip-panel",Vw=eo({passive:!0}),Hw=new I("mat-tooltip-scroll-strategy"),hL={provide:Hw,deps:[Lr],useFactory:function dL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},fL=new I("mat-tooltip-default-options",{providedIn:"root",factory:function pL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let mL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new de,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(ht(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Pr(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Ib(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Ib(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ht(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,Vw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Vb(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var t;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(ht(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Bw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ht(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ht(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!vh(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(t=this._defaultOptions)||void 0===t?void 0:t.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Bn(1),ht(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Bw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{var r;const s=i.relatedTarget;(!s||!(null===(r=this._overlayRef)||void 0===r?void 0:r.overlayElement.contains(s)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Vw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function bg(){throw new Error("invalid")}()},n.\u0275dir=Ce({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),gL=(()=>{class n extends mL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=yL}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(Nb),w(lt),w(J),w(Ht),w(GN),w(wl),w(Hw),w(ph,8),w(fL,8),w(G))},n.\u0275dir=Ce({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[xn]}),n})(),_L=(()=>{class n{constructor(t,i){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new de,this._animationsDisabled="NoopAnimations"===i}show(t){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(t?s:r),i.classList.add(t?r:s),this._isVisible=t,t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}}return n.\u0275fac=function(t){return new(t||n)(w(Pn),w(kr,8))},n.\u0275dir=Ce({type:n}),n})(),yL=(()=>{class n extends _L{constructor(t,i,r){super(t,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(t){return new(t||n)(w(Pn),w(oL),w(kr,8))},n.\u0275cmp=Gt({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,i){if(1&t&&xr(lL,7),2&t){let r;On(r=Rn())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){1&t&&Ne("mouseleave",function(s){return i._handleMouseLeave(s)}),2&t&&Ts("zoom",i.isVisible()?1:null)},features:[xn],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(t,i){if(1&t&&(Q(0,"div",0,1),Ne("animationend",function(s){return i._handleAnimationEnd(s)}),function Q_(n,e){const t=K();let i;const r=n+20;t.firstCreatePass?(i=function QI(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=hi(i.type)),o=jn(w);try{const a=Po(!1),l=s();return Po(a),function _M(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,b(),r,l),l}finally{jn(o)}}(2,"async"),An(3),re()),2&t){let r;gn("mat-tooltip-handset",null==(r=J_(2,4,i._isHandset))?null:r.matches),O("ngClass",i.tooltipClass),k(3),yn(i.message)}},directives:[ka],pipes:[vv],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),vL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[hL],imports:[[o1,La,Zb,wn],wn,gl]}),n})(),jw=(()=>{class n{constructor(t){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="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(y(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const bL=new le(Vn);function $w(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function so(n){return"img"===n.nodeName.toLowerCase()}function Uw(n,e,t){return so(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function xh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const DL=xh("defaultImage"),zw=xh("lazyLoad"),CL=xh("errorImage");function Ah(n){return(e,t,i)=>{so(e)&&$w(e)&&n(e),t&&Uw(e,t,i)}}const SL=Ah(DL),ML=Ah(zw),TL=Ah(CL);function Ww(n,e){n.className=n.className.replace(e,"")}function Oh(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class Gw extends class AL extends class IL{constructor(){this.navigator=function EL(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){SL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&Oh(e.element,"ng-lazyloading"),function xL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&Ww(e.element,"ng-lazyloaded")}finally(e){Oh(e.element,"ng-lazyloaded"),Ww(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return so(t)&&$w(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],zw(o),Uw(o,r,i)):(o=new Image,so(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),so(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;TL(i,s,r),Oh(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;ML(i,e,r)}isDisabled(){return function vO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new de,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return ut({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),le.create(s=>{const o=this.intersectionSubject.pipe(Ln(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const Rh=new I("LazyLoadImageHooks");let RL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new xe,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new Bv,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(St(t=>this.hooks.onAttributeChange(t)),St(t=>t.onStateChange.emit({reason:"setup"})),St(t=>this.hooks.setup(t)),qs(t=>t.imagePath?this.hooks.getObservable(t).pipe(function OL(n,e){return t=>t.pipe(St(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),Ln(i=>n.isVisible(i,e)),Bn(1),St(()=>e.onStateChange.emit({reason:"start-loading"})),go(()=>n.loadImage(e)),St(()=>e.onStateChange.emit({reason:"mount-image"})),St(i=>n.setLoadedImage(i,e)),St(()=>e.onStateChange.emit({reason:"loading-succeeded"})),He(()=>!0),bw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),ut(!1))),St(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function wL(){return bL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(Bn(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(J),w(ya),w(Rh))},n.\u0275dir=Ce({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[zi]}),n})(),kL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[{provide:Rh,useClass:Gw}]}),n})();class jt{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?jt.empty:new jt(t,i,r,s)}static fromWindow(e){return new jt(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new jt(t,i,r,s):jt.empty}}jt.empty=new jt(0,0,0,0);var oo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,PL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(oo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),BL=oo&&window.Promise?function FL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function NL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},PL))}};function qw(n){return n&&"[object Function]"==={}.toString.call(n)}function Oi(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function kh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function ao(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=Oi(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:ao(kh(n))}function Yw(n){return n&&n.referenceNode?n.referenceNode:n}var Kw=oo&&!(!window.MSInputMethodContext||!document.documentMode),Zw=oo&&/MSIE 10/.test(navigator.userAgent);function jr(n){return 11===n?Kw:10===n?Zw:Kw||Zw}function $r(n){if(!n)return document.documentElement;for(var e=jr(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===Oi(t,"position")?$r(t):t:n?n.ownerDocument.documentElement:document.documentElement}function Ph(n){return null!==n.parentNode?Ph(n.parentNode):n}function Tl(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function VL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||$r(n.firstElementChild)===n)}(o)?o:$r(o);var a=Ph(n);return a.host?Tl(a.host,e):Tl(n,Ph(e).host)}function Ur(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function HL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ur(e,"top"),r=Ur(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function Xw(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function Qw(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],jr(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function Jw(n){var e=n.body,t=n.documentElement,i=jr(10)&&getComputedStyle(t);return{height:Qw("Height",e,t,i),width:Qw("Width",e,t,i)}}var jL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},$L=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),zr=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},$t=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function ri(n){return $t({},n,{right:n.left+n.width,bottom:n.top+n.height})}function Fh(n){var e={};try{if(jr(10)){e=n.getBoundingClientRect();var t=Ur(n,"top"),i=Ur(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?Jw(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=Oi(n);l-=Xw(u,"x"),c-=Xw(u,"y"),r.width-=l,r.height-=c}return ri(r)}function Nh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=jr(10),r="HTML"===e.nodeName,s=Fh(n),o=Fh(e),a=ao(n),l=Oi(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=ri({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=HL(d,e)),d}function UL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Nh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:Ur(t),a=e?0:Ur(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return ri(l)}function eE(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Oi(n,"position"))return!0;var t=kh(n);return!!t&&eE(t)}function tE(n){if(!n||!n.parentElement||jr())return document.documentElement;for(var e=n.parentElement;e&&"none"===Oi(e,"transform");)e=e.parentElement;return e||document.documentElement}function Lh(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?tE(n):Tl(n,Yw(e));if("viewport"===i)s=UL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=ao(kh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Nh(a,o,r);if("HTML"!==a.nodeName||eE(o))s=l;else{var c=Jw(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function zL(n){return n.width*n.height}function nE(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=Lh(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return $t({key:h},a[h],{area:zL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function iE(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?tE(e):Tl(e,Yw(t));return Nh(t,r,i)}function rE(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function Il(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function sE(n,e,t){t=t.split("-")[0];var i=rE(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[Il(a)],r}function lo(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function oE(n,e,t){var i=void 0===t?n:n.slice(0,function WL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=lo(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&qw(s)&&(e.offsets.popper=ri(e.offsets.popper),e.offsets.reference=ri(e.offsets.reference),e=s(e,r))}),e}function GL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=iE(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=nE(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=sE(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=oE(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function aE(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function Bh(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function qL(){return this.state.isDestroyed=!0,aE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Bh("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function lE(n){var e=n.ownerDocument;return e?e.defaultView:window}function cE(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||cE(ao(s.parentNode),e,t,i),i.push(s)}function YL(n,e,t,i){t.updateBound=i,lE(n).addEventListener("resize",t.updateBound,{passive:!0});var r=ao(n);return cE(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function KL(){this.state.eventsEnabled||(this.state=YL(this.reference,0,this.state,this.scheduleUpdate))}function XL(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function ZL(n,e){return lE(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Vh(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Hh(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Vh(e[t])&&(i="px"),n.style[t]=e[t]+i})}var nB=oo&&/Firefox/i.test(navigator.userAgent);function uE(n,e,t){var i=lo(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var dE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],jh=dE.slice(3);function hE(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=jh.indexOf(n),i=jh.slice(t+1).concat(jh.slice(0,t));return e?i.reverse():i}var mB={shift:{order:100,enabled:!0,fn:function hB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:zr({},l,s[l]),end:zr({},l,s[l]+s[c]-o[c])};n.offsets.popper=$t({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function uB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Vh(+t)?[+t,0]:function cB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(lo(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,m){return""===p[p.length-1]&&-1!==["+","-"].indexOf(m)?(p[p.length-1]=m,f=!0,p):f?(p[p.length-1]+=m,f=!1,p):p.concat(m)},[]).map(function(p){return function lB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?ri("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Vh(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function dB(n,e){var t=e.boundariesElement||$r(n.instance.popper);n.instance.reference===t&&(t=$r(t));var i=Bh("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Lh(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),zr({},f,p)},secondary:function(f){var p="right"===f?"left":"top",m=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(m=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),zr({},p,m)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=$t({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function aB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function rB(n,e){var t;if(!uE(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=rE(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=ri(n.offsets.popper);var m=a[d]+a[c]/2-p/2,_=Oi(n.instance.popper),v=parseFloat(_["margin"+u]),g=parseFloat(_["border"+u+"Width"]),E=m-n.offsets.popper[d]-v-g;return E=Math.max(Math.min(o[c]-p,E),0),n.arrowElement=i,n.offsets.arrow=(zr(t={},d,Math.round(E)),zr(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function oB(n,e){if(aE(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=Lh(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=Il(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=hE(i);break;case"counterclockwise":o=hE(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=Il(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),m=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&_,g=-1!==["top","bottom"].indexOf(i),H=!!e.flipVariations&&(g&&"start"===s&&f||g&&"end"===s&&p||!g&&"start"===s&&m||!g&&"end"===s&&_)||!!e.flipVariationsByContent&&(g&&"start"===s&&p||g&&"end"===s&&f||!g&&"start"===s&&_||!g&&"end"===s&&m);(h||v||H)&&(n.flipped=!0,(h||v)&&(i=o[l+1]),H&&(s=function sB(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=$t({},n.offsets.popper,sE(n.instance.popper,n.offsets.reference,n.placement)),n=oE(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function pB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=Il(e),n.offsets.popper=ri(r),n}},hide:{order:800,enabled:!0,fn:function fB(n){if(!uE(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=lo(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function iB(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=lo(n.instance.modifiers,function(E){return"applyStyle"===E.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,m,o=void 0!==s?s:e.gpuAcceleration,a=$r(n.instance.popper),l=Fh(a),c={position:r.position},u=function tB(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(v){return v},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,m=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!nB),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=Bh("transform");if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var v="right"===h?-1:1;c[d]=m*("bottom"===d?-1:1),c[h]=p*v,c.willChange=d+", "+h}return n.attributes=$t({},{"x-placement":n.placement},n.attributes),n.styles=$t({},c,n.styles),n.arrowStyles=$t({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function JL(n){return Hh(n.instance.popper,n.styles),function QL(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Hh(n.arrowElement,n.arrowStyles),n},onLoad:function eB(n,e,t,i,r){var s=iE(r,e,n,t.positionFixed),o=nE(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Hh(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},gB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:mB},xl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};jL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=BL(this.update.bind(this)),this.options=$t({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys($t({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=$t({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return $t({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&qw(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return $L(n,[{key:"update",value:function(){return GL.call(this)}},{key:"destroy",value:function(){return qL.call(this)}},{key:"enableEventListeners",value:function(){return KL.call(this)}},{key:"disableEventListeners",value:function(){return XL.call(this)}}]),n}();xl.Utils=("undefined"!=typeof window?window:global).PopperUtils,xl.placements=dE,xl.Defaults=gB;const _B=xl,yB=["popperViewRef"];function vB(n,e){1&n&&(Q(0,"div",5),yi(1),re()),2&n&&O("innerHTML",Y().text,Zp)}function bB(n,e){1&n&&(Q(0,"div",6),yi(1,1),re())}const fE=["*","*"];let Ri=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),pE=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),mE=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:pE.Auto,boundariesElement:"",trigger:Ri.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new xe,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Ri.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new _B(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(da),w(lt),w(Pn))},n.\u0275cmp=Gt({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&xr(yB,5),2&t){let r;On(r=Rn())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&Ne("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:fE,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(br(fE),Q(0,"div",0,1),te(2,vB,2,1,"div",2),te(3,bB,2,0,"div",3),Zn(4,"div",4),re()),2&t&&(Ts("display",i.displayType)("opacity",i.opacity),gn("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),O("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),We("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),k(2),O("ngIf",i.text),k(1),O("ngIf",!i.text),k(1),Ts("border-color",i.arrowColor),gn("__force-arrow",i.arrowColor),O("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[Md,ka,Us],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Ve{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=mE,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new xe,this.popperOnHidden=new xe,this.popperOnUpdate=new xe,Ve.baseOptions=Object.assign({},Ve.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Ri.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Ri.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Ri.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Ri.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Ve.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Ve.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Ve.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Ve.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Ve.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Ve.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Ve.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Ve.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Ve.assignDefined(e.popperOptions,Ve.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Ve.\u0275fac=function(e){return new(e||Ve)(w(lt),w(Pn),w(Xn),w(Ie),w(da),w("popperDefaults"))},Ve.\u0275dir=Ce({type:Ve,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[zi]}),Ve.baseOptions={showDelay:0,placement:pE.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Ri.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let wB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({imports:[[La]]}),n})();function EB(n,e){1&n&&mn(0)}function DB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",7),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,EB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" raised button"),k(1),O("ngTemplateOutlet",r)}}function CB(n,e){1&n&&mn(0)}function SB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",9),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,CB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" stroked button"),k(1),O("ngTemplateOutlet",r)}}function MB(n,e){1&n&&mn(0)}function TB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",10),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,MB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" flat button"),k(1),O("ngTemplateOutlet",r)}}function IB(n,e){1&n&&mn(0)}function xB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",11),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,IB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" icon button"),k(1),O("ngTemplateOutlet",r)}}function AB(n,e){1&n&&mn(0)}function OB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",12),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,AB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" fab button"),k(1),O("ngTemplateOutlet",r)}}function RB(n,e){1&n&&mn(0)}function kB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",13),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,RB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" mini fab button"),k(1),O("ngTemplateOutlet",r)}}function PB(n,e){1&n&&mn(0)}function FB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",14),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,PB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("aria-label",t.label+" unstyled button"),k(1),O("ngTemplateOutlet",r)}}function NB(n,e){1&n&&mn(0)}function LB(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",15),Ne("click",function(r){return Qe(t),Y().emitClick(r)}),te(2,NB,1,0,"ng-container",8),re(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),We("aria-label",t.label+" basic button"),k(1),O("ngTemplateOutlet",r)}}function BB(n,e){if(1&n&&(Q(0,"mat-icon",18),An(1),re()),2&n){const t=Y(2);O("ngStyle",t.buttonIconStyle),k(1),yn(t.icon)}}function VB(n,e){if(1&n&&(Q(0,"div"),An(1),re()),2&n){const t=Y(2);k(1),yn(t.label||"Button")}}function HB(n,e){if(1&n&&(te(0,BB,2,2,"mat-icon",16),te(1,VB,2,1,"div",17)),2&n){const t=Y();O("ngIf",t.icon),k(1),O("ngIf",!t.icon)}}function jB(n,e){1&n&&Zn(0,"img",19),2&n&&O("lazyLoad",Y().imgUrl)}function $B(n,e){if(1&n&&(Q(0,"div"),An(1),re()),2&n){const t=Y();Jt(t.popup.style),k(1),yn(t.popup.text)}}let gE=(()=>{class n{emitClick(t){t.stopPropagation(),this.onClick()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(nt(0,0),te(1,DB,3,7,"ng-container",1),te(2,SB,3,7,"ng-container",1),te(3,TB,3,7,"ng-container",1),te(4,xB,3,7,"ng-container",1),te(5,OB,3,7,"ng-container",1),te(6,kB,3,7,"ng-container",1),te(7,FB,3,7,"ng-container",1),te(8,LB,3,8,"ng-container",2),it(),te(9,HB,2,2,"ng-template",null,3,ly),Q(11,"popper-content",null,4),te(13,jB,1,1,"img",5),te(14,$B,2,3,"div",6),re()),2&t&&(O("ngSwitch",i.view),k(1),O("ngSwitchCase","raised"),k(1),O("ngSwitchCase","stroked"),k(1),O("ngSwitchCase","flat"),k(1),O("ngSwitchCase","icon"),k(1),O("ngSwitchCase","fab"),k(1),O("ngSwitchCase","miniFab"),k(1),O("ngSwitchCase","unstyled"),k(6),O("ngIf",i.imgUrl),k(1),O("ngIf",i.popup))},directives:[Na,mv,w1,gL,Md,Ve,yv,gv,Us,kw,mE,RL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class hV extends Gw{loadImage({imagePath:e}){return function _E(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let fV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Vv(gE,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[{provide:Rh,useClass:hV},{provide:_l,useClass:jw}],imports:[[Pd,Tb,E1,vL,Pw,kL,wB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();function vE(n,e=pl){const i=function pV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new mV(i,e))}class mV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new qh(e,this.delay,this.scheduler))}}class qh extends he{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(qh.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new gV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(dt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(dt.createComplete()),this.unsubscribe()}}class gV{constructor(e,t){this.time=e,this.notification=t}}const _V=["mat-menu-item",""];function yV(n,e){1&n&&(function jf(){L.lFrame.currentNamespace="svg"}(),Q(0,"svg",2),Zn(1,"polygon",3),re())}const bE=["*"];function vV(n,e){if(1&n){const t=Ft();Q(0,"div",0),Ne("keydown",function(r){return Qe(t),Y()._handleKeydown(r)})("click",function(){return Qe(t),Y().closed.emit("click")})("@transformMenu.start",function(r){return Qe(t),Y()._onAnimationStart(r)})("@transformMenu.done",function(r){return Qe(t),Y()._onAnimationDone(r)}),Q(1,"div",1),yi(2),re()()}if(2&n){const t=Y();O("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),We("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const Al={transformMenu:Bd("transformMenu",[Ga("void",Et({opacity:0,transform:"scale(0.8)"})),Ks("void => enter",Ys("120ms cubic-bezier(0, 0, 0.2, 1)",Et({opacity:1,transform:"scale(1)"}))),Ks("* => void",Ys("100ms 25ms linear",Et({opacity:0})))]),fadeInItems:Bd("fadeInItems",[Ga("showing",Et({opacity:1})),Ks("void => *",[Et({opacity:0}),Ys("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},bV=new I("MatMenuContent"),Yh=new I("MAT_MENU_PANEL"),wV=mw(fw(class{}));let Ol=(()=>{class n extends wV{constructor(t,i,r,s,o){var a;super(),this._elementRef=t,this._document=i,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new de,this._focused=new de,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}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(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(G),w(wl),w(Yh,8),w(Pn))},n.\u0275cmp=Gt({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&Ne("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(We("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),gn("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[xn],attrs:_V,ngContentSelectors:bE,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(br(),yi(0),Zn(1,"div",0),te(2,yV,2,0,"svg",1)),2&t&&(k(1),O("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),k(1),O("ngIf",i._triggersSubmenu))},directives:[Sh,Us],encapsulation:2,changeDetection:0}),n})();const wE=new I("mat-menu-default-options",{providedIn:"root",factory:function EV(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let DV=0,uo=(()=>{class n{constructor(t,i,r,s){this._elementRef=t,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ir,this._tabSubscription=X.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new de,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+DV++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Pr(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Pr(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new YN(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ml(this._directDescendantItems),qs(t=>Bi(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const s=t.toArray(),o=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[o]&&!s[o].disabled?r.setActiveItem(o):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ml(this._directDescendantItems),qs(i=>Bi(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case 27:vh(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(t).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(t=this.xPosition,i=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===t,s["mat-menu-after"]="after"===t,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ml(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(J),w(wE),w(Pn))},n.\u0275dir=Ce({type:n,contentQueries:function(t,i,r){if(1&t&&(pa(r,bV,5),pa(r,Ol,5),pa(r,Ol,4)),2&t){let s;On(s=Rn())&&(i.lazyContent=s.first),On(s=Rn())&&(i._allItems=s),On(s=Rn())&&(i.items=s)}},viewQuery:function(t,i){if(1&t&&xr(vn,5),2&t){let r;On(r=Rn())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),CV=(()=>{class n extends uo{constructor(t,i,r,s){super(t,i,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(J),w(wE),w(Pn))},n.\u0275cmp=Gt({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&We("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[V_([{provide:Yh,useExisting:n}]),xn],ngContentSelectors:bE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(br(),te(0,vV,3,6,"ng-template"))},directives:[ka],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Al.transformMenu,Al.fadeInItems]},changeDetection:0}),n})();const EE=new I("mat-menu-scroll-strategy"),MV={provide:EE,deps:[Lr],useFactory:function SV(n){return()=>n.scrollStrategies.reposition()}},CE=eo({passive:!0});let TV=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=X.EMPTY,this._hoverSubscription=X.EMPTY,this._menuCloseSubscription=X.EMPTY,this._handleTouchStart=d=>{Eh(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof uo?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,CE),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,CE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),i=t.getConfig(),r=i.positionStrategy;this._setPosition(r),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof uo&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(ht(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof uo?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Ln(r=>"void"===r.toState),Bn(1),ht(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,i=this.menu.parentMenu;for(;i;)t++,i=i.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new zb({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(i=>{const r="start"===i.connectionPair.overlayX?"after":"before",s="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(r,s)):this.menu.setPositionClasses(r,s)})}_setPosition(t){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Bi(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ln(o=>o!==this._menuItemInstance),Ln(()=>this._menuOpen)):ut(),i)}_handleMousedown(t){wh(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ln(t=>t===this._menuItemInstance&&!t.disabled),vE(0,uh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof uo&&this.menu._isAnimating?this.menu._animationDone.pipe(Bn(1),vE(0,uh),ht(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Hb(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(lt),w(EE),w(Yh,8),w(Ol,10),w(ph,8),w(wl),w(J))},n.\u0275dir=Ce({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(t,i){1&t&&Ne("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&We("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),SE=(()=>{class n extends TV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=function ep(n){return $n(()=>{const e=n.prototype.constructor,t=e[Cn]||gc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Cn]||gc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}(n)))(i||n)}}(),n.\u0275dir=Ce({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[xn]}),n})(),IV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[MV],imports:[[La,wn,vw,Zb],gl,wn]}),n})();const xV=["childMenu"];function AV(n,e){if(1&n&&(Q(0,"mat-icon"),An(1),re()),2&n){const t=Y(2).$implicit;k(1),yn(t.icon)}}function OV(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",3),te(2,AV,2,1,"mat-icon",2),Q(3,"span"),An(4),re()(),Q(5,"drayman-menu-item-internal",4,5),Ne("itemClick",function(r){return Qe(t),Y(2).itemClick.emit(r)}),re(),it()}if(2&n){const t=Fe(6),i=Y().$implicit;k(1),O("disabled",i.disabled)("matMenuTriggerFor",t.childMenu),k(1),O("ngIf",i.icon),k(2),yn(i.label),k(1),O("items",i.items)}}function RV(n,e){if(1&n&&(Q(0,"mat-icon"),An(1),re()),2&n){const t=Y(2).$implicit;k(1),yn(t.icon)}}function kV(n,e){if(1&n){const t=Ft();nt(0),Q(1,"button",6),Ne("click",function(){Qe(t);const r=Y().$implicit;return Y().itemClick.emit(r)}),te(2,RV,2,1,"mat-icon",2),Q(3,"span"),An(4),re()(),it()}if(2&n){const t=Y().$implicit;k(1),O("disabled",t.disabled),k(1),O("ngIf",t.icon),k(2),yn(t.label)}}function PV(n,e){if(1&n&&(nt(0),te(1,OV,7,5,"ng-container",2),te(2,kV,5,3,"ng-container",2),it()),2&n){const t=e.$implicit;k(1),O("ngIf",null==t.items?null:t.items.length),k(1),O("ngIf",!(null!=t.items&&t.items.length))}}let FV=(()=>{class n{constructor(){this.items=[],this.itemClick=new xe}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-item-internal"]],viewQuery:function(t,i){if(1&t&&xr(xV,7),2&t){let r;On(r=Rn())&&(i.childMenu=r.first)}},inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:3,vars:1,consts:[["childMenu","matMenu"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""],["mat-menu-item","",3,"disabled","click"]],template:function(t,i){1&t&&(Q(0,"mat-menu",null,0),te(2,PV,3,2,"ng-container",1),re()),2&t&&(k(2),O("ngForOf",i.items))},directives:[CV,av,Us,Ol,SE,kw,n],styles:[""]}),n})(),NV=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-internal"]],inputs:{items:"items",onItemClick:"onItemClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",buttonStyle:"buttonStyle"},decls:3,vars:9,consts:[[1,"trigger-btn",3,"label","view","icon","tooltip","disabled","imgUrl","buttonStyle","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""]],template:function(t,i){if(1&t&&(Zn(0,"drayman-button-internal",0),Q(1,"drayman-menu-item-internal",1,2),Ne("itemClick",function(s){return i.onItemClick(s)}),re()),2&t){const r=Fe(2);O("label",i.label)("view",i.view)("icon",i.icon)("tooltip",i.tooltip)("disabled",i.disabled)("imgUrl",i.imgUrl)("buttonStyle",i.buttonStyle)("matMenuTriggerFor",r.childMenu),k(1),O("items",i.items)}},directives:[gE,SE,FV],styles:[".trigger-btn[_ngcontent-%COMP%]{display:block}"]}),n})(),LV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=Vv(NV,{injector:this.injector});customElements.define("drayman-menu",t)}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275mod=be({type:n}),n.\u0275inj=me({providers:[{provide:_l,useClass:jw}],imports:[[Pd,Tb,fV,IV,Pw]]}),n})();(function nA(){Ny=!1})(),LR().bootstrapModule(LV).catch(n=>console.error(n))})();
|