1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,i){t.exports=i("zUnb")},XypG:function(t,e){},YCLl:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.EOL="\r\n",t.BOM="\ufeff",t.DEFAULT_FIELD_SEPARATOR=",",t.DEFAULT_DECIMAL_SEPARATOR=".",t.DEFAULT_QUOTE='"',t.DEFAULT_SHOW_TITLE=!1,t.DEFAULT_TITLE="My Report",t.DEFAULT_FILENAME="mycsv.csv",t.DEFAULT_SHOW_LABELS=!1,t.DEFAULT_USE_BOM=!0,t.DEFAULT_HEADER=[],t.DEFAULT_NO_DOWNLOAD=!1,t.DEFAULT_NULL_TO_EMPTY_STRING=!1,t}();e.CsvConfigConsts=n,e.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalseparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,noDownload:n.DEFAULT_NO_DOWNLOAD,nullToEmptyString:n.DEFAULT_NULL_TO_EMPTY_STRING},e.Angular5Csv=function(){function t(t,i,n){this.csv="";var a=n||{};this.data="object"!=typeof t?JSON.parse(t):t,this._options=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var a,l=o(t),c=1;c<arguments.length;c++){for(var h in e=Object(arguments[c]))s.call(e,h)&&(l[h]=e[h]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(e);for(var u=0;u<a.length;u++)r.call(e,a[u])&&(l[a[u]]=e[a[u]])}}return l}({},e.ConfigDefaults,a),this._options.filename&&(this._options.filename=i),this.generateCsv()}return t.prototype.generateCsv=function(){if(this._options.useBom&&(this.csv+=n.BOM),this._options.showTitle&&(this.csv+=this._options.title+"\r\n\n"),this.getHeaders(),this.getBody(),""!=this.csv){if(this._options.noDownload)return this.csv;var t=new Blob([this.csv],{type:"text/csv;charset=utf8;"});if(navigator.msSaveBlob){var e=this._options.filename.replace(/ /g,"_")+".csv";navigator.msSaveBlob(t,e)}else{encodeURI(this.csv);var i=document.createElement("a");i.href=URL.createObjectURL(t),i.setAttribute("visibility","hidden"),i.download=this._options.filename.replace(/ /g,"_")+".csv",document.body.appendChild(i),i.click(),document.body.removeChild(i)}}else console.log("Invalid data")},t.prototype.getHeaders=function(){var t=this;if(this._options.headers.length>0){var e=this._options.headers.reduce((function(e,i){return e+i+t._options.fieldSeparator}),"");e=e.slice(0,-1),this.csv+=e+n.EOL}},t.prototype.getBody=function(){for(var t=0;t<this.data.length;t++){var e="";for(var i in this.data[t])e+=this.formatData(this.data[t][i])+this._options.fieldSeparator;e=e.slice(0,-1),this.csv+=e+n.EOL}},t.prototype.formatData=function(e){return"locale"===this._options.decimalseparator&&t.isFloat(e)?e.toLocaleString():"."!==this._options.decimalseparator&&t.isFloat(e)?e.toString().replace(".",this._options.decimalseparator):"string"==typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):this._options.nullToEmptyString?null===e?"":e:"boolean"==typeof e?e?"TRUE":"FALSE":e},t.isFloat=function(t){return+t===t&&(!isFinite(t)||Boolean(t%1))},t}();var s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}},zUnb:function(t,e,i){"use strict";i.r(e);var n={};function s(t){return"function"==typeof t}i.r(n),i.d(n,"audit",(function(){return jv})),i.d(n,"auditTime",(function(){return $v})),i.d(n,"buffer",(function(){return py})),i.d(n,"bufferCount",(function(){return gy})),i.d(n,"bufferTime",(function(){return vy})),i.d(n,"bufferToggle",(function(){return Ey})),i.d(n,"bufferWhen",(function(){return Ty})),i.d(n,"catchError",(function(){return fm})),i.d(n,"combineAll",(function(){return Ry})),i.d(n,"combineLatest",(function(){return uS})),i.d(n,"concat",(function(){return dS})),i.d(n,"concatAll",(function(){return Xp})),i.d(n,"concatMap",(function(){return Nm})),i.d(n,"concatMapTo",(function(){return My})),i.d(n,"count",(function(){return Fy})),i.d(n,"debounce",(function(){return Uy})),i.d(n,"debounceTime",(function(){return qy})),i.d(n,"defaultIfEmpty",(function(){return um})),i.d(n,"delay",(function(){return Zy})),i.d(n,"delayWhen",(function(){return tv})),i.d(n,"dematerialize",(function(){return Vy})),i.d(n,"distinct",(function(){return rv})),i.d(n,"distinctUntilChanged",(function(){return lv})),i.d(n,"distinctUntilKeyChanged",(function(){return uv})),i.d(n,"elementAt",(function(){return Cv})),i.d(n,"endWith",(function(){return pS})),i.d(n,"every",(function(){return Cm})),i.d(n,"exhaust",(function(){return pv})),i.d(n,"exhaustMap",(function(){return gv})),i.d(n,"expand",(function(){return yv})),i.d(n,"filter",(function(){return Qp})),i.d(n,"finalize",(function(){return Mm})),i.d(n,"find",(function(){return xv})),i.d(n,"findIndex",(function(){return Ev})),i.d(n,"first",(function(){return wm})),i.d(n,"groupBy",(function(){return Dv})),i.d(n,"ignoreElements",(function(){return Rv})),i.d(n,"isEmpty",(function(){return Bv})),i.d(n,"last",(function(){return mm})),i.d(n,"map",(function(){return H})),i.d(n,"mapTo",(function(){return qv})),i.d(n,"materialize",(function(){return Yv})),i.d(n,"max",(function(){return Xv})),i.d(n,"merge",(function(){return mS})),i.d(n,"mergeAll",(function(){return J})),i.d(n,"mergeMap",(function(){return K})),i.d(n,"flatMap",(function(){return K})),i.d(n,"mergeMapTo",(function(){return Jv})),i.d(n,"mergeScan",(function(){return ew})),i.d(n,"min",(function(){return sw})),i.d(n,"multicast",(function(){return at})),i.d(n,"observeOn",(function(){return ry})),i.d(n,"onErrorResumeNext",(function(){return rw})),i.d(n,"pairwise",(function(){return lw})),i.d(n,"partition",(function(){return dw})),i.d(n,"pluck",(function(){return pw})),i.d(n,"publish",(function(){return mw})),i.d(n,"publishBehavior",(function(){return fw})),i.d(n,"publishLast",(function(){return _w})),i.d(n,"publishReplay",(function(){return gw})),i.d(n,"race",(function(){return bw})),i.d(n,"reduce",(function(){return Rm})),i.d(n,"repeat",(function(){return yw})),i.d(n,"repeatWhen",(function(){return Cw})),i.d(n,"retry",(function(){return kw})),i.d(n,"retryWhen",(function(){return Dw})),i.d(n,"refCount",(function(){return et})),i.d(n,"sample",(function(){return Ow})),i.d(n,"sampleTime",(function(){return Rw})),i.d(n,"scan",(function(){return Tm})),i.d(n,"sequenceEqual",(function(){return Lw})),i.d(n,"share",(function(){return ht})),i.d(n,"shareReplay",(function(){return Uw})),i.d(n,"single",(function(){return $w})),i.d(n,"skip",(function(){return Ww})),i.d(n,"skipLast",(function(){return Kw})),i.d(n,"skipUntil",(function(){return Qw}
1)),i.d(n,"skipWhile",(function(){return eC})),i.d(n,"startWith",(function(){return Am})),i.d(n,"subscribeOn",(function(){return uC})),i.d(n,"switchAll",(function(){return pC})),i.d(n,"switchMap",(function(){return km})),i.d(n,"switchMapTo",(function(){return fC})),i.d(n,"take",(function(){return bm})),i.d(n,"takeLast",(function(){return nm})),i.d(n,"takeUntil",(function(){return gC})),i.d(n,"takeWhile",(function(){return yC})),i.d(n,"tap",(function(){return om})),i.d(n,"throttle",(function(){return SC})),i.d(n,"throttleTime",(function(){return IC})),i.d(n,"throwIfEmpty",(function(){return cm})),i.d(n,"timeInterval",(function(){return TC})),i.d(n,"timeout",(function(){return BC})),i.d(n,"timeoutWith",(function(){return RC})),i.d(n,"timestamp",(function(){return LC})),i.d(n,"toArray",(function(){return zC})),i.d(n,"window",(function(){return UC})),i.d(n,"windowCount",(function(){return qC})),i.d(n,"windowTime",(function(){return YC})),i.d(n,"windowToggle",(function(){return eS})),i.d(n,"windowWhen",(function(){return sS})),i.d(n,"withLatestFrom",(function(){return aS})),i.d(n,"zip",(function(){return fS})),i.d(n,"zipAll",(function(){return hS}));let r=!1;const o={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 r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function a(t){setTimeout(()=>{throw t})}const l={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete(){}},c=Array.isArray||(t=>t&&"number"==typeof t.length);function h(t){return null!==t&&"object"==typeof t}function u(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}u.prototype=Object.create(Error.prototype);const d=u;let p=(()=>{class t{constructor(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t,e=!1;if(this.closed)return;let{_parent:i,_parents:n,_unsubscribe:r,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,l=n?n.length:0;for(;i;)i.remove(this),i=++a<l&&n[a]||null;if(s(r))try{r.call(this)}catch(u){e=!0,t=u instanceof d?m(u.errors):[u]}if(c(o))for(a=-1,l=o.length;++a<l;){const i=o[a];if(h(i))try{i.unsubscribe()}catch(u){e=!0,t=t||[],u instanceof d?t=t.concat(m(u.errors)):t.push(u)}}if(e)throw new d(t)}add(e){let i=e;switch(typeof e){case"function":i=new t(e);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof t)){const e=i;i=new t,i._subscriptions=[e]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(i._addParent(this)){const t=this._subscriptions;t?t.push(i):this._subscriptions=[i]}return i}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}_addParent(t){let{_parent:e,_parents:i}=this;return e!==t&&(e?i?-1===i.indexOf(t)&&(i.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function m(t){return t.reduce((t,e)=>t.concat(e instanceof d?e.errors:e),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends p{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new _(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new _(this,t,e,i)}}[f](){return this}static create(t,e,i){const n=new g(t,e,i);return n.syncErrorThrowable=!1,n}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{_parent:t,_parents:e}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this}}class _ extends g{constructor(t,e,i,n){let r;super(),this._parentSubscriber=t;let o=this;
vendor: 6,566 bytes, line 1
1s(e)?r=e:e&&(r=e.next,i=e.error,n=e.complete,e!==l&&(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=i,this._complete=n}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.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:i}=o;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;a(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.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(i){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw i;a(i)}}__tryOrSetError(t,e,i){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(a(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}function b(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof g?i:null}return!0}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function w(...t){return C(t)}function C(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:v}let S=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof g)return t;if(t[f])return t[f]()}return t||e||i?new g(t,e,i):new g(l)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),b(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[y](){return this}pipe(...t){return 0===t.length?this:C(t)(this)}toPromise(t){return new(t=x(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function k(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}k.prototype=Object.create(Error.prototype);const I=k;class E extends p{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class D extends g{constructor(t){super(t),this.destination=t}}let A=(()=>{class t extends S{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new D(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new I;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;s<i;s++)n[s].next(t)}}error(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;s<i;s++)n[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new I;this.isStopped=!0;const{observers:t}=this,e=t.length,i=t.slice();for(let n=0;n<e;n++)i[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new I;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new E(this,t))}asObservable(){const t=new S;return t.source=this,t}}return t.create=(t,e)=>new T(t,e),t})();class T extends A{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):p.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}class P extends g{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=t=>e=>{for(let i=0,n=t.length;i<n&&!e.closed;i++)e.next(t[i]);e.closed||e.complete()},R=t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,a),e);function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const F=M(),B=t=>e=>{const i=t[F]();for(;;){const t=i.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof i.return&&e.add(()=>{i.return&&i.return()}),e},L=t=>e=>{const i=t[y]();if("function"!=typeof i.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return i.subscribe(e)},V=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function j(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const z=t=>{if(t instanceof S)return e=>t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e);if(t&&"function"==typeof t[y])return L(t);if(V(t))return N(t);if(j(t))return R(t);if(t&&"function"==typeof t[F])return B(t);
1{const e=h(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.")}};function U(t,e,i,n,s=new P(t,i,n)){if(!s.closed)return z(e)(s)}class $ extends g{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function H(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new q(t,e))}}class q{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new W(t,this.project,this.thisArg))}}class W extends g{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function G(t,e){return new S(e?i=>{const n=new p;let s=0;return n.add(e.schedule((function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()}))),n}:N(t))}function Y(t,e){if(!e)return t instanceof S?t:new S(z(t));if(null!=t){if(function(t){return t&&"function"==typeof t[y]}(t))return function(t,e){return new S(e?i=>{const n=new p;return n.add(e.schedule(()=>{const s=t[y]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n}:L(t))}(t,e);if(j(t))return function(t,e){return new S(e?i=>{const n=new p;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n}:R(t))}(t,e);if(V(t))return G(t,e);if(function(t){return t&&"function"==typeof t[F]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new S(e?i=>{const n=new p;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[F](),n.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())})))})),n}:B(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function K(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(K((i,n)=>Y(t(i,n)).pipe(H((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new Z(t,i)))}class Z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new X(t,this.project,this.concurrent))}}class X extends ${constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,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 i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,i)}_innerSub(t,e,i){const n=new P(this,void 0,void 0);this.destination.add(n),U(this,t,e,i,n)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,i,n,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Q(t){return t}function J(t=Number.POSITIVE_INFINITY){return K(Q,t)}function tt(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return O(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof S?t[0]:J(e)(G(t,i))}function et(){return function(t){return t.lift(new it(t))}}class it{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new nt(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class nt extends g{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:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}const st=class extends S{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}
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 p,t.add(this.source.subscribe(new ot(this.getSubject(),this))),t.closed?(this._connection=null,t=p.EMPTY):this._connection=t),t}refCount(){return et()(this)}}.prototype,rt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:st._subscribe},_isComplete:{value:st._isComplete,writable:!0},getSubject:{value:st.getSubject},connect:{value:st.connect},refCount:{value:st.refCount}};class ot extends D{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 at(t,e){return function(i){let n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new lt(n,e));const s=Object.create(i,rt);return s.source=i,s.subjectFactory=n,s}}class lt{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,n=this.subjectFactory(),s=i(n).subscribe(t);return s.add(e.subscribe(n)),s}}function ct(){return new A}function ht(){return t=>et()(at(ct)(t))}function ut(t){return{toString:t}.toString()}function dt(t,e,i){return ut(()=>{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const pt=dt("Inject",t=>({token:t})),mt=dt("Optional"),ft=dt("Self"),gt=dt("SkipSelf");var _t=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 bt(t){for(let e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function yt(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function vt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function Ct(t){return St(t,t[kt])||St(t,t[Dt])}function St(t,e){return e&&e.token===t?e:null}function xt(t){return t&&(t.hasOwnProperty(It)||t.hasOwnProperty(At))?t[It]:null}const kt=bt({"\u0275prov":bt}),It=bt({"\u0275inj":bt}),Et=bt({"\u0275provFallback":bt}),Dt=bt({ngInjectableDef:bt}),At=bt({ngInjectorDef:bt});function Tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Tt).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 i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function Ot(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Pt=bt({__forward_ref__:bt});function Nt(t){return t.__forward_ref__=Nt,t.toString=function(){return Tt(this())},t}function Rt(t){return Mt(t)?t():t}function Mt(t){return"function"==typeof t&&t.hasOwnProperty(Pt)&&t.__forward_ref__===Nt}const Ft="undefined"!=typeof globalThis&&globalThis,Bt="undefined"!=typeof window&&window,Lt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt="undefined"!=typeof global&&global,jt=Ft||Vt||Bt||Lt,zt=bt({"\u0275cmp":bt}),Ut=bt({"\u0275dir":bt}),$t=bt({"\u0275pipe":bt}),Ht=bt({"\u0275mod":bt}),qt=bt({"\u0275loc":bt}),Wt=bt({"\u0275fac":bt}),Gt=bt({__NG_ELEMENT_ID__:bt});
1class Yt{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=vt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Kt=new Yt("INJECTOR",-1),Zt={},Xt=/\n/gm,Qt=bt({provide:String,useValue:bt});let Jt,te=void 0;function ee(t){const e=te;return te=t,e}function ie(t){const e=Jt;return Jt=t,e}function ne(t,e=_t.Default){if(void 0===te)throw new Error("inject() must be called from an injection context");return null===te?oe(t,void 0,e):te.get(t,e&_t.Optional?null:void 0,e)}function se(t,e=_t.Default){return(Jt||ne)(Rt(t),e)}const re=se;function oe(t,e,i){const n=Ct(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&_t.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${Tt(t)}]`)}function ae(t){const e=[];for(let i=0;i<t.length;i++){const n=Rt(t[i]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");let t=void 0,i=_t.Default;for(let e=0;e<n.length;e++){const s=n[e];s instanceof mt||"Optional"===s.ngMetadataName||s===mt?i|=_t.Optional:s instanceof gt||"SkipSelf"===s.ngMetadataName||s===gt?i|=_t.SkipSelf:s instanceof ft||"Self"===s.ngMetadataName||s===ft?i|=_t.Self:t=s instanceof pt||s===pt?s.token:s}e.push(se(t,i))}else e.push(se(n))}return e}class le{get(t,e=Zt){if(e===Zt){const e=new Error(`NullInjectorError: No provider for ${Tt(t)}!`);throw e.name="NullInjectorError",e}return e}}class ce{}class he{}function ue(t,e){t.forEach(t=>Array.isArray(t)?ue(t,e):e(t))}function de(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function pe(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function me(t,e){const i=[];for(let n=0;n<t;n++)i.push(e);return i}function fe(t,e,i){let n=_e(t,e);return n>=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function ge(t,e){const i=_e(t,e);if(i>=0)return t[1|i]}function _e(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const be=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),ye=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),ve={},we=[];let Ce=0;function Se(t){return ut(()=>{const e=t.type,i=e.prototype,n={},s={type:e,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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:i.ngOnInit||null,doCheck:i.ngDoCheck||null,afterContentInit:i.ngAfterContentInit||null,afterContentChecked:i.ngAfterContentChecked||null,afterViewInit:i.ngAfterViewInit||null,afterViewChecked:i.ngAfterViewChecked||null,onDestroy:i.ngOnDestroy||null,onPush:t.changeDetection===be.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||we,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ye.Emulated,id:"c",styles:t.styles||we,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,o=t.features,a=t.pipes;return s.id+=Ce++,s.inputs=De(t.inputs,n),s.outputs=De(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=r?()=>("function"==typeof r?r():r).map(xe):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(ke):null,s})}function xe(t){return Oe(t)||function(t){return t[Ut]||null}(t)}function ke(t){return function(t){return t[$t]||null}(t)}const Ie={};function Ee(t){const e={type:t.type,bootstrap:t.bootstrap||we,declarations:t.declarations||we,imports:t.imports||we,exports:t.exports||we,transitiveCompileScopes:null,
1schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ut(()=>{Ie[t.id]=t.type}),e}function De(t,e){if(null==t)return ve;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const Ae=Se;function Te(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Oe(t){return t[zt]||null}function Pe(t,e){return t.hasOwnProperty(Wt)?t[Wt]:null}function Ne(t,e){const i=t[Ht]||null;if(!i&&!0===e)throw new Error(`Type ${Tt(t)} does not have '\u0275mod' property.`);return i}function Re(t){return Array.isArray(t)&&"object"==typeof t[1]}function Me(t){return Array.isArray(t)&&!0===t[1]}function Fe(t){return 0!=(8&t.flags)}function Be(t){return 2==(2&t.flags)}function Le(t){return 1==(1&t.flags)}function Ve(t){return null!==t.template}function je(t){return 0!=(512&t[2])}let ze=void 0;function Ue(t){return!!t.listen}const $e={createRenderer:(t,e)=>void 0!==ze?ze:"undefined"!=typeof document?document:void 0};function He(t){for(;Array.isArray(t);)t=t[0];return t}function qe(t,e){return He(e[t+19])}function We(t,e){return He(e[t.index])}function Ge(t,e){return t.data[e+19]}function Ye(t,e){return t[e+19]}function Ke(t,e){const i=e[t];return Re(i)?i:i[0]}function Ze(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Xe(t){return 4==(4&t[2])}function Qe(t){return 128==(128&t[2])}function Je(t,e){return null===t||null==e?null:t[e]}function ti(t){t[18]=0}const ei={lFrame:wi(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ii(){return ei.bindingsEnabled}function ni(){return ei.lFrame.lView}function si(){return ei.lFrame.tView}function ri(t){ei.lFrame.contextLView=t}function oi(){return ei.lFrame.previousOrParentTNode}function ai(t,e){ei.lFrame.previousOrParentTNode=t,ei.lFrame.isParent=e}function li(){return ei.lFrame.isParent}function ci(){ei.lFrame.isParent=!1}function hi(){return ei.checkNoChangesMode}function ui(t){ei.checkNoChangesMode=t}function di(){const t=ei.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function pi(){return ei.lFrame.bindingIndex++}function mi(t){const e=ei.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function fi(t,e){const i=ei.lFrame;i.bindingIndex=i.bindingRootIndex=t,i.currentDirectiveIndex=e}function gi(){return ei.lFrame.currentQueryIndex}function _i(t){ei.lFrame.currentQueryIndex=t}function bi(t,e){const i=vi();ei.lFrame=i,i.previousOrParentTNode=e,i.lView=t}function yi(t,e){const i=vi(),n=t[1];ei.lFrame=i,i.previousOrParentTNode=e,i.lView=t,i.tView=n,i.contextLView=t,i.bindingIndex=n.bindingStartIndex}function vi(){const t=ei.lFrame,e=null===t?null:t.child;return null===e?wi(t):e}function wi(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ci(){const t=ei.lFrame;return ei.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Si=Ci;function xi(){const t=Ci();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ki(){return ei.lFrame.selectedIndex}function Ii(t){ei.lFrame.selectedIndex=t}function Ei(){const t=ei.lFrame;return Ge(t.tView,t.selectedIndex)}function Di(){ei.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ai(){ei.lFrame.currentNamespace=null}function Ti(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){const e=t.data[i];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-i,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(i,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(i,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-i,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(i,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(i,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,e.onDestroy)}}function Oi(t,e,i){Ri(t,e,3,i)}function Pi(t,e,i,n){(3&t[2])===i&&Ri(t,e,i,n)}function Ni(t,e){let i=t[2];(3&i)===e&&(i&=1023,i+=1,t[2]=i)}function Ri(t,e,i,n){const s=null!=n?n:-1;let r=0;for(let o=void 0!==n?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=n&&r>=n)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Mi(t,i,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Mi(t,e,i,n){const s=i[n]<0,r=i[n+1],o=t[s?-i[n]:i[n]];s?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,r.call(o)):r.call(o)}class Fi{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Bi(t,e,i){const n=Ue(t);let s=0;for(;s<i.length;){const r=i[s];if("number"==typeof r){if(0!==r)break;s++;const o=i[s++],a=i[s++],l=i[s++];n?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=i[++s];Vi(o)?n&&t.setProperty(e,o,a):n?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Li(t){return 3===t||4===t||6===t}function Vi(t){return 64===t.charCodeAt(0)}function ji(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){const s=e[n];"number"==typeof s?i=s:0===i||zi(t,i,s,null,-1===i||2===i?e[++n]:null)}}return t}function zi(t,e,i,n,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const i=t[r++];if("number"==typeof i){if(i===e){o=-1;break}if(i>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;
1if(e===i){if(null===n)return void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,i),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function Ui(t){return-1!==t}function $i(t){return 32767&t}function Hi(t){return t>>16}function qi(t,e){let i=Hi(t),n=e;for(;i>0;)n=n[15],i--;return n}function Wi(t){return"string"==typeof t?t:null==t?"":""+t}function Gi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Wi(t)}const Yi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jt))();function Ki(t){return{name:"body",target:t.ownerDocument.body}}function Zi(t){return t instanceof Function?t():t}let Xi=!0;function Qi(t){const e=Xi;return Xi=t,e}let Ji=0;function tn(t,e){const i=nn(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,en(n.data,t),en(e,null),en(n.blueprint,null));const s=sn(t,e),r=t.injectorIndex;if(Ui(s)){const t=$i(s),i=qi(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function en(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function sn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=e[6],n=1;for(;i&&-1===i.injectorIndex;)i=(e=e[15])?e[6]:null,n++;return i?i.injectorIndex|n<<16:-1}function rn(t,e,i){!function(t,e,i){let n="string"!=typeof i?i[Gt]:i.charCodeAt(0)||0;null==n&&(n=i[Gt]=Ji++);const s=255&n,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?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,i)}function on(t,e,i,n=_t.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Gt];return"number"==typeof e&&e>0?255&e:e}(i);if("function"==typeof s){bi(e,t);try{const t=s();if(null!=t||n&_t.Optional)return t;throw new Error(`No provider for ${Gi(i)}!`)}finally{Si()}}else if("number"==typeof s){if(-1===s)return new pn(t,e);let r=null,o=nn(t,e),a=-1,l=n&_t.Host?e[16][6]:null;for((-1===o||n&_t.SkipSelf)&&(a=-1===o?sn(t,e):e[o+8],dn(n,!1)?(r=e[1],o=$i(a),e=qi(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(un(s,o,t.data)){const t=ln(o,e,i,r,n,l);if(t!==an)return t}dn(n,e[1].data[o+8]===l)&&un(s,o,e)?(r=t,o=$i(a),e=qi(a,e)):o=-1}}}if(n&_t.Optional&&void 0===s&&(s=null),0==(n&(_t.Self|_t.Host))){const t=e[9],r=ie(void 0);try{return t?t.get(i,s,n&_t.Optional):oe(i,s,n&_t.Optional)}finally{ie(r)}}if(n&_t.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Gi(i)}]`)}const an={};function ln(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],l=cn(a,o,i,null==n?Be(a)&&Xi:n!=o&&3===a.type,s&_t.Host&&r===a);return null!==l?hn(e,o,l,a):an}function cn(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=65535&r,l=t.directiveStart,c=r>>16,h=s?a+c:t.directiveEnd;for(let u=n?a:a+c;u<h;u++){const t=o[u];if(u<l&&i===t||u>=l&&t.type===i)return u}if(s){const t=o[l];if(t&&Ve(t)&&t.type===i)return l}return null}function hn(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof Fi){const o=s;if(o.resolving)throw new Error(`Circular dep for ${Gi(r[i])}`);const a=Qi(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=ie(o.injectImpl)),bi(t,n);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{onChanges:n,onInit:s,doCheck:r}=e;n&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)),s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{o.injectImpl&&ie(l),Qi(a),o.resolving=!1,Si()}}return s}function un(t,e,i){const n=64&t,s=32&t;let r;return r=128&t?n?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:n?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(r&1<<t)}function dn(t,e){return!(t&_t.Self||t&_t.Host&&e)}class pn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return on(this._tNode,this._lView,t,void 0,e)}}function mn(t){return ut(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,i=e[Wt]||function t(e){const i=e;if(Mt(e))return()=>{const e=t(Rt(i));return e?e():null};let n=Pe(i);if(null===n){const t=xt(i);n=t&&t.factory}return n||null}(e);return null!==i?i:t=>new t})}function fn(t){return t.ngDebugContext}function gn(t){return t.ngOriginalError}function _n(t,...e){t.error(...e)}class bn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||_n}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?fn(t)?fn(t):this._findContext(gn(t)):null}_findOriginalError(t){let e=gn(t);for(;e&&gn(e);)e=gn(e);return e}}class yn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class vn extends yn{getTypeName(){return"HTML"}}class wn extends yn{getTypeName(){return"Style"}}
1class Cn extends yn{getTypeName(){return"Script"}}class Sn extends yn{getTypeName(){return"URL"}}class xn extends yn{getTypeName(){return"ResourceURL"}}function kn(t){return t instanceof yn?t.changingThisBreaksApplicationSecurity:t}function In(t,e){const i=En(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===e}function En(t){return t instanceof yn&&t.getTypeName()||null}let Dn=!0,An=!1;function Tn(){return An=!0,Dn}class On{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(n){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const i=e.response.body;return i.removeChild(i.firstChild),i}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0<n;n--){const i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Pn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Nn=/^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 Rn(t){return(t=String(t)).match(Pn)||t.match(Nn)?t:(Tn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Mn(t){const e={};for(const i of t.split(","))e[i]=!0;return e}function Fn(...t){const e={};for(const i of t)for(const t in i)i.hasOwnProperty(t)&&(e[t]=!0);return e}const Bn=Mn("area,br,col,hr,img,wbr"),Ln=Mn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vn=Mn("rp,rt"),jn=Fn(Vn,Ln),zn=Fn(Bn,Fn(Ln,Mn("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")),Fn(Vn,Mn("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")),jn),Un=Mn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$n=Mn("srcset"),Hn=Fn(Un,$n,Mn("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"),Mn("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")),qn=Mn("script,style,template");class Wn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&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(!zn.hasOwnProperty(e))return this.sanitizedSomething=!0,!qn.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let s=0;s<i.length;s++){const t=i.item(s),e=t.name,r=e.toLowerCase();if(!Hn.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Un[r]&&(o=Rn(o)),$n[r]&&(n=o,o=(n=String(n)).split(",").map(t=>Rn(t.trim())).join(", ")),this.buf.push(" ",e,'="',Kn(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();zn.hasOwnProperty(e)&&!Bn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Kn(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 Gn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yn=/([^\#-~ |!])/g;function Kn(t){return t.replace(/&/g,"&").replace(Gn,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Yn,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Zn;function Xn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Qn=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Jn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ts=/^url\(([^)]+)\)$/;function es(t){const e=function(){const t=ni();return t&&t[12]}();return e?e.sanitize(Qn.URL,t)||"":In(t,"URL")?kn(t):Rn(Wi(t))}function is(t,e){t.__ngContext__=e}function ns(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function ss(){throw new Error("Cannot mix multi providers and regular providers")}function rs(t,e,i){let n=t.length;for(;;){const s=t.indexOf(e,i);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const i=e.length;if(s+i===n||t.charCodeAt(s+i)<=32)return s}i=s+1}}function os(t,e,i){let n=0;for(;n<t.length;){let s=t[n++];if(i&&"class"===s){if(s=t[n],-1!==rs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function as(t,e,i){return e===(0!==t.type||i?t.tagName:"ng-template")}function ls(t,e,i){let n=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Li(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&n){if(n=2|1&n,""!==l&&!as(t,l,i)||""===l&&1===e.length){if(cs(n))return!1;o=!0}}else{const c=8&n?l:e[++a];if(8&n&&null!==t.attrs){if(!os(t.attrs,c,i)){if(cs(n))return!1;o=!0}continue}const h=hs(8&n?"class":l,s,0==t.type&&"ng-template"!==t.tagName,i);if(-1===h){if(cs(n))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":s[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==rs(e,c,0)||2&n&&c!==t){if(cs(n))return!1;o=!0}}}}else{if(!o&&!cs(n)&&!cs(l))return!1;if(o&&cs(l))continue;o=!1,n=l|1&n}}return cs(n)||o}function cs(t){return 0==(1&t)}function hs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s<e.length;){const n=e[s];if(n===t)return s;if(3===n||6===n)i=!0;else{if(1===n||2===n){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===n)break;if(0===n){s+=4;continue}}s+=i?1:2}return-1}return function(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){if(t[i]===e)return i;i++}return-1}(e,t)}function us(t,e,i=!1){for(let n=0;n<e.length;n++)if(ls(t,e[n],i))return!0;return!1}function ds(t,e){t:for(let i=0;i<e.length;i++){const n=e[i];if(t.length===n.length){for(let e=0;e<t.length;e++)if(t[e]!==n[e])continue t;return!0}}return!1}function ps(t,e){return t?":not("+e.trim()+")":e}function ms(t){let e=t[0],i=1,n=2,s="",r=!1;for(;i<t.length;){let o=t[i];if("string"==typeof o)if(2&n){const e=t[++i];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||cs(o)||(e+=ps(r,s),s=""),n=o,r=r||!cs(n);i++}return""!==s&&(e+=ps(r,s)),e}const fs={};function gs(t){const e=t[3];return Me(e)?e[3]:e}function _s(t){bs(si(),ni(),ki()+t,hi())}function bs(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Oi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Pi(e,n,0,i)}Ii(i)}function ys(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function ws(t){return 2|t}function Cs(t){return(131068&t)>>2}function Ss(t,e){return-131069&t|e<<2}function xs(t){return 1|t}function ks(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const s=i[n],r=i[n+1];if(-1!==r){const i=t.data[r];_i(s),i.contentQueries(2,e[r],r)}}}function Is(t,e,i){return Ue(e)?e.createElement(t,i):null===i?e.createElement(t):e.createElementNS(i,t)}
1function Es(t,e,i,n,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|n,ti(h),h[3]=h[15]=t,h[8]=i,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 Ds(t,e,i,n,s,r){const o=i+19,a=t.data[o]||function(t,e,i,n,s,r){const o=oi(),a=li(),l=a?o:o&&o.parent,c=t.data[i]=Ls(0,l&&l!==e?l:null,n,i,s,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,n,s,r);return ai(a,!0),a}function As(t,e,i){yi(e,e[6]);try{const n=t.viewQuery;null!==n&&ar(1,n,i);const s=t.template;null!==s&&Ps(t,e,s,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ks(t,e),t.staticViewQueries&&ar(2,t.viewQuery,i);const r=t.components;null!==r&&function(t,e){for(let i=0;i<e.length;i++)ir(t,e[i])}(e,r)}finally{e[2]&=-5,xi()}}function Ts(t,e,i,n){const s=e[2];if(256==(256&s))return;yi(e,e[6]);const r=hi();try{ti(e),ei.lFrame.bindingIndex=t.bindingStartIndex,null!==i&&Ps(t,e,i,2,n);const o=3==(3&s);if(!r)if(o){const i=t.preOrderCheckHooks;null!==i&&Oi(e,i,null)}else{const i=t.preOrderHooks;null!==i&&Pi(e,i,0,null),Ni(e,0)}if(function(t){let e=t[13];for(;null!==e;){let i;if(Me(e)&&(i=e[2])>>1==-1){for(let t=9;t<e.length;t++){const i=e[t],n=i[1];Qe(i)&&Ts(n,i,n.template,i[8])}0!=(1&i)&&tr(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&ks(t,e),!r)if(o){const i=t.contentCheckHooks;null!==i&&Oi(e,i)}else{const i=t.contentHooks;null!==i&&Pi(e,i,1),Ni(e,1)}!function(t,e){try{const i=t.expandoInstructions;if(null!==i){let n=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<i.length;t++){const o=i[t];"number"==typeof o?o<=0?(r=0-o,Ii(r),n+=9+i[++t],s=n):n+=o:(null!==o&&(fi(n,s),o(2,e[s])),s++)}}}finally{Ii(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let i=0;i<e.length;i++)er(t,e[i])}(e,a);const l=t.viewQuery;if(null!==l&&ar(2,l,n),!r)if(o){const i=t.viewCheckHooks;null!==i&&Oi(e,i)}else{const i=t.viewHooks;null!==i&&Pi(e,i,2),Ni(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73)}finally{xi()}}function Os(t,e,i,n){const s=e[10],r=!hi(),o=Xe(e);try{r&&!o&&s.begin&&s.begin(),o&&As(t,e,n),Ts(t,e,i,n)}finally{r&&!o&&s.end&&s.end()}}function Ps(t,e,i,n,s){const r=ki();try{Ii(-1),2&n&&e.length>19&&bs(t,e,0,hi()),i(n,s)}finally{Ii(r)}}function Ns(t,e,i){if(Fe(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s<n;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,i[s],s)}}}function Rs(t,e,i){ii()&&(function(t,e,i,n){const s=i.directiveStart,r=i.directiveEnd;t.firstCreatePass||tn(i,e),is(n,e);const o=i.initialInputs;for(let a=s;a<r;a++){const n=t.data[a],r=Ve(n);r&&Zs(e,i,n);const l=hn(e,t,a,i);is(l,e),null!==o&&Xs(0,a-s,l,n,0,o),r&&(Ke(i.index,e)[8]=l)}}(t,e,i,We(i,e)),128==(128&i.flags)&&function(t,e,i){const n=i.directiveStart,s=i.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=i.index-19;try{Ii(a);for(let i=n;i<s;i++){const n=t.data[i],s=e[i];null!==n.hostBindings||0!==n.hostVars||null!==n.hostAttrs?Hs(n,s):o&&r.push(null)}}finally{Ii(-1)}}(t,e,i))}function Ms(t,e,i=We){const n=e.localNames;if(null!==n){let s=e.index+1;for(let r=0;r<n.length;r+=2){const o=n[r+1],a=-1===o?i(e,t):t[o];t[s++]=a}}}function Fs(t){return t.tView||(t.tView=Bs(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function Bs(t,e,i,n,s,r,o,a,l,c){const h=19+n,u=h+s,d=function(t,e){const i=[];for(let n=0;n<e;n++)i.push(n<t?null:fs);return i}(h,u);return d[1]={type:t,id:e,blueprint:d,template:i,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:c}}
1function Ls(t,e,i,n,s,r){return{type:i,index:n,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,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,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Vs(t,e,i){for(let n in t)if(t.hasOwnProperty(n)){const s=t[n];(i=null===i?{}:i).hasOwnProperty(n)?i[n].push(e,s):i[n]=[e,s]}return i}function js(t,e,i,n,s,r,o,a){const l=We(e,i);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[n])?(pr(t,i,c,n,s),Be(e)&&function(t,e){const i=Ke(e,t);16&i[2]||(i[2]|=64)}(i,e.index)):3===e.type&&(n="class"===(u=n)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=o?o(s,e.tagName||"",n):s,Ue(r)?r.setProperty(l,n,s):Vi(n)||(l.setProperty?l.setProperty(n,s):l[n]=s))}function zs(t,e,i,n){let s=!1;if(ii()){const r=function(t,e,i){const n=t.directiveRegistry;let s=null;if(n)for(let r=0;r<n.length;r++){const o=n[r];us(i,o.selectors,!1)&&(s||(s=[]),rn(tn(i,e),t,o.type),Ve(o)?(2&i.flags&&ns(i),Ws(t,i),s.unshift(o)):s.push(o))}return s}(t,e,i),o=null===n?null:{"":-1};if(null!==r){let n=0;s=!0,Ys(i,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}qs(t,i,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];i.mergedAttrs=ji(i.mergedAttrs,c.hostAttrs),Ks(t,e,c),Gs(t.data.length-1,c,o),null!==c.contentQueries&&(i.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(i.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i.index-19),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i.index-19),l=!0),Us(t,c),n+=c.hostVars}!function(t,e){const i=e.directiveEnd,n=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<i;l++){const t=n[l],e=t.inputs;r.push(null!==s?Qs(e,s):null),o=Vs(e,l,o),a=Vs(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,i),$s(t,e,n)}o&&function(t,e,i){if(e){const n=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=i[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);n.push(e[t],s)}}}(i,n,o)}return i.mergedAttrs=ji(i.mergedAttrs,i.attrs),s}function Us(t,e){const i=t.expandoInstructions;i.push(e.hostBindings),0!==e.hostVars&&i.push(e.hostVars)}function $s(t,e,i){for(let n=0;n<i;n++)e.push(fs),t.blueprint.push(fs),t.data.push(null)}function Hs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qs(t,e,i){const n=19-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(n,s,i)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gs(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Ve(e)&&(i[""]=t)}}function Ys(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function Ks(t,e,i){t.data.push(i);const n=i.factory||(i.factory=Pe(i.type)),s=new Fi(n,Ve(i),null);t.blueprint.push(s),e.push(s)}
1function Zs(t,e,i){const n=We(e,t),s=Fs(i),r=t[10],o=nr(t,Es(t,s,null,i.onPush?64:16,n,e,r,r.createRenderer(n,i)));t[e.index]=o}function Xs(t,e,i,n,s,r){const o=r[e];if(null!==o){const t=n.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?n.setInput(i,a,s,r):i[r]=a}}}function Qs(t,e){let i=null,n=0;for(;n<e.length;){const s=e[n];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===i&&(i=[]),i.push(s,t[s],e[n+1])),n+=2}else n+=2;else n+=4}return i}function Js(t,e,i,n){return new Array(t,!0,-2,e,null,null,n,i,null)}function tr(t,e){const i=t[5];for(let n=0;n<i.length;n++){const t=i[n],s=t[3][3][16];if(s!==e&&0==(16&s[2])){const e=t[1];Ts(e,t,e.template,t[8])}}}function er(t,e){const i=Ke(e,t);if(Qe(i)&&80&i[2]){const t=i[1];Ts(t,i,t.template,i[8])}}function ir(t,e){const i=Ke(e,t),n=i[1];!function(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}(n,i),As(n,i,i[8])}function nr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sr(t){for(;t;){t[2]|=64;const e=gs(t);if(je(t)&&!e)return t;t=e}return null}function rr(t,e,i){const n=e[10];n.begin&&n.begin();try{Ts(t,e,t.template,i)}catch(s){throw dr(e,s),s}finally{n.end&&n.end()}}function or(t){!function(t){for(let e=0;e<t.components.length;e++){const i=t.components[e],n=Ze(i),s=n[1];Os(s,n,s.template,i)}}(t[8])}function ar(t,e,i){_i(0),e(t,i)}const lr=(()=>Promise.resolve(null))();function cr(t){return t[7]||(t[7]=[])}function hr(t){return t.cleanup||(t.cleanup=[])}function ur(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function dr(t,e){const i=t[9],n=i?i.get(bn,null):null;n&&n.handleError(e)}function pr(t,e,i,n,s){for(let r=0;r<i.length;){const o=i[r++],a=i[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,n,a):l[a]=s}}function mr(t,e){const i=e[3];return-1===t.index?Me(i)?i:null:i}function fr(t,e){const i=mr(t,e);return i?Er(e[11],i[7]):null}function gr(t,e,i,n,s){if(null!=n){let r,o=!1;Me(n)?r=n:Re(n)&&(o=!0,n=n[0]);const a=He(n);0===t&&null!==i?null==s?kr(e,i,a):xr(e,i,a,s||null):1===t&&null!==i?xr(e,i,a,s||null):2===t?function(t,e,i){const n=Er(t,e);n&&function(t,e,i,n){Ue(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==He(i)&&gr(e,t,n,r,s);for(let o=9;o<i.length;o++){const s=i[o];Pr(s[1],s,t,e,n,r)}}(e,t,r,i,s)}}function _r(t,e,i,n){const s=fr(t.node,e);s&&Pr(t,e,e[11],i?1:2,s,n)}function br(t,e){const i=t[5],n=i.indexOf(e);i.splice(n,1)}function yr(t,e){if(t.length<=9)return;const i=9+e,n=t[i];if(n){const s=n[17];null!==s&&s!==t&&br(s,n),e>0&&(t[i-1][4]=n[4]);const r=pe(t,9+e);_r(n[1],n,!1,null);const o=r[5];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function vr(t,e){if(!(256&e[2])){const i=e[11];Ue(i)&&i.destroyNode&&Pr(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Cr(t[1],t);for(;e;){let i=null;if(Re(e))i=e[13];else{const t=e[9];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Re(e)&&Cr(e[1],e),e=wr(e,t);null===e&&(e=t),Re(e)&&Cr(e[1],e),i=e&&e[4]}e=i}}(e)}}function wr(t,e){let i;return Re(t)&&(i=t[6])&&2===i.type?mr(i,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 i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n<i.length;n+=2){const t=e[i[n]];t instanceof Fi||i[n+1].call(t)}}(t,e),function(t,e){const i=t.cleanup;if(null!==i){const t=e[7];for(let n=0;n<i.length-1;n+=2)if("string"==typeof i[n]){const s=i[n+1],r="function"==typeof s?s(e):He(e[s]),o=t[i[n+2]],a=i[n+3];"boolean"==typeof a?r.removeEventListener(i[n],o,a):a>=0?t[a]():t[-a].unsubscribe(),n+=2}else i[n].call(t[i[n+1]]);e[7]=null}}(t,e);const i=e[6];i&&3===i.type&&Ue(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Me(e[3])){n!==e[3]&&br(n,e);const i=e[5];null!==i&&i.detachView(t)}}}function Sr(t,e,i){let n=e.parent;for(;null!=n&&(4===n.type||5===n.type);)n=(e=n).parent;if(null==n){const t=i[6];return 2===t.type?fr(t,i):i[0]}if(e&&5===e.type&&4&e.flags)return We(e,i).parentNode;if(2&n.flags){const e=t.data,i=e[e[n.index].directiveStart].encapsulation;if(i!==ye.ShadowDom&&i!==ye.Native)return null}return We(n,i)}function xr(t,e,i,n){Ue(t)?t.insertBefore(e,i,n):e.insertBefore(i,n,!0)}function kr(t,e,i){Ue(t)?t.appendChild(e,i):e.appendChild(i)}function Ir(t,e,i,n){null!==n?xr(t,e,i,n):kr(t,e,i)}function Er(t,e){return Ue(t)?t.parentNode(e):e.parentNode}function Dr(t,e){if(2===t.type){const i=mr(t,e);return null===i?null:Tr(i.indexOf(e,9)-9,i)}return 4===t.type||5===t.type?We(t,e):null}function Ar(t,e,i,n){const s=Sr(t,n,e);if(null!=s){const t=e[11],r=Dr(n.parent||e[6],e);if(Array.isArray(i))for(let e=0;e<i.length;e++)Ir(t,s,i[e],r);else Ir(t,s,i,r)}}function Tr(t,e){const i=9+t+1;if(i<e.length){const t=e[i],n=t[1].firstChild;if(null!==n)return function t(e,i){if(null!==i){const n=i.type;if(3===n)return We(i,e);if(0===n)return Tr(-1,e[i.index]);
1if(4===n||5===n){const n=i.child;if(null!==n)return t(e,n);{const t=e[i.index];return Me(t)?Tr(-1,t):He(t)}}{const n=e[16],s=n[6],r=gs(n),o=s.projection[i.projection];return null!=o?t(r,o):t(e,i.next)}}return null}(t,n)}return e[7]}function Or(t,e,i,n,s,r,o){for(;null!=i;){const a=n[i.index],l=i.type;o&&0===e&&(a&&is(He(a),n),i.flags|=4),64!=(64&i.flags)&&(4===l||5===l?(Or(t,e,i.child,n,s,r,!1),gr(e,t,s,a,r)):1===l?Nr(t,e,n,i,s,r):gr(e,t,s,a,r)),i=o?i.projectionNext:i.next}}function Pr(t,e,i,n,s,r){Or(i,n,t.node.child,e,s,r,!1)}function Nr(t,e,i,n,s,r){const o=i[16],a=o[6].projection[n.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)gr(e,t,s,a[l],r);else Or(t,e,a,o[3],s,r,!0)}function Rr(t,e,i){Ue(t)?t.setAttribute(e,"style",i):e.style.cssText=i}function Mr(t,e,i){Ue(t)?""===i?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i):e.className=i}class Fr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,i,n,s,r=!1){for(;null!==n;){const o=i[n.index];if(null!==o&&s.push(He(o)),Me(o))for(let e=9;e<o.length;e++){const i=o[e],n=i[1].firstChild;null!==n&&t(i[1],i,n,s)}const a=n.type;if(4===a||5===a)t(e,i,n.child,s);else if(1===a){const e=i[16],r=e[6],o=gs(e);let a=r.projection[n.projection];null!==a&&null!==o&&t(o[1],o,a,s,!0)}n=r?n.projectionNext:n.next}return s}(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}vr(this._lView[1],this._lView)}onDestroy(t){var e,i,n;e=this._lView[1],n=t,cr(i=this._lView).push(n),e.firstCreatePass&&hr(e).push(i[7].length-1,null)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){rr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){ui(!0);try{rr(t,e,i)}finally{ui(!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 Br extends Fr{constructor(t){super(t),this._view=t}detectChanges(){or(this._view)}checkNoChanges(){!function(t){ui(!0);try{or(t)}finally{ui(!1)}}(this._view)}get context(){return null}}let Lr,Vr,jr;function zr(t,e,i){return Lr||(Lr=class extends t{}),new Lr(We(e,i))}function Ur(t,e,i,n){return Vr||(Vr=class extends t{constructor(t,e,i){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Es(this._declarationView,e,t,16,null,e.node);i[17]=this._declarationView[this._declarationTContainer.index];const n=this._declarationView[5];null!==n&&(i[5]=n.createEmbeddedView(e)),As(e,i,t);const s=new Fr(i);return s._tViewNode=i[6],s}}),0===i.type?new Vr(n,i,zr(e,i,n)):null}function $r(t,e,i,n){let s;jr||(jr=class extends t{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostView=i}get element(){return zr(e,this._hostTNode,this._hostView)}get injector(){return new pn(this._hostTNode,this._hostView)}get parentInjector(){const t=sn(this._hostTNode,this._hostView),e=qi(t,this._hostView),i=function(t,e,i){if(i.parent&&-1!==i.parent.injectorIndex){const t=i.parent.injectorIndex;let e=i.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let n=Hi(t),s=e,r=e[6];for(;n>1;)s=s[15],r=s[6],n--;return r}(t,this._hostView,this._hostTNode);return Ui(t)&&null!=i?new pn(i,e):new pn(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-9}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(ce,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}
1insert(t,e){const i=t._lView,n=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Me(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new jr(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,i,n){const s=9+n,r=i.length;n>0&&(i[s-1][4]=e),n<r-9?(e[4]=i[s],de(i,9+n,e)):(i.push(e),e[4]=null),e[3]=i;const o=e[17];null!==o&&i!==o&&function(t,e){const i=t[5],n=e[3][3][16];16!=(16&n[2])&&e[16]!==n&&(t[2]|=1),null===i?t[5]=[e]:i.push(e)}(o,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(n,i,this._lContainer,s),_r(n,i,!0,Tr(s,this._lContainer)),t.attachToViewContainerRef(this),de(this._lContainer[8],s,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);(function(t,e){const i=yr(t,e);i&&vr(i[1],i)})(this._lContainer,e),pe(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),i=yr(this._lContainer,e);return i&&null!=pe(this._lContainer[8],e)?new Fr(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=n[i.index];if(Me(r))s=r,function(t,e){t[2]=-2}(s);else{let t;if(4===i.type)t=He(r);else if(t=n[11].createComment(""),je(n)){const e=n[11],s=We(i,n);xr(e,Er(e,s),t,function(t,e){return Ue(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ar(n[1],n,t,i);n[i.index]=s=Js(r,n,t,i),nr(n,s)}return new jr(s,i,n)}function Hr(t=!1){return function(t,e,i){if(!i&&Be(t)){const i=Ke(t.index,e);return new Fr(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Fr(e[16],e):null}(oi(),ni(),t)}let qr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Wr(),t})();const Wr=Hr,Gr=new Yt("Set Injector scope."),Yr={},Kr={},Zr=[];let Xr=void 0;function Qr(){return void 0===Xr&&(Xr=new le),Xr}function Jr(t,e=null,i=null,n){return new to(t,i,e||Qr(),n)}class to{constructor(t,e,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ue(e,i=>this.processProvider(i,t,e)),ue([t],t=>this.processInjectorType(t,[],s)),this.records.set(Kt,no(void 0,this));const r=this.records.get(Gr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:Tt(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=Zt,i=_t.Default){this.assertNotDestroyed();const n=ee(this);try{if(!(i&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Yt)&&Ct(t);e=i&&this.injectableDefInScope(i)?no(eo(t),Yr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&_t.Self?Qr():this.parent).get(t,e=i&_t.Optional&&e===Zt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(Tt(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Tt(e);if(Array.isArray(e))s=e.map(Tt).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):Tt(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(Xt,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{ee(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(Tt(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=Rt(t)))return!1;let n=xt(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=xt(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{ue(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:i,providers:n}=t[e];ue(n,t=>this.processProvider(t,i,n||Zr))}}this.injectorDefTypes.add(r),this.records.set(r,no(n.factory,Yr));const a=n.providers;if(null!=a&&!o){const e=t;ue(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ro(t=Rt(t))?t:Rt(t&&t.provide);
1const s=function(t,e,i){return so(t)?no(void 0,t.useValue):no(io(t,e,i),Yr)}(t,e,i);if(ro(t)||!0!==t.multi){const t=this.records.get(n);t&&void 0!==t.multi&&ss()}else{let e=this.records.get(n);e?void 0===e.multi&&ss():(e=no(void 0,Yr,!0),e.factory=()=>ae(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Kr?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(Tt(t)):e.value===Yr&&(e.value=Kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.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 eo(t){const e=Ct(t),i=null!==e?e.factory:Pe(t);if(null!==i)return i;const n=xt(t);if(null!==n)return n.factory;if(t instanceof Yt)throw new Error(`Token ${Tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=me(e,"?");throw new Error(`Can't resolve all parameters for ${Tt(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[kt]||t[Dt]||t[Et]&&t[Et]());if(e){const i=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 "${i}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function io(t,e,i){let n=void 0;if(ro(t)){const e=Rt(t);return Pe(e)||eo(e)}if(so(t))n=()=>Rt(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...ae(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>se(Rt(t.useExisting));else{const s=Rt(t&&(t.useClass||t.provide));if(s||function(t,e,i){let n="";throw t&&e&&(n=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==i?"?"+i+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${Tt(t)}'`+n)}(e,i,t),!function(t){return!!t.deps}(t))return Pe(s)||eo(s);n=()=>new s(...ae(t.deps))}var s;return n}function no(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function so(t){return null!==t&&"object"==typeof t&&Qt in t}function ro(t){return"function"==typeof t}const oo=function(t,e,i){return function(t,e=null,i=null,n){const s=Jr(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Zt,t.NULL=new le,t.\u0275prov=vt({token:t,providedIn:"any",factory:()=>se(Kt)}),t.__NG_ELEMENT_ID__=-1,t})();const lo=new Yt("AnalyzeForEntryComponents");let co=new Map;const ho=new Set;function uo(t){return"string"==typeof t?t:t.text()}function po(t,e){let i=t.styles,n=t.classes,s=0;for(let r=0;r<e.length;r++){const t=e[r];"number"==typeof t?s=t:1==s?n=Ot(n,t):2==s&&(i=Ot(i,t+": "+e[++r]+";"))}null!==i&&(t.styles=i),null!==n&&(t.classes=n)}let mo=null;function fo(){if(!mo){const t=jt.Symbol;if(t&&t.iterator)mo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(mo=i)}}}return mo}function go(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class _o{constructor(t){this.wrapped=t}static wrap(t){return new _o(t)}static unwrap(t){return _o.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof _o}}function bo(t){return!!yo(t)&&(Array.isArray(t)||!(t instanceof Map)&&fo()in t)}function yo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function vo(t,e,i){return t[e]=i}function wo(t,e,i){return!Object.is(t[e],i)&&(t[e]=i,!0)}function Co(t,e,i,n){const s=ni();return wo(s,pi(),e)&&(si(),function(t,e,i,n,s,r){const o=We(t,e),a=e[11];if(null==n)Ue(a)?a.removeAttribute(o,i,r):o.removeAttribute(i);else{const e=null==s?Wi(n):s(n,t.tagName||"",i);Ue(a)?a.setAttribute(o,i,e,r):r?o.setAttributeNS(r,i,e):o.setAttribute(i,e)}}(Ei(),s,t,e,i,n)),Co}function So(t,e,i,n){return wo(t,pi(),i)?e+Wi(i)+n:fs}function xo(t,e,i,n,s,r,o,a){const l=ni(),c=si(),h=t+19,u=c.firstCreatePass?function(t,e,
1i,n,s,r,o,a,l){const c=e.consts,h=Ds(e,i[6],t,0,o||null,Je(c,a));zs(e,i,h,Je(c,l)),Ti(e,h);const u=h.tViews=Bs(2,-1,n,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Ls(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,i,n,s,r,o):c.data[h];ai(u,!1);const d=l[11].createComment("");Ar(c,l,d,u),is(d,l),nr(l,l[h]=Js(d,l,d,u)),Le(u)&&Rs(c,l,u),null!=o&&Ms(l,u,a)}function ko(t){return Ye(ei.lFrame.contextLView,t)}function Io(t,e=_t.Default){const i=ni();return null==i?se(t,e):on(oi(),i,Rt(t),e)}function Eo(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n<t;){const s=i[n];if(Li(s))break;if(0===s)n+=2;else if("number"==typeof s)for(n++;n<t&&"string"==typeof i[n];)n++;else{if(s===e)return i[n+1];n+=2}}}return null}(oi(),t)}function Do(){throw new Error("invalid")}function Ao(t,e,i){const n=ni();return wo(n,pi(),e)&&js(si(),Ei(),n,t,e,n[11],i,!1),Ao}function To(t,e,i,n,s){const r=s?"class":"style";pr(t,i,e.inputs[r],r,n)}function Oo(t,e,i,n){const s=ni(),r=si(),o=19+t,a=s[11],l=s[o]=Is(e,a,ei.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,i,n,s,r,o){const a=e.consts,l=Je(a,r),c=Ds(e,i[6],t,3,s,l);return zs(e,i,c,Je(a,o)),null!==c.mergedAttrs&&po(c,c.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,i,n):r.data[o];ai(c,!0);const h=c.mergedAttrs;null!==h&&Bi(a,l,h);const u=c.classes;null!==u&&Mr(a,l,u);const d=c.styles;null!==d&&Rr(a,l,d),Ar(r,s,l,c),0===ei.lFrame.elementDepthCount&&is(l,s),ei.lFrame.elementDepthCount++,Le(c)&&(Rs(r,s,c),Ns(r,c,s)),null!==n&&Ms(s,c)}function Po(){let t=oi();li()?ci():(t=t.parent,ai(t,!1));const e=t;ei.lFrame.elementDepthCount--;const i=si();i.firstCreatePass&&(Ti(i,t),Fe(t)&&i.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&To(i,e,ni(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&To(i,e,ni(),e.styles,!1)}function No(t,e,i,n){Oo(t,e,i,n),Po()}function Ro(t,e,i){const n=ni(),s=si(),r=t+19,o=s.firstCreatePass?function(t,e,i,n,s){const r=e.consts,o=Je(r,n),a=Ds(e,i[6],t,4,"ng-container",o);return null!==o&&po(a,o),zs(e,i,a,Je(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}
1(t,s,n,e,i):s.data[r];ai(o,!0);const a=n[r]=n[11].createComment("");Ar(s,n,a,o),is(a,n),Le(o)&&(Rs(s,n,o),Ns(s,o,n)),null!=i&&Ms(n,o)}function Mo(){let t=oi();const e=si();li()?ci():(t=t.parent,ai(t,!1)),e.firstCreatePass&&(Ti(e,t),Fe(t)&&e.queries.elementEnd(t))}function Fo(){return ni()}function Bo(t){return!!t&&"function"==typeof t.then}function Lo(t){return!!t&&"function"==typeof t.subscribe}function Vo(t,e,i=!1,n){const s=ni(),r=si(),o=oi();return zo(r,s,s[11],o,t,e,i,n),Vo}function jo(t,e,i=!1,n){const s=oi(),r=ni(),o=ur(s,r);return zo(si(),r,o,s,t,e,i,n),jo}function zo(t,e,i,n,s,r,o=!1,a){const l=Le(n),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=cr(e);let u=!0;if(3===n.type){const d=We(n,e),p=a?a(d):ve,m=p.target||d,f=h.length,g=a?t=>a(He(t[n.index])).target:n.index;if(Ue(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===i&&s[r+1]===n){const t=e[7],i=s[r+2];return t.length>i?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=$o(n,e,r,!1);const t=i.listen(p.name||m,s,r);h.push(r,t),c&&c.push(s,g,f,f+1)}}else r=$o(n,e,r,!0),m.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,f,o)}const d=n.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i<t;i+=2){const t=e[p[i]][p[i+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(s,n.index,o,-(o+1))}}}function Uo(t,e,i){try{return!1!==e(i)}catch(n){return dr(t,n),!1}}function $o(t,e,i,n){return function s(r){if(r===Function)return i;const o=2&t.flags?Ke(t.index,e):e;0==(32&e[2])&&sr(o);let a=Uo(e,i,r),l=s.__ngNextListenerFn__;for(;l;)a=Uo(e,l,r)&&a,l=l.__ngNextListenerFn__;return n&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Ho(t=1){return function(t){return(ei.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ei.lFrame.contextLView))[8]}(t)}function qo(t,e){let i=null;const n=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 s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===n?us(t,r,!0):ds(n,r))return s}else i=s}return i}function Wo(t){const e=ni()[16][6];if(!e.projection){const i=e.projection=me(t?t.length:1,null),n=i.slice();let s=e.child;for(;null!==s;){const e=t?qo(s,t):0;null!==e&&(n[e]?n[e].projectionNext=s:i[e]=s,n[e]=s),s=s.next}}}function Go(t,e=0,i){const n=ni(),s=si(),r=Ds(s,n[6],t,1,null,i||null);null===r.projection&&(r.projection=e),ci(),function(t,e,i){Nr(e[11],0,e,i,Sr(t,i,e),Dr(i.parent||e[6],e))}(s,n,r)}function Yo(t,e,i){return Ko(t,"",e,"",i),Yo}function Ko(t,e,i,n,s){const r=ni(),o=So(r,e,i,n);return o!==fs&&js(si(),Ei(),r,t,o,r[11],s,!1),Ko}const Zo=[];function Xo(t,e,i,n,s){const r=t[i+1],o=null===e;let a=n?vs(r):Cs(r),l=!1;for(;0!==a&&(!1===l||o);){const i=t[a+1];Qo(t[a],e)&&(l=!0,t[a+1]=n?xs(i):ws(i)),a=n?vs(i):Cs(i)}l&&(t[i+1]=n?ws(r):xs(r))}function Qo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&_e(t,e)>=0}const Jo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ta(t){return t.substring(Jo.key,Jo.keyEnd)}function ea(t,e){const i=Jo.textEnd;return i===e?-1:(e=Jo.keyEnd=function(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}(t,Jo.key=e,i),ia(t,e,i))}function ia(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function na(t,e,i){return oa(t,e,i,!1),na}function sa(t,e){return oa(t,e,null,!0),sa}function ra(t,e){for(let i=function(t){return function(t){Jo.key=0,Jo.keyEnd=0,Jo.value=0,Jo.valueEnd=0,Jo.textEnd=t.length}(t),ea(t,ia(t,0,Jo.textEnd))}(e);i>=0;i=ea(e,i))fe(t,ta(e),!0)}function oa(t,e,i,n){const s=ni(),r=si(),o=mi(2);if(r.firstUpdatePass&&la(r,t,o,n),e!==fs&&wo(s,o,e)){let a;null==i&&(a=function(){const t=ei.lFrame;return null===t?null:t.currentSanitizer}())&&(i=a),ua(r,r.data[ki()+19],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Tt(kn(t)))),t}(e,i),n,o)}}function aa(t,e){return e>=t.expandoStartIndex}
vendor: 1,984 bytes, line 1
1function la(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ki()+19],o=aa(t,i);ma(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=function(t){const e=ei.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=ha(i=ca(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=ca(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Cs(n))return t[vs(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=ca(null,t,e,i[1],n),i=ha(i,e.attrs,n),function(t,e,i,n){t[vs(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)n=ha(n,t[r].hostAttrs,i);return ha(n,e.attrs,i)}(t,e,n)}return void 0!==r&&(n?e.residualClasses=r:e.residualStyles=r),i}(s,r,e,n),function(t,e,i,n,s,r){let o=r?e.classBindings:e.styleBindings,a=vs(o),l=Cs(o);t[n]=i;let c,h=!1;if(Array.isArray(i)){const t=i;c=t[1],(null===c||_e(t,c)>0)&&(h=!0)}else c=i;if(s)if(0!==l){const e=vs(t[a+1]);t[n+1]=ys(e,a),0!==e&&(t[e+1]=Ss(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=ys(a,0),0!==a&&(t[a+1]=Ss(t[a+1],n)),a=n;else t[n+1]=ys(l,0),0===a?a=n:t[l+1]=Ss(t[l+1],n),l=n;h&&(t[n+1]=ws(t[n+1])),Xo(t,c,n,!0),Xo(t,c,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&_e(r,e)>=0&&(i[n+1]=xs(i[n+1]))}(e,c,t,n,r),o=ys(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function ca(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a<o&&(r=e[a],n=ha(n,r.hostAttrs,s),r!==t);)a++;return null!==t&&(i.directiveStylingLast=a),n}function ha(t,e,i){const n=i?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),fe(t,o,!!i||e[++r]))}return void 0===t?null:t}
1function ua(t,e,i,n,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];pa(1==(1&c)?da(l,e,i,s,Cs(c),o):void 0)||(pa(r)||function(t){return 2==(2&t)}(c)&&(r=da(l,null,i,s,a,o)),function(t,e,i,n,s){const r=Ue(t);if(e)s?r?t.addClass(i,n):i.classList.add(n):r?t.removeClass(i,n):i.classList.remove(n);else{const e=-1==n.indexOf("-")?void 0:2;null==s?r?t.removeStyle(i,n,e):i.style.removeProperty(n):r?t.setStyle(i,n,s,e):i.style.setProperty(n,s)}}(n,o,qe(ki(),i),s,r))}function da(t,e,i,n,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=i[s+1];h===fs&&(h=c?Zo:void 0);let u=c?ge(h,n):l===n?h:void 0;if(r&&!pa(u)&&(u=ge(e,n)),pa(u)&&(a=u,o))return a;const d=t[s+1];s=o?vs(d):Cs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=ge(t,n))}return a}function pa(t){return void 0!==t}function ma(t,e){return 0!=(t.flags&(e?16:32))}function fa(t,e=""){const i=ni(),n=si(),s=t+19,r=n.firstCreatePass?Ds(n,i[6],t,3,null,null):n.data[s],o=i[s]=function(t,e){return Ue(e)?e.createText(t):e.createTextNode(t)}(e,i[11]);Ar(n,i,o,r),ai(r,!1)}function ga(t){return _a("",t,""),ga}function _a(t,e,i){const n=ni(),s=So(n,t,e,i);return s!==fs&&function(t,e,i){const n=qe(e,t),s=t[11];Ue(s)?s.setValue(n,i):n.textContent=i}(n,ki(),s),_a}function ba(t,e,i){!function(t,e,i,n){const s=si(),r=mi(2);s.firstUpdatePass&&la(s,null,r,!0);const o=ni();if(i!==fs&&wo(o,r,i)){const n=s.data[ki()+19];if(ma(n,!0)&&!aa(s,r)){let t=n.classes;null!==t&&(i=Ot(t,i||"")),To(s,n,o,i,!0)}else!function(t,e,i,n,s,r,o,a){s===fs&&(s=Zo);let l=0,c=0,h=0<s.length?s[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const o=l<s.length?s[l+1]:void 0,d=c<r.length?r[c+1]:void 0;let p=null,m=void 0;h===u?(l+=2,c+=2,o!==d&&(p=u,m=d)):null===u||null!==h&&h<u?(l+=2,p=h):(c+=2,p=u,m=d),null!==p&&ua(t,e,i,n,p,m,!0,a),h=l<s.length?s[l]:null,u=c<r.length?r[c]:null}}(s,n,o,o[11],o[r+1],o[r+1]=function(t,e,i){if(null==i||""===i)return Zo;const n=[],s=kn(i);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof s&&e(n,s);return n}(t,e,i),0,r)}}(fe,ra,So(ni(),t,e,i))}function ya(t,e,i){const n=ni();return wo(n,pi(),e)&&js(si(),Ei(),n,t,e,n[11],i,!0),ya}function va(t,e,i){const n=ni();if(wo(n,pi(),e)){const s=si(),r=Ei();js(s,r,n,t,e,ur(r,n),i,!0)}return va}function wa(t,e){const i=Ze(t)[1],n=i.data.length-1;Ti(i,{directiveStart:n,directiveEnd:n+1})}function Ca(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s=void 0;if(Ve(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Sa(t.inputs),e.declaredInputs=Sa(t.declaredInputs),e.outputs=Sa(t.outputs);const i=s.hostBindings;i&&Ia(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&xa(t,r),o&&ka(t,o),yt(t.inputs,s.inputs),yt(t.declaredInputs,s.declaredInputs),yt(t.outputs,s.outputs),Ve(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let n=0;n<e.length;n++){const s=e[n];s&&s.ngInherit&&s(t),s===Ca&&(i=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=ji(s.hostAttrs,i=ji(i,s.hostAttrs))}}(n)}function Sa(t){return t===ve?{}:t===we?[]:t}function xa(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function ka(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Ia(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}class Ea{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Da(t){t.type.prototype.ngOnChanges&&(t.setInput=Aa,t.onChanges=function(){const t=Ta(this),e=t&&t.current;if(e){const i=t.previous;if(i===ve)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}})}
1function Aa(t,e,i,n){const s=Ta(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ve,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],l=o[a];r[a]=new Ea(l&&l.currentValue,e,o===ve),t[n]=e}function Ta(t){return t.__ngSimpleChanges__||null}function Oa(t,e,i,n,s){if(t=Rt(t),Array.isArray(t))for(let r=0;r<t.length;r++)Oa(t[r],e,i,n,s);else{const r=si(),o=ni();let a=ro(t)?t:Rt(t.provide),l=io(t);const c=oi(),h=65535&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>16;if(ro(t)||!t.multi){const n=new Fi(l,s,Io),p=Ra(a,e,s?h:h+d,u);-1===p?(rn(tn(c,o),r,a),Pa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=Ra(a,e,h+d,u),m=Ra(a,e,h,h+d),f=p>=0&&i[p],g=m>=0&&i[m];if(s&&!g||!s&&!f){rn(tn(c,o),r,a);const h=function(t,e,i,n,s){const r=new Fi(t,i,Io);return r.multi=[],r.index=e,r.componentProviders=0,Na(r,s,n&&!i),r}(s?Fa:Ma,i.length,s,n,l);!s&&g&&(i[m].providerFactory=h),Pa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),i.push(h),o.push(h)}else Pa(r,t,p>-1?p:m),Na(i[s?m:p],l,!s&&n);!s&&n&&g&&i[m].componentProviders++}}}function Pa(t,e,i){if(ro(e)||e.useClass){const n=(e.useClass||e).prototype.ngOnDestroy;n&&(t.destroyHooks||(t.destroyHooks=[])).push(i,n)}}function Na(t,e,i){t.multi.push(e),i&&t.componentProviders++}function Ra(t,e,i,n){for(let s=i;s<n;s++)if(e[s]===t)return s;return-1}function Ma(t,e,i,n){return Ba(this.multi,[])}function Fa(t,e,i,n){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=hn(i,i[1],this.providerFactory.index,n);r=e.slice(0,t),Ba(s,r);for(let i=t;i<e.length;i++)r.push(e[i])}else r=[],Ba(s,r);return r}function Ba(t,e){for(let i=0;i<t.length;i++)e.push((0,t[i])());return e}function La(t,e=[]){return i=>{i.providersResolver=(i,n)=>function(t,e,i){const n=si();if(n.firstCreatePass){const s=Ve(t);Oa(i,n.data,n.blueprint,s,!0),Oa(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}Da.ngInherit=!0;class Va{}
1class ja{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${Tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let za=(()=>{class t{}return t.NULL=new ja,t})(),Ua=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>$a(t),t})();const $a=function(t){return zr(t,oi(),ni())};class Ha{}const qa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ga(),t})();const Ga=function(){const t=ni(),e=Ke(oi().index,t);return function(t){const e=t[11];if(Ue(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Re(e)?e:t)};let Ya=(()=>{class t{}return t.\u0275prov=vt({token:t,providedIn:"root",factory:()=>null}),t})();class Ka{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Za=new Ka("9.1.0");class Xa{constructor(){}supports(t){return bo(t)}create(t){return new Ja(t)}}const Qa=(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||Qa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex<nl(i,n,s)?e:i,o=nl(r,n,s),a=r.currentIndex;if(r===i)n--,i=i._nextRemoved;else if(e=e._next,null==r.previousIndex)n++;else{s||(s=[]);const t=o-n,e=a-n;if(t!=e){for(let i=0;i<t;i++){const n=i<s.length?s[i]:s[i]=0,r=n+i;e<=r&&r<t&&(s[i]=n+1)}s[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=[]),!bo(t))throw new Error(`Error trying to diff '${Tt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,i,n,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)i=t[e],n=this._trackByFn(e,i),null!==s&&go(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,i,n,e)),go(s.item,i)||this._addIdentityChange(s,i)):(s=this._mismatch(s,i,n,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{const i=t[fo()]();let n;for(;!(n=i.next()).done;)e(n.value)}}(t,t=>{n=this._trackByFn(e,t),null!==s&&go(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),go(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),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,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(go(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(go(t.
vendor: 4,422 bytes, line 1
1item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):t=this._addAfter(new tl(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new il),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 il),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 tl{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 el{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&go(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class il{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new el,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.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 nl(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n<i.length&&(s=i[n]),n+e+s}class sl{constructor(){}supports(t){return t instanceof Map||yo(t)}create(){return new rl}}class rl{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;
1e=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||yo(t)))throw new Error(`Error trying to diff '${Tt(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,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),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 i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new ol(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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){go(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(i=>e(t[i],i))}}class ol{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 al=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new gt,new mt]]}}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 '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=vt({token:t,providedIn:"root",factory:()=>new t([new Xa])}),t})(),ll=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new gt,new mt]]}}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=vt({token:t,providedIn:"root",factory:()=>new t([new sl])}),t})();const cl=[new sl],hl=new al([new Xa]),ul=new ll(cl);let dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pl(t,Ua),t})();const pl=function(t,e){return Ur(t,e,oi(),ni())};let ml=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>fl(t,Ua),t})();const fl=function(t,e){return $r(t,e,oi(),ni())},gl={};class _l extends za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Oe(t);return new vl(e,this.ngModule)}}function bl(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}const yl=new Yt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Yi});class vl extends Va{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ms).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return bl(this.componentDef.inputs)}get outputs(){return bl(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,gl,s);return r!==gl||n===gl?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(Ha,$e),o=s.get(Ya,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,
1i){if(Ue(t))return t.selectRootElement(e,i===ye.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Is(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="string"==typeof i&&/^#root-ng-internal-isolated-\d+/.test(i),d={components:[],scheduler:Yi,clean:lr,playerHandler:null,flags:0},p=Bs(0,-1,null,1,0,null,null,null,null,null),m=Es(null,p,d,h,null,null,r,a,o,s);let f,g;yi(m,null);try{const t=function(t,e,i,n,s,r){const o=i[1];i[19]=t;const a=Ds(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(po(a,l),null!==t&&(Bi(s,t,l),null!==a.classes&&Mr(s,t,a.classes),null!==a.styles&&Rr(s,t,a.styles)));const c=n.createRenderer(t,e),h=Es(i,Fs(e),null,e.onPush?64:16,i[19],a,n,c,void 0);return o.firstCreatePass&&(rn(tn(a,i),o,e.type),Ws(o,a),Ys(a,i.length,1)),nr(i,h),i[19]=h}(c,this.componentDef,m,r,a);if(c)if(i)Bi(a,c,["ng-version",Za.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n<t.length;){let r=t[n];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++n]):8===s&&i.push(r);else{if(!cs(s))break;s=r}n++}return{attrs:e,classes:i}}(this.componentDef.selectors[0]);t&&Bi(a,c,t),e&&e.length>0&&Mr(a,c,e.join(" "))}g=Ge(m[1],0),e&&(g.projection=e.map(t=>Array.from(t))),f=function(t,e,i,n,s){const r=i[1],o=function(t,e,i){const n=oi();t.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),qs(t,n,1),Ks(t,e,i));const s=hn(e,t,e.length-1,n);is(s,e);const r=We(n,e);return r&&is(r,e),s}(r,i,e);n.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,i.length-1);const a=oi();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ii(a.index-19);const t=i[1];Us(t,e),$s(t,i,e.hostVars),Hs(e,o)}return o}(t,this.componentDef,m,d,[wa]),As(p,m,null)}finally{xi()}const _=new wl(this.componentType,f,zr(Ua,g,m),m,g);return i&&!u||(_.hostView._tViewNode.child=g),_}}class wl extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Br(n),this.hostView._tViewNode=function(t,e,i,n){let s=t.node;return null==s&&(t.node=s=Ls(0,null,2,-1,null,null)),n[6]=s}(n[1],0,0,n),this.componentType=t}get injector(){return new pn(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 Cl=void 0;var Sl=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["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"]],Cl,[["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"]],Cl,[["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}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let xl={};function kl(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Il(e);if(i)return i;const n=e.split("-")[0];if(i=Il(n),i)return i;if("en"===n)return Sl;throw new Error(`Missing locale data for the locale "${t}".`)}function Il(t){return t in xl||(xl[t]=jt.ng&&jt.ng.common&&jt.ng.common.locales&&jt.ng.common.locales[t]),xl[t]}const El=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Dl="en-US";function Al(t){var e,i;
1i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Dl=t.toLowerCase().replace(/_/g,"-"))}const Tl=new Map;class Ol extends ce{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new _l(this);const i=Ne(t),n=t[qt]||null;n&&Al(n),this._bootstrapComponents=Zi(i.bootstrap),this._r3Injector=Jr(t,e,[{provide:ce,useValue:this},{provide:za,useValue:this.componentFactoryResolver}],Tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,i=_t.Default){return t===ao||t===ce||t===Kt?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pl extends he{constructor(t){super(),this.moduleType=t,null!==Ne(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${Tt(e)} vs ${Tt(e.name)}`)})(t,Tl.get(t),e),Tl.set(t,e)}let i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach(e=>t(e))}(t)}create(t){return new Ol(this.moduleType,t)}}function Nl(t,e,i){const n=di()+t,s=ni();return s[n]===fs?vo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function Rl(t,e){const i=t[e];return i===fs?void 0:i}function Ml(t,e,i,n,s,r){const o=e+i;return wo(t,o,s)?vo(t,o+1,r?n.call(r,s):n(s)):Rl(t,o+1)}function Fl(t,e){const i=si();let n;const s=t+19;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new Error(`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=Pe(n.type)),o=ie(Io),a=r();return ie(o),function(t,e,i,n){const s=i+19;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=n}(i,ni(),t,a),a}function Bl(t,e,i,n){const s=ni(),r=Ye(s,t);return Vl(s,Ll(s,t)?function(t,e,i,n,s,r,o){const a=e+i;return function(t,e,i,n){const s=wo(t,e,i);return wo(t,e+1,n)||s}(t,a,s,r)?vo(t,a+2,o?n.call(o,s,r):n(s,r)):Rl(t,a+2)}(s,di(),e,r.transform,i,n,r):r.transform(i,n))}function Ll(t,e){return t[1].data[e+19].pure}function Vl(t,e){return _o.isWrapped(e)&&(e=_o.unwrap(e),t[ei.lFrame.bindingIndex]=fs),e}class jl extends A{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,s=t=>null,r=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,s,r);return t instanceof p&&t.add(o),o}}function zl(){return this._results[fo()]()}class Ul{constructor(){this.dirty=!0,this._results=[],this.changes=new jl,this.length=0;const t=fo(),e=Ul.prototype;e[t]||(e[t]=zl)}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,i){void 0===i&&(i=e);for(let n=0;n<e.length;n++){let s=e[n];Array.isArray(s)?(i===e&&(i=e.slice(0,n)),t(s,i)):i!==e&&i.push(s)}return i}(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 $l{constructor(t){this.queryList=t,this.matches=null}clone(){return new $l(this.queryList)}setDirty(){this.queryList.setDirty()}}class Hl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t<i;t++){const i=e.getByIndex(t);n.push(this.queries[i.indexInDeclarationView].clone())}return new Hl(n)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==ac(t,e).matches&&this.queries[e].setDirty()}}class ql{constructor(t,e,i,n=null){this.predicate=t,this.descendants=e,this.isStatic=i,this.read=n}}class Wl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const n=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,n);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new Wl(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Gl{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 Gl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&4===i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}
1matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const i=this.metadata.predicate;for(let n=0;n<i.length;n++)this.matchTNodeWithReadOption(t,e,Yl(e,i[n]))}else{const i=this.metadata.predicate;i===dl?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,cn(e,t,i,!1,!1))}}matchTNodeWithReadOption(t,e,i){if(null!==i){const n=this.metadata.read;if(null!==n)if(n===Ua||n===ml||n===dl&&0===e.type)this.addMatch(e.index,-2);else{const i=cn(e,t,n,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Yl(t,e){const i=t.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1];return null}function Kl(t,e,i,n){return-1===i?function(t,e){return 3===t.type||4===t.type?zr(Ua,t,e):0===t.type?Ur(dl,Ua,t,e):null}(e,t):-2===i?function(t,e,i){return i===Ua?zr(Ua,e,t):i===dl?Ur(dl,Ua,e,t):i===ml?$r(ml,Ua,e,t):void 0}(t,e,n):hn(t,t[1],i,e)}function Zl(t,e,i,n){const s=e[5].queries[n];if(null===s.matches){const n=t.data,r=i.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:Kl(e,n[s],r[t+1],i.metadata.read))}s.matches=o}return s.matches}function Xl(t){const e=ni(),i=si(),n=gi();_i(n+1);const s=ac(i,n);if(t.dirty&&Xe(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,i,n,s){const r=e.queries.getByIndex(n),o=r.matches;if(null!==o){const a=Zl(e,i,r,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)s.push(a[e/2]);else{const r=o[e+1],a=i[-n];for(let e=9;e<a.length;e++){const i=a[e];i[17]===i[3]&&t(i[1],i,r,s)}if(null!==a[5]){const e=a[5];for(let i=0;i<e.length;i++){const n=e[i];t(n[1],n,r,s)}}}}}return s}(i,e,n,[]):Zl(i,e,s,n);t.reset(r),t.notifyOnChanges()}return!0}return!1}function Ql(t,e,i){tc(si(),ni(),t,e,i,!0)}function Jl(t,e,i){tc(si(),ni(),t,e,i,!1)}function tc(t,e,i,n,s,r){t.firstCreatePass&&(oc(t,new ql(i,n,r,s),-1),r&&(t.staticViewQueries=!0)),rc(t,e)}function ec(t,e,i,n){nc(si(),ni(),e,i,n,!1,oi(),t)}function ic(t,e,i,n){nc(si(),ni(),e,i,n,!0,oi(),t)}function nc(t,e,i,n,s,r,o,a){t.firstCreatePass&&(oc(t,new ql(i,n,r,s),o.index),function(t,e){const i=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,e)}(t,a),r&&(t.staticContentQueries=!0)),rc(t,e)}function sc(){return t=ni(),e=gi(),t[5].queries[e].queryList;var t,e}function rc(t,e){const i=new Ul;!function(t,e,i,n){const s=cr(e);s.push(i),t.firstCreatePass&&hr(t).push(n,s.length-1)}(t,e,i,i.destroy),null===e[5]&&(e[5]=new Hl),e[5].queries.push(new $l(i))}function oc(t,e,i){null===t.queries&&(t.queries=new Wl),t.queries.track(new Gl(e,i))}function ac(t,e){return t.queries.getByIndex(e)}const lc=new Yt("Application Initializer");let cc=(()=>{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 i=0;i<this.appInits.length;i++){const e=this.appInits[i]();Bo(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)(se(lc,8))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const hc=new Yt("AppId"),uc={provide:hc,useFactory:function(){return`${dc()}${dc()}${dc()}`},deps:[]};function dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const pc=new Yt("Platform Initializer"),mc=new Yt("Platform ID"),fc=new Yt("appBootstrapListener");let gc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const _c=new Yt("LocaleId"),bc=new Yt("DefaultCurrencyCode");class yc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const vc=function(t){return new Pl(t)},wc=vc,Cc=function(t){return Promise.resolve(vc(t))},Sc=function(t){const e=vc(t),i=Zi(Ne(t).declarations).reduce((t,e)=>{const i=Oe(e);
1return i&&t.push(new vl(i)),t},[]);return new yc(e,i)},xc=Sc,kc=function(t){return Promise.resolve(Sc(t))};let Ic=(()=>{class t{constructor(){this.compileModuleSync=wc,this.compileModuleAsync=Cc,this.compileModuleAndAllComponentsSync=xc,this.compileModuleAndAllComponentsAsync=kc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const Ec=new Yt("compilerOptions"),Dc=(()=>Promise.resolve(0))();function Ac(t){"undefined"==typeof Zone?Dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jl(!1),this.onMicrotaskEmpty=new jl(!1),this.onStable=new jl(!1),this.onError=new jl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=jt.requestAnimationFrame,e=jt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jt,()=>{t.lastRequestAnimationFrameId=-1,Rc(t),Nc(t)}),Rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,s,r,o,a)=>{try{return Mc(t),i.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Fc(t)}},onInvoke:(e,i,n,s,r,o,a)=>{try{return Mc(t),e.invoke(n,s,r,o,a)}finally{Fc(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rc(t),Nc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,Pc,Oc,Oc);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}function Oc(){}const Pc={};function Nc(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 Rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Mc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fc(t){t._nesting--,Nc(t)}class Bc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jl,this.onMicrotaskEmpty=new jl,this.onStable=new jl,this.onError=new jl}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Lc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZ
1oneStable=!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:()=>{Tc.assertNotInAngularZone(),Ac(()=>{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())Ac(()=>{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,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(se(Tc))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Vc=(()=>{class t{constructor(){this._applications=new Map,Uc.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 Uc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class jc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let zc,Uc=new jc,$c=function(t,e,i){const n=t.get(Ec,[]).concat(e),s=new Pl(i);if(0===co.size)return Promise.resolve(s);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(n.map(t=>t.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const t=jt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=ao.create({providers:r}).get(o.ResourceLoader);return function(t){const e=[],i=new Map;function n(t){let e=i.get(t);if(!e){const n=(t=>Promise.resolve(a.get(t)))(t);i.set(t,e=n.then(uo))}return e}return co.forEach((t,i)=>{const s=[];t.templateUrl&&s.push(n(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,i)=>{o.push(""),s.push(n(e).then(n=>{o[a+i]=n,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){ho.delete(t)}(i));e.push(l)}),co=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const Hc=new Yt("AllowMultipleToken");class qc{constructor(t,e){this.name=t,this.token=e}}function Wc(t,e,i=[]){const n=`Platform: ${e}`,s=new Yt(n);return(e=[])=>{let r=Gc();if(!r||r.injector.get(Hc,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:Gr,useValue:"platform"});!function(t){if(zc&&!zc.destroyed&&!zc.injector.get(Hc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zc=t.get(Yc);const e=t.get(pc,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:n}))}return function(t){const e=Gc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different c
1onfiguration has been created. Please destroy it first.");return e}(s)}}function Gc(){return zc&&!zc.destroyed?zc:null}let Yc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Bc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:Tn(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:Tc,useValue:i}];return i.run(()=>{const e=ao.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(bn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Xc(this._modules,s)),i.runOutsideAngular(()=>i.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,i){try{const n=i();return Bo(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(cc);return t.runInitializers(),t.donePromise.then(()=>(Al(s.injector.get(_c,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Kc({},e);return $c(this.injector,i,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Zc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${Tt(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)(se(ao))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function Kc(t,e){return Array.isArray(e)?e.reduce(Kc,t):Object.assign(Object.assign({},t),e)}let Zc=(()=>{class t{constructor(t,e,i,n,s,r){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Tn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new S(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new S(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),Ac(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=tt(o,a.pipe(ht()))}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 i;i=t instanceof Va?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(ce),s=i.create(ao.NULL,[],e||i.selector,n);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Lc,null);return r&&s.injector.get(Vc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Tn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}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(fc,[]).concat(this._bootstrapListeners).forEac
1h(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)(se(Tc),se(gc),se(ao),se(bn),se(za),se(cc))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function Xc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Qc{}class Jc{}const th={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let eh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||th}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>ih(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>ih(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(se(Ic),se(Jc,8))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function ih(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const nh=Wc(null,"core",[{provide:mc,useValue:"unknown"},{provide:Yc,deps:[ao]},{provide:Vc,deps:[]},{provide:gc,deps:[]}]),sh=[{provide:Zc,useClass:Zc,deps:[Tc,gc,ao,bn,za,cc]},{provide:yl,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:cc,useClass:cc,deps:[[new mt,lc]]},{provide:Ic,useClass:Ic,deps:[]},uc,{provide:al,useFactory:function(){return hl},deps:[]},{provide:ll,useFactory:function(){return ul},deps:[]},{provide:_c,useFactory:function(t){return Al(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new pt(_c),new mt,new gt]]},{provide:bc,useValue:"USD"}];let rh=(()=>{class t{constructor(t){}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)(se(Zc))},providers:sh}),t})(),oh=null;function ah(){return oh}const lh=new Yt("DocumentToken");let ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:hh,token:t,providedIn:"platform"}),t})();function hh(){return se(dh)}const uh=new Yt("Location Initialized");let dh=(()=>{class t extends ch{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ah().getLocation(),this._history=ah().getHistory()}getBaseHrefFromDOM(){return ah().getBaseHref(this._doc)}onPopState(t){ah().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ah().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,i){ph()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){ph()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({factory:mh,token:t,providedIn:"platform"}),t})();function ph(){return!!window.history.pushState}function mh(){return new dh(se(lh))}function fh(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function gh(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function _h(t){return t&&"?"!==t[0]?"?"+t:t}let bh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:yh,token:t,providedIn:"root"}),t})();function yh(t){const e=se(lh).location;return new wh(se(ch),e&&e.origin||"")}const vh=new Yt("appBaseHref");let wh=(()=>{class t extends bh{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.on
1HashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return fh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_h(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+_h(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+_h(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(se(ch),se(vh,8))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t extends bh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=fh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+_h(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+_h(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(se(ch),se(vh,8))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Sh=(()=>{class t{constructor(t,e){this._subject=new jl,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=gh(kh(i)),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+_h(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,kh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_h(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_h(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(se(bh),se(ch))},t.normalizeQueryParams=_h,t.joinWithSlash=fh,t.stripTrailingSlash=gh,t.\u0275prov=vt({factory:xh,token:t,providedIn:"root"}),t})();function xh(){return new Sh(se(bh),se(ch))}function kh(t){return t.replace(/\/index.html$/,"")}const Ih=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),Eh=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Dh=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),Ah=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),Th=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),Oh=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function Ph(t,e){return Bh(kl(t)[El.DateFormat],e)}function Nh(t,e){return Bh(kl(t)[El.TimeFormat],e)}function Rh(t,e){return Bh(kl(t)[El.DateTimeFormat],e)}function Mh(t,e){const i=kl(t),n=i[El.NumberSymbols][e];if(void 0===n){if(e===Oh.CurrencyDecimal)return i[El.NumberSymbols][Oh.Decimal];if(e===Oh.CurrencyGroup)return i[El.NumberSymbols][Oh.Group]}return n}function Fh(t){if(!t[El.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[El.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bh(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Lh(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Vh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,jh={},zh=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Uh=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),$h=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),Hh=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function qh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}
1function Wh(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length<e;)o="0"+o;return n&&(o=o.substr(o.length-e)),r+o}function Gh(t,e,i=0,n=!1,s=!1){return function(r,o){let a=function(t,e){switch(t){case $h.FullYear:return e.getFullYear();case $h.Month:return e.getMonth();case $h.Date:return e.getDate();case $h.Hours:return e.getHours();case $h.Minutes:return e.getMinutes();case $h.Seconds:return e.getSeconds();case $h.FractionalSeconds:return e.getMilliseconds();case $h.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((i>0||a>-i)&&(a+=i),t===$h.Hours)0===a&&-12===i&&(a=12);else if(t===$h.FractionalSeconds)return l=e,Wh(a,3).substr(0,l);var l;const c=Mh(o,Oh.MinusSign);return Wh(a,e,c,n,s)}}function Yh(t,e,i=Dh.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case Hh.Months:return function(t,e,i){const n=kl(t),s=Bh([n[El.MonthsFormat],n[El.MonthsStandalone]],e);return Bh(s,i)}(e,s,n)[t.getMonth()];case Hh.Days:return function(t,e,i){const n=kl(t),s=Bh([n[El.DaysFormat],n[El.DaysStandalone]],e);return Bh(s,i)}(e,s,n)[t.getDay()];case Hh.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=kl(t);return Fh(e),(e[El.ExtraData][2]||[]).map(t=>"string"==typeof t?Lh(t):[Lh(t[0]),Lh(t[1])])}(e),i=function(t,e,i){const n=kl(t);Fh(n);const s=Bh([n[El.ExtraData][0],n[El.ExtraData][1]],e)||[];return Bh(s,i)||[]}(e,s,n);let r;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:n,minutes:s}=t[0],{hours:l,minutes:c}=t[1];o>=n&&a>=s&&(o<l||o===l&&a<c)&&(r=i[e])}else{const{hours:n,minutes:s}=t;n===o&&s===a&&(r=i[e])}}),r)return r}return function(t,e,i){const n=kl(t),s=Bh([n[El.DayPeriodsFormat],n[El.DayPeriodsStandalone]],e);return Bh(s,i)}(e,s,n)[o<12?0:1];case Hh.Eras:return function(t,e){return Bh(kl(t)[El.Eras],e)}(e,n)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${i}`)}}(s,r,t,e,i,n)}}function Kh(t){return function(e,i,n){const s=-1*n,r=Mh(i,Oh.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Uh.Short:return(s>=0?"+":"")+Wh(o,2,r)+Wh(Math.abs(s%60),2,r);case Uh.ShortGMT:return"GMT"+(s>=0?"+":"")+Wh(o,1,r);case Uh.Long:return"GMT"+(s>=0?"+":"")+Wh(o,2,r)+":"+Wh(Math.abs(s%60),2,r);case Uh.Extended:return 0===n?"Z":(s>=0?"+":"")+Wh(o,2,r)+":"+Wh(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Zh(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(i.getFullYear()),e=(r=i,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))).getTime()-t.getTime();s=1+Math.round(e/6048e5)}var r;return Wh(s,t,Mh(n,Oh.MinusSign))}}const Xh={};function Qh(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Jh(t){return t instanceof Date&&!isNaN(t.valueOf())}const tu=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function eu(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class iu{}let nu=(()=>{class t extends iu{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return kl(t)[El.PluralCase]}(e||this.locale)(t)){case Eh.Zero:return"zero";case Eh.One:return"one";case Eh.Two:return"two";case Eh.Few:return"few";case Eh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(se(_c))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function su(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ru=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,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&&(bo(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=>
1{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Tt(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)(Io(al),Io(ll),Io(Ua),Io(Wa))},t.\u0275dir=Ae({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ou{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 au=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Tn()&&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 i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,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,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ou(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new lu(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new lu(t,s);e.push(r)}});for(let i=0;i<e.length;i++)this._perViewChange(e[i].view,e[i].record);for(let i=0,n=this._viewContainer.length;i<n;i++){const t=this._viewContainer.get(i);
vendor: 4,709 bytes, line 1
1t.context.index=i,t.context.count=n,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)(Io(ml),Io(dl),Io(al))},t.\u0275dir=Ae({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class lu{constructor(t,e){this.record=t,this.view=e}}let cu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new hu,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){uu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){uu("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)(Io(ml),Io(dl))},t.\u0275dir=Ae({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class hu{constructor(){this.$implicit=null,this.ngIf=null}}function uu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Tt(e)}'.`)}class du{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 pu=(()=>{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=Ae({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),mu=(()=>{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new du(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Io(ml),Io(dl),Io(pu,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),fu=(()=>{class t{constructor(t,e,i){i._addDefault(new du(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Io(ml),Io(dl),Io(pu,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();function gu(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Tt(t)}'`)}class _u{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class bu{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const yu=new bu,vu=new _u;let wu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):go(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,_o.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Bo(e))return yu;if(Lo(e))return vu;throw gu(t,e)}
vendor: 4,759 bytes, line 1
1_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=_t.Default){const e=Hr(!0);if(null!=e||t&_t.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=Te({name:"async",type:t,pure:!1}),t})(),Cu=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return function(t,e,i,n){let s=function(t){if(Jh(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(Vh))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(i)}const e=new Date(t);if(!Jh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,i){const n=function(t){return kl(t)[El.LocaleId]}(e);if(jh[n]=jh[n]||{},jh[n][i])return jh[n][i];let s="";switch(i){case"shortDate":s=Ph(e,Th.Short);break;case"mediumDate":s=Ph(e,Th.Medium);break;case"longDate":s=Ph(e,Th.Long);break;case"fullDate":s=Ph(e,Th.Full);break;case"shortTime":s=Nh(e,Th.Short);break;case"mediumTime":s=Nh(e,Th.Medium);break;case"longTime":s=Nh(e,Th.Long);break;case"fullTime":s=Nh(e,Th.Full);break;case"short":const i=t(e,"shortTime"),n=t(e,"shortDate");s=qh(Rh(e,Th.Short),[i,n]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=qh(Rh(e,Th.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");s=qh(Rh(e,Th.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),h=t(e,"fullDate");s=qh(Rh(e,Th.Full),[c,h])}return s&&(jh[n][i]=s),s}(i,e)||e;let r,o=[];for(;e;){if(r=zh.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=Qh(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Qh(e,n)-n))}(s,n));let l="";return o.forEach(t=>{const e=function(t){if(Xh[t])return Xh[t];let e;switch(t){case"G":case"GG":case"GGG":e=Yh(Hh.Eras,Ah.Abbreviated);break;case"GGGG":e=Yh(Hh.Eras,Ah.Wide);break;case"GGGGG":e=Yh(Hh.Eras,Ah.Narrow);break;case"y":e=Gh($h.FullYear,1,0,!1,!0);break;case"yy":e=Gh($h.FullYear,2,0,!0,!0);break;case"yyy":e=Gh($h.FullYear,3,0,!1,!0);break;case"yyyy":e=Gh($h.FullYear,4,0,!1,!0);break;case"M":case"L":e=Gh($h.Month,1,1);break;case"MM":case"LL":e=Gh($h.Month,2,1);break;case"MMM":e=Yh(Hh.Months,Ah.Abbreviated);break;case"MMMM":e=Yh(Hh.Months,Ah.Wide);break;case"MMMMM":e=Yh(Hh.Months,Ah.Narrow);break;case"LLL":e=Yh(Hh.Months,Ah.Abbreviated,Dh.Standalone);break;case"LLLL":e=Yh(Hh.Months,Ah.Wide,Dh.Standalone);break;case"LLLLL":e=Yh(Hh.Months,Ah.Narrow,Dh.Standalone);break;case"w":e=Zh(1);break;case"ww":e=Zh(2);break;case"W":e=Zh(1,!0);break;case"d":e=Gh($h.Date,1);break;case"dd":e=Gh($h.Date,2);break;case"E":case"EE":case"EEE":e=Yh(Hh.Days,Ah.Abbreviated);break;case"EEEE":e=Yh(Hh.Days,Ah.Wide);break;case"EEEEE":e=Yh(Hh.Days,Ah.Narrow);break;case"EEEEEE":e=Yh(Hh.Days,Ah.Short);break;case"a":case"aa":case"aaa":e=Yh(Hh.DayPeriods,Ah.Abbreviated);break;case"aaaa":e=Yh(Hh.DayPeriods,Ah.Wide);break;case"aaaaa":e=Yh(Hh.DayPeriods,Ah.Narrow);break;case"b":case"bb":case"bbb":e=Yh(Hh.DayPeriods,Ah.Abbreviated,Dh.Standalone,!0);break;case"bbbb":e=Yh(Hh.DayPeriods,Ah.Wide,Dh.Standalone,!0);break;case"bbbbb":e=Yh(Hh.DayPeriods,Ah.Narrow,Dh.Standalone,!0);break;case"B":case"BB":case"BBB":e=Yh(Hh.DayPeriods,Ah.Abbreviated,Dh.Format,!0);break;case"BBBB":e=Yh(Hh.DayPeriods,Ah.Wide,Dh.Format,!0);break;case"BBBBB":e=Yh(Hh.DayPeriods,Ah.Narrow,Dh.Format,!0);break;case"h":e=Gh($h.Hours,1,-12);break;case"hh":e=Gh($h.Hours,2,-12);break;case"H":e=Gh($h.Hours,1);break;case"HH":e=Gh($h.Hours,2);break;case"m":e=Gh($h.Minutes,1);break;case"mm":e=Gh($h.Minutes,2);break;case"s":e=Gh($h.Seconds,1);break;case"ss":e=Gh($h.Seconds,2);break;case"S":e=Gh($h.FractionalSeconds,1);break;case"SS":e=Gh($h.FractionalSeconds,2);break;case"SSS":e=Gh($h.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Kh(Uh.Short);break;case"ZZZZZ":e=Kh(Uh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Kh(Uh.ShortGMT);break;
1case"OOOO":case"ZZZZ":case"zzzz":e=Kh(Uh.Long);break;default:return null}return Xh[t]=e,e}(t);l+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,i,s||this.locale,n)}catch(r){throw gu(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Io(_c))},t.\u0275pipe=Te({name:"date",type:t,pure:!0}),t})(),Su=(()=>{class t{constructor(t){this._locale=t}transform(e,i,n){if(function(t){return null==t||""===t||t!=t}(e))return null;n=n||this._locale;try{return function(t,e,i){return function(t,e,i,n,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,s,r,o=Math.abs(t)+"",a=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(r=o.length))e=[0],i=1;else{for(r--;"0"===o.charAt(r);)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(tu);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(h=eu(e)),null!=i&&(u=eu(i)),null!=n?d=eu(n):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let o=r+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t<n.length;t++)n[t]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let t=1;t<o;t++)n[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let l=0!==r;const c=e+t.integerLen,h=n.reduceRight((function(t,e,i,n){return n[i]=(e+=t)<10?e:e-10,l&&(0===n[i]&&i>=c?n.pop():l=!1),e>=10?1:0}),0);h&&(n.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m<h;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?g=p.splice(m,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(Mh(i,n)),g.length&&(a+=Mh(i,s)+g.join("")),f&&(a+=Mh(i,Oh.Exponential)+"+"+f)}else a=Mh(i,Oh.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h<l.length;h++){const t=l.charAt(h);"0"===t?i.minFrac=i.maxFrac=h+1:"#"===t?i.maxFrac=h+1:i.posSuf+=t}const c=a.split(",");if(i.gSize=c[1]?c[1].length:0,i.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=s.length-i.posPre.length-i.posSuf.length,e=r.indexOf("#");i.negPre=r.substr(0,e).replace(/'/g,""),i.negSuf=r.substr(e+t).replace(/'/g,"")}else i.negPre=e+i.posPre,i.negSuf=i.posSuf;return i}(function(t,e){return kl(t)[El.NumberFormats][e]}(e,Ih.Decimal),Mh(e,Oh.MinusSign)),e,Oh.Group,Oh.Decimal,i)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),n,i)}catch(s){throw gu(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(Io(_c))},t.\u0275pipe=Te({name:"number",type:t,pure:!0}),t})(),xu=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[{provide:iu,useClass:nu}]}),t})(),ku=(()=>{class t{}return t.\u0275prov=vt({token:t,providedIn:"root",factory:()=>new Iu(se(lh),window,se(bn))}),t})();class Iu{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const i=this.document.querySelector(`[name='${t}']`);if(i)return void this.scrollToElement(i)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Eu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Eu,oh||(oh=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,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!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=Au||(Au=document.querySelector("base"),Au)?Au.getAttribute("href"):null;return null==e?null:(i=e,Du||(Du=document.createElement("a")),Du.setAttribute("href",i),"/"===Du.pathname.charAt(0)?Du.pathname:"/"+Du.pathname);var i}resetBaseElement(){Au=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 su(document.cookie,t)}}let Du,Au=null;const Tu=new Yt("TRANSITION_ID"),Ou=[{provide:lc,useFactory:function(t,e,
vendor: 4,764 bytes, line 1
1i){return()=>{i.get(cc).donePromise.then(()=>{const i=ah();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[Tu,lh,ao],multi:!0}];class Pu{static init(){var t;t=new Pu,Uc=t}addToWindow(t){jt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},jt.getAllAngularTestabilities=()=>t.getAllTestabilities(),jt.getAllAngularRootElements=()=>t.getAllRootElements(),jt.frameworkStabilizers||(jt.frameworkStabilizers=[]),jt.frameworkStabilizers.push(t=>{const e=jt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?ah().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Nu=new Yt("EventManagerPlugins");let Ru=(()=>{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,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n<i.length;n++){const e=i[n];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)(se(Nu),se(Tc))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class Mu{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const n=ah().getGlobalEventTarget(this._doc,t);if(!n)throw new Error(`Unsupported event target ${n} for event ${e}`);return this.addEventListener(n,e,i)}}let Fu=(()=>{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=vt({token:t,factory:t.\u0275fac}),t})(),Bu=(()=>{class t extends Fu{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 i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}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=>ah().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const Lu={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/"},Vu=/%COMP%/g;function ju(t,e,i){for(let n=0;n<e.length;n++){let s=e[n];Array.isArray(s)?ju(t,s,i):(s=s.replace(Vu,t),i.push(s))}return i}function zu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Uu=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new $u(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ye.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Hu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case ye.Native:case ye.ShadowDom:return new qu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ju(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)(se(Ru),se(Bu),se(hc))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class $u{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Lu[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}
1" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=Lu[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=Lu[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&qa.DashCase?t.style.setProperty(e,i,n&qa.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&qa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,zu(i)):this.eventManager.addEventListener(t,e,zu(i))}}class Hu extends $u{constructor(t,e,i,n){super(t),this.component=i;const s=ju(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Vu,n+"-"+i.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Vu,t)}(n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class qu extends $u{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.component=n,this.shadowRoot=n.encapsulation===ye.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=ju(n.id,n.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[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,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Wu=(()=>{class t extends Mu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const Gu=["alt","control","meta","shift"],Yu={"\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"},Ku={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"},Zu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Xu=(()=>{class t extends Mu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ah().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Gu.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=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&&Ku.hasOwnProperty(e)&&(e=Ku[e]))}return Yu[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Gu.forEach(n=>{n!=i&&(0,Zu[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return se(Ju)},token:t,providedIn:"root"}),t})(),Ju=(()=>{class t extends Qu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qn.NONE:return e;case Qn.HTML:return In(e,"HTML")?kn(e):function(t,e){let i=null;try{Zn=Zn||new On(t);let n=e?String(e):"";i=Zn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=Zn.getInertBodyElement(n)}while(n!==r);const o=new Wn,a=o.sanitizeChildren(Xn(i)||i);return Tn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(i){const t=Xn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case Qn.STYLE:return In(e,"Style")?kn(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(ts);return e&&Rn(e[1])===e[1]||t.match(Jn)&&function(t){let e=!0,i=!0;for(let n=0;n<t.length;n++){const s=t.charAt(n);"'"===s&&i?e=!e:'"'===s&&e&&(i=!i)}return e&&i}(t)?t:(Tn()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}(e);case Qn.SCRIPT:if(In(e,"Script"))return kn(e);throw new Error("unsafe value used in a script context");case Qn.URL:return En(e),In(e,"URL")?kn(e):Rn(String(e));case Qn.RESOURCE_URL:if(In(e,"ResourceURL"))return kn(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 vn(t)}bypassSecurityTrustStyle(t){return new wn(t)}bypassSecurityTrustScript(t){return new Cn(t)}bypassSecurityTrustUrl(t){return new Sn(t)}bypassSecurityTrustResourceUrl(t){return new xn(t)}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({factory:function(){return t=se(Kt),new Ju(t.get(lh));var t},token:t,providedIn:"root"}),t})();
1const td=Wc(nh,"browser",[{provide:mc,useValue:"browser"},{provide:pc,useValue:function(){Eu.makeCurrent(),Pu.init()},multi:!0},{provide:lh,useFactory:function(){return function(t){ze=t}(document),document},deps:[]}]),ed=[[],{provide:Gr,useValue:"root"},{provide:bn,useFactory:function(){return new bn},deps:[]},{provide:Nu,useClass:Wu,multi:!0,deps:[lh,Tc,mc]},{provide:Nu,useClass:Xu,multi:!0,deps:[lh]},[],{provide:Uu,useClass:Uu,deps:[Ru,Bu,hc]},{provide:Ha,useExisting:Uu},{provide:Fu,useExisting:Bu},{provide:Bu,useClass:Bu,deps:[lh]},{provide:Lc,useClass:Lc,deps:[Tc]},{provide:Ru,useClass:Ru,deps:[Nu,Tc]},[]];let id=(()=>{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:hc,useValue:e.appId},{provide:Tu,useExisting:hc},Ou]}}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)(se(t,12))},providers:ed,imports:[xu,rh]}),t})();"undefined"!=typeof window&&window;const nd=new S(t=>t.complete());function sd(t){return t?function(t){return new S(e=>t.schedule(()=>e.complete()))}(t):nd}function rd(...t){let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&c(t[0])&&(t=t[0]),0===t.length?nd:e?rd(t).pipe(H(t=>e(...t))):new S(e=>new od(e,t))}class od extends ${constructor(t,e){super(t),this.sources=e,this.completed=0,this.haveValues=0;const i=e.length;this.values=new Array(i);for(let n=0;n<i;n++){const t=U(this,e[n],null,n);t&&this.add(t)}}notifyNext(t,e,i,n,s){this.values[i]=e,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(t){const{destination:e,haveValues:i,values:n}=this,s=n.length;t._hasValue?(this.completed++,this.completed===s&&(i===s&&e.next(n),e.complete())):e.complete()}}const ad=new Yt("NgValueAccessor"),ld={provide:ad,useExisting:Nt(()=>cd),multi:!0};let cd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Vo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[La([ld])]}),t})();const hd={provide:ad,useExisting:Nt(()=>dd),multi:!0},ud=new Yt("CompositionEventMode");let dd=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ah()?ah().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua),Io(ud,8))},t.\u0275dir=Ae({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Vo("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[La([hd])]}),t})(),pd=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t})(),md=(()=>{class t extends pd{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return fd(e||t)},t.\u0275dir=Ae({type:t,features:[Ca]}),t})();const fd=mn(md);function gd(){throw new Error("unimplemented")}class _d extends pd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return gd()}get asyncValidator(){return gd()}}class bd{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let yd=(()=>{class t extends bd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Io(_d,2))},t.\u0275dir=Ae({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&sa("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ca]}),t})(),vd=(()=>{class t extends bd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Io(md,2))},t.\u0275dir=Ae({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&sa("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Ca]}),t})();function wd(t){return null==t||0===t.length}const Cd=new Yt("NgValidators"),Sd=new Yt("NgAsyncValidators"),xd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class kd{static min(t){return e=>{if(wd(e.value)||wd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(wd(e.value)||wd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return wd(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return wd(t.value)||xd.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(wd(e.value))return null;const i=e.value?e.value.length:0;return i<t?{minlength:{requiredLength:t,actualLength:i}}:null}}static maxLength(t){return e=>{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return kd.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(wd(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Id);return 0==e.length?null:function(t){return Dd(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Id);return 0==e.length?null:function(t){return rd(function(t,e){return e.map(e=>e(t))}(t,e).map(Ed)).pipe(H(Dd))}}}function Id(t){return null!=t}function Ed(t){const e=Bo(t)?Y(t):t;if(!Lo(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Dd(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Ad(t){return t.validate?e=>t.validate(e):t}function Td(t){return t.validate?e=>t.validate(e):t}const Od={provide:ad,useExisting:Nt(()=>Pd),multi:!0};let Pd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&V
1o("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[La([Od])]}),t})();const Nd={provide:ad,useExisting:Nt(()=>Md),multi:!0};let Rd=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Md=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_d),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua),Io(Rd),Io(ao))},t.\u0275dir=Ae({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Vo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[La([Nd])]}),t})();const Fd={provide:ad,useExisting:Nt(()=>Bd),multi:!0};let Bd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Vo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[La([Fd])]}),t})();const Ld='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Vd='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',jd='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';class zd{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${Ld}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an
1ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${Vd}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${jd}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${Ld}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${Vd}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"
1===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const Ud={provide:ad,useExisting:Nt(()=>$d),multi:!0};let $d=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=go}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Vo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[La([Ud])]}),t})();const Hd={provide:ad,useExisting:Nt(()=>qd),multi:!0};let qd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=go}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const n=t.item(e),s=this._getOptionValue(n.value);i.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const n=t.item(e);if(n.selected){const t=this._getOptionValue(n.value);i.push(t)}}}this.value=i,t(i)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Vo("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[La([Hd])]}),t})();function Wd(t,e){return[...e.path,t]}function Gd(t,e){t||Xd(e,"Cannot find control with"),e.valueAccessor||Xd(e,"No value accessor for form control with"),t.validator=kd.compose([t.validator,e.validator]),t.asyncValidator=kd.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Yd(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Yd(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}
1),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Yd(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kd(t,e){null==t&&Xd(e,"Cannot find control with"),t.validator=kd.compose([t.validator,e.validator]),t.asyncValidator=kd.composeAsync([t.asyncValidator,e.asyncValidator])}function Zd(t){return Xd(t,"There is no FormControl instance attached to form control element with")}function Xd(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function Qd(t){return null!=t?kd.compose(t.map(Ad)):null}function Jd(t){return null!=t?kd.composeAsync(t.map(Td)):null}function tp(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!go(e,i.currentValue)}const ep=[cd,Bd,Pd,$d,qd,Md];function ip(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function np(t,e){if(!e)return null;Array.isArray(e)||Xd(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var r;e.constructor===dd?i=e:(r=e,ep.some(t=>r.constructor===t)?(n&&Xd(t,"More than one built-in value accessor matches form control with"),n=e):(s&&Xd(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(Xd(t,"No valid value accessor for form control with"),null)}function sp(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function rp(t,e,i,n){Tn()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(zd.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function op(t){const e=lp(t)?t.validators:t;return Array.isArray(e)?Qd(e):e||null}function ap(t,e){const i=lp(e)?e.asyncValidators:t;return Array.isArray(i)?Jd(i):i||null}function lp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cp{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=op(t)}setAsyncValidators(t){this.asyncValidator=ap(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);
vendor: 4,193 bytes, line 1
1this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=Ed(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof up?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof dp&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new jl,this.statusChanges=new jl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class hp extends cp{constructor(t=null,e,i){super(op(e),ap(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pe
1ndingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class up extends cp{constructor(t,e,i){super(op(e),ap(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof hp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class dp extends cp{constructor(t,e,i){super(op(e),ap(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}
1),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof hp?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const pp={provide:md,useExisting:Nt(()=>fp)},mp=(()=>Promise.resolve(null))();let fp=(()=>{class t extends md{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new jl,this.form=new up({},Qd(t),Jd(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mp.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Gd(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){mp.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),sp(this._directives,t)})}addFormGroup(t){mp.then(()=>{const e=this._findContainer(t.path),i=new up({});Kd(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mp.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mp.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ip(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Io(Cd,10),Io(Sd,10))},t.\u0275dir=Ae({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Vo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[La([pp]),Ca]}),t})(),gp=(()=>{class t extends md{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Wd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Qd(this._validators)}get asyncValidator(){return Jd(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return _p(e||t)},t.\u0275dir=Ae({type:t,features:[Ca]}),t})();const _p=mn(gp);class bp{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${Ld}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${Vd}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${jd}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${Vd}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${jd}`)}}const yp={provide:md,useExisting:Nt(()=>vp)};let vp=(()=>{class t extends gp{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof fp||bp.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Io(md,5),Io(Cd,10),Io(Sd,10))},t.\u0275dir=Ae({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[La([yp]),Ca]}),t})();const wp={provide:_d,useExisting:Nt(()=>Sp)},Cp=(()=>Promise.resolve(null))();let Sp=(()=>{class t extends _d{constructor(t,e,i,n){super(),this.control=new hp,this._registered=!1,this.update=new jl,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=np(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),tp(t,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Wd(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Qd(this._rawValidators)}get asyncValidator(){return Jd(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Gd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof vp)&&this._parent instanceof gp?bp.formGroupNameException():this._parent instanceof vp||this._parent instanceof fp||bp.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||bp.missingNameException()}_updateValue(t){Cp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Cp.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Io(md,9),Io(Cd,10),Io(Sd,10),Io(ad,10))},t.\u0275dir=Ae({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[La([wp]),Ca,Da]}),t})(),xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const kp=new Yt("NgModelWithFormControlWarning"),Ip={provide:_d,useExisting:Nt(()=>Ep)};let Ep=(()=>{class t extends _d{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new jl,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=np(this,i)}set isDisabled(t){zd.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(Gd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),tp(e,this.viewModel)&&(rp("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Qd(this._rawValidators)}get asyncValidator(){return Jd(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Io(Cd,10),Io(Sd,10),Io(ad,10),Io(kp,8))},t.\u0275dir=Ae({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[La([Ip]),Ca,Da]}),t._ngModelWarningSentOnce=!1,t})();const Dp={provide:md,useExisting:Nt(()=>Ap)};let Ap=(()=>{class t extends md{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new jl}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Gd(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}
1removeControl(t){sp(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Kd(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Kd(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ip(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>Zd(e)),e.valueAccessor.registerOnTouched(()=>Zd(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Gd(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Qd(this._validators);this.form.validator=kd.compose([this.form.validator,t]);const e=Jd(this._asyncValidators);this.form.asyncValidator=kd.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||zd.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(Io(Cd,10),Io(Sd,10))},t.\u0275dir=Ae({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Vo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[La([Dp]),Ca,Da]}),t})();const Tp={provide:md,useExisting:Nt(()=>Op)};let Op=(()=>{class t extends gp{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){Rp(this._parent)&&zd.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Io(md,13),Io(Cd,10),Io(Sd,10))},t.\u0275dir=Ae({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[La([Tp]),Ca]}),t})();const Pp={provide:md,useExisting:Nt(()=>Np)};let Np=(()=>{class t extends md{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Wd(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return Qd(this._validators)}get asyncValidator(){return Jd(this._asyncValidators)}_checkParentType(){Rp(this._parent)&&zd.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(Io(md,13),Io(Cd,10),Io(Sd,10))},t.\u0275dir=Ae({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[La([Pp]),Ca]}),t})();function Rp(t){return!(t instanceof Op||t instanceof Ap||t instanceof Np)}const Mp={provide:_d,useExisting:Nt(()=>Fp)};let Fp=(()=>{class t extends _d{constructor(t,e,i,n,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new jl,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=np(this,n)}set isDisabled(t){zd.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),tp(e,this.viewModel)&&(rp("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Wd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Qd(this._rawValidators)}get asyncValidator(){return Jd(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Op)&&this._parent instanceof gp?zd.ngModelGroupException():this._parent instanceof Op||this._parent instanceof Ap||this._parent instanceof Np||zd.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Io(md,13),Io(Cd,10),Io(Sd,10),Io(ad,10),Io(kp,8))},t.\u0275dir=Ae({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[La([Mp]),Ca,Da]}),t._ngModelWarningSentOnce=!1,t})(),Bp=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})(),Lp=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new up(i,{asyncValidators:s,updateOn:r,validators:n})}control(t,e,i){return new hp(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new dp(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>
1{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof hp||t instanceof up||t instanceof dp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Vp=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[Rd],imports:[Bp]}),t})(),jp=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:kp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[Lp,Rd],imports:[Bp]}),t})();function zp(t){const e=new S(e=>{e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function Up(...t){let e=t[t.length-1];switch(O(e)?t.pop():e=void 0,t.length){case 0:return sd(e);case 1:return e?G(t,e):zp(t[0]);default:return G(t,e)}}class $p extends A{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value}next(t){super.next(this._value=t)}}function Hp(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Hp.prototype=Object.create(Error.prototype);const qp=Hp,Wp={};function Gp(...t){let e=null,i=null;return O(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&c(t[0])&&(t=t[0]),G(t,i).lift(new Yp(e))}class Yp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Kp(t,this.resultSelector))}}class Kp extends ${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Wp),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 i=0;i<e;i++){const e=t[i];this.add(U(this,e,e,i))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i,n,s){const r=this.values,o=this.toRespond?r[i]===Wp?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function Zp(t){return new S(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Y(i):sd()).subscribe(e)})}function Xp(){return J(1)}function Qp(t,e){return function(i){return i.lift(new Jp(t,e))}}class Jp{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new tm(t,this.predicate,this.thisArg))}}class tm extends g{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function em(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}em.prototype=Object.create(Error.prototype);const im=em;function nm(t){return function(e){return 0===t?sd():e.lift(new sm(t))}}class sm{constructor(t){if(this.total=t,this.total<0)throw new im}call(t,e){return e.subscribe(new rm(t,this.total))}}class rm extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length<i?e.push(t):e[n%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;s<i;s++){const s=e++%i;t.next(n[s])}}t.complete()}}function om(t,e,i){return function(n){return n.lift(new am(t,e,i))}}class am{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new lm(t,this.nextOrObserver,this.error,this.complete))}}class lm extends g{constructor(t,e,i,n){super(t),this._tapNext=v,this._tapError=v,this._tapComplete=v,this._tapError=i||v,this._tapComplete=n||v,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||v,this._tapError=e.error||v,this._tapComplete=e.complete||v)}_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()}}const cm=(t=hm)=>om({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw t()}});function hm(){return new qp}function um(t=null){return e=>e.lift(new dm(t))}class dm{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new pm(t,this.defaultValue))}}class pm extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function mm(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qp((e,i)=>t(e,i,n)):Q,nm(1),i?um(e):cm(()=>new qp))}function fm(t){return function(e){const i=new gm(t),n=e.lift(i);return i.caught=n}}class gm{constructor(t){this.selector=t}call(t,e){return e.subscribe(new _m(t,this.selector,this.caught))}}class _m extends ${constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new P(this,void 0,void 0);this.add(n),U(this,i,void 0,void 0,n)}}}function bm(t){return e=>0===t?sd():e.lift(new ym(t))}class ym{constructor(t){if(this.total=t,this.total<0)throw new im}call(t,e){return e.subscribe(new vm(t,this.total))}}class vm extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function wm(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qp((e,i)=>t(e,i,n)):Q,bm(1),i?um(e):cm(()=>new qp))}function Cm(t,e){return i=>i.lift(new Sm(t,e,i))}class Sm{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new xm(t,this.predicate,this.thisArg,this.source))}}class xm extends g{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function km(t,e){return"function"==typeof e?i=>i.pipe(km((i,n)=>Y(t(i,n)).pipe(H((t,s)=>e(i,t,n,s))))):e=>e.lift(new Im(t))}class Im{constructor(t){this.project=t}call(t,e){return e.subscribe(new Em(t,this.project))}}class Em extends ${constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new P(this,void 0,void 0);this.destination.add(s),this.innerSubscription=U(this,t,e,i,s)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}function Dm(...t){return Xp()(Up(...t))}function Am(...t){return e=>{let i=t[t.length-1];O(i)?t.pop():i=null;const n=t.length;return Dm(1!==n||i?n>0?G(t,i):sd(i):zp(t[0]),e)}}function Tm(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Om(t,e,i))}}class Om{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Pm(t,this.accumulator,this.seed,this.hasSeed))}}class Pm extends g{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function Nm(t,e){return K(t,e,1)}function Rm(t,e){return arguments.length>=2?function(i){return w(Tm(t,e),nm(1),um(e))(i)}:function(e){return w(Tm((e,i,n)=>t(e,i,n+1)),nm(1))(e)}}function Mm(t){return e=>e.lift(new Fm(t))}class Fm{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Bm(t,this.callback))}}class Bm extends g{constructor(t,e){super(t),this.add(new p(e))}}class Lm{constructor(t,e){this.id=t,this.url=e}}class Vm extends Lm{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jm extends Lm{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zm extends Lm{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Um extends Lm{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $m extends Lm{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hm extends Lm{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qm extends Lm{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wm extends Lm{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gm extends Lm{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ym{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Km{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zm{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xm{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qm{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jm{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tf{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ef=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Se({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&No(0,"router-outlet")},directives:function(){return[a_]},encapsulation:2}),t})();
1class nf{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function sf(t){return new nf(t)}function rf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function of(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length<t.length))return null;const s={};for(let r=0;r<n.length;r++){const e=n[r],i=t[r];if(e.startsWith(":"))s[e.substring(1)]=i;else if(e!==i.path)return null}return{consumed:t.slice(0,n.length),posParams:s}}class af{constructor(t,e){this.routes=t,this.module=e}}function lf(t,e=""){for(let i=0;i<t.length;i++){const n=t[i];cf(n,hf(e,n))}}function cf(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&lf(t.children,e)}function hf(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function uf(t){const e=t.children&&t.children.map(uf),i=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!i.component&&(e||i.loadChildren)&&i.outlet&&"primary"!==i.outlet&&(i.component=ef),i}function df(t,e){const i=Object.keys(t),n=Object.keys(e);if(!i||!n||i.length!=n.length)return!1;let s;for(let r=0;r<i.length;r++)if(s=i[r],!pf(t[s],e[s]))return!1;return!0}function pf(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function mf(t){return Array.prototype.concat.apply([],t)}function ff(t){return t.length>0?t[t.length-1]:null}function gf(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function _f(t){return Lo(t)?t:Bo(t)?Y(Promise.resolve(t)):Up(t)}function bf(t,e,i){return i?function(t,e){return df(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Cf(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>pf(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!Cf(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!Cf(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),r=s.slice(i.segments.length);return!!Cf(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,r)}}(e,i,i.segments)}(t.root,e.root)}class yf{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=sf(this.queryParams)),this._queryParamMap}toString(){return If.serialize(this)}}class vf{constructor(t,e){this.segments=t,this.children=e,this.parent=null,gf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ef(this)}}class wf{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=sf(this.parameters)),this._parameterMap}toString(){return Nf(this)}}function Cf(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Sf(t,e){let i=[];return gf(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),gf(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class xf{}class kf{parse(t){const e=new Lf(t);
vendor: 13,371 bytes, line 1
1return new yf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return Ef(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return gf(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Sf(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${Ef(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Af(e)}=${Af(t)}`).join("&"):`${Af(e)}=${Af(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const If=new kf;function Ef(t){return t.segments.map(t=>Nf(t)).join("/")}function Df(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Af(t){return Df(t).replace(/%3B/gi,";")}function Tf(t){return Df(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Of(t){return decodeURIComponent(t)}function Pf(t){return Of(t.replace(/\+/g,"%20"))}function Nf(t){return`${Tf(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Tf(t)}=${Tf(e[t])}`).join("")}`;var e}const Rf=/^[^\/()?;=#]+/;function Mf(t){const e=t.match(Rf);return e?e[0]:""}const Ff=/^[^=?&#]+/,Bf=/^[^?&#]+/;class Lf{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vf([],{}):new vf([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new vf(t,e)),i}parseSegment(){const t=Mf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new wf(Of(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Mf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Mf(this.remaining);t&&(i=t,this.capture(i))}t[Of(e)]=Of(i)}parseQueryParam(t){const e=function(t){const e=t.match(Ff);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Bf);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Pf(e),s=Pf(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Mf(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new vf([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Vf{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=jf(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=jf(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=zf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return zf(t,this._root).map(t=>t.value)}}function jf(t,e){if(t===e.value)return e;for(const i of e.children){const e=jf(t,i);if(e)return e}return null}function zf(t,e){if(t===e.value)return[e];for(const i of e.children){const n=zf(t,i);if(n.length)return n.unshift(e),n}return[]}class Uf{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function $f(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Hf extends Vf{constructor(t,e){super(t),this.snapshot=e,Zf(this,t)}toString(){return this.snapshot.toString()}}function qf(t,e){const i=function(t,e){const i=new Yf([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Kf("",new Uf(i,[]))}(t,e),n=new $p([new wf("",{})]),s=new $p({}),r=new $p({}),o=new $p({}),a=new $p(""),l=new Wf(n,s,o,a,r,"primary",e,i.root);return l.snapshot=i.root,new Hf(new Uf(l,[]),i)}class Wf{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(t=>sf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(t=>sf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gf(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Yf{constructor(t,e,i,n,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=sf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=sf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kf extends Vf{constructor(t,e){super(e),this.url=t,Zf(this,e)}toString(){return Xf(this._root)}}function Zf(t,e){e.value._routerState=t,e.children.forEach(e=>Zf(t,e))}function Xf(t){const e=t.children.length>0?` { ${t.children.map(Xf).join(", ")} } `:"";return`${t.value}${e}`}function Qf(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,df(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),df(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!df(t[i],e[i]))return!1;return!0}(e.url,i.url)||t.url.next(i.url),df(e.data,i.data)||t.data.next(i.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Jf(t,e){var i,n;return df(t.params,e.params)&&Cf(i=t.url,n=e.url)&&i.every((t,e)=>df(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Jf(t.parent,e.parent))}function tg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function eg(t,e,i,n,s){let r={};return n&&gf(n,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new yf(i.root===t?e:function t(e,i,n){const s={};return gf(e.children,(e,r)=>{s[r]=e===i?n:t(e,i,n)}),new vf(e.segments,s)}(i.root,t,e),r,s)}class ig{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&tg(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==ff(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ng{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function sg(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function rg(t,e,i){if(t||(t=new vf([],{})),0===t.segments.length&&t.hasChildren())return og(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=i.length)return r;const e=t.segments[s],o=sg(i[n]),a=n<i.length-1?i[n+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!hg(o,a,e))return r;n+=2}else{if(!hg(o,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const e=new vf(t.segments.slice(0,n.pathIndex),{});return e.children.primary=new vf(t.segments.slice(n.pathIndex),t.children),og(e,0,s)}return n.match&&0===s.length?new vf(t.segments,{}):n.match&&!t.hasChildren()?ag(t,e,i):n.match?og(t,0,s):ag(t,e,i)}function og(t,e,i){if(0===i.length)return new vf(t.segments,{});{const n=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(i),s={};return gf(n,(i,n)=>{null!==i&&(s[n]=rg(t.children[n],e,i))}),gf(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new vf(t.segments,s)}}function ag(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s<i.length;){if("object"==typeof i[s]&&void 0!==i[s].outlets){const t=lg(i[s].outlets);return new vf(n,t)}if(0===s&&tg(i[0])){n.push(new wf(t.segments[e].path,i[0])),s++;continue}const r=sg(i[s]),o=s<i.length-1?i[s+1]:null;r&&o&&tg(o)?(n.push(new wf(r,cg(o))),s+=2):(n.push(new wf(r,{})),s++)}return new vf(n,{})}function lg(t){const e={};return gf(t,(t,i)=>{null!==t&&(e[i]=ag(new vf([],{}),0,t))}),e}function cg(t){const e={};return gf(t,(t,i)=>e[i]=`${t}`),e}function hg(t,e,i){return t==i.path&&df(e,i.parameters)}class ug{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Qf(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=$f(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),gf(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=$f(t),s=t.value.component?i.children:e;gf(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=$f(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Jm(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Xm(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Qf(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),dg(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}
1function dg(t){Qf(t.value),t.children.forEach(dg)}function pg(t){return"function"==typeof t}function mg(t){return t instanceof yf}class fg{constructor(t){this.segmentGroup=t||null}}class gg{constructor(t){this.urlTree=t}}function _g(t){return new S(e=>e.error(new fg(t)))}function bg(t){return new S(e=>e.error(new gg(t)))}function yg(t){return new S(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vg{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ce)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(H(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(fm(t=>{if(t instanceof gg)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof fg)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(H(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(fm(t=>{if(t instanceof fg)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new vf([],{primary:t}):t;return new yf(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(H(t=>new vf([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Up({});const i=[],n=[],s={};return gf(t,(t,r)=>{const o=e(r,t).pipe(H(t=>s[r]=t));"primary"===r?i.push(o):n.push(o)}),Up.apply(null,i.concat(n)).pipe(Xp(),mm(),H(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,r){return Up(...i).pipe(H(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(fm(t=>{if(t instanceof fg)return Up(null);throw t}))),Xp(),wm(t=>!!t),fm((t,i)=>{if(t instanceof qp||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Up(new vf([],{}));throw new fg(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return xg(n)!==r?_g(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):_g(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?bg(s):this.lineralizeSegments(i,s).pipe(K(i=>{const s=new vf(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=wg(e,n,s);if(!o)return _g(e);const h=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?bg(h):this.lineralizeSegments(n,h).pipe(K(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(H(t=>(i._loadedConfig=t,new vf(n,{})))):Up(new vf(n,{}));const{matched:s,consumedSegments:r,lastChild:o}=wg(e,i,n);if(!s)return _g(e);const a=n.slice(o);return this.getChildConfig(t,i,n).pipe(K(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Sg(t,e,i)&&"primary"!==xg(i))}(t,i,n)?{segmentGroup:Cg(new vf(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==xg(n)&&(i[xg(n)]=new vf([],{}));return i}(n,new vf(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Sg(t,e,i))}(t,i,n)?{segmentGroup:Cg(new vf(t.segments,function(t,e,i,n){const s={};for(const r of i)Sg(t,e,r)&&!n[xg(r)]&&(s[xg(r)]=new vf([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,r,a,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(H(t=>new vf(r,t))):0===n.length&&0===o.length?Up(new vf(r,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(H(t=>new vf(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Up(new af(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Up(e._loadedConfig):function(t,e,
vendor: 5,347 bytes, line 1
1i){const n=e.canLoad;return n&&0!==n.length?Y(n).pipe(H(n=>{const s=t.get(n);let r;if(function(t){return t&&pg(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!pg(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return _f(r)})).pipe(Xp(),Cm(t=>!0===t)):Up(!0)}(t.injector,e,i).pipe(K(i=>i?this.configLoader.load(t.injector,e).pipe(H(t=>(e._loadedConfig=t,t))):function(t){return new S(e=>e.error(rf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Up(new af([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Up(i);if(n.numberOfChildren>1||!n.children.primary)return yg(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new yf(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return gf(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return gf(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new vf(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function wg(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||of)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Cg(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vf(t.segments.concat(e.segments),e.children)}return t}function Sg(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function xg(t){return t.outlet||"primary"}class kg{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ig{constructor(t,e){this.component=t,this.route=e}}function Eg(t,e,i){const n=t._root;return function t(e,i,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=$f(i);return e.children.forEach(e=>{!function(e,i,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Cf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Cf(t.url,e.url)||!df(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jf(t,e)||!df(t.queryParams,e.queryParams);case"paramsChange":default:return!Jf(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new kg(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,i,o.component?l?l.children:null:n,s,r),c&&r.canDeactivateChecks.push(new Ig(l&&l.outlet&&l.outlet.component||null,a))}else a&&Ag(i,l,r),r.canActivateChecks.push(new kg(s)),t(e,null,o.component?l?l.children:null:n,s,r)}(e,o[e.value.outlet],n,s.concat([e.value]),r),delete o[e.value.outlet]}),gf(o,(t,e)=>Ag(t,n.getContext(e),r)),r}(n,e?e._root:null,i,[n.value])}function Dg(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ag(t,e,i){const n=$f(t),s=t.value;gf(n,(t,n)=>{Ag(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ig(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Tg=Symbol("INITIAL_VALUE");function Og(){return km(t=>Gp(...t.map(t=>t.pipe(bm(1),Am(Tg)))).pipe(Tm((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Tg)return t;if(n===Tg&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||mg(n))return n}return t},t)},Tg),Qp(t=>t!==Tg),H(t=>mg(t)?t:!0===t),bm(1)))}function Pg(t,e){return null!==t&&e&&e(new Qm(t)),Up(!0)}function Ng(t,e){return null!==t&&e&&e(new Zm(t)),Up(!0)}function Rg(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Up(n.map(n=>Zp(()=>{const s=Dg(n,e,i);let r;if(function(t){return t&&pg(t.canActivate)}(s))r=_f(s.canActivate(e,t));else{if(!pg(s))throw new Error("Invalid CanActivate guard");r=_f(s(e,t))}return r.pipe(wm())}))).pipe(Og()):Up(!0)}function Mg(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Zp(()=>Up(e.guards.map(s=>{const r=Dg(s,e.node,i);let o;if(function(t){return t&&pg(t.canActivateChild)}(r))o=_f(r.canActivateChild(n,t));else{if(!pg(r))throw new Error("Invalid CanActivateChild guard");o=_f(r(n,t))}
1return o.pipe(wm())})).pipe(Og())));return Up(s).pipe(Og())}class Fg{}class Bg{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=jg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new Yf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Uf(i,e),s=new Kf(this.url,n);return this.inheritParamsAndData(s._root),Up(s)}catch(t){return new S(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=Gf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Sf(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,i,n)}catch(s){if(!(s instanceof Fg))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Fg}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Fg;if((t.outlet||"primary")!==n)throw new Fg;let s,r=[],o=[];if("**"===t.path){const r=i.length>0?ff(i).parameters:{};s=new Yf(i,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$g(t),n,t.component,t,Lg(e),Vg(e)+i.length,Hg(t))}else{const a=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Fg;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||of)(i,t,e);if(!n)throw new Fg;const s={};gf(n.posParams,(t,e)=>{s[e]=t.path});const r=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=a.consumedSegments,o=i.slice(a.lastChild),s=new Yf(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$g(t),n,t.component,t,Lg(e),Vg(e)+r.length,Hg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=jg(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Uf(s,t)]}if(0===a.length&&0===c.length)return[new Uf(s,[])];const h=this.processSegment(a,l,c,"primary");return[new Uf(s,h)]}}function Lg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Vg(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function jg(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>zg(t,e,i)&&"primary"!==Ug(i))}(t,i,n)){const s=new vf(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==Ug(r)){const i=new vf([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ug(r)]=i}return s}(t,e,n,new vf(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>zg(t,e,i))}(t,i,n)){const r=new vf(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(zg(t,i,a)&&!s[Ug(a)]){const i=new vf([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Ug(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new vf(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function zg(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Ug(t){return t.outlet||"primary"}function $g(t){return t.data||{}}function Hg(t){return t.resolve||{}}function qg(t,e,i,n){const s=Dg(t,e,n);return _f(s.resolve?s.resolve(e,i):s(e,i))}function Wg(t){return function(e){return e.pipe(km(e=>{const i=t(e);return i?Y(i).pipe(H(()=>e)):Y([e])}))}}class Gg{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Yg=new Yt("ROUTES");class Kg{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(H(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);
1const n=i.create(t);return new af(mf(n.injector.get(Yg)).map(uf),n)}))}loadModuleFactory(t){return"string"==typeof t?Y(this.loader.load(t)):_f(t()).pipe(K(t=>t instanceof he?Up(t):Y(this.compiler.compileModuleAsync(t))))}}class Zg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Xg(t){throw t}function Qg(t,e,i){return e.parse("/")}function Jg(t,e){return Up(null)}let t_=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Xg,this.malformedUriErrorHandler=Qg,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Jg,afterPreactivation:Jg},this.urlHandlingStrategy=new Zg,this.routeReuseStrategy=new Gg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(ce),this.console=s.get(gc);const l=s.get(Tc);this.isNgZoneEnabled=l instanceof Tc,this.resetConfig(a),this.currentUrlTree=new yf(new vf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Kg(r,o,t=>this.triggerEvent(new Ym(t)),t=>this.triggerEvent(new Km(t))),this.routerState=qf(this.currentUrlTree,this.rootComponentType),this.transitions=new $p({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Qp(t=>0!==t.id),H(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),km(t=>{let i=!1,n=!1;return Up(t).pipe(om(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),km(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Up(t).pipe(km(t=>{const i=this.transitions.getValue();return e.next(new Vm(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?nd:[t]}),km(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(km(t=>function(t,e,i,n,s){return new vg(t,e,i,n,s).apply()}(n,s,r,t.extractedUrl,o).pipe(H(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),om(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(r){return r.pipe(K(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){return new Bg(t,e,i,n,s,r).recognize()}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(H(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),om(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),om(t=>{const i=new $m(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,r,o;
1if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new Vm(i,this.serializeUrl(n),s,r);e.next(a);const l=qf(n,this.rootComponentType).snapshot;return Up(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),nd}),Wg(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),om(t=>{const e=new Hm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),H(t=>Object.assign(Object.assign({},t),{guards:Eg(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(K(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Up(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Y(t).pipe(K(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Up(r.map(r=>{const o=Dg(r,e,s);let a;if(function(t){return t&&pg(t.canDeactivate)}(o))a=_f(o.canDeactivate(t,e,i,n));else{if(!pg(o))throw new Error("Invalid CanDeactivate guard");a=_f(o(t,e,i,n))}return a.pipe(wm())})).pipe(Og()):Up(!0)}(t.component,t.route,i,e,n)),wm(t=>!0!==t,!0))}(o,n,s,t).pipe(K(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Y(e).pipe(Nm(e=>Y([Ng(e.route.parent,n),Pg(e.route,n),Mg(t,e.path,i),Rg(t,e.route,i)]).pipe(Xp(),wm(t=>!0!==t,!0))),wm(t=>!0!==t,!0))}(n,r,t,e):Up(i)),H(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),om(t=>{if(mg(t.guardsResult)){const e=rf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),om(t=>{const e=new qm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Qp(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new zm(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Wg(t=>{if(t.guards.canActivateChecks.length)return Up(t).pipe(om(t=>{const e=new Wm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(K(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Y(s).pipe(Nm(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Up({});if(1===s.length){const r=s[0];return qg(t[r],e,i,n).pipe(H(t=>({[r]:t})))}const r={};return Y(s).pipe(K(s=>qg(t[s],e,i,n).pipe(H(t=>(r[s]=t,t))))).pipe(mm(),H(()=>r))}(t._resolve,t,e,n).pipe(H(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gf(t,i).resolve),null)))}(t.route,n,e,i)),Rm((t,e)=>t),H(e=>t)):Up(t)}))}),om(t=>{const e=new Gm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),Wg(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),H(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,
1n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const r=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new Uf(s,r)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)t(e.children[n],i.children[n])}(i,t),t}{const n=new Wf(new $p((s=i.value).url),new $p(s.params),new $p(s.queryParams),new $p(s.fragment),new $p(s.data),s.outlet,s.component,s),r=i.children.map(i=>t(e,i));return new Uf(n,r)}}var s}(t,e._root,i?i._root:void 0);return new Hf(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),om(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),H(t=>(new ug(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),om({next(){i=!0},complete(){i=!0}}),Mm(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new zm(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),fm(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=mg(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new zm(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new Um(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return nd}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){lf(t),this.config=t.map(uf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;Tn()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=i||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let h=null;if(o)switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=r?this.currentUrlTree.queryParams:n||null;
1return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return eg(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ig(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return gf(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new ig(i,e,n)}(i);if(r.toRoot())return eg(e.root,new vf([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new ng(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new ng(i.snapshot._urlSegment,!0,0);const n=tg(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ng(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?og(o.segmentGroup,o.index,r.commands):rg(o.segmentGroup,o.index,r.commands);return eg(o.segmentGroup,a,e,n,s)}(l,this.currentUrlTree,t,h,c)}navigateByUrl(t,e={skipLocationChange:!1}){Tn()&&this.isNgZoneEnabled&&!Tc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=mg(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const i=t[e];if(null==i)throw new Error(`The requested path contains ${i} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(i){e=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return e}isActive(t,e){if(mg(t))return bf(this.currentUrlTree,t,e);const i=this.parseUrl(t);return bf(this.currentUrlTree,i,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,i)=>{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new jm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){Do()},t.\u0275dir=Ae({type:t}),t})(),e_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Tn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:n_(this.skipLocationChange),replaceUrl:n_(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:n_(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:n_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Io(t_),Io(Wf),Eo("tabindex"),Io(Wa),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&V
1o("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),i_=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof jm&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Tn()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:n_(this.skipLocationChange),replaceUrl:n_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:n_(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:n_(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Io(t_),Io(Wf),Io(bh))},t.\u0275dir=Ae({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Vo("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(ya("href",e.href,es),Co("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Da]}),t})();function n_(t){return""===t||!!t}let s_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof jm&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Io(t_),Io(Ua),Io(Wa),Io(e_,8),Io(i_,8))},t.\u0275dir=Ae({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(ec(i,e_,!0),ec(i,i_,!0)),2&t&&(Xl(n=sc())&&(e.links=n),Xl(n=sc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[Da]}),t})();class r_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new o_,this.attachRef=null}}class o_{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new r_,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let a_=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new jl,this.deactivateEvents=new jl,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;
1const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new l_(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Io(o_),Io(ml),Io(za),Eo("name"),Io(qr))},t.\u0275dir=Ae({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class l_{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Wf?this.route:t===o_?this.childContexts:this.parent.get(t,e)}}class c_{}class h_{preload(t,e){return Up(null)}}let u_=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Kg(e,i,e=>t.triggerEvent(new Ym(e)),e=>t.triggerEvent(new Km(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qp(t=>t instanceof jm),Nm(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ce);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Y(i).pipe(J(),H(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(K(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(se(t_),se(Qc),se(Ic),se(ao),se(c_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),d_=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Vm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof jm&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof tf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new tf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){Do()},t.\u0275dir=Ae({type:t}),t})();
1const p_=new Yt("ROUTER_CONFIGURATION"),m_=new Yt("ROUTER_FORROOT_GUARD"),f_=[Sh,{provide:xf,useClass:kf},{provide:t_,useFactory:function(t,e,i,n,s,r,o,a={},l,c){const h=new t_(null,t,e,i,n,s,r,mf(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=ah();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h},deps:[xf,o_,Sh,ao,Qc,Ic,Yg,p_,[class{},new mt],[class{},new mt]]},o_,{provide:Wf,useFactory:function(t){return t.routerState.root},deps:[t_]},{provide:Qc,useClass:eh},u_,h_,class{preload(t,e){return e().pipe(fm(()=>Up(null)))}},{provide:p_,useValue:{enableTracing:!1}}];function g_(){return new qc("Router",t_)}let __=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[f_,w_(e),{provide:m_,useFactory:v_,deps:[[t_,new mt,new gt]]},{provide:p_,useValue:i||{}},{provide:bh,useFactory:y_,deps:[ch,[new pt(vh),new mt],p_]},{provide:d_,useFactory:b_,deps:[t_,ku,p_]},{provide:c_,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:h_},{provide:qc,multi:!0,useFactory:g_},[C_,{provide:lc,multi:!0,useFactory:S_,deps:[C_]},{provide:k_,useFactory:x_,deps:[C_]},{provide:fc,multi:!0,useExisting:k_}]]}}static forChild(e){return{ngModule:t,providers:[w_(e)]}}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)(se(m_,8),se(t_,8))}}),t})();function b_(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new d_(t,e,i)}function y_(t,e,i={}){return i.useHash?new Ch(t,e):new wh(t,e)}function v_(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function w_(t){return[{provide:lo,multi:!0,useValue:t},{provide:Yg,multi:!0,useValue:t}]}let C_=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(uh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(t_),n=this.injector.get(p_);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Up(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(p_),i=this.injector.get(u_),n=this.injector.get(d_),s=this.injector.get(t_),r=this.injector.get(Zc);t===r.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(se(ao))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function S_(t){return t.appInitializer.bind(t)}function x_(t){return t.bootstrapListener.bind(t)}const k_=new Yt("Router Initializer"),I_="https://submissions.centralbankbahamas.com:9000/BGRSApplication";var E_={environment:"full",loginApiUrlBase:`${I_}/api/login`,enrollApiUrlBase:`${I_}/api/save`,accountApiUrlBase:`${I_}/api/account`,getbankIdDropdownApiUrlBase:`${I_}/api/getbankId`,applicationApiUrlBase:`${I_}/api/pageload`,applicationfilterbenApiUrlBase:`${I_}/api/filterbendata`,viewApiUrlBase:`${I_}/api/view`,viewTransactionURLBase:`${I_}/api/viewTransaction`,sendemailApiUrlBase:`${I_}/api/ForgotPassword`,usersApiUrlBase:`${I_}/api/user`,changePasswordApiUrlBase:`${I_}/api/changePassword`,holdingApiUrlBase:`${I_}/api/holdings`,holdingbeneficiariesApiUrlBase:`${I_}/api/holdingsbeneficiaries`,unsubsribeApiUrlBase:`${I_}/api/unsubsribepageload`,RequestRedemApiUrlBase:`${I_}/api/requestredem`};class D_{}class A_{}class T_{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 i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>
vendor: 15,502 bytes, line 1
1{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}: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 T_?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 T_;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof T_?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.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 O_{encodeKey(t){return P_(t)}encodeValue(t){return P_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function P_(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 N_{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new O_,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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 N_({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 i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function R_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function M_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function F_(t){return"undefined"!=typeof FormData&&t instanceof FormData}class B_{constructor(t,e,i,n){let s;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)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new T_),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":i<e.length-1?"&":"")+t}}else this.params=new N_,this.urlWithParams=e}serializeBody(){return null===this.body?null:R_(this.body)||M_(this.body)||F_(this.body)||"string"==typeof this.body?this.body:this.body instanceof N_?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||F_(this.body)?null:M_(this.body)?this.body.type||null:R_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof N_?"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,i=t.url||this.url,n=t.responseType||this.responseType,s=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,i)=>e.set(i,t.setHeaders[i]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new B_(e,i,s,{params:l,headers:a,reportProgress:o,responseType:n,withCredentials:r})}}const L_=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class V_{constructor(t,e=200,i="OK"){this.headers=t.headers||new T_,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class j_ extends V_{constructor(t={}){super(t),this.type=L_.ResponseHeader}clone(t={}){return new j_({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class z_ extends V_{constructor(t={}){super(t),this.type=L_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new z_({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class U_ extends V_{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function $_(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let H_=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof B_)n=t;else{let s=void 0;s=i.headers instanceof T_?i.headers:new T_(i.headers);let r=void 0;i.params&&(r=i.params instanceof N_?i.params:new N_({fromObject:i.params})),n=new B_(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Up(n).pipe(Nm(t=>this.handler.handle(t)));if(t instanceof B_||"events"===i.observe)return s;const r=s.pipe(Qp(t=>t instanceof z_));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(H(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(H(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(H(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(H(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.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 N_).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,$_(i,e))}post(t,e,i={}){return this.request("POST",t,$_(i,e))}put(t,e,i={}){return this.request("PUT",t,$_(i,e))}}return t.\u0275fac=function(e){return new(e||t)(se(D_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class q_{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const W_=new Yt("HTTP_INTERCEPTORS");let G_=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const Y_=/^\)\]\}',?\n/;class K_{}let Z_=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),X_=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new S(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new T_(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new j_({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Y_,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new z_({body:l,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new U_({error:l,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new U_({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(r()),l=!0);let s={type:L_.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:L_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:L_.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(se(K_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const Q_=new Yt("XSRF_COOKIE_NAME"),J_=new Yt("XSRF_HEADER_NAME");class tb{}let eb=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=su(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(se(lh),se(mc),se(Q_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),ib=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(se(tb),se(J_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),nb=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(W_,[]);this.chain=t.reduceRight((t,e)=>new q_(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(se(A_),se(ao))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),sb=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:ib,useClass:G_}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Q_,useValue:e.cookieName}:[],e.headerName?{provide:J_,useValue:e.headerName}:[]]}}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[ib,{provide:W_,useExisting:ib,multi:!0},{provide:tb,useClass:eb},{provide:Q_,useValue:"XSRF-TOKEN"},{provide:J_,useValue:"X-XSRF-TOKEN"}]}),t})(),rb=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[H_,{provide:D_,useClass:nb},X_,{provide:A_,useExisting:X_},Z_,{provide:K_,useExisting:Z_}],imports:[[sb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class ob extends A{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(t){return this.hasError?(t.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),p.EMPTY):super._subscribe(t)}next(t){this.hasCompleted||(this.value=t,this.hasNext=!0)}error(t){this.hasCompleted||super.error(t)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}function ab(t){const{args:e,subscriber:i,params:n}=t,{callbackFunc:s,context:r,scheduler:o}=n;let{subject:a}=n;
1if(!a){a=n.subject=new ob;const t=(...t)=>{this.add(o.schedule(lb,0,{value:t.length<=1?t[0]:t,subject:a}))};try{s.apply(r,[...e,t])}catch(l){a.error(l)}}this.add(a.subscribe(i))}function lb(t){const{value:e,subject:i}=t;i.next(e),i.complete()}function cb(t){const{params:e,subscriber:i,context:n}=t,{callbackFunc:s,args:r,scheduler:o}=e;let a=e.subject;if(!a){a=e.subject=new ob;const t=(...t)=>{const e=t.shift();this.add(e?o.schedule(ub,0,{err:e,subject:a}):o.schedule(hb,0,{value:t.length<=1?t[0]:t,subject:a}))};try{s.apply(n,[...r,t])}catch(l){this.add(o.schedule(ub,0,{err:l,subject:a}))}}this.add(a.subscribe(i))}function hb(t){const{value:e,subject:i}=t;i.next(e),i.complete()}function ub(t){const{err:e,subject:i}=t;i.error(e)}function db(t,e,i,n){return s(i)&&(n=i,i=void 0),n?db(t,e,i).pipe(H(t=>c(t)?n(...t):n(t))):new S(n=>{!function t(e,i,n,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,r),o=()=>t.removeEventListener(i,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],i,n,s,r)}s.add(o)}(t,e,(function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),n,i)})}function pb(t){const{subscriber:e,condition:i}=t;if(e.closed)return;if(t.needIterate)try{t.state=t.iterate(t.state)}catch(s){return void e.error(s)}else t.needIterate=!0;if(i){let n;try{n=i(t.state)}catch(s){return void e.error(s)}if(!n)return void e.complete();if(e.closed)return}let n;try{n=t.resultSelector(t.state)}catch(s){return void e.error(s)}return e.closed||(e.next(n),e.closed)?void 0:this.schedule(t)}S.bindCallback=function t(e,i,n){if(i){if(!O(i))return(...s)=>t(e,n)(...s).pipe(H(t=>c(t)?i(...t):i(t)));n=i}return function(...t){const i=this;let s;const r={context:i,subject:s,callbackFunc:e,scheduler:n};return new S(o=>{if(n)return n.schedule(ab,0,{args:t,subscriber:o,params:r});if(!s){s=new ob;const n=(...t)=>{s.next(t.length<=1?t[0]:t),s.complete()};try{e.apply(i,[...t,n])}catch(a){b(s)?s.error(a):console.warn(a)}}return s.subscribe(o)})}},S.bindNodeCallback=function t(e,i,n){if(i){if(!O(i))return(...s)=>t(e,n)(...s).pipe(H(t=>c(t)?i(...t):i(t)));n=i}return function(...t){const i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new S(s=>{const{context:r}=i;let{subject:o}=i;if(n)return n.schedule(cb,0,{params:i,subscriber:s,context:r});if(!o){o=i.subject=new ob;const n=(...t)=>{const e=t.shift();e?o.error(e):(o.next(t.length<=1?t[0]:t),o.complete())};try{e.apply(r,[...t,n])}catch(a){b(o)?o.error(a):console.warn(a)}}return o.subscribe(s)})}},S.combineLatest=Gp,S.concat=Dm,S.defer=Zp,S.empty=sd,S.forkJoin=rd,S.from=Y,S.fromEvent=db,S.fromEventPattern=function t(e,i,n){return n?t(e,i).pipe(H(t=>c(t)?n(...t):n(t))):new S(t=>{const n=(...e)=>t.next(1===e.length?e[0]:e);let r;try{r=e(n)}catch(o){return void t.error(o)}if(s(i))return()=>i(n,r)})},S.fromPromise=Y,S.generate=function(t,e,i,n,s){let r,o;return 1==arguments.length?(o=t.initialState,e=t.condition,i=t.iterate,r=t.resultSelector||Q,s=t.scheduler):void 0===n||O(n)?(o=t,r=Q,s=n):(o=t,r=n),new S(t=>{let n=o;if(s)return s.schedule(pb,0,{subscriber:t,iterate:i,condition:e,resultSelector:r,state:n});for(;;){if(e){let i;try{i=e(n)}catch(a){return void t.error(a)}if(!i){t.complete();break}}let s;try{s=r(n)}catch(a){return void t.error(a)}if(t.next(s),t.closed)break;try{n=i(n)}catch(a){return void t.error(a)}}})},S.if=function(t,e=nd,i=nd){return Zp(()=>t()?e:i)};class mb extends p{constructor(t,e){super()}schedule(t,e=0){return this}}class fb extends mb{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);
1this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let gb=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class _b extends gb{constructor(t,e=gb.now){super(t,()=>_b.delegate&&_b.delegate!==this?_b.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return _b.delegate&&_b.delegate!==this?_b.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const bb=new _b(fb);function yb(t){return!c(t)&&t-parseFloat(t)+1>=0}function vb(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function wb(...t){if(1===t.length){if(!c(t[0]))return t[0];t=t[0]}return G(t,void 0).lift(new Cb)}S.interval=function(t=0,e=bb){return(!yb(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=bb),new S(i=>(i.add(e.schedule(vb,t,{subscriber:i,counter:0,period:t})),i))},S.merge=tt;class Cb{call(t,e){return e.subscribe(new Sb(t))}}class Sb extends ${constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i<e&&!this.hasFirst;i++){let e=t[i],n=U(this,e,e,i);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}}notifyNext(t,e,i,n,s){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==i){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}S.race=wb;const xb=new S(v);function kb(t){const{keys:e,index:i,subscriber:n,subscription:s,obj:r}=t;if(!n.closed)if(i<e.length){const t=e[i];n.next([t,r[t]]),s.add(this.schedule({keys:e,index:i+1,subscriber:n,subscription:s,obj:r}))}else n.complete()}function Ib(t){const{start:e,index:i,count:n,subscriber:s}=t;i>=n?s.complete():(s.next(e),s.closed||(t.index=i+1,t.start=e+1,this.schedule(t)))}function Eb(t,e){return new S(e?i=>e.schedule(Db,0,{error:t,subscriber:i}):e=>e.error(t))}function Db({error:t,subscriber:e}){e.error(t)}function Ab(t=0,e,i){let n=-1;return yb(e)?n=Number(e)<1?1:Number(e):O(e)&&(i=e),O(i)||(i=bb),new S(e=>{const s=yb(t)?t:+t-i.now();return i.schedule(Tb,s,{index:0,period:n,subscriber:e})})}function Tb(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ob(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),G(t,void 0).lift(new Pb(e))}S.never=function(){return xb},S.of=Up,S.onErrorResumeNext=function t(...e){if(0===e.length)return nd;const[i,...n]=e;return 1===e.length&&c(i)?t(...i):new S(e=>{const s=()=>e.add(t(...n).subscribe(e));return Y(i).subscribe({next(t){e.next(t)},error:s,complete:s})})},S.pairs=function(t,e){return new S(e?i=>{const n=Object.keys(t),s=new p;return s.add(e.schedule(kb,0,{keys:n,index:0,subscriber:i,subscription:s,obj:t})),s}:e=>{const i=Object.keys(t);for(let n=0;n<i.length&&!e.closed;n++){const s=i[n];t.hasOwnProperty(s)&&e.next([s,t[s]])}e.complete()})},S.range=function(t=0,e,i){return new S(n=>{void 0===e&&(e=t,t=0);let s=0,r=t;if(i)return i.schedule(Ib,0,{index:s,count:e,start:t,subscriber:n});for(;;){if(s++>=e){n.complete();break}if(n.next(r++),n.closed)break}})},S.using=function(t,e){return new S(i=>{let n,s;try{n=t()}catch(o){return void i.error(o)}try{s=e(n)}catch(o){return void i.error(o)}const r=(s?Y(s):nd).subscribe(i);return()=>{r.unsubscribe(),n&&n.unsubscribe()}})},S.throw=Eb,S.throwError=Eb,S.timer=Ab;class Pb{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Nb(t,this.resultSelector))}}class Nb extends g{constructor(t,e,i=Object.create(null)){super(t),this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:null,this.values=i}_next(t){const e=this.iterators;c(t)?e.push(new Mb(t)):e.push("function"==typeof t[F]?new Rb(t[F]()):new Fb(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;i<e;i++){let e=t[i];e.stillUnsubscribed?this.destination.add(e.subscribe(e,i)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,i=this.destination;for(let r=0;r<e;r++){let e=t[r];if("function"==typeof e.hasValue&&!e.hasValue())return}let n=!1;const s=[];for(let r=0;r<e;r++){let e=t[r],o=e.next();if(e.hasCompleted()&&(n=!0),o.done)return void i.complete();s.push(o.value)}this.resultSelector?this._tryresultSelector(s):i.next(s),n&&i.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Rb{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}
1next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return t&&t.done}}class Mb{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[F](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class Fb extends ${constructor(t,e,i){super(t),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[F](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t,e,i,n,s){this.buffer.push(e),this.parent.checkIterators()}subscribe(t,e){return U(this,this.observable,this,e)}}S.zip=Ob;const Bb="undefined"!=typeof window&&window,Lb="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vb="undefined"!=typeof global&&global,jb=Bb||Vb||Lb;function zb(t,e=null){return new Yb({method:"GET",url:t,headers:e})}function Ub(t,e,i){return new Yb({method:"POST",url:t,body:e,headers:i})}function $b(t,e){return new Yb({method:"DELETE",url:t,headers:e})}function Hb(t,e,i){return new Yb({method:"PUT",url:t,body:e,headers:i})}function qb(t,e,i){return new Yb({method:"PATCH",url:t,body:e,headers:i})}const Wb=H((t,e)=>t.response);function Gb(t,e){return Wb(new Yb({method:"GET",url:t,responseType:"json",headers:e}))}let Yb=(()=>{class t extends S{constructor(t){super();const e={async:!0,createXHR:function(){return this.crossDomain?function(){if(jb.XMLHttpRequest)return new jb.XMLHttpRequest;if(jb.XDomainRequest)return new jb.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(jb.XMLHttpRequest)return new jb.XMLHttpRequest;{let e;try{const i=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(let n=0;n<3;n++)try{if(e=i[n],new jb.ActiveXObject(e))break}catch(t){}return new jb.ActiveXObject(e)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)e.url=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);this.request=e}_subscribe(t){return new Kb(t,this.request)}}return t.create=(()=>{const e=e=>new t(e);return e.get=zb,e.post=Ub,e.delete=$b,e.put=Hb,e.patch=qb,e.getJSON=Gb,e})(),t})();class Kb extends g{constructor(t,e){super(t),this.request=e,this.done=!1;const i=e.headers=e.headers||{};e.crossDomain||this.getHeader(i,"X-Requested-With")||(i["X-Requested-With"]="XMLHttpRequest"),this.getHeader(i,"Content-Type")||jb.FormData&&e.body instanceof jb.FormData||void 0===e.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),e.body=this.serializeBody(e.body,this.getHeader(e.headers,"Content-Type")),this.send()}next(t){this.done=!0;const{xhr:e,request:i,destination:n}=this;let s;try{s=new Zb(t,e,i)}catch(r){return n.error(r)}n.next(s)}send(){const{request:t,request:{user:e,method:i,url:n,async:s,password:r,headers:o,body:a}}=this;try{const l=this.xhr=t.createXHR();this.setupEvents(l,t),e?l.open(i,n,s,e,r):l.open(i,n,s),s&&(l.timeout=t.timeout,l.responseType=t.responseType),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),this.setHeaders(l,o),a?l.send(a):l.send()}catch(l){this.error(l)}}serializeBody(t,e){if(!t||"string"==typeof t)return t;if(jb.FormData&&t instanceof jb.FormData)return t;if(e){const t=e.indexOf(";");-1!==t&&(e=e.substring(0,t))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");case"application/json":return JSON.stringify(t);default:return t}}setHeaders(t,e){for(let i in e)e.hasOwnProperty(i)&&t.setRequestHeader(i,e[i])}getHeader(t,e){for(let i in t)if(i.toLowerCase()===e.toLowerCase())return t[i]}setupEvents(t,e){const i=e.progressSubscriber;function n(t){const{subscriber:e,progressSubscriber:i,request:s}=n;let r;i&&i.error(t);try{r=new ty(this,s)}catch(o){r=o}e.error(r)}if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){let e;e=function(t){const{progressSubscriber:i}=e;i.next(t)},jb.XDomainRequest?t.onprogress=e:t.upload.onprogress=e,e.progressSubscriber=i}let n;n=function(t){const{progressSubscriber:e,subscriber:i,request:s}=n;let r;e&&e.error(t);try{r=new Qb("ajax error",this,s)}catch(o){r=o}i.error(r)},t.onerror=n,n.request=e,n.subscriber=this,n.progressSubscriber=i}function s(t){}function r(t){const{subscriber:e,progressSubscriber:i,request:n}=r;if(4===this.readyState){let r=1223===this.status?204:this.status,o="text"===this.responseType?this.response||this.responseText:this.response;if(0===r&&(r=o?200:0),r<400)i&&i.complete(),e.next(t),e.complete();else{let o;i&&i.error(t);try{o=new Qb("ajax error "+r,this,n)}catch(s){o=s}e.error(o)}}}t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=i,s.request=e,t.onload=r,r.subscriber=this,r.progressSubscriber=i,r.request=e}unsubscribe(){const{done:t,xhr:e}=this;!t&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),super.unsubscribe()}}class Zb{constructor(t,e,i){this.originalEvent=t,this.xhr=e,this.request=i,this.status=e.status,this.responseType=e.responseType||i.responseType,this.response=Jb(this.responseType,e)}}function Xb(t,e,i){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=i,this.status=e.status,this.responseType=e.responseType||i.responseType,this.response=Jb(this.responseType,e),this}Xb.prototype=Object.create(Error.prototype);const Qb=Xb;function Jb(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}const ty=function(t,e){return Qb.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this};S.ajax=Yb.create;
1class ey extends fb{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class iy extends _b{}const ny=new iy(ey);let sy=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Up(this.value);case"E":return Eb(this.error);case"C":return sd()}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})();function ry(t,e=0){return function(i){return i.lift(new oy(t,e))}}class oy{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new ay(t,this.scheduler,this.delay))}}class ay extends g{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(ay.dispatch,this.delay,new ly(t,this.destination)))}_next(t){this.scheduleMessage(sy.createNext(t))}_error(t){this.scheduleMessage(sy.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sy.createComplete()),this.unsubscribe()}}class ly{constructor(t,e){this.notification=t,this.destination=e}}class cy extends A{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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 hy(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new I;if(this.isStopped||this.hasError?r=p.EMPTY:(this.observers.push(t),r=new E(this,t)),n&&t.add(t=new ay(t,n)),e)for(let o=0;o<s&&!t.closed;o++)t.next(i[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(i[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||ny).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,n=this._events,s=n.length;let r=0;for(;r<s&&!(t-n[r].time<i);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class hy{constructor(t,e){this.time=t,this.value=e}}const uy={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)};class dy extends T{constructor(t,e){if(super(),t instanceof S)this.destination=e,this.source=t;else{const e=this._config=Object.assign({},uy);if(this._output=new A,"string"==typeof t)e.url=t;else for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);if(!e.WebSocketCtor&&WebSocket)e.WebSocketCtor=WebSocket;else if(!e.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new cy}}lift(t){const e=new dy(this._config,this.destination);return e.operator=t,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new cy),this._output=new A}multiplex(t,e,i){const n=this;return new S(s=>{try{n.next(t())}catch(o){s.error(o)}const r=n.subscribe(t=>{try{i(t)&&s.next(t)}catch(o){s.error(o)}},t=>s.error(t),()=>s.complete());return()=>{try{n.next(e())}catch(o){s.error(o)}r.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:t,protocol:e,url:i,binaryType:n}=this._config,s=this._output;let r=null;
1try{r=e?new t(i,e):new t(i),this._socket=r,n&&(this._socket.binaryType=n)}catch(a){return void s.error(a)}const o=new p(()=>{this._socket=null,r&&1===r.readyState&&r.close()});r.onopen=t=>{const{_socket:e}=this;if(!e)return r.close(),void this._resetState();const{openObserver:i}=this._config;i&&i.next(t);const n=this.destination;this.destination=g.create(e=>{if(1===r.readyState)try{const{serializer:t}=this._config;r.send(t(e))}catch(t){this.destination.error(t)}},t=>{const{closingObserver:e}=this._config;e&&e.next(void 0),t&&t.code?r.close(t.code,t.reason):s.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:t}=this._config;t&&t.next(void 0),r.close(),this._resetState()}),n&&n instanceof cy&&o.add(n.subscribe(this.destination))},r.onerror=t=>{this._resetState(),s.error(t)},r.onclose=t=>{this._resetState();const{closeObserver:e}=this._config;e&&e.next(t),t.wasClean?s.complete():s.error(t)},r.onmessage=t=>{try{const{deserializer:e}=this._config;s.next(e(t))}catch(e){s.error(e)}}}_subscribe(t){const{source:e}=this;return e?e.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(()=>{const{_socket:t}=this;0===this._output.observers.length&&(t&&1===t.readyState&&t.close(),this._resetState())}),t)}unsubscribe(){const{_socket:t}=this;t&&1===t.readyState&&t.close(),this._resetState(),super.unsubscribe()}}function py(t){return function(e){return e.lift(new my(t))}}S.webSocket=function(t){return new dy(t)};class my{constructor(t){this.closingNotifier=t}call(t,e){return e.subscribe(new fy(t,this.closingNotifier))}}class fy extends ${constructor(t,e){super(t),this.buffer=[],this.add(U(this,e))}_next(t){this.buffer.push(t)}notifyNext(t,e,i,n,s){const r=this.buffer;this.buffer=[],this.destination.next(r)}}function gy(t,e=null){return function(i){return i.lift(new _y(t,e))}}S.prototype.buffer=function(t){return py(t)(this)};class _y{constructor(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?yy:by}call(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))}}class by extends g{constructor(t,e){super(t),this.bufferSize=e,this.buffer=[]}_next(t){const e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])}_complete(){const t=this.buffer;t.length>0&&this.destination.next(t),super._complete()}}class yy extends g{constructor(t,e,i){super(t),this.bufferSize=e,this.startBufferEvery=i,this.buffers=[],this.count=0}_next(t){const{bufferSize:e,startBufferEvery:i,buffers:n,count:s}=this;this.count++,s%i==0&&n.push([]);for(let r=n.length;r--;){const i=n[r];i.push(t),i.length===e&&(n.splice(r,1),this.destination.next(i))}}_complete(){const{buffers:t,destination:e}=this;for(;t.length>0;){let i=t.shift();i.length>0&&e.next(i)}super._complete()}}function vy(t){let e=arguments.length,i=bb;O(arguments[arguments.length-1])&&(i=arguments[arguments.length-1],e--);let n=null;e>=2&&(n=arguments[1]);let s=Number.POSITIVE_INFINITY;return e>=3&&(s=arguments[2]),function(e){return e.lift(new wy(t,n,s,i))}}S.prototype.bufferCount=function(t,e=null){return gy(t,e)(this)};class wy{constructor(t,e,i,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=n}call(t,e){return e.subscribe(new Sy(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class Cy{constructor(){this.buffer=[]}}class Sy extends g{constructor(t,e,i,n,s){super(t),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=n,this.scheduler=s,this.contexts=[];const r=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(r.closeAction=s.schedule(xy,e,{subscriber:this,context:r,bufferTimeSpan:e}));else{const t={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:s};this.add(r.closeAction=s.schedule(Iy,e,{subscriber:this,context:r})),this.add(s.schedule(ky,i,t))}}_next(t){const e=this.contexts,i=e.length;let n;for(let s=0;s<i;s++){const i=e[s],r=i.buffer;r.push(t),r.length==this.maxBufferSize&&(n=i)}n&&this.onBufferFull(n)}_error(t){this.contexts.length=0,super._error(t)}_complete(){const{contexts:t,destination:e}=this;for(;t.length>0;){const i=t.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(t){this.closeContext(t);const e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();const e=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(xy,e,{subscriber:this,context:t,bufferTimeSpan:e}))}}openContext(){const t=new Cy;return this.contexts.push(t),t}closeContext(t){this.destination.next(t.buffer);const e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}function xy(t){const e=t.subscriber,i=t.context;i&&e.closeContext(i),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function ky(t){const{bufferCreationInterval:e,bufferTimeSpan:i,subscriber:n,scheduler:s}=t,r=n.openContext();n.closed||(n.add(r.closeAction=s.schedule(Iy,i,{subscriber:n,context:r})),this.schedule(t,e))}function Iy(t){const{subscriber:e,context:i}=t;e.closeContext(i)}function Ey(t,e){return function(i){return i.lift(new Dy(t,e))}}S.prototype.bufferTime=function(t){let e=arguments.length,i=bb;O(arguments[arguments.length-1])&&(i=arguments[arguments.length-1],e--);let n=null;e>=2&&(n=arguments[1]);let s=Number.POSITIVE_INFINITY;return e>=3&&(s=arguments[2]),vy(t,n,s,i)(this)};class Dy{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new Ay(t,this.openings,this.closingSelector))}}class Ay extends ${constructor(t,e,i){super(t),this.openings=e,this.closingSelector=i,this.contexts=[],this.add(U(this,e))}_next(t){const e=this.contexts,i=e.length;for(let n=0;n<i;n++)e[n].buffer.push(t)}_error(t){const e=this.contexts;for(;e.length>0;){const t=e.shift();t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._error(t)}_complete(){const t=this.contexts;for(;t.length>0;){const e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._complete()}notifyNext(t,e,i,n,s){t?this.closeBuffer(t):this.openBuffer(e)}notifyComplete(t){this.closeBuffer(t.context)}openBuffer(t){try{const e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(e){this._error(e)}}closeBuffer(t){const e=this.contexts;if(e&&t){const{buffer:i,subscription:n}=t;this.destination.next(i),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}}trySubscribe(t){const e=this.contexts,i=new p,n={buffer:[],subscription:i};e.push(n);const s=U(this,t,n);!s||s.closed?this.closeBuffer(n):(s.context=n,this.add(s),i.add(s))}}function Ty(t){return function(e){return e.lift(new Oy(t))}}S.prototype.bufferToggle=function(t,e){return Ey(t,e)(this)};class Oy{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new Py(t,this.closingSelector))}}class Py extends ${constructor(t,e){super(t),this.closingSelector=e,this.subscribing=!1,this.openBuffer()}_next(t){this.buffer.push(t)}_complete(){const t=this.buffer;t&&this.destination.next(t),super._complete()}_unsubscribe(){this.buffer=null,this.subscribing=!1}notifyNext(t,e,i,n,s){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let t,{closingSubscription:e}=this;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:e}=this;t=e()}catch(i){return this.error(i)}e=new p,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(U(this,t)),this.subscribing=!1}}function Ny(t){return fm(t)(this)}function Ry(t){return e=>e.lift(new Yp(t))}function My(t,e){return Nm(()=>t,e)}function Fy(t){return e=>e.lift(new By(t,e))}S.prototype.bufferWhen=function(t){return Ty(t)(this)},S.prototype.catch=Ny,S.prototype._catch=Ny,S.prototype.combineAll=function(t){return Ry(t)(this)},S.prototype.combineLatest=function(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&c(t[0])&&(t=t[0].slice()),this.lift.call(Up(this,...t),new Yp(e))},S.prototype.concat=function(...t){return this.lift.call(Dm(this,...t))},S.prototype.concatAll=function(){return Xp()(this)},S.prototype.concatMap=function(t){return Nm(t)(this)},S.prototype.concatMapTo=function(t){return My(t)(this)};class By{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new Ly(t,this.predicate,this.source))}}class Ly extends g{constructor(t,e,i){super(t),this.predicate=e,this.source=i,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Vy(){return function(t){return t.lift(new jy)}}S.prototype.count=function(t){return Fy(t)(this)};
1class jy{call(t,e){return e.subscribe(new zy(t))}}class zy extends g{constructor(t){super(t)}_next(t){t.observe(this.destination)}}function Uy(t){return e=>e.lift(new $y(t))}S.prototype.dematerialize=function(){return Vy()(this)};class $y{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Hy(t,this.durationSelector))}}class Hy extends ${constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1,this.durationSubscription=null}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=U(this,e),i&&!i.closed&&this.add(this.durationSubscription=i)}notifyNext(t,e,i,n,s){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=null,e.unsubscribe(),this.remove(e)),this.value=null,this.hasValue=!1,super._next(t)}}}function qy(t,e=bb){return i=>i.lift(new Wy(t,e))}S.prototype.debounce=function(t){return Uy(t)(this)};class Wy{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Gy(t,this.dueTime,this.scheduler))}}class Gy extends g{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,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(Yy,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 Yy(t){t.debouncedNext()}function Ky(t){return t instanceof Date&&!isNaN(+t)}function Zy(t,e=bb){const i=Ky(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Xy(i,e))}S.prototype.debounceTime=function(t,e=bb){return qy(t,e)(this)},S.prototype.defaultIfEmpty=function(t=null){return um(t)(this)};class Xy{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Qy(t,this.delay,this.scheduler))}}class Qy extends g{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Qy.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Jy(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sy.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sy.createComplete()),this.unsubscribe()}}class Jy{constructor(t,e){this.time=t,this.notification=e}}function tv(t,e){return e?i=>new nv(i,e).lift(new ev(t)):e=>e.lift(new ev(t))}S.prototype.delay=function(t,e=bb){return Zy(t,e)(this)};class ev{constructor(t){this.delayDurationSelector=t}call(t,e){return e.subscribe(new iv(t,this.delayDurationSelector))}}class iv extends ${constructor(t,e){super(t),this.delayDurationSelector=e,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(t,e,i,n,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()}notifyError(t,e){this._error(t)}notifyComplete(t){const e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()}_next(t){const e=this.index++;try{const i=this.delayDurationSelector(t,e);i&&this.tryDelay(i,t)}catch(i){this.destination.error(i)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(t){t.unsubscribe();const e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue}tryDelay(t,e){const i=U(this,t,e);i&&!i.closed&&(this.destination.add(i),this.delayNotifierSubscriptions.push(i))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class nv extends S{constructor(t,e){super(),this.source=t,this.subscriptionDelay=e}_subscribe(t){this.subscriptionDelay.subscribe(new sv(t,this.source))}}class sv extends g{constructor(t,e){super(),this.parent=t,this.source=e,this.sourceSubscribed=!1}_next(t){this.subscribeToSource()}_error(t){this.unsubscribe(),this.parent.error(t)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function rv(t,e){return i=>i.lift(new ov(t,e))}S.prototype.delayWhen=function(t,e){return tv(t,e)(this)};class ov{constructor(t,e){this.keySelector=t,this.flushes=e}call(t,e){return e.subscribe(new av(t,this.keySelector,this.flushes))}}class av extends ${constructor(t,e,i){super(t),this.keySelector=e,this.values=new Set,i&&this.add(U(this,i))}notifyNext(t,e,i,n,s){this.values.clear()}notifyError(t,e){this._error(t)}_next(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)}_useKeySelector(t){let e;const{destination:i}=this;try{e=this.keySelector(t)}catch(n){return void i.error(n)}this._finalizeNext(e,t)}_finalizeNext(t,e){const{values:i}=this;i.has(t)||(i.add(t),this.destination.next(e))}}function lv(t,e){return i=>i.lift(new cv(t,e))}S.prototype.distinct=function(t,e){return rv(t,e)(this)};class cv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new hv(t,this.compare,this.keySelector))}}class hv extends g{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function uv(t,e){return lv((i,n)=>e?e(i[t],n[t]):i[t]===n[t])}function dv(t,e,i){return om(t,e,i)(this)}function pv(){return t=>t.lift(new mv)}S.prototype.distinctUntilChanged=function(t,e){return lv(t,e)(this)},S.prototype.distinctUntilKeyChanged=function(t,e){return uv(t,e)(this)},S.prototype.do=dv,S.prototype._do=dv;class mv{call(t,e){return e.subscribe(new fv(t))}}class fv extends ${constructor(t){super(t),this.hasCompleted=!1,this.hasSubscription=!1}_next(t){this.hasSubscription||(this.hasSubscription=!0,this.add(U(this,t)))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}
1function gv(t,e){return e?i=>i.pipe(gv((i,n)=>Y(t(i,n)).pipe(H((t,s)=>e(i,t,n,s))))):e=>e.lift(new _v(t))}S.prototype.exhaust=function(){return pv()(this)};class _v{constructor(t){this.project=t}call(t,e){return e.subscribe(new bv(t,this.project))}}class bv extends ${constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this.hasSubscription=!0,this._innerSub(e,t,i)}_innerSub(t,e,i){const n=new P(this,void 0,void 0);this.destination.add(n),U(this,t,e,i,n)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t){this.destination.error(t)}notifyComplete(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function yv(t,e=Number.POSITIVE_INFINITY,i){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,n=>n.lift(new vv(t,e,i))}S.prototype.exhaustMap=function(t){return gv(t)(this)};class vv{constructor(t,e,i){this.project=t,this.concurrent=e,this.scheduler=i}call(t,e){return e.subscribe(new wv(t,this.project,this.concurrent,this.scheduler))}}class wv extends ${constructor(t,e,i,n){super(t),this.project=e,this.concurrent=i,this.scheduler=n,this.index=0,this.active=0,this.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:i,value:n,index:s}=t;e.subscribeToProjection(i,n,s)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const i=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,n=e(t,i);this.scheduler?this.destination.add(this.scheduler.schedule(wv.dispatch,0,{subscriber:this,result:n,value:t,index:i})):this.subscribeToProjection(n,t,i)}catch(n){e.error(n)}}else this.buffer.push(t)}subscribeToProjection(t,e,i){this.active++,this.destination.add(U(this,t,e,i))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,i,n,s){this._next(e)}notifyComplete(t){const e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}function Cv(t,e){if(t<0)throw new im;const i=arguments.length>=2;return n=>n.pipe(Qp((e,i)=>i===t),bm(1),i?um(e):cm(()=>new im))}function Sv(t){return Mm(t)(this)}function xv(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return i=>i.lift(new kv(t,i,!1,e))}S.prototype.expand=function(t,e=Number.POSITIVE_INFINITY,i){return yv(t,e=(e||0)<1?Number.POSITIVE_INFINITY:e,i)(this)},S.prototype.elementAt=function(t,e){return Cv.apply(void 0,arguments)(this)},S.prototype.filter=function(t,e){return Qp(t,e)(this)},S.prototype.finally=Sv,S.prototype._finally=Sv;class kv{constructor(t,e,i,n){this.predicate=t,this.source=e,this.yieldIndex=i,this.thisArg=n}call(t,e){return e.subscribe(new Iv(t,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Iv extends g{constructor(t,e,i,n,s){super(t),this.predicate=e,this.source=i,this.yieldIndex=n,this.thisArg=s,this.index=0}notifyComplete(t){const e=this.destination;e.next(t),e.complete(),this.unsubscribe()}_next(t){const{predicate:e,thisArg:i}=this,n=this.index++;try{e.call(i||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(s){this.destination.error(s)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Ev(t,e){return i=>i.lift(new kv(t,i,!0,e))}function Dv(t,e,i,n){return s=>s.lift(new Av(t,e,i,n))}S.prototype.find=function(t,e){return xv(t,e)(this)},S.prototype.findIndex=function(t,e){return Ev(t,e)(this)},S.prototype.first=function(...t){return wm(...t)(this)};class Av{constructor(t,e,i,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=i,this.subjectSelector=n}call(t,e){return e.subscribe(new Tv(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class Tv extends g{constructor(t,e,i,n,s){super(t),this.keySelector=e,this.elementSelector=i,this.durationSelector=n,this.subjectSelector=s,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(i){return void this.error(i)}this._group(t,e)}_group(t,e){let i=this.groups;i||(i=this.groups=new Map);let n,s=i.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(r){this.error(r)}else n=t;if(!s){s=this.subjectSelector?this.subjectSelector():new A,i.set(e,s);const t=new Pv(e,s,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new Pv(e,s))}catch(r){return void this.error(r)}this.add(t.subscribe(new Ov(e,s,this)))}}s.closed||s.next(n)}_error(t){const e=this.groups;e&&(e.forEach((e,i)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Ov extends g{constructor(t,e,i){super(e),this.key=t,this.group=e,this.parent=i}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class Pv extends S{constructor(t,e,i){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=i}_subscribe(t){const e=new p,{refCountSubscription:i,groupSubject:n}=this;return i&&!i.closed&&e.add(new Nv(i)),e.add(n.subscribe(t)),e}}class Nv extends p{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}function Rv(){return function(t){return t.lift(new Mv)}}
1S.prototype.groupBy=function(t,e,i,n){return Dv(t,e,i,n)(this)};class Mv{call(t,e){return e.subscribe(new Fv(t))}}class Fv extends g{_next(t){}}function Bv(){return t=>t.lift(new Lv)}S.prototype.ignoreElements=function(){return Rv()(this)};class Lv{call(t,e){return e.subscribe(new Vv(t))}}class Vv extends g{constructor(t){super(t)}notifyComplete(t){const e=this.destination;e.next(t),e.complete()}_next(t){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function jv(t){return function(e){return e.lift(new zv(t))}}S.prototype.isEmpty=function(){return Bv()(this)};class zv{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Uv(t,this.durationSelector))}}class Uv extends ${constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=U(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function $v(t,e=bb){return jv(()=>Ab(t,e))}function Hv(t){return t(this)}function qv(t){return e=>e.lift(new Wv(t))}S.prototype.audit=function(t){return jv(t)(this)},S.prototype.auditTime=function(t,e=bb){return $v(t,e)(this)},S.prototype.last=function(...t){return mm(...t)(this)},S.prototype.let=Hv,S.prototype.letBind=Hv,S.prototype.every=function(t,e){return Cm(t,e)(this)},S.prototype.map=function(t,e){return H(t,e)(this)};class Wv{constructor(t){this.value=t}call(t,e){return e.subscribe(new Gv(t,this.value))}}class Gv extends g{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Yv(){return function(t){return t.lift(new Kv)}}S.prototype.mapTo=function(t){return qv(t)(this)};class Kv{call(t,e){return e.subscribe(new Zv(t))}}class Zv extends g{constructor(t){super(t)}_next(t){this.destination.next(sy.createNext(t))}_error(t){const e=this.destination;e.next(sy.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(sy.createComplete()),t.complete()}}function Xv(t){return Rm("function"==typeof t?(e,i)=>t(e,i)>0?e:i:(t,e)=>t>e?t:e)}function Qv(t,e=Number.POSITIVE_INFINITY){return K(t,e)(this)}function Jv(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?K(()=>t,e,i):("number"==typeof e&&(i=e),K(()=>t,i))}function tw(t,e=Number.POSITIVE_INFINITY){return Jv(t,e)(this)}function ew(t,e,i=Number.POSITIVE_INFINITY){return n=>n.lift(new iw(t,e,i))}S.prototype.materialize=function(){return Yv()(this)},S.prototype.max=function(t){return Xv(t)(this)},S.prototype.merge=function(...t){return this.lift.call(tt(this,...t))},S.prototype.mergeAll=function(t=Number.POSITIVE_INFINITY){return J(t)(this)},S.prototype.mergeMap=Qv,S.prototype.flatMap=Qv,S.prototype.flatMapTo=tw,S.prototype.mergeMapTo=tw;class iw{constructor(t,e,i){this.accumulator=t,this.seed=e,this.concurrent=i}call(t,e){return e.subscribe(new nw(t,this.accumulator,this.seed,this.concurrent))}}class nw extends ${constructor(t,e,i,n){super(t),this.accumulator=e,this.acc=i,this.concurrent=n,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){if(this.active<this.concurrent){const i=this.index++,n=this.destination;let s;try{const{accumulator:e}=this;s=e(this.acc,t,i)}catch(e){return n.error(e)}this.active++,this._innerSub(s,t,i)}else this.buffer.push(t)}_innerSub(t,e,i){const n=new P(this,void 0,void 0);this.destination.add(n),U(this,t,e,i,n)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(t,e,i,n,s){const{destination:r}=this;this.acc=e,this.hasValue=!0,r.next(e)}notifyComplete(t){const e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function sw(t){return Rm("function"==typeof t?(e,i)=>t(e,i)<0?e:i:(t,e)=>t<e?t:e)}function rw(...t){return 1===t.length&&c(t[0])&&(t=t[0]),e=>e.lift(new ow(t))}
1S.prototype.mergeScan=function(t,e,i=Number.POSITIVE_INFINITY){return ew(t,e,i)(this)},S.prototype.min=function(t){return sw(t)(this)},S.prototype.multicast=function(t,e){return at(t,e)(this)},S.prototype.observeOn=function(t,e=0){return ry(t,e)(this)};class ow{constructor(t){this.nextSources=t}call(t,e){return e.subscribe(new aw(t,this.nextSources))}}class aw extends ${constructor(t,e){super(t),this.destination=t,this.nextSources=e}notifyError(t,e){this.subscribeToNextSource()}notifyComplete(t){this.subscribeToNextSource()}_error(t){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const t=this.nextSources.shift();if(t){const e=new P(this,void 0,void 0);this.destination.add(e),U(this,t,void 0,void 0,e)}else this.destination.complete()}}function lw(){return t=>t.lift(new cw)}S.prototype.onErrorResumeNext=function(...t){return rw(...t)(this)};class cw{call(t,e){return e.subscribe(new hw(t))}}class hw extends g{constructor(t){super(t),this.hasPrev=!1}_next(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t}}function uw(t,e){function i(){return!i.pred.apply(i.thisArg,arguments)}return i.pred=t,i.thisArg=e,i}function dw(t,e){return i=>[Qp(t,e)(i),Qp(uw(t,e))(i)]}function pw(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return i=>H(function(t,e){return i=>{let n=i;for(let s=0;s<e;s++){const e=n[t[s]];if(void 0===e)return;n=e}return n}}(t,e))(i)}function mw(t){return t?at(()=>new A,t):at(new A)}function fw(t){return e=>at(new $p(t))(e)}function gw(t,e,i,n){i&&"function"!=typeof i&&(n=i);const s="function"==typeof i?i:void 0,r=new cy(t,e,n);return t=>at(()=>r,s)(t)}function _w(){return t=>at(new ob)(t)}function bw(...t){return function(e){return 1===t.length&&c(t[0])&&(t=t[0]),e.lift.call(wb(e,...t))}}function yw(t=-1){return e=>0===t?sd():e.lift(new vw(t<0?-1:t-1,e))}S.prototype.pairwise=function(){return lw()(this)},S.prototype.partition=function(t,e){return dw(t,e)(this)},S.prototype.pluck=function(...t){return pw(...t)(this)},S.prototype.publish=function(t){return mw(t)(this)},S.prototype.publishBehavior=function(t){return fw(t)(this)},S.prototype.publishReplay=function(t,e,i,n){return gw(t,e,i,n)(this)},S.prototype.publishLast=function(){return _w()(this)},S.prototype.race=function(...t){return bw(...t)(this)},S.prototype.reduce=function(t,e){return arguments.length>=2?Rm(t,e)(this):Rm(t)(this)};class vw{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new ww(t,this.count,this.source))}}class ww extends g{constructor(t,e,i){super(t),this.count=e,this.source=i}complete(){if(!this.isStopped){const{source:t,count:e}=this;if(0===e)return super.complete();e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}function Cw(t){return e=>e.lift(new Sw(t))}S.prototype.repeat=function(t=-1){return yw(t)(this)};class Sw{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new xw(t,this.notifier,e))}}class xw extends ${constructor(t,e,i){super(t),this.notifier=e,this.source=i,this.sourceIsBeingSubscribedTo=!0}notifyNext(t,e,i,n,s){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(t){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next()}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new A;try{const{notifier:e}=this;t=e(this.notifications)}catch(e){return super.complete()}this.retries=t,this.retriesSubscription=U(this,t)}}function kw(t=-1){return e=>e.lift(new Iw(t,e))}S.prototype.repeatWhen=function(t){return Cw(t)(this)};class Iw{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new Ew(t,this.count,this.source))}}class Ew extends g{constructor(t,e,i){super(t),this.count=e,this.source=i}error(t){if(!this.isStopped){const{source:e,count:i}=this;if(0===i)return super.error(t);i>-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}}}function Dw(t){return e=>e.lift(new Aw(t,e))}S.prototype.retry=function(t=-1){return kw(t)(this)};class Aw{constructor(t,e){this.notifier=t,this.source=e}call(t,e){return e.subscribe(new Tw(t,this.notifier,this.source))}}class Tw extends ${constructor(t,e,i){super(t),this.notifier=e,this.source=i}error(t){if(!this.isStopped){let i=this.errors,n=this.retries,s=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{i=new A;try{const{notifier:t}=this;
1n=t(i)}catch(e){return super.error(e)}s=U(this,n)}this._unsubscribeAndRecycle(),this.errors=i,this.retries=n,this.retriesSubscription=s,i.next(t)}}_unsubscribe(){const{errors:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null}notifyNext(t,e,i,n,s){const{_unsubscribe:r}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=r,this.source.subscribe(this)}}function Ow(t){return e=>e.lift(new Pw(t))}S.prototype.retryWhen=function(t){return Dw(t)(this)};class Pw{constructor(t){this.notifier=t}call(t,e){const i=new Nw(t),n=e.subscribe(i);return n.add(U(i,this.notifier)),n}}class Nw extends ${constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(t,e,i,n,s){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Rw(t,e=bb){return i=>i.lift(new Mw(t,e))}S.prototype.sample=function(t){return Ow(t)(this)};class Mw{constructor(t,e){this.period=t,this.scheduler=e}call(t,e){return e.subscribe(new Fw(t,this.period,this.scheduler))}}class Fw extends g{constructor(t,e,i){super(t),this.period=e,this.scheduler=i,this.hasValue=!1,this.add(i.schedule(Bw,e,{subscriber:this,period:e}))}_next(t){this.lastValue=t,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function Bw(t){let{subscriber:e,period:i}=t;e.notifyNext(),this.schedule(t,i)}function Lw(t,e){return i=>i.lift(new Vw(t,e))}S.prototype.sampleTime=function(t,e=bb){return Rw(t,e)(this)},S.prototype.scan=function(t,e){return arguments.length>=2?Tm(t,e)(this):Tm(t)(this)};class Vw{constructor(t,e){this.compareTo=t,this.comparator=e}call(t,e){return e.subscribe(new jw(t,this.compareTo,this.comparator))}}class jw extends g{constructor(t,e,i){super(t),this.compareTo=e,this.comparator=i,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(e.subscribe(new zw(t,this)))}_next(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:t,_b:e,comparator:i}=this;for(;t.length>0&&e.length>0;){let s=t.shift(),r=e.shift(),o=!1;try{o=i?i(s,r):s===r}catch(n){this.destination.error(n)}o||this.emit(!1)}}emit(t){const{destination:e}=this;e.next(t),e.complete()}nextB(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class zw extends g{constructor(t,e){super(t),this.parent=e}_next(t){this.parent.nextB(t)}_error(t){this.parent.error(t),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}function Uw(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,l=!1;return function(c){o++,s&&!a||(a=!1,s=new cy(t,e,n),r=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,s.complete()}}));const h=s.subscribe(this);this.add(()=>{o--,h.unsubscribe(),r&&!l&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function $w(t){return e=>e.lift(new Hw(t,e))}S.prototype.sequenceEqual=function(t,e){return Lw(t,e)(this)},S.prototype.share=function(){return ht()(this)},S.prototype.shareReplay=function(t,e,i){return Uw(t,e,i)(this)};class Hw{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new qw(t,this.predicate,this.source))}}class qw extends g{constructor(t,e,i){super(t),this.predicate=e,this.source=i,this.seenValue=!1,this.index=0}applySingleValue(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)}_next(t){const e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)}tryNext(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(i){this.destination.error(i)}}_complete(){const t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new qp)}}function Ww(t){return e=>e.lift(new Gw(t))}S.prototype.single=function(t){return $w(t)(this)};class Gw{constructor(t){this.total=t}call(t,e){return e.subscribe(new Yw(t,this.total))}}class Yw extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Kw(t){return e=>e.lift(new Zw(t))}S.prototype.skip=function(t){return Ww(t)(this)};class Zw{constructor(t){if(this._skipCount=t,this._skipCount<0)throw new im}call(t,e){return e.subscribe(0===this._skipCount?new g(t):new Xw(t,this._skipCount))}}class Xw extends g{constructor(t,e){super(t),this._skipCount=e,this._count=0,this._ring=new Array(e)}_next(t){const e=this._skipCount,i=this._count++;
1if(i<e)this._ring[i]=t;else{const n=i%e,s=this._ring,r=s[n];s[n]=t,this.destination.next(r)}}}function Qw(t){return e=>e.lift(new Jw(t))}S.prototype.skipLast=function(t){return Kw(t)(this)};class Jw{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new tC(t,this.notifier))}}class tC extends ${constructor(t,e){super(t),this.hasValue=!1;const i=new P(this,void 0,void 0);this.add(i),this.innerSubscription=i,U(this,e,void 0,void 0,i)}_next(t){this.hasValue&&super._next(t)}notifyNext(t,e,i,n,s){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function eC(t){return e=>e.lift(new iC(t))}S.prototype.skipUntil=function(t){return Qw(t)(this)};class iC{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new nC(t,this.predicate))}}class nC extends g{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}S.prototype.skipWhile=function(t){return eC(t)(this)},S.prototype.startWith=function(...t){return Am(...t)(this)};let sC=1;const rC={},oC={setImmediate(t){const e=sC++;return rC[e]=t,Promise.resolve().then(()=>function(t){const e=rC[t];e&&e()}(e)),e},clearImmediate(t){delete rC[t]}};class aC extends fb{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=oC.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(oC.clearImmediate(e),t.scheduled=void 0)}}class lC extends _b{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n<s&&(t=e.shift()));if(this.active=!1,i){for(;++n<s&&(t=e.shift());)t.unsubscribe();throw i}}}const cC=new lC(aC);class hC extends S{constructor(t,e=0,i=cC){super(),this.source=t,this.delayTime=e,this.scheduler=i,(!yb(e)||e<0)&&(this.delayTime=0),i&&"function"==typeof i.schedule||(this.scheduler=cC)}static create(t,e=0,i=cC){return new hC(t,e,i)}static dispatch(t){const{source:e,subscriber:i}=t;return this.add(e.subscribe(i))}_subscribe(t){return this.scheduler.schedule(hC.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function uC(t,e=0){return function(i){return i.lift(new dC(t,e))}}class dC{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new hC(e,this.delay,this.scheduler).subscribe(t)}}function pC(){return km(Q)}function mC(){return pC()(this)}function fC(t,e){return e?km(()=>t,e):km(()=>t)}function gC(t){return e=>e.lift(new _C(t))}S.prototype.subscribeOn=function(t,e=0){return uC(t,e)(this)},S.prototype.switch=mC,S.prototype._switch=mC,S.prototype.switchMap=function(t){return km(t)(this)},S.prototype.switchMapTo=function(t){return fC(t)(this)},S.prototype.take=function(t){return bm(t)(this)},S.prototype.takeLast=function(t){return nm(t)(this)};class _C{constructor(t){this.notifier=t}call(t,e){const i=new bC(t),n=U(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class bC extends ${constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}function yC(t,e=!1){return i=>i.lift(new vC(t,e))}S.prototype.takeUntil=function(t){return gC(t)(this)};class vC{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new wC(t,this.predicate,this.inclusive))}}class wC extends g{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}S.prototype.takeWhile=function(t){return yC(t)(this)};const CC={leading:!0,trailing:!1};function SC(t,e=CC){return i=>i.lift(new xC(t,e.leading,e.trailing))}class xC{constructor(t,e,i){this.durationSelector=t,this.leading=e,this.trailing=i}call(t,e){return e.subscribe(new kC(t,this.durationSelector,this.leading,this.trailing))}}class kC extends ${constructor(t,e,i,n){super(t),this.destination=t,this.durationSelector=e,this._leading=i,this._trailing=n,this._hasValue=!1}_next(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))}send(){const{_hasValue:t,_sendValue:e}=this;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null}throttle(t){const e=this.tryDurationSelector(t);e&&this.add(this._throttled=U(this,e))}tryDurationSelector(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}}throttlingDone(){const{_throttled:t,_trailing:e}=this;t&&t.unsubscribe(),this._throttled=null,e&&this.send()}notifyNext(t,e,i,n,s){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function IC(t,e=bb,i=CC){return n=>n.lift(new EC(t,e,i.leading,i.trailing))}S.prototype.throttle=function(t,e=CC){return SC(t,e)(this)};
1class EC{constructor(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}call(t,e){return e.subscribe(new DC(t,this.duration,this.scheduler,this.leading,this.trailing))}}class DC extends g{constructor(t,e,i,n,s){super(t),this.duration=e,this.scheduler=i,this.leading=n,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(AC,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function AC(t){const{subscriber:e}=t;e.clearThrottle()}function TC(t=bb){return e=>Zp(()=>e.pipe(Tm(({current:e},i)=>({value:i,current:t.now(),last:e}),{current:t.now(),value:void 0,last:void 0}),H(({current:t,last:e,value:i})=>new OC(i,t-e))))}S.prototype.throttleTime=function(t,e=bb,i=CC){return IC(t,e,i)(this)};class OC{constructor(t,e){this.value=t,this.interval=e}}function PC(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}S.prototype.timeInterval=function(t=bb){return TC(t)(this)},PC.prototype=Object.create(Error.prototype);const NC=PC;function RC(t,e,i=bb){return n=>{let s=Ky(t),r=s?+t-i.now():Math.abs(t);return n.lift(new MC(r,s,e,i))}}class MC{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new FC(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class FC extends ${constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(U(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(FC.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}function BC(t,e=bb){return RC(t,Eb(new NC),e)}function LC(t=bb){return H(e=>new VC(e,t.now()))}S.prototype.timeout=function(t,e=bb){return BC(t,e)(this)},S.prototype.timeoutWith=function(t,e,i=bb){return RC(t,e,i)(this)};class VC{constructor(t,e){this.value=t,this.timestamp=e}}function jC(t,e,i){return 0===i?[e]:(t.push(e),t)}function zC(){return Rm(jC,[])}function UC(t){return function(e){return e.lift(new $C(t))}}S.prototype.timestamp=function(t=bb){return LC(t)(this)},S.prototype.toArray=function(){return zC()(this)},i("XypG");class $C{constructor(t){this.windowBoundaries=t}call(t,e){const i=new HC(t),n=e.subscribe(i);return n.closed||i.add(U(i,this.windowBoundaries)),n}}class HC extends ${constructor(t){super(t),this.window=new A,t.next(this.window)}notifyNext(t,e,i,n,s){this.openWindow()}notifyError(t,e){this._error(t)}notifyComplete(t){this._complete()}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const t=this.window;t&&t.complete();const e=this.destination,i=this.window=new A;e.next(i)}}function qC(t,e=0){return function(i){return i.lift(new WC(t,e))}}S.prototype.window=function(t){return UC(t)(this)};class WC{constructor(t,e){this.windowSize=t,this.startWindowEvery=e}call(t,e){return e.subscribe(new GC(t,this.windowSize,this.startWindowEvery))}}class GC extends g{constructor(t,e,i){super(t),this.destination=t,this.windowSize=e,this.startWindowEvery=i,this.windows=[new A],this.count=0,t.next(this.windows[0])}_next(t){const e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,i=this.destination,n=this.windowSize,s=this.windows,r=s.length;for(let a=0;a<r&&!this.closed;a++)s[a].next(t);const o=this.count-n+1;if(o>=0&&o%e==0&&!this.closed&&s.shift().complete(),++this.count%e==0&&!this.closed){const t=new A;s.push(t),i.next(t)}}_error(t){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function YC(t){let e=bb,i=null,n=Number.POSITIVE_INFINITY;return O(arguments[3])&&(e=arguments[3]),O(arguments[2])?e=arguments[2]:yb(arguments[2])&&(n=arguments[2]),O(arguments[1])?e=arguments[1]:yb(arguments[1])&&(i=arguments[1]),function(s){return s.lift(new KC(t,i,n,e))}}S.prototype.windowCount=function(t,e=0){return qC(t,e)(this)};class KC{constructor(t,e,i,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=i,this.scheduler
1=n}call(t,e){return e.subscribe(new XC(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class ZC extends A{constructor(){super(...arguments),this._numberOfNextedValues=0}next(t){this._numberOfNextedValues++,super.next(t)}get numberOfNextedValues(){return this._numberOfNextedValues}}class XC extends g{constructor(t,e,i,n,s){super(t),this.destination=t,this.windowTimeSpan=e,this.windowCreationInterval=i,this.maxWindowSize=n,this.scheduler=s,this.windows=[];const r=this.openWindow();if(null!==i&&i>=0){const t={windowTimeSpan:e,windowCreationInterval:i,subscriber:this,scheduler:s};this.add(s.schedule(tS,e,{subscriber:this,window:r,context:null})),this.add(s.schedule(JC,i,t))}else this.add(s.schedule(QC,e,{subscriber:this,window:r,windowTimeSpan:e}))}_next(t){const e=this.windows,i=e.length;for(let n=0;n<i;n++){const i=e[n];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}}_error(t){const e=this.windows;for(;e.length>0;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;for(;t.length>0;){const e=t.shift();e.closed||e.complete()}this.destination.complete()}openWindow(){const t=new ZC;return this.windows.push(t),this.destination.next(t),t}closeWindow(t){t.complete();const e=this.windows;e.splice(e.indexOf(t),1)}}function QC(t){const{subscriber:e,windowTimeSpan:i,window:n}=t;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,i)}function JC(t){const{windowTimeSpan:e,subscriber:i,scheduler:n,windowCreationInterval:s}=t,r=i.openWindow();let o={action:this,subscription:null};o.subscription=n.schedule(tS,e,{subscriber:i,window:r,context:o}),this.add(o.subscription),this.schedule(t,s)}function tS(t){const{subscriber:e,window:i,context:n}=t;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(i)}function eS(t,e){return i=>i.lift(new iS(t,e))}S.prototype.windowTime=function(t){let e=bb,i=null,n=Number.POSITIVE_INFINITY;return O(arguments[3])&&(e=arguments[3]),O(arguments[2])?e=arguments[2]:yb(arguments[2])&&(n=arguments[2]),O(arguments[1])?e=arguments[1]:yb(arguments[1])&&(i=arguments[1]),YC(t,i,n,e)(this)};class iS{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new nS(t,this.openings,this.closingSelector))}}class nS extends ${constructor(t,e,i){super(t),this.openings=e,this.closingSelector=i,this.contexts=[],this.add(this.openSubscription=U(this,e,e))}_next(t){const{contexts:e}=this;if(e){const i=e.length;for(let n=0;n<i;n++)e[n].window.next(t)}}_error(t){const{contexts:e}=this;if(this.contexts=null,e){const i=e.length;let n=-1;for(;++n<i;){const i=e[n];i.window.error(t),i.subscription.unsubscribe()}}super._error(t)}_complete(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let i=-1;for(;++i<e;){const e=t[i];e.window.complete(),e.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let i=-1;for(;++i<e;){const e=t[i];e.window.unsubscribe(),e.subscription.unsubscribe()}}}notifyNext(t,e,i,n,s){if(t===this.openings){let t;try{const{closingSelector:i}=this;t=i(e)}catch(r){return this.error(r)}const i=new A,n=new p,s={window:i,subscription:n};this.contexts.push(s);const o=U(this,t,s);o.closed?this.closeWindow(this.contexts.length-1):(o.context=s,n.add(o)),this.destination.next(i)}else this.closeWindow(this.contexts.indexOf(t))}notifyError(t){this.error(t)}notifyComplete(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))}closeWindow(t){if(-1===t)return;const{contexts:e}=this,i=e[t],{window:n,subscription:s}=i;e.splice(t,1),n.complete(),s.unsubscribe()}}function sS(t){return function(e){return e.lift(new rS(t))}}S.prototype.windowToggle=function(t,e){return eS(t,e)(this)};class rS{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new oS(t,this.closingSelector))}}class oS extends ${constructor(t,e){super(t),this.destination=t,this.closingSelector=e,this.openWindow()}notifyNext(t,e,i,n,s){this.openWindow(s)}notifyError(t,e){this._error(t)}notifyComplete(t){this.openWindow(t)}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(t=null){t&&(this.remove(t),t.unsubscribe());const e=this.window;e&&e.complete();const i=this.window=new A;let n;this.destination.next(i);try{const{closingSelector:t}=this;
1n=t()}catch(s){return this.destination.error(s),void this.window.error(s)}this.add(this.closingNotification=U(this,n))}}function aS(...t){return e=>{let i;return"function"==typeof t[t.length-1]&&(i=t.pop()),e.lift(new lS(t,i))}}S.prototype.windowWhen=function(t){return sS(t)(this)};class lS{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new cS(t,this.observables,this.project))}}class cS extends ${constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const n=e.length;this.values=new Array(n);for(let s=0;s<n;s++)this.toRespond.push(s);for(let s=0;s<n;s++){let t=e[s];this.add(U(this,t,t,s))}}notifyNext(t,e,i,n,s){this.values[i]=e;const r=this.toRespond;if(r.length>0){const t=r.indexOf(i);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function hS(t){return e=>e.lift(new Pb(t))}function uS(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&c(t[0])&&(t=t[0].slice()),i=>i.lift.call(Y([i,...t]),new Yp(e))}function dS(...t){return e=>e.lift.call(Dm(e,...t))}function pS(...t){return e=>{let i=t[t.length-1];O(i)?t.pop():i=null;const n=t.length;return Dm(e,1!==n||i?n>0?G(t,i):sd(i):zp(t[0]))}}function mS(...t){return e=>e.lift.call(tt(e,...t))}function fS(...t){return function(e){return e.lift.call(Ob(e,...t))}}S.prototype.withLatestFrom=function(...t){return aS(...t)(this)},S.prototype.zip=function(...t){return this.lift.call(Ob(this,...t))},S.prototype.zipAll=function(t){return hS(t)(this)};let gS,_S=(()=>{class t{constructor(){this.loaderHidden=!0}show(){!this.timerHandle&&this.loaderHidden&&(this.timerHandle=setTimeout(()=>{this.loaderHidden=!1},500))}hide(){this.timerHandle&&(clearTimeout(this.timerHandle),this.timerHandle=void 0),this.loaderHidden=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),bS=(()=>{class t{constructor(t,e,i){this._http=t,this._router=e,this._loadingService=i,this.NIBNumber=localStorage.getItem("NIBNumber")||sessionStorage.getItem("NIBNumber"),this.token=localStorage.getItem("token")||sessionStorage.getItem("token"),this.LoginType=localStorage.getItem("LoginType")||sessionStorage.getItem("LoginType")}login(t){const e=JSON.stringify(t),i={headers:new T_({"Content-Type":"application/json",Authorization:`Bearer ${this.token}`})};return this._http.post(E_.loginApiUrlBase,e,i).pipe(fm(this.handleError))}logout(){this._loadingService.show(),this.loggedIn=!1,this._http.get(E_.loginApiUrlBase).subscribe(t=>{this._loadingService.hide(),null!==localStorage.getItem("token")&&(localStorage.removeItem("NIBNumber"),localStorage.removeItem("token"),localStorage.removeItem("NIBNumber")),null!==sessionStorage.getItem("token")&&(localStorage.removeItem("NIBNumber"),sessionStorage.removeItem("token"),localStorage.removeItem("NIBNumber")),this.clearCookies(),this.token=null,this.loggedIn=!1,this.NIBNumber=null,this._router.navigate(["/"])},t=>{this.handleError(t)},()=>{this._loadingService.hide()})}clearCookies(){const t=document.cookie.split("; ");for(let e of t){const t=e.indexOf("="),i=t>-1?e.substring(0,t):e;document.cookie=`${i}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;`}}handleError(t){return S.throw(t)}}return t.\u0275fac=function(e){return new(e||t)(se(H_),se(t_),se(_S))},t.\u0275prov=vt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yS=(()=>{class t{constructor(t,e,i){this._http=t,this._authService=e,this._loadingService=i}getData(t){this._loadingService.show();const e={headers:new T_({"Content-Type":"application/json",Authorization:`Bearer ${this._authService.token}`})};return this._http.get(t,e)}deleteData(t){this._loadingService.show();const e={headers:new T_({"Content-Type":"application/json",Authorization:`Bearer ${this._authService.token}`})};return this._http.delete(t,e)}postData(t,e){this._loadingService.show();const i={headers:new T_({"Content-Type":"application/json",Authorization:`Bearer ${this._authService.token}`})},n=JSON.stringify(t);return this._http.post(e,n,i)}putData(t,e){this._loadingService.show();const i={headers:new T_({"Content-Type":"application/json",Authorization:`Bearer ${this._authService.token}`})},n=JSON.stringify(t);return this._http.put(e,n,i)}handleError(t){return S.throw(t.status&&401===t.status?"Session Expired- please log in":"Server Error")}}return t.\u0275fac=function(e){return new(e||t)(se(H_),se(bS),se(_S))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),vS=(()=>{class t{constructor(){this.isNotificationHidden=!0,this.manualDismiss=!1,this.timeToClose=3e3}showNotification(t){if(!this.isNotificationHidden)return;this.timeToClose=t&&(t.timer||0==t.timer)?t.timer:5e3,this.message=t&&t.message||"System Notification";const e=t&&t.type||"deault";switch(this.manualDismiss=t&&t.closeable||!1,e){case"success":this.bgType="bg-success",this.iconType="fa-thumbs-o-up";break;case"error":this.bgType="bg-danger",this.iconType="fa-exclamation-triangle";break;case"warning":this.bgType="bg-warning",this.iconType="fa-exclamation-triangle";break;case"default":default:this.bgType="bg-primary",this.iconType="fa-exclamation-triangle"}this.isNotificationHidden=!1,this.timeToClose>0?this.setTimers():this.manualDismiss=!0}setTimers(){this.timerHandle=setTimeout(()=>{this.isNotificationHidden=!0,setTimeout(()=>{this.message="",this.bgType="",this.iconType="",this.timeToClose=3e3},600)},this.timeToClose)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),wS=(()=>{class t{constructor(t,e,i,n){this._backendService=t,this._notificationService=e,this._router=i,this._authService=n,this.forgotPasswordShow=!1,this.validEmail=!1,this.otpvalid=!1,this.otpvalidsuccess=!1,this.emailPending=!1,this.validAnswer=!1,this.emailhide=!1,this.pwd_reset_q1="",this.pwd_reset_q2="",this.questions=[],this.selectedQuestion=0}forgottenPasswordFormUpdate(t,e){e&&e.preventDefault(),this.validEmail=!1,this.validAnswer=!1,this.forgotPasswordShow=t,this.otpvalidsuccess=!1,this.otpvalid=!1,this.emailhide=!1,this._router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this._router.navigate(["login"])})}switchQuestion(){this.selectedQuestion=0===this.selectedQuestion?1:0}submitEmail(t){this.emailPending=!0,this._backendService.postData(t,`${E_.sendemailApiUrlBase}/checkcustomer`).subscribe(t=>
1{if(this.emailPending=!1,t.result){if(!t||!t)return this._notificationService.showNotification({message:"No password reset questions are on file for your login - Please contact your site administrator to reset your password.",type:"error"}),void(this.forgotPasswordShow=!1);this.questions.push(t.pwd_reset_q1,t.pwd_reset_q2),this._notificationService.showNotification({type:"success",message:t.msg}),console.log(t.pwd_reset_q1,t.pwd_reset_q2),this.validEmail=!0,this.otpvalid=!0,this.emailhide=!0}else this._notificationService.showNotification({message:"Invalid CustomerID",type:"error"}),this.validEmail=!1,this.otpvalid=!1,this.emailhide=!1})}OTPValidate(t){console.log(t),this.emailPending=!0,this._backendService.postData(t,`${E_.sendemailApiUrlBase}/otpvalidate`).subscribe(t=>{console.log(t),this.emailPending=!1,t.result?(this._authService.loggedIn=!0,sessionStorage.setItem("NIBNumber",t.nibnumber),this._authService.NIBNumber=sessionStorage.getItem("NIBNumber"),sessionStorage.setItem("token",t.token),this._authService.token=sessionStorage.getItem("token"),this._notificationService.showNotification({type:"warning",message:"Please reset your password"}),this._router.navigate(["/profile"])):(this._notificationService.showNotification({message:"Invalid one-time password",type:"error"}),this.otpvalid=!0,this.otpvalidsuccess=!1,this.emailhide=!0)})}submitAnswer(t){return t.Question=this.questions[this.selectedQuestion],this._backendService.postData(t,`${E_.sendemailApiUrlBase}/email`).map(t=>t)}disableUser(t){this._backendService.postData(t,`${E_.usersApiUrlBase}/disableuser`).subscribe(t=>{this._notificationService.showNotification({message:t.msg,type:"success"})},t=>{this._notificationService.showNotification({message:t.msg,type:"error"})})}}return t.\u0275fac=function(e){return new(e||t)(se(yS),se(vS),se(t_),se(bS))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function CS(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function SS(t){return null!=t&&"false"!==`${t}`}function xS(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function kS(t){return Array.isArray(t)?t:[t]}function IS(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ES(t){return t instanceof Ua?t.nativeElement:t}try{gS="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(oF){gS=!1}let DS,AS=(()=>{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&&!gS)&&"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)(se(mc,8))},t.\u0275prov=vt({factory:function(){return new t(se(mc,8))},token:t,providedIn:"root"}),t})(),TS=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})();const OS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function PS(){if(DS)return DS;if("object"!=typeof document||!document)return DS=new Set(OS),DS;let t=document.createElement("input");return DS=new Set(OS.filter(e=>(t.setAttribute("type",e),t.type===e))),DS}let NS,RS;function MS(t){return function(){if(null==NS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>NS=!0}))}finally{NS=NS||!1}return NS}()?t:!!t.capture}let FS=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),BS=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}
1ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=ES(t);return new S(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new A,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(se(FS))},t.\u0275prov=vt({factory:function(){return new t(se(FS))},token:t,providedIn:"root"}),t})(),LS=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new jl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=SS(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=xS(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(qy(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Io(BS),Io(Ua),Io(Tc))},t.\u0275dir=Ae({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),VS=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[FS]}),t})();function jS(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let zS=0;const US=new Map;let $S=null,HS=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),US.set(e,{messageElement:e,referenceCount:0})):US.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=US.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}$S&&0===$S.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("cdk-describedby-host");$S&&this._deleteMessagesContainer(),US.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),$S.appendChild(e),US.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id=`cdk-describedby-message-${zS++}`)}_deleteMessageElement(t){const e=US.get(t),i=e&&e.messageElement;$S&&i&&$S.removeChild(i),US.delete(t)}_createMessagesContainer(){if(!$S){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),$S=this._document.createElement("div"),$S.id="cdk-describedby-message-container",$S.setAttribute("aria-hidden","true"),$S.style.display="none",this._document.body.appendChild($S)}}_deleteMessagesContainer(){$S&&$S.parentNode&&($S.parentNode.removeChild($S),$S=null)}_removeCdkDescribedByReferenceIds(t){const e=jS(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=US.get(e);
1!function(t,e,i){const n=jS(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=US.get(e);i.referenceCount--,function(t,e,i){const n=jS(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=jS(t,"aria-describedby"),n=US.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({factory:function(){return new t(se(lh))},token:t,providedIn:"root"}),t})();class qS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=p.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new A,this.change=new A,t instanceof Ul&&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){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(om(t=>this._pressedLetters.push(t)),qy(t),Qp(()=>this._pressedLetters.length>0),H(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i<e.length+1;i++){const n=(this._activeItemIndex+i)%e.length,s=e[n];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(n);break}}this._pressedLetters=[]}),this}setActiveItem(t){const e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,i=["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&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||CS(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(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ul?this._items.toArray():this._items}}class WS extends qS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class GS extends qS{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)}}let YS=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(oF){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===ZS(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=ZS(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;
1if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||KS(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(se(AS))},t.\u0275prov=vt({factory:function(){return new t(se(AS))},token:t,providedIn:"root"}),t})();function KS(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ZS(t){if(!KS(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class XS{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let i=0;i<e.length;i++)e[i].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated `+"attribute will be removed in 8.0.0.",e[i]):e[i].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated attribute `+"will be removed in 8.0.0.",e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Tn()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let i=0;i<e.length;i++){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let i=e.length-1;i>=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(t)}}let QS=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new XS(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(se(YS),se(Tc),se(lh))},t.\u0275prov=vt({factory:function(){return new t(se(YS),se(Tc),se(lh))},token:t,providedIn:"root"}),t})(),JS=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=SS(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=SS(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(QS),Io(lh))},t.\u0275dir=Ae({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t})();"undefined"!=typeof Element&∈const tx=new Yt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ex=new Yt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ix=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(se(tx,8),se(Tc),se(lh),se(ex,8))},t.\u0275prov=vt({factory:function(){return new t(se(tx,8),se(Tc),se(lh),se(ex,8))},token:t,providedIn:"root"}),t})(),nx=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(ix),Io(BS),Io(Tc))},t.\u0275dir=Ae({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();const sx=new Yt("cdk-focus-monitor-default-options"),rx=MS({passive:!0,capture:!0});let ox=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Up(null);const i=ES(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{}
1,checkChildren:e,subject:new A};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),r=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",r,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",r,!0)},n.subject.asObservable()}stopMonitoring(t){const e=ES(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=ES(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,rx),t.addEventListener("mousedown",this._documentMousedownListener,rx),t.addEventListener("touchstart",this._documentTouchstartListener,rx),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,rx),t.removeEventListener("mousedown",this._documentMousedownListener,rx),t.removeEventListener("touchstart",this._documentTouchstartListener,rx),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(se(Tc),se(AS),se(lh,8),se(sx,8))},t.\u0275prov=vt({factory:function(){return new t(se(Tc),se(AS),se(lh,8),se(sx,8))},token:t,providedIn:"root"}),t})(),ax=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new jl,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(ox))},t.\u0275dir=Ae({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();function lx(t){return 0===t.buttons}let cx=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}
1_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(se(AS),se(lh))},t.\u0275prov=vt({factory:function(){return new t(se(AS),se(lh))},token:t,providedIn:"root"}),t})(),hx=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)(se(cx))},imports:[[TS,VS]]}),t})();const ux=new Yt("cdk-dir-doc",{providedIn:"root",factory:function(){return re(lh)}});let dx=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new jl,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(se(ux,8))},t.\u0275prov=vt({factory:function(){return new t(se(ux,8))},token:t,providedIn:"root"}),t})(),px=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})();const mx=new Ka("9.2.0");class fx{}function gx(t,e){return{type:7,name:t,definitions:e,options:{}}}function _x(t,e=null){return{type:4,styles:e,timings:t}}function bx(t,e=null){return{type:3,steps:t,options:e}}function yx(t,e=null){return{type:2,steps:t,options:e}}function vx(t){return{type:6,styles:t,offset:null}}function wx(t,e,i){return{type:0,name:t,styles:e,options:i}}function Cx(t){return{type:5,steps:t}}function Sx(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function xx(t=null){return{type:9,options:t}}function kx(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Ix(t){Promise.resolve(null).then(t)}class Ex{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(){Ix(()=>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 Dx{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,i=0,n=0;const s=this.players.length;0==s?Ix(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&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())}
1finish(){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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,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 Ax(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Tx(t){switch(t.length){case 0:return new Ex;case 1:return t[0];default:return new Dx(t)}}function Ox(t,e,i,n,s={},r={}){const o=[],a=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&c||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}h[n]=a}),n||a.push(h),c=h,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Px(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Nx(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Nx(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Nx(i,"destroy",t)))}}function Nx(t,e,i){const n=i.totalTime,s=Rx(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Rx(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function Mx(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Fx(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Bx=(t,e)=>!1,Lx=(t,e)=>!1,Vx=(t,e,i)=>[];const jx=Ax();(jx||"undefined"!=typeof Element)&&(Bx=(t,e)=>t.contains(e),Lx=(()=>{if(jx||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,i)=>e.apply(t,[i]):Lx}})(),Vx=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let zx=null,Ux=!1;function $x(t){zx||(zx=("undefined"!=typeof document?document.body:null)||{},Ux=!!zx.style&&"WebkitAppearance"in zx.style);let e=!0;return zx.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in zx.style,!e&&Ux)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in zx.style),e}const Hx=Lx,qx=Bx,Wx=Vx;function Gx(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Yx=(()=>{class t{validateStyleProperty(t){return $x(t)}matchesElement(t,e){return Hx(t,e)}containsElement(t,e){return qx(t,e)}query(t,e,i){return Wx(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Ex(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),Kx=(()=>{class t{}return t.NOOP=new Yx,t})();function Zx(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Xx(parseFloat(e[1]),e[2])}function Xx(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Qx(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=Xx(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=Xx(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}
1" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function Jx(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function tk(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else Jx(t,i);return i}function ek(t,e,i){return i?e+":"+i+";":""}function ik(t){let e="";for(let i=0;i<t.style.length;i++){const n=t.style.item(i);e+=ek(0,n,t.style.getPropertyValue(n))}for(const i in t.style)t.style.hasOwnProperty(i)&&!i.startsWith("_")&&(e+=ek(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[i]));t.setAttribute("style",e)}function nk(t,e,i){t.style&&(Object.keys(e).forEach(n=>{const s=uk(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Ax()&&ik(t))}function sk(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=uk(e);t.style[i]=""}),Ax()&&ik(t))}function rk(t){return Array.isArray(t)?1==t.length?t[0]:yx(t):t}const ok=new RegExp("{{\\s*(.+?)\\s*}}","g");function ak(t){let e=[];if("string"==typeof t){let i;for(;i=ok.exec(t);)e.push(i[1]);ok.lastIndex=0}return e}function lk(t,e,i){const n=t.toString(),s=n.replace(ok,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function ck(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const hk=/-+([a-z0-9])/g;function uk(t){return t.replace(hk,(...t)=>t[1].toUpperCase())}function dk(t,e){return 0===t||0===e}function pk(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var s=1;s<e.length;s++){let i=e[s];o.forEach((function(e){i[e]=fk(t,e)}))}}return e}function mk(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function fk(t,e){return window.getComputedStyle(t)[e]}function gk(t,e){const i=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,i){if(":"==t[0]){const n=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,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],o=n[3];e.push(yk(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(yk(o,s))}(t,i,e)):i.push(t),i}const _k=new Set(["true","1"]),bk=new Set(["false","0"]);function yk(t,e){const i=_k.has(t)||bk.has(t),n=_k.has(e)||bk.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?_k.has(t):bk.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?_k.has(e):bk.has(e)),o&&a}}const vk=new RegExp("s*:selfs*,?","g");function wk(t,e,i){return new Ck(t).build(e,i)}class Ck{constructor(t){this._driver=t}build(t,e){const i=new Sk(e);return this._resetContextStyleTimingState(i),mk(this,rk(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],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 i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};
1if(i.styles.forEach(t=>{if(xk(t)){const e=t;Object.keys(e).forEach(t=>{ak(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=ck(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=mk(this,rk(t.animation),e);return{type:1,matchers:gk(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:kk(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>mk(this,t,e)),options:kk(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=mk(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:kk(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Ik(Qx(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ik(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Qx(n,e),Ik(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:vx({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=vx(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(xk(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" 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 "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=ak(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(xk(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(xk(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),i});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;n>0&&n<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==n&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return l.forEach((t,n)=>{const r=h>0?n==u?1:h*n:s[n],o=r*m;
1e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:mk(this,rk(t.animation),e),options:kk(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:kk(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:kk(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(vk,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Mx(e.collectedStyles,e.currentQuerySelector,{});const o=mk(this,rk(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:kk(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qx(t.timings,e.errors,!0);return{type:12,animation:mk(this,rk(t.animation),e),timings:i,options:null}}}class Sk{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 xk(t){return!Array.isArray(t)&&"object"==typeof t}function kk(t){var e;return t?(t=Jx(t)).params&&(t.params=(e=t.params)?Jx(e):null):t={},t}function Ik(t,e,i){return{duration:t,delay:e,easing:i}}function Ek(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Dk{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ak=new RegExp(":enter","g"),Tk=new RegExp(":leave","g");function Ok(t,e,i,n,s,r={},o={},a,l,c=[]){return(new Pk).buildKeyframes(t,e,i,n,s,r,o,a,l,c)}class Pk{buildKeyframes(t,e,i,n,s,r,o,a,l,c=[]){l=l||new Dk;const h=new Rk(t,e,l,n,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),mk(this,i,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()):[Ek(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Zx(i.duration):null,r=null!=i.delay?Zx(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),mk(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Nk);const t=Zx(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>mk(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Zx(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),mk(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}
1),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Qx(e.params?lk(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Zx(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Nk);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),mk(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 i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;mk(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const Nk={};class Rk{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Mk(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Zx(i.duration)),null!=i.delay&&(n.delay=Zx(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=lk(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Rk(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Nk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Fk(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(Ak,"."+this._enterClassName)).replace(Tk,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Mk{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,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._pe
1ndingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Mk(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):tk(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=lk(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const o=tk(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?ck(t.values()):[],r=e.size?ck(e.values()):[];if(i){const t=n[0],e=Jx(t);t.offset=0,e.offset=1,n=[t,e]}return Ek(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class Fk extends Mk{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,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:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=tk(t[0],!1);a.offset=0,s.push(a);const l=tk(t[0],!1);l.offset=Bk(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=tk(t[n],!1);o.offset=Bk((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Ek(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Bk(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Lk{}class Vk extends Lk{normalizePropertyName(t,e){return uk(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(jk[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const jk=(()=>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 zk(t,e,i,n,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Uk={};class $k{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}
1match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Uk,d=this.buildStyles(i,o&&o.params||Uk,h),p=a&&a.params||Uk,m=this.buildStyles(n,p,h),f=new Set,g=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},u),p)},v=c?[]:Ok(t,e,this.ast.animation,s,r,d,m,y,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return zk(e,this._triggerName,i,n,b,d,m,[],[],g,_,w,h);v.forEach(t=>{const i=t.element,n=Mx(g,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Mx(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&f.add(i)});const C=ck(f.values());return zk(e,this._triggerName,i,n,b,d,m,v,C,g,_,w)}}class Hk{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=Jx(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=lk(r,n,e)),i[t]=r})}}),i}}class qk{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Hk(t.style,t.options&&t.options.params||{})}),Wk(this.states,"true","1"),Wk(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new $k(t,e,this.states))}),this.fallbackTransition=new $k(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,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Wk(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Gk=new Dk;class Yk{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=wk(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=Ox(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Ok(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Gk,n),r.forEach(t=>{const e=Mx(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=Tx(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 i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){const s=Rx(e,"","","");return Px(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);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(n[0]));break;case"destroy":this.destroy(t)}}}const Kk=[],Zk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xk={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Qk{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=Jx(t);delete e.value,this.options=e}else this.options={};var n;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(i=>
1{null==t[i]&&(t[i]=e[i])})}}}const Jk=new Qk("void");class tI{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,aI(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=Mx(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=Mx(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(aI(t,"ng-trigger"),aI(t,"ng-trigger-"+e),a[e]=Jk),()=>{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,i,n=!0){const s=this._getTrigger(e),r=new iI(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(aI(t,"ng-trigger"),aI(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Qk(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Jk),"void"!==l.value&&a.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s<i.length;s++){const n=i[s];if(!e.hasOwnProperty(n)||t[n]!==e[n])return!1}return!0}(a.params,l.params)){const e=[],i=s.matchStyles(a.value,a.params,e),n=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{sk(t,i),nk(t,n)})}return}const c=Mx(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!n)return;h=s.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||(aI(t,"ng-animate-queued"),r.onStart(()=>{lI(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,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 i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Tx(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,r=this._engine.statesByElement.get(t)[n]||Jk,o=new Qk("void"),a=new iI(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:r,toState:o,player:
1a,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Zk||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){aI(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Rx(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Px(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n: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 eI{constructor(t,e,i){this.bodyNode=t,this.driver=e,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=(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 i=new tI(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n<t.length;n++){const s=i[t[n]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,i,n){if(nI(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,n),!0}return!1}insertNode(t,e,i,n){if(!nI(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),aI(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),lI(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(nI(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}
1markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return nI(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Tx(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Zk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];
1if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)aI(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let t=0;t<i.length;t++)i[t]()}}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(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Tx(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 i=new Dk,n=[],s=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 i=0;i<e.length;i++)c.add(e[i])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=oI(u,this.collectedEnterElements),p=new Map;let m=0;d.forEach((t,e)=>{const i="ng-enter"+m++;p.set(e,i),t.forEach(t=>aI(t,i))});const f=[],g=new Set,_=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const t=this.collectedLeaveElements[T],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const b=new Map,y=oI(u,Array.from(g));y.forEach((t,e)=>{const i="ng-leave"+m++;b.set(e,i),t.forEach(t=>aI(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>lI(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>lI(t,i))}),f.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=b.get(s),d=p.get(s),m=this._buildInstruction(t,i,d,u,c);if(!m.errors||!m.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>sk(s,m.fromStyles)),e.onDestroy(()=>nk(s,m.toStyles)),void n.push(e)):(m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>Mx(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void m.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));w.push(m)});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 C=new Map,S=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Mx(C,e,[]).push(t),t.destroy()})});const x=f.filter(t=>hI(t,a,l)),k=new Map;rI(k,this.driver,_,l,"*").forEach(t=>{hI(t,a,l)&&x.push(t)});const I=new Map;d.forEach((t,e)=>{rI(I,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),i=I.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const E=[],D=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(c.has(e))return r.onDestroy(()=>nk(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=A;if(S.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=S.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>S.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,C,s,I,k);if(r.setRealPlayer(i),t===A)E.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Tx(e)),n.push(r)}}else sk(e,o.fromStyles),r.onDestroy(()=>nk(e,o.toStyles)),D.push(r),c.has(e)&&n.push(r)}),D.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Tx(e);t.setRealPlayer(i)}}
1),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let T=0;T<f.length;T++){const t=f[T],e=t.__ng_removed;if(lI(t,"ng-leave"),e&&e.hasAnimation)continue;let i=[];if(o.size){let e=o.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,".ng-animating",!0);for(let t=0;t<n.length;t++){let e=o.get(n[t]);e&&e.length&&i.push(...e)}}const n=i.filter(t=>!t.destroyed);n.length?cI(this,t,n):this.processLeaveNode(t)}return f.length=0,E.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),E}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,l=Mx(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}sk(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,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 Ex(e.duration,e.delay);const p=u!==a,m=function(t){const e=[];return function t(e,i){for(let n=0;n<e.length;n++){const s=e[n];s instanceof Dx?t(s.players,i):i.push(s)}}(t,e),e}((i.get(u)||Kk).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),f=s.get(u),g=r.get(u),_=Ox(0,this._normalizer,0,e.keyframes,f,g),b=this._buildPlayer(e,_,m);if(e.subTimeline&&n&&h.add(u),p){const e=new iI(t,o,u);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{Mx(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>aI(t,"ng-animating"));const d=Tx(u);return d.onDestroy(()=>{c.forEach(t=>lI(t,"ng-animating")),nk(a,e.toStyles)}),h.forEach(t=>{Mx(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ex(t.duration,t.delay)}}class iI{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ex,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).forEac
1h(e=>{this._queuedCallbacks[e].forEach(i=>Px(t,e,void 0,i))}),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){Mx(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 nI(t){return t&&1===t.nodeType}function sI(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function rI(t,e,i,n,s){const r=[];i.forEach(t=>r.push(sI(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Xk,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>sI(t,r[a++])),o}function oI(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=i.has(o)?o:n.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&i.get(e).push(t)}),i}function aI(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function lI(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function cI(t,e,i){Tx(i).onDone(()=>t.processLeaveNode(e))}function hI(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class uI{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new eI(t,e,i),this._timelineEngine=new Yk(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=wk(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new qk(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}
1process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Fx(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Fx(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function dI(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=mI(e[0]),e.length>1&&(n=mI(e[e.length-1]))):e&&(i=mI(e)),i||n?new pI(t,i,n):null}let pI=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&nk(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nk(this._element,this._initialStyles),this._endStyles&&(nk(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sk(this._element,this._endStyles),this._endStyles=null),nk(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function mI(t){let e=null;const i=Object.keys(t);for(let n=0;n<i.length;n++){const s=i[n];fI(s)&&(e=e||{},e[s]=t[s])}return e}function fI(t){return"display"===t||"position"===t}class gI{constructor(t,e,i,n,s,r,o){this._element=t,this._name=e,this._duration=i,this._delay=n,this._easing=s,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 i=CI(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n<t.length;n++)","===t.charAt(n)&&i++}(i),e=`${i}, ${e}`),wI(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),vI(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){_I(this._element,this._name,"paused")}resume(){_I(this._element,this._name,"running")}setPosition(t){const e=bI(this._element,this._name);this._position=t*this._duration,wI(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),vI(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=CI(t,"").split(","),n=yI(i,e);n>=0&&(i.splice(n,1),wI(t,"",i.join(",")))}(this._element,this._name))}}function _I(t,e,i){wI(t,"PlayState",i,bI(t,e))}function bI(t,e){const i=CI(t,"");return i.indexOf(",")>0?yI(i.split(","),e):yI([i],e)}function yI(t,e){for(let i=0;i<t.length;i++)if(t[i].indexOf(e)>=0)return i;return-1}function vI(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function wI(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function CI(t,e){return t.style["animation"+e]}class SI{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,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=n+s,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>
1=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 gI(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(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:fk(this.element,i))})}this.currentSnapshot=t}}class xI extends Ex{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Gx(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 kI{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return $x(t)}matchesElement(t,e){return Hx(t,e)}containsElement(t,e){return qx(t,e)}query(t,e,i){return Wx(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>Gx(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const r=document.createElement("style");return r.innerHTML=n,r}animate(t,e,i,n,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof SI),l={};dk(i,n)&&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(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=pk(t,e,l));if(0==i)return new xI(t,c);const h=`gen_css_kf_${this._count++}`,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=dI(t,e),p=new SI(t,e,h,i,n,s,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 II{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,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(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()}
1_triggerWebAnimation(t,e,i){return t.animate(e,i)}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]:fk(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class EI{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(DI().toString()),this._cssKeyframesDriver=new kI}validateStyleProperty(t){return $x(t)}matchesElement(t,e){return Hx(t,e)}containsElement(t,e){return qx(t,e)}query(t,e,i){return Wx(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof II);dk(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=dI(t,e=pk(t,e=e.map(t=>tk(t,!1)),l));return new II(t,e,a,h)}}function DI(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let AI=(()=>{class t extends fx{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ye.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?yx(t):t;return PI(this._renderer,null,e,"register",[i]),new TI(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(se(Ha),se(lh))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class TI extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new OI(this._id,t,e||{},this._renderer)}}class OI{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return PI(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 PI(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let NI=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,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 i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new RI("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new MI(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&t<this._microtaskId?this._zone.run(()=>e(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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)(se(Ha),se(uI),se(Tc))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();class RI{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,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)}
1appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class MI extends RI{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let FI=(()=>{class t extends uI{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(se(lh),se(Kx),se(Lk))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const BI=new Yt("AnimationModuleType"),LI=[{provide:Kx,useFactory:function(){return"function"==typeof DI()?new EI:new kI}},{provide:BI,useValue:"BrowserAnimations"},{provide:fx,useClass:AI},{provide:Lk,useFactory:function(){return new Vk}},{provide:uI,useClass:FI},{provide:Ha,useFactory:function(t,e,i){return new NI(t,e,i)},deps:[Uu,uI,Tc]}];let VI=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:LI,imports:[id]}),t})();const jI=["*",[["mat-option"],["ng-container"]]],zI=["*","mat-option, ng-container"];function UI(t,e){if(1&t&&No(0,"mat-pseudo-checkbox",3),2&t){const t=Ho();Ao("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const $I=["*"],HI=new Ka("9.2.0"),qI=new Yt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let WI=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,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 Tn()&&!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 i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.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(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&HI.full!==mx.full&&console.warn("The Angular Material version ("+HI.full+") does not match the Angular CDK version ("+mx.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)(se(cx),se(qI,8),se(lh,8))},imports:[[px],px]}),t})();function GI(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=SS(t)}}}function YI(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;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 KI(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=SS(t)}}}function ZI(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function XI(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new A}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function QI(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new S(t=>
1{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const JI=new Yt("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return re(_c)}});class tE{constructor(){this._localeChanges=new A}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const eE=new Yt("mat-date-formats");let iE;try{iE="undefined"!=typeof Intl}catch(oF){iE=!1}const nE={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},sE=aE(31,t=>String(t+1)),rE={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},oE=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function aE(t,e){const i=Array(t);for(let n=0;n<t;n++)i[n]=e(n);return i}let lE=(()=>{class t extends tE{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(iE){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return aE(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return nE[t]}getDateNames(){if(iE){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return aE(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return sE}getDayOfWeekNames(t){if(iE){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return aE(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return rE[t]}getYearName(t){if(iE){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(iE){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(oE.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(se(JI,8),se(AS))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),cE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[{provide:tE,useClass:lE}],imports:[[TS]]}),t})();const hE={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let uE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[{provide:eE,useValue:hE}],imports:[[cE]]}),t})(),dE=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),pE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI],WI]}),t})();class mE{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const fE={enterDuration:450,exitDuration:400},gE=MS({passive:!0});class _E{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=lx(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||i||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},this._onTouchStart=t=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEac
1h(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=ES(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},fE),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,a=e-n.top,l=s.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!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new mE(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.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 i=t.element,n=Object.assign(Object.assign({},fE),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=ES(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,gE)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,gE)})}}const bE=new Yt("mat-ripple-global-options");let yE=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new _E(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(Tc),Io(AS),Io(bE,8),Io(BI,8))},t.\u0275dir=Ae({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&sa("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})(),vE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI,TS],WI]}),t})(),wE=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Io(BI,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&sa("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),CE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})();class SE{}const xE=GI(SE);let kE=0,IE=(()=>{class t extends xE{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${kE++}`}}return t.\u0275fac=function(e){return EE(e||t)},t.\u0275cmp=Se({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(Co("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),sa("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[Ca],ngContentSelectors:zI,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(Wo(jI),Oo(0,"label",0),fa(1),Go(2),Po(),Go(3,1)),2&t&&(Ao("id",e._labelId),_s(1),_a("",e.label," "))},styles:[".mat-optgroup-label{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%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const EE=mn(IE);let DE=0;class AE{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const TE=new Yt("MAT_OPTION_PARENT_COMPONENT");let OE=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${DE++}`,this.onSelectionChange=new jl,this._stateChanges=new A}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=SS(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||CS(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}
1_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new AE(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(qr),Io(TE,8),Io(IE,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Vo("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(ya("id",e.id),Co("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),sa("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:$I,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(Wo(),xo(0,UI,1,2,"mat-pseudo-checkbox",0),Oo(1,"span",1),Go(2),Po(),No(3,"div",2)),2&t&&(Ao("ngIf",e.multiple),_s(3),Ao("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[cu,yE,wE],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function PE(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;e<t+1;e++)n[e].group&&n[e].group===s[r]&&r++;return r}return 0}let NE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[vE,xu,CE]]}),t})();const RE=new Yt("mat-label-global-options"),ME=["mat-button",""],FE=["*"],BE=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class LE{constructor(t){this._elementRef=t}}const VE=YI(GI(KI(LE)));let jE=(()=>{class t extends VE{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of BE)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(ox),Io(BI,8))},t.\u0275cmp=Se({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 i;1&t&&Jl(yE,!0),2&t&&Xl(i=sc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(Co("disabled",e.disabled||null),sa("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Ca],attrs:ME,ngContentSelectors:FE,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&&(Wo(),Oo(0,"span",0),Go(1),Po(),No(2,"div",1),No(3,"div",2)),2&t&&(_s(2),sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Ao("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[yE],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),zE=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[vE,WI],WI]}),t})();const UE=["underline"],$E=["connectionContainer"],HE=["inputContainer"],qE=["label"];function WE(t,e){1&t&&(Ro(0),Oo(1,"div",14),No(2,"div",15),No(3,"div",16),No(4,"div",17),Po(),Oo(5,"div",18),No(6,"div",15),No(7,"div",16),No(8,"div",17),Po(),Mo())}function GE(t,e){1&t&&(Oo(0,"div",19),Go(1,1),Po())}function YE(t,e){if(1&t&&(Ro(0),Go(1,2),Oo(2,"span"),fa(3),Po(),Mo()),2&t){const t=Ho(2);_s(3),ga(t._control.placeholder)}}function KE(t,e){1&t&&Go(0,3,["*ngSwitchCase","true"])}function ZE(t,e){1&t&&(Oo(0,"span",23),fa(1," *"),Po())}function XE(t,e){if(1&t){const t=Fo();Oo(0,"label",20,21),Vo("cdkObserveContent",(function(){return ri(t),Ho().updateOutlineGap()})),xo(2,YE,4,1,"ng-container",12),xo(3,KE,1,0,void 0,12),xo(4,ZE,2,0,"span",22),Po()}if(2&t){const t=Ho();sa("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),Ao("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),Co("for",t._control.id)("aria-owns",t._control.id),_s(2),Ao("ngSwitchCase",!1),_s(1),Ao("ngSwitchCase",!0),_s(1),Ao("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function QE(t,e){1&t&&(Oo(0,"div",24),Go(1,4),Po())}function JE(t,e){if(1&t&&(Oo(0,"div",25,26),No(2,"span",27),Po()),2&t){const t=Ho();_s(2),sa("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function tD(t,e){1&t&&(Oo(0,"div"),Go(1,5),Po()),2&t&&Ao("@transitionMessages",Ho()._subscriptAnimationState)}function eD(t,e){if(1&t&&(Oo(0,"div",31),fa(1),Po()),2&t){const t=Ho(2);Ao("id",t._hintLabelId),_s(1),ga(t.hintLabel)}}function iD(t,e){if(1&t&&(Oo(0,"div",28),xo(1,eD,2,2,"div",29),Go(2,6),No(3,"div",30),Go(4,7),Po()),2&t){const t=Ho();Ao("@transitionMessages",t._subscriptAnimationState),_s(1),Ao("ngIf",t.hintLabel)}}const nD=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],sD=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let rD=0,oD=(()=>{class t{constructor(){this.id=`mat-error-${rD++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Co("id",e.id)},inputs:{id:"id"}}),t})();const aD={transitionMessages:gx("transitionMessages",[wx("enter",vx({opacity:1,transform:"translateY(0%)"})),Sx("void => enter",[vx({opacity:0,transform:"translateY(-100%)"}),_x("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t})();function cD(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let hD=0,uD=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${hD++}`}}
1return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Co("id",e.id)("align",null),sa("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),dD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-label"]]}),t})(),pD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-placeholder"]]}),t})(),mD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matPrefix",""]]}),t})(),fD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matSuffix",""]]}),t})(),gD=0;class _D{constructor(t){this._elementRef=t}}const bD=YI(_D,"primary"),yD=new Yt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vD=new Yt("MatFormField");let wD=(()=>{class t extends bD{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${gD++}`,this._labelId=`mat-form-field-label-${gD++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=SS(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Am(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(gC(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(gC(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),tt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Am(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Am(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(gC(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,db(this._label.nativeElement,"transitionend").pipe(bm(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}
1_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw cD("start");t=i}else if("end"===i.align){if(e)throw cD("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(o-r)-5,i=a>0?.75*a+10:0}for(let o=0;o<s.length;o++)s[o].style.width=`${e}px`;for(let o=0;o<r.length;o++)r[o].style.width=`${i}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(qr),Io(RE,8),Io(dx,8),Io(yD,8),Io(AS),Io(Tc),Io(BI,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,i){var n;1&t&&(ec(i,lD,!0),ic(i,lD,!0),ec(i,dD,!0),ic(i,dD,!0),ec(i,pD,!0),ec(i,oD,!0),ec(i,uD,!0),ec(i,mD,!0),ec(i,fD,!0)),2&t&&(Xl(n=sc())&&(e._controlNonStatic=n.first),Xl(n=sc())&&(e._controlStatic=n.first),Xl(n=sc())&&(e._labelChildNonStatic=n.first),Xl(n=sc())&&(e._labelChildStatic=n.first),Xl(n=sc())&&(e._placeholderChild=n.first),Xl(n=sc())&&(e._errorChildren=n),Xl(n=sc())&&(e._hintChildren=n),Xl(n=sc())&&(e._prefixChildren=n),Xl(n=sc())&&(e._suffixChildren=n))},viewQuery:function(t,e){var i;1&t&&(Jl(UE,!0),Ql($E,!0),Jl(HE,!0),Jl(qE,!0)),2&t&&(Xl(i=sc())&&(e.underlineRef=i.first),Xl(i=sc())&&(e._connectionContainerRef=i.first),Xl(i=sc())&&(e._inputContainerRef=i.first),Xl(i=sc())&&(e._label=i.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&sa("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[La([{provide:vD,useExisting:t}]),Ca],ngContentSelectors:sD,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(Wo(nD),Oo(0,"div",0),Oo(1,"div",1,2),Vo("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),xo(3,WE,9,0,"ng-container",3),xo(4,GE,2,0,"div",4),Oo(5,"div",5,6),Go(7),Oo(8,"span",7),xo(9,XE,5,16,"label",8),Po(),Po(),xo(10,QE,2,0,"div",9),Po(),xo(11,JE,3,4,"div",10),Oo(12,"div",11),xo(13,tD,2,1,"div",12),xo(14,iD,5,2,"div",13),Po(),Po()),2&t&&(_s(3),Ao("ngIf","outline"==e.appearance),_s(1),Ao("ngIf",e._prefixChildren.length),_s(5),Ao("ngIf",e._hasFloatingLabel()),_s(1),Ao("ngIf",e._suffixChildren.length),_s(1),Ao("ngIf","outline"!=e.appearance),_s(1),Ao("ngSwitch",e._getDisplayedMessages()),_s(1),Ao("ngSwitchCase","error"),_s(1),Ao("ngSwitchCase","hint"))}
1,directives:[cu,pu,mu,LS],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px
1)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[aD.transitionMessages]},changeDetection:0}),t})(),CD=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,VS]]}),t})();const SD=MS({passive:!0});let xD=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return nd;const e=ES(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new A,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,SD),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,SD)}}),n.asObservable()}stopMonitoring(t){const e=ES(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}
1ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(se(AS),se(Tc))},t.\u0275prov=vt({factory:function(){return new t(se(AS),se(Tc))},token:t,providedIn:"root"}),t})(),kD=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[TS]]}),t})();const ID=new Yt("MAT_INPUT_VALUE_ACCESSOR"),ED=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let DD=0;class AD{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const TD=XI(AD);let OD=(()=>{class t extends TD{constructor(t,e,i,n,s,r,o,a,l){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._uid=`mat-input-${DD++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new A,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>PS().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=SS(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=SS(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&PS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=SS(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(ED.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(AS),Io(_d,10),Io(fp,8),Io(Ap,8),Io(dE),Io(ID,10),Io(xD),Io(Tc))},t.\u0275dir=Ae({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&V
1o("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(ya("disabled",e.disabled)("required",e.required),Co("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),sa("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[La([{provide:lD,useExisting:t}]),Ca,Da]}),t})(),PD=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[dE],imports:[[kD,CD],kD,CD]}),t})();function ND(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Customer ID is "),Oo(2,"strong"),fa(3,"required"),Po(),Po())}function RD(t,e){1&t&&No(0,"i",18)}function MD(t,e){1&t&&No(0,"i",19)}function FD(t,e){1&t&&No(0,"i",20)}function BD(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Enter Emailed One-Time Password "),Po())}function LD(t,e){if(1&t&&(Oo(0,"mat-form-field",21),No(1,"input",22),xo(2,BD,2,0,"mat-error",10),Po()),2&t){const t=Ho();_s(2),Ao("ngIf",!t.forgotPassword.controls.EmailOTP.valid&&t.submitted2)}}function VD(t,e){if(1&t){const t=Fo();Oo(0,"button",23),Vo("click",(function(){ri(t);const e=Ho();return e.checkEmail(e.forgotPassword.controls.Email.value)})),fa(1,"Continue"),Po()}}function jD(t,e){if(1&t){const t=Fo();Oo(0,"button",24),Vo("click",(function(){ri(t);const e=Ho();return e.OTPValidate(e.forgotPassword.controls.EmailOTP.value)})),fa(1,"Verify One-Time Password"),Po()}}let zD=(()=>{class t{constructor(t,e,i,n){this._router=t,this._formBuilder=e,this._resetFormService=i,this._notificationService=n,this.submitted1=!1,this.submitted2=!1,this.otpdata={},this.setForm()}ngOnInit(){}OTPValidate(t){console.log("validate"),console.log(t.value),console.log(this.forgotPassword.controls.Email.value,this.forgotPassword.controls.EmailOTP.value),this.otpdata.Email=this.forgotPassword.controls.Email.value,this.otpdata.OTP=this.forgotPassword.controls.EmailOTP.value,console.log(this.otpdata),this._resetFormService.OTPValidate(this.otpdata)}checkEmail(t){this.submitted1=!0,this.forgotPassword.controls.Email.valid&&this._resetFormService.submitEmail(t)}sendResetEmail(t){console.log(t),this.submitted2=!0,this.forgotPassword.valid&&(this.submitted2=!1,this._resetFormService.submitAnswer(t).subscribe(t=>{if(t){console.log("if sucess"),this._notificationService.showNotification({message:t.msg,type:"success"}),this._resetFormService.forgottenPasswordFormUpdate(!1),this.forgotPassword.reset(),this._resetFormService.otpvalidsuccess=!1,this._resetFormService.otpvalid=!1,this._resetFormService.emailhide=!1;let e="/login";this._router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this._router.navigate([e])})}else{console.log("else"),this._notificationService.showNotification({message:t.msg,type:"error"}),this.forgotPassword.controls.Answer.reset(),this._resetFormService.otpvalidsuccess=!1,this._resetFormService.otpvalid=!1,this._resetFormService.emailhide=!1;let e="/login";this._router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this._router.navigate([e])})}},t=>{console.log(t),this._notificationService.showNotification({message:"Server Error",type:"error"}),this._router.navigate(["/login"])}))}setForm(){this.forgotPassword=this._formBuilder.group({Email:["",kd.required],EmailOTP:["",kd.required]})}}return t.\u0275fac=function(e){return new(e||t)(Io(t_),Io(Lp),Io(wS),Io(vS))},t.\u0275cmp=Se({type:t,selectors:[["forgot-password"]],decls:21,vars:8,consts:[[1,"card-header","new-logo","text-white"],[1,"cbob-new-logo-container"],["src","./assets/img/CBOB-Official-Logo-SM.jpg",1,"cbob-new-logo"],[1,"small"],[1,"card-body"],[2,"font-size","0.9970rem"],["color","#627076"],["name","forgotPassword","autocomplete","off",2,"border","transparent",3,"formGroup","ngSubmit"],[1,"w-100","mb-1"],["matInput","","formControlName","Email","id","Email","id","email","type","text","placeholder","Enter Your User ID"],[4,"ngIf"],["class","fa fa-cog fa-spin text-warning field-bottom-right animated fadeIn","aria-hidden","true",4,"ngIf"],["class","fa fa-check text-success field-bottom-right animated fadeIn","aria-hidden","true",4,"ngIf"],["class","fa fa-times text-danger field-bottom-right animated fadeIn","aria-hidden","true",4,"ngIf"],["class","w-100",4,"ngIf"],["mat-flat-button","","color","primary","value","Continue","type","button","class","w-100 loginbtn mb-2",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","value","otp","type","button","class","w-100 loginbtn mb-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","type","button","value","Cancel",1,"width-100",3,"click"],["aria-hidden","true",1,"fa","fa-cog","fa-spin","text-warning","field-bottom-right","animated","fadeIn"],["aria-hidden","true",1,"fa","fa-check","text-success","field-bottom-right","animated","fadeIn"],["aria-hidden","true",1,"fa","fa-times","text-danger","field-bottom-right","animated","fadeIn"],[1,"w-100"],["matInput","","formControlName","EmailOTP","id","EmailOTP","type","password","placeholder","Enter Emailed One-Time Password"],["mat-flat-button","","color","primary","value","Continue","type","button",1,"w-100","loginbtn","mb
1-2",3,"click"],["mat-flat-button","","color","primary","value","otp","type","button",1,"w-100","loginbtn","mb-2",3,"click"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),No(2,"img",2),Oo(3,"h4",3),fa(4,"Bond Application Login"),Po(),Po(),Po(),Oo(5,"div",4),Oo(6,"h5",5),Oo(7,"font",6),fa(8,"Reset Password"),Po(),Po(),Oo(9,"form",7),Vo("ngSubmit",(function(){return e.sendResetEmail(e.forgotPassword.value)})),Oo(10,"mat-form-field",8),No(11,"input",9),xo(12,ND,4,0,"mat-error",10),xo(13,RD,1,0,"i",11),xo(14,MD,1,0,"i",12),xo(15,FD,1,0,"i",13),Po(),xo(16,LD,3,1,"mat-form-field",14),xo(17,VD,2,0,"button",15),xo(18,jD,2,0,"button",16),Oo(19,"button",17),Vo("click",(function(t){return e._resetFormService.forgottenPasswordFormUpdate(!1,t)})),fa(20,"Cancel"),Po(),Po(),Po()),2&t&&(_s(9),Ao("formGroup",e.forgotPassword),_s(3),Ao("ngIf",e.forgotPassword.controls.Email.hasError("required")),_s(1),Ao("ngIf",e._resetFormService.emailPending),_s(1),Ao("ngIf",e._resetFormService.validEmail&&e.forgotPassword.controls.Email.valid&&!e._resetFormService.emailPending),_s(1),Ao("ngIf",!e._resetFormService.validEmail&&e.submitted1&&!e._resetFormService.emailPending),_s(1),Ao("ngIf",e._resetFormService.emailhide),_s(1),Ao("ngIf",!e._resetFormService.validEmail),_s(1),Ao("ngIf",e._resetFormService.otpvalid))},directives:[xp,vd,Ap,wD,OD,dd,yd,Fp,cu,jE,oD],styles:[".field-bottom-right[_ngcontent-%COMP%] {\n position: absolute;\n bottom: -13px;\n right: -15px;\n z-index: 99;\n color:blue;\n }"]}),t})();function UD(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Please Enter NIB Number "),Po())}function $D(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Please Enter Password "),Po())}const HD=function(){return["/enroll"]};function qD(t,e){if(1&t){const t=Fo();Oo(0,"div"),Oo(1,"div",4),Oo(2,"div",5),No(3,"img",6),Oo(4,"h2",7),fa(5,"Welcome to the Bond Portal"),Po(),Po(),Po(),No(6,"br"),Oo(7,"button",8),fa(8,"Click here for New User Sign Up"),Po(),No(9,"br"),No(10,"br"),Oo(11,"button",9),fa(12,"Returning Users Login"),Po(),No(13,"br"),Oo(14,"div",10),Oo(15,"form",11),Vo("ngSubmit",(function(){ri(t);const e=Ho();return e.login(e.loginUser.value)})),Oo(16,"mat-form-field",12),Oo(17,"mat-label"),fa(18,"Enter NIB Number "),Po(),No(19,"input",13),xo(20,UD,2,0,"mat-error",2),Po(),Oo(21,"mat-form-field",12),Oo(22,"mat-label"),fa(23,"Enter Password"),Po(),No(24,"input",14),xo(25,$D,2,0,"mat-error",2),Po(),Oo(26,"button",15),fa(27,"Save/Login"),Po(),Oo(28,"button",16),Vo("click",(function(e){return ri(t),Ho()._resetFormService.forgottenPasswordFormUpdate(!0,e)})),fa(29,"Forgot Password? Click here "),Po(),Po(),Po(),Po()}if(2&t){const t=Ho();_s(7),Ao("routerLink",Nl(4,HD)),_s(8),Ao("formGroup",t.loginUser),_s(5),Ao("ngIf",t.loginUser.controls.NIBNumber.invalid),_s(5),Ao("ngIf",t.loginUser.controls.Password.invalid)}}function WD(t,e){1&t&&(Oo(0,"div",17),No(1,"forgot-password"),Po())}let GD=(()=>{class t{constructor(t,e,i,n,s){this._formBuilder=t,this._router=e,this._authService=i,this._notificationService=n,this._resetFormService=s,this.submitted=!1}ngOnInit(){this.setForm()}login(t){this.submitted=!0,t.Password=btoa(t.Password),this.loginUser.valid?this._authService.login(t).subscribe(t=>{t.result?(this._authService.loggedIn=!0,sessionStorage.setItem("NIBNumber",t.nibnumber),this._authService.NIBNumber=sessionStorage.getItem("NIBNumber"),sessionStorage.setItem("token",t.access_token),this._authService.token=sessionStorage.getItem("token"),sessionStorage.setItem("LoginType",t.logintype),this._authService.LoginType=sessionStorage.getItem("LoginType"),this.submitted=!1,1==t.requirePasswordChange?(this._notificationService.showNotification({type:"warning",message:"Please reset your password"}),this._router.navigate(["/profile"])):(this._notificationService.showNotification({type:"success",message:t.msg}),this._router.navigate(["/dashboard"]))):(this._notificationService.showNotification({type:"error",message:t.msg}),this._router.navigate(["/"]),this.loginUser.controls.NIBNumber.setValue(""),this.loginUser.controls.Password.setValue(""))},t=>{}):this._notificationService.showNotification({type:"error",message:"Please fill all the details."})}setForm(){this.loginUser=this._formBuilder.group({NIBNumber:["",kd.required],Password:["",kd.required]})}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(bS),Io(vS),Io(wS))},t.\u0275cmp=Se({type:t,selectors:[["app-login"]],features:[La([wS])],decls:4,vars:2,consts:[[2,"height","100vh","background-color","rgb(185, 190, 200)","display","flex","justify-content","center","align-items","center"],[1,"card","form-signin"],[4,"ngIf"],["class","animated fadeIn",4,"ngIf"],[1,"card-header","new-logo","text-black"],[1,"cbob-new-logo-container","text-center"],["src","./assets/img/CBOB-Official-Logo-SM.jpg",1,"cbob-new-logo"],[1,"small"],["mat-flat-button","","color","accent",1,"w-100",3,"routerLink"],["mat-flat-button","","color","accent",1,"w-100"],[1,"card-body"],["name","loginUser",2,"border","transparent",3,"formGroup","ngSubmit"],[1,"w-100"],["matInput","","name","NIBNumber","type","number","formControlName","NIBNumber","onKeyPress","if(this.value.length==8) return false;","autocomplete","off",1,"example-right-align"],["matInput","","name","Password","type","password","formControlName","Password","placeholder","Enter Password"],["mat-flat-button","","type","submit","color","primary",1,"w-100","loginbtn","mb
1-2"],["mat-flat-button","","color","warn","type","button",1,"w-100","mb-2",3,"click"],[1,"animated","fadeIn"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),xo(2,qD,30,5,"div",2),xo(3,WD,2,0,"div",3),Po(),Po()),2&t&&(_s(2),Ao("ngIf",!e._resetFormService.forgotPasswordShow),_s(1),Ao("ngIf",e._resetFormService.forgotPasswordShow))},directives:[cu,jE,e_,xp,vd,Ap,wD,dD,OD,Pd,dd,yd,Fp,oD,zD],styles:[".example-right-align[_ngcontent-%COMP%]{text-align:left}input.example-right-align[_ngcontent-%COMP%]::-webkit-inner-spin-button, input.example-right-align[_ngcontent-%COMP%]::-webkit-outer-spin-button{display:none}"]}),t})();const YD=function(t){let e=t.value||"";return e?!1===/[A-Z]+/g.test(e)||!1===/[a-z]+/g.test(e)||!1===/[0-9]+/g.test(e)||!1===/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e)?{passwordStrength:"Password must contain at least two of the following: numbers, lowercase letters, uppercase letters, or special characters."}:void 0:null};class KD{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new A,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let ZD=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),XD=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 S(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe($v(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Up()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Qp(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>db(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)(se(Tc),se(AS),se(lh,8))},t.\u0275prov=vt({factory:function(){return new t(se(Tc),se(AS),se(lh,8))},token:t,providedIn:"root"}),t})(),QD=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?tt(db(e,"resize"),db(e,"orientationchange")):Up(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();
1return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe($v(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)(se(AS),se(Tc),se(lh,8))},t.\u0275prov=vt({factory:function(){return new t(se(AS),se(Tc),se(lh,8))},token:t,providedIn:"root"}),t})(),JD=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[px,TS],px]}),t})();function tA(){throw Error("Host already has a portal attached")}class eA{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&tA(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class iA extends eA{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class nA extends eA{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 sA extends eA{constructor(t){super(),this.element=t instanceof Ua?t.nativeElement:t}}class rA{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&tA(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof iA?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof nA?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof sA?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class oA extends rA{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);
1return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let aA=(()=>{class t extends rA{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new jl,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Io(za),Io(ml),Io(lh))},t.\u0275dir=Ae({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ca]}),t})(),lA=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})();class cA{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=IS(-this._previousScrollPosition.left),t.style.top=IS(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function hA(){return Error("Scroll strategy has already been attached.")}class uA{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw hA();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 dA{enable(){}disable(){}attach(){}}function pA(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function mA(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class fA{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler
1=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw hA();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:i}=this._viewportRuler.getViewportSize();pA(t,[{width:e,height:i,bottom:i,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 gA=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new dA,this.close=t=>new uA(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new cA(this._viewportRuler,this._document),this.reposition=t=>new fA(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(se(XD),se(QD),se(Tc),se(lh))},t.\u0275prov=vt({factory:function(){return new t(se(XD),se(QD),se(Tc),se(lh))},token:t,providedIn:"root"}),t})();class _A{constructor(t){if(this.scrollStrategy=new dA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class bA{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class yA{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function vA(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function wA(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let CA=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(se(lh))},t.\u0275prov=vt({factory:function(){return new t(se(lh))},token:t,providedIn:"root"}),t})();const SA=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let xA=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||SA){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),SA?e.setAttribute("platform","test"):t||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(se(lh),se(AS))},t.\u0275prov=vt({factory:function(){return new t(se(lh),se(AS))},token:t,providedIn:"root"}),t})();class kA{constructor(t,e,i,n,s,r,o,a){this._portalOutlet=t,this._host=e,this._pane=i,this._config=n,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=p.EMPTY,this._backdropClickHandler=t=>
1this._backdropClick.next(t),this._keydownEventsObservable=new S(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new A,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=IS(this._config.width),t.height=IS(this._config.height),t.minWidth=IS(this._config.minWidth),t.minHeight=IS(this._config.minHeight),t.maxWidth=IS(this._config.maxWidth),t.maxHeight=IS(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;kS(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(gC(tt(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 IA=/([A-Za-z%]+)$/;
1class EA{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,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 A,this._resizeSubscription=p.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(n.length){let t=null,e=-1;for(const i of n){const n=i.boundingBoxRect.width*i.boundingBoxRect.height*(i.position.weight||1);n>e&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&DA(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:r}=t,o=this._getOffset(n,"x"),a=this._getOffset(n,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.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,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=AA(this._overlayRef.getConfig().minHeight),o=AA(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),r=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),a=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?a||-s:t.x<this._viewportMargin?n.left-i.left-t.x:0,c=e.height<=n.height?o||-r:t.y<this._viewportMargin?n.top-i.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(),i=new yA(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,n=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${n}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,n=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=i.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=i.height-t.y+2*this._viewportMargin,s=i.height-o+this._viewportMargin;else{const e=Math.min(i.bottom-t.y+i.top,t.y),n=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>n&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=IS(i.height),n.top=IS(i.top),n.bottom=IS(i.bottom),n.width=IS(i.width),n.left=IS(i.left),n.right=IS(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=IS(t)),s&&(n.maxWidth=IS(s))}this._lastBoundingBoxSize=i,DA(this._boundingBox.style,n)}_resetBoundingBoxStyles(){DA(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){DA(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();DA(i,this._getExactOverlayY(e,t,n)),DA(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=IS(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=IS(r.maxWidth):s&&(i.maxWidth="")),DA(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=IS(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}
1px`:s.left=IS(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mA(t,i),isOriginOutsideView:pA(t,i),isOverlayClipped:mA(e,i),isOverlayOutsideView:pA(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{wA("originX",t.originX),vA("originY",t.originY),wA("overlayX",t.overlayX),vA("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&kS(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 Ua)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function DA(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function AA(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(IA);return i&&"px"!==i?null:parseFloat(e)}return t||null}class TA{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new EA(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new bA(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class OA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}
1apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||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,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let PA=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new OA}connectedTo(t,e,i){return new TA(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new EA(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(se(QD),se(lh),se(AS),se(xA))},t.\u0275prov=vt({factory:function(){return new t(se(QD),se(lh),se(AS),se(xA))},token:t,providedIn:"root"}),t})(),NA=0,RA=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new _A(t);return s.direction=s.direction||this._directionality.value,new kA(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${NA++}`,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(Zc)),new oA(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(se(gA),se(xA),se(za),se(PA),se(CA),se(ao),se(Tc),se(lh),se(dx),se(Sh,8))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const MA=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],FA=new Yt("cdk-connected-overlay-scroll-strategy");let BA=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),LA=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=p.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new jl,this.positionChange=new jl,this.attach=new jl,this.detach=new jl,this.overlayKeydown=new jl,this._templatePortal=new nA(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=SS(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=SS(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=SS(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=SS(t)}get push(){return this._push}set push(t){this._push=SS(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=MA),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||CS(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new _A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Io(RA),Io(dl),Io(ml),Io(FA),Io(dx,8))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[Da]}),t})();const VA={provide:FA,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let jA=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[RA,VA],imports:[[px,lA,JD],JD]}),t})();function zA(t,e){}class UA{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const $A={dialogContainer:gx("dialogContainer",[wx("void, exit",vx({opacity:0,transform:"scale(0.7)"})),wx("enter",vx({transform:"none"})),Sx("* => enter",_x("150ms cubic-bezier(0, 0, 0.2, 1)",vx({transform:"none",opacity:1}))),Sx("* => void, * => exit",_x("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",vx({opacity:0}
1)))])};function HA(){throw Error("Attempting to attach dialog content after content is already attached")}let qA=(()=>{class t extends rA{constructor(t,e,i,n,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new jl,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&HA(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&HA(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&HA(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(QS),Io(qr),Io(lh,8),Io(UA))},t.\u0275cmp=Se({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&Ql(aA,!0),2&t&&Xl(i=sc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&jo("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(Co("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),va("@dialogContainer",e._state))},features:[Ca],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&xo(0,zA,0,0,"ng-template",0)},directives:[aA],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[$A.dialogContainer]}}),t})(),WA=0;class GA{constructor(t,e,i=`mat-dialog-${WA++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,e._id=i,e._animationStateChanged.pipe(Qp(t=>
1"done"===t.phaseName&&"enter"===t.toState),bm(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Qp(t=>"done"===t.phaseName&&"exit"===t.toState),bm(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Qp(t=>27===t.keyCode&&!this.disableClose&&!CS(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Qp(t=>"start"===t.phaseName),bm(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const YA=new Yt("MatDialogData"),KA=new Yt("mat-dialog-default-options"),ZA=new Yt("mat-dialog-scroll-strategy"),XA={provide:ZA,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.block()}};let QA=(()=>{class t{constructor(t,e,i,n,s,r,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=Zp(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Am(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new UA)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new _A({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=ao.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:UA,useValue:e}]}),n=new iA(qA,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}
1_attachDialogContent(t,e,i,n){const s=new GA(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{s.disableClose||s.close()}),t instanceof dl)e.attachTemplatePortal(new nA(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new iA(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:qA,useValue:i},{provide:YA,useValue:t.data},{provide:GA,useValue:e}];return!t.direction||n&&n.get(dx,null)||s.push({provide:dx,useValue:{value:t.direction,change:Up()}}),ao.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(se(RA),se(ao),se(Sh,8),se(KA,8),se(ZA),se(t,12),se(xA))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),JA=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[QA,XA],imports:[[jA,lA,WI],WI]}),t})(),tT=(()=>{class t{constructor(t){this.dialogRef=t,this.comments=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Io(GA))},t.\u0275cmp=Se({type:t,selectors:[["app-popupdisplay"]],decls:8,vars:1,consts:[["md-dialog-content",""],["md-dialog-actions",""],["mat-flat-button","",1,"custom-modal",3,"click"]],template:function(t,e){1&t&&(Oo(0,"div",0),fa(1),Po(),No(2,"br"),No(3,"br"),No(4,"br"),Oo(5,"div",1),Oo(6,"button",2),Vo("click",(function(){return e.dialogRef.close(!0)})),fa(7,"OK"),Po(),Po()),2&t&&(_s(1),_a("\n",e.confirmMessage,"\n"))},styles:[".custom-modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0!important;background-color:#eed202}.modal-dialog[_ngcontent-%COMP%]{margin:0}.jw-modal-open[_ngcontent-%COMP%]{overflow:hidden;background-position:0 0}.fixedalret[_ngcontent-%COMP%]{z-index:auto;width:100%;height:100%}.vertical-center[_ngcontent-%COMP%]{margin:0;position:fixed;top:50%;left:50%;transform:translateY(-50%)}"]}),t})(),eT=(()=>{let t=class{constructor(t,e){this.dialog=t,this._router=e,this.subject=new A}confirm(t,e,i){console.log("on confirm"),this.setConfirmation(t,e,i)}setConfirmation(t,e,i){let n=this;console.log("set confirm"),this.subject.next({type:"confirm",text:t,siFn:function(){n.subject.next(),e()},noFn:function(){n.subject.next(),i()}})}getMessage(){return this.subject.asObservable()}openConfirmationDialo11(t,e){this.dialogRef=this.dialog.open(tT,{data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{t&&(e&&console.log("test"),this._router.navigate(["/enroll"]).then(()=>{window.location.reload()})),this.dialogRef=null})}openConfirmationDialoDivisable(t,e){this.dialogRef=this.dialog.open(tT,{height:"140px",width:"600px",data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{t&&e&&console.log("test"),this.dialogRef=null})}openConfirmationDialog(t,e){console.log(t),this.dialogRef=this.dialog.open(tT,{data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{t&&(console.log(t),e&&console.log("test")),this.dialogRef=null})}openConfirmationDialog1(t,e){console.log(t),this.dialogRef=this.dialog.open(tT,{height:"140px",width:"400px",data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{t&&(console.log(t),e&&console.log("test"),this._router.navigate([""])),this.dialogRef=null})}openConfirmationDialogShot(t,e){this.dialogRef=this.dialog.open(tT,{height:"180px",width:"1000px",data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{t&&e&&this._router.navigate(["/dashboard/enterexcesscurrency"]),this.dialogRef=null})}openConfirmationDialogSave(t,e){this.dialogRef=this.dialog.open(tT,{height:"400px",
1width:"400px",data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{this.dialogRef=null})}openConfirmationDialogLong(t,e){this.dialogRef=this.dialog.open(tT,{height:"160px",width:"900px",data:{},disableClose:!1}),this.dialogRef.componentInstance.confirmMessage=t,this.dialogRef.afterClosed().subscribe(t=>{this.dialogRef=null})}};return t.\u0275fac=function(e){return new(e||t)(se(QA),se(t_))},t.\u0275prov=vt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const iT=["*"];function nT(t){return Error(`Unable to find icon with the name "${t}"`)}function sT(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function rT(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class oT{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let aT=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,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=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new oT(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(Qn.HTML,i);if(!s)throw rT(i);const r=this._createSvgElementForSingleIcon(s,n);return this._addSvgIconConfig(t,e,new oT(r,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new oT(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(Qn.HTML,e);if(!n)throw rT(e);const s=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new oT(s,i))}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(Qn.RESOURCE_URL,t);if(!e)throw sT(t);const i=this._cachedIconsByUrl.get(e);return i?Up(lT(i)):this._loadSvgIconFromConfig(new oT(t)).pipe(om(t=>this._cachedIconsByUrl.set(e,t)),H(t=>lT(t)))}getNamedSvgIcon(t,e=""){const i=cT(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Eb(nT(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Up(lT(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(om(e=>t.svgElement=e),H(t=>lT(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Up(i):rd(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(fm(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(Qn.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Up(null)})))).pipe(H(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw nT(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(H(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Up(t.svgElement):this._fetchUrl(t.url).pipe(H(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),i=t.attributes;for(let n=0;n<i.length;n++){const{name:t,value:s}=i[n];"id"!==t&&e.setAttribute(t,s)}for(let n=0;n<t.childNodes.length;n++)t.childNodes[n].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[n].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchUrl(t){if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error(`Cannot fetch icon from URL "${t}".`);const e=this._sanitizer.sanitize(Qn.RESOURCE_URL,t);if(!e)throw sT(t);const i=this._inProgressUrlFetches.get(e);if(i)return i;const n=this._httpClient.get(e,{responseType:"text"}).pipe(Mm(()=>this._inProgressUrlFetches.delete(e)),ht());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(cT(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(se(H_,8),se(Qu),se(lh,8),se(bn,8))},t.\u0275prov=vt({factory:function(){return new t(se(H_,8),se(Qu),se(lh,8),se(bn,8))},token:t,providedIn:"root"}),t})();function lT(t){return t.cloneNode(!0)}function cT(t,e){return t+":"+e}class hT{constructor(t){this._elementRef=t}}const uT=YI(hT),dT=new Yt("mat-icon-location",{providedIn:"root",factory:function(){const t=re(lh),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),pT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],mT=pT.map(t=>`[${t}]`).join(", "),fT=/^url\(['"]?#(.*?)['"]?\)$/;let gT=(()=>{class t extends uT{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=SS(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;
1if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(bm(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";if(this._location){const e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e)}this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const i=t.childNodes[e];1===i.nodeType&&"svg"!==i.nodeName.toLowerCase()||t.removeChild(i)}}_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}
1_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,i)=>{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(mT),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n<e.length;n++)pT.forEach(t=>{const s=e[n],r=s.getAttribute(t),o=r?r.match(fT):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(aT),Eo("aria-hidden"),Io(dT,8),Io(bn,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&sa("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:[Ca,Da],ngContentSelectors:iT,decls:1,vars:0,template:function(t,e){1&t&&(Wo(),Go(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})(),_T=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI],WI]}),t})();const bT=new Set;let yT,vT=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):wT}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!bT.has(t))try{yT||(yT=document.createElement("style"),yT.setAttribute("type","text/css"),document.head.appendChild(yT)),yT.sheet&&(yT.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),bT.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(se(AS))},t.\u0275prov=vt({factory:function(){return new t(se(AS))},token:t,providedIn:"root"}),t})();function wT(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let CT=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new A}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ST(kS(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Gp(ST(kS(t)).map(t=>this._registerQuery(t).observable));return e=Dm(e.pipe(bm(1)),e.pipe(Ww(1),qy(0))),e.pipe(H(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new S(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Am(e),H(e=>({query:t,matches:e.matches})),gC(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(se(vT),se(Tc))},t.\u0275prov=vt({factory:function(){return new t(se(vT),se(Tc))},token:t,providedIn:"root"}),t})();function ST(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const xT={tooltipState:gx("state",[wx("initial, void, hidden",vx({opacity:0,transform:"scale(0)"})),wx("visible",vx({transform:"scale(1)"})),Sx("* => visible",_x("200ms cubic-bezier(0, 0, 0.2, 1)",Cx([vx({opacity:0,transform:"scale(0)",offset:0}),vx({opacity:.5,transform:"scale(0.99)",offset:.5}),vx({opacity:1,transform:"scale(1)",offset:1})]))),Sx("* => hidden",_x("100ms cubic-bezier(0, 0, 0.2, 1)",vx({opacity:0}
1)))])},kT=MS({passive:!0});function IT(t){return Error(`Tooltip position "${t}" is invalid.`)}const ET=new Yt("mat-tooltip-scroll-strategy"),DT={provide:ET,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},AT=new Yt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let TT=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,h,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new A,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!CS(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)),a.monitor(e).pipe(gC(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.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=SS(t),this._disabled&&this.hide(0)}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._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)}ngOnInit(){this._setupPointerEvents()}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,i)=>{t.removeEventListener(i,e,kT)}),this._passiveListeners.clear(),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 iA(OT,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(gC(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(gC(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(gC(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(),i=this._getOverlayPosition();
1t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw IT(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw IT(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(bm(1),gC(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}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,kT)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(Io(RA),Io(Ua),Io(XD),Io(ml),Io(Tc),Io(AS),Io(HS),Io(ox),Io(ET),Io(dx,8),Io(AT,8),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["","matTooltip",""]],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})(),OT=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A,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.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;
1"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)(Io(qr),Io(CT))},t.\u0275cmp=Se({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Vo("click",(function(){return e._handleBodyInteraction()}),!1,Ki),2&t&&na("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;1&t&&(Oo(0,"div",0),Vo("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Fl(1,"async"),fa(2),Po()),2&t&&(sa("mat-tooltip-handset",null==(i=function(t,e,i){const n=ni(),s=Ye(n,1);return Vl(n,Ll(n,1)?Ml(n,di(),5,s.transform,i,s):s.transform(i))}(0,0,e._isHandset))?null:i.matches),Ao("ngClass",e.tooltipClass)("@state",e._visibility),_s(2),ga(e.message))},directives:[ru],pipes:[wu],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:[xT.tooltipState]},changeDetection:0}),t})(),PT=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[DT],imports:[[hx,xu,jA,WI],WI]}),t})();const NT=["mat-calendar-body",""];function RT(t,e){if(1&t&&(Oo(0,"tr",2),Oo(1,"td",3),fa(2),Po(),Po()),2&t){const t=Ho();_s(1),na("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Co("colspan",t.numCols),_s(1),_a(" ",t.label," ")}}function MT(t,e){if(1&t&&(Oo(0,"td",7),fa(1),Po()),2&t){const t=Ho(2);na("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Co("colspan",t._firstRowOffset),_s(1),_a(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function FT(t,e){if(1&t){const t=Fo();Oo(0,"td",8),Vo("click",(function(){ri(t);const i=e.$implicit;return Ho(2)._cellClicked(i)})),Oo(1,"div",9),fa(2),Po(),Po()}if(2&t){const t=e.$implicit,i=e.index,n=Ho().index,s=Ho();na("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),sa("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i)),Ao("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),Co("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s.selectedValue===t.value),_s(1),sa("mat-calendar-body-selected",s.selectedValue===t.value)("mat-calendar-body-today",s.todayValue===t.value),_s(1),_a(" ",t.displayValue," ")}}function BT(t,e){if(1&t&&(Oo(0,"tr",4),xo(1,MT,2,6,"td",5),xo(2,FT,3,20,"td",6),Po()),2&t){const t=e.$implicit,i=e.index,n=Ho();_s(1),Ao("ngIf",0===i&&n._firstRowOffset),_s(1),Ao("ngForOf",t)}}function LT(t,e){if(1&t&&(Oo(0,"th",5),fa(1),Po()),2&t){const t=e.$implicit;Co("aria-label",t.long),_s(1),ga(t.narrow)}}const VT=["*"];function jT(t,e){}function zT(t,e){if(1&t){const t=Fo();Oo(0,"mat-month-view",5),Vo("activeDateChange",(function(e){return ri(t),Ho().activeDate=e}))("selectedChange",(function(e){return ri(t),Ho()._dateSelected(e)}))("_userSelection",(function(){return ri(t),Ho()._userSelected()})),Po()}if(2&t){const t=Ho();Ao("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function UT(t,e){if(1&t){const t=Fo();Oo(0,"mat-year-view",6),Vo("activeDateChange",(function(e){return ri(t),Ho().activeDate=e}))("monthSelected",(function(e){return ri(t),Ho()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return ri(t),Ho()._goToDateInView(e,"month")})),Po()}if(2&t){const t=Ho();Ao("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function $T(t,e){if(1&t){const t=Fo();Oo(0,"mat-multi-year-view",7),Vo("activeDateChange",(function(e){return ri(t),Ho().activeDate=e}))("yearSelected",(function(e){return ri(t),Ho()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return ri(t),Ho()._goToDateInView(e,"year")})),Po()}if(2&t){const t=Ho();Ao("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}const HT=["button"];function qT(t,e){1&t&&(Di(),Oo(0,"svg",3),No(1,"path",4),Po())}const WT=[[["","matDatepickerToggleIcon",""]]],GT=["[matDatepickerToggleIcon]"];function YT(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let KT=(()=>{class t{constructor(){this.changes=new A,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20
1years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class ZT{constructor(t,e,i,n,s={}){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s}}let XT=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new jl}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/n}%`),!e&&this._cellWidth||(this._cellWidth=`${100/n}%`)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(Tc))},t.\u0275cmp=Se({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[Da],attrs:NT,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator","role","button",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell","role","button",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(xo(0,RT,3,6,"tr",0),xo(1,BT,3,2,"tr",1)),2&t&&(Ao("ngIf",e._firstRowOffset<e.labelMinRequiredCells),_s(1),Ao("ngForOf",e.rows))},directives:[cu,au,ru],styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n"],encapsulation:2,changeDetection:0}),t})(),QT=(()=>{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.EMPTY,this.selectedChange=new jl,this._userSelection=new jl,this.activeDateChange=new jl,!this._dateAdapter)throw YT("DateAdapter");if(!this._dateFormats)throw YT("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}
1get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Am(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.createDate(e,i,t);this.selectedChange.emit(n)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i<t;i++,n++){7==n&&(this._weeks.push([]),n=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),s=this._shouldEnableDate(t),r=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(t):void 0;this._weeks[this._weeks.length-1].push(new ZT(i+1,e[i],r,s,o))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(Io(qr),Io(eE,8),Io(tE,8),Io(dx,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;1&t&&Jl(XT,!0),2&t&&Xl(i=sc())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Oo(0,"table",0),Oo(1,"thead",1),Oo(2,"tr"),xo(3,LT,2,2,"th",2),Po(),Oo(4,"tr"),No(5,"th",3),Po(),Po(),Oo(6,"tbody",4),Vo("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),Po(),Po()),2&t&&(_s(3),Ao("ngForOf",e._weekdays),_s(3),Ao("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[au,XT],encapsulation:2,changeDetection:0}),t})(),JT=(()=>{class t{constructor(t,e,i){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=p.EMPTY,this.selectedChange=new jl,this.yearSelected=new jl,this.activeDateChange=new jl,!this._dateAdapter)throw YT("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),tO(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}
1get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Am(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-eO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-eO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-eO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return eO(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new ZT(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(Io(qr),Io(tE,8),Io(dx,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(t,e){var i;1&t&&Jl(XT,!0),2&t&&Xl(i=sc())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:6,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","selectedValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(Oo(0,"table",0),Oo(1,"thead",1),Oo(2,"tr"),No(3,"th",2),Po(),Po(),Oo(4,"tbody",3),Vo("selectedValueChange",(function(t){return e._yearSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),Po(),Po()),2&t&&(_s(4),Ao("rows",e._years)("todayValue",e._todayYear)("selectedValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[XT],encapsulation:2,changeDetection:0}),t})();function tO(t,e,i,n,s){const r=t.getYear(e),o=t.getYear(i),a=iO(t,n,s);return Math.floor((r-a)/24)===Math.floor((o-a)/24)}function eO(t,e,i,n){return((t.getYear(e)-iO(t,i,n))%24+24)%24}function iO(t,e,i){let n=0;return i?n=t.getYear(i)-24+1:e&&(n=t.getYear(e)),n}let nO=(()=>{class t{constructor(t,e,i,n){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.EMPTY,this.selectedChange=new jl,this.monthSelected=new jl,this.activeDateChange=new jl,!this._dateAdapter)throw YT("DateAdapter");if(!this._dateFormats)throw YT("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}
1get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Am(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const i=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let i=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new ZT(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t<i||t===i&&e<n}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(Io(qr),Io(eE,8),Io(tE,8),Io(dx,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-year-view"]],viewQuery:function(t,e){var i;1&t&&Jl(XT,!0),2&t&&Xl(i=sc())&&(e._matCalendarBody=i.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:8,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(Oo(0,"table",0),Oo(1,"thead",1),Oo(2,"tr"),No(3,"th",2),Po(),Po(),Oo(4,"tbody",3),Vo("selectedValueChange",(function(t){return e._monthSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),Po(),Po()),2&t&&(_s(4),Ao("label",e._yearLabel)("rows",e._months)("todayValue",e._todayMonth)("selectedValue",e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._dateAdapter.getMonth(e.activeDate)))},directives:[XT],encapsulation:2,changeDetection:0}),t})(),sO=(()=>{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-eO(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1
1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):tO(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(Io(KT),Io(Nt(()=>rO)),Io(tE,8),Io(eE,8),Io(qr))},t.\u0275cmp=Se({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:VT,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(Wo(),Oo(0,"div",0),Oo(1,"div",1),Oo(2,"button",2),Vo("click",(function(){return e.currentPeriodClicked()})),fa(3),No(4,"div",3),Po(),No(5,"div",4),Go(6),Oo(7,"button",5),Vo("click",(function(){return e.previousClicked()})),Po(),Oo(8,"button",6),Vo("click",(function(){return e.nextClicked()})),Po(),Po(),Po()),2&t&&(_s(2),Co("aria-label",e.periodButtonLabel),_s(1),_a(" ",e.periodButtonText," "),_s(1),sa("mat-calendar-invert","month"!=e.calendar.currentView),_s(3),Ao("disabled",!e.previousEnabled()),Co("aria-label",e.prevButtonLabel),_s(1),Ao("disabled",!e.nextEnabled()),Co("aria-label",e.nextButtonLabel))},directives:[jE,nx],encapsulation:2,changeDetection:0}),t})(),rO=(()=>{class t{constructor(t,e,i,n){if(this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new jl,this.yearSelected=new jl,this.monthSelected=new jl,this._userSelection=new jl,this.stateChanges=new A,!this._dateAdapter)throw YT("DateAdapter");if(!this._dateFormats)throw YT("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new iA(this.headerComponent||sO),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e.ngAfterContentInit()}_dateSelected(t){t&&!this._dateAdapter.sameDate(t,this.selected)&&this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(Io(KT),Io(tE,8),Io(eE,8),Io(qr))},t.\u0275cmp=Se({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var i;1&t&&(Jl(QT,!0),Jl(nO,!0),Jl(JT,!0)),2&t&&(Xl(i=sc())&&(e.monthView=i.first),Xl(i=sc())&&(e.year
1View=i.first),Xl(i=sc())&&(e.multiYearView=i.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Da],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(xo(0,jT,0,0,"ng-template",0),Oo(1,"div",1),xo(2,zT,1,6,"mat-month-view",2),xo(3,UT,1,5,"mat-year-view",3),xo(4,$T,1,5,"mat-multi-year-view",4),Po()),2&t&&(Ao("cdkPortalOutlet",e._calendarHeaderPortal),_s(1),Ao("ngSwitch",e.currentView),_s(1),Ao("ngSwitchCase","month"),_s(1),Ao("ngSwitchCase","year"),_s(1),Ao("ngSwitchCase","multi-year"))},directives:[aA,ax,pu,mu,QT,nO,JT],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const oO={transformPanel:gx("transformPanel",[wx("void",vx({opacity:0,transform:"scale(1, 0.8)"})),Sx("void => enter",_x("120ms cubic-bezier(0, 0, 0.2, 1)",vx({opacity:1,transform:"scale(1, 1)"}))),Sx("* => void",_x("100ms linear",vx({opacity:0})))]),fadeInCalendar:gx("fadeInCalendar",[wx("void",vx({opacity:0})),wx("enter",vx({opacity:1})),Sx("void => *",_x("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let aO=0;const lO=new Yt("mat-datepicker-scroll-strategy"),cO={provide:lO,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class hO{constructor(t){this._elementRef=t}}const uO=YI(hO);let dO=(()=>{class t extends uO{constructor(t,e){super(t),this._changeDetectorRef=e,this._animationState="enter",this._animationDone=new A}ngAfterViewInit(){this._calendar.focusActiveCell()}ngOnDestroy(){this._animationDone.complete()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(qr))},t.\u0275cmp=Se({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;1&t&&Jl(rO,!0),2&t&&Xl(i=sc())&&(e._calendar=i.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&jo("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(va("@transformPanel",e._animationState),sa("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Ca],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(Oo(0,"mat-calendar",0),Vo("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.datepicker.close()})),Po()),2&t&&Ao("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[rO,JS,ru],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[oO.transformPanel,oO.fadeInCalendar]},changeDetection:0}),t})(),pO=(()=>{class t{constructor(t,e,i,n,s,r,o,a){if(this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef
1=n,this._dateAdapter=r,this._dir=o,this._document=a,this.startView="month",this._touchUi=!1,this.yearSelected=new jl,this.monthSelected=new jl,this.openedStream=new jl,this.closedStream=new jl,this._opened=!1,this.id=`mat-datepicker-${aO++}`,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=p.EMPTY,this._disabledChange=new A,this._selectedChanged=new A,!this._dateAdapter)throw YT("DateAdapter");this._scrollStrategy=s}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=SS(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=SS(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(t){t?this.open():this.close()}get _selected(){return this._validSelected}set _selected(t){this._validSelected=t}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}select(t){let e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(t=>this._selected=t)}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(bm(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(dO,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!0}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}_openAsPopup(){const t=new iA(dO,this._viewContainerRef);this._destroyPopup(),this._createPopup();const e=this._popupComponentRef=this._popupRef.attach(t);e.instance.datepicker=this,e.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(()=>{this._popupRef.updatePosition()})}_createPopup(){const t=new _A({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),tt(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Qp(t=>27===t.keyCode||this._datepickerInput&&t.altKey&&38===t.keyCode))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(Io(QA),Io(RA),Io(Tc),Io(ml),Io(lO),Io(tE,8),Io(dx,8),Io(lh,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"
1calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const mO={provide:ad,useExisting:Nt(()=>_O),multi:!0},fO={provide:Cd,useExisting:Nt(()=>_O),multi:!0};class gO{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _O=(()=>{class t{constructor(t,e,i,n){if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this._formField=n,this.dateChange=new jl,this.dateInput=new jl,this._valueChange=new jl,this._disabledChange=new jl,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=p.EMPTY,this._localeSubscription=p.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.min||!e||this._dateAdapter.compareDate(this.min,e)<=0?null:{matDatepickerMin:{min:this.min,actual:e}}},this._maxValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.max||!e||this._dateAdapter.compareDate(this.max,e)>=0?null:{matDatepickerMax:{max:this.max,actual:e}}},this._filterValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return this._dateFilter&&e&&!this._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=kd.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw YT("DateAdapter");if(!this._dateFormats)throw YT("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}set matDatepicker(t){t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.dateInput.emit(new gO(this,this._elementRef.nativeElement)),this.dateChange.emit(new gO(this,this._elementRef.nativeElement))}))}set matDatepickerFilter(t){this._dateFilter=t,this._validatorOnChange()}get value(){return this._value}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);const e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(t){const e=SS(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&i.blur&&i.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){this._datepicker&&t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!i||this._dateAdapter.isValid(i),i=this._getValidDateOrNull(i),this._dateAdapter.sameDate(i,this._value)?e!==this._lastValueValid&&this._validatorOnChange():(this._value=i,this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new gO(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new gO(this,this._elementRef.nativeElement))}
1_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(tE,8),Io(eE,8),Io(vD,8))},t.\u0275dir=Ae({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&Vo("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(ya("disabled",e.disabled),Co("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[La([mO,fO,{provide:ID,useExisting:t}])]}),t})(),bO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),yO=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=SS(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._disabledChange:Up(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Up(),i=this.datepicker?tt(this.datepicker.openedStream,this.datepicker.closedStream):Up();this._stateChanges.unsubscribe(),this._stateChanges=tt(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Io(KT),Io(qr),Eo("tabindex"))},t.\u0275cmp=Se({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){var n;1&t&&ec(i,bO,!0),2&t&&Xl(n=sc())&&(e._customIcon=n.first)},viewQuery:function(t,e){var i;1&t&&Jl(HT,!0),2&t&&Xl(i=sc())&&(e._button=i.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&Vo("focus",(function(){return e._button.focus()})),2&t&&(Co("tabindex",e.disabled?null:-1),sa("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Da],ngContentSelectors:GT,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(Wo(WT),Oo(0,"button",0,1),Vo("click",(function(t){return e._open(t)})),xo(2,qT,2,0,"svg",2),Go(3),Po()),2&t&&(Ao("disabled",e.disabled)("disableRipple",e.disableRipple),Co("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),_s(2),Ao("ngIf",!e._customIcon))},directives:[jE,cu],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),vO=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}
1,providers:[KT,cO],imports:[[xu,zE,JA,jA,hx,lA]]}),t})();const wO=["input"],CO=function(){return{enterDuration:150}},SO=["*"],xO=new Yt("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let kO=0;const IO={provide:ad,useExisting:Nt(()=>DO),multi:!0};class EO{constructor(t,e){this.source=t,this.value=e}}let DO=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${kO++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new jl}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=SS(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=SS(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new EO(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Io(qr))},t.\u0275dir=Ae({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&ec(i,OO,!0),2&t&&Xl(n=sc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[La([IO])]}),t})();class AO{constructor(t){this._elementRef=t}}const TO=KI(ZI(AO));let OO=(()=>{class t extends TO{constructor(t,e,i,n,s,r,o){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._animationMode=r,this._providerOverride=o,this._uniqueId=`mat-radio-${++kO}`,this.id=this._uniqueId,this.change=new jl,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=SS(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(SS(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=SS(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new EO(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._c
1ontrolValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(Io(DO,8),Io(Ua),Io(qr),Io(ox),Io(ZD),Io(BI,8),Io(xO,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&Jl(wO,!0),2&t&&Xl(i=sc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&Vo("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(Co("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),sa("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[Ca],ngContentSelectors:SO,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(Wo(),Oo(0,"label",0,1),Oo(2,"div",2),No(3,"div",3),No(4,"div",4),Oo(5,"input",5,6),Vo("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),Po(),Oo(7,"div",7),No(8,"div",8),Po(),Po(),Oo(9,"div",9),Oo(10,"span",10),fa(11,"\xa0"),Po(),Go(12),Po(),Po()),2&t){const t=ko(1);Co("for",e.inputId),_s(5),Ao("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),Co("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),_s(2),Ao("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Nl(18,CO)),_s(2),sa("mat-radio-label-before","before"==e.labelPosition)}},directives:[yE],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;
1left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),PO=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[vE,WI],WI]}),t})();function NO(t,e){if(1&t&&(Di(),No(0,"circle",3)),2&t){const t=Ho();na("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),Co("r",t._circleRadius)}}function RO(t,e){if(1&t&&(Di(),No(0,"circle",3)),2&t){const t=Ho();na("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),Co("r",t._circleRadius)}}function MO(t,e){if(1&t&&(Di(),No(0,"circle",3)),2&t){const t=Ho();na("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),Co("r",t._circleRadius)}}function FO(t,e){if(1&t&&(Di(),No(0,"circle",3)),2&t){const t=Ho();na("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),Co("r",t._circleRadius)}}class BO{constructor(t){this._elementRef=t}}const LO=YI(BO,"primary"),VO=new Yt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let jO=(()=>{class t extends LO{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=xS(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=xS(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,xS(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=function(t){if(function(){if(null==RS){const t="undefined"!=typeof document?document.head:null;RS=!(!t||!t.createShadowRoot&&!t.attachShadow)}return RS}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}
1`).replace(/DIAMETER/g,`${this.diameter}`)}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(AS),Io(lh,8),Io(BI,8),Io(VO))},t.\u0275cmp=Se({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Co("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),na("width",e.diameter,"px")("height",e.diameter,"px"),sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Ca],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Di(),Oo(0,"svg",0),xo(1,NO,1,9,"circle",1),xo(2,RO,1,7,"circle",2),Po()),2&t&&(na("width",e.diameter,"px")("height",e.diameter,"px"),Ao("ngSwitch","indeterminate"===e.mode),Co("viewBox",e._viewBox),_s(1),Ao("ngSwitchCase",!0),_s(1),Ao("ngSwitchCase",!1))},directives:[pu,mu],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),zO=(()=>{class t extends jO{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(AS),Io(lh,8),Io(BI,8),Io(VO))},t.\u0275cmp=Se({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(na("width",e.diameter,"px")("height",e.diameter,"px"),sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Ca],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Di(),Oo(0,"svg",0),xo(1,MO,1,9,"circle",1),xo(2,FO,1,7,"circle",2),Po()),2&t&&(na("width",e.diameter,"px")("height",e.diameter,"px"),Ao("ngSwitch","indeterminate"===e.mode),Co("viewB
1ox",e._viewBox),_s(1),Ao("ngSwitchCase",!0),_s(1),Ao("ngSwitchCase",!1))},directives:[pu,mu],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t})(),UO=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI,xu],WI]}),t})();function $O(t,e){1&t&&(Oo(0,"mat-error"),fa(1," NIB Number should contain 8 characters "),Po())}function HO(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Password should contain at least one uppercase letter,one number,one special and minimum 8 maximum 20 characters "),Po())}function qO(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Please Enter Confirm Password "),Po())}function WO(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",8),Oo(2,"mat-label"),fa(3,"Expiration Date "),Oo(4,"label",6),fa(5,"*"),Po(),Po(),No(6,"input",47),No(7,"mat-datepicker-toggle",20),No(8,"mat-datepicker",null,48),Po(),No(10,"br"),Po()),2&t){const t=ko(9);_s(6),Ao("matDatepicker",t),_s(1),Ao("for",t)}}function GO(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",8),Oo(2,"mat-label"),fa(3,"Expiration Date "),Oo(4,"label",6),fa(5,"*"),Po(),Po(),No(6,"input",47),No(7,"mat-datepicker-toggle",20),No(8,"mat-datepicker",null,48),Po(),No(10,"br"),Po()),2&t){const t=ko(9);_s(6),Ao("matDatepicker",t),_s(1),Ao("for",t)}}function YO(t,e){if(1&t){const t=Fo();
1Oo(0,"div",38),Oo(1,"h4",23),fa(2,"Upload Passport "),Oo(3,"span",49),Oo(4,"label",6),Oo(5,"h5",23),fa(6,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(7,"div",50),Oo(8,"div",51),Oo(9,"input",52),Vo("change",(function(e){return ri(t),Ho().onFileChange(e)})),Po(),Oo(10,"label",53),fa(11),Po(),Po(),Po(),Po()}if(2&t){const t=Ho();_s(11),ga(t.fileInput)}}function KO(t,e){if(1&t){const t=Fo();Oo(0,"div",38),Oo(1,"h4",23),fa(2," Upload Driver\u2019s License "),Oo(3,"span",49),Oo(4,"label",6),Oo(5,"h5",23),fa(6,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(7,"div",50),Oo(8,"div",51),Oo(9,"input",54),Vo("change",(function(e){return ri(t),Ho().onFileChangeDriversLicense(e)})),Po(),Oo(10,"label",55),fa(11),Po(),Po(),Po(),fa(12,"\xa0 "),Oo(13,"h4",23),fa(14," Upload National Insurance Card "),Oo(15,"span",49),Oo(16,"label",6),Oo(17,"h5",23),fa(18,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(19,"div",50),Oo(20,"div",51),Oo(21,"input",56),Vo("change",(function(e){return ri(t),Ho().onFileChangeNationalInsuranceCard(e)})),Po(),Oo(22,"label",57),fa(23),Po(),Po(),Po(),Po()}if(2&t){const t=Ho();_s(11),ga(t.DriversLicensefileInput),_s(12),ga(t.NationalInsuranceCardfileInput)}}function ZO(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",8),Oo(2,"mat-label"),fa(3,"Passport Number "),Oo(4,"label",6),fa(5,"*"),Po(),Po(),No(6,"input",58),Po(),Po()),2&t){const t=Ho();_s(6),Ao("formControl",t.PassportNumber)}}function XO(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",59),Oo(2,"mat-label"),Oo(3,"label",6),fa(4,"*"),Po(),fa(5," Driver\u2019s License & InsuranceCard Number "),Po(),No(6,"input",58),Po(),Po()),2&t){const t=Ho();_s(6),Ao("formControl",t.InsuranceCardNumber)}}function QO(t,e){1&t&&(Oo(0,"mat-error"),fa(1," ID Number should contain 8 characters "),Po())}function JO(t,e){if(1&t){const t=Fo();Oo(0,"div",60),Oo(1,"div",4),Oo(2,"h2",5),fa(3,"Enrol Application"),Po(),Po(),Oo(4,"div",7),Oo(5,"mat-form-field",8),Oo(6,"mat-label"),fa(7,"ID Number "),Oo(8,"label",6),fa(9,"*"),Po(),Po(),No(10,"input",61),xo(11,QO,2,0,"mat-error",10),Po(),Po(),Oo(12,"div",7),Oo(13,"mat-form-field",8),Oo(14,"mat-label"),fa(15,"Business Name "),Oo(16,"label",6),fa(17,"*"),Po(),Po(),No(18,"input",62),Po(),Po(),Oo(19,"div",7),Oo(20,"mat-form-field",8),Oo(21,"mat-label"),fa(22,"Trading As (optional) "),Po(),No(23,"input",63),Po(),Po(),Oo(24,"div",64),Oo(25,"mat-form-field",8),Oo(26,"mat-label"),fa(27,"Business Type "),Oo(28,"label",6),fa(29,"* "),Po(),Po(),No(30,"input",65),Po(),Po(),Oo(31,"div",7),Oo(32,"mat-form-field",8),Oo(33,"mat-label"),fa(34," Business Address "),Oo(35,"label",6),fa(36,"*"),Po(),Po(),No(37,"textarea",66),Po(),Po(),Oo(38,"div",7),Oo(39,"mat-form-field",8),Oo(40,"mat-label"),fa(41," Business Email Address "),Oo(42,"label",6),fa(43,"*"),Po(),Po(),No(44,"input",67),Po(),Po(),Oo(45,"div",7),Oo(46,"mat-form-field",8),Oo(47,"mat-label"),fa(48,"Date of Inception "),Oo(49,"label",6),fa(50,"*"),Po(),Po(),No(51,"input",68),No(52,"mat-datepicker-toggle",20),No(53,"mat-datepicker",null,48),Po(),Po(),No(55,"div",7),Oo(56,"div",22),Oo(57,"h4",23),fa(58," Primary Contacts"),No(59,"label",6),Po(),Oo(60,"div",1),Oo(61,"div",7),Oo(62,"mat-form-field",8),Oo(63,"mat-label"),fa(64," Name "),Oo(65,"label",6),fa(66,"*"),Po(),Po(),No(67,"input",69),Po(),Po(),Oo(68,"div",7),Oo(69,"mat-form-field",8),Oo(70,"mat-label"),fa(71," Email Address "),Oo(72,"label",6),fa(73,"*"),Po(),Po(),No(74,"input",70),Po(),Po(),Oo(75,"div",7),Oo(76,"mat-form-field",8),Oo(77,"mat-label"),fa(78," Phone "),Oo(79,"label",6),fa(80,"*"),Po(),Po(),No(81,"input",71),Po(),Po(),Po(),Po(),Oo(82,"div",22),Oo(83,"h4",23),fa(84," Secondary Contacts "),Po(),Oo(85,"div",1),Oo(86,"div",7),Oo(87,"mat-form-field",8),Oo(88,"mat-label"),fa(89," Name "),Po(),No(90,"input",72),Po(),Po(),Oo(91,"div",7),Oo(92,"mat-form-field",8),Oo(93,"mat-label"),fa(94," Email Address"),Po(),No(95,"input",73),Po(),Po(),Oo(96,"div",7),Oo(97,"mat-form-field",8),Oo(98,"mat-label"),fa(99," Phone "),Po(),No(100,"input",74),Po(),Po(),Po(),Po(),Oo(101,"div",22),Oo(102,"h4",23),fa(103," Banking Info "),Po(),Oo(104,"div",1),Oo(105,"div",7),Oo(106,"mat-form-field",8),Oo(107,"mat-label"),fa(108,"Bank Name "),Po(),No(109,"input",75),Po(),Po(),Oo(110,"div",7),Oo(111,"mat-form-field",8),Oo(112,"mat-label"),fa(113,"Branch "),Po(),No(114,"input",76),Po(),Po(),Oo(115,"div",7),Oo(116,"mat-form-field",8),Oo(117,"mat-label"),fa(118,"Account Number "),Po(),No(119,"input",77),Po(),Po(),Po(),Po(),Oo(120,"div",22),Oo(121,"div",1),Oo(122,"h4",23),fa(123," Beneficial Owner details (articles of incorporation or equivalent) "),Oo(124,"span",49),Oo(125,"label",6),Oo(126,"h5",23),fa(127,"( JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(128,"div",50),Oo(129,"div",51),Oo(130,"input",78),Vo("change",(function(e){return ri(t),Ho().onFileChangeBeneficial(e)})),Po(),Oo(131,"label",55),fa(132),Po(),Po(),Po(),fa(133,"\xa0 "),Oo(134,"h4",23),fa(135," Authorized Signatories and specimen signatures "),Oo(136,"span",49),Oo(137,"label",6),Oo(138,"h5",23),fa(139,"( JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(140,"div",50),Oo(141,"div",51),Oo(142,"input",79),Vo("change",(function(e){return ri(t),Ho().onFileChangeAuthorized(e)})),Po(),Oo(143,"label",57),fa(144),Po(),Po(),Po(),Oo(145,"h4",23),fa(146," Business license/VAT registration "),Oo(147,"span",49),Oo(148,"label",6),Oo(149,"h5",23),fa(150,"( JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(151,"div",50),Oo(152,"div",51),Oo(153,"input",80),Vo("change",(function(e){return ri(t),Ho().onFileChangeBusiness(e)})),Po(),Oo(154,"label",53),fa(155),Po(),Po(),Po(),Po(),Po(),Po()}if(2&t){const t=ko(54),e=Ho();_s(11),Ao("ngIf",e.enrollForm.controls.NIBNumber.invalid),_s(40),Ao("matDatepicker",t),_s(1),Ao("for",t),_s(80),ga(e.BeneficialfileInput),_s(12),ga(e.AuthorizedfileInput),_s(11),ga(e.BusinessfileInput)}}function tP(t,e){1&t&&(Oo(0,"button",39),fa(1,"Submit"),Po())}const eP=function(){return["/"]};function iP(t,e){1&t&&(Oo(0,"button",40),fa(1," Cancel"),Po()),2&t&&Ao("routerLink",Nl(1,eP))}let nP=(()=>{class t{constructor(t,e,i,n,s,r,o){this._formBuilder=t,this._router=e,this._authService=i,this._backendservice=n,this._notificationService=s,this._datepipe=r,this._alert=o,this.checked=!1,this.labelPosition="Individual",this.Birthday=new hp,this.loadingData1=!0,this.uploadpassportfiles=!1,this.test=!1,this.UploadNationalInsurancefiles=!1,this.fileInput="Select file*",this.DriversLicensefileInput="Select file*",this.NationalInsuranceCardfileInput="Select file*",this.BeneficialfileInput="Select file*",this.AuthorizedfileInput="Select file*",this.BusinessfileInput="Select file*",this.cancel=!1,this.Individual=!1,this.Business=!1,this.businesstype=["Sample","Sample2"],this.passportNumberEnable=!1,this.drivingLincenceNumberEnable=!1,this.PassportNumber=new hp(""),this.InsuranceCardNumber=new hp("")}ngOnInit(){this.setForm(),this.setForm2(),this.setFormBusiness(),this.uploadpassportfiles=!1,this.UploadNationalInsurancefiles=!1}radioChange(t){return this.accounttype=t.value,0==t.value?(this.accounttype="Individual",this.Individual=!0,this.Business=!1,this.Individual):(this.accounttype="Business",this.Business=!0,this.Individual=!1,this.Business)}ClearFileds(){this.cancel=!0,this.Business=!1,this.Individual=!1}
1onFileChange(t){var e;if(this.files=t.target.files,this.fileInput=this.files[0].name.length<30?(e=this.files[0].name).slice(0,30):(e=this.files[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.files[0].type&&"application/pdf"!=this.files[0].type&&"image/jpeg"!=this.files[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.name=this.files[0].name,this.fileFormat=this.files[0].type;var i=new FileReader;i.onload=this._handleReaderLoadded.bind(this),i.readAsBinaryString(this.files[0])}_handleReaderLoadded(t){this.filestring=btoa(t.target.result)}onFileChangeDriversLicense(t){var e;if(this.DriversLicensefiles=t.target.files,this.DriversLicensefileInput=this.DriversLicensefiles[0].name.length<30?(e=this.DriversLicensefiles[0].name).slice(0,30):(e=this.DriversLicensefiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.DriversLicensefiles[0].type&&"application/pdf"!=this.DriversLicensefiles[0].type&&"image/jpeg"!=this.DriversLicensefiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.DriversLicensename=this.DriversLicensefiles[0].name,this.DriversLicensefileFormat=this.DriversLicensefiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedDriversLicense.bind(this),i.readAsBinaryString(this.DriversLicensefiles[0])}_handleReaderLoaddedDriversLicense(t){this.DriversLicensefilestring=btoa(t.target.result)}onFileChangeNationalInsuranceCard(t){var e;if(this.NationalInsuranceCardfiles=t.target.files,this.NationalInsuranceCardfileInput=this.DriversLicensefiles[0].name.length<30?(e=this.NationalInsuranceCardfiles[0].name).slice(0,30):(e=this.NationalInsuranceCardfiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.NationalInsuranceCardfiles[0].type&&"application/pdf"!=this.NationalInsuranceCardfiles[0].type&&"image/jpeg"!=this.NationalInsuranceCardfiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.NationalInsuranceCardname=this.NationalInsuranceCardfiles[0].name,this.NationalInsuranceCardfileFormat=this.NationalInsuranceCardfiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedNationalInsuranceCard.bind(this),i.readAsBinaryString(this.NationalInsuranceCardfiles[0])}_handleReaderLoaddedNationalInsuranceCard(t){this.NationalInsuranceCardfilestring=btoa(t.target.result)}onFileChangeBeneficial(t){var e;if(this.Beneficialfiles=t.target.files,this.BeneficialfileInput=this.Beneficialfiles[0].name.length<30?(e=this.Beneficialfiles[0].name).slice(0,30):(e=this.Beneficialfiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.Beneficialfiles[0].type&&"application/pdf"!=this.Beneficialfiles[0].type&&"image/jpeg"!=this.Beneficialfiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.Beneficialname=this.Beneficialfiles[0].name,this.BeneficialfileFormat=this.Beneficialfiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedBeneficial.bind(this),i.readAsBinaryString(this.Beneficialfiles[0])}_handleReaderLoaddedBeneficial(t){this.Beneficialstring=btoa(t.target.result)}onFileChangeAuthorized(t){var e;if(this.Authorizedfiles=t.target.files,this.AuthorizedfileInput=this.Authorizedfiles[0].name.length<30?(e=this.Authorizedfiles[0].name).slice(0,30):(e=this.Authorizedfiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.Authorizedfiles[0].type&&"application/pdf"!=this.Authorizedfiles[0].type&&"image/jpeg"!=this.Authorizedfiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.Authorizedname=this.Authorizedfiles[0].name,this.AuthorizedfileFormat=this.Authorizedfiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedAuthorized.bind(this),i.readAsBinaryString(this.Authorizedfiles[0])}_handleReaderLoaddedAuthorized(t){this.Authorizedstring=btoa(t.target.result)}onFileChangeBusiness(t){var e;if(this.Businessfiles=t.target.files,this.BusinessfileInput=this.Businessfiles[0].name.length<30?(e=this.Businessfiles[0].name).slice(0,30):(e=this.Businessfiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.Businessfiles[0].type&&"application/pdf"!=this.Businessfiles[0].type&&"image/jpeg"!=this.Businessfiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.Businessname=this.Businessfiles[0].name,this.BusinessfileFormat=this.Businessfiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedBusiness.bind(this),i.readAsBinaryString(this.Businessfiles[0])}_handleReaderLoaddedBusiness(t){this.Businessstring=btoa(t.target.result)}onChangeAppType1(t){this.Identifications=t.value,"0"==this.Identifications&&(this.uploadpassportfiles=!0,this.passportNumberEnable=!0,this.drivingLincenceNumberEnable=!1,this.UploadNationalInsurancefiles=!1),"1"==this.Identifications&&(this.UploadNationalInsurancefiles=!0,this.uploadpassportfiles=!1,this.passportNumberEnable=!1,this.drivingLincenceNumberEnable=!0)}AddEnrollBusiness(t){if(this.loadingData1=!1,""==t.NIBNumber||null==t.NIBNumber)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please Enter ID Number"),!0;this.enrollFormBusiness.valid?(t.logintype=this.accounttype,t.Beneficialuploadfile=this.Beneficialstring,t.Authorizeduploadfile=this.Authorizedstring,t.Businessuploadfile=this.Businessstring,t.BeneficialFileName=this.Beneficialname,t.AuthorizedFileName=this.Authorizedname,t.BusinessFileName=this.Businessname,t.identificationtype=this.Identifications,t.DateofInception=this._datepipe.transform(t.DateofInception.toString(),"MM/dd/yyyy"),this._backendservice.postData(t,`${E_.enrollApiUrlBase}`).subscribe(t=>{t?(this.loadingData1=!0,this._alert.openConfirmationDialo11(t.msg),this.setForm2(),this.uploadpassportfiles=!1,this.UploadNationalInsurancefiles=!1):(this.loadingData1=!0,this._notificationService.showNotification({message:t.msg,type:"error"}))},t=>{})):(this.loadingData1=!0,this._alert.openConfirmationDialo11("Please fill all the details."))}AddEnroll(t){this.loadingData1=!1;var e="";t.logintype="Individual",Date.now();const i=new Date(t.Birthday),n=Math.abs(Date.now()-i.getTime());var s=Math.floor(n/864e5/365);return""!=t.NIBNumber&&null!=t.NIBNumber||(e+="\n ---- NIB Number"),""!=t.NewPassword&&null!=t.NewPassword||(e+="\n ---- Password"),""!=t.ConfirmPassword&&null!=t.ConfirmPassword||(e+="\n ---- Confirm Password"),""!=t.FirstName&&null!=t.FirstName||(e+="\n ---- First Name"),""!=t.LastName&&null!=t.LastName||(e+="\n ---- Last Name"),""!=t.Email&&null!=t.Email||(e+="\n ---- Email"),""!=t.ConfirmEmail&&null!=t.ConfirmEmail||(e+="\n ---- ConfirmEmail"),""!=t.Birthday&&null!=t.Birthday||(e+="\n ---- Date Of Birth"),""!=t.expirydate&&null!=t.expirydate||(e+="\n ----Expiry Date"),""!=t.IndividualAddress&&null!=t.IndividualAddress||(e+="\n ----Address"),""!=t.IndividualPhone&&null!=t.IndividualPhone||(e+="\n ----Phone"),""!=t.Occupation&&null!=t.Occupation||(e+="\n ----Source/Occupation"),""!=this.Identifications&&null!=this.Identifications&&null!=this.Identifications||(e+="\n ---- Identification Type."),"0"==this.Identifications&&(""!=this.PassportNumber.value&&null!=this.PassportNumber.value||(e+="\n ----PassportNumber")),"1"==this.Identifications&&(""!=this.InsuranceCardNumber.value&&null!=this.InsuranceCardNumber.value||(e+="\n ----Driver\u2019s License & InsuranceCard Number")),""!=e?(this.loadingData1=!0,this._alert.openConfirmationDialog("Please enter all required fields"+e),!0):""==t.MiddleName||null==t.MiddleName?(this.loadingData1=!0,this._alert.openConfirmationDialo11(" If there is no middle name can use \u2018X\u2019"),!0):s<18?(this.loadingData1=!0,this._alert.openConfirmationDialo11("Age Should be 18 years above."),!0):t.NewPassword!=t.ConfirmPassword?(this.loadingData1=!0,this._alert.openConfirmationDialo11("password and Confirm New password is not match."),!0):t.Email!=t.ConfirmEmail?(this.loadingData1=!0,this._alert.openConfirmationDialo11("Email and Confirm Email is not match."),!0):"0"!=this.Identifications||""!=this.name&&null!=this.name&&null!=this.name?"1"!=this.Identifications||""!=this.DriversLicensename&&null!=this.DriversLicensename&&null!=this.DriversLicensename?(t.PassPortNumber="0"==this.Identifications?this.PassportNumber.value:this.InsuranceCardNumber.value,t.Passportuploadfile=this.filestring,t.passportFileName=this.name,t.DriversLicenseuploadfile=this.DriversLicensefilestring,t.DriversLicenseFileName=this.DriversLicensename,t.NationalInsuranceCarduploadfile=this.NationalInsuranceCardfilestring,t.NationalInsuranceCardFileName=this.NationalInsuranceCardname,t.identificationtype=this.Identifications,t.Birthday=this._datepipe.transform(t.Birthday.toString(),"MM/dd/yyyy"),t.ExpiryDate=this._datepipe.transform(t.expirydate.toString(),"MM/dd/yyyy"),void this._backendservice.postData(t,`${E_.enrollApiUrlBase}`).subscribe(t=>{t?(this.loadingData1=!0,this._alert.openConfirmationDialo11(t.msg),this.setForm1(),this.uploadpassportfiles=!1,this.UploadNationalInsurancefiles=!1,this.InsuranceCardNumber=new hp(""),this.PassportNumber=new hp("")):(this.loadingData1=!0,this._notificationService.showNotification({message:t.msg,type:"error"}))},t=>{})):(this.loadingData1=!0,this._alert.openConfirmationDialo11("please upload file upload files."),!0):(this.loadingData1=!0,this._alert.openConfirmationDialo11("please upload file upload file."),!0)}keyPressNumbers(t){var e=t.which?t.which:t.keyCode;return!(e<48||e>57)||(t.preventDefault(),!1)}setForm(){this.enrollForm=new up({NIBNumber:new hp("",[kd.required]),ConfirmPassword:new hp("",[kd.required,kd.minLength(3)]),NewPassword:new hp("",[kd.compose([kd.required,kd.minLength(8),kd.maxLength(20),YD])]),FirstName:new hp("",[kd.required]),MiddleName:new hp("",[kd.required]),LastName:new hp("",[kd.required]),Email:new hp("",[kd.required,kd.pattern("^[a-zA-Z0-9]+[a-zA-Z0-9._-]+@[a-zA-Z]+.[a-zA-Z]+$")]),ConfirmEmail:new hp("",[kd.required,kd.pattern("^[a-zA-Z0-9]+[a-zA-Z0-9._-]+@[a-zA-Z]+.[a-zA-Z]+$")]),PassportNumber:new hp("",[kd.required]),Birthday:new hp("",[kd.required]),bankname:new hp(""),branch:new hp(""),accountnumber:new hp(""),passportFile:new hp("",[kd.required]),expirydate:new hp("",[kd.required]),IndividualAddress:new hp("",[kd.required]),IndividualPhone:new hp("",[kd.required]),Occupation:new hp("",[kd.required]),IndividualPhone1:new hp(""),IndividualPhone2:new hp(""),ideType:new hp("")})}setFormBusiness(){this.enrollFormBusiness=new up({NIBNumber:new hp("",[kd.pattern("^([0-9]).{7,8}$")]),Bname:new hp("",[kd.required]),trading:new hp(""),Btype:new hp("",[kd.required]),Baddress:new hp("",[kd.required]),Bemailaddress:new hp("",[kd.required]),DateofInception:new hp("",[kd.required]),BPemailaddress:new hp("",[kd.required]),BPname:new hp("",[kd.required]),BPphone:new hp("",[kd.required]),SBname:new hp(""),SBemailaddress:new hp(""),SBphone:new hp(""),Bbankname:new hp(""),Bbranch:new hp(""),Baccountnumber:new hp(""),beneficialdocs:new hp(""),authorizeddocs:new hp(""),Businessdocs:new hp("")})}setForm1(){this.enrollForm=new up({NIBNumber:new hp(""),ConfirmPassword:new hp(""),NewPassword:new hp(""),FirstName:new hp(""),MiddleName:new hp(""),LastName:new hp(""),Email:new hp(""),ConfirmEmail:new hp(""),Birthday:new hp(""),expirydate:new hp(""),passportFile:new hp(""),IndividualPhone:new hp(""),IndividualAddress:new hp(""),bankname:new hp(""),branch:new hp(""),accountnumber:new hp(""),Occupation:new hp(""),Businessname:new hp(""),trading:new hp(""),Businesstype:new hp(""),enailaddress:new hp(""),DateofInception:new hp(""),Bname:new hp(""),Bemailaddress:new hp(""),Bphone:new hp(""),SBname:new hp(""),SBemailaddress:new hp(""),SBphone:new hp(""),Bbankname:new hp(""),Bbranch:new hp(""),Baccountnumber:new hp(""),IndividualPhone1:new hp(""),IndividualPhone2:new hp(""),ideType:new hp("")})}setForm2(){this.enrollFormBusiness=new up({NIBNumber:new hp(""),Bname:new hp(""),trading:new hp(""),Btype:new hp(""),Bemailaddress:new hp(""),Bphone:new hp(""),DateofInception:new hp(""),BPemailaddress:new hp(""),BPname:new hp(""),BPphone:new hp(""),SBname:new hp(""),SBemailaddress:new hp(""),SBphone:new hp(""),Bbankname:new hp(""),Bbranch:new hp(""),Baccountnumber:new hp(""),Baddress:new hp(""),beneficialdocs:new hp(""),authorizeddocs:new hp(""),Businessdocs:new hp("")})}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(bS),Io(yS),Io(vS),Io(Cu),Io(eT))},t.\u0275cmp=Se({type:t,selectors:[["app-enroll"]],decls:168,vars:19,consts:[[1,"container","pt-5"],[1,"row"],[1,"col-2","col-sm-8"],["name","enrollForm","autocomplete","off",3,"formGroup","ngSubmit"],[1,"col-12","mb-3"],[1,"accent",2,"font-size","0.9970rem"],[2,"color","red"],[1,"col-12","col-sm-4"],["appearance","outline",1,"w-100"],["matInput","","type","number","name","NIBNumber","formControlName","NIBNumber","autocomplete","off","onKeyPress","if(this.value.length==8) return false;",1,"example-right-align",3,"keypress"],[4,"ngIf"],["matInput","","name","NewPassword","type","password","formControlName","NewPassword","autocomplete","off","onKeyPress","if(this.value.length==20) return false;"],["matSuffix","","matTooltip","Your new password must contain at least one uppercase letter, \n one lowercase letter, one number, and one special character with \n minimum 8 and maximum 20 characters."],["matInput","","name","ConfirmPassword","type","password","formControlName","ConfirmPassword","autocomplete","off","onKeyPress","if(this.value.length==20) return false;"],["matInput","","name","FirstName","formControlName","FirstName","autocomplete","off"],["matInput","","name","MiddleName","formControlName","MiddleName","autocomplete","off"],["matInput","","name","LastName","formControlName","LastName","autocomplete","off"],["matInput","","name","Email","formControlName","Email","autocomplete","off"],["matInput","","name","ConfirmEmail","formControlName","ConfirmEmail","autocomplete","off"],["matInput","","formControlName","Birthday","autocomplete","off","readonly","",3,"matDatepicker"],["matSuffix","",3,"for"],["picker",""],[1,"col-8"],[2,"font-size","0.9970rem"],["matInput","","formControlName","bankname","name","relatedissue"],["matInput","","formControlName","branch","name","relatedissue"],["matInput","","formControlName","accountnumber","name","relatedissue"],["matInput","","formControlName","IndividualAddress","name","IndividualAddress","type","text"],["matInput","","name","IndividualPhone","formControlName","IndividualPhone","autocomplete","off"],["matInput","","name","PhoneNumber","formControlName","IndividualPhone1","autocomplete","off"],["matInput","","name","PhoneNumber","formControlName","IndividualPhone2","autocomplete","off"],["matInput","","name","Occupation","formControlName","Occupation","autocomplete","off"],[1,"radiobtn"],["formControlName","ideType","name","ideType","aria-label","Select an option",3,"change"],["value","0"],["value","1"],["class","col-12 col-sm-4",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12"],["mat-flat-button","","type","submit","color","primary",1,"loginbtn","mr-2"],["mat-flat-button","","color","primary",1,"loginbtn","mr-2",3,"routerLink"],["name","enrollFormBusiness",3,"formGroup","ngSubmit"],["class","row","autocomplete","off",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","class","loginbtn mr-2",4,"ngIf"],["mat-flat-button","","color","primary","class","loginbtn mr-2",3,"routerLink",4,"ngIf"],[1,"mat-spinner-fullscreen",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],["matInput","","placeholder","MM/DD/YYYY","formControlName","expirydate","autocomplete","off","readonly","",3,"matDatepicker"],["picker1",""],[1,"text-muted"],[1,"input-group","w-100","mb-2"],[1,"custom-file"],["type","file","id","inputGroupFile03","aria-describedby","inputGroupFileAddon03","accept","image/jpg,image/jpeg,application/pdf",3,"change"],["for","inputGroupFile03",1,"custom-file-label"],["type","file","id","inputGroupFile01","aria-describedby","inputGroupFileAddon01","accept","image/jpg,image/jpeg,application/pdf",3,"change"],["for","inp
1utGroupFile01",1,"custom-file-label"],["type","file","id","inputGroupFile02","aria-describedby","inputGroupFileAddon02","accept","image/jpg,image/jpeg,application/pdf",3,"change"],["for","inputGroupFile02",1,"custom-file-label"],["matInput","","name","PassportNumber","autocomplete","off",3,"formControl"],["appearance","outline",1,"W-100"],["autocomplete","off",1,"row"],["matInput","","type","number","name","NIBNumber","formControlName","NIBNumber","autocomplete","off","onKeyPress","if(this.value.length==8) return false;",1,"example-right-align"],["matInput","","name","Bname","formControlName","Bname","autocomplete","off"],["matInput","","name","trading","formControlName","trading","autocomplete","off"],[1,"col-12","col-md-4"],["matInput","","name","Btype","formControlName","Btype","autocomplete","off"],["matInput","","formControlName","Baddress","name","Baddress","type","text"],["matInput","","formControlName","Bemailaddress","name","Bemailaddress","autocomplete","off"],["matInput","","formControlName","DateofInception","autocomplete","off","readonly","",3,"matDatepicker"],["matInput","","formControlName","BPname","name","BPname"],["matInput","","formControlName","BPemailaddress","name","BPemailaddress"],["matInput","","formControlName","BPphone","name","BPphone"],["matInput","","formControlName","SBname","name","SBname"],["matInput","","formControlName","SBemailaddress","name","SBemailaddress"],["matInput","","formControlName","SBphone","name","SBphone"],["matInput","","formControlName","Bbankname","name","Bbankname"],["matInput","","formControlName","Bbranch","name","Bbranch"],["matInput","","formControlName","Baccountnumber","name","Baccountnumber"],["type","file","id","inputGroupFile01","aria-describedby","inputGroupFileAddon01","accept","image/jpg,image/jpeg,application/pdf","formControlName","beneficialdocs",3,"change"],["type","file","id","inputGroupFile02","aria-describedby","inputGroupFileAddon02","accept","image/jpg,image/jpeg,application/pdf","formControlName","authorizeddocs",3,"change"],["type","file","id","inputGroupFile03","aria-describedby","inputGroupFileAddon03","accept","image/jpg,image/jpeg,application/pdf","formControlName","Businessdocs",3,"change"]],template:function(t,e){if(1&t&&(Oo(0,"div",0),Oo(1,"div",1),No(2,"div",2),Po(),Oo(3,"form",3),Vo("ngSubmit",(function(){return e.AddEnroll(e.enrollForm.value)})),Oo(4,"div",1),Oo(5,"div",4),Oo(6,"h2",5),fa(7,"Individual Enrol Application"),Po(),Po(),Oo(8,"div",4),Oo(9,"h2",5),Oo(10,"label",6),fa(11,"Note:"),Po(),fa(12,"Existing client settlement instructions cannot be changed via this option."),Po(),Po(),Oo(13,"div",7),Oo(14,"mat-form-field",8),Oo(15,"mat-label"),fa(16,"NIB Number "),Oo(17,"label",6),fa(18,"*"),Po(),Po(),Oo(19,"input",9),Vo("keypress",(function(t){return e.keyPressNumbers(t)})),Po(),xo(20,$O,2,0,"mat-error",10),Po(),Po(),Oo(21,"div",7),Oo(22,"mat-form-field",8),Oo(23,"mat-label"),fa(24,"Password "),Oo(25,"label",6),fa(26,"*"),Po(),Po(),No(27,"input",11),xo(28,HO,2,0,"mat-error",10),Oo(29,"mat-icon",12),fa(30," information "),Po(),Po(),Po(),Oo(31,"div",7),Oo(32,"mat-form-field",8),Oo(33,"mat-label"),fa(34,"Confirm Password "),Oo(35,"label",6),fa(36,"*"),Po(),Po(),No(37,"input",13),xo(38,qO,2,0,"mat-error",10),Po(),Po(),Oo(39,"div",7),Oo(40,"mat-form-field",8),Oo(41,"mat-label"),fa(42,"First Name "),Oo(43,"label",6),fa(44,"*"),Po(),Po(),No(45,"input",14),Po(),Po(),Oo(46,"div",7),Oo(47,"mat-form-field",8),Oo(48,"mat-label"),fa(49,"Middle Name "),Oo(50,"label",6),fa(51,"*"),Po(),Po(),No(52,"input",15),Po(),Po(),Oo(53,"div",7),Oo(54,"mat-form-field",8),Oo(55,"mat-label"),fa(56,"Last Name "),Oo(57,"label",6),fa(58,"*"),Po(),Po(),No(59,"input",16),Po(),Po(),Oo(60,"div",7),Oo(61,"mat-form-field",8),Oo(62,"mat-label"),fa(63,"Email "),Oo(64,"label",6),fa(65,"*"),Po(),Po(),No(66,"input",17),Po(),Po(),Oo(67,"div",7),Oo(68,"mat-form-field",8),Oo(69,"mat-label"),fa(70,"Confirm Email "),Oo(71,"label",6),fa(72,"*"),Po(),Po(),No(73,"input",18),Po(),Po(),Oo(74,"div",7),Oo(75,"mat-form-field",8),Oo(76,"mat-label"),fa(77,"Birthday "),Oo(78,"label",6),fa(79,"*"),Po(),Po(),No(80,"input",19),No(81,"mat-datepicker-toggle",20),No(82,"mat-datepicker",null,21),Po(),No(84,"br"),Po(),Oo(85,"div",22),Oo(86,"h4",23),fa(87," Banking Info"),No(88,"label",6),Po(),Oo(89,"div",1),Oo(90,"div",7),Oo(91,"mat-form-field",8),Oo(92,"mat-label"),fa(93,"Bank Name(Optional) "),Po(),No(94,"input",24),Po(),Po(),Oo(95,"div",7),Oo(96,"mat-form-field",8),Oo(97,"mat-label"),fa(98,"Branch(Optional) "),Po(),No(99,"input",25),Po(),Po(),Oo(100,"div",7),Oo(101,"mat-form-field",8),Oo(102,"mat-label"),fa(103,"Account Number(Optional) "),Po(),No(104,"input",26),Po(),Po(),Po(),Po(),No(105,"div",7),Oo(106,"div",7),Oo(107,"mat-form-field",8),Oo(108,"mat-label"),fa(109,"Address "),Oo(110,"label",6),fa(111,"*"),Po(),Po(),No(112,"textarea",27),Po(),Po(),Oo(113,"div",7),Oo(114,"mat-form-field",8),Oo(115,"mat-label"),fa(116,"Primary Phone Number "),Oo(117,"label",6),fa(118,"*"),Po(),Po(),No(119,"input",28),Po(),Po(),Oo(120,"div",7),Oo(121,"mat-form-field",8),Oo(122,"mat-label"),fa(123,"Phone Number1(Optional) "),Po(),No(124,"input",29),Po(),Po(),Oo(125,"div",7),Oo(126,"mat-form-field",8),Oo(127,"mat-label"),fa(128,"Phone Number2(Optional) "),Po(),No(129,"input",30),Po(),Po(),Oo(130,"div",7),Oo(131,"mat-form-field",8),Oo(132,"mat-label"),fa(133,"Occupation/Source of Income "),Oo(134,"label",6),fa(135,"*"),Po(),Po(),No(136,"input",31),Po(),Po(),Oo(137,"div",7),Oo(138,"h6",23),Oo(139,"strong"),fa(140,"Identification Type "),Oo(141,"label",6),fa(142,"*"),Po(),Po(),Po(),Oo(143,"div",32),Oo(144,"mat-radio-group",33),Vo("change",(function(t){return e.onChangeAppType1(t)})),Oo(145,"mat-radio-button",34),fa(146," Passport"),Po(),Oo(147,"mat-radio-button",35),fa(148,"Driver\u2019s License AND National Insurance Card"),Po(),Po(),Po(),Po(),xo(149,WO,11,2,"div",36),xo(150,GO,11,2,"div",36),xo(151,YO,12,1,"div",37),xo(152,KO,24,2,"div",37),xo(153,ZO,7,1,"div",36),xo(154,XO,7,1,"div",36),Oo(155,"div",38),Oo(156,"button",39),fa(157,"Submit"),Po(),Oo(158,"button",40),fa(159,"Cancel"),Po(),Po(),Po(),Po(),Oo(160,"form",41),Vo("ngSubmit",(function(){return e.AddEnrollBusiness(e.enrollFormBusiness.value)})),xo(161,JO,156,6,"div",42),Oo(162,"div",1),Oo(163,"div",38),xo(164,tP,2,0,"button",43),xo(165,iP,2,2,"button",44),Po(),Po(),Po(),Po(),Oo(166,"div",45),No(167,"mat-spinner",46),Po()),2&t){const t=ko(83);_s(3),Ao("formGroup",e.enrollForm),_s(17),Ao("ngIf",e.enrollForm.controls.NIBNumber.invalid),_s(8),Ao("ngIf",e.enrollForm.controls.NewPassword.value.length>0&&e.enrollForm.controls.NewPassword.invalid),_s(10),Ao("ngIf",e.enrollForm.controls.ConfirmPassword.invalid),_s(42),Ao("matDatepicker",t),_s(1),Ao("for",t),_s(68),Ao("ngIf",e.uploadpassportfiles),_s(1),Ao("ngIf",e.drivingLincenceNumberEnable),_s(1),Ao("ngIf",e.uploadpassportfiles),_s(1),Ao("ngIf",e.UploadNationalInsurancefiles),_s(1),Ao("ngIf",e.passportNumberEnable),_s(1),Ao("ngIf",e.drivingLincenceNumberEnable),_s(4),Ao("routerLink",Nl(18,eP)),_s(2),Ao("formGroup",e.enrollFormBusiness),_s(1),Ao("ngIf",e.Business),_s(3),Ao("ngIf",e.Business),_s(1),Ao("ngIf",e.Business),_s(1),Ao("hidden",e.loadingData1)}},directives:[xp,vd,Ap,wD,dD,OD,Pd,dd,yd,Fp,cu,gT,fD,TT,_O,yO,pO,DO,OO,jE,e_,zO,oD,Ep],styles:[".example-right-align[_ngcontent-%COMP%]{text-align:left}input.example-right-align[_ngcontent-%COMP%]::-webkit-inner-spin-button, input.example-right-align[_ngcontent-%COMP%]::-webkit-outer-spin-button{display:none}"]}),t})();const sP=["trigger"],rP=["panel"];function oP(t,e){if(1&t&&(Oo(0,"span",8),fa(1),Po()),2&t){const t=Ho();_s(1),ga(t.placeholder||"\xa0")}}function aP(t,e){if(1&t&&(Oo(0,"span"),fa(1),Po()),2&t){const t=Ho(2);_s(1),ga(t.triggerValue||"\xa0")}}function lP(t,e){1&t&&Go(0,0,["*ngSwitchCase","true"])}function cP(t,e){1&t&&(Oo(0,"span",9),xo(1,aP,2,1,"span",10),xo(2,lP,1,0,void 0,11),Po()),2&t&&(Ao("ngSwitch",!!Ho().customTrigger),_s(2),Ao("ngSwitchCase",!0))}function hP(t,e){if(1&t){const t=Fo();Oo(0,"div",12),Oo(1,"div",13,14),Vo("@transformPanel.done",(function(e){return ri(t),Ho()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return ri(t),Ho()._handleKeydown(e)})),Go(3,1),Po(),Po()}if(2&t){const t=Ho();Ao("@transformPanelWrap",void 0),_s(1),ba("mat-select-panel ",t._getPanelTheme(
1),""),na("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),Ao("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const uP=[[["mat-select-trigger"]],"*"],dP=["mat-select-trigger","*"],pP={transformPanelWrap:gx("transformPanelWrap",[Sx("* => void",kx("@transformPanel",[xx()],{optional:!0}))]),transformPanel:gx("transformPanel",[wx("void",vx({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),wx("showing",vx({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),wx("showing-multiple",vx({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Sx("void => *",_x("120ms cubic-bezier(0, 0, 0.2, 1)")),Sx("* => void",_x("100ms 25ms linear",vx({opacity:0})))])};let mP=0;const fP=new Yt("mat-select-scroll-strategy"),gP=new Yt("MAT_SELECT_CONFIG"),_P={provide:fP,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class bP{constructor(t,e){this.source=t,this.value=e}}class yP{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const vP=KI(ZI(GI(XI(yP))));let wP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-select-trigger"]]}),t})(),CP=(()=>{class t extends vP{constructor(t,e,i,n,s,r,o,a,l,c,h,u,d,p){super(s,n,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${mP++}`,this._destroy=new A,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new A,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Zp(()=>{const t=this.options;return t?t.changes.pipe(Am(t),km(()=>tt(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(bm(1),km(()=>this.optionSelectionChanges))}),this.openedChange=new jl,this._openedStream=this.openedChange.pipe(Qp(t=>t),H(()=>{}
1)),this._closedStream=this.openedChange.pipe(Qp(t=>!t),H(()=>{})),this.selectionChange=new jl,this.valueChange=new jl,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,p&&(null!=p.disableOptionCentering&&(this.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=SS(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=SS(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=SS(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=xS(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new KD(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(lv(),gC(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(gC(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(gC(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Am(null),gC(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!CS(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;
136===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||CS(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(bm(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Tn()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new WS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(gC(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(gC(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=tt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(gC(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),tt(...this.options.map(t=>t._stateChanges)).pipe(gC(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new bP(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>
1t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=PE(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=function(t,e,i,n){const s=t*e;return s<i?s:s+e>i+256?Math.max(0,s-256+e):i}(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=PE(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(Io(QD),Io(qr),Io(Tc),Io(dE),Io(Ua),Io(dx,8),Io(fp,8),Io(Ap,8),Io(vD,8),Io(_d,10),Eo("tabindex"),Io(fP),Io(ix),Io(gP,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(ec(i,wP,!0),ec(i,OE,!0),ec(i,IE,!0)),2&t&&(Xl(n=sc())&&(e.customTrigger=n.first),Xl(n=sc())&&(e.options=n),Xl(n=sc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(Jl(sP,!0),Jl(rP,!0),Jl(LA,!0)),2&t&&(Xl(i=sc())&&(e.trigger=i.first),Xl(i=sc())&&(e.panel=i.first),Xl(i=sc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&V
1o("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(Co("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),sa("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[La([{provide:lD,useExisting:t},{provide:TE,useExisting:t}]),Ca,Da],ngContentSelectors:dP,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Wo(uP),Oo(0,"div",0,1),Vo("click",(function(){return e.toggle()})),Oo(3,"div",2),xo(4,oP,2,1,"span",3),xo(5,cP,3,2,"span",4),Po(),Oo(6,"div",5),No(7,"div",6),Po(),Po(),xo(8,hP,4,10,"ng-template",7),Vo("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=ko(1);_s(3),Ao("ngSwitch",e.empty),_s(1),Ao("ngSwitchCase",!0),_s(1),Ao("ngSwitchCase",!1),_s(3),Ao("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[BA,pu,mu,LA,fu,ru],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[pP.transformPanelWrap,pP.transformPanel]},changeDetection:0}),t})(),SP=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[_P],imports:[[xu,jA,NE,WI],CD,NE,WI]}),t})();const xP=["input"],kP=function(){return{enterDuration:150}},IP=["*"],EP=new Yt("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),DP=new Yt("mat-checkbox-click-action");let AP=0;const TP={provide:ad,useExisting:Nt(()=>RP),multi:!0};class OP{}class PP{constructor(t){this._elementRef=t}}
1const NP=ZI(YI(KI(GI(PP))));let RP=(()=>{class t extends NP{constructor(t,e,i,n,s,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++AP}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new jl,this.indeterminateChange=new jl,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(s)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=SS(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=SS(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=SS(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new OP;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(qr),Io(ox),Io(Tc),Eo("tabindex"),Io(DP,8),Io(BI,8),Io(EP,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(Jl(xP,!0),Jl(yE,!0)),2&t&&(Xl(i=sc())&&(e._inputElement=i.first),Xl(i=sc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(ya("id",e.id),Co("tabindex",null),sa("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[La([TP]),Ca],ngContentSelectors:IP,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Wo(),Oo(0,"label",0,1),Oo(2,"div",2),Oo(3,"input",3,4),Vo("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),Po(),Oo(5,"div",5),No(6,"div",6),Po(),No(7,"div",7),Oo(8,"div",8),Di(),Oo(9,"svg",9),No(10,"path",10),Po(),Ai(),No(11,"div",11),Po(),Po(),Oo(12,"span",12,13),Vo("cdkObserveContent",(function(){return e._onLabelTextChange()})),Oo(14,"span",14),fa(15,"\xa0"),Po(),Go(16),Po(),Po()),2&t){const t=ko(1),i=ko(13);Co("for",e.inputId),_s(2),sa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),_s(1),Ao("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),Co("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),_s(2),Ao("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Nl(18,kP))}},directives:[yE,LS],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}
150%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;
1transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),MP=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})(),FP=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[vE,WI,VS,MP],WI,MP]}),t})();function BP(t,e){if(1&t&&(Oo(0,"div",31),Oo(1,"mat-form-field",17),Oo(2,"mat-label"),fa(3,"InvoiceNo"),Po(),No(4,"input",35),Po(),Po()),2&t){const t=Ho(2);_s(4),Ao("ngModel",t.InvoiceNumber)}}function LP(t,e){if(1&t&&(Oo(0,"div",27),Oo(1,"div",28),Oo(2,"mat-form-field",17),Oo(3,"mat-label"),fa(4,"Beneficial Owner Name"),Po(),No(5,"input",29),Po(),Po(),Oo(6,"div",30),Oo(7,"mat-form-field",17),Oo(8,"mat-label"),fa(9,"Bank Name"),Po(),No(10,"input",29),Po(),Po(),Oo(11,"div",31),Oo(12,"mat-form-field",17),Oo(13,"mat-label"),fa(14,"Branch"),Po(),No(15,"input",32),Po(),Po(),Oo(16,"div",31),Oo(17,"mat-form-field",17),Oo(18,"mat-label"),fa(19,"Account Number"),Po(),No(20,"input",33),Po(),Po(),xo(21,BP,5,1,"div",34),Po()),2&t){const t=Ho();_s(5),Ao("ngModel",t.BeneficialOwnerName),_s(5),Ao("ngModel",t.Bank),_s(5),Ao("ngModel",t.Branch),_s(5),Ao("ngModel",t.AccountNumber),_s(1),Ao("ngIf",t.invoice)}}function VP(t,e){1&t&&(Oo(0,"th"),fa(1,"Tenor"),Po())}function jP(t,e){1&t&&(Oo(0,"th"),fa(1,"Rate"),Po())}function zP(t,e){1&t&&(Oo(0,"th"),fa(1,"Price Per Unit"),Po())}function UP(t,e){1&t&&(Oo(0,"th"),fa(1,"Total Cost"),Po())}function $P(t,e){1&t&&(Oo(0,"th"),fa(1,"Click"),Po())}function HP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3," Tenor "),Po(),No(4,"input",36),Po(),Po()),2&t){const t=Ho().$implicit;_s(4),Yo("value",t.Tenor)}}function qP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3," Rate "),Po(),No(4,"input",38),Fl(5,"number"),Po(),Po()),2&t){const t=Ho().$implicit;_s(4),Yo("value",Bl(5,1,t.rateamount,"1.2-2"))}}function WP(t,e){if(1&t&&(Oo(0,"div"),Oo(1,"td",11),Oo(2,"mat-form-field",12),Oo(3,"mat-label"),fa(4," Price Per Unit "),Po(),No(5,"input",39),Fl(6,"number"),Po(),Po(),Po()),2&t){const t=Ho().$implicit;_s(5),Yo("value",Bl(6,1,t.priceperunit,"1.2-2"))}}function GP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3,"Total Cost"),Po(),No(4,"input",36),Fl(5,"number"),Po(),Po()),2&t){const t=Ho().$implicit;_s(4),Yo("value",Bl(5,1,t.totalcost,"1.2-2"))}}function YP(t,e){if(1&t){const t=Fo();Oo(0,"tr",10),Oo(1,"td",11),Oo(2,"mat-form-field",12),Oo(3,"mat-label"),fa(4," Beneficiary "),Po(),No(5,"input",36),Po(),Po(),Oo(6,"td",11),Oo(7,"mat-form-field",12),Oo(8,"mat-label"),fa(9," Security ID "),Po(),No(10,"input",36),Po(),Po(),xo(11,HP,5,1,"td",16),xo(12,qP,6,4,"td",16),Oo(13,"td",11),Oo(14,"mat-form-field",17),Oo(15,"mat-label"),fa(16," Amount "),Po(),No(17,"input",36),Fl(18,"number"),Po(),Po(),xo(19,WP,7,4,"div",8),xo(20,GP,6,4,"td",16),Oo(21,"td"),Oo(22,"button",37),Vo("click",(function(){ri(t);const i=e.$implicit;return Ho().deleteConfirm(i)})),Oo(23,"mat-icon"),fa(24,"remove"),Po(),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Ho();_s(5),Yo("value",t.Beneficiaries),_s(5),Yo("value",t.SecurityID),_s(1),Ao("ngIf",i.priceprunit),_s(1),Ao("ngIf",i.priceprunit),_s(5),Yo("value",Bl(18,7,t.amount,"1.2-2")),_s(2),Ao("ngIf",i.priceprunit),_s(1),Ao("ngIf",i.rateenable)}}function KP(t,e){if(1&t&&(Oo(0,"mat-option",40),Oo(1,"p",41),fa(2),Po(),Po()),2&t){const t=e.$implicit;Yo("value",t.customerAccountCode),_s(2),_a("",t.customerAccountCode," ")}}function ZP(t,e){if(1&t&&(Oo(0,"mat-option",40),Oo(1,"p",41),fa(2),Po(),Po()),2&t){const t=e.$implicit;Yo("value",t),_s(2),_a("",t," ")}}function XP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3," Tenor "),Po(),No(4,"input",42),Po(),Po()),2&t){const t=Ho();_s(4),Yo("value",t.Tenor)}}function QP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3," Rate "),Po(),No(4,"input",38),Fl(5,"number"),Po(),Po()),2&t){const t=Ho();_s(4),Yo("value",Bl(5,1,t.Rate,"1.2-2"))}}function JP(t,e){if(1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3," Price Per Unit "),Po(),No(4,"input",43),Fl(5,"number"),Po(),Po()),2&t){const t=Ho();_s(4),Yo("value",Bl(5,1,t.PricePerUnit,"1.2-2"))}}function tN(t,e){1&t&&(Oo(0,"td",11),Oo(1,"mat-form-field",12),Oo(2,"mat-label"),fa(3,"Total Cost"),Po(),No(4,"input",44),Po(),Po())}let eN=(()=>{class t{constructor(t,e,i,n,s,r){this._backendservice=t,this._formBuilder=e,this._authService=i,this._alert=n,this._notification=s,this._router=r,this.objectdata=[],this.gridobject=[],this.finalobject={},this.hide=!1,this.beneficieryList=[],this.securityidlist=[],this.amountlist=[],this.amounttest=ne
1w hp,this.ben=new hp,this.sec=new hp,this.rateenable=!1,this.priceprunit=!1,this.test=!1,this.SelectID=!1,this.invoice=!1,this.loadingData1=!0,this.removerecord=!1,this.readrecord=!0,this.isTermsChecked=!1,this.isCheckboxDisabled=!1}ngOnInit(){this.pageLoad(),this.setForm()}pageLoad(){this._backendservice.getData(`${E_.applicationApiUrlBase}/${this._authService.NIBNumber}`).subscribe(t=>{this.security=t.security,this.Beneficiaries=t.beneficiaries,this.securitylist=t.securitylist,this.InvoiceNumber=t.invoiceNoIncrement,this.Tenor=t.tenor})}SelectionCustomerID(t){this.selectedbenid=t,this.SelectID=!0,this._backendservice.getData(`${E_.applicationfilterbenApiUrlBase}/${this.selectedbenid}`).subscribe(t=>{this.bendata=t.beneficiariesdata,this.BeneficialOwnerName=this.bendata[0].beneficialOwnerName,this.Bank=this.bendata[0].bank,this.Branch=this.bendata[0].branch,this.RoutingNumber=this.bendata[0].routingNumber,this.AccountNumber=this.bendata[0].accountNumber;let e="";if(this.AccountNumber){for(let i=0;i<this.AccountNumber.trim().length-4;i++)e+="*";let t=this.AccountNumber.trim().length;this.AccountNumber=e+this.AccountNumber.trim().slice(t-4,t)}})}SelectTenorID(t){console.log(t)}SelectionSecurityID(t){this.selectedsecid=t,this._backendservice.getData(`${E_.applicationApiUrlBase}/rate/${t}`).subscribe(t=>{console.log(t),this.Rate=t.rate,this.MaxAppAmt=t.maxAmount,this.PricePerUnit=t.price,this.AccuredInterestPrice=t.accuredInterestPrice,this.Tenor=t.tenor,console.log(this.PricePerUnit),""==this.Rate&&""==this.PricePerUnit||(this.rateenable=!0,this.priceprunit=!0,this.test=!0)})}changeAmount(t){var e,i;if(null!=t){this.applicationAmount=t.toString().replace(/,/g,"");let n=parseFloat(this.applicationAmount);if(n%100!=0)return this._alert.openConfirmationDialo11(this.amounttest.value+" Not Divisible by 100"),this.loadingData1=!0,!1;null!=this.AccuredInterestPrice&&(this.InterestAmount=n*this.AccuredInterestPrice/100,this.TotaCost=n*this.PricePerUnit/100+this.InterestAmount,null===(e=this.applicationData.get("InterestAmount"))||void 0===e||e.setValue(this.InterestAmount.toFixed(2)),null===(i=this.applicationData.get("TotalCost"))||void 0===i||i.setValue(this.TotaCost.toFixed(2)))}else this.applicationAmount=t}addData(t){if(console.log(t),sessionStorage.clear(),""==t.Beneficiaries||null==t.Beneficiaries)return this._alert.openConfirmationDialogShot("Please select the Beneficiaries"),this.hide=!1,this.rateenable=!1,this.priceprunit=!1,this.test=!0,!1;if(this.sample1=t.SecurityID,""==t.SecurityID||null==t.SecurityID)return this._alert.openConfirmationDialogShot("Please select the SecurityID"),this.hide=!1,this.rateenable=!1,this.priceprunit=!1,this.test=!0,!1;if(""==this.applicationAmount||null==this.applicationAmount)return this._alert.openConfirmationDialogShot("Please Enter the Amount"),this.hide=!1,this.test=!0,!1;t.amount=this.applicationAmount,console.log(parseInt(t.amount)),t.priceperunit=this.PricePerUnit,t.totalcost=this.TotaCost,t.rateamount=this.Rate,t.Tenor=this.Tenor,console.log(this.Tenor),console.log(t.Tenor);let e=parseInt(this.applicationAmount.toString().replace(/,/g,""));console.log(e),t.interestamount=e*this.AccuredInterestPrice/100;let i=parseInt(this.MaxAppAmt.toString().replace(/,/g,""));return 0==parseInt(t.amount)||""==t.amount?(this._alert.openConfirmationDialogShot("Application Amount should be greater than 0"),!1):e%100!=0?(this._alert.openConfirmationDialogShot(this.amounttest.value+" is not divisible by 100."),this.loadingData1=!0,!1):e>i?(console.log(i),console.log(e),this._alert.openConfirmationDialogShot(`Amount entered for "${t.SecurityID}"should be less than or equal to:${i.toLocaleString()}`),this.loadingData1=!0,!1):(this.sample1=t,this.objectdata.push(t),this.beneficieryList.push(this.selectedbenid),this.securityidlist.push(this.selectedsecid),this.amountlist.push(this.amounttest.value),this.amounttest=new hp,this.objectdata.length>0?(this.testdata=this.objectdata,this.hide=!0,this.rateenable=!0,this.test=!1):(this.hide=!1,this.rateenable=!1,this.test=!0,this.invoice=!1),void this.setForm())}CalculateInterest(t){var e,i;console.log(t);const n=t.value;if(null!=n){const t=parseFloat(n.toString().replace(/,/g,""));if(n%100!=0)return void this._alert.openConfirmationDialo11(t+" Not Divisible by 100");if(null!=this.AccuredInterestPrice){const t=n*this.AccuredInterestPrice/100;null===(e=this.applicationData.get("InterestAmount"))||void 0===e||e.setValue(t.toFixed(2))}if(null!=this.PricePerUnit){const t=n*this.PricePerUnit/100;null===(i=this.applicationData.get("TotalCost"))||void 0===i||i.setValue(t.toFixed(2))}}}TermsAndConditionsForm(t){if(this.isTermsChecked=t.checked,console.log("Checkbox value:",this.isTermsChecked),this.isTermsChecked){this.isCheckboxDisabled=!0;const t=document.createElement("a");t.download="BRS_and_BSB_Disclaimer_Terms_and_Conditions",t.href="assets/img/BRS_and_BSB_Disclaimer_Terms_and_Conditions.pdf",t.click(),this._alert.openConfirmationDialogShot("You have read, understood and agree to the Bank's terms and conditions, and acknowledge the Banks Disclaimer")}else this._alert.openConfirmationDialogShot("Please check the box and read the terms and conditions")}deleteConfirm(t){for(let e=0;e<=this.objectdata.length-1;e++)t.Beneficiaries==this.objectdata[e].Beneficiaries&&t.SecurityID==this.objectdata[e].SecurityID&&t.amount==this.objectdata[e].amount&&this.objectdata.splice(e,1)}SaveData(){if(this.invoice=!0,this.removesetForm(),this.Rate="",0!=this.objectdata.length){if(this.applicationAmount%100!=0)return this._alert.openConfirmationDialo11(this.amounttest.value+" Not Divisible by 100 "),void(this.loadingData1=!0);console.log("Test"),this.loadingData1=!1,this.beneficieryList.push(this.selectedbenid),this.securityidlist.push(this.selectedsecid),this.amountlist.push(this.amounttest.value),this.amounttest=ne
1w hp,this.finalobject.amountlist=this.amountlist,this.finalobject.NIBNumber=this._authService.NIBNumber,this.finalobject.BeneficialOwnerName=this.BeneficialOwnerName,this.finalobject.applicationdata=this.objectdata,this.finalobject.InvoiceNumber=this.InvoiceNumber,this._backendservice.postData(this.finalobject,`${E_.applicationApiUrlBase}/save`).subscribe(t=>{1==t.result?(this.loadingData1=!0,this._notification.showNotification({message:t.msg,type:"success"}),this._router.navigate(["/dashboard"])):(this.loadingData1=!0,this._alert.openConfirmationDialog(t.msg),this._router.navigate(["/dashboard/application"]))})}else this._alert.openConfirmationDialogShot("Select at least one record")}setForm(){this.applicationData=this._formBuilder.group({Beneficiaries:[""],SecurityID:[""],Tenor:[""],amounttest:["",kd.required],InterestAmount:[{value:"",disabled:!0}],TotalCost:[{value:"",disabled:!0}]})}removesetForm(){this.applicationData=this._formBuilder.group({amount:[""],amounttest:[""],Tenor:[""],Beneficiaries:[""],SecurityID:[""],Rate:[""],InterestAmount:[{value:"",disabled:!0}],TotalCost:[{value:"",disabled:!0}]})}}return t.\u0275fac=function(e){return new(e||t)(Io(yS),Io(Lp),Io(bS),Io(eT),Io(vS),Io(t_))},t.\u0275cmp=Se({type:t,selectors:[["app-application"]],decls:66,vars:23,consts:[[1,"container-fluid","pt-3"],[1,"accent",2,"font-size","0.9970rem"],["class","row justify-content-around",4,"ngIf"],["name","applicationData",3,"formGroup","ngSubmit"],[1,"animated","fadeIn","table-responsive","table-w-sticky-header","vh-60","mb-2"],[1,"table","table-hover","table-condensed","table-lt-grey"],[1,"cbob-blue-thead","table-bordered","sticky-header"],[1,"headings","line-1"],[4,"ngIf"],["class","input-row ",4,"ngFor","ngForOf"],[1,"input-row"],[1,"input-cell"],["appearance","outline",1,"w-100","mat-opaque"],["formControlName","Beneficiaries",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","SecurityID",3,"selectionChange"],["class","input-cell",4,"ngIf"],["appearance","outline",1,"w-100"],["matInput","","name","checkno","id","checkno","type","text","placeholder","Amount",3,"value","formControl","change"],[1,"button-cell"],["mat-flat-button","","type","submit","color","primary",1,"mb-2"],[2,"vertical-align","middle","color","black",3,"ngModel","disabled","ngModelChange","change"],[2,"text-decoration","underline","font-weight","bold","color","#1e40af"],[2,"color","rgb(16, 82, 108)"],["mat-flat-button","","type","button","color","primary",1,"mb-2",3,"disabled","click"],[1,"mat-spinner-fullscreen",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],[1,"row","justify-content-around"],[1,"col-4","col-sm-3"],["matInput","","name","Bank","readonly","",3,"ngModel"],[1,"col-5","col-sm-3"],[1,"col-5","col-sm-2"],["matInput","","name","Branch","readonly","",3,"ngModel"],["matInput","","name","AccountNumber","readonly","",3,"ngModel"],["class","col-5 col-sm-2",4,"ngIf"],["matInput","","name","InvoiceNumber","readonly","",3,"ngModel"],["matInput","","readonly","",3,"value"],["mat-flat-button","","type","button","color","primary",1,"mb-2",3,"click"],["matInput","","name","rate","id","rate","type","text","placeholder","Rate","readonly","",3,"value"],["matInput","","name","priceperunit","id","priceperunit","type","text","placeholder","Rate","readonly","",3,"value"],[3,"value"],[2,"color","rgb(21, 113, 206)"],["matInput","","name","Tenor","id","Tenor","type","text","placeholder","Tenor","readonly","",3,"value"],["matInput","","name","PricePerUnit","id","PricePerUnit","type","text","placeholder","PricePerUnit","readonly","",3,"value"],["matInput","","formControlName","TotalCost","type","text","placeholder","Total Cost","readonly",""]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"h2",1),fa(2,"Application"),Po(),xo(3,LP,22,5,"div",2),Oo(4,"form",3),Vo("ngSubmit",(function(){return e.addData(e.applicationData.value)})),Oo(5,"div",4),Oo(6,"table",5),Oo(7,"thead",6),Oo(8,"tr",7),Oo(9,"th"),fa(10,"Beneficiaries"),Po(),Oo(11,"th"),fa(12,"Select Security"),Po(),xo(13,VP,2,0,"th",8),xo(14,jP,2,0,"th",8),Oo(15,"th"),fa(16,"Amount"),Po(),xo(17,zP,2,0,"th",8),xo(18,UP,2,0,"th",8),xo(19,$P,2,0,"th",8),No(20,"th"),Po(),Po(),xo(21,YP,25,10,"tr",9),Oo(22,"tr",10),Oo(23,"td",11),Oo(24,"mat-form-field",12),Oo(25,"mat-label"),fa(26," Select Beneficiary "),Po(),Oo(27,"mat-select",13),Vo("selectionChange",(function(t){return e.SelectionCustomerID(t.value)})),xo(28,KP,3,2,"mat-option",14),Po(),Po(),Po(),Oo(29,"td",11),Oo(30,"mat-form-field",12),Oo(31,"mat-label"),fa(32," Select Security ID "),Po(),Oo(33,"mat-select",15),Vo("selectionChange",(function(t){return e.SelectionSecurityID(t.value)})),xo(34,ZP,3,2,"mat-option",14),Po(),Po(),Po(),xo(35,XP,5,1,"td",16),xo(36,QP,6,4,"td",16),Oo(37,"td",11),Oo(38,"mat-form-field",17),Oo(39,"mat-label"),fa(40," Amount "),Po(),Oo(41,"input",18),Vo("change",(function(t){return e.changeAmount(t.target.value)})),Fl(42,"number"),Po(),Po(),Po(),xo(43,JP,6,4,"td",16),xo(44,tN,5,0,"td",16),Oo(45,"td",19),Oo(46,"button",20),Oo(47,"mat-icon"),fa(48,"add"),Po(),Po(),fa(49,"\xa0 "),Po(),Po(),Po(),Oo(50,"a"),Oo(
151,"mat-checkbox",21),Vo("ngModelChange",(function(t){return e.isTermsChecked=t}))("change",(function(t){return e.TermsAndConditionsForm(t)})),Oo(52,"span"),fa(53," I Accept all the "),Oo(54,"span",22),fa(55," Disclaimer, Terms and Conditions. "),Po(),No(56,"br"),fa(57," and confirm that I have read, understood, and agree to the"),No(58,"br"),Oo(59,"span",23),fa(60," Bank's terms and conditions, and acknowledge the Bank's Disclaimer."),Po(),Po(),Po(),Po(),No(61,"br"),Oo(62,"button",24),Vo("click",(function(){return e.SaveData()})),fa(63," Save "),Po(),Po(),Po(),Po(),Oo(64,"div",25),No(65,"mat-spinner",26),Po()),2&t&&(_s(3),Ao("ngIf",e.SelectID),_s(1),Ao("formGroup",e.applicationData),_s(9),Ao("ngIf",e.priceprunit),_s(1),Ao("ngIf",e.priceprunit),_s(3),Ao("ngIf",e.priceprunit),_s(1),Ao("ngIf",e.priceprunit),_s(1),Ao("ngIf",e.priceprunit),_s(2),Ao("ngForOf",e.objectdata),_s(7),Ao("ngForOf",e.Beneficiaries),_s(6),Ao("ngForOf",e.security),_s(1),Ao("ngIf",e.rateenable&&e.test),_s(1),Ao("ngIf",e.rateenable&&e.test),_s(5),Yo("value",Bl(42,20,e.applicationAmount,"1.2-2")),Ao("formControl",e.amounttest),_s(2),Ao("ngIf",e.rateenable&&e.test),_s(1),Ao("ngIf",e.rateenable&&e.test),_s(7),Ao("ngModel",e.isTermsChecked)("disabled",e.isCheckboxDisabled),_s(11),Ao("disabled",!e.isTermsChecked),_s(2),Ao("hidden",e.loadingData1))},directives:[cu,xp,vd,Ap,au,wD,dD,CP,yd,Fp,OD,dd,Ep,jE,gT,RP,Sp,zO,OE],pipes:[Su],styles:[""]}),t})();const iN=["mat-menu-item",""],nN=["*"];function sN(t,e){if(1&t){const t=Fo();Oo(0,"div",0),Vo("keydown",(function(e){return ri(t),Ho()._handleKeydown(e)}))("click",(function(){return ri(t),Ho().closed.emit("click")}))("@transformMenu.start",(function(e){return ri(t),Ho()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return ri(t),Ho()._onAnimationDone(e)})),Oo(1,"div",1),Go(2),Po(),Po()}if(2&t){const t=Ho();Ao("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),Co("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const rN={transformMenu:gx("transformMenu",[wx("void",vx({opacity:0,transform:"scale(0.8)"})),Sx("void => enter",bx([kx(".mat-menu-content, .mat-mdc-menu-content",_x("100ms linear",vx({opacity:1}))),_x("120ms cubic-bezier(0, 0, 0.2, 1)",vx({transform:"scale(1)"}))])),Sx("* => void",_x("100ms 25ms linear",vx({opacity:0})))]),fadeInItems:gx("fadeInItems",[wx("showing",vx({opacity:1})),Sx("void => *",[vx({opacity:0}),_x("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let oN=(()=>{class t{constructor(t,e,i,n,s,r,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=r,this._changeDetectorRef=o,this._attached=new A}attach(t={}){this._portal||(this._portal=new nA(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new oA(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(Io(dl),Io(za),Io(Zc),Io(ao),Io(ml),Io(lh),Io(qr))},t.\u0275dir=Ae({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const aN=new Yt("MAT_MENU_PANEL");class lN{}const cN=KI(GI(lN));let hN=(()=>{class t extends cN{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new A,this._focused=new A,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s<n;s++)t.childNodes[s].nodeType===e&&(i+=t.childNodes[s].textContent)}return i.trim()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(lh),Io(ox),Io(aN,8))},t.\u0275cmp=Se({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&V
1o("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(Co("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),sa("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:[Ca],attrs:iN,ngContentSelectors:nN,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(Wo(),Go(0),No(1,"div",0)),2&t&&(_s(1),Ao("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[yE],encapsulation:2,changeDetection:0}),t})();const uN=new Yt("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let dN=0,pN=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ul,this._tabSubscription=p.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new A,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new jl,this.close=this.closed,this.panelId=`mat-menu-panel-${dN++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=SS(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=SS(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 GS(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Am(this._directDescendantItems),km(t=>tt(...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(Am(this._directDescendantItems),km(t=>tt(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:CS(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;case 36:case 35:CS(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(bm(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}}}
1resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["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(Am(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)(Io(Ua),Io(Tc),Io(uN))},t.\u0275dir=Ae({type:t,contentQueries:function(t,e,i){var n;1&t&&(ec(i,oN,!0),ec(i,hN,!0),ec(i,hN,!1)),2&t&&(Xl(n=sc())&&(e.lazyContent=n.first),Xl(n=sc())&&(e._allItems=n),Xl(n=sc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&Jl(dl,!0),2&t&&Xl(i=sc())&&(e.templateRef=i.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})(),mN=(()=>{class t extends pN{}return t.\u0275fac=function(e){return fN(e||t)},t.\u0275dir=Ae({type:t,features:[Ca]}),t})();const fN=mn(mN);let gN=(()=>{class t extends mN{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(Tc),Io(uN))},t.\u0275cmp=Se({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[La([{provide:aN,useExisting:mN},{provide:mN,useExisting:t}]),Ca],ngContentSelectors:nN,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&&(Wo(),xo(0,sN,3,6,"ng-template"))},directives:[ru],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:[rN.transformMenu,rN.fadeInItems]},changeDetection:0}),t})();const _N=new Yt("mat-menu-scroll-strategy"),bN={provide:_N,deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},yN=MS({passive:!0});let vN=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef
1=i,this._parentMenu=s,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=p.EMPTY,this._hoverSubscription=p.EMPTY,this._menuCloseSubscription=p.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new jl,this.onMenuOpen=this.menuOpened,this.menuClosed=new jl,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,yN),r&&(r._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}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.asObservable().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,yN),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 mN&&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 mN?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Qp(t=>"void"===t.toState),bm(1),gC(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(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}()}_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 _A({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",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,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[n,s],[a,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:c},{originX:i,originY:r,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return tt(t,this._parentMenu?this._parentMenu.closed:Up(),this._parentMenu?this._parentMenu._hovered().pipe(Qp(t=>
1t!==this._menuItemInstance),Qp(()=>this._menuOpen)):Up(),e)}_handleMousedown(t){lx(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(Qp(t=>t===this._menuItemInstance&&!t.disabled),Zy(0,cC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof mN&&this.menu._isAnimating?this.menu._animationDone.pipe(bm(1),Zy(0,cC),gC(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new nA(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Io(RA),Io(Ua),Io(ml),Io(_N),Io(mN,8),Io(hN,10),Io(dx,8),Io(ox))},t.\u0275dir=Ae({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Vo("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&Co("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})(),wN=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[bN],imports:[WI]}),t})(),CN=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[bN],imports:[[xu,WI,vE,jA,wN],wN]}),t})();const SN=function(){return["/dashboard"]},xN=function(){return["/dashboard/account"]},kN=function(){return["/dashboard/application"]},IN=function(){return["/dashboard/view"]},EN=function(){return["/dashboard/holdings"]},DN=function(){return["/dashboard/Viewtransaction"]},AN=function(){return["/dashboard/changePassword"]},TN=function(){return["/dashboard/Unsubcribe"]};let ON=(()=>{class t{constructor(t){this._authService=t,this.dropdownOpen=!1}ngOnInit(){this.currentYear=(new Date).getFullYear()}}return t.\u0275fac=function(e){return new(e||t)(Io(bS))},t.\u0275cmp=Se({type:t,selectors:[["app-dashboard"]],decls:87,vars:42,consts:[[1,"navbar","navbar-dark","dash-nav","navbar-expand-lg","text-white"],[1,"navbar-brand",3,"routerLink"],["src","./assets/img/logo-wht.svg","alt","Central Bank of The Bahamas",2,"height","3rem","width","16.5625rem"],[1,"collapse","navbar-collapse","justify-content-end"],[1,"navbar-nav"],[1,"nav-item","nav-mat-item","mat-route"],["mat-button","","routerLinkActive","active",3,"routerLink"],[1,"nav-item","nav-mat-icon-item"],["mat-icon-button","","matTooltip","Account Options",3,"matMenuTriggerFor"],["accountMenu","matMenu"],["mat-menu-item","","routerLinkActive","active",3,"routerLink"],["mat-menu-item","",3,"click"],["id","navicon"],["mat-icon-button","",1,"navicon-close",3,"click"],["id","navdrop"],[1,"navdrop-backdrop",3,"click"],[1,"navdrop-menu"],[1,"nav-item"],["routerLinkActive","active",1,"button",3,"routerLink","click"],[1,"nav-link","button",3,"click"],[1,"body-container"],[1,"footer","bg-dark","text-white"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["aria-hidden","true",1,"fa","fa-copyright"],[1,"text-muted"],["href","https://www.mimics.com"]],template:function(t,e){if(1&t&&(Oo(0,"nav",0),Oo(1,"a",1),No(2,"img",2),Po(),Oo(3,"div",3),Oo(4,"ul",4),Oo(5,"li",5),Oo(6,"button",6),fa(7," Account "),Po(),Po(),Oo(8,"li",5),Oo(9,"button",6),fa(10," Application "),Po(),Po(),Oo(11,"li",5),Oo(12,"button",6),fa(13," Submission "),Po(),Po(),Oo(14,"li",5),Oo(15,"button",6),fa(16," Holdings "),Po(),Po(),Oo(17,"li",5),Oo(18,"button",6),fa(19," View Transaction "),Po(),Po(),Oo(20,"li",7),Oo(21,"button",8),Oo(22,"mat-icon"),fa(23,"more_vert"),Po(),Po(),Oo(24,"mat-menu",null,9),Oo(26,"button",10),fa(27," Modify Password "),Po(),Oo(28,"button",10),fa(29," Unsubcribe "),Po(),Oo(30,"button",11),Vo("click",(function(){return e._authService.logout()})),fa(31," Log Out "),Po(),Po(),Po(),Po(),Po(),Oo(32,"li",12),Oo(33,"button",13),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),Oo(34,"mat-icon"),fa(35,"add"),Po(),Po(),Po(),Po(),Oo(36,"div",14),Oo(37,"span",15),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),Po(),Oo(38,"button",13),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),Oo(39,"mat-icon"),fa(40,"close"),Po(),Po(),Oo(41,"div",16),Oo(42,"ul"),Oo(43,"li",17),Oo(44,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(45," Account "),Po(),Po(),Oo(46,"li",17),Oo(47,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(48," Application "),Po(),Po(),Oo(49,"li",17),Oo(50,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(51," Submission"),Po(),Po(),Oo(52,"li",17),Oo(53,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(54," Holdings "),Po(),Po(),Oo(55,"li",17),Oo(56,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(57," View Transaction"),Po(),Po(),Oo(58,"li"),Oo(59,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(60,"Modify Password"),Po(),Po(),Oo(61,"li"),Oo(62,"a",18),Vo("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(63,"Unsubcribe"),Po(),Po(),Oo(64,"li",17),Oo(65,"a",19),Vo("click",(function(){return e._authService.logout()}))("click",(function(){return e.dropdownOpen=!e.dropdownOpen})),fa(66," Log Out"),Po(),Po(),Po(),Po(),Po(),Oo(67,"div",20),No(68,"router-outlet"),Po(),Oo(69,"footer",21),Oo(70,"div",22),Oo(71,"div",23),Oo(72,"div",24),No(73,"i",25),Oo(74,"span"),fa(75,"Central Bank of The Bahamas"),Po(),Oo(76,"span"),fa(77),Po(),Oo(78,"span",26),fa(79,"\xa0\xa0\xa0 Site built by QTZL "),Oo(80,"sup"),fa(81,"\xae"),Po(),fa(82," a division of "),Oo(83,"a",27),fa(84,"MIMICS "),Oo(85,"sup"),fa(86,"\xae"),Po(),Po(),Po(),Po(),Po(),Po(),Po()),2&t){const t=ko(25);_s(1),Ao("routerLink",Nl(27,SN)),_s(5),Ao("routerLink",Nl(28,xN)),_s(3),Ao("routerLink",Nl(29,kN)),_s(3),Ao("routerLink",Nl(30,IN)),_s(3),Ao("routerLink",Nl(31,EN)),_s(3),Ao("routerLink",Nl(32,DN)),_s(3),Ao("matMenuTriggerFor",t),_s(5),Ao("routerLink",Nl(33,AN)),_s(2),Ao("routerLink",Nl(34,TN)),_s(8),sa("nav-slide-in",e.dropdownOpen)("nav-slide-out",!e.dropdownOpen),_s(5),sa("active",e.dropdownOpen)("inactive",!e.dropdownOpen),_s(1),sa("fadeItemsIn",e.dropdownOpen),_s(2),Ao("routerLink",Nl(35,xN)),_s(3),Ao("routerLink",Nl(36,kN)),_s(3),Ao("routerLink",Nl(37,IN)),_s(3),Ao("routerLink",Nl(38,EN)),_s(3),Ao("routerLink",Nl(39,DN)),_s(3),Ao("routerLink",Nl(40,AN)),_s(3),Ao("routerLink",Nl(41,TN)),_s(15),_a(" ",e.currentYear," ")}},directives:[i_,jE,s_,e_,TT,vN,gT,gN,hN,a_],styles:[""]}),t})(),PN=(()=>{class t{constructor(){this.sortBy="",this.currentSortDirection="asc",this.currentSortParam="",this.sortBy1="",this.currentSortDirection1="asc",this.currentSortParam1=""}resetService(){this.sortBy="",this.currentSortDirection="asc",this.currentSortParam="",this.sortBy1="",this.currentSortDirection1="asc",this.currentSortParam1=""}orderByParam(t,e,i){const n=e;let s=[...n];return t===this.currentSortParam&&"asc"===this.currentSortDirection?(s=this.orderByParamDesce
1nding(t,n,i),this.currentSortDirection="desc",this.sortBy=`${t}down`):(s=this.orderByParamAscending(t,n,i),this.currentSortDirection="asc",this.sortBy=`${t}up`),this.currentSortParam=t,s}orderByParamAscending(t,e,i){return e.sort((e,n)=>{e[t]||"boolean"==typeof e[t]||0===e[t]||(e[t]=""),n[t]||"boolean"==typeof n[t]||0===n[t]||(n[t]="");let s,r,o=e[t],a=n[t];return i&&(s=e[i],r=n[i],-1!==i.indexOf("date")||-1!==i.indexOf("time")?(s=+new Date(e[i]),r=+new Date(n[i])):"string"==typeof e[i]&&(s=e[i].toLowerCase(),r=n[i].toLowerCase())),-1!==t.indexOf("date")||-1!==t.indexOf("time")?(o=+new Date(e[t]),a=+new Date(n[t])):e[t]==+e[t]?(o=+e[t],a=+n[t]):"string"==typeof e[t]&&(o=e[t].toLowerCase(),a=n[t].toLowerCase()),o<a?-1:a<o?1:i?s<r?-1:r<s?1:0:0})}orderByParamDescending(t,e,i){return e.sort((e,n)=>{e[t]||"boolean"==typeof e[t]||0===e[t]||(e[t]=""),n[t]||"boolean"==typeof n[t]||0===n[t]||(n[t]="");let s,r,o=e[t],a=n[t];return i&&(s=e[i],r=n[i],-1!==i.indexOf("date")||-1!==i.indexOf("time")?(s=+new Date(e[i]),r=+new Date(n[i])):"string"==typeof e[i]&&(s=e[i].toLowerCase(),r=n[i].toLowerCase())),-1!==t.indexOf("date")||-1!==t.indexOf("time")?(o=+new Date(e[t]),a=+new Date(n[t])):e[t]==+e[t]?(o=+e[t],a=+n[t]):"string"==typeof e[t]&&(o=e[t].toLowerCase(),a=n[t].toLowerCase()),o<a?1:a<o?-1:i?s<r?-1:r<s?1:0:0})}orderByParam1(t,e,i){const n=e;let s=[...n];return t===this.currentSortParam1&&"asc"===this.currentSortDirection1?(s=this.orderByParamDescending1(t,n,i),this.currentSortDirection1="desc",this.sortBy1=`${t}down`):(s=this.orderByParamAscending1(t,n,i),this.currentSortDirection1="asc",this.sortBy1=`${t}up`),this.currentSortParam1=t,s}orderByParamAscending1(t,e,i){return e.sort((e,n)=>{e[t]||"boolean"==typeof e[t]||0===e[t]||(e[t]=""),n[t]||"boolean"==typeof n[t]||0===n[t]||(n[t]="");let s,r,o=e[t],a=n[t];return i&&(s=e[i],r=n[i],-1!==i.indexOf("date")||-1!==i.indexOf("time")?(s=+new Date(e[i]),r=+new Date(n[i])):"string"==typeof e[i]&&(s=e[i].toLowerCase(),r=n[i].toLowerCase())),-1!==t.indexOf("date")||-1!==t.indexOf("time")?(o=+new Date(e[t]),a=+new Date(n[t])):e[t]==+e[t]?(o=+e[t],a=+n[t]):"string"==typeof e[t]&&(o=e[t].toLowerCase(),a=n[t].toLowerCase()),o<a?-1:a<o?1:i?s<r?-1:r<s?1:0:0})}orderByParamDescending1(t,e,i){return e.sort((e,n)=>{e[t]||"boolean"==typeof e[t]||0===e[t]||(e[t]=""),n[t]||"boolean"==typeof n[t]||0===n[t]||(n[t]="");let s,r,o=e[t],a=n[t];return i&&(s=e[i],r=n[i],-1!==i.indexOf("date")||-1!==i.indexOf("time")?(s=+new Date(e[i]),r=+new Date(n[i])):"string"==typeof e[i]&&(s=e[i].toLowerCase(),r=n[i].toLowerCase())),-1!==t.indexOf("date")||-1!==t.indexOf("time")?(o=+new Date(e[t]),a=+new Date(n[t])):e[t]==+e[t]?(o=+e[t],a=+n[t]):"string"==typeof e[t]&&(o=e[t].toLowerCase(),a=n[t].toLowerCase()),o<a?1:a<o?-1:i?s<r?-1:r<s?1:0:0})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),NN=(()=>{class t{constructor(){this._entryRange=new $p([0,10]),this.entryRange=this._entryRange.asObservable(),this.paginationArray=[1],this.paginationArrayDisplay=[],this.maxItemsOnPage=10,this.totalPages=0,this.totalEntries=0,this.maxPagesInListing=5,this.currentPage=1,this.currentPageIndexTop=1}setGrid(t,e){void 0!==e&&(this.totalEntries=e),this.paginationArray=[1];let i=Math.ceil(this.totalEntries/this.maxItemsOnPage);for(var n=1;n<i;n+=1)this.paginationArray.push(n*this.maxItemsOnPage+1);let s=this.paginationArray.indexOf(t);s-2<0?s=2:s+3>i&&(s=i-3),this.paginationArrayDisplay=i>this.maxPagesInListing?this.paginationArray.slice(s-2,s+3):this.paginationArray,this.currentPage=(t+(this.maxItemsOnPage-1))/this.maxItemsOnPage,this.currentPageIndexTop=t,this._entryRange.next([t-1,t+(this.maxItemsOnPage-1)])}updateMaxItemsOnPage(t){this.maxItemsOnPage=+t,this.setGrid(1)}updatePage(t,e){this.maxItemsOnPage=+e,this.setGrid(t*e+1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),RN=(()=>{class t{constructor(){this.searchOpen=!1}openSearch(){this.searchOpen=!0,this.svcRenderer.addClass(document.body,"hide-overflow")}closeSearch(){this.svcRenderer.removeClass(document.body,"hide-overflow"),this.searchOpen=!1}findItems(t,e,i){return new Promise((function(n,s){const r="string"==typeof t?t.toLowerCase():t;let o=[];o=e.filter(t=>{if(t[i]&&-1!==t[i].toLowerCase().search(r))return t[i]}),n(o)}))}findItemsFromMultiple(t,e,i){return new Promise((function(n,s){const r=t.toString(),o=r.toLowerCase();let a=[];a=e.filter((t,e,n)=>{for(let s=0,a=i.length;s<a;s+=1)if(t[i[s]])if("string"==typeof t[i[s]]){if(t[i[s]].toLowerCase().includes(o))return t[i[s]]}else if(t[i[s]].toString().includes(r))return t[i[s]]}),n(a)}))}findItemsInDateRange(t,e,i,n){return new Promise((function(s,r){let o=[];o=i.filter(i=>{let s=+new Date(i[n]);if(s>=+t&&s<=+e)return i[n]}),s(o)}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();function MN(t,e){if(1&t&&(Oo(0,"mat-option",19),fa(1),Po()),2&t){const t=e.$implicit;Ao("value",t),_s(1),_a(" ",t," ")}}function FN(t,e){if(1&t){const t=Fo();Oo(0,"mat-form-field",16),Oo(1,"mat-select",17),Vo("selectionChange",(function(e){return ri(t),Ho(2)._changePageSize(e.value)})),xo(2,MN,2,2,"mat-option",18),Po(),Po()}if(2&t){const t=Ho(2);Ao("color",t.color),_s(1),Ao("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),_s(1),Ao("ngForOf",t._displayedPageSizeOptions)}}function BN(t,e){if(1&t&&(Oo(0,"div",20),fa(1),Po()),2&t){const t=Ho(2);_s(1),ga(t.pageSize)}}function LN(t,e){if(1&t&&(Oo(0,"div",12),Oo(1,"div",13),fa(2),Po(),xo(3,FN,3,5,"mat-form-field",14),xo(4,BN,2,1,"div",15),Po()),2&t){const t=Ho();_s(2),_a(" ",t._intl.itemsPerPageLabel," "),_s(1),Ao("ngIf",t._displayedPageSizeOptions.length>1),_s(1),Ao("ngIf",t._displayedPageSizeOptions.length<=1)}}function VN(t,e){if(1&t){const t=Fo();Oo(0,"button",21),Vo("click",(function(){return ri(t),Ho().firstPage()})),Di(),Oo(1,"svg",7),No(2,"path",22),Po(),Po()}if(2&t){const t=Ho();Ao("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Co("aria-label",t._intl.firstPageLabel)}}function jN(t,e){if(1&t){const t=Fo();Di(),Ai(),Oo(0,"button",23),Vo("click",(function(){return ri(t),Ho().lastPage()})),Di(),Oo(1,"svg",7),No(2,"path",24),Po(),Po()}if(2&t){const t=Ho();Ao("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Co("aria-label",t._intl.lastPageLabel)}}let zN=(()=>{class t{constructor(){this.changes=new A,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const UN={provide:zN,deps:[[new mt,new gt,zN]],useFactory:function(t){return t||new zN}},$N=new Yt("MAT_PAGINATOR_DEFAULT_OPTIONS");class HN{}const qN=GI(QI(HN));let WN=(()=>{class t extends qN{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new jl,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(xS(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=xS(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(xS(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>xS(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=SS(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=SS(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Io(zN),Io(qr),Io($N,8))},t.\u0275cmp=Se({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[Ca],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),xo(2,LN,5,3,"div",2),Oo(3,"div",3),Oo(4,"div",4),fa(5),Po(),xo(6,VN,3,5,"button",5),Oo(7,"button",6),Vo("click",(function(){return e.previousPage()})),Di(),Oo(8,"svg",7),No(9,"path",8),Po(),Po(),Ai(),Oo(10,"button",9),Vo("click",(function(){return e.nextPage()})),Di(),Oo(11,"svg",7),No(12,"path",10),Po(),Po(),xo(13,jN,3,5,"button",11),Po(),Po(),Po()),2&t&&(_s(2),Ao("ngIf",!e.hidePageSize),_s(3),_a(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),_s(1),Ao("ngIf",e.showFirstLastButtons),_s(1),Ao("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Co("aria-label",e._intl.previousPageLabel),_s(3),Ao("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Co("aria-label",e._intl.nextPageLabel),_s(3),Ao("ngIf",e.showFirstLastButtons))},directives:[cu,jE,TT,wD,CP,au,OE],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),GN=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[UN],imports:[[xu,zE,SP,PT]]}),t})(),YN=(()=>{class t{constructor(t){this._paginationService=t,this.firstEntryOnScreen=0,this.lastEntryOnScreen=0,this.pageSize=10,this.pageSizeOptions=[5,10,25,100]}ngOnInit(){this._paginationService.totalEntries=0,this.firstEntryOnScreen=0,this.entryRange=this._paginationService.entryRange.subscribe(t=>{this.firstEntryOnScreen=t[0],this.lastEntryOnScreen=t[1]})}ngOnDestroy(){this.entryRange.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Io(NN))},t.\u0275cmp=Se({type:t,selectors:[["pagination"]],decls:1,vars:3,consts:[[3,"length","pageSize","pageSizeOptions","page"]],template:function(t,e){1&t&&(Oo(0,"mat-paginator",0),Vo("page",(function(t){return e.pageEvent=t,e._paginationService.updatePage(t.pageIndex,t.pageSize)})),Po()),2&t&&Ao("length",e._paginationService.totalEntries)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)},directives:[WN],encapsulation:2}),t})();function KN(t,e){if(1&t){const t=Fo();Oo(0,"button",16),Vo("click",(function(){return ri(t),Ho().clearTextSearch()})),Oo(1,"mat-icon"),fa(2,"close"),Po(),Po()}}function ZN(t,e){if(1&t){const t=Fo();Oo(0,"tr",17),Vo("click",(function(){ri(t);const i=e.$implicit;return Ho().makeActive(i)})),Oo(1,"td"),Oo(2,"span",18),fa(3,"Security ID: "),No(4,"br",19),Po(),Oo(5,"span"),fa(6),Po(),Po(),Oo(7,"td"),Oo(8,"span",18),fa(9,"Application Date: "),No(10,"br",19),Po(),Oo(11,"span"),fa(12),Fl(13,"date"),Po(),Po(),Oo(14,"td"),Oo(15,"span",18),fa(16," Application Amount: "),No(17,"br",19),Po(),Oo(18,"span"),fa(19),Fl(20,"number"),Po(),Po(),Oo(21,"td"),Oo(22,"span",18),fa(23,"Status: "),No(24,"br",19),Po(),Oo(25,"span"),fa(26),Po(),Po(),Oo(27,"td"),Oo(28,"span",18),fa(29,"Acceptance Details: "),No(30,"br",19),Po(),Oo(31,"span"),fa(32),Fl(33,"date"),Po(),Po(),Oo(34,"td"),Oo(35,"span",18),fa(36,"Amount Accepted: "),No(37,"br",19),Po(),Oo(38,"span"),fa(39),Fl(40,"number"),Po(),Po(),Oo(41,"td"),Oo(42,"span",18),fa(43,"Refun
1d Details: "),No(44,"br",20),Po(),Oo(45,"span"),fa(46),Po(),Po(),Po()}if(2&t){const t=e.$implicit,i=Ho();sa("active",t===i.active),_s(1),sa("highlight","securityIDup"===i.orderByService.sortBy||"securityIDdown"===i.orderByService.sortBy),_s(5),ga(t.securityID),_s(1),sa("highlight","applicationDateup"===i.orderByService.sortBy||"applicationDatedown"===i.orderByService.sortBy),_s(5),ga(Bl(13,23,t.applicationDate,"MM/dd/yyyy")),_s(2),sa("highlight","applicationAmountnup"===i.orderByService.sortBy||"applicationAmountdown"===i.orderByService.sortBy),_s(5),ga(Bl(20,26,t.applicationAmount,"1.2-3")),_s(2),sa("highlight","applicationStatusup"===i.orderByService.sortBy||"applicationStatusdown"===i.orderByService.sortBy),_s(5),ga(t.applicationStatus),_s(1),sa("highlight","acceptanceDetailsup"===i.orderByService.sortBy||"acceptanceDetailsdown"===i.orderByService.sortBy),_s(5),ga(Bl(33,29,t.applicationDate,"MM/dd/yyyy")),_s(2),sa("highlight","amountAcceptedup"===i.orderByService.sortBy||"amountAccepteddown"===i.orderByService.sortBy),_s(5),ga(Bl(40,32,t.applicationAmount,"1.2-3")),_s(2),sa("highlight","refundDetailsup"===i.orderByService.sortBy||"refundDetailsdown"===i.orderByService.sortBy),_s(5),ga(t.refundDetails)}}function XN(t,e){1&t&&(Oo(0,"div"),fa(1,"No Entries Found"),Po())}let QN=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._formBuilder=t,this._router=e,this._authService=i,this.orderByService=n,this._backendservice=s,this._paginationService=r,this.searchService=o,this.datePipe=a,this.defaultSortOrder="",this.active="",this.result="",this.loadingData=!1,this.originalItems=[],this.totalEntries=0,this.pagenlenth=!0,this.audit=[],this.noEntrys=!1,this.searchArray=[],this.searchFilteredItems=[],this.exportItems=[]}ngOnInit(){this.pageLoad(),this.searchArray=["securityID","applicationDate","applicationAmount","applicationStatus"],this.TextSearch=this._formBuilder.group({term:[""]})}pageLoad(){this._backendservice.getData(`${E_.viewApiUrlBase}/${this._authService.NIBNumber}`).subscribe(t=>{this.loadingData=!0,this.originalItems=t.data,this.audit=this.originalItems,this.totalEntries=this.audit.length,this.data1=this.originalItems,0===this.audit.length&&(this.noEntrys=!0),this.setGrid(1,this.totalEntries,"Getdata"),this.orderBy(this.defaultSortOrder),this.paginationGrid()})}makeActive(t){this.active=this.active===t?"":t}formatDataexport(t){t.map(t=>{t.approvedTime=this.datePipe.transform(t.approvedTime.toString(),"MM/dd/yyyy")})}paginationGrid(){this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.originalItems.slice(this.entryRange[0],this.entryRange[1]),this.totalEntries=this.audit.length})}setGrid(t,e,i){const n=e;this.pagenlenth=!1,this._paginationService.setGrid(t,n)}searchText(){this.result=this.TextSearch.controls.term.value,this.searchService.findItemsFromMultiple(this.result,this.originalItems,this.searchArray).then(t=>{this.result.length>0?(this.audit=t,this.searchFilteredItems=t):(this.audit=this.originalItems,this.searchFilteredItems=this.originalItems),this.setGrid(1,this.audit.length,"search"),this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.searchFilteredItems.slice(this.entryRange[0],this.entryRange[1]),this.exportItems=this.originalItems,this.totalEntries=this.audit.length})})}clearTextSearch(){this.TextSearch=this._formBuilder.group({term:[""]}),this.searchText()}orderBy(t){let e=this.originalItems;this.items=this.orderByService.orderByParam(t,e,t===this.defaultSortOrder?void 0:this.defaultSortOrder),this.setGrid(1,e.length)}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(bS),Io(PN),Io(yS),Io(NN),Io(RN),Io(Cu))},t.\u0275cmp=Se({type:t,selectors:[["app-view"]],viewQuery:function(t,e){var i;1&t&&Ql(WN,!0),2&t&&Xl(i=sc())&&(e.paginator=i.first)},features:[La([NN,PN,RN])],decls:37,vars:33,consts:[[1,"container-fluid","pt-2"],[1,"animated","fadeIn","mb-3"],[1,"row"],[1,"col-12","col-md-3"],[1,"w-100",3,"formGroup"],["type","text","matInput","","formControlName","term",3,"keyup"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"animated","zoomIn","table-responsive"],[1,"table","table-hover","table-condensed","table-lt-grey","width-auto"],[1,"cbob-blue-thead","table-bordered","sticky-header"],[1,"headings"],[1,"hwidth",3,"click"],[3,"active","click",4,"ngFor","ngForOf"],[4,"ngIf"],[2,"width","100%",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"click"],[1,"category"],[1,"n
1o-style-break"],[1,"style-break"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"mat-form-field",4),Oo(5,"mat-label"),fa(6,"Search"),Po(),Oo(7,"input",5),Vo("keyup",(function(){return e.searchText()})),Po(),xo(8,KN,3,0,"button",6),Po(),Po(),Po(),Oo(9,"div",7),Oo(10,"table",8),Oo(11,"thead",9),Oo(12,"tr",10),Oo(13,"th",11),Vo("click",(function(){return e.orderBy("securityID")})),fa(14," Security ID "),Po(),Oo(15,"th",11),Vo("click",(function(){return e.orderBy("applicationDate")})),fa(16," Application Date "),Po(),Oo(17,"th",11),Vo("click",(function(){return e.orderBy("applicationAmount")})),fa(18," Application Amount "),Po(),Oo(19,"th",11),Vo("click",(function(){return e.orderBy("applicationStatus")})),fa(20," Status "),Po(),Oo(21,"th",11),Vo("click",(function(){return e.orderBy("acceptanceDetails")})),fa(22," Acceptance Details "),Po(),Oo(23,"th",11),Vo("click",(function(){return e.orderBy("amountAccepted")})),fa(24," Amount Accepted "),Po(),Oo(25,"th",11),Vo("click",(function(){return e.orderBy("refundDetails")})),fa(26," Refund Details "),Po(),Po(),Po(),xo(27,ZN,47,35,"tr",12),Po(),Po(),Po(),Oo(28,"div"),No(29,"pagination"),Po(),xo(30,XN,2,0,"div",13),Po(),Oo(31,"div",14),No(32,"br"),No(33,"mat-spinner",15),No(34,"br"),No(35,"br"),No(36,"br"),Po()),2&t&&(_s(4),Ao("formGroup",e.TextSearch),_s(4),Ao("ngIf",e.TextSearch.controls.term.value),_s(5),sa("sort-up","securityIDup"===e.orderByService.sortBy)("sort-down","securityIDdown"===e.orderByService.sortBy),_s(2),sa("sort-up","applicationDateup"===e.orderByService.sortBy)("sort-down","applicationDatedown"===e.orderByService.sortBy),_s(2),sa("sort-up","applicationAmountup"===e.orderByService.sortBy)("sort-down","applicationAmountdown"===e.orderByService.sortBy),_s(2),sa("sort-up","applicationStatusup"===e.orderByService.sortBy)("sort-down","applicationStatusdown"===e.orderByService.sortBy),_s(2),sa("sort-up","acceptanceDetailsup"===e.orderByService.sortBy)("sort-down","acceptanceDetailsdown"===e.orderByService.sortBy),_s(2),sa("sort-up","amountAcceptedup"===e.orderByService.sortBy)("sort-down","amountAccepteddown"===e.orderByService.sortBy),_s(2),sa("sort-up","refundDetailsup"===e.orderByService.sortBy)("sort-down","aprefundDetailsdown"===e.orderByService.sortBy),_s(2),Ao("ngForOf",e.audit),_s(3),Ao("ngIf",0===e.totalEntries&&!0===e.loadingData),_s(1),Ao("hidden",e.loadingData))},directives:[wD,vd,Ap,dD,OD,dd,yd,Fp,cu,au,YN,zO,jE,fD,gT],pipes:[Cu,Su],styles:[""]}),t})(),JN=(()=>{class t{constructor(t,e,i,n,s,r,o){this._formBuilder=t,this._router=e,this.location=i,this.notificationService=n,this.authService=s,this.backendService=r,this.dialog=o}serverErrorOrTimeout(t){this.notificationService.showNotification({timer:5e3,message:t,type:"error",closeable:!1}),"Session Expired- please log in"===t&&this.authService.logout()}checkLoginStatus(){return S.of(!0)}checkLoginForAuthGuard(){return"true"===sessionStorage.getItem("partial_login")?(this.notificationService.showNotification({timer:5e3,message:"Please finish security process",type:"error",closeable:!1}),S.of(!1).do(()=>this.authService.logout())):this.backendService.getData(`${E_.loginApiUrlBase}/checklogin`).map(t=>(this.checkvalue=t.result,this.authService.loggedIn=!0,this.checkvalue)).catch(t=>S.throw(this.serverErrorOrTimeout(t)))}cancel(t="Update Canceled",e="warning"){this.location.back(),this.notificationService.showNotification({timer:2e3,message:t,type:e})}}return t.\u0275fac=function(e){return new(e||t)(se(Lp),se(t_),se(Sh),se(vS),se(bS),se(yS),se(QA))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})();const tR=function(t){let e=t.value||"";return e?!1===/[A-Z]+/g.test(e)||!1===/[a-z]+/g.test(e)||!1===/[0-9]+/g.test(e)||!1===/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e)?{passwordStrength:"Password must contain at least two of the following: numbers, lowercase letters, uppercase letters, or special characters."}:void 0:null};function eR(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Password should contain at least one uppercase letter, one lowercase letter, one number and one special character and minimum 8 and maximum 20 characters, "),Po())}function iR(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Not a match "),Po())}function nR(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",8),No(2,"input",15),xo(3,iR,2,0,"mat-error",10),Po(),Po()),2&t){const t=Ho();_s(3),Ao("ngIf",t.updatedProfile.controls.ModifyPassword.value!==t.updatedProfile.controls.ConfirmPassword.value)}}let sR=(()=>{class t extends JN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,r,s,o),this._formBulider=t,this._router=e,this.location=i,this.notificationService=n,this.backendService=s,this.authService=r,this.dialog=o,this.passwordStrength=0,this.updatingPassword=!1,this.passwordConfirmed=!0,this.submitted=!1,this.selected_Q1="",this.selected_Q2="",this.securityquestions=[{value:1,viewValue:"What was your childhood nickname?"},{value:2,viewValue:"What was your dream job as a child?"},{value:3,viewValue:"Which is your favorite place to travel?"},{value:4,viewValue:"What is Mother's maiden name?"},{value:5,viewValue:"What was the name of the town/city you were born?"}
1,{value:6,viewValue:"Which high school did you attend?"}],this.setForm()}ngOnInit(){this.getMyProfile()}updateProfiledata2(t){this.backendService.postData(t,`${E_.changePasswordApiUrlBase}/${this.authService.NIBNumber}`).subscribe(t=>{t.result?(this.submitted=!1,this.notificationService.showNotification({message:t.msg,type:"success"}),this.authService.logout()):(this.notificationService.showNotification({message:t.msg,type:"warning"}),this._router.navigate(["/profile"]))},t=>{this.serverErrorOrTimeout(t)})}updateProfile(t){""==t.ModifyPassword?this.notificationService.showNotification({message:"Please Update New Password",type:"warning"}):(this.submitted=!0,this.updatedProfile.valid&&this.passwordConfirmed?this.updateProfiledata2(t):this.notificationService.showNotification({message:"New password and Confirm password does not match.",type:"warning"}))}getMyProfile(){this.backendService.getData(`${E_.changePasswordApiUrlBase}/${this.authService.NIBNumber}`).subscribe(t=>{console.log(t),t||this.notificationService.showNotification({timer:5e3,message:t.msg,type:"error",closeable:!1}),this.updatedProfile.controls.ModifyPassword.valueChanges.debounceTime(200).subscribe(t=>{this.passwordConfirmed=""===t,this.updatingPassword=""!==t}),this.updatedProfile.controls.ConfirmPassword.valueChanges.subscribe(t=>{this.passwordConfirmed=this.updatedProfile.controls.ModifyPassword.value===t})},t=>{this.serverErrorOrTimeout(t)})}cancel(){this.authService.logout()}setForm(){this.updatedProfile=this._formBulider.group({ModifyPassword:["",kd.compose([kd.required,kd.minLength(8),kd.maxLength(20),tR])],ConfirmPassword:["",kd.required]})}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(Sh),Io(vS),Io(yS),Io(bS),Io(QA))},t.\u0275cmp=Se({type:t,selectors:[["app-reset-questions"]],features:[Ca],decls:23,vars:3,consts:[[1,"container"],[1,"col-xs-12"],[1,"animated","fadeIn","mt-5"],["name","updatedProfile","id","updatedProfile","autocomplete","off","novalidate","",3,"formGroup","ngSubmit"],[2,"margin-bottom","3px","margin-top","24px","font-size","0.9970rem"],[1,"input-group-lg"],[1,"row"],[1,"col-md-4"],[1,"w-100"],["matInput","","formControlName","ModifyPassword","name","ModifyPassword","placeholder","New Password","type","password"],[4,"ngIf"],["class","col-md-4",4,"ngIf"],[1,"cent",2,"margin-top","2rem"],["mat-flat-button","","color","primary","type","submit",1,"loginbtn","mr-2"],["mat-flat-button","","color","accent","type","button",1,"loginbtn",3,"click"],["matInput","","formControlName","ConfirmPassword","name","ConfirmPassword","placeholder","Confirm Password","type","password"]],template:function(t,e){1&t&&(No(0,"br"),No(1,"br"),Oo(2,"div",0),Oo(3,"div",1),Oo(4,"div",2),Oo(5,"form",3),Vo("ngSubmit",(function(){return e.updateProfile(e.updatedProfile.value)})),Oo(6,"h2",4),fa(7,"Please reset your password"),Po(),No(8,"br"),Oo(9,"div",5),Oo(10,"div",6),Oo(11,"div",7),Oo(12,"mat-form-field",8),No(13,"input",9),xo(14,eR,2,0,"mat-error",10),Po(),Po(),xo(15,nR,4,1,"div",11),Po(),Po(),No(16,"br"),Oo(17,"div",12),Oo(18,"button",13),fa(19,"Save and Proceed"),Po(),fa(20,"\xa0 "),Oo(21,"button",14),Vo("click",(function(){return e.cancel()})),fa(22,"Cancel"),Po(),Po(),Po(),Po(),Po(),Po()),2&t&&(_s(5),Ao("formGroup",e.updatedProfile),_s(9),Ao("ngIf",e.updatedProfile.controls.ModifyPassword.invalid&&e.updatedProfile.controls.ModifyPassword.value.length>0),_s(1),Ao("ngIf",e.updatingPassword))},directives:[xp,vd,Ap,wD,OD,dd,yd,Fp,cu,jE,oD],styles:[""]}),t})();const rR=function(t){let e=t.value||"";return e?!1===/[A-Z]+/g.test(e)||!1===/[a-z]+/g.test(e)||!1===/[0-9]+/g.test(e)||!1===/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e)?{passwordStrength:"Password must contain at least two of the following: numbers, lowercase letters, uppercase letters, or special characters."}:void 0:null};function oR(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Password should contain at least one uppercase letter, one lowercase letter, one number and one special character and minimum 8 and maximum 20 characters, "),Po())}function aR(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Not a match "),Po())}function lR(t,e){if(1&t&&(Oo(0,"div",7),Oo(1,"mat-form-field",8),No(2,"input",15),xo(3,aR,2,0,"mat-error",10),Po(),Po()),2&t){const t=Ho();_s(3),Ao("ngIf",t.updatedProfile.controls.ModifyPassword.value!==t.updatedProfile.controls.ConfirmPassword.value)}}let cR=(()=>{class t extends JN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._formBuilder=t,this._router=e,this.location=i,this.notificationService=n,this.authService=s,this.backendService=r,this.dialog=o,this.passwordStrength=0,this.updatingPassword=!1,this.passwordConfirmed=!0,this.submitted=!1,this.selected_Q1="",this.selected_Q2="",this.securityquestions=[{value:1,viewValue:"What was your childhood nickname?"},{value:2,viewValue:"What was your dream job as a child?"},{value:3,viewValue:"Which is your favorite place to travel?"},{value:4,viewValue:"What is Mother's maiden name?"},{value:5,viewValue:"What was the name of the town/city you were born?"}
1,{value:6,viewValue:"Which high school did you attend?"}],this.resetQuestions=[],this.setForm()}ngOnInit(){this.getMyProfile()}updateProfiledata(t){""==t.ModifyPassword&&this.notificationService.showNotification({message:"Please Update New Password",type:"warning"}),this.submitted=!0,this.updatedProfile.valid&&this.passwordConfirmed?this.updateProfiledata2(t):this.notificationService.showNotification({message:"New password and Confirm password does not match.",type:"warning"})}updateProfiledata2(t){this.backendService.postData(t,`${E_.changePasswordApiUrlBase}/${this.authService.NIBNumber}`).subscribe(t=>{t.result?(this.submitted=!1,this.notificationService.showNotification({message:t.msg,type:"success"}),this.authService.logout()):(this.notificationService.showNotification({message:t.msg,type:"warning"}),this._router.navigate(["/dashboard/changePassword"]))},t=>{this.serverErrorOrTimeout(t)})}getMyProfile(){this.backendService.getData(`${E_.changePasswordApiUrlBase}/${this.authService.NIBNumber}`).subscribe(t=>{t||this.notificationService.showNotification({timer:5e3,message:t.msg,type:"error",closeable:!1}),this.updatedProfile.controls.ModifyPassword.valueChanges.debounceTime(200).subscribe(t=>{this.passwordConfirmed=""===t,this.updatingPassword=""!==t}),this.updatedProfile.controls.ConfirmPassword.valueChanges.subscribe(t=>{this.passwordConfirmed=this.updatedProfile.controls.ModifyPassword.value===t})},t=>{this.serverErrorOrTimeout(t)})}setSecurityQuestions(t){this.submitted=!0,this.updatedProfile.valid&&this.backendService.putData(t,`${E_.changePasswordApiUrlBase}/updateprofilesecurityquestions`).subscribe(t=>{t?(this.submitted=!1,this.authService.loggedIn=!0,sessionStorage.removeItem("partial_login"),this.notificationService.showNotification({message:t.msg,type:"success"}),this._router.navigate(["/main"])):this.notificationService.showNotification({message:t.msg,type:"error"})},t=>{this.serverErrorOrTimeout(t)})}cancel(){this._router.navigate(["/dashboard"])}setForm(){this.updatedProfile=this._formBuilder.group({ModifyPassword:["",kd.compose([kd.required,kd.minLength(8),kd.maxLength(20),rR])],ConfirmPassword:["",kd.required]})}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(Sh),Io(vS),Io(bS),Io(yS),Io(QA))},t.\u0275cmp=Se({type:t,selectors:[["app-profile"]],features:[Ca],decls:23,vars:3,consts:[[1,"container"],[1,"col-xs-12"],[1,"animated","fadeIn","mt-5"],["name","updatedProfile","id","updatedProfile","autocomplete","off","novalidate","",3,"formGroup","ngSubmit"],[2,"margin-bottom","3px","margin-top","24px","font-size","0.9970rem"],[1,"input-group-lg"],[1,"row"],[1,"col-md-4"],[1,"w-100"],["matInput","","formControlName","ModifyPassword","name","ModifyPassword","placeholder","New Password","type","password"],[4,"ngIf"],["class","col-md-4",4,"ngIf"],[1,"cent",2,"margin-top","2rem"],["mat-flat-button","","color","primary","type","submit",1,"loginbtn","mr-2"],["mat-flat-button","","color","accent","type","button",1,"loginbtn",3,"click"],["matInput","","formControlName","ConfirmPassword","name","ConfirmPassword","placeholder","Confirm Password","type","password"]],template:function(t,e){1&t&&(No(0,"br"),No(1,"br"),Oo(2,"div",0),Oo(3,"div",1),Oo(4,"div",2),Oo(5,"form",3),Vo("ngSubmit",(function(){return e.updateProfiledata(e.updatedProfile.value)})),Oo(6,"h2",4),fa(7,"Please reset your password"),Po(),No(8,"br"),Oo(9,"div",5),Oo(10,"div",6),Oo(11,"div",7),Oo(12,"mat-form-field",8),No(13,"input",9),xo(14,oR,2,0,"mat-error",10),Po(),Po(),xo(15,lR,4,1,"div",11),Po(),Po(),No(16,"br"),Oo(17,"div",12),Oo(18,"button",13),fa(19,"Save and Proceed"),Po(),fa(20,"\xa0 "),Oo(21,"button",14),Vo("click",(function(){return e.cancel()})),fa(22,"Cancel"),Po(),Po(),Po(),Po(),Po(),Po()),2&t&&(_s(5),Ao("formGroup",e.updatedProfile),_s(9),Ao("ngIf",e.updatedProfile.controls.ModifyPassword.invalid&&e.updatedProfile.controls.ModifyPassword.value.length>0),_s(1),Ao("ngIf",e.updatingPassword))},directives:[xp,vd,Ap,wD,OD,dd,yd,Fp,cu,jE,oD],encapsulation:2}),t})();const hR=["*"];class uR{constructor(t){this._elementRef=t}}const dR=ZI(YI(KI(GI(uR)),"primary"),-1);let pR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),mR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),fR=(()=>{class t extends dR{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._selected=!1,this._selectable=!0,this._removable=!0,this._onFocus=new A,this._onBlur=new A,this.selectionChange=new jl,this.destroyed=new jl,this.removed=new jl,this._addHostClassName(),this._chipRippleTarget=(a||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _E(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===s,this.tabIndex=null!=o&&parseInt(o)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=SS(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=SS(t)}get removable(){return this._removable}set removable(t){this._removable=SS(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}
1ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(bm(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(Tc),Io(AS),Io(bE,8),Io(BI,8),Io(qr),Eo("tabindex"),Io(lh,8))},t.\u0275dir=Ae({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(ec(i,pR,!0),ec(i,mR,!0),ec(i,gR,!0)),2&t&&(Xl(n=sc())&&(e.avatar=n.first),Xl(n=sc())&&(e.trailingIcon=n.first),Xl(n=sc())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&Vo("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(Co("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),sa("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Ca]}),t})(),gR=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(Io(fR),Io(Ua))},t.\u0275dir=Ae({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&Vo("click",(function(t){return e._handleClick(t)}))}}),t})();const _R=new Yt("mat-chips-default-options");class bR{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yR=XI(bR);let vR=0;class wR{constructor(t,e){this.source=t,this.value=e}}let CR=(()=>{class t extends yR{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new A,this._uid=`mat-chip-list-${vR++}`,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new jl,this.valueChange=new jl,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=SS(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=SS(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=SS(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=SS(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return tt(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return tt(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return tt(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return tt(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new GS(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(gC(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(gC(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Am(null),gC(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new KD(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&t<this.chips.length}_isInputEmpty(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}_setSelectionByValue(t,e=!0){if(this._clearSelection(),this.chips.forEach(t=>t.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e
1=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new wR(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t.disabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(Io(Ua),Io(qr),Io(dx,8),Io(fp,8),Io(Ap,8),Io(dE),Io(_d,10))},t.\u0275cmp=Se({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&ec(i,fR,!0),2&t&&Xl(n=sc())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&Vo("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(ya("id",e._uid),Co("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),sa("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[La([{provide:lD,useExisting:t}]),Ca],ngContentSelectors:hR,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Wo(),Oo(0,"div",0),Go(1),Po())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}
1.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const SR={separatorKeyCodes:[13]};let xR=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[dE,{provide:_R,useValue:SR}]}),t})();function kR(t,e){1&t&&(Oo(0,"div",28),Oo(1,"h2",30),fa(2,"Individual Account "),Po(),Po())}function IR(t,e){1&t&&(Oo(0,"div",28),Oo(1,"h2",30),fa(2,"Business Account "),Po(),Po())}function ER(t,e){1&t&&(Oo(0,"mat-error"),fa(1," Password should contain at least one uppercase letter, one lowercase letter, one number and one special character and minimum 8 and maximum 12 characters, "),Po())}function DR(t,e){if(1&t&&(Oo(0,"div",31),Oo(1,"mat-form-field",9),Oo(2,"mat-label"),fa(3,"Password"),Po(),No(4,"input",32),xo(5,ER,2,0,"mat-error",33),Po(),Po()),2&t){const t=Ho(2);_s(5),Ao("ngIf",t.accountForm.controls.NewPassword.invalid)}}function AR(t,e){1&t&&(Oo(0,"div",31),Oo(1,"mat-form-field",9),Oo(2,"mat-label"),fa(3,"ConfirmPassword"),Po(),No(4,"input",34),Po(),Po())}function TR(t,e){if(1&t){const t=Fo();Oo(0,"div",8),Oo(1,"mat-form-field",9),Oo(2,"mat-label"),fa(3,"Driver\u2019s License & InsuranceCard Number"),Po(),Oo(4,"input",35),Vo("ngModelChange",(function(e){return ri(t),Ho(2).PassportNumber=e})),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(4),Ao("ngModel",t.PassportNumber)}}function OR(t,e){if(1&t){const t=Fo();Oo(0,"div",8),Oo(1,"mat-form-field",9),Oo(2,"mat-label"),fa(3,"Passport Number"),Po(),Oo(4,"input",35),Vo("ngModelChange",(function(e){return ri(t),Ho(2).PassportNumber=e})),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(4),Ao("ngModel",t.PassportNumber)}}function PR(t,e){if(1&t){const t=Fo();Oo(0,"div",8),Oo(1,"mat-form-field",18),Oo(2,"mat-label"),fa(3,"Expiration Date"),Po(),Oo(4,"input",36),Vo("ngModelChange",(function(e){return ri(t),Ho(2).clientdata.expiryDate=e})),Po(),No(5,"mat-datepicker-toggle",37),No(6,"mat-datepicker",null,38),Po(),Po()}if(2&t){const t=ko(7),e=Ho(2);_s(4),Ao("matDatepicker",t)("ngModel",e.clientdata.expiryDate),_s(1),Ao("for",t)}}function NR(t,e){if(1&t&&(Oo(0,"mat-form-field",18),Oo(1,"mat-label"),fa(2,"Expiration Date"),Po(),No(3,"input",39),No(4,"mat-datepicker-toggle",37),No(5,"mat-datepicker",null,38),Po()),2&t){const t=ko(6);_s(3),Ao("matDatepicker",t),_s(1),Ao("for",t)}}function RR(t,e){if(1&t){const t=Fo();Oo(0,"div",8),Oo(1,"mat-form-field",18),Oo(2,"mat-label"),fa(3,"Birthday"),Po(),Oo(4,"input",40),Vo("ngModelChange",(function(e){return ri(t),Ho(2).clientdata.birthday=e})),Po(),No(5,"mat-datepicker-toggle",37),No(6,"mat-datepicker",null,41),Po(),Po()}if(2&t){const t=ko(7),e=Ho(2);_s(4),Ao("matDatepicker",t)("ngModel",e.clientdata.birthday),_s(1),Ao("for",t)}}function MR(t,e){if(1&t&&(Oo(0,"mat-form-field",18),Oo(1,"mat-label"),fa(2,"Birthday"),Po(),No(3,"input",42),No(4,"mat-datepicker-toggle",37),No(5,"mat-datepicker",null,41),Po()),2&t){const t=ko(6);_s(3),Ao("matDatepicker",t),_s(1),Ao("for",t)}}function FR(t,e){if(1&t){const t=Fo();Oo(0,"div",43),Oo(1,"h4",44),fa(2," Banking Info"),No(3,"label",19),Po(),Oo(4,"div",6),Oo(5,"div",8),Oo(6,"mat-form-field",9),Oo(7,"mat-label"),fa(8,"Bank Name "),Po(),Oo(9,"input",45),Vo("ngModelChange",(function(e){return ri(t),Ho(2).bankname=e})),Po(),Po(),Po(),Oo(10,"div",8),Oo(11,"mat-form-field",9),Oo(12,"mat-label"),fa(13,"Branch "),Po(),Oo(14,"input",46),Vo("ngModelChange",(function(e){return ri(t),Ho(2).branch=e})),Po(),Po(),Po(),Oo(15,"div",8),Oo(16,"mat-form-field",9),Oo(17,"mat-label"),fa(18,"Account Number "),Po(),Oo(19,"input",47),Vo("ngModelChange",(function(e){return ri(t),Ho(2).accountnumber=e})),Po(),Po(),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(9),Ao("ngModel",t.bankname),_s(5),Ao("ngModel",t.branch),_s(5),Ao("ngModel",t.accountnumber)}}function BR(t,e){if(1&t){const t=Fo();Oo(0,"mat-chip",52),Vo("click",(function(){return ri(t),Ho(3).btnclickevent1()})),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po()}}function LR(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",56),Vo("change",(function(e){return ri(t),Ho(3).onFileChange(e)}
vendor: 7,018 bytes, line 1
1)),Po(),Oo(3,"label",57),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(3);_s(4),ga(t.fileInput)}}function VR(t,e){if(1&t&&(Oo(0,"div",6),Oo(1,"div",28),Oo(2,"h4",44),fa(3," Upload Passport"),Po(),Po(),Oo(4,"div",48),Oo(5,"mat-chip-list",49),xo(6,BR,4,0,"mat-chip",50),Po(),Po(),Oo(7,"div",28),xo(8,LR,5,1,"div",51),Po(),Po()),2&t){const t=Ho(2);_s(6),Ao("ngIf",t.Passport),_s(2),Ao("ngIf",!t.Passport)}}function jR(t,e){1&t&&(Oo(0,"mat-chip"),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po())}function zR(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",58),Vo("change",(function(e){return ri(t),Ho(3).onFileChangeDriversLicense(e)})),Po(),Oo(3,"label",59),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(3);_s(4),ga(t.DriversLicensefileInput)}}function UR(t,e){1&t&&(Oo(0,"mat-chip"),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po())}function $R(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",60),Vo("change",(function(e){return ri(t),Ho(3).onFileChangeNationalInsuranceCard(e)})),Po(),Oo(3,"label",61),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(3);_s(4),ga(t.NationalInsuranceCardfileInput)}}function HR(t,e){if(1&t&&(Oo(0,"div",6),Oo(1,"div",28),Oo(2,"h4",44),fa(3,"Upload Driver\u2019s License"),Po(),Po(),Oo(4,"div",48),Oo(5,"mat-chip-list",49),xo(6,jR,4,0,"mat-chip",33),Po(),Po(),Oo(7,"div",28),xo(8,zR,5,1,"div",51),Po(),fa(9,"\xa0 "),Oo(10,"div",28),Oo(11,"h4",44),fa(12,"Upload National Insurance Card"),Po(),Po(),Oo(13,"div",48),Oo(14,"mat-chip-list",49),xo(15,UR,4,0,"mat-chip",33),Po(),Po(),Oo(16,"div",28),xo(17,$R,5,1,"div",51),Po(),Po()),2&t){const t=Ho(2);_s(6),Ao("ngIf",t.DriversLicense),_s(2),Ao("ngIf",!t.DriversLicense),_s(7),Ao("ngIf",t.National),_s(2),Ao("ngIf",!t.National)}}function qR(t,e){if(1&t){const t=Fo();Oo(0,"div",8),Oo(1,"h6",44),Oo(2,"strong"),fa(3,"Identification Type "),Oo(4,"label",19),fa(5,"*"),Po(),Po(),Po(),Oo(6,"div",62),Oo(7,"mat-radio-group",63),Vo("change",(function(e){return ri(t),Ho(2).IdentificationradioChange(e)})),Oo(8,"mat-radio-button",64),fa(9," Passport "),Po(),Oo(10,"mat-radio-button",65),fa(11,"Driver\u2019s License AND National Insurance Card "),Po(),Po(),Po(),Po()}}function WR(t,e){if(1&t){const t=Fo();Oo(0,"div",28),Oo(1,"h4",44),fa(2,"Upload Passport "),Oo(3,"span",66),Oo(4,"label",19),Oo(5,"h5"),fa(6,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(7,"div",54),Oo(8,"div",55),Oo(9,"input",56),Vo("change",(function(e){return ri(t),Ho(2).onFileChange(e)})),Po(),Oo(10,"label",57),fa(11),Po(),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(11),ga(t.fileInput)}}function GR(t,e){if(1&t){const t=Fo();Oo(0,"div",28),Oo(1,"h4",44),fa(2," Upload Driver\u2019s License "),Oo(3,"span",66),Oo(4,"label",19),Oo(5,"h5",44),fa(6,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(7,"div",54),Oo(8,"div",55),Oo(9,"input",58),Vo("change",(function(e){return ri(t),Ho(2).onFileChangeDriversLicense(e)})),Po(),Oo(10,"label",59),fa(11),Po(),Po(),Po(),fa(12,"\xa0 "),Oo(13,"h4",44),fa(14," Upload National Insurance Card "),Oo(15,"span",66),Oo(16,"label",19),Oo(17,"h5",44),fa(18,"(JPG and PDF files are allowed)"),Po(),Po(),Po(),Po(),Oo(19,"div",54),Oo(20,"div",55),Oo(21,"input",60),Vo("change",(function(e){return ri(t),Ho(2).onFileChangeNationalInsuranceCard(e)})),Po(),Oo(22,"label",61),fa(23),Po(),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(11),ga(t.DriversLicensefileInput),_s(12),ga(t.NationalInsuranceCardfileInput)}}function YR(t,e){if(1&t){const t=Fo();Oo(0,"form",5),Vo("ngSubmit",(function(){ri(t);const e=Ho();return e.updateAccount(e.accountForm.value)})),Oo(1,"div",6),xo(2,kR,3,0,"div",7),xo(3,IR,3,0,"div",7),Oo(4,"div",8),Oo(5,"mat-form-field",9),Oo(6,"mat-label"),fa(7,"NIB Number"),Po(),Oo(8,"input",10),Vo("ngModelChange",(function(e){return ri(t),Ho().NIBNumber=e})),Po(),Po(),Po(),Oo(9,"div",11),Oo(10,"mat-checkbox",12),Vo("change",(function(e){return ri(t),Ho().OnCheckboxChange(e)})),fa(11,"Update Password"),Po(),Po(),xo(12,DR,6,1,"div",13),xo(13,AR,5,0,"div",13),Oo(14,"div",8),Oo(15,"mat-form-field",9),Oo(16,"mat-label"),fa(17,"First Name"),Po(),Oo(18,"input",14),Vo("ngModelChange",(function(e){return ri(t),Ho().FirstName=e})),Po(),Po(),Po(),Oo(19,"div",8),Oo(20,"mat-form-field",9),Oo(21,"mat-label"),fa(22,"Middle Name"),Po(),Oo(23,"input",15),Vo("ngModelChange",(function(e){return ri(t),Ho().MiddleName=e})),Po(),Po(),Po(),Oo(24,"div",8),Oo(25,"mat-form-field",9),Oo(26,"mat-label"),fa(27,"Last Name"),Po(),Oo(28,"input",16),Vo("ngModelChange",(function(e){return ri(t),Ho().LastName=e})),Po(),Po(),Po(),Oo(29,"div",8),Oo(30,"mat-form-field",9),Oo(31,"mat-label"),fa(32,"Email"),Po(),Oo(33,"input",17),Vo("ngModelChange",(function(e){return ri(t),Ho().Email=e})),Po(),Po(),Po(),Oo(34,"div",8),Oo(35,"mat-form-field",18),Oo(36,"mat-label"),fa(37,"Phone Number "),Oo(38,"label",19),fa(39,"*"),Po(),Po(),Oo(40,"input",20),Vo("ngModelChange",(function(e){return ri(t),Ho().phone=e})),Po(),Po(),Po(),Oo(41,"div",8),Oo(42,"mat-form-field",18),Oo(43,"mat-label"),fa(44,"Address "),Oo(45,"label",19),fa(46,"*"),Po(),Po(),Oo(47,"textarea",21),Vo("ngModelChange",(function(e){return ri(t),Ho().address=e})),Po(),Po(),Po(),Oo(48,"div",8),Oo(49,"mat-form-field",18),Oo(50,"mat-label"),fa(51,"Occupation/Source of Income "),Po(),Oo(52,"input",22),Vo("ngModelChange",(function(e){return ri(t),Ho().Occupation=e})),Po(),Po(),Po(),xo(53,TR,5,1,"div",23),xo(54,OR,5,1,"div",23),xo(55,PR,8,3,"div",23),Oo(56,"div",8),xo(57,NR,7,2,"mat-form-field",24),Po(),Po(),Oo(58,"div",6),xo(59,RR,8,3,"div",23),Oo(60,"div",8),Oo(61,"mat-form-field",18),Oo(62,"mat-label"),fa(63,"Request "),Oo(64,"label",19),fa(65,"*"),Po(),Po(),Oo(66,"textarea",25),Vo("ngModelChange",(function(e){return ri(t),Ho().request=e})),Po(),Po(),Po(),Oo(67,"div",8),xo(68,MR,7,2,"mat-form-field",24),Po(),Po(),No(69,"div",8),xo(70,FR,20,3,"div",26),No(71,"div",8),xo(72,VR,9,2,"div",27),xo(73,HR,18,4,"div",27),xo(74,qR,12,0,"div",23),xo(75,WR,12,1,"div",7),xo(76,GR,24,2,"div",7),Oo(77,"div",28),Oo(78,"button",29),fa(79,"Request Change"),Po(),fa(80,"\xa0 "),Po(),Po()}if(2&t){const t=Ho();Ao("formGroup",t.accountForm),_s(2),Ao("ngIf",t.Individual),_s(1),Ao("ngIf",t.Business),_s(5),Ao("ngModel",t.NIBNumber),_s(4),Ao("ngIf",t.updatePassword),_s(1),Ao("ngIf",t.updatePassword),_s(5),Ao("ngModel",t.FirstName),_s(5),Ao("ngModel",t.MiddleName),_s(5),Ao("ngModel",t.LastName),_s(5),Ao("ngModel",t.Email),_s(7),Ao("ngModel",t.phone),_s(7),Ao("ngModel",t.address),_s(5),Ao("ngModel",t.Occupation),_s(1),Ao("ngIf",t.drivingLincenceNumberEnable),_s(1),Ao("ngIf",t.passportNumberEnable),_s(1),Ao("ngIf",t.expirydate),_s(2),Ao("ngIf",t.expirydates),_s(2),Ao("ngIf",t.Date),_s(7),Ao("ngModel",t.request),_s(2),Ao("ngIf",t.Dates),_s(2),Ao("ngIf",t.hidebankdetails),_s(2),Ao("ngIf",t.uploadpassportfiles),_s(1),Ao("ngIf",t.UploadNationalInsurancefiles),_s(1),Ao("ngIf",!t.uploadpassportfiles&&!t.UploadNationalInsurancefiles),_s(1),Ao("ngIf",t.reuploadpassportfiles),_s(1),Ao("ngIf",t.reUploadNationalInsurancefiles)}}
vendor: 5,847 bytes, line 1
1function KR(t,e){1&t&&(Oo(0,"div",28),Oo(1,"h2",30),fa(2,"Individual Account "),Po(),Po())}function ZR(t,e){1&t&&(Oo(0,"div",28),Oo(1,"h2",30),fa(2,"Business Account "),Po(),Po())}function XR(t,e){1&t&&(Oo(0,"mat-chip"),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po())}function QR(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",56),Vo("change",(function(e){return ri(t),Ho(2).onFileChange(e)})),Po(),Oo(3,"label",57),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(4),ga(t.fileInput)}}function JR(t,e){1&t&&(Oo(0,"mat-chip"),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po())}function tM(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",56),Vo("change",(function(e){return ri(t),Ho(2).onFileChange(e)})),Po(),Oo(3,"label",57),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(4),ga(t.fileInput)}}function eM(t,e){1&t&&(Oo(0,"mat-chip"),fa(1," File Uploaded "),Oo(2,"mat-icon",53),fa(3,"cancel"),Po(),Po())}function iM(t,e){if(1&t){const t=Fo();Oo(0,"div",54),Oo(1,"div",55),Oo(2,"input",56),Vo("change",(function(e){return ri(t),Ho(2).onFileChange(e)})),Po(),Oo(3,"label",57),fa(4),Po(),Po(),Po()}if(2&t){const t=Ho(2);_s(4),ga(t.fileInput)}}function nM(t,e){if(1&t){const t=Fo();Oo(0,"form",67),Vo("ngSubmit",(function(){ri(t);const e=Ho();return e.updateBusinessAccount(e.businessaccountForm.value)})),Oo(1,"div",6),xo(2,KR,3,0,"div",7),xo(3,ZR,3,0,"div",7),Oo(4,"div",8),Oo(5,"mat-form-field",9),Oo(6,"mat-label"),fa(7,"NIB Number"),Po(),Oo(8,"input",68),Vo("ngModelChange",(function(e){return ri(t),Ho().IdNumber=e})),Po(),Po(),Po(),Oo(9,"div",8),Oo(10,"mat-form-field",9),Oo(11,"mat-label"),fa(12,"Business Name "),Oo(13,"label",19),fa(14,"*"),Po(),Po(),Oo(15,"input",69),Vo("ngModelChange",(function(e){return ri(t),Ho().BusinessName=e})),Po(),Po(),Po(),Oo(16,"div",8),Oo(17,"mat-form-field",9),Oo(18,"mat-label"),fa(19,"Trading As (optional) "),Po(),Oo(20,"input",70),Vo("ngModelChange",(function(e){return ri(t),Ho().Trading=e})),Po(),Po(),Po(),Oo(21,"div",71),Oo(22,"mat-form-field",9),Oo(23,"mat-label"),fa(24,"Business Type "),Oo(25,"label",19),fa(26,"* "),Po(),Po(),Oo(27,"input",72),Vo("ngModelChange",(function(e){return ri(t),Ho().BusinessType=e})),Po(),Po(),Po(),Oo(28,"div",8),Oo(29,"mat-form-field",9),Oo(30,"mat-label"),fa(31," Business Address "),Oo(32,"label",19),fa(33,"*"),Po(),Po(),Oo(34,"textarea",73),Vo("ngModelChange",(function(e){return ri(t),Ho().BusinessAddress=e})),Po(),Po(),Po(),Oo(35,"div",8),Oo(36,"mat-form-field",9),Oo(37,"mat-label"),fa(38," Business Email Address "),Oo(39,"label",19),fa(40,"*"),Po(),Po(),Oo(41,"input",74),Vo("ngModelChange",(function(e){return ri(t),Ho().BusinessEmail=e})),Po(),Po(),Po(),Oo(42,"div",8),Oo(43,"mat-form-field",18),Oo(44,"mat-label"),fa(45,"Date of Inception"),Po(),Oo(46,"input",75),Vo("ngModelChange",(function(e){return ri(t),Ho().dbDate=e})),Po(),No(47,"mat-datepicker-toggle",37),No(48,"mat-datepicker",null,38),Po(),Po(),Po(),Oo(50,"div",43),Oo(51,"h4",44),fa(52," Primary Contacts"),No(53,"label",19),Po(),Oo(54,"div",6),Oo(55,"div",8),Oo(56,"mat-form-field",9),Oo(57,"mat-label"),fa(58," Name "),Oo(59,"label",19),fa(60,"*"),Po(),Po(),Oo(61,"input",76),Vo("ngModelChange",(function(e){return ri(t),Ho().PrimaryName=e})),Po(),Po(),Po(),Oo(62,"div",8),Oo(63,"mat-form-field",9),Oo(64,"mat-label"),fa(65," Email Address "),Oo(66,"label",19),fa(67,"*"),Po(),Po(),Oo(68,"input",77),Vo("ngModelChange",(function(e){return ri(t),Ho().PrimaryEmail=e})),Po(),Po(),Po(),Oo(69,"div",8),Oo(70,"mat-form-field",9),Oo(71,"mat-label"),fa(72," Phone "),Oo(73,"label",19),fa(74,"*"),Po(),Po(),Oo(75,"input",78),Vo("ngModelChange",(function(e){return ri(t),Ho().PrimaryPhone=e})),Po(),Po(),Po(),Po(),Po(),Oo(76,"div",43),Oo(77,"h4",44),fa(78," Secondary Contacts "),Po(),Oo(79,"div",6),Oo(80,"div",8),Oo(81,"mat-form-field",9),Oo(82,"mat-label"),fa(83," Name "),Po(),Oo(84,"input",79),Vo("ngModelChange",(function(e){return ri(t),Ho().SecondaryName=e})),Po(),Po(),Po(),Oo(85,"div",8),Oo(86,"mat-form-field",9),Oo(87,"mat-label"),fa(88," Email Address"),Po(),Oo(89,"input",80),Vo("ngModelChange",(function(e){return ri(t),Ho().SecondaryEmail=e})),Po(),Po(),Po(),Oo(90,"div",8),Oo(91,"mat-form-field",9),Oo(92,"mat-label"),fa(93," Phone "),Po(),Oo(94,"input",81),Vo("ngModelChange",(function(e){return ri(t),Ho().SecondaryPhone=e})),Po(),Po(),Po(),Po(),Po(),No(95,"div",8),Oo(96,"div",43),Oo(97,"h4",44),fa(98," Banking Info"),No(99,"label",19),Po(),Oo(100,"div",6),Oo(101,"div",8),Oo(102,"mat-form-field",9),Oo(103,"mat-label"),fa(104,"Bank Name "),Po(),Oo(105,"input",82),Vo("ngModelChange",(function(e){return ri(t),Ho().bankname=e})),Po(),Po(),Po(),Oo(106,"div",8),Oo(107,"mat-form-field",9),Oo(108,"mat-label"),fa(109,"Branch "),Po(),Oo(110,"input",83),Vo("ngModelChange",(function(e){return ri(t),Ho().branch=e})),Po(),Po(),Po(),Oo(111,"div",8),Oo(112,"mat-form-field",9),Oo(113,"mat-label"),fa(114,"Account Number "),Po(),Oo(115,"input",84),Vo("ngModelChange",(function(e){return ri(t),Ho().accountnumber=e})),Po(),Po(),Po(),Po(),Po(),No(116,"div",8),Oo(117,"div",6),Oo(118,"div",28),Oo(119,"h4",44),fa(120,"Beneficial Owner details (articles of incorporation or equivalent)"),Po(),Po(),Oo(121,"div",48),Oo(122,"mat-chip-list",49),xo(123,XR,4,0,"mat-chip",33),Po(),Po(),Oo(124,"div",28),xo(125,QR,5,1,"div",51),Po(),Oo(126,"div",28),Oo(127,"h4",44),fa(128,"Authorized Signatories and specimen signatures"),Po(),Po(),Oo(129,"div",48),Oo(130,"mat-chip-list",49),xo(131,JR,4,0,"mat-chip",33),Po(),Po(),Oo(132,"div",28),xo(133,tM,5,1,"div",51),Po(),Oo(134,"div",28),Oo(135,"h4",44),fa(136,"Business license/VAT registration"),Po(),Po(),Oo(137,"div",48),Oo(138,"mat-chip-list",49),xo(139,eM,4,0,"mat-chip",33),Po(),Po(),Oo(140,"div",28),xo(141,iM,5,1,"div",51),Po(),Po(),Po()}if(2&t){const t=ko(49),e=Ho();
1Ao("formGroup",e.businessaccountForm),_s(2),Ao("ngIf",e.Individual),_s(1),Ao("ngIf",e.Business),_s(5),Ao("ngModel",e.IdNumber),_s(7),Ao("ngModel",e.BusinessName),_s(5),Ao("ngModel",e.Trading),_s(7),Ao("ngModel",e.BusinessType),_s(7),Ao("ngModel",e.BusinessAddress),_s(7),Ao("ngModel",e.BusinessEmail),_s(5),Ao("matDatepicker",t)("ngModel",e.dbDate),_s(1),Ao("for",t),_s(14),Ao("ngModel",e.PrimaryName),_s(7),Ao("ngModel",e.PrimaryEmail),_s(7),Ao("ngModel",e.PrimaryPhone),_s(9),Ao("ngModel",e.SecondaryName),_s(5),Ao("ngModel",e.SecondaryEmail),_s(5),Ao("ngModel",e.SecondaryPhone),_s(11),Ao("ngModel",e.bankname),_s(5),Ao("ngModel",e.branch),_s(5),Ao("ngModel",e.accountnumber),_s(8),Ao("ngIf",e.Passport),_s(2),Ao("ngIf",!e.Passport),_s(6),Ao("ngIf",e.Passport),_s(2),Ao("ngIf",!e.Passport),_s(6),Ao("ngIf",e.Passport),_s(2),Ao("ngIf",!e.Passport)}}let sM=(()=>{class t{constructor(t,e,i,n,s,r,o){this._backendservice=t,this._authService=e,this._formBuilder=i,this._datePipe=n,this._alert=s,this._notificationService=r,this._router=o,this.updatePassword=!1,this.fileInput="'Upload Passport*",this.driversfileInput=["Select Scanned Copy*","Select Scanned Copy*"],this.nationalfileInput=["Select Scanned Copy*","Select Scanned Copy*"],this.Birthday=new hp,this.loadingData1=!0,this.uploadpassportfiles=!1,this.UploadNationalInsurancefiles=!1,this.reuploadpassportfiles=!1,this.reUploadNationalInsurancefiles=!1,this.DriversLicensefileInput="Upload Driver\u2019s License**",this.NationalInsuranceCardfileInput="Upload National Insurance Card**",this.Individual=!1,this.Business=!1,this.hidebankdetails=!1,this.passportNumberEnable=!1,this.drivingLincenceNumberEnable=!1}ngOnInit(){this.setForm(),this.setForm1(),this.pageLoad(),this.getDocuments(),this.getDocuments2()}formatDatabusiness(t){t.map(t=>{t.dateofInception=this._datePipe.transform(t.dateofInception.toString(),"MM/dd/yyyy")})}pageLoad(){this.loadingData1=!1,"Individual"==this._authService.LoginType?(this.Individual=!0,this.Business=!1,this._backendservice.getData(`${E_.accountApiUrlBase}/${this._authService.NIBNumber}/${this._authService.LoginType}`).subscribe(t=>{this.loadingData1=!0,this.formatData(t.data),this.clientdata=t.data,this.getEmailAddress=t.email,this.Identifications=this.clientdata[0].identificationtype,"0 "==this.clientdata[0].identificationtype?(this.uploadpassportfiles=!0,this.UploadNationalInsurancefiles=!1,this.passportNumberEnable=!0,this.drivingLincenceNumberEnable=!1):"1 "==this.clientdata[0].identificationtype?(this.UploadNationalInsurancefiles=!0,this.uploadpassportfiles=!1,this.passportNumberEnable=!1,this.drivingLincenceNumberEnable=!0):(this.UploadNationalInsurancefiles=!1,this.uploadpassportfiles=!1),this.NIBNumber=this.clientdata[0].nibNumber,this.FirstName=this.clientdata[0].firstName,this.MiddleName=this.clientdata[0].middleName,this.LastName=this.clientdata[0].lastName,this.Email=this.clientdata[0].email,this.Occupation=this.clientdata[0].occupation,this.getEmailAddress==this.Email&&(this.hidebankdetails=!0),this.PassportNumber=this.clientdata[0].passPortNumber,this.Date=this.clientdata[0].birthday,this.expirydate=this.clientdata[0].expiryDate,this.phone=this.clientdata[0].individualPhone,this.address=this.clientdata[0].individualAddress,this.request=this.clientdata[0].request,this.bankname=this.clientdata[0].bankname,this.branch=this.clientdata[0].branch,this.accountnumber=this.clientdata[0].accountnumber;let e="";if(this.accountnumber){for(let i=0;i<this.accountnumber.trim().length-4;i++)e+="*";let t=this.accountnumber.trim().length;this.accountnumber=e+this.accountnumber.trim().slice(t-4,t)}null==this.clientdata[0].birthday?(this.Date=!1,this.Dates=!0):(this.Date=!0,this.Dates=!1),this.clientdata.birthday=new Date(this.clientdata[0].birthday),null==this.clientdata[0].expiryDate?(this.expirydate=!1,this.expirydates=!0):(this.expirydate=!0,this.expirydates=!1),this.clientdata.expiryDate=new Date(this.clientdata[0].expiryDate)})):(this.Business=!0,this.Individual=!1,this._backendservice.getData(`${E_.accountApiUrlBase}/${this._authService.NIBNumber}/${this._authService.LoginType}`).subscribe(t=>{this.loadingData1=!0,this.formatDatabusiness(t.businessdata),this.businessdatas=t.businessdata,this.IdNumber=this.businessdatas[0].nibNumber,this.BusinessName=this.businessdatas[0].bname,this.Trading=this.businessdatas[0].trading,this.BusinessType=this.businessdatas[0].btype,this.BusinessAddress=this.businessdatas[0].baddress,this.BusinessEmail=this.businessdatas[0].bemailaddress,this.DateofInception=this.businessdatas[0].dateofInception,this.PrimaryPhone=this.businessdatas[0].bPphone,this.PrimaryName=this.businessdatas[0].bPname,this.PrimaryEmail=this.businessdatas[0].bPemailaddress,this.SecondaryPhone=this.businessdatas[0].sBphone,this.SecondaryName=this.businessdatas[0].sBname,this.SecondaryEmail=this.businessdatas[0].sBemailaddress,this.bankname=this.businessdatas[0].bbankname,this.branch=this.businessdatas[0].bbranch,this.accountnumber=this.businessdatas[0].baccountnumber;let e="";if(this.accountnumber){for(let i=0;i<this.accountnumber.trim().length-4;i++)e+="*";let t=this.accountnumber.trim().length;this.accountnumber=e+this.accountnumber.trim().slice(t-4,t)}null==this.businessdatas[0].dateofInception?(this.DateInception=!1,this.DatesInception=!0):(this.DateInception=!0,this.DatesInception=!1),this.businessdatas.dateofInception=new Date(this.businessdatas[0].dateofInception),this.dbDate=new Date(this.businessdatas[0].dateofInception)}))}updateBusinessAccount(t){}IdentificationradioChange(t){this.Identifications=t.value,"0"==this.Identifications?(this.reuploadpassportfiles=!0,this.reUploadNationalInsurancefiles=!1):(this.reUploadNationalInsurancefiles=!0,this.reuploadpassportfiles=!1)}getDocuments(){this._backendservice.getData(`${E_.accountApiUrlBase}/${this._authService.NIBNumber}/${this._authService.LoginType}`).subscribe(t=>{this.documents=t.documents,this.FileOverwriteOption(this.documents.length)})}FileOverwriteOption(t){for(let e=0;e<t;e++)if("jpg"==this.documents[e]||"JPG"==this.documents[e]||"pdf"==this.documents[e]||"PDF"==this.documents[e]){this.Passport=!0;break}}btnclickevent1(){this.Passport=!1}getDocuments2(){this._backendservice.getData(`${E_.accountApiUrlBase}/${this._authService.NIBNumber}/${this._authService.LoginType}`).subscribe(t=>{this.documents2=t.documents2,this.FileOverwriteOption2(this.documents2.length)})}FileOverwriteOption2(t){for(let e=0;e<t;e++)if("jpg"==this.documents2[e]||"JPG"==this.documents2[e]||"pdf"==this.documents2[e]||"PDF"==this.documents2[e]){this.DriversLicense=!0,this.National=!0;break}}btnclickevent2(){this.DriversLicense=!1,this.driversfileInput[0]="Upload Driver\u2019s License*"}btnclickevent3(){this.National=!1,this.nationalfileInput[0]="Upload National Insurance Card*"}updateAccount(t){if(1!=this.DriversLicense&&1!=this.National||(this.Identifications="3"),this.loadingData1=!1,t.Pass
1portuploadfile=this.filestring,t.passportFileName=this.name,t.DriversLicenseuploadfile=this.DriversLicensefilestring,t.DriversLicenseFileName=this.DriversLicensename,t.NationalInsuranceCarduploadfile=this.NationalInsuranceCardfilestring,t.NationalInsuranceCardFileName=this.NationalInsuranceCardname,t.identificationtype=this.Identifications,t.Birthday=this._datePipe.transform(t.Birthday.toString(),"MM/dd/yyyy"),t.Expirydate=this._datePipe.transform(t.Expirydate.toString(),"MM/dd/yyyy"),t.NewPassword!=t.ConfirmPassword&&(this.loadingData1=!0,this._alert.openConfirmationDialog("New password and Confirm New password is not match.")),null==t.request||null==t.request||""==t.request)return this.loadingData1=!0,this._alert.openConfirmationDialog("Request can not empty."),!0;console.log(t),this._backendservice.postData(t,`${E_.accountApiUrlBase}/save/${this._authService.NIBNumber}`).subscribe(t=>{t?(this.loadingData1=!0,this._notificationService.showNotification({message:t.msg,type:"success"}),this._router.navigate(["/login"])):(this.loadingData1=!0,this._notificationService.showNotification({message:t.msg,type:"error"}))})}onFileChange(t){var e;if(this.files=t.target.files,this.fileInput=this.files[0].name.length<30?(e=this.files[0].name).slice(0,30):(e=this.files[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.files[0].type&&"application/pdf"!=this.files[0].type&&"image/jpeg"!=this.files[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.name=this.files[0].name,this.fileFormat=this.files[0].type;var i=new FileReader;i.onload=this._handleReaderLoadded.bind(this),i.readAsBinaryString(this.files[0])}_handleReaderLoadded(t){this.filestring=btoa(t.target.result)}onFileChangeDriversLicense(t){var e;if(this.DriversLicensefiles=t.target.files,this.DriversLicensefileInput=this.DriversLicensefiles[0].name.length<30?(e=this.DriversLicensefiles[0].name).slice(0,30):(e=this.DriversLicensefiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.DriversLicensefiles[0].type&&"application/pdf"!=this.DriversLicensefiles[0].type&&"image/jpeg"!=this.DriversLicensefiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.DriversLicensename=this.DriversLicensefiles[0].name,this.DriversLicensefileFormat=this.DriversLicensefiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedDriversLicense.bind(this),i.readAsBinaryString(this.DriversLicensefiles[0])}_handleReaderLoaddedDriversLicense(t){this.DriversLicensefilestring=btoa(t.target.result)}onFileChangeNationalInsuranceCard(t){var e;if(this.NationalInsuranceCardfiles=t.target.files,this.NationalInsuranceCardfileInput=this.DriversLicensefiles[0].name.length<30?(e=this.NationalInsuranceCardfiles[0].name).slice(0,30):(e=this.NationalInsuranceCardfiles[0].name).slice(0,25)+"..."+e.slice(-4),"image/jpg"!=this.NationalInsuranceCardfiles[0].type&&"application/pdf"!=this.NationalInsuranceCardfiles[0].type&&"image/jpeg"!=this.NationalInsuranceCardfiles[0].type)return this.loadingData1=!0,this._alert.openConfirmationDialo11("Please select a jpg/jpeg/pdf file to proceed."),!0;this.NationalInsuranceCardname=this.NationalInsuranceCardfiles[0].name,this.NationalInsuranceCardfileFormat=this.NationalInsuranceCardfiles[0].type;var i=new FileReader;i.onload=this._handleReaderLoaddedNationalInsuranceCard.bind(this),i.readAsBinaryString(this.NationalInsuranceCardfiles[0])}_handleReaderLoaddedNationalInsuranceCard(t){this.NationalInsuranceCardfilestring=btoa(t.target.result)}OnCheckboxChange(t){this.updatePassword=!!t.checked}valueOfDate(t){this.editDate=t}setForm(){this.accountForm=new up({NIBNumber:new hp("",[kd.required]),ConfirmPassword:new hp("",[kd.required]),NewPassword:new hp("",[kd.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-+.)(/]).{8,12}$")]),FirstName:new hp("",[kd.required]),MiddleName:new hp("",[kd.required]),LastName:new hp("",[kd.required]),Email:new hp(""),PassportNumber:new hp("",[kd.required]),Birthday:new hp(""),Expirydate:new hp(""),passportFile:new hp("",[kd.required]),updatePasswordChecked:new hp(""),bankname:new hp(""),branch:new hp(""),accountnumber:new hp(""),IndividualAddress:new hp("",[kd.required]),IndividualPhone:new hp("",[kd.required]),request:new hp("",[kd.required]),Occupation:new hp("",[kd.required])})}setForm1(){this.businessaccountForm=new up({ID:new hp(""),Bname:new hp("",[kd.required]),trading:new hp(""),Btype:new hp("",[kd.required]),Baddress:new hp("",[kd.required]),Bemailaddress:new hp("",[kd.required]),DateofInception:new hp("",[kd.required]),BPemailaddress:new hp("",[kd.required]),BPname:new hp("",[kd.required]),BPphone:new hp("",[kd.required]),SBname:new hp(""),SBemailaddress:new hp(""),SBphone:new hp(""),bankname:new hp(""),branch:new hp(""),accountnumber:new hp(""),beneficialdocs:new hp(""),authorizeddocs:new hp(""),Businessdocs:new hp(""),passportFile:new hp("",[kd.required])})}formatData(t){t.map(t=>{t.birthday=this._datePipe.transform(t.birthday.toString(),"MM/dd/yyyy"),t.expirydate=this._datePipe.transform(t.expiryDate.toString(),"MM/dd/yyyy")})}}return t.\u0275fac=function(e){return new(e||t)(Io(yS),Io(bS),Io(Lp),Io(Cu),Io(eT),Io(vS),Io(t_))},t.\u0275cmp=Se({type:t,selectors:[["app-account"]],features:[La([Cu])],decls:5,vars:3,consts:[[1,"container","pt-3"],["name","accountForm",3,"formGroup","ngSubmit",4,"ngIf"],["name","businessaccountForm",3,"formGroup","ngSubmit",4,"ngIf"],[1,"mat-spinner-fullscreen",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],["name","accountForm",3,"formGroup","ngSubmit"],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12","col-sm-4"],["appearance","outline",1,"w-100"],["matInput","","name","NIBNumber","formControlName","NIBNumber","readonly","",3,"ngModel","ngModelChange"],[1,"col-12","col-sm-6","pt-sm-3"],["formControlName","updatePasswordChecked",3,"change"],["class","col-6",4,"ngIf"],["matInput","","name","Firstname","formControlName","FirstName","autocomplete","off",3,"ngModel","ngModelChange"],["matInput","","name","MiddleName","formControlName","MiddleName","autocomplete","off",3,"ngModel","ngModelChange"],["matInput","","name","LastName","formControlName","LastName",3,"ngModel","ngModelChange"],["matInput","","name","Email","formControlName","Email",3,"ngModel","ngModelChange"],["appearance","outline",1,"w-100","mb-1"],[2,"color","red"],["matInput","","name","IndividualPhone","formControlName","IndividualPhone","autocomplete","off","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","IndividualAddress","name","IndividualAddress","type","text","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","Occupation","name","Occupation","autocomplete","off",3,"ngModel","ngModelChange"],["class","col-12 col-sm-4",4,"ngIf"],["appearance","outline","class","w-100 mb-1",4,"ngIf"],["matInput","","formControlName","request","name","request","type","text",3,"ngModel","ngModelChange"],["class","col-8",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-12"],["mat-flat-button","","type","submit","color","primary",1,"loginbtn","mr-2"],[1,"accent",2,"font-size","0.9970rem"],[1,"col-6"],["matInput","","formControlName","NewPassword","type","password"],[4,"ngIf"],["matInput","","formControlName","ConfirmPassword","type","password"],["matInput","","name","PassportNumber","formControlName","PassportNumber",3,"ngModel","ngModelChange"],["matInput","","formControlName","Expirydate","name","expirydate","autocomplete","off","readonly","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["picker1",""],["matInput","","formControlName","Expirydate","name","expirydate","placeholder","MM/DD/YYYY",3,"matDatepicker"],["matInput","","formControlName","Birthday","name","date","autocomplete","off","readonly","",3,"matDatepicker","ngModel","ngModelChange"],["picker",""],["matInput","","formControlName","Birthday","name","date",3,"matDatepicker"],[1,"col-8"],[2,"font-size","0.9970rem"],["matInput","","formControlName","bankname","name","bankname",3,"ngModel","ngModelChange"],["matInput","","formControlName","branch","name","branch",3,"ngModel","ngModelChange"],["matInput","","formControlName","accountnumber","name","accountnumber",3,"ngModel","ngModelChange"],[1,"col-auto","pb-2"],["aria-label","Files"],["matTooltip","Overwrite",3,"click",4,"ngIf"],["class","input-group w-100 mb-2",4,"ngIf"],["matTooltip","Overwrite",3,"click"],[1,"mat-chip-remove","mat-chip-trailing-icon"],[1,"input-group","w-100","mb-2"],[1,"custom-file"],["type","file","id","inputGroupFile03","aria-describedby","inputGroupFileAddon03","accept","image/jpg,image/jpeg,application/pdf","formControlName","passportFile",3,"change"],["for","inputGroupFile03",1,"custom-file-label"],["type","file","id","inputGroupFile01","aria-describedby","inputGroupFileAddon01","accept","image/jpg,image/jpeg,application/pdf","formControlName","passportFile",3,"change"],["for","inputGroupFile01",1,"custom-file-label"],["type","file","id","inputGroupFile02","aria-describedby","inputGroupFileAddon02","accept","image/jpg,image/jpeg,application/pdf","formControlName","passportFile",3,"change"],["for","inputGroupFile02",1,"custom-file-label"],[1,"radiobtn"],["name","submissiontype",1,"row",3,"change"],["value","0","color","primary"],["value","1","color","primary"],[1,"text-muted"],["name","businessaccountForm",3,"formGroup","ngSubmit"],["matInput","","name","ID","formControlName","ID","readonly","",3,"ngModel","ngModelChange"],["matInput","","name","Bname","formControlName","Bname","readonly","",3,"ngModel","ngModelChange"],["matInput","","name","trading","formControlName","trading",3,"ngModel","ngModelChange"],[1,"col-12","col-md-4"],["matInput","","name","Btype","formControlName","Btype","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","Baddress","name","Baddress","type","text","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","Bemailaddress","name","Bemailaddress","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","DateofInception","name","DateofInception","autocomplete","off","readonly","",3,"matDatepicker","ngModel","ngModelChange"],["matInput","","formControlName","BPname","name","BPname","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","BPemailaddress","name","BPemailaddress","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","BPphone","name","BPphone","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","SBname","name","SBname","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","SBemailaddress","name","SBemailaddress","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","SBphone","name","SBphone","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","bankname","name","bankname","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","branch","name","branch","readonly","",3,"ngModel","ngModelChange"],["matInput","","formControlName","accountnumber","name","accountnumber","readonly","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(Oo(0,"div",0),xo(1,YR,81,26,"form",1),xo(2,nM,142,27,"form",2),Oo(3,"div",3),No(4,"mat-spinner",4),Po(),Po()),2&t&&(_s(1),Ao("ngIf",e.Indiv
1idual),_s(1),Ao("ngIf",e.Business),_s(1),Ao("hidden",e.loadingData1))},directives:[cu,zO,xp,vd,Ap,wD,dD,OD,dd,yd,Fp,RP,jE,oD,_O,yO,fD,pO,CR,fR,TT,gT,DO,OO],styles:[""]}),t})(),rM=(()=>{class t extends JN{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._formBuilder=t,this._router=e,this.location=i,this.notificationService=n,this.authService=s,this.backendService=r,this.dialog=o}canActivate(t,e){return localStorage.getItem("token")||sessionStorage.getItem("token")?this.checkLoginForAuthGuard():(this.authService.loggedIn=!1,this._router.navigate(["/"]),S.of(!1))}}return t.\u0275fac=function(e){return new(e||t)(se(Lp),se(t_),se(Sh),se(vS),se(bS),se(yS),se(QA))},t.\u0275prov=vt({token:t,factory:t.\u0275fac}),t})(),oM=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Se({type:t,selectors:[["app-mainpage"]],decls:1,vars:0,consts:[[2,"background-image","url(./assets/img/backsplash.jpg)","background-repeat","no-repeat","background-size","cover","position","fixed","height","100vh","width","100vw","background-position","center"]],template:function(t,e){1&t&&No(0,"div",0)},styles:[""]}),t})(),aM=(()=>{class t{constructor(t,e,i,n,s,r){this._backendservice=t,this._formBuilder=e,this._authService=i,this._alert=n,this._notification=s,this._router=r,this.loadingData1=!0}ngOnInit(){this.setForm(),this.pageLoad()}pageLoad(){this._backendservice.getData(`${E_.unsubsribeApiUrlBase}/${this._authService.NIBNumber}`).subscribe(t=>{this.getEmailAddress=t.email})}Unsubsribedata(t){this._backendservice.postData(t,`${E_.unsubsribeApiUrlBase}/save/${this._authService.NIBNumber}`).subscribe(t=>{t?(this.loadingData1=!0,this._notification.showNotification({message:t.msg,type:"success"}),this._router.navigate(["/login"])):(this.loadingData1=!0,this._notification.showNotification({message:t.msg,type:"error"}))})}setForm(){this.Unsubsribe=new up({Email:new hp("",[kd.required])})}}return t.\u0275fac=function(e){return new(e||t)(Io(yS),Io(Lp),Io(bS),Io(eT),Io(vS),Io(t_))},t.\u0275cmp=Se({type:t,selectors:[["app-unsubsribed"]],decls:20,vars:2,consts:[[1,"container"],[1,"col-xs-12"],[1,"animated","fadeIn","mt-5"],["name","Unsubsribe","id","Unsubsribe","autocomplete","off","novalidate","",3,"formGroup","ngSubmit"],[2,"margin-bottom","3px","margin-top","24px","font-size","0.9970rem"],[1,"input-group-lg"],[1,"row"],[1,"col-12","col-sm-4"],["appearance","outline",1,"w-100"],["matInput","","name","Email","formControlName","Email","readonly","",3,"ngModel","ngModelChange"],[1,"cent",2,"margin-top","2rem"],["mat-flat-button","","color","primary","type","submit",1,"loginbtn","mr-2"]],template:function(t,e){1&t&&(No(0,"br"),No(1,"br"),Oo(2,"div",0),Oo(3,"div",1),Oo(4,"div",2),Oo(5,"form",3),Vo("ngSubmit",(function(){return e.Unsubsribedata(e.Unsubsribe.value)})),Oo(6,"h2",4),fa(7,"Unsubsribe Email "),Po(),No(8,"br"),Oo(9,"div",5),Oo(10,"div",6),Oo(11,"div",7),Oo(12,"mat-form-field",8),Oo(13,"mat-label"),fa(14,"Email"),Po(),Oo(15,"input",9),Vo("ngModelChange",(function(t){return e.getEmailAddress=t})),Po(),Po(),Po(),Oo(16,"div",10),Oo(17,"button",11),fa(18,"Unsubsribed"),Po(),Po(),Po(),Po(),No(19,"br"),Po(),Po(),Po(),Po()),2&t&&(_s(5),Ao("formGroup",e.Unsubsribe),_s(10),Ao("ngModel",e.getEmailAddress))},directives:[xp,vd,Ap,wD,dD,OD,dd,yd,Fp,jE],styles:[""]}),t})();var lM=i("YCLl");function cM(t,e){1&t&&(Oo(0,"div"),Oo(1,"mat-error"),fa(2," Invalid Amount "),Po(),Po())}function hM(t,e){1&t&&(Oo(0,"div"),Oo(1,"mat-error"),fa(2," Please Enter Amount to Redeem lesser than Available Balance. "),Po(),Po())}function uM(t,e){if(1&t){const t=Fo();Oo(0,"div"),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"div",4),Oo(5,"button",5),Vo("click",(function(){return ri(t),Ho().ClearTextBox()})),Oo(6,"mat-icon"),fa(7,"close"),Po(),Po(),Po(),Po(),Oo(8,"form",6),Vo("ngSubmit",(function(){ri(t);const e=Ho();return e.AddTransfer(e.transfer.value)})),Oo(9,"div",7),Oo(10,"mat-form-field",8),Oo(11,"mat-label"),fa(12,"Date Requested"),Po(),No(13,"input",9),Po(),Po(),Oo(14,"div",7),Oo(15,"mat-form-field",8),Oo(16,"mat-label"),fa(17,"From SecurityID"),Po(),No(18,"input",10),Po(),Po(),Oo(19,"div",7),Oo(20,"mat-form-field",8),Oo(21,"mat-label"),fa(22,"Available Balance"),Po(),No(23,"input",11),Po(),Po(),Oo(24,"div",7),Oo(25,"mat-form-field",8),Oo(26,"mat-label"),fa(27,"Amount to Redeem"),Po(),Oo(28,"input",12),Vo("change",(function(e){return ri(t),Ho().valuechange(e.target.value)}))("keypress",(function(e){return ri(t),Ho().keyPressNumbersAmount(e)})),Fl(29,"number"),Po(),Po(),xo(30,cM,3,0,"div",0),xo(31,hM,3,0,"div",0),Po(),Oo(32,"div",7),Oo(33,"mat-form-field",8),Oo(34,"mat-label"),fa(35,"To HolderID"),Po(),No(36,"input",13),Po(),Po(),Oo(37,"div",14),Oo(38,"button",15),fa(39,"Request to Redeem"),Po(),Po(),Po(),Oo(40,"button",16),Vo("click",(function(){return ri(t),Ho().CancelButton()})),fa(41,"Cancel "),Po(),No(42,"br"),No(43,"br"),Po(),Po(),Po()}if(2&t){const t=Ho();_s(8),Ao("formGroup",t.transfer),_s(5),Ao("formControl",t.startdate),_s(5),Ao("formControl",t.FromSecurityID),_s(5),Ao("formControl",t.avaliablebalance),_s(5),Yo("value",Bl(29,8,t.Amount,"1.2-2")),_s(2),Ao("ngIf",t.invalidamount),_s(1),Ao("ngIf",t.limitExceed),_s(5),Ao("formControl",t.ToHolderID)}}function dM(t,e){if(1&t&&(Oo(0,"div"),Oo(1,"div",17),No(2,"mat-spinner",18),Po(),Po()),2&t){const t=Ho();_s(1),Ao("hidden",t.loadingData1)}}function pM(t,e){if(1&t){const t=Fo();Oo(0,"div"),Oo(1,"h4",19),fa(2,"Redem Request Received"),Po(),Oo(3,"p"),Oo(4,"strong"),fa(5,"Redemption Amount : "),Po(),fa(6),Fl(7,"number"),Po(),Oo(8,"p"),Oo(9,"strong"),fa(10,"Security ID: "),Po(),fa(11),Po(),Oo(12,"p"),fa(13,"Your transaction would be processed within 2 business days. "),No(14,"br"),fa(15," Thank y
1ou. "),Po(),Oo(16,"button",20),Vo("click",(function(){return ri(t),Ho().close()})),fa(17,"OK"),Po(),Po()}if(2&t){const t=Ho();_s(6),_a("$",Bl(7,2,t.redeemeAmount,"1.2-2")," "),_s(5),_a("",t.securitytoShow," \xa0\xa0 ")}}let mM=(()=>{class t extends JN{constructor(t,e,i,n,s,r,o,a,l,c,h){super(t,e,i,n,s,r,o),this._formBuilder=t,this._router=e,this.location=i,this.notificationService=n,this.authService=s,this.backendService=r,this.dialog=o,this.datePipe=a,this.alert=l,this.numberPipe=c,this.data=h,this.passwordConfirmed=!0,this.submitted=!1,this.avaliablebalance=new hp,this.updateavaliablebalance=new hp,this.result="",this.loadingData1=!0,this.name=new hp,this.popupDialogBox=!1,this.startdate=new hp,this.HMBAcountnumber=new hp,this.FromSecurityID=new hp,this.ToHolderID=new hp("BGRS-0400100"),this.ToSecurityID=new hp,this.myDate=new Date,this.accoutType=[],this.groupDebit=[],this.limitExceed=!1,this.invalidamount=!1}ngOnInit(){console.log(this.data),this.apiUrl=E_.RequestRedemApiUrlBase,this.accoutType=["Savings","Chequing"],this.multiplecheckvalues=this.data,this.TransferName=this.data.customername,this.Abalance=this.data.currentShares,this.balance=this.data.currentShares,this.balance=this.numberPipe.transform(this.balance,"1.2-2"),this.hAccountid=this.data.transactionNumber,console.log(this.hAccountid),this.Investment=this.data.securityID,this.balance=this.data.currentShares,this.Abalance=this.data.currentShares,this.balance=this.numberPipe.transform(this.balance,"1.2-2"),this.hAccountid=this.data.transactionNumber,this.Investment=this.data.securityID,this.avaliablebalance=new hp(this.balance),this.testavbal=this.avaliablebalance,this.FromSecurityID=new hp(this.Investment),this.Acountnumber=new hp(this.hAccountid),this.customerID=this.data.customerID,this.securitytoShow=this.FromSecurityID.value,this.myDate=new Date,this.currentDate=this.datePipe.transform(this.myDate,"M/dd/yyyy"),this.startdate=new hp(this.currentDate),this.AmounttoRedeem=new hp,this.TextSearch=new up({AmounttoRedeem:this.AmounttoRedeem}),this.setForm()}keyPressNumbers(t){var e=t.which?t.which:t.keyCode;return!(e<48||e>57)||(t.preventDefault(),!1)}keyPressNumbersAmount(t){var e=t.which?t.which:t.keyCode;return!(e<48||e>57)||(t.preventDefault(),!1)}onSelectedBank(t){this.selectbank=t}searchText(){this.result=this.TextSearch.controls.AmounttoRedeem.value,""!=this.result&&this.groupDebit.push(this.result),this.groupDebit>this.Abalance?this.alert.openConfirmationDialog("Please Enter Amount to Redeem lesser than Available Balance"):this.msg=""}pageLoad(){this.backendService.getData(`${E_.applicationApiUrlBase}/getsecurities`).subscribe(t=>{this.security=t.toSecurityIDs})}SelectionSecurityID(t){this.selectedvalue=t,console.log(t)}valuechange(t){if(this.Amount=t,0==this.Abalance||null==this.Amount)return this.invalidamount=!0,{invalidamount:!0};parseInt(this.Abalance)<parseInt(this.Amount)?this.limitExceed=!0:(this.limitExceed=!1,this.invalidamount=!1)}AddTransfer(t){console.log(t),t.AmounttoRedeem=this.Amount,t.customerID=this.customerID,t.FromSecurityID=this.FromSecurityID.value,t.ToHolderID=this.ToHolderID.value,t.ToSecurityID=this.ToSecurityID.value,t.avaliablebalance=this.avaliablebalance.value,t.startdate=this.startdate.value,console.log(t.AmounttoRedeem,t.FromSecurityID,t.startdate);var e="";if(""!=t.AmounttoRedeem&&null!=t.AmounttoRedeem&&null!=t.AmounttoRedeem||(e+="\n ---- Amount to Redeem"),""!=e)return this.loadingData1=!0,this.alert.openConfirmationDialog("Please enter all required fields: \n"+e),!0;this.backendService.postData(t,`${this.apiUrl}/${this.hAccountid}/${this.authService.NIBNumber}`).subscribe(e=>{console.log(e),!1===e.reslut?(this.popupDialogBox=!1,this.dialog.closeAll(),this.notificationService.showNotification({type:"error",message:e.msg})):e.msg?(this.loadingData1=!0,this.redeemeAmount=t.AmounttoRedeem,this.popupDialogBox=!0):(this.loadingData1=!0,this.popupDialogBox=!1,this.dialog.closeAll(),this.notificationService.showNotification({type:"error",message:e.msg}))})}onSelectedaccoutType(t){this.accounttype=t}close(){this.dialog.closeAll(),window.location.reload(),this._router.navigate(["/dashboard/holdings"])}ClearTextBox(){this.dialog.closeAll()}CancelButton(){this.dialog.closeAll()}setForm(){this.transfer=new up({startdate:new hp(""),FromSecurityID:new hp("",[kd.required]),ToHolderID:new hp("BGRS-0400100",[kd.required]),avaliablebalance:new hp("",[kd.required]),ToSecurityID:new hp("",[kd.required])})}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(Sh),Io(vS),Io(bS),Io(yS),Io(QA),Io(Cu),Io(eT),Io(Su),Io(YA))},t.\u0275cmp=Se({type:t,selectors:[["app-request-redemption"]],features:[La([Su]),Ca],decls:4,vars:3,consts:[[4,"ngIf"],["id","container"],[1,"container","p-0"],[1,"row"],[1,"col-12","text-right"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"button",3,"click"],["name","transfer",1,"row","pt-3","pb-2",3,"formGroup","ngSubmit"],[1,"col-12","col-md-6"],["appearance","outline",1,"w-100","mat-opaque"],["matInput","","type","text","name","phoneNo","placeholder","Date Requested","readonly","",3,"formControl"],["matInput","","type","text","name","phoneNo","placeholder","SecurityID","readonly","",3,"formControl"],["matInput","","type","text","name","balance","placeholder","Available Balance","readonly","",3,"formControl"],["matInput","","type","text","name","phoneNo","placeholder","Amount to Redeem","autocomplete","off",3,"value","change","keypress"],["matInput","","type","text","name","phoneNo","placeholder","To HolderID","readonly","",3,"formControl"],[1,"col-12"],["mat-flat-button","","color","accent","type","submit",1,"w-100","hmb-blue-btn"],["mat-flat-button","","color","accent","type","submit",1,"w-100","hmb-red-btn",3,"click"],[1,"mat-spinner-fullscreen",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],[1,"mb-3"],["mat-flat-button","","color","accent",1,"w-100","hmb-blue-btn",3,"click"]],template:function(t,e){1&t&&(Oo(0,"div"),xo(1,uM,44,11,"div",0),Po(),xo(2,dM,3,1,"div",0),xo(3,pM,18,5,"div",0)),2&t&&(_s(1),Ao("ngIf",!e.popupDialogBox),_s(1),Ao("ngIf",!e.popupDialogBox),_s(1),Ao("ngIf",e.popupDialogBox))},directives:[cu,jE,fD,gT,xp,vd,Ap,wD,dD,OD,dd,yd,Ep,oD,zO],pipes:[Su],styles:[".button[_ngcontent-%COMP%]{position:relative;float:right}.scrollbar[_ngcontent-%COMP%]{width:10px}body[_ngcontent-%COMP%]{min-height:200px}div#container[_ngcontent-%COMP%], div#content[_ngcontent-%COMP%]{height:350px}div[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}div[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.hmb-red-btn[_ngcontent-%COMP%]{background-color:#942323}"]}),t})();function fM(t,e){if(1&t&&(Oo(0,"mat-option",25),fa(1),Po()),2&t){const t=e.$implicit;Ao("value",t),_s(1),_a(" ",t," ")}}function gM(t,e){if(1&t){const t=Fo();Oo(0,"button",26),Vo("click",(function(){return ri(t),Ho().clearSecurityID()})),Oo(1,"mat-icon"),fa(2,"close"),Po(),Po()}}function _M(t,e){if(1&t&&(Oo(0,"mat-option",25),fa(1),Po()),2&t){const t=e.$implicit;Ao("value",t),_s(1),_a(" ",t," ")}}function bM(t,e){if(1&t){const t=Fo();Oo(0,"button",26),Vo("click",(function(){return ri(t),Ho().clearbeneficiaries()})),Oo(1,"mat-icon"),fa(2,"close"),Po(),Po()}}function yM(t,e){if(1&t){const t=Fo();Oo(0,"button",27),Vo("click",(function(){return ri(t),Ho().clearTextSearch()})),Oo(1,"mat-icon"),fa(2,"close"),Po(),Po()}}function vM(t,e){if(1&t){const t=Fo();Oo(0,"td"),Oo(1,"button",32),Vo("click",(function(){ri(t);const e=Ho().$implicit;return Ho().RequestTransfer(e)})),fa(2," Request Redemption "),Po(),Po()}}function wM(t,e){1&t&&(Oo(0,"td"),Oo(1,"button",33),fa(2," Request Redemption "),Po(),Po())}function CM(t,e){if(1&t){const t=Fo();Oo(0,"tr",28),Vo("click",(function(){ri(t);const i=e.$implicit;return Ho().makeActive(i)})),Oo(1,"td"),Oo(2,"span",29),fa(3,"CustomerID: "),No(4,"br",30),Po(),Oo(5,"span"),fa(6),Po(),Po(),Oo(7,"td"),Oo(8,"span",29),fa(9,"Security ID: "),No(10,"br",30),Po(),Oo(11,"span"),fa(12),Po(),Po(),Oo(13,"td"),Oo(14,"span",29),fa(15,"Issuer: "),No(16,"br",30),Po(),Oo(17,"span"),fa(18),Po(),Po(),Oo(19,"td"),Oo(20,"span",29),fa(21," Rate Amount: "),No(22,"br",30),Po(),Oo(23,"span"),fa(24),Fl(25,"number"),Po(),Po(),Oo(26,"td"),Oo(27,"span",29),fa(28,"Current Shares: "),No(29,"br",30),Po(),Oo(30,"span"),fa(31),Fl(32,"number"),Po(),Po(),Oo(33,"td"),Oo(34,"span",29),fa(35,"Ownership Date: "),No(36,"br",3
11),Po(),Oo(37,"span"),fa(38),Fl(39,"date"),Po(),Po(),Oo(40,"td"),Oo(41,"span",29),fa(42,"Maturity Date: "),No(43,"br",30),Po(),Oo(44,"span"),fa(45),Fl(46,"date"),Po(),Po(),xo(47,vM,3,0,"td",22),xo(48,wM,3,0,"td",22),Po()}if(2&t){const t=e.$implicit,i=Ho();sa("active",t===i.active),_s(1),sa("highlight","customerIDsup"===i.orderByService.sortBy||"customerIDdown"===i.orderByService.sortBy),_s(5),ga(t.customerID),_s(1),sa("highlight","securityIDup"===i.orderByService.sortBy||"securityIDdown"===i.orderByService.sortBy),_s(5),ga(t.securityID),_s(1),sa("highlight","issuerIDup"===i.orderByService.sortBy||"issuerIDdown"===i.orderByService.sortBy),_s(5),ga(t.transactionNumber),_s(1),sa("highlight","ratenup"===i.orderByService.sortBy||"ratedown"===i.orderByService.sortBy),_s(5),ga(Bl(25,25,t.rate,"1.2-3")),_s(2),sa("highlight","currentSharesdup"===i.orderByService.sortBy||"currentSharesddown"===i.orderByService.sortBy),_s(5),ga(Bl(32,28,t.currentShares,"1.2-3")),_s(2),sa("highlight","ownershipDateup"===i.orderByService.sortBy||"ownershipDatedown"===i.orderByService.sortBy),_s(5),ga(Bl(39,31,t.ownershipDate,"MM/dd/yyyy")),_s(2),sa("highlight","maturityDateup"===i.orderByService.sortBy||"maturityDatedown"===i.orderByService.sortBy),_s(5),ga(Bl(46,34,t.maturityDate,"MM/dd/yyyy")),_s(2),Ao("ngIf",""===t.userDefinedStatus||"True"===t.userDefinedStatus||!t.userDefinedStatus),_s(1),Ao("ngIf","CBBS"===t.userDefinedStatus)}}function SM(t,e){1&t&&(Oo(0,"div"),fa(1,"No Entries Found"),Po())}function xM(t,e){if(1&t){const t=Fo();Oo(0,"button",16),Vo("click",(function(){return ri(t),Ho().clearTextSearch()})),Oo(1,"mat-icon"),fa(2,"close"),Po(),Po()}}function kM(t,e){if(1&t){const t=Fo();Oo(0,"tr",17),Vo("click",(function(){ri(t);const i=e.$implicit;return Ho().makeActive(i)})),Oo(1,"td"),Oo(2,"span"),fa(3),Po(),Po(),Oo(4,"td"),fa(5),Po(),Oo(6,"td"),Oo(7,"span"),fa(8),Po(),Po(),Oo(9,"td"),Oo(10,"span"),fa(11),Po(),Po(),Oo(12,"td"),Oo(13,"span"),fa(14),Fl(15,"date"),Po(),Po(),Oo(16,"td"),Oo(17,"span"),fa(18),Fl(19,"date"),Po(),Po(),Oo(20,"td"),Oo(21,"span"),fa(22),Fl(23,"number"),Po(),Po(),Oo(24,"td",18),fa(25),Po(),Oo(26,"td"),fa(27),Po(),Po()}if(2&t){const t=e.$implicit,i=Ho();sa("active",t===i.active),_s(1),sa("highlight","customerIDup"===i.orderByService.sortBy||"customerIDdown"===i.orderByService.sortBy),_s(2),ga(t.customerID),_s(1),sa("highlight","customerNameup"===i.orderByService.sortBy||"customerNamedown"===i.orderByService.sortBy),_s(1),_a(" ",t.customerName," "),_s(1),sa("highlight","securityIDup"===i.orderByService.sortBy||"securityIDdown"===i.orderByService.sortBy),_s(2),ga(t.securityID),_s(1),sa("highlight","transactionNumberup"===i.orderByService.sortBy||"transactionNumberdown"===i.orderByService.sortBy),_s(2),ga(t.transactionNumber),_s(1),sa("highlight","ownershipdateup"===i.orderByService.sortBy||"ownershipdatedown"===i.orderByService.sortBy),_s(2),ga(Bl(15,29,t.ownershipdate,"MM/dd/yyyy")),_s(2),sa("highlight","maturitydateup"===i.orderByService.sortBy||"maturitydatedown"===i.orderByService.sortBy),_s(2),ga(Bl(19,32,t.maturitydate,"MM/dd/yyyy")),_s(2),sa("highlight","currentsharesup"===i.orderByService.sortBy||"currentsharesdown"===i.orderByService.sortBy),_s(2),ga(Bl(23,35,t.currentshares,"1.2-2")),_s(2),sa("highlight","securitydescriptionup"===i.orderByService.sortBy||"securitydescriptiondown"===i.orderByService.sortBy),_s(1),_a(" ",t.securitydescription," "),_s(1),sa("highlight","securityTypeup"===i.orderByService.sortBy||"securityTypedown"===i.orderByService.sortBy),_s(1),_a(" ",t.securityType," ")}}function IM(t,e){1&t&&(Oo(0,"div"),fa(1,"No Entries Found"),Po())}const EM=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"enroll",component:nP},{path:"login",component:GD},{path:"dashboard",component:ON,canActivate:[rM],children:[{path:"",component:oM},{path:"account",component:sM},{path:"application",component:eN},{path:"view",component:QN},{path:"changePassword",component:cR},{path:"Unsubcribe",component:aM},{path:"holdings",component:(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,h,u){this._formBuilder=t,this._router=e,this._authService=i,this.orderByService=n,this._backendservice=s,this._paginationService=r,this.searchService=o,this.datePipe=a,this._notificationService=l,this._resetFormService=c,this.dialog=h,this.router=u,this.defaultSortOrder="",this.active="",this.result="",this.loadingData=!1,this.originalItems=[],this.totalEntries=0,this.pagenlenth=!0,this.audit=[],this.noEntrys=!1,this.searchArray=[],this.searchFilteredItems=[],this.exportItems=[],this.securityIDList=[],this.securityID=new hp,this.fieldNames=[],this.filterbyBeneficaries=[],this.showModal=!1}ngOnInit(){this.showModal=!1,this.holdingData(),this.fieldNames=["HOLDINGID","SECURITYID","DATEPURCHASED","MATURITYDATE","FACE","INTERESTRATE","CERTNO"],this.searchArray=["securityID","transactionNumber","rate","customerID","currentShares"],this.TextSearch=this._formBuilder.group({term:[""]}),this.FilterByStatus=this._formBuilder.group({securityID:[""],beneficiaries:[""]})}
1closePopup(){this.showModal=!1}Open(){this.showModal=!0}holdingData(){this._backendservice.getData(`${E_.holdingApiUrlBase}/${this._authService.NIBNumber}`).subscribe({next:t=>{this.loadingData=!0,t?(t.msg&&this._notificationService.showNotification(t.msg),this.originalItems=t.data||[],console.log(this.originalItems),this.audit=this.originalItems,this.totalEntries=this.audit.length,this.data1=this.originalItems,0===this.audit.length&&(this.noEntrys=!0),this.setGrid(1,this.totalEntries),this.paginationGrid(),this.orderBy(this.defaultSortOrder),this.getSecuritydropDowns()):this._notificationService.showNotification(t.msg)},error:t=>{var e;console.error("Error fetching holding data:",t),this._notificationService.showNotification((null===(e=null==t?void 0:t.error)||void 0===e?void 0:e.message)||"Failed to fetch holding data. Please try again."),this.loadingData=!1,this.noEntrys=!0}})}RequestTransfer(t){console.log(t),this.openDialogRequestTransfer(t)}open(t){let e=this.dialog.open(mM,{width:"1100px",data:t,disableClose:!0});this.router.navigate(["/dashboard/holdings"]),e.afterClosed().subscribe(t=>{})}openDialogRequestTransfer(t){let e=this.dialog.open(mM,{width:"1100px",id:"maxheight-90",data:t,disableClose:!0});this.router.navigate(["/dashboard/holdings"]),e.afterClosed().subscribe(t=>{})}makeActive(t){this.active=this.active===t?"":t}clearSecurityID(){var t;console.log("Clearing filter"),this.holdingData(),null===(t=this.FilterByStatus.get("securityID"))||void 0===t||t.setValue(null),this.noEntrys=!1,this.items=this.originalItems,this.searchFilteredItems=this.originalItems,this.totalEntries=this.originalItems1.length,this.setGrid(1,this.totalEntries),this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.items=this.originalItems1.slice(t[0],t[1]),this.exportItems=this.originalItems1})}clearbeneficiaries(){var t;console.log("Clearing filter"),this.holdingData(),null===(t=this.FilterByStatus.get("beneficiaries"))||void 0===t||t.setValue(null),this.noEntrys=!1,this.items=this.originalItems,this.searchFilteredItems=this.originalItems,this.totalEntries=this.originalItems1.length,this.setGrid(1,this.totalEntries),this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.items=this.originalItems1.slice(t[0],t[1]),this.exportItems=this.originalItems1})}formatDataexport(t){t.map(t=>{t.approvedTime=this.datePipe.transform(t.approvedTime.toString(),"MM/dd/yyyy")})}getSecuritydropDowns(){this._backendservice.getData(`${E_.holdingApiUrlBase}/getdropdown/${this._authService.NIBNumber}`).subscribe(t=>{this.securityIDList=t.data,this.filterbyBeneficaries=t.beneficiaries,console.log(this.filterbyBeneficaries)})}paginationGrid(){this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.originalItems.slice(this.entryRange[0],this.entryRange[1]),this.totalEntries=this.audit.length})}exportDataOptions(t){this.exportData(t||this.originalItems,"ActiveHoldings","ActiveHoldings CSV")}exportData(t,e,i){console.log(t);var n={fieldSeparator:",",quoteStrings:'"',decimalseparator:".",showLabels:!0,showTitle:!0,title:i,useBom:!0,headers:this.fieldNames,nullToEmptyString:!0};this.exportItems=t,new lM.Angular5Csv(this.exportItems||t,e,n)}clearthecontrolls(){this.FilterByStatus.controls.securityID.setValue("")}filterSecurityID(){var t,e=null===(t=this.FilterByStatus.get("securityID"))||void 0===t?void 0:t.value;console.log(e,"data1"),this._backendservice.getData(`${E_.holdingApiUrlBase}/${e}/${this._authService.NIBNumber}`).subscribe(t=>{this.originalItems=t.data,console.log(this.originalItems.length),this.originalItems1=this.originalItems,this.items=this.originalItems,console.log(this.originalItems1),console.log(this.items),console.log(this.originalItems),0===this.items.length&&(this.noEntrys=!0),this.searchFilteredItems=this.originalItems,this.orderBy(this.defaultSortOrder),this.items=this.originalItems,this.totalEntries=this.items.length,this.setGrid(1,this.totalEntries)},t=>{})}filterBeneficariesID(){var t,e=null===(t=this.FilterByStatus.get("beneficiaries"))||void 0===t?void 0:t.value;console.log(e,"data1"),this._backendservice.getData(`${E_.holdingbeneficiariesApiUrlBase}/${e}/${this._authService.NIBNumber}`).subscribe(t=>{var e,i;this.originalItems=t.data,console.log(null===(e=this.originalItems)||void 0===e?void 0:e.length),this.originalItems1=this.originalItems,this.items=this.originalItems,console.log(this.originalItems1),console.log(this.items),console.log(this.originalItems),0===(null===(i=this.items)||void 0===i?void 0:i.length)&&(this.noEntrys=!0),this.searchFilteredItems=this.originalItems,this.orderBy(this.defaultSortOrder),this.items=this.originalItems,this.totalEntries=this.items.length,this.setGrid(1,this.totalEntries)},t=>{})}setGrid(t,e,i){const n=e;this.pagenlenth=!1,this._paginationService.setGrid(t,n)}searchText(){this.result=this.TextSearch.controls.term.value,this.searchService.findItemsFromMultiple(this.result,this.originalItems,this.searchArray).then(t=>{this.result.length>0?(this.audit=t,this.searchFilteredItems=t):(this.audit=this.originalItems,this.searchFilteredItems=this.originalItems),this.setGrid(1,this.audit.length,"search"),this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.searchFilteredItems.slice(this.entryRange[0],this.entryRange[1]),this.exportItems=this.originalItems,this.totalEntries=this.audit.length})})}clearTextSearch(){this.TextSearch=this._formBuilder.group({term:[""]})}orderBy(t){let e=this.originalItems;this.items=this.orderByService.orderByParam(t,e,t===this.defaultSortOrder?void 0:this.defaultSortOrder),this.setGrid(1,e.length)}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(bS),Io(PN),Io(yS),Io(NN),Io(RN),Io(Cu),Io(vS),Io(wS),Io(QA),Io(t_))},t.\u0275cmp=Se({type:t,selectors:[["app-holdings"]],viewQuery:function(t,e){var i;1&t&&Ql(WN,!0),2&t&&Xl(i=sc())&&(e.paginator=i.first)},decls:54,vars:39,consts:[[1,"container-fluid","pt-2"],[1,"animated","fadeIn","mb-3"],[1,"row"],[1,"d-flex","justify-content-between","align-items-center","mt-2"],[1,"col-10","col-md-3"],[1,"me-5","w-100",3,"formGroup"],["formControlName","securityID","placeholder","Filter by SecurityID",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","matSuffix","","mat-icon-button","","aria-hidden","true",3,"click",4,"ngIf"],["formControlName","beneficiaries","placeholder","Filter by Beneficaries",3,"selectionChange"],[1,"w-100",3,"formGroup"],["type","text","matInput","","formControlName","term",3,"keyup"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[2,"margin-left","450px"],["mat-flat-button","","color","primary",3,"click"],[1,"animated","zoomIn","table-responsive"],[1,"table","table-hover","table-condensed","table-lt-grey","width-auto"],[1,"cbob-blue-thead","table-bordered","sticky-header"],[1,"headings"],[1,"hwidth",3,"click"],[1,"hwidth"],[3,"active","click",4,"ngFor","ngForOf"],[4,"ngIf"],[2,"width","100%",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],[3,"value"],["mat-button","","matSuffix","","mat-icon-button","","aria-hidden","true",3,"click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"click"],[1,"category"],[1,"n
1o-style-break"],[1,"style-break"],["mat-flat-button","","type","button","color","primary",1,"mb-2",3,"click"],["mat-flat-button","","type","button","disabled","","color","primary",1,"mb-2"]],template:function(t,e){if(1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"div",4),Oo(5,"mat-form-field",5),Oo(6,"mat-select",6),Vo("selectionChange",(function(){return e.filterSecurityID()})),xo(7,fM,2,2,"mat-option",7),Po(),xo(8,gM,3,0,"button",8),Po(),Po(),Oo(9,"div",4),Oo(10,"mat-form-field",5),Oo(11,"mat-select",9),Vo("selectionChange",(function(){return e.filterBeneficariesID()})),xo(12,_M,2,2,"mat-option",7),Po(),xo(13,bM,3,0,"button",8),Po(),Po(),Oo(14,"div",4),Oo(15,"mat-form-field",10),Oo(16,"mat-label"),fa(17,"Search"),Po(),Oo(18,"input",11),Vo("keyup",(function(){return e.searchText()})),Po(),xo(19,yM,3,0,"button",12),Po(),Po(),Oo(20,"div",13),Oo(21,"button",14),Vo("click",(function(){return e.exportDataOptions()})),Oo(22,"mat-icon"),fa(23,"get_app"),Po(),fa(24," EXPORT "),Po(),Po(),Po(),Oo(25,"div",15),Oo(26,"table",16),Oo(27,"thead",17),Oo(28,"tr",18),Oo(29,"th",19),Vo("click",(function(){return e.orderBy("customerID")})),fa(30," Holding ID "),Po(),Oo(31,"th",19),Vo("click",(function(){return e.orderBy("securityID")})),fa(32," Security ID "),Po(),Oo(33,"th",19),Vo("click",(function(){return e.orderBy("transactionNumber")})),fa(34," Cert No "),Po(),Oo(35,"th",19),Vo("click",(function(){return e.orderBy("rate")})),fa(36," Interest Rate "),Po(),Oo(37,"th",19),Vo("click",(function(){return e.orderBy("currentShares")})),fa(38," Face "),Po(),Oo(39,"th",19),Vo("click",(function(){return e.orderBy("ownershipDate")})),fa(40," Date Purchased "),Po(),Oo(41,"th",19),Vo("click",(function(){return e.orderBy("maturityDate")})),fa(42," Maturity Date "),Po(),No(43,"th",20),Po(),Po(),xo(44,CM,49,37,"tr",21),Po(),Po(),Po(),Oo(45,"div"),No(46,"pagination"),Po(),xo(47,SM,2,0,"div",22),Po(),Oo(48,"div",23),No(49,"br"),No(50,"mat-spinner",24),No(51,"br"),No(52,"br"),No(53,"br"),Po(),Po()),2&t){var i;const t=null==(i=e.FilterByStatus.get("securityID"))?null:i.value;var n;const s=null==(n=e.FilterByStatus.get("beneficiaries"))?null:n.value;_s(5),Ao("formGroup",e.FilterByStatus),_s(2),Ao("ngForOf",e.securityIDList),_s(1),Ao("ngIf",t),_s(2),Ao("formGroup",e.FilterByStatus),_s(2),Ao("ngForOf",e.filterbyBeneficaries),_s(1),Ao("ngIf",s),_s(2),Ao("formGroup",e.TextSearch),_s(4),Ao("ngIf",e.TextSearch.controls.term.value),_s(10),sa("sort-up","customerIDup"===e.orderByService.sortBy)("sort-down","customerIDdown"===e.orderByService.sortBy),_s(2),sa("sort-up","securityIDup"===e.orderByService.sortBy)("sort-down","securityIDdown"===e.orderByService.sortBy),_s(2),sa("sort-up","transactionNumberup"===e.orderByService.sortBy)("sort-down","transactionNumberdown"===e.orderByService.sortBy),_s(2),sa("sort-up","rateup"===e.orderByService.sortBy)("sort-down","ratedown"===e.orderByService.sortBy),_s(2),sa("sort-up","currentSharesup"===e.orderByService.sortBy)("sort-down","currentSharesdown"===e.orderByService.sortBy),_s(2),sa("sort-up","ownershipDateup"===e.orderByService.sortBy)("sort-down","ownershipDatedown"===e.orderByService.sortBy),_s(2),sa("sort-up","maturityDateup"===e.orderByService.sortBy)("sort-down","maturityDatedown"===e.orderByService.sortBy),_s(3),Ao("ngForOf",e.audit),_s(3),Ao("ngIf",0===e.totalEntries&&!0===e.loadingData),_s(1),Ao("hidden",e.loadingData)}},directives:[wD,vd,Ap,CP,yd,Fp,au,cu,dD,OD,dd,jE,gT,YN,zO,OE,fD],pipes:[Su,Cu],styles:[".modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.4);display:flex;justify-content:center;align-items:center;z-index:999}.custom-modal[_ngcontent-%COMP%]{background:#e2dfdf;padding:20px;border-radius:10px;width:600px;max-width:90%}
1.modal-footer[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.input-cell[_ngcontent-%COMP%]{flex:1;gap:25px}.close[_ngcontent-%COMP%]{border:0 solid #fff;background-color:#fff}"]}),t})()},{path:"redemption",component:mM},{path:"Viewtransaction",component:(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._formBuilder=t,this._router=e,this._authService=i,this.orderByService=n,this._backendservice=s,this._paginationService=r,this.searchService=o,this.datePipe=a,this.defaultSortOrder="",this.active="",this.result="",this.loadingData=!1,this.originalItems=[],this.totalEntries=0,this.pagenlenth=!0,this.audit=[],this.noEntrys=!1,this.searchArray=[],this.searchFilteredItems=[],this.exportItems=[]}ngOnInit(){this.pageLoad(),this.searchArray=["securityID","ownershipdate","currentshares","applicationStatus","customerID","customerName","transactionNumber","maturitydate","originofshares","securitydescription","securityType"],this.TextSearch=this._formBuilder.group({term:[""]})}pageLoad(){this._backendservice.getData(`${E_.viewTransactionURLBase}/${this._authService.NIBNumber}`).subscribe(t=>{this.loadingData=!0,this.originalItems=t.data,this.audit=this.originalItems,this.totalEntries=this.audit.length,this.data1=this.originalItems,0===this.audit.length&&(this.noEntrys=!0),this.setGrid(1,this.totalEntries,"Getdata"),this.orderBy(this.defaultSortOrder),this.paginationGrid()})}makeActive(t){this.active=this.active===t?"":t}formatDataexport(t){t.map(t=>{t.approvedTime=this.datePipe.transform(t.approvedTime.toString(),"MM/dd/yyyy")})}paginationGrid(){this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.originalItems.slice(this.entryRange[0],this.entryRange[1]),this.totalEntries=this.audit.length})}setGrid(t,e,i){const n=e;this.pagenlenth=!1,this._paginationService.setGrid(t,n)}searchText(){this.result=this.TextSearch.controls.term.value,this.searchService.findItemsFromMultiple(this.result,this.originalItems,this.searchArray).then(t=>{this.result.length>0?(this.audit=t,this.searchFilteredItems=t):(this.audit=this.originalItems,this.searchFilteredItems=this.originalItems),this.setGrid(1,this.audit.length,"search"),this.entryRangeSubscription=this._paginationService.entryRange.subscribe(t=>{this.entryRange=t,this.audit=this.searchFilteredItems.slice(this.entryRange[0],this.entryRange[1]),this.exportItems=this.originalItems,this.totalEntries=this.audit.length})})}clearTextSearch(){this.TextSearch=this._formBuilder.group({term:[""]}),this.searchText()}orderBy(t){let e=this.originalItems;this.items=this.orderByService.orderByParam(t,e,t===this.defaultSortOrder?void 0:this.defaultSortOrder),this.setGrid(1,e.length)}}return t.\u0275fac=function(e){return new(e||t)(Io(Lp),Io(t_),Io(bS),Io(PN),Io(yS),Io(NN),Io(RN),Io(Cu))},t.\u0275cmp=Se({type:t,selectors:[["app-view-transactions"]],viewQuery:function(t,e){var i;1&t&&Ql(WN,!0),2&t&&Xl(i=sc())&&(e.paginator=i.first)},features:[La([NN,PN,RN])],decls:41,vars:41,consts:[[1,"container-fluid","pt-2"],[1,"animated","fadeIn","mb-3"],[1,"row"],[1,"col-12","col-md-3"],[1,"w-100",3,"formGroup"],["type","text","matInput","","formControlName","term",3,"keyup"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"animated","zoomIn","table-responsive"],[1,"table","table-hover","table-condensed","table-lt-grey","width-auto"],[1,"cbob-blue-thead","table-bordered","sticky-header"],[1,"headings"],[1,"hwidth",3,"click"],[3,"active","click",4,"ngFor","ngForOf"],[4,"ngIf"],[2,"width","100%",3,"hidden"],["mode","indeterminate",1,"pink-spinner",".mat-spinner-bar-buffer",2,"margin","0 auto"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"click"],[1,"font-size"]],template:function(t,e){1&t&&(Oo(0,"div",0),Oo(1,"div",1),Oo(2,"div",2),Oo(3,"div",3),Oo(4,"mat-form-field",4),Oo(5,"mat-label"),fa(6,"Search"),Po(),Oo(7,"input",5),Vo("keyup",(function(){return e.searchText()})),Po(),xo(8,xM,3,0,"button",6),Po(),Po(),Po(),Oo(9,"div",7),Oo(10,"table",8),Oo(11,"thead",9),Oo(12,"tr",10),Oo(13,"th",11),Vo("click",(function(){return e.orderBy("customerID")})),fa(14," CustomerID "),Po(),Oo(15,"th",11),Vo("click",(function(){return e.orderBy("customerName")})),fa(16," Customer Name "),Po(),Oo(17,"th",11),Vo("click",(function(){return e.orderBy("securityID")})),fa(18," SecurityID "),Po(),Oo(19,"th",11),Vo("click",(function(){return e.orderBy("transactionNumber")})),fa(20," Transaction Number "),Po(),Oo(21,"th",11),Vo("click",(function(){return e.orderBy("ownershipdate")})),fa(22," Ownership Date "),Po(),Oo(23,"th",11),Vo("click",(function(){return e.orderBy("maturitydate")})),fa(24," Maturity Date "),Po(),Oo(25,"th",11),Vo("click",(function(){return e.orderBy("currentshares")}
1)),fa(26," Current Shares "),Po(),Oo(27,"th",11),Vo("click",(function(){return e.orderBy("securitydescription")})),fa(28," Comments "),Po(),Oo(29,"th",11),Vo("click",(function(){return e.orderBy("securityType")})),fa(30," Security Type "),Po(),Po(),Po(),xo(31,kM,28,38,"tr",12),Po(),Po(),Po(),Oo(32,"div"),No(33,"pagination"),Po(),xo(34,IM,2,0,"div",13),Po(),Oo(35,"div",14),No(36,"br"),No(37,"mat-spinner",15),No(38,"br"),No(39,"br"),No(40,"br"),Po()),2&t&&(_s(4),Ao("formGroup",e.TextSearch),_s(4),Ao("ngIf",e.TextSearch.controls.term.value),_s(5),sa("sort-up","customerIDup"===e.orderByService.sortBy)("sort-down","customerIDdown"===e.orderByService.sortBy),_s(2),sa("sort-up","customerNameup"===e.orderByService.sortBy)("sort-down","customerNamedown"===e.orderByService.sortBy),_s(2),sa("sort-up","securityIDup"===e.orderByService.sortBy)("sort-down","securityIDdown"===e.orderByService.sortBy),_s(2),sa("sort-up","transactionNumberup"===e.orderByService.sortBy)("sort-down","transactionNumberdown"===e.orderByService.sortBy),_s(2),sa("sort-up","ownershipdateup"===e.orderByService.sortBy)("sort-down","ownershipdatedown"===e.orderByService.sortBy),_s(2),sa("sort-up","maturitydateup"===e.orderByService.sortBy)("sort-down","maturitydateedown"===e.orderByService.sortBy),_s(2),sa("sort-up","currentsharesup"===e.orderByService.sortBy)("sort-down","currentsharesdown"===e.orderByService.sortBy),_s(2),sa("sort-up","securitydescriptionup"===e.orderByService.sortBy)("sort-down","securitydescriptiondown"===e.orderByService.sortBy),_s(2),sa("sort-up","securityTypeup"===e.orderByService.sortBy)("sort-down","securityTypedown"===e.orderByService.sortBy),_s(2),Ao("ngForOf",e.audit),_s(3),Ao("ngIf",0===e.totalEntries&&!0===e.loadingData),_s(1),Ao("hidden",e.loadingData))},directives:[wD,vd,Ap,dD,OD,dd,yd,Fp,cu,au,YN,zO,jE,fD,gT],pipes:[Cu,Su],styles:[".font-size[_ngcontent-%COMP%]{font-size:14px}"]}),t})()}]},{path:"profile",component:sR},{path:"",redirectTo:"login",pathMatch:"full"}];let DM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[__.forRoot(EM)],__]}),t})();const AM=function(t){return{pushdown:t}};let TM=(()=>{class t{constructor(t){this.notificationService=t}ngOnInit(){this.showNotice=this.notificationService.showNotification,this.notificationService.manualDismiss=!1,this.notificationService.timeToClose=3e3}closeNotice(){this.notificationService.isNotificationHidden=!0,this.notificationService.manualDismiss=!1}}return t.\u0275fac=function(e){return new(e||t)(Io(vS))},t.\u0275cmp=Se({type:t,selectors:[["notification-component"]],decls:5,vars:11,consts:[[3,"ngClass"],[1,"fa","fa-times",2,"position","absolute","top","0","right","3px","font-size","0.9em","cursor","pointer",3,"hidden","click"],[2,"margin","0 4px 0 4px"]],template:function(t,e){var i,n;1&t&&(Oo(0,"div",0),Oo(1,"i",1),Vo("click",(function(){return e.closeNotice()})),Po(),Oo(2,"div"),fa(3),Po(),No(4,"i",2),Po()),2&t&&(ba("notification-wrapper ",e.notificationService.bgType,""),Ao("ngClass",(9,i=AM,n=e.notificationService.isNotificationHidden,Ml(ni(),di(),9,i,n,void 0))),_s(1),Ao("hidden",!e.notificationService.manualDismiss),_s(2),ga(e.notificationService.message),_s(1),ba("notification-icon fa ",e.notificationService.iconType,""))},directives:[ru],styles:[""]}),t})(),OM=(()=>{class t{constructor(){this.title="bgrs-application"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Se({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(No(0,"router-outlet"),No(1,"notification-component"))},directives:[a_,TM],styles:[""]}),t})();const PM={provide:new Yt("mat-autocomplete-scroll-strategy"),deps:[RA],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let NM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[PM],imports:[[NE,jA,WI,xu],NE,WI]}),t})(),RM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI,vE],WI]}),t})(),MM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI],WI]}),t})(),FM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})(),BM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,FM,lA]]}),t})(),LM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[pE,WI],pE,WI]}),t})(),VM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI],WI]}),t})(),jM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[pE,vE,WI,CE,xu],pE,WI,CE,VM]}),t})(),zM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,WI],WI]}),t})(),UM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,WI,JD,TS],WI]}),t})(),$M=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,WI],WI]}),t})(),HM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})(),qM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[HM,vE,WI,VS],HM,WI]}),t})(),WM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[jA,lA,xu,zE,WI],WI]}),t})(),GM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[px]]}),t})(),YM=(()=>{class t{constructor(){this.changes=new A,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KM={provide:YM,deps:[[new mt,new gt,YM]],useFactory:function(t){return t||new YM}};let ZM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[KM,dE],imports:[[WI,xu,lA,zE,GM,_T,vE],WI]}),t})(),XM=(()=>{class t{constructor(){this.changes=new A,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const QM={provide:XM,deps:[[new mt,new gt,XM]],useFactory:function(t){return t||new XM}};let JM=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[QM],imports:[[xu]]}),t})(),tF=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)}}),t})(),eF=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[tF,WI]]}),t})(),iF=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[xu,WI,lA,vE,VS,hx],WI]}),t})(),nF=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[WI],WI]}),t})(),sF=(()=>{class t{}return t.\u0275mod=Ee({type:t}),t.\u0275inj=wt({factory:function(e){return new(e||t)},imports:[[NM,JA,CD,PD,zM,UO,SP,UM,qM,$M,WM,nF,PT,uE,jM,zE,RM,MM,FP,vO,ZM,_T,eF,GN,UM,JM,iF,PT,PO,xR,BM,CN,LM],NM,JA,CD,PD,zM,UO,SP,UM,qM,$M,WM,nF,PT,uE,jM,zE,RM,MM,FP,vO,ZM,_T,eF,GN,UM,JM,iF,PT,PO,xR,BM,CN,LM]}),t})(),rF=(()=>{class t{}return t.\u0275mod=Ee({type:t,bootstrap:[OM]}),t.\u0275inj=wt({factory:function(e){return new(e||t)},providers:[_S,yS,vS,eT,PN,NN,wS,RN,Cu,rM],imports:[[id,DM,Vp,jp,VI,rb,sF]]}),t})();(function(){if(An)throw new Error("Cannot enable prod mode after platform setup.");Dn=!1})(),td().bootstrapModule(rF).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]}
1,i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.