(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"6MUB":function(t,e,n){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var r=encodeURIComponent(i(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return r+encodeURIComponent(i(t))}).join(e):r+encodeURIComponent(i(t[s]))}).join(e):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(t)):""}},CxY0:function(t,e,n){"use strict";var i=n("rWzI"),s=n("Nehr");function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=v,e.resolve=function(t,e){return v(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?v(t,!1,!0).resolveObject(e):e},e.format=function(t){return s.isString(t)&&(t=v(t)),t instanceof r?t.format():r.prototype.format.call(t)},e.Url=r;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),u=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("r8II");function v(t,e,n){if(t&&s.isObject(t)&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}r.prototype.parse=function(t,e,n){if(!s.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),a=-1!==r&&r127?D+="x":D+=R[L];if(!D.match(p)){var N=I.slice(0,A),F=I.slice(A+1),V=R.match(f);V&&(N.push(V[1]),F.unshift(V[2])),F.length&&(v="/"+F.join(".")+v),this.hostname=N.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),T||(this.hostname=i.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[C])for(A=0,P=h.length;A0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift())),n.search=t.search,n.query=t.query,s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var S=w.slice(-1)[0],x=(n.host||t.host||w.length>1)&&("."===S||".."===S)||""===S,E=0,k=w.length;k>=0;k--)"."===(S=w[k])?w.splice(k,1):".."===S?(w.splice(k,1),E++):E&&(w.splice(k,1),E--);if(!v&&!b)for(;E--;E)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),x&&"/"!==w.join("/").substr(-1)&&w.push("");var A,O=""===w[0]||w[0]&&"/"===w[0].charAt(0);return C&&(n.hostname=n.host=O?"":w.length?w.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift())),(v=v||n.host&&w.length)&&!O&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),s.isNull(n.pathname)&&s.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},Nehr:function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},YcCt:function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,s){n=n||"=";var r={};if("string"!=typeof t||0===t.length)return r;var o=/\+/g;t=t.split(e=e||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var l=t.length;a>0&&l>a&&(l=a);for(var c=0;c=0?(h=f.substr(0,m),u=f.substr(m+1)):(h=f,u=""),d=decodeURIComponent(h),p=decodeURIComponent(u),i(r,d)?Array.isArray(r[d])?r[d].push(p):r[d]=[r[d],p]:r[d]=p}return r}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},r8II:function(t,e,n){"use strict";e.decode=e.parse=n("YcCt"),e.encode=e.stringify=n("6MUB")},rWzI:function(t,e,n){(function(t){var i;!function(s){"object"==typeof global&&global;var r,o=2147483647,a=36,l=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function f(t){throw RangeError(u[t])}function m(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function g(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+m((t=t.replace(h,".")).split("."),e).join(".")}function _(t){for(var e,n,i=[],s=0,r=t.length;s=55296&&e<=56319&&s65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+p(t)}).join("")}function v(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function b(t,e,n){var i=0;for(t=n?d(t/700):t>>1,t+=d(t/e);t>455;i+=a)t=d(t/35);return d(i+36*t/(t+38))}function w(t){var e,n,i,s,r,l,c,h,u,p,m,g=[],_=t.length,v=0,w=128,C=72;for((n=t.lastIndexOf("-"))<0&&(n=0),i=0;i=128&&f("not-basic"),g.push(t.charCodeAt(i));for(s=n>0?n+1:0;s<_;){for(r=v,l=1,c=a;s>=_&&f("invalid-input"),((h=(m=t.charCodeAt(s++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a)>=a||h>d((o-v)/l))&&f("overflow"),v+=h*l,!(h<(u=c<=C?1:c>=C+26?26:c-C));c+=a)l>d(o/(p=a-u))&&f("overflow"),l*=p;C=b(v-r,e=g.length+1,0==r),d(v/e)>o-w&&f("overflow"),w+=d(v/e),v%=e,g.splice(v++,0,w)}return y(g)}function C(t){var e,n,i,s,r,l,c,h,u,m,g,y,w,C,S,x=[];for(y=(t=_(t)).length,e=128,n=0,r=72,l=0;l=e&&gd((o-n)/(w=i+1))&&f("overflow"),n+=(c-e)*w,e=c,l=0;lo&&f("overflow"),g==e){for(h=n,u=a;!(h<(m=u<=r?1:u>=r+26?26:u-r));u+=a)x.push(p(v(m+(S=h-m)%(C=a-m),0))),h=d(S/C);x.push(p(v(h,0))),r=b(n,w,i==s),n=0,++i}++n,++e}return x.join("")}r={version:"1.3.2",ucs2:{decode:_,encode:y},decode:w,encode:C,toASCII:function(t){return g(t,function(t){return c.test(t)?"xn--"+C(t):t})},toUnicode:function(t){return g(t,function(t){return l.test(t)?w(t.slice(4).toLowerCase()):t})}},void 0===(i=(function(){return r}).call(e,n,e,t))||(t.exports=i)}()}).call(this,n("YuTi")(t))},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function y(...t){return v(t)}function v(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:v(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class x extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew k(t,e),t})();class k extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function A(t){return t&&"function"==typeof t.schedule}function O(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const P=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function M(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(L(t))return P(t);if(M(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[D])return e=t,t=>{const n=e[D]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function F(t,e){return new b(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(M(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(L(t))return F(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[D](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(N(t))}class j extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class B extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function U(t,e){if(e.closed)return;if(t instanceof b)return t.subscribe(e);let n;try{n=N(t)(e)}catch(i){e.error(i)}return n}function z(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(z((n,i)=>V(t(n,i)).pipe(O((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends B{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return z(_,t)}function W(t,e){return e?F(t,e):new b(P(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return A(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:q(e)(W(t,n))}function Z(){return function(t){return t.lift(new K(t))}}class K{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Q(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Q extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Y extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Z()(this)}}const X=(()=>{const t=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends x{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 tt(){return new E}function et(){return t=>{return Z()((e=tt,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,X);return i.source=t,i.subjectFactory=n,i})(t));var e}}function nt(t){for(let e in t)if(t[e]===nt)return e;throw Error("Could not find renamed property on target object.")}function it(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function st(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(st).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function rt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const ot=nt({__forward_ref__:nt});function at(t){return t.__forward_ref__=at,t.toString=function(){return st(this())},t}function lt(t){return ct(t)?t():t}function ct(t){return"function"==typeof t&&t.hasOwnProperty(ot)&&t.__forward_ref__===at}class ht extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function dt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function pt(t,e){const n=e?` in ${e}`:"";throw new ht("201",`No provider for ${dt(t)} found${n}`)}function ft(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mt(t){return{providers:t.providers||[],imports:t.imports||[]}}function gt(t){return _t(t,vt)||_t(t,wt)}function _t(t,e){return t.hasOwnProperty(e)?t[e]:null}function yt(t){return t&&(t.hasOwnProperty(bt)||t.hasOwnProperty(Ct))?t[bt]:null}const vt=nt({"\u0275prov":nt}),bt=nt({"\u0275inj":nt}),wt=nt({ngInjectableDef:nt}),Ct=nt({ngInjectorDef:nt});var St=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}({});let xt;function Et(t){const e=xt;return xt=t,e}function kt(t,e,n){const i=gt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&St.Optional?null:void 0!==e?e:void pt(st(t),"Injector")}function At(t){return{toString:t}.toString()}var Ot=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Tt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const It="undefined"!=typeof globalThis&&globalThis,Pt="undefined"!=typeof window&&window,Rt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Dt="undefined"!=typeof global&&global,Lt=It||Dt||Pt||Rt,Mt={},Nt=[],Ft=[],Vt=nt({"\u0275cmp":nt}),jt=nt({"\u0275dir":nt}),Bt=nt({"\u0275pipe":nt}),Ut=nt({"\u0275mod":nt}),zt=nt({"\u0275loc":nt}),Ht=nt({"\u0275fac":nt}),$t=nt({__NG_ELEMENT_ID__:nt});let qt=0;function Wt(t){return At(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ft,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Tt.Emulated,id:"c",styles:t.styles||Ft,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=qt++,n.inputs=Yt(t.inputs,e),n.outputs=Yt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Gt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(Zt):null,n})}function Gt(t){return Jt(t)||function(t){return t[jt]||null}(t)}function Zt(t){return function(t){return t[Bt]||null}(t)}const Kt={};function Qt(t){const e={type:t.type,bootstrap:t.bootstrap||Ft,declarations:t.declarations||Ft,imports:t.imports||Ft,exports:t.exports||Ft,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&At(()=>{Kt[t.id]=t.type}),e}function Yt(t,e){if(null==t)return Mt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const Xt=Wt;function Jt(t){return t[Vt]||null}function te(t,e){const n=t[Ut]||null;if(!n&&!0===e)throw new Error(`Type ${st(t)} does not have '\u0275mod' property.`);return n}const ee=20,ne=10;function ie(t){return Array.isArray(t)&&"object"==typeof t[1]}function se(t){return Array.isArray(t)&&!0===t[1]}function re(t){return 0!=(8&t.flags)}function oe(t){return 2==(2&t.flags)}function ae(t){return 1==(1&t.flags)}function le(t){return null!==t.template}function ce(t,e){return t.hasOwnProperty(Ht)?t[Ht]:null}class he{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ue(){return de}function de(t){return t.type.prototype.ngOnChanges&&(t.setInput=fe),pe}function pe(){const t=me(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Mt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function fe(t,e,n,i){const s=me(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Mt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new he(l&&l.currentValue,e,o===Mt),t[i]=e}function me(t){return t.__ngSimpleChanges__||null}ue.ngInherit=!0;const ge="http://www.w3.org/2000/svg";let _e;function ye(t){return!!t.listen}const ve={createRenderer:(t,e)=>void 0!==_e?_e:"undefined"!=typeof document?document:void 0};function be(t){for(;Array.isArray(t);)t=t[0];return t}function we(t,e){return be(e[t])}function Ce(t,e){return be(e[t.index])}function Se(t,e){return t.data[e]}function xe(t,e){return t[e]}function Ee(t,e){const n=e[t];return ie(n)?n:n[0]}function ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ae(t){return 4==(4&t[2])}function Oe(t){return 128==(128&t[2])}function Te(t,e){return null==e?null:t[e]}function Ie(t){t[18]=0}function Pe(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Re={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function De(){return Re.bindingsEnabled}function Le(){return Re.lFrame.lView}function Me(){return Re.lFrame.tView}function Ne(t){Re.lFrame.contextLView=t}function Fe(){let t=Ve();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ve(){return Re.lFrame.currentTNode}function je(t,e){const n=Re.lFrame;n.currentTNode=t,n.isParent=e}function Be(){return Re.lFrame.isParent}function Ue(){Re.lFrame.isParent=!1}function ze(){return Re.isInCheckNoChangesMode}function He(t){Re.isInCheckNoChangesMode=t}function $e(){const t=Re.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function qe(){return Re.lFrame.bindingIndex++}function We(t){const e=Re.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ge(t,e){const n=Re.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ze(e)}function Ze(t){Re.lFrame.currentDirectiveIndex=t}function Ke(t){const e=Re.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Qe(){return Re.lFrame.currentQueryIndex}function Ye(t){Re.lFrame.currentQueryIndex=t}function Xe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Je(t,e,n){if(n&St.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&St.Host||(i=Xe(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Re.lFrame=en();return i.currentTNode=e,i.lView=t,!0}function tn(t){const e=en(),n=t[1];Re.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function en(){const t=Re.lFrame,e=null===t?null:t.child;return null===e?nn(t):e}function nn(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function sn(){const t=Re.lFrame;return Re.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const rn=sn;function on(){const t=sn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function an(){return Re.lFrame.selectedIndex}function ln(t){Re.lFrame.selectedIndex=t}function cn(){const t=Re.lFrame;return Se(t.tView,t.selectedIndex)}function hn(){Re.lFrame.currentNamespace=ge}function un(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const _n=-1;class yn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function vn(t,e,n){const i=ye(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,i=e;for(;n>0;)i=i[15],n--;return i}let An=!0;function On(t){const e=An;return An=t,e}let Tn=0;function In(t,e){const n=Rn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Pn(i.data,t),Pn(e,null),Pn(i.blueprint,null));const s=Dn(t,e),r=t.injectorIndex;if(xn(s)){const t=En(s),n=kn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Pn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return _n;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return _n}function Ln(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty($t)&&(i=n[$t]),null==i&&(i=n[$t]=Tn++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:jn:e}(n);if("function"==typeof r){if(!Je(e,t,i))return i&St.Host?Mn(s,n,i):Nn(e,n,i,s);try{const t=r();if(null!=t||i&St.Optional)return t;pt(n)}finally{rn()}}else if("number"==typeof r){let s=null,o=Rn(t,e),a=_n,l=i&St.Host?e[16][6]:null;for((-1===o||i&St.SkipSelf)&&(a=-1===o?Dn(t,e):e[o+8],a!==_n&&$n(i,!1)?(s=e[1],o=En(a),e=kn(a,e)):o=-1);-1!==o;){const t=e[1];if(Hn(r,o,t.data)){const t=Bn(o,e,n,s,i,l);if(t!==Vn)return t}a=e[o+8],a!==_n&&$n(i,e[1].data[o+8]===l)&&Hn(r,o,e)?(s=t,o=En(a),e=kn(a,e)):o=-1}}}return Nn(e,n,i,s)}const Vn={};function jn(){return new qn(Fe(),Le())}function Bn(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Un(a,o,n,null==i?oe(a)&&An:i!=o&&0!=(3&a.type),s&St.Host&&r===a);return null!==l?zn(e,o,l,a):Vn}function Un(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u=l&&t.type===n)return u}if(s){const t=o[l];if(t&&le(t)&&t.type===n)return l}return null}function zn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof yn){const o=s;o.resolving&&function(t,e){throw new ht("200",`Circular dependency in DI detected for ${t}`)}(dt(r[n]));const a=On(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Et(o.injectImpl):null;Je(t,i,St.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=de(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&Et(l),On(a),o.resolving=!1,rn()}}return s}function Hn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Ht]||Gn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Ht]||Gn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Gn(t){return ct(t)?()=>{const e=Gn(lt(t));return e&&e()}:ce(t)}function Zn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(Kn)?t[Kn]:Object.defineProperty(t,Kn,{value:[]})[Kn];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Yn{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=ft({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Xn=new Yn("AnalyzeForEntryComponents"),Jn=Function;function ti(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?ei(t,e):e(t))}function ni(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ii(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function si(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function oi(t,e){const n=ai(t,e);if(n>=0)return t[1|n]}function ai(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const li={},ci=/\n/gm,hi="__source",ui=nt({provide:String,useValue:nt});let di;function pi(t){const e=di;return di=t,e}function fi(t,e=St.Default){if(void 0===di)throw new Error("inject() must be called from an injection context");return null===di?kt(t,void 0,e):di.get(t,e&St.Optional?null:void 0,e)}function mi(t,e=St.Default){return(xt||fi)(lt(t),e)}const gi=mi;function _i(t){const e=[];for(let n=0;n({token:t})),-1),bi=yi(Qn("Optional"),8),wi=yi(Qn("SkipSelf"),4);let Ci;function Si(t){var e;return(null===(e=function(){if(void 0===Ci&&(Ci=null,Lt.trustedTypes))try{Ci=Lt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ci}())||void 0===e?void 0:e.createHTML(t))||t}class xi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ei extends xi{getTypeName(){return"HTML"}}class ki extends xi{getTypeName(){return"Style"}}class Ai extends xi{getTypeName(){return"Script"}}class Oi extends xi{getTypeName(){return"URL"}}class Ti extends xi{getTypeName(){return"ResourceURL"}}function Ii(t){return t instanceof xi?t.changingThisBreaksApplicationSecurity:t}function Pi(t,e){const n=Ri(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Ri(t){return t instanceof xi&&t.getTypeName()||null}class Di{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Si(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Li{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Si(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Si(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Fi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Xi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();$i.hasOwnProperty(e)&&!Bi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xi(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 Qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yi=/([^\#-~ |!])/g;function Xi(t){return t.replace(/&/g,"&").replace(Qi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Yi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Ji;function ts(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var es=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ns(t){return t.ngDebugContext}function is(t){return t.ngOriginalError}function ss(t,...e){t.error(...e)}class rs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ss}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ns(t)?ns(t):this._findContext(is(t)):null}_findOriginalError(t){let e=is(t);for(;e&&is(e);)e=is(e);return e}}function os(t,e){t.__ngContext__=e}const as=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Lt))();function ls(t){return t instanceof Function?t():t}var cs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function hs(t,e){return(void 0)(t,e)}function us(t){const e=t[3];return se(e)?e[3]:e}function ds(t){return fs(t[13])}function ps(t){return fs(t[4])}function fs(t){for(;null!==t&&!se(t);)t=t[4];return t}function ms(t,e,n,i,s){if(null!=i){let r,o=!1;se(i)?r=i:ie(i)&&(o=!0,i=i[0]);const a=be(i);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null,!0):1===t&&null!==n?Cs(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Es(t,e);i&&function(t,e,n,i){ye(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==be(n)&&ms(e,t,i,r,s);for(let o=ne;o0&&(t[n-1][4]=i[4]);const o=ii(t,ne+e);Ds(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function vs(t,e){if(!(256&e[2])){const n=e[11];ye(n)&&n.destroyNode&&Ds(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return bs(t[1],t);for(;e;){let n=null;if(ie(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ie(e)&&bs(e[1],e),e=e[3];null===e&&(e=t),ie(e)&&bs(e[1],e),n=e&&e[4]}e=n}}(e)}}function bs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fs(e,c,0)||2&i&&c!==t){if(Hs(i))return!1;o=!0}}}}else{if(!o&&!Hs(i)&&!Hs(l))return!1;if(o&&Hs(l))continue;o=!1,i=l|1&i}}return Hs(i)||o}function Hs(t){return 0==(1&t)}function $s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||Hs(o)||(e+=Gs(r,s),s=""),i=o,r=r||!Hs(i);n++}return""!==s&&(e+=Gs(r,s)),e}const Ks={};function Qs(t){Ys(Me(),Le(),an()+t,ze())}function Ys(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&dn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&pn(e,i,0,n)}ln(n)}function Xs(t,e){return t<<17|e<<2}function Js(t){return t>>17&32767}function tr(t){return 2|t}function er(t){return(131068&t)>>2}function nr(t,e){return-131069&t|e<<2}function ir(t){return 1|t}function sr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iee&&Ys(t,e,ee,ze()),n(i,s)}finally{ln(r)}}function dr(t,e,n){if(re(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function Cr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Sr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function xr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Rr(n)}}function Rr(t){for(let n=ds(t);null!==n;n=ps(n))for(let t=ne;t0&&Rr(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Rr(i)}}function Dr(t,e){const n=Ee(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Br(t){return t[7]||(t[7]=[])}function Ur(t){return t.cleanup||(t.cleanup=[])}function zr(t,e,n){return(null===t||le(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Hr(t,e){const n=t[9],i=n?n.get(rs,null):null;i&&i.handleError(e)}function $r(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),ei([t],t=>this.processInjectorType(t,[],s)),this.records.set(Wr,so(void 0,this));const r=this.records.get(Zr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:st(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=li,n=St.Default){this.assertNotDestroyed();const i=pi(this);try{if(!(n&St.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Yn)&>(t);e=n&&this.injectableDefInScope(n)?so(no(t),Kr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&St.Self?Jr():this.parent).get(t,e=n&St.Optional&&e===li?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(st(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[hi]&&s.unshift(e[hi]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=st(e);if(Array.isArray(e))s=e.map(st).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):st(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(ci,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{pi(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(st(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=lt(t)))return!1;let i=yt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=yt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ei(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Yr))}}this.injectorDefTypes.add(r);const a=ce(r)||(()=>new r);this.records.set(r,so(a,Kr));const l=i.providers;if(null!=l&&!o){const e=t;ei(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=oo(t=lt(t))?t:lt(t&&t.provide);const s=function(t,e,n){return ro(t)?so(void 0,t.useValue):so(io(t),Kr)}(t);if(oo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=so(void 0,Kr,!0),e.factory=()=>_i(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Kr&&(e.value=Qr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=gt(t),n=null!==e?e.factory:ce(t);if(null!==n)return n;if(t instanceof Yn)throw new Error(`Token ${st(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=si(e,"?");throw new Error(`Can't resolve all parameters for ${st(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[vt]||t[wt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function io(t,e,n){let i;if(oo(t)){const e=lt(t);return ce(e)||no(e)}if(ro(t))i=()=>lt(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(..._i(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>mi(lt(t.useExisting));else{const e=lt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ce(e)||no(e);i=()=>new e(..._i(t.deps))}var s;return i}function so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ro(t){return null!==t&&"object"==typeof t&&ui in t}function oo(t){return"function"==typeof t}const ao=function(t,e,n){return function(t,e=null,n=null,i){const s=to(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let lo=(()=>{class t{static create(t,e){return Array.isArray(t)?ao(t,e,""):ao(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=li,t.NULL=new Gr,t.\u0275prov=ft({token:t,providedIn:"any",factory:()=>mi(Wr)}),t.__NG_ELEMENT_ID__=-1,t})();function co(t,e){un(ke(t)[1],Fe())}function ho(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(le(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=uo(t.inputs),e.declaredInputs=uo(t.declaredInputs),e.outputs=uo(t.outputs);const n=s.hostBindings;n&&mo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&po(t,r),o&&fo(t,o),it(t.inputs,s.inputs),it(t.declaredInputs,s.declaredInputs),it(t.outputs,s.outputs),le(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Cn(s.hostAttrs,n=Cn(n,s.hostAttrs))}}(i)}function uo(t){return t===Mt?{}:t===Ft?[]:t}function po(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function fo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function mo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let go=null;function _o(){if(!go){const t=Lt.Symbol;if(t&&t.iterator)go=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(be(t[i.index])).target:i.index;if(ye(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=zo(i,e,0,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=zo(i,e,0,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=zo(i,e,0,r,!1);const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Re.lFrame.contextLView))[8]}(t)}function $o(t,e){let n=null;const i=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=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Qo(t){return t.substring(Ko.key,Ko.keyEnd)}function Yo(t,e){const n=Ko.textEnd;return n===e?-1:(e=Ko.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ko.key=e,n),Xo(t,e,n))}function Xo(t,e,n){for(;e=0;n=Yo(e,n))ri(t,Qo(e),!0)}function na(t,e,n,i){const s=Le(),r=Me(),o=We(2);r.firstUpdatePass&&sa(r,t,o,i),e!==Ks&&Co(s,o,e)&&aa(r,r.data[an()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=st(Ii(t)))),t}(e,n),i,o)}function ia(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[an()],o=ia(t,n);ha(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=Ke(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=ra(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ra(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==er(i))return t[Js(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Js(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Js(t[a+1]);t[i+1]=Xs(e,a),0!==e&&(t[e+1]=nr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Xs(a,0),0!==a&&(t[a+1]=nr(t[a+1],i)),a=i;else t[i+1]=Xs(l,0),0===a?a=i:t[l+1]=nr(t[l+1],i),l=i;h&&(t[i+1]=tr(t[i+1])),Go(t,c,i,!0),Go(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ai(r,e)>=0&&(n[i+1]=ir(n[i+1]))}(e,c,t,i,r),o=Xs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ra(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===Ks&&(h=c?Nt:void 0);let u=c?oi(h,i):l===i?h:void 0;if(r&&!ca(u)&&(u=oi(e,i)),ca(u)&&(a=u,o))return a;const d=t[s+1];s=o?Js(d):er(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oi(t,i))}return a}function ca(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function ua(t,e=""){const n=Le(),i=Me(),s=t+ee,r=i.firstCreatePass?or(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return ye(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Os(i,n,o,r),je(r,!1)}function da(t){return pa("",t,""),da}function pa(t,e,n){const i=Le(),s=xo(i,t,e,n);return s!==Ks&&function(t,e,n){const i=we(e,t);!function(t,e,n){ye(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,an(),s),pa}function fa(t,e,n){const i=Le();return Co(i,qe(),e)&&vr(Me(),cn(),i,t,e,i[11],n,!0),fa}function ma(t,e,n){const i=Le();if(Co(i,qe(),e)){const s=Me(),r=cn();vr(s,r,i,t,e,zr(Ke(s.data),r,i),n,!0)}return ma}const ga=void 0;var _a=["en",[["a","p"],["AM","PM"],ga],[["AM","PM"],ga,ga],[["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"]],ga,[["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"]],ga,[["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}",ga,"{1} 'at' {0}",ga],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ya={};function va(t){return t in ya||(ya[t]=Lt.ng&&Lt.ng.common&&Lt.ng.common.locales&&Lt.ng.common.locales[t]),ya[t]}var ba=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const wa="en-US";let Ca=wa;function Sa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ca=t.toLowerCase().replace(/_/g,"-"))}function xa(t,e,n,i,s){if(t=lt(t),Array.isArray(t))for(let r=0;r>20;if(oo(t)||!t.multi){const i=new yn(l,s,ko),p=Aa(a,e,s?h:h+d,u);-1===p?(Ln(In(c,o),r,a),Ea(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Aa(a,e,h+d,u),f=Aa(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){Ln(In(c,o),r,a);const h=function(t,e,n,i,s){const r=new yn(t,n,ko);return r.multi=[],r.index=e,r.componentProviders=0,ka(r,s,i&&!n),r}(s?Ta:Oa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),Ea(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else Ea(r,t,p>-1?p:f,ka(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function Ea(t,e,n,i){const s=oo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ka(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Aa(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Me();if(i.firstCreatePass){const s=le(t);xa(n,i.data,i.blueprint,s,!0),xa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ra{}class Da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${st(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let La=(()=>{class t{}return t.NULL=new Da,t})();function Ma(...t){}function Na(t,e){return new Va(Ce(t,e))}const Fa=function(){return Na(Fe(),Le())};let Va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Fa,t})();function ja(t){return t instanceof Va?t.nativeElement:t}class Ba{}let Ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>za(),t})();const za=function(){const t=Le(),e=Ee(Fe().index,t);return function(t){return t[11]}(ie(e)?e:t)};let Ha=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>null}),t})();class $a{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const qa=new $a("11.2.14");class Wa{constructor(){}supports(t){return vo(t)}create(t){return new Za(t)}}const Ga=(t,e)=>e;class Za{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||Ga}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,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;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new Ka(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ya),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ya),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 Ka{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 Qa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ya{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Qa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xa(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new el(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class el{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}}function nl(){return new il([new Wa])}let il=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||nl()),deps:[[t,new wi,new bi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ft({token:t,providedIn:"root",factory:nl}),t})();function sl(){return new rl([new Ja])}let rl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||sl()),deps:[[t,new wi,new bi]]}}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=ft({token:t,providedIn:"root",factory:sl}),t})();function ol(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(be(r)),se(r))for(let t=ne;t-1&&(ys(t,n),ii(e,n))}this._attachedToViewContainer=!1}vs(this._lView[1],this._lView)}onDestroy(t){_r(this._lView[1],this._lView,null,t)}markForCheck(){Mr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Nr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){He(!0);try{Nr(t,e,n)}finally{He(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ds(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ll extends al{constructor(t){super(t),this._view=t}detectChanges(){Fr(this._view)}checkNoChanges(){!function(t){He(!0);try{Fr(t)}finally{He(!1)}}(this._view)}get context(){return null}}const cl=ul;let hl=(()=>{class t{}return t.__NG_ELEMENT_ID__=cl,t.__ChangeDetectorRef__=!0,t})();function ul(t=!1){return function(t,e,n){if(!n&&oe(t)){const n=Ee(t.index,e);return new al(n,n)}return 47&t.type?new al(e[16],e):null}(Fe(),Le(),t)}const dl=[new Ja],pl=new il([new Wa]),fl=new rl(dl),ml=function(){return vl(Fe(),Le())};let gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ml,t})();const _l=gl,yl=class extends _l{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=rr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),lr(e,n,t),new al(n)}};function vl(t,e){return 4&t.type?new yl(e,t,Na(t,e)):null}class bl{}class wl{}const Cl=function(){return Ol(Fe(),Le())};let Sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Cl,t})();const xl=Sl,El=class extends xl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Na(this._hostTNode,this._hostLView)}get injector(){return new qn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Dn(this._hostTNode,this._hostLView);if(xn(t)){const e=kn(t,this._hostLView),n=En(t);return new qn(e[1].data[n+8],e)}return new qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=kl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ne}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(bl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new El(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=ne+i,r=n.length;i>0&&(n[s-1][4]=e),ias});class Dl extends Ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Zs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Pl(this.componentDef.inputs)}get outputs(){return Pl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Tl,s);return r!==Tl||i===Tl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ba,ve),o=s.get(Ha,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===Tt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):gs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?ge:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:as,clean:jr,playerHandler:null,flags:0},d=gr(0,null,null,1,0,null,null,null,null,null),p=rr(null,d,u,h,null,null,r,a,o,s);let f,m;tn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=or(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(qr(a,l,!0),null!==t&&(vn(s,t,l),null!==a.classes&&Ns(s,t,a.classes),null!==a.styles&&Ms(s,t,a.styles)));const c=i.createRenderer(t,e),h=rr(n,mr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Ln(In(a,n),o,e.type),Sr(o,a),Er(a,n.length,1)),Lr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)vn(a,c,["ng-version",qa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&Ns(a,c,e.join(" "))}if(m=Se(d,ee),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Fe();e.contentQueries(1,o,t.directiveStart)}const a=Fe();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ln(a.index),wr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Cr(e,o)),o}(t,this.componentDef,p,u,[co]),lr(d,p,null)}finally{on()}return new Ll(this.componentType,f,Na(m,p),p,m)}}class Ll extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new ll(i),this.componentType=t}get injector(){return new qn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ml=new Map;class Nl extends bl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Il(this);const n=te(t),i=t[zt]||null;i&&Sa(i),this._bootstrapComponents=ls(n.bootstrap),this._r3Injector=to(t,e,[{provide:bl,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],st(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=lo.THROW_IF_NOT_FOUND,n=St.Default){return t===lo||t===bl||t===Wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Fl extends wl{constructor(t){super(),this.moduleType=t,null!==te(t)&&function(t){const e=new Set;!function t(n){const i=te(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${st(e)} vs ${st(e.name)}`)}(s,Ml.get(s),n),Ml.set(s,n));const r=ls(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Nl(this.moduleType,t)}}function Vl(t,e,n){const i=$e()+t,s=Le();return s[i]===Ks?wo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function jl(t,e){const n=Me();let i;const s=t+ee;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new ht("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=ce(i.type)),o=Et(ko);try{const t=On(!1),e=r();return On(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Le(),s,e),e}finally{Et(o)}}function Bl(t,e,n){const i=t+ee,s=Le(),r=xe(s,i);return function(t,e){return yo.isWrapped(e)&&(e=yo.unwrap(e),t[Re.lFrame.bindingIndex]=Ks),e}(s,function(t,e){return t[1].data[e].pure}(s,i)?function(t,e,n,i,s,r){const o=e+n;return Co(t,o,s)?wo(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===Ks?void 0:n}(t,o+1)}(s,$e(),e,r.transform,n,r):r.transform(n))}function Ul(t){return e=>{setTimeout(t,void 0,e)}}const zl=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,s,r;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(i=e.next)||void 0===i?void 0:i.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=Ul(a),o&&(o=Ul(o)),l&&(l=Ul(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof u&&t.add(c),c}};function Hl(){return this._results[_o()]()}class $l{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=_o(),n=$l.prototype;n[e]||(n[e]=Hl)}get changes(){return this._changes||(this._changes=new zl)}get(t){return this._results[t]}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,e){const n=this;n.dirty=!1;const i=ti(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=ne;t{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(mi(ac,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const cc=new Yn("AppId"),hc={provide:cc,useFactory:function(){return`${uc()}${uc()}${uc()}`},deps:[]};function uc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dc=new Yn("Platform Initializer"),pc=new Yn("Platform ID"),fc=new Yn("appBootstrapListener");let mc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const gc=new Yn("LocaleId"),_c=new Yn("DefaultCurrencyCode");class yc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const vc=function(t){return new Fl(t)},bc=vc,wc=function(t){return Promise.resolve(vc(t))},Cc=function(t){const e=vc(t),n=ls(te(t).declarations).reduce((t,e)=>{const n=Jt(e);return n&&t.push(new Dl(n)),t},[]);return new yc(e,n)},Sc=Cc,xc=function(t){return Promise.resolve(Cc(t))};let Ec=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=wc,this.compileModuleAndAllComponentsSync=Sc,this.compileModuleAndAllComponentsAsync=xc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const kc=(()=>Promise.resolve(0))();function Ac(t){"undefined"==typeof Zone?kc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Oc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zl(!1),this.onMicrotaskEmpty=new zl(!1),this.onStable=new zl(!1),this.onError=new zl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Lt.requestAnimationFrame,e=Lt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Lt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Pc(t),Ic(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Pc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return Rc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),Dc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return Rc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Pc(t),Ic(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Oc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Oc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Tc,Ma,Ma);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Tc={};function Ic(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 Pc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Rc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dc(t){t._nesting--,Ic(t)}class Lc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zl,this.onMicrotaskEmpty=new zl,this.onStable=new zl,this.onError=new zl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Mc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Oc.assertNotInAngularZone(),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,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(mi(Oc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Nc=(()=>{class t{constructor(){this._applications=new Map,jc.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 jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Fc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Vc,jc=new Fc,Bc=!0,Uc=!1;function zc(){return Uc=!0,Bc}const Hc=new Yn("AllowMultipleToken");class $c{constructor(t,e){this.name=t,this.token=e}}function qc(t,e,n=[]){const i=`Platform: ${e}`,s=new Yn(i);return(e=[])=>{let r=Wc();if(!r||r.injector.get(Hc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Zr,useValue:"platform"});!function(t){if(Vc&&!Vc.destroyed&&!Vc.injector.get(Hc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vc=t.get(Gc);const e=t.get(dc,null);e&&e.forEach(t=>t())}(lo.create({providers:t,name:i}))}return function(t){const e=Wc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Wc(){return Vc&&!Vc.destroyed?Vc:null}let Gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Lc:("zone.js"===t?void 0:t)||new Oc({enableLongStackTrace:zc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Oc,useValue:n}];return n.run(()=>{const e=lo.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(rs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Qc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return No(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(lc);return t.runInitializers(),t.donePromise.then(()=>(Sa(s.injector.get(gc,wa)||wa),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Zc({},e);return function(t,e,n){const i=new Fl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Kc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${st(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)(mi(lo))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Zc(t,e){return Array.isArray(e)?e.reduce(Zc,t):Object.assign(Object.assign({},t),e)}let Kc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Oc.assertNotInAngularZone(),Ac(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Oc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(r,o.pipe(et()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(bl),s=n.create(lo.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(Mc,null),a=o&&s.injector.get(Nc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Qc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),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()}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;Qc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(fc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(mi(Oc),mi(lo),mi(rs),mi(La),mi(lc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Qc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Yc{}class Xc{}const Jc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let th=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Jc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>eh(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>eh(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(mi(Ec),mi(Xc,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function eh(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const nh=qc(null,"core",[{provide:pc,useValue:"unknown"},{provide:Gc,deps:[lo]},{provide:Nc,deps:[]},{provide:mc,deps:[]}]),ih=[{provide:Kc,useClass:Kc,deps:[Oc,lo,rs,La,lc]},{provide:Rl,deps:[Oc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:lc,useClass:lc,deps:[[new bi,ac]]},{provide:Ec,useClass:Ec,deps:[]},hc,{provide:il,useFactory:function(){return pl},deps:[]},{provide:rl,useFactory:function(){return fl},deps:[]},{provide:gc,useFactory:function(t){return Sa(t=t||"undefined"!=typeof $localize&&$localize.locale||wa),t},deps:[[new vi(gc),new bi,new wi]]},{provide:_c,useValue:"USD"}];let sh=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(mi(Kc))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:ih}),t})(),rh=null;function oh(){return rh}const ah=new Yn("DocumentToken");let lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:ch,token:t,providedIn:"platform"}),t})();function ch(){return mi(uh)}const hh=new Yn("Location Initialized");let uh=(()=>{class t extends lh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=oh().getLocation(),this._history=oh().getHistory()}getBaseHrefFromDOM(){return oh().getBaseHref(this._doc)}onPopState(t){oh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){oh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){dh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){dh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({factory:ph,token:t,providedIn:"platform"}),t})();function dh(){return!!window.history.pushState}function ph(){return new uh(mi(ah))}function fh(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function mh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function gh(t){return t&&"?"!==t[0]?"?"+t:t}let _h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:yh,token:t,providedIn:"root"}),t})();function yh(t){const e=mi(ah).location;return new bh(mi(lh),e&&e.origin||"")}const vh=new Yn("appBaseHref");let bh=(()=>{class t extends _h{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return fh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+gh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+gh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+gh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(mi(lh),mi(vh,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),wh=(()=>{class t extends _h{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,n,i){let s=this.prepareExternalUrl(n+gh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+gh(i));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)(mi(lh),mi(vh,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(t,e){this._subject=new zl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=mh(xh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+gh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,xh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(mi(_h),mi(lh))},t.normalizeQueryParams=gh,t.joinWithSlash=fh,t.stripTrailingSlash=mh,t.\u0275prov=ft({factory:Sh,token:t,providedIn:"root"}),t})();function Sh(){return new Ch(mi(_h),mi(lh))}function xh(t){return t.replace(/\/index.html$/,"")}var Eh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class kh{}let Ah=(()=>{class t extends kh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=va(e);if(n)return n;const i=e.split("-")[0];if(n=va(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ba.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)(mi(gc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Oh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}class Th{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 Ih=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Th(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Ph(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Ph(t,s);e.push(r)}});for(let n=0;n{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)(ko(Sl),ko(gl),ko(il))},t.\u0275dir=Xt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Ph{constructor(t,e){this.record=t,this.view=e}}let Rh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Dh,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){Lh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Lh("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)(ko(Sl),ko(gl))},t.\u0275dir=Xt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Dh{constructor(){this.$implicit=null,this.ngIf=null}}function Lh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${st(e)}'.`)}class Mh{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 Nh=(()=>{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{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Mh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ko(Sl),ko(gl),ko(Nh,9))},t.\u0275dir=Xt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Vh=(()=>{class t{constructor(t,e,n){n._addDefault(new Mh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(ko(Sl),ko(gl),ko(Nh,9))},t.\u0275dir=Xt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),jh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(ko(Sl))},t.\u0275dir=Xt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ue]}),t})(),Bh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[{provide:kh,useClass:Ah}]}),t})(),Uh=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>new zh(mi(ah),window)}),t})();class zh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Hh(this.window.history)||Hh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Hh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class $h extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new $h,rh||(rh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Wh||(Wh=document.querySelector("base"),Wh)?Wh.getAttribute("href"):null;return null==e?null:(n=e,qh||(qh=document.createElement("a")),qh.setAttribute("href",n),"/"===qh.pathname.charAt(0)?qh.pathname:"/"+qh.pathname);var n}resetBaseElement(){Wh=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 Oh(document.cookie,t)}}let qh,Wh=null;const Gh=new Yn("TRANSITION_ID"),Zh=[{provide:ac,useFactory:function(t,e,n){return()=>{n.get(lc).donePromise.then(()=>{const n=oh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Gh,ah,lo],multi:!0}];class Kh{static init(){var t;t=new Kh,jc=t}addToWindow(t){Lt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Lt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Lt.getAllAngularRootElements=()=>t.getAllRootElements(),Lt.frameworkStabilizers||(Lt.frameworkStabilizers=[]),Lt.frameworkStabilizers.push(t=>{const e=Lt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?oh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Qh=new Yn("EventManagerPlugins");let Yh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{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=ft({token:t,factory:t.\u0275fac}),t})(),tu=(()=>{class t extends Jh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(eu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(eu))}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function eu(t){oh().remove(t)}const nu={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/"},iu=/%COMP%/g;function su(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let ou=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new au(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Tt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new lu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Tt.ShadowDom:return new cu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=su(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)(mi(Yh),mi(tu),mi(cc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class au{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(nu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=nu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=nu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(cs.DashCase|cs.Important)?t.style.setProperty(e,n,i&cs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cs.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ru(n)):this.eventManager.addEventListener(t,e,ru(n))}}class lu extends au{constructor(t,e,n,i){super(t),this.component=n;const s=su(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(iu,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(iu,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class cu extends au{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=su(i.id,i.styles,[]);for(let r=0;r{class t extends Xh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const uu=["alt","control","meta","shift"],du={"\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"},pu={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"},fu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let mu=(()=>{class t extends Xh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oh().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(uu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&pu.hasOwnProperty(e)&&(e=pu[e]))}return du[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),uu.forEach(i=>{i!=n&&(0,fu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return mi(_u)},token:t,providedIn:"root"}),t})(),_u=(()=>{class t extends gu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case es.NONE:return e;case es.HTML:return Pi(e,"HTML")?Ii(e):function(t,e){let n=null;try{Ji=Ji||function(t){const e=new Li(t);return function(){try{return!!(new window.DOMParser).parseFromString(Si(""),"text/html")}catch(t){return!1}}()?new Di(e):e}(t);let i=e?String(e):"";n=Ji.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Ji.getInertBodyElement(i)}while(i!==r);return Si((new Ki).sanitizeChildren(ts(n)||n))}finally{if(n){const t=ts(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e)).toString();case es.STYLE:return Pi(e,"Style")?Ii(e):e;case es.SCRIPT:if(Pi(e,"Script"))return Ii(e);throw new Error("unsafe value used in a script context");case es.URL:return Ri(e),Pi(e,"URL")?Ii(e):Fi(String(e));case es.RESOURCE_URL:if(Pi(e,"ResourceURL"))return Ii(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Ei(t)}bypassSecurityTrustStyle(t){return new ki(t)}bypassSecurityTrustScript(t){return new Ai(t)}bypassSecurityTrustUrl(t){return new Oi(t)}bypassSecurityTrustResourceUrl(t){return new Ti(t)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({factory:function(){return t=mi(Wr),new _u(t.get(ah));var t},token:t,providedIn:"root"}),t})();const yu=qc(nh,"browser",[{provide:pc,useValue:"browser"},{provide:dc,useValue:function(){$h.makeCurrent(),Kh.init()},multi:!0},{provide:ah,useFactory:function(){return function(t){_e=t}(document),document},deps:[]}]),vu=[[],{provide:Zr,useValue:"root"},{provide:rs,useFactory:function(){return new rs},deps:[]},{provide:Qh,useClass:hu,multi:!0,deps:[ah,Oc,pc]},{provide:Qh,useClass:mu,multi:!0,deps:[ah]},[],{provide:ou,useClass:ou,deps:[Yh,tu,cc]},{provide:Ba,useExisting:ou},{provide:Jh,useExisting:tu},{provide:tu,useClass:tu,deps:[ah]},{provide:Mc,useClass:Mc,deps:[Oc]},{provide:Yh,useClass:Yh,deps:[Qh,Oc]},[]];let bu=(()=>{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:cc,useValue:e.appId},{provide:Gh,useExisting:cc},Zh]}}}return t.\u0275fac=function(e){return new(e||t)(mi(t,12))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:vu,imports:[Bh,sh]}),t})();"undefined"!=typeof window&&window;class wu{}const Cu="*";function Su(t,e){return{type:7,name:t,definitions:e,options:{}}}function xu(t,e=null){return{type:4,styles:e,timings:t}}function Eu(t,e=null){return{type:2,steps:t,options:e}}function ku(t){return{type:6,styles:t,offset:null}}function Au(t,e,n){return{type:0,name:t,styles:e,options:n}}function Ou(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Tu(t){Promise.resolve(null).then(t)}class Iu{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){Tu(()=>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){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Pu{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Tu(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==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())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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 Ru(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Du(t){switch(t.length){case 0:return new Iu;case 1:return t[0];default:return new Pu(t)}}function Lu(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case Cu:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Mu(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Nu(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Nu(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Nu(n,"destroy",t)))}}function Nu(t,e,n){const i=n.totalTime,s=Fu(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function Fu(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Vu(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function ju(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Bu=(t,e)=>!1,Uu=(t,e)=>!1,zu=(t,e,n)=>[];const Hu=Ru();(Hu||"undefined"!=typeof Element)&&(Bu=(t,e)=>t.contains(e),Uu=(()=>{if(Hu||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Uu}})(),zu=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let Yu=(()=>{class t{validateStyleProperty(t){return Wu(t)}matchesElement(t,e){return Gu(t,e)}containsElement(t,e){return Zu(t,e)}query(t,e,n){return Ku(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Iu(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Xu=(()=>{class t{}return t.NOOP=new Yu,t})();const Ju="ng-enter",td="ng-leave",ed="ng-trigger",nd=".ng-trigger",id="ng-animating",sd=".ng-animating";function rd(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:od(parseFloat(e[1]),e[2])}function od(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ad(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=od(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=od(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function ld(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function cd(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else ld(t,n);return n}function hd(t,e,n){return n?e+":"+n+";":""}function ud(t){let e="";for(let n=0;n{const s=bd(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),Ru()&&ud(t))}function pd(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=bd(e);t.style[n]=""}),Ru()&&ud(t))}function fd(t){return Array.isArray(t)?1==t.length?t[0]:Eu(t):t}const md=new RegExp("{{\\s*(.+?)\\s*}}","g");function gd(t){let e=[];if("string"==typeof t){let n;for(;n=md.exec(t);)e.push(n[1]);md.lastIndex=0}return e}function _d(t,e,n){const i=t.toString(),s=i.replace(md,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function yd(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const vd=/-+([a-z0-9])/g;function bd(t){return t.replace(vd,(...t)=>t[1].toUpperCase())}function wd(t,e){return 0===t||0===e}function Cd(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Td(s,o)),"<"!=r[0]||s==Ed&&o==Ed||e.push(Td(o,s))}(t,n,e)):n.push(t),n}const Ad=new Set(["true","1"]),Od=new Set(["false","0"]);function Td(t,e){const n=Ad.has(t)||Od.has(t),i=Ad.has(e)||Od.has(e);return(s,r)=>{let o=t==Ed||t==s,a=e==Ed||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?Ad.has(t):Od.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Ad.has(e):Od.has(e)),o&&a}}const Id=new RegExp("s*:selfs*,?","g");function Pd(t,e,n){return new Rd(t).build(e,n)}class Rd{constructor(t){this._driver=t}build(t,e){const n=new Dd(e);return this._resetContextStyleTimingState(n),Sd(this,fd(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=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 n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=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:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(Ld(t)){const e=t;Object.keys(e).forEach(t=>{gd(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=yd(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Sd(this,fd(t.animation),e);return{type:1,matchers:kd(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Md(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Sd(this,t,e)),options:Md(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Sd(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:Md(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Nd(ad(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Nd(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||ad(i,e),Nd(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:ku({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=ku(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Cu?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(Ld(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=gd(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Ld(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ld(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Sd(this,fd(t.animation),e),options:Md(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Md(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Md(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=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(Id,"")),[t=t.replace(/@\*/g,nd).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,sd),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,Vu(e.collectedStyles,e.currentQuerySelector,{});const o=Sd(this,fd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Md(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:ad(t.timings,e.errors,!0);return{type:12,animation:Sd(this,fd(t.animation),e),timings:n,options:null}}}class Dd{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 Ld(t){return!Array.isArray(t)&&"object"==typeof t}function Md(t){var e;return t?(t=ld(t)).params&&(t.params=(e=t.params)?ld(e):null):t={},t}function Nd(t,e,n){return{duration:t,delay:e,easing:n}}function Fd(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Vd{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const jd=new RegExp(":enter","g"),Bd=new RegExp(":leave","g");function Ud(t,e,n,i,s,r={},o={},a,l,c=[]){return(new zd).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class zd{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new Vd;const h=new $d(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Sd(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Fd(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?rd(n.duration):null,r=null!=n.delay?rd(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Sd(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Hd);const t=rd(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Sd(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?rd(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Sd(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return ad(e.params?_d(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.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(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?rd(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hd);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Sd(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=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=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Sd(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Hd={};class $d{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new qd(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=rd(n.duration)),null!=n.delay&&(i.delay=rd(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=_d(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new $d(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||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=Hd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new Wd(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(jd,"."+this._enterClassName)).replace(Bd,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class qd{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new qd(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]||Cu,this._currentKeyframe[t]=Cu}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Cu})):cd(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=_d(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Cu),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=cd(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Cu&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?yd(t.values()):[],r=e.size?yd(e.values()):[];if(n){const t=i[0],e=ld(t);t.offset=0,e.offset=1,i=[t,e]}return Fd(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class Wd extends qd{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,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:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=cd(t[0],!1);a.offset=0,s.push(a);const l=cd(t[0],!1);l.offset=Gd(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=cd(t[i],!1);o.offset=Gd((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Fd(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Gd(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Zd{}class Kd extends Zd{normalizePropertyName(t,e){return bd(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Qd[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Qd=(()=>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 Yd(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Xd={};class Jd{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Xd,d=this.buildStyles(n,o&&o.params||Xd,h),p=a&&a.params||Xd,f=this.buildStyles(i,p,h),m=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},u),p)},b=c?[]:Ud(t,e,this.ast.animation,s,r,d,f,v,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Yd(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,h);b.forEach(t=>{const n=t.element,i=Vu(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=Vu(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=yd(m.values());return Yd(e,this._triggerName,n,i,y,d,f,b,C,g,_,w)}}class tp{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=ld(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),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=_d(r,i,e)),n[t]=r})}}),n}}class ep{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new tp(t.style,t.options&&t.options.params||{})}),np(this.states,"true","1"),np(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Jd(t,e,this.states))}),this.fallbackTransition=new Jd(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function np(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const ip=new Vd;class sp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Pd(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Lu(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Ud(this._driver,e,s,Ju,td,{},{},n,ip,i),r.forEach(t=>{const e=Vu(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Cu)})});const a=Du(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=Fu(e,"","","");return Mu(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){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(i[0]));break;case"destroy":this.destroy(t)}}}const rp="ng-animate-queued",op="ng-animate-disabled",ap=".ng-animate-disabled",lp=[],cp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class up{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=ld(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const dp="void",pp=new up(dp);class fp{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,wp(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=Vu(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=Vu(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(wp(t,ed),wp(t,"ng-trigger-"+e),a[e]=pp),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new gp(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(wp(t,ed),wp(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new up(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=pp),l.value!==dp&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{pd(t,n),dd(t,i)})}return}const c=Vu(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(!i)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||(wp(t,rp),r.onStart(()=>{Cp(t,rp)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,nd,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,dp,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Du(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||pp,a=new up(dp),l=new gp(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==cp||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){wp(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=Fu(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Mu(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 mp{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new fp(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),wp(t,op)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Cp(t,op))}removeNode(t,e,n,i){if(_p(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return _p(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,nd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,sd,!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 Du(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=cp,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,ap)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ap,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Du(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new Vd,i=[],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 n=0;n{const n=Ju+f++;p.set(e,n),t.forEach(t=>wp(t,n))});const m=[],g=new Set,_=new Set;for(let I=0;Ig.add(t)):_.add(t))}const y=new Map,v=bp(u,Array.from(g));v.forEach((t,e)=>{const n=td+f++;y.set(e,n),t.forEach(t=>wp(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Cp(t,n))}),v.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Cp(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.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=y.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>pd(s,f.fromStyles)),e.onDestroy(()=>dd(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>pd(s,f.fromStyles)),e.onDestroy(()=>dd(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>Vu(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Vu(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>Ep(t,a,l)),E=new Map;vp(E,this.driver,_,l,Cu).forEach(t=>{Ep(t,a,l)&&x.push(t)});const k=new Map;d.forEach((t,e)=>{vp(k,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=E.get(t),n=k.get(t);E.set(t,Object.assign(Object.assign({},e),n))});const A=[],O=[],T={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>dd(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=T;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,k,E);if(r.setRealPlayer(n),t===T)A.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Du(e)),i.push(r)}}else pd(e,o.fromStyles),r.onDestroy(()=>dd(e,o.toStyles)),O.push(r),c.has(e)&&i.push(r)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Du(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let I=0;I!t.destroyed);i.length?Sp(this,t,i):this.processLeaveNode(t)}return m.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,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||s==dp;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=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!==i,l=Vu(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}pd(i,e.fromStyles)}_buildAnimation(t,e,n,i,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 Iu(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return xp(t,e),e}((n.get(u)||lp).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),_=Lu(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&h.add(u),p){const e=new gp(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Vu(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>wp(t,id));const d=Du(u);return d.onDestroy(()=>{c.forEach(t=>Cp(t,id)),dd(a,e.toStyles)}),h.forEach(t=>{Vu(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Iu(t.duration,t.delay)}}class gp{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Iu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Mu(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Vu(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function _p(t){return t&&1===t.nodeType}function yp(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function vp(t,e,n,i,s){const r=[];n.forEach(t=>r.push(yp(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=hp,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>yp(t,r[a++])),o}function bp(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function wp(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Cp(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Sp(t,e,n){Du(n).onDone(()=>t.processLeaveNode(e))}function xp(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class kp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new mp(t,e,n),this._timelineEngine=new sp(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Pd(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new ep(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=ju(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=ju(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ap(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Tp(e[0]),e.length>1&&(i=Tp(e[e.length-1]))):e&&(n=Tp(e)),n||i?new Op(t,n,i):null}let Op=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&dd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dd(this._element,this._initialStyles),this._endStyles&&(dd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(pd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pd(this._element,this._endStyles),this._endStyles=null),dd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Tp(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=jp(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Fp(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=jp(t,"").split(","),i=Np(n,e);i>=0&&(n.splice(i,1),Vp(t,"",n.join(",")))}(this._element,this._name))}}function Lp(t,e,n){Vp(t,"PlayState",n,Mp(t,e))}function Mp(t,e){const n=jp(t,"");return n.indexOf(",")>0?Np(n.split(","),e):Np([n],e)}function Np(t,e){for(let n=0;n=0)return n;return-1}function Fp(t,e,n){n?t.removeEventListener(Rp,e):t.addEventListener(Rp,e)}function Vp(t,e,n,i){const s=Pp+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function jp(t,e){return t.style[Pp+e]||""}class Bp{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,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=i+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>=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 Dp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:xd(this.element,n))})}this.currentSnapshot=t}}class Up extends Iu{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Qu(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class zp{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return Wu(t)}matchesElement(t,e){return Gu(t,e)}containsElement(t,e){return Zu(t,e)}query(t,e,n){return Ku(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Qu(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof Bp),l={};wd(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Cd(t,e,l));if(0==n)return new Up(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Ap(t,e),p=new Bp(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class Hp{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:xd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class $p{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(qp().toString()),this._cssKeyframesDriver=new zp}validateStyleProperty(t){return Wu(t)}matchesElement(t,e){return Gu(t,e)}containsElement(t,e){return Zu(t,e)}query(t,e,n){return Ku(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Hp);wd(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Ap(t,e=Cd(t,e=e.map(t=>cd(t,!1)),l));return new Hp(t,e,a,h)}}function qp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Wp=(()=>{class t extends wu{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Tt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Eu(t):t;return Kp(this._renderer,null,e,"register",[n]),new Gp(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(mi(Ba),mi(ah))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Gp extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Zp(this._id,t,e||{},this._renderer)}}class Zp{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Kp(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Kp(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Qp="@",Yp="@.disabled";let Xp=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Jp("",n,this.engine),this._rendererCache.set(n,t)),t}const i=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(i,s,t,e.name,e)};return e.data.animation.forEach(r),new tf(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(mi(Ba),mi(kp),mi(Oc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Jp{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Qp&&e==Yp?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class tf extends Jp{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Qp?"."==e.charAt(1)&&e==Yp?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Qp){const i=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)!=Qp&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ef=(()=>{class t extends kp{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah),mi(Xu),mi(Zd))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const nf=new Yn("AnimationModuleType"),sf=[{provide:Xu,useFactory:function(){return"function"==typeof qp()?new $p:new zp}},{provide:nf,useValue:"BrowserAnimations"},{provide:wu,useClass:Wp},{provide:Zd,useFactory:function(){return new Kd}},{provide:kp,useClass:ef},{provide:Ba,useFactory:function(t,e,n){return new Xp(t,e,n)},deps:[ou,kp,Oc]}];let rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:sf,imports:[bu]}),t})();function of(...t){let e=t[t.length-1];return A(e)?(t.pop(),F(t,e)):W(t)}function af(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function lf(){}function cf(t,e,n){return function(i){return i.lift(new hf(t,e,n))}}class hf{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new uf(t,this.nextOrObserver,this.error,this.complete))}}class uf extends f{constructor(t,e,n,s){super(t),this._tapNext=lf,this._tapError=lf,this._tapComplete=lf,this._tapError=n||lf,this._tapComplete=s||lf,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||lf,this._tapError=e.error||lf,this._tapComplete=e.complete||lf)}_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()}}class df extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class pf extends df{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;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,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let ff=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class mf extends ff{constructor(t,e=ff.now){super(t,()=>mf.delegate&&mf.delegate!==this?mf.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return mf.delegate&&mf.delegate!==this?mf.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const gf=new mf(pf);function _f(t,e=gf){return n=>n.lift(new yf(t,e))}class yf{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new vf(t,this.dueTime,this.scheduler))}}class vf extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(bf,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 bf(t){t.debouncedNext()}function wf(t,e){return function(n){return n.lift(new Cf(t,e))}}class Cf{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Sf(t,this.predicate,this.thisArg))}}class Sf extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const xf=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),Ef=new b(t=>t.complete());function kf(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Ef}function Af(t){return e=>0===t?kf():e.lift(new Of(t))}class Of{constructor(t){if(this.total=t,this.total<0)throw new xf}call(t,e){return e.subscribe(new Tf(t,this.total))}}class Tf extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function If(t){return null!=t&&"false"!=`${t}`}function Pf(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Rf(t){return Array.isArray(t)?t:[t]}function Df(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Lf(t){return t instanceof Va?t.nativeElement:t}let Mf;try{Mf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(lA){Mf=!1}let Nf,Ff=(()=>{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&&!Mf)&&"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)(mi(pc))},t.\u0275prov=ft({factory:function(){return new t(mi(pc))},token:t,providedIn:"root"}),t})(),Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const jf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bf(){if(Nf)return Nf;if("object"!=typeof document||!document)return Nf=new Set(jf),Nf;let t=document.createElement("input");return Nf=new Set(jf.filter(e=>(t.setAttribute("type",e),t.type===e))),Nf}let Uf,zf,Hf;function $f(t){return function(){if(null==Uf&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Uf=!0}))}finally{Uf=Uf||!1}return Uf}()?t:!!t.capture}function qf(){if(null==zf){if("object"!=typeof document||!document)return zf=!1,zf;if("scrollBehavior"in document.documentElement.style)zf=!0;else{const t=Element.prototype.scrollTo;zf=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return zf}function Wf(t){if(function(){if(null==Hf){const t="undefined"!=typeof document?document.head:null;Hf=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Hf}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}let Gf=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Zf=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Lf(t);return new b(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new E,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(mi(Gf))},t.\u0275prov=ft({factory:function(){return new t(mi(Gf))},token:t,providedIn:"root"}),t})(),Kf=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new zl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=If(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Pf(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(_f(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ko(Zf),ko(Va),ko(Oc))},t.\u0275dir=Xt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Qf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Gf]}),t})();class Yf extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,t instanceof $l&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(cf(t=>this._pressedLetters.push(t)),_f(t),wf(()=>this._pressedLetters.length>0),O(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||af(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof $l?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Xf=(()=>{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(lA){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===tm(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=tm(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){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")||Jf(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(mi(Ff))},t.\u0275prov=ft({factory:function(){return new t(mi(Ff))},token:t,providedIn:"root"}),t})();function Jf(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 tm(t){if(!Jf(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class em{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,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,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Af(1)).subscribe(t)}}let nm=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new em(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(mi(Xf),mi(Oc),mi(ah))},t.\u0275prov=ft({factory:function(){return new t(mi(Xf),mi(Oc),mi(ah))},token:t,providedIn:"root"}),t})();function im(t){return 0===t.buttons}"undefined"!=typeof Element&∈const sm=new Yn("cdk-focus-monitor-default-options"),rm=$f({passive:!0,capture:!0});let om=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=im(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=am(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=am(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Lf(t);if(!this._platform.isBrowser||1!==n.nodeType)return of(null);const i=Wf(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new E,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Lf(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Lf(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=am(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===am(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,rm),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,rm)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,rm),t.addEventListener("mousedown",this._documentMousedownListener,rm),t.addEventListener("touchstart",this._documentTouchstartListener,rm),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rm),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rm),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,rm),t.removeEventListener("mousedown",this._documentMousedownListener,rm),t.removeEventListener("touchstart",this._documentTouchstartListener,rm),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(mi(Oc),mi(Ff),mi(ah,8),mi(sm,8))},t.\u0275prov=ft({factory:function(){return new t(mi(Oc),mi(Ff),mi(ah,8),mi(sm,8))},token:t,providedIn:"root"}),t})();function am(t){return t.composedPath?t.composedPath()[0]:t.target}const lm="cdk-high-contrast-black-on-white",cm="cdk-high-contrast-white-on-black",hm="cdk-high-contrast-active";let um=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(hm),t.remove(lm),t.remove(cm);const e=this.getHighContrastMode();1===e?(t.add(hm),t.add(lm)):2===e&&(t.add(hm),t.add(cm))}}}return t.\u0275fac=function(e){return new(e||t)(mi(Ff),mi(ah))},t.\u0275prov=ft({factory:function(){return new t(mi(Ff),mi(ah))},token:t,providedIn:"root"}),t})(),dm=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(mi(um))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Vf,Qf]]}),t})();function pm(t,e,n,s){return i(n)&&(s=n,n=void 0),s?pm(t,e,n).pipe(O(t=>l(t)?s(...t):s(t))):new b(i=>{fm(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function fm(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r=0}function bm(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wm(t,e=gf){return n=()=>function(t=0,e,n){let i=-1;return vm(e)?i=Number(e)<1?1:Number(e):A(e)&&(n=e),A(n)||(n=gf),new b(e=>{const s=vm(t)?t:+t-n.now();return n.schedule(bm,s,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new _m(n))};var n}function Cm(t){return e=>e.lift(new Sm(t))}class Sm{constructor(t){this.notifier=t}call(t,e){const n=new xm(t),i=U(this.notifier,new j(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class xm extends B{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Em(...t){return q(1)(of(...t))}function km(...t){const e=t[t.length-1];return A(e)?(t.pop(),n=>Em(t,n,e)):e=>Em(t,e)}function Am(t,e){return"function"==typeof e?n=>n.pipe(Am((n,i)=>V(t(n,i)).pipe(O((t,s)=>e(n,t,i,s))))):e=>e.lift(new Om(t))}class Om{constructor(t){this.project=t}call(t,e){return e.subscribe(new Tm(t,this.project))}}class Tm extends B{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new j(this),i=this.destination;i.add(n),this.innerSubscription=U(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function Im(t,e){return new b(e?n=>e.schedule(Pm,0,{error:t,subscriber:n}):e=>e.error(t))}function Pm({error:t,subscriber:e}){e.error(t)}const Rm=new Yn("cdk-dir-doc",{providedIn:"root",factory:function(){return gi(ah)}});let Dm=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new zl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(mi(Rm,8))},t.\u0275prov=ft({factory:function(){return new t(mi(Rm,8))},token:t,providedIn:"root"}),t})(),Lm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),Mm=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(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=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Nm=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(wm(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):of()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(wf(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=Lf(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pm(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)(mi(Oc),mi(Ff),mi(ah,8))},t.\u0275prov=ft({factory:function(){return new t(mi(Oc),mi(Ff),mi(ah,8))},token:t,providedIn:"root"}),t})(),Fm=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(wm(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(mi(Ff),mi(Oc),mi(ah,8))},t.\u0275prov=ft({factory:function(){return new t(mi(Ff),mi(Oc),mi(ah,8))},token:t,providedIn:"root"}),t})(),Vm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),jm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Lm,Vf,Vm],Lm,Vm]}),t})();class Bm{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Um extends Bm{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class zm extends Bm{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Hm extends Bm{constructor(t){super(),this.element=t instanceof Va?t.nativeElement:t}}class $m{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Um?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof zm?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Hm?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class qm extends $m{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Wm=(()=>{class t extends $m{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new zl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}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)(ko(La),ko(Sl),ko(ah))},t.\u0275dir=Xt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ho]}),t})(),Gm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const Zm=qf();class Km{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=Df(-this._previousScrollPosition.left),t.style.top=Df(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Zm&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zm&&(e.scrollBehavior=i,n.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}}class Qm{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ym{enable(){}disable(){}attach(){}}function Xm(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Jm(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class tg{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Xm(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let eg=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Ym,this.close=t=>new Qm(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Km(this._viewportRuler,this._document),this.reposition=t=>new tg(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(mi(Nm),mi(Fm),mi(Oc),mi(ah))},t.\u0275prov=ft({factory:function(){return new t(mi(Nm),mi(Fm),mi(Oc),mi(ah))},token:t,providedIn:"root"}),t})();class ng{constructor(t){if(this.scrollStrategy=new Ym,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class ig{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class sg{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let rg=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({factory:function(){return new t(mi(ah))},token:t,providedIn:"root"}),t})(),og=(()=>{class t extends rg{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah))},t.\u0275prov=ft({factory:function(){return new t(mi(ah))},token:t,providedIn:"root"}),t})(),ag=(()=>{class t extends rg{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah),mi(Ff))},t.\u0275prov=ft({factory:function(){return new t(mi(ah),mi(Ff))},token:t,providedIn:"root"}),t})();const lg=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let cg=(()=>{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="cdk-overlay-container";if(this._platform.isBrowser||lg){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Af(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Df(this._config.width),t.height=Df(this._config.height),t.minWidth=Df(this._config.minWidth),t.minHeight=Df(this._config.minHeight),t.maxWidth=Df(this._config.maxWidth),t.maxHeight=Df(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Rf(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Cm(G(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 ug="cdk-overlay-connected-position-bounding-box",dg=/([A-Za-z%]+)$/;class pg{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,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 E,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(ug),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];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,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}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&&fg(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ug),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=gg(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,h=o+s.height-n.height,u=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=mg(this._overlayRef.getConfig().minHeight),o=mg(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=gg(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,h=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Df(n.height),i.top=Df(n.top),i.bottom=Df(n.bottom),i.width=Df(n.width),i.left=Df(n.left),i.right=Df(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Df(t)),s&&(i.maxWidth=Df(s))}this._lastBoundingBoxSize=n,fg(this._boundingBox.style,i)}_resetBoundingBoxStyles(){fg(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fg(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();fg(n,this._getExactOverlayY(e,t,i)),fg(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=Df(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Df(r.maxWidth):s&&(n.maxWidth="")),fg(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=Df(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Df(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Jm(t,n),isOriginOutsideView:Xm(t,n),isOverlayClipped:Jm(e,n),isOverlayOutsideView:Xm(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Rf(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 Va)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function fg(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function mg(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(dg);return n&&"px"!==n?null:parseFloat(e)}return t||null}function gg(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class _g{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new pg(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new ig(t,e,n,i);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}}const yg="cdk-global-overlay-wrapper";class vg{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(yg),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||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,n=e.style;e.classList.remove(yg),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let bg=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new vg}connectedTo(t,e,n){return new _g(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new pg(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(mi(Fm),mi(ah),mi(Ff),mi(cg))},t.\u0275prov=ft({factory:function(){return new t(mi(Fm),mi(ah),mi(Ff),mi(cg))},token:t,providedIn:"root"}),t})(),wg=0,Cg=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new ng(t);return s.direction=s.direction||this._directionality.value,new hg(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+wg++,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(Kc)),new qm(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(mi(eg),mi(cg),mi(La),mi(bg),mi(og),mi(lo),mi(Oc),mi(ah),mi(Dm),mi(Ch),mi(ag))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Sg={provide:new Yn("cdk-connected-overlay-scroll-strategy"),deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Cg,Sg],imports:[[Lm,Gm,jm],jm]}),t})();const Eg=new $a("11.2.0"),kg=new $a("11.2.0"),Ag=new Yn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Og,Tg=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return zc()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&kg.full!==Eg.full&&console.warn("The Angular Material version ("+kg.full+") does not match the Angular CDK version ("+Eg.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(mi(um),mi(Ag,8),mi(ah))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Lm],Lm]}),t})();function Ig(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function Pg(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=If(t)}}}function Rg(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Pf(t):this.defaultTabIndex}}}function Dg(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new E}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())}}}try{Og="undefined"!=typeof Intl}catch(lA){Og=!1}let Lg=(()=>{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=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Mg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Tg],Tg]}),t})();class Ng{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fg={enterDuration:450,exitDuration:400},Vg=$f({passive:!0}),jg=["mousedown","touchstart"],Bg=["mouseup","mouseleave","touchend","touchcancel"];class Ug{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Lf(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Fg),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.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!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Ng(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Fg),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Lf(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jg))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Bg),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=im(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Vg)})})}_removeTriggerEvents(){this._triggerElement&&(jg.forEach(t=>{this._triggerElement.removeEventListener(t,this,Vg)}),this._pointerUpEventsRegistered&&Bg.forEach(t=>{this._triggerElement.removeEventListener(t,this,Vg)}))}}const zg=new Yn("mat-ripple-global-options");let Hg=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Ug(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(Oc),ko(Ff),ko(zg,8),ko(nf,8))},t.\u0275dir=Xt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ta("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})(),$g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Tg,Vf],Tg]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Tg]]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[$g,Bh,Tg,qg]]}),t})(),Gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[$g,Tg],Tg]}),t})();function Zg(t){return new b(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?V(n):kf()).subscribe(e)})}function Kg(t,e){}class Qg{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 Yg={dialogContainer:Su("dialogContainer",[Au("void, exit",ku({opacity:0,transform:"scale(0.7)"})),Au("enter",ku({transform:"none"})),Ou("* => enter",xu("150ms cubic-bezier(0, 0, 0.2, 1)",ku({transform:"none",opacity:1}))),Ou("* => void, * => exit",xu("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ku({opacity:0})))])};let Xg=(()=>{class t extends $m{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new zl,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(nm),ko(hl),ko(ah,8),ko(Qg),ko(om))},t.\u0275dir=Xt({type:t,viewQuery:function(t,e){if(1&t&&ec(Wm,3),2&t){let t;tc(t=ic())&&(e._portalOutlet=t.first)}},features:[ho]}),t})(),Jg=(()=>{class t extends Xg{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return t_(e||t)},t.\u0275cmp=Wt({type:t,selectors:[["mat-dialog-container"]],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&&(fa("id",e._id),So("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ma("@dialogContainer",e._state))},features:[ho],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Eo(0,Kg,0,0,"ng-template",0)},directives:[Wm],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Yg.dialogContainer]}}),t})();const t_=Wn(Jg);let e_=0;class n_{constructor(t,e,n="mat-dialog-"+e_++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new E,this._afterClosed=new E,this._beforeClosed=new E,this._state=0,e._id=n,e._animationStateChanged.pipe(wf(t=>"opened"===t.state),Af(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(wf(t=>"closed"===t.state),Af(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),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(wf(t=>27===t.keyCode&&!this.disableClose&&!af(t))).subscribe(t=>{t.preventDefault(),i_(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():i_(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(wf(t=>"closing"===t.state),Af(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}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._overlayRef.updateSize({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}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function i_(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const s_=new Yn("MatDialogData"),r_=new Yn("mat-dialog-default-options"),o_=new Yn("mat-dialog-scroll-strategy"),a_={provide:o_,deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.block()}};let l_=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E,this._afterOpenedAtThisLevel=new E,this._ariaHiddenElements=new Map,this.afterAllClosed=Zg(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(km(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Qg)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),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 ng({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=lo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Qg,useValue:e}]}),i=new Um(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof gl)e.attachTemplatePortal(new zm(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new Um(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(Dm,null)||s.push({provide:Dm,useValue:{value:t.direction,change:of()}}),lo.create({parent:i||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._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(ko(Cg),ko(lo),ko(void 0),ko(void 0),ko(cg),ko(void 0),ko(Jn),ko(Jn),ko(Yn))},t.\u0275dir=Xt({type:t}),t})(),c_=(()=>{class t extends l_{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,n_,Jg,s_)}}return t.\u0275fac=function(e){return new(e||t)(mi(Cg),mi(lo),mi(Ch,8),mi(r_,8),mi(o_),mi(t,12),mi(cg))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),h_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[c_,a_],imports:[[xg,Gm,Tg],Tg]}),t})();function u_(...t){if(1===t.length){const e=t[0];if(l(e))return d_(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return d_(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return d_(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(O(t=>e(...t)))}return d_(t,null)}function d_(t,e){return new b(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const p_=new Yn("NgValueAccessor"),f_={provide:p_,useExisting:at(()=>g_),multi:!0},m_=new Yn("CompositionEventMode");let g_=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=oh()?oh().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)(ko(Ua),ko(Va),ko(m_,8))},t.\u0275dir=Xt({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:[Pa([f_])]}),t})();function __(t){return null==t||0===t.length}function y_(t){return null!=t&&"number"==typeof t.length}const v_=new Yn("NgValidators"),b_=new Yn("NgAsyncValidators"),w_=/^(?=.{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 C_{static min(t){return function(t){return e=>{if(__(e.value)||__(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(__(e.value)||__(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return __(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return __(t.value)||w_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return S_(t)}static maxLength(t){return x_(t)}static pattern(t){return function(t){if(!t)return E_;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(__(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return P_(t)}static composeAsync(t){return D_(t)}}function S_(t){return e=>__(e.value)||!y_(e.value)?null:e.value.lengthy_(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function E_(t){return null}function k_(t){return null!=t}function A_(t){const e=No(t)?V(t):t;return Fo(e),e}function O_(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 T_(t,e){return e.map(e=>e(t))}function I_(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function P_(t){if(!t)return null;const e=t.filter(k_);return 0==e.length?null:function(t){return O_(T_(t,e))}}function R_(t){return null!=t?P_(I_(t)):null}function D_(t){if(!t)return null;const e=t.filter(k_);return 0==e.length?null:function(t){return u_(T_(t,e).map(A_)).pipe(O(O_))}}function L_(t){return null!=t?D_(I_(t)):null}function M_(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function N_(t){return t._rawValidators}function F_(t){return t._rawAsyncValidators}let V_=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=R_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=L_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}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=Xt({type:t}),t})(),j_=(()=>{class t extends V_{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return B_(e||t)},t.\u0275dir=Xt({type:t,features:[ho]}),t})();const B_=Wn(j_);class U_ extends V_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z_{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let H_=(()=>{class t extends z_{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(ko(U_,2))},t.\u0275dir=Xt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[ho]}),t})(),$_=(()=>{class t extends z_{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(ko(j_,10))},t.\u0275dir=Xt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[ho]}),t})();function q_(t,e){return[...e.path,t]}function W_(t,e){K_(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Y_(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Y_(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function G_(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Q_(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Z_(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function K_(t,e,n){const i=N_(t);null!==e.validator?t.setValidators(M_(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=F_(t);if(null!==e.asyncValidator?t.setAsyncValidators(M_(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();Z_(e._rawValidators,n),Z_(e._rawAsyncValidators,n)}}function Q_(t,e,n){let i=!1;if(null!==t){if(null!==e.validator){const n=N_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=F_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};Z_(e._rawValidators,t),Z_(e._rawAsyncValidators,t)}return i}function Y_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X_(t,e){K_(t,e,!1)}function J_(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ty(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ey="VALID",ny="INVALID",iy="PENDING",sy="DISABLED";function ry(t){return(cy(t)?t.validators:t)||null}function oy(t){return Array.isArray(t)?R_(t):t||null}function ay(t,e){return(cy(e)?e.asyncValidators:t)||null}function ly(t){return Array.isArray(t)?L_(t):t||null}function cy(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class hy{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=oy(this._rawValidators),this._composedAsyncValidatorFn=ly(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ey}get invalid(){return this.status===ny}get pending(){return this.status==iy}get disabled(){return this.status===sy}get enabled(){return this.status!==sy}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._rawValidators=t,this._composedValidatorFn=oy(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ly(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=iy,!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=sy,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ey,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(),this.status!==ey&&this.status!==iy||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()?sy:ey}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=iy,this._hasOwnPendingAsyncValidator=!0;const e=A_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof dy?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof py&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new zl,this.statusChanges=new zl}_calculateStatus(){return this._allControlsDisabled()?sy:this.errors?ny:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(iy)?iy:this._anyControlsHaveStatus(ny)?ny:ey}_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){cy(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class uy extends hy{constructor(t=null,e,n){super(ry(e),ay(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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)}_unregisterOnChange(t){ty(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ty(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class dy extends hy{constructor(t,e,n){super(ry(e),ay(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof uy?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=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class py extends hy{constructor(t,e,n){super(ry(e),ay(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof uy?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const fy={provide:j_,useExisting:at(()=>gy)},my=(()=>Promise.resolve(null))();let gy=(()=>{class t extends j_{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new zl,this.form=new dy({},R_(t),L_(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){my.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),W_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){my.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ty(this._directives,t)})}addFormGroup(t){my.then(()=>{const e=this._findContainer(t.path),n=new dy({});X_(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){my.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){my.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,J_(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)(ko(v_,10),ko(b_,10))},t.\u0275dir=Xt({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:[Pa([fy]),ho]}),t})(),_y=(()=>{class t extends j_{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return q_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(e){return yy(e||t)},t.\u0275dir=Xt({type:t,features:[ho]}),t})();const yy=Wn(_y);let vy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const wy=new Yn("NgModelWithFormControlWarning"),Cy={provide:j_,useExisting:at(()=>Sy)};let Sy=(()=>{class t extends j_{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new zl,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q_(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return W_(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G_(t.control||null,t,!1),ty(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(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,J_(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=t.control,n=this.form.get(t.path);e!==n&&(G_(e||null,t),n instanceof uy&&(W_(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);X_(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Q_(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){K_(this.form,this,!1),this._oldForm&&Q_(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ko(v_,10),ko(b_,10))},t.\u0275dir=Xt({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:[Pa([Cy]),ho,ue]}),t})();const xy={provide:j_,useExisting:at(()=>Ey)};let Ey=(()=>{class t extends _y{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Oy(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(ko(j_,13),ko(v_,10),ko(b_,10))},t.\u0275dir=Xt({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Pa([xy]),ho]}),t})();const ky={provide:j_,useExisting:at(()=>Ay)};let Ay=(()=>{class t extends j_{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}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 q_(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Oy(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(ko(j_,13),ko(v_,10),ko(b_,10))},t.\u0275dir=Xt({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Pa([ky]),ho]}),t})();function Oy(t){return!(t instanceof Ey||t instanceof Sy||t instanceof Ay)}const Ty={provide:U_,useExisting:at(()=>Iy)};let Iy=(()=>{class t extends U_{constructor(t,e,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new zl,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===g_?n=t:Object.getPrototypeOf(t.constructor)===class{}?i=t:s=t}),s||i||n||null}(0,i)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(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 q_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_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)(ko(j_,13),ko(v_,10),ko(b_,10),ko(p_,10),ko(wy,8))},t.\u0275dir=Xt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Pa([Ty]),ho,ue]}),t._ngModelWarningSentOnce=!1,t})();const Py={provide:v_,useExisting:at(()=>Ry),multi:!0};let Ry=(()=>{class t{constructor(){this._validator=E_}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=S_("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[Pa([Py]),ue]}),t})();const Dy={provide:v_,useExisting:at(()=>Ly),multi:!0};let Ly=(()=>{class t{constructor(){this._validator=E_}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=x_("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pa([Dy]),ue]}),t})(),My=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[by]]}),t})(),Ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[My]}),t})(),Fy=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:wy,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[My]}),t})(),Vy=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new dy(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new uy(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new py(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof uy||t instanceof dy||t instanceof py?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=ft({factory:function(){return new t},token:t,providedIn:Fy}),t})();const jy=["underline"],By=["connectionContainer"],Uy=["inputContainer"],zy=["label"];function Hy(t,e){1&t&&(Ro(0),To(1,"div",14),Po(2,"div",15),Po(3,"div",16),Po(4,"div",17),Io(),To(5,"div",18),Po(6,"div",15),Po(7,"div",16),Po(8,"div",17),Io(),Do())}function $y(t,e){1&t&&(To(0,"div",19),Wo(1,1),Io())}function qy(t,e){if(1&t&&(Ro(0),Wo(1,2),To(2,"span"),ua(3),Io(),Do()),2&t){const t=Ho(2);Qs(3),da(t._control.placeholder)}}function Wy(t,e){1&t&&Wo(0,3,["*ngSwitchCase","true"])}function Gy(t,e){1&t&&(To(0,"span",23),ua(1," *"),Io())}function Zy(t,e){if(1&t){const t=Mo();To(0,"label",20,21),Vo("cdkObserveContent",function(){return Ne(t),Ho().updateOutlineGap()}),Eo(2,qy,4,1,"ng-container",12),Eo(3,Wy,1,0,"ng-content",12),Eo(4,Gy,2,0,"span",22),Io()}if(2&t){const t=Ho();ta("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()),So("for",t._control.id)("aria-owns",t._control.id),Qs(2),Ao("ngSwitchCase",!1),Qs(1),Ao("ngSwitchCase",!0),Qs(1),Ao("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Ky(t,e){1&t&&(To(0,"div",24),Wo(1,4),Io())}function Qy(t,e){if(1&t&&(To(0,"div",25,26),Po(2,"span",27),Io()),2&t){const t=Ho();Qs(2),ta("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Yy(t,e){1&t&&(To(0,"div"),Wo(1,5),Io()),2&t&&Ao("@transitionMessages",Ho()._subscriptAnimationState)}function Xy(t,e){if(1&t&&(To(0,"div",31),ua(1),Io()),2&t){const t=Ho(2);Ao("id",t._hintLabelId),Qs(1),da(t.hintLabel)}}function Jy(t,e){if(1&t&&(To(0,"div",28),Eo(1,Xy,2,2,"div",29),Wo(2,6),Po(3,"div",30),Wo(4,7),Io()),2&t){const t=Ho();Ao("@transitionMessages",t._subscriptAnimationState),Qs(1),Ao("ngIf",t.hintLabel)}}const tv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ev=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let nv=0;const iv=new Yn("MatError");let sv=(()=>{class t{constructor(){this.id="mat-error-"+nv++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&So("id",e.id)},inputs:{id:"id"},features:[Pa([{provide:iv,useExisting:t}])]}),t})();const rv={transitionMessages:Su("transitionMessages",[Au("enter",ku({opacity:1,transform:"translateY(0%)"})),Ou("void => enter",[ku({opacity:0,transform:"translateY(-5px)"}),xu("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ov=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t}),t})();const av=new Yn("MatHint");let lv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["mat-label"]]}),t})(),cv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["mat-placeholder"]]}),t})();const hv=new Yn("MatPrefix"),uv=new Yn("MatSuffix");let dv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Xt({type:t,selectors:[["","matSuffix",""]],features:[Pa([{provide:uv,useExisting:t}])]}),t})(),pv=0;class fv{constructor(t){this._elementRef=t}}const mv=Ig(fv,"primary"),gv=new Yn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_v=new Yn("MatFormField");let yv=(()=>{class t extends mv{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+pv++,this._labelId="mat-form-field-label-"+pv++,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=If(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_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}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}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(km(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Cm(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Cm(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(km(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(km(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Cm(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._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&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,pm(this._label.nativeElement,"transitionend").pipe(Af(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}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,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Bh,Tg,Qf],Tg]}),t})();const bv=$f({passive:!0});let wv=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ef;const e=Lf(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new E,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(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,bv),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,bv)}}),i}stopMonitoring(t){const e=Lf(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(mi(Ff),mi(Oc))},t.\u0275prov=ft({factory:function(){return new t(mi(Ff),mi(Oc))},token:t,providedIn:"root"}),t})(),Cv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Vf]]}),t})();const Sv=new Yn("MAT_INPUT_VALUE_ACCESSOR"),xv=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ev=0;class kv{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const Av=Dg(kv);let Ov=(()=>{class t extends Av{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+Ev++,this.focused=!1,this.stateChanges=new E,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=>Bf().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,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"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.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=If(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=If(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Bf().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=If(t)}ngAfterViewInit(){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(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){xv.indexOf(this._type)}_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){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(Ff),ko(U_,10),ko(gy,8),ko(Sy,8),ko(Lg),ko(Sv,10),ko(wv),ko(Oc),ko(_v,8))},t.\u0275dir=Xt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Vo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(fa("disabled",e.disabled)("required",e.required),So("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ta("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Pa([{provide:ov,useExisting:t}]),ho,ue]}),t})(),Tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Lg],imports:[[Cv,vv,Tg],Cv,vv]}),t})(),Iv=(()=>{class t{constructor(){this.changes=new E,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Pv={provide:new Yn("mat-datepicker-scroll-strategy"),deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Iv,Pv],imports:[[Bh,Gg,h_,xg,dm,Gm,Tg],Vm]}),t})();class Dv extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Lv extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Mv(t,e,n,i,s=new Lv(t,n,i)){if(!s.closed)return e instanceof b?e.subscribe(s):N(e)(s)}const Nv={};class Fv{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Vv(t,this.resultSelector))}}class Vv extends Dv{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Nv),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;nt.scrollStrategies.reposition({scrollThrottle:20})}};let Bv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[jv],imports:[[dm,Bh,xg,Tg],Tg,Vm]}),t})();function Uv(t,e){if(1&t&&(hn(),Po(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function zv(t,e){if(1&t&&(hn(),Po(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function Hv(t,e){if(1&t&&(hn(),Po(0,"circle",3)),2&t){const t=Ho();Jo("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}function $v(t,e){if(1&t&&(hn(),Po(0,"circle",3)),2&t){const t=Ho();Jo("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),So("r",t._getCircleRadius())}}const qv=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class Wv{constructor(t){this._elementRef=t}}const Gv=Ig(Wv,"primary"),Zv=new Yn("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Kv=(()=>{class t extends Gv{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.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=Pf(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Pf(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Pf(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Wf(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(Ff),ko(ah,8),ko(nf,8),ko(Zv))},t.\u0275cmp=Wt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(So("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),Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[ho],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&&(hn(),To(0,"svg",0),Eo(1,Uv,1,9,"circle",1),Eo(2,zv,1,7,"circle",2),Io()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Ao("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),Ao("ngSwitchCase",!0),Qs(1),Ao("ngSwitchCase",!1))},directives:[Nh,Fh],styles:[qv],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Qv=(()=>{class t extends Kv{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(Ff),ko(ah,8),ko(nf,8),ko(Zv))},t.\u0275cmp=Wt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),ta("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[ho],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&&(hn(),To(0,"svg",0),Eo(1,Hv,1,9,"circle",1),Eo(2,$v,1,7,"circle",2),Io()),2&t&&(Jo("width",e.diameter,"px")("height",e.diameter,"px"),Ao("ngSwitch","indeterminate"===e.mode),So("viewBox",e._getViewBox()),Qs(1),Ao("ngSwitchCase",!0),Qs(1),Ao("ngSwitchCase",!1))},directives:[Nh,Fh],styles:[qv],encapsulation:2,changeDetection:0}),t})(),Yv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Tg,Bh],Tg]}),t})(),Xv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),Jv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[$g,Tg,Qf,Xv],Tg,Xv]}),t})();class tb extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}let eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[jm]]}),t})(),nb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[eb,Tg],Tg]}),t})();const ib={provide:new Yn("mat-menu-scroll-strategy"),deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let sb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[ib],imports:[Tg]}),t})(),rb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[ib],imports:[[Bh,Tg,$g,xg,sb],Vm,Tg,sb]}),t})();function ob(t,e){1&t&&Wo(0)}const ab=["*"];let lb=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(ko(Va))},t.\u0275dir=Xt({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),cb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(ko(gl))},t.\u0275dir=Xt({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),hb=0;const ub="edit",db="done",pb="error",fb=new Yn("STEPPER_GLOBAL_OPTIONS");let mb=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=If(t)}get optional(){return this._optional}set optional(t){this._optional=If(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=If(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=If(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(ko(at(()=>gb)),ko(fb,8))},t.\u0275cmp=Wt({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){if(1&t&&nc(n,cb,1),2&t){let t;tc(t=ic())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&ec(gl,3),2&t){let t;tc(t=ic())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[ue],ngContentSelectors:ab,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Eo(0,ob,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),gb=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new E,this.steps=new $l,this._linear=!1,this._selectedIndex=0,this.selectionChange=new zl,this._orientation="horizontal",this._groupId=hb++,this._document=i}get linear(){return this._linear}set linear(t){this._linear=If(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Pf(t);if(this.steps&&this._steps){this._isValidIndex(t);const n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterContentInit(){this._steps.changes.pipe(km(this._steps),Cm(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new Yf(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:of()).pipe(km(this._layoutDirection()),Cm(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?pb:!t.completed||e?"number":t.editable?ub:db}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?pb:t.completed&&!e?db:t.completed&&e?n:t.editable&&e?ub:n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=af(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||32!==n&&13!==n?i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(ko(gb))},t.\u0275dir=Xt({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&Vo("click",function(){return e._handleClick()}),2&t&&fa("type",e.type)},inputs:{type:"type"}}),t})(),yb=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(ko(gb))},t.\u0275dir=Xt({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&Vo("click",function(){return e._handleClick()}),2&t&&fa("type",e.type)},inputs:{type:"type"}}),t})(),vb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Lm]]}),t})();function bb(t){return function(e){const n=new wb(t),i=e.lift(n);return n.caught=i}}class wb{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Cb(t,this.selector,this.caught))}}class Cb extends B{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new j(this);this.add(i);const s=U(n,i);s!==i&&this.add(s)}}}function Sb(t){return e=>e.lift(new xb(t))}class xb{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Eb(t,this.callback))}}class Eb extends f{constructor(t,e){super(t),this.add(new u(e))}}function kb(t,e){return z(t,e,1)}class Ab{}class Ob{}class Tb{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 Tb?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 Tb;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Tb?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);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 Ib{encodeKey(t){return Pb(t)}encodeValue(t){return Pb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Pb(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 Rb{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ib,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}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 Rb({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Db(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Lb(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Mb(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Nb{constructor(t,e,n,i){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)||i?(this.body=void 0!==n?n:null,s=i):s=n,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 Tb),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Nb(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var Fb=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Vb{constructor(t,e=200,n="OK"){this.headers=t.headers||new Tb,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class jb extends Vb{constructor(t={}){super(t),this.type=Fb.ResponseHeader}clone(t={}){return new jb({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 Bb extends Vb{constructor(t={}){super(t),this.type=Fb.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bb({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 Ub extends Vb{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 zb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Hb=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Nb)i=t;else{let s,r;s=n.headers instanceof Tb?n.headers:new Tb(n.headers),n.params&&(r=n.params instanceof Rb?n.params:new Rb({fromObject:n.params})),i=new Nb(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=of(i).pipe(kb(t=>this.handler.handle(t)));if(t instanceof Nb||"events"===n.observe)return s;const r=s.pipe(wf(t=>t instanceof Bb));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(O(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(O(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(O(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(O(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Rb).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,zb(n,e))}post(t,e,n={}){return this.request("POST",t,zb(n,e))}put(t,e,n={}){return this.request("PUT",t,zb(n,e))}}return t.\u0275fac=function(e){return new(e||t)(mi(Ab))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class $b{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qb=new Yn("HTTP_INTERCEPTORS");let Wb=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Gb=/^\)\]\}',?\n/;class Zb{}let Kb=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Qb=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Tb(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new jb({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.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(Gb,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Bb({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Ub({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Ub({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:Fb.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:Fb.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:Fb.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(mi(Zb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Yb=new Yn("XSRF_COOKIE_NAME"),Xb=new Yn("XSRF_HEADER_NAME");class Jb{}let tw=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Oh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(mi(ah),mi(pc),mi(Yb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),ew=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(mi(Jb),mi(Xb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),nw=(()=>{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(qb,[]);this.chain=t.reduceRight((t,e)=>new $b(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(mi(Ob),mi(lo))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),iw=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:ew,useClass:Wb}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Yb,useValue:e.cookieName}:[],e.headerName?{provide:Xb,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[ew,{provide:qb,useExisting:ew,multi:!0},{provide:Jb,useClass:tw},{provide:Yb,useValue:"XSRF-TOKEN"},{provide:Xb,useValue:"X-XSRF-TOKEN"}]}),t})(),sw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Hb,{provide:Ab,useClass:nw},Qb,{provide:Ob,useExisting:Qb},Kb,{provide:Zb,useExisting:Kb}],imports:[[iw.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const rw=["*"];function ow(t){return Error(`Unable to find icon with the name "${t}"`)}function aw(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function lw(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class cw{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let hw=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new cw(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(es.HTML,n);if(!s)throw lw(n);return this._addSvgIconConfig(t,e,new cw("",s,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new cw(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(es.HTML,e);if(!i)throw lw(e);return this._addSvgIconSetConfig(t,new cw("",i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(es.RESOURCE_URL,t);if(!e)throw aw(t);const n=this._cachedIconsByUrl.get(e);return n?of(uw(n)):this._loadSvgIconFromConfig(new cw(t,null)).pipe(cf(t=>this._cachedIconsByUrl.set(e,t)),O(t=>uw(t)))}getNamedSvgIcon(t,e=""){const n=dw(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Im(ow(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?of(uw(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(O(t=>uw(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?of(n):u_(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(bb(e=>{const n=this._sanitizer.sanitize(es.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),of(null)})))).pipe(O(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw ow(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(cf(e=>t.svgText=e),O(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?of(null):this._fetchIcon(t).pipe(cf(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(r)),et());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(dw(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;ie?e.pathname+e.search:""}}}),gw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_w=gw.map(t=>`[${t}]`).join(", "),yw=/^url\(['"]?#(.*?)['"]?\)$/;let vw=(()=>{class t extends fw{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=If(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_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}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(_w),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const s=e[i],r=s.getAttribute(t),o=r?r.match(yw):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Af(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(ko(Va),ko(hw),Zn("aria-hidden"),ko(mw),ko(rs))},t.\u0275cmp=Wt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(So("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ta("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ho],ngContentSelectors:rw,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Wo(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})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Tg],Tg]}),t})();function ww(t,e){if(1&t&&Lo(0,8),2&t){const t=Ho();Ao("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function Cw(t,e){if(1&t&&(To(0,"span"),ua(1),Io()),2&t){const t=Ho(2);Qs(1),da(t._getDefaultTextForState(t.state))}}function Sw(t,e){if(1&t&&(To(0,"mat-icon"),ua(1),Io()),2&t){const t=Ho(2);Qs(1),da(t._getDefaultTextForState(t.state))}}function xw(t,e){1&t&&(Ro(0,9),Eo(1,Cw,2,1,"span",10),Eo(2,Sw,2,1,"mat-icon",11),Do()),2&t&&(Ao("ngSwitch",Ho().state),Qs(1),Ao("ngSwitchCase","number"))}function Ew(t,e){if(1&t&&(To(0,"div",12),Lo(1,13),Io()),2&t){const t=Ho();Qs(1),Ao("ngTemplateOutlet",t._templateLabel().template)}}function kw(t,e){if(1&t&&(To(0,"div",12),ua(1),Io()),2&t){const t=Ho();Qs(1),da(t.label)}}function Aw(t,e){if(1&t&&(To(0,"div",14),ua(1),Io()),2&t){const t=Ho();Qs(1),da(t._intl.optionalLabel)}}function Ow(t,e){if(1&t&&(To(0,"div",15),ua(1),Io()),2&t){const t=Ho();Qs(1),da(t.errorMessage)}}function Tw(t,e){1&t&&Wo(0)}const Iw=["*"];function Pw(t,e){1&t&&Po(0,"div",6)}function Rw(t,e){if(1&t){const t=Mo();Ro(0),To(1,"mat-step-header",4),Vo("click",function(){return e.$implicit.select()})("keydown",function(e){return Ne(t),Ho()._onKeydown(e)}),Io(),Eo(2,Pw,1,0,"div",5),Do()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,s=Ho();Qs(1),Ao("tabIndex",s._getFocusIndex()===n?0:-1)("id",s._getStepLabelId(n))("index",n)("state",s._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===n)("active",t.completed||s.selectedIndex===n||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple)("color",t.color||s.color),So("aria-posinset",n+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(n))("aria-selected",s.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Qs(1),Ao("ngIf",!i)}}function Dw(t,e){if(1&t){const t=Mo();To(0,"div",7),Vo("@stepTransition.done",function(e){return Ne(t),Ho()._animationDone.next(e)}),Lo(1,8),Io()}if(2&t){const t=e.$implicit,n=e.index,i=Ho();Ao("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),So("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),Qs(1),Ao("ngTemplateOutlet",t.content)}}let Lw=(()=>{class t extends cb{}return t.\u0275fac=function(e){return Mw(e||t)},t.\u0275dir=Xt({type:t,selectors:[["","matStepLabel",""]],features:[ho]}),t})();const Mw=Wn(Lw);let Nw=(()=>{class t{constructor(){this.changes=new E,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Fw={provide:Nw,deps:[[new bi,new wi,Nw]],useFactory:function(t){return t||new Nw}};class Vw extends lb{constructor(t){super(t)}}const jw=Ig(Vw,"primary");let Bw=(()=>{class t extends jw{constructor(t,e,n,i){super(n),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof Lw?null:this.label}_templateLabel(){return this.label instanceof Lw?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(ko(Nw),ko(om),ko(Va),ko(hl))},t.\u0275cmp=Wt({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[ho],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){var n,i,s;1&t&&(Po(0,"div",0),To(1,"div"),To(2,"div",1),Eo(3,ww,1,2,"ng-container",2),Eo(4,xw,3,2,"ng-container",3),Io(),Io(),To(5,"div",4),Eo(6,Ew,2,1,"div",5),Eo(7,kw,2,1,"div",5),Eo(8,Aw,2,1,"div",6),Eo(9,Ow,2,1,"div",7),Io()),2&t&&(Ao("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),Qs(1),n="mat-step-icon-state-",i=e.state,s=" mat-step-icon",function(t,e,n,i){const s=Me(),r=We(2);s.firstUpdatePass&&sa(s,null,r,i);const o=Le();if(n!==Ks&&Co(o,r,n)){const a=s.data[an()];if(ha(a,i)&&!ia(s,r)){let t=a.classesWithoutHost;null!==t&&(n=rt(t,n||"")),Oo(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Ks&&(s=Nt);let l=0,c=0,h=0 *",xu("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Su("stepTransition",[Au("previous",ku({height:"0px",visibility:"hidden"})),Au("next",ku({height:"0px",visibility:"hidden"})),Au("current",ku({height:"*",visibility:"visible"})),Ou("* <=> current",xu("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let zw=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(ko(gl))},t.\u0275dir=Xt({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),Hw=(()=>{class t extends mb{constructor(t,e,n){super(t,n),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(ko(at(()=>$w)),ko(Lg,4),ko(fb,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){if(1&t&&nc(n,Lw,1),2&t){let t;tc(t=ic())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[Pa([{provide:Lg,useExisting:t},{provide:mb,useExisting:t}]),ho],ngContentSelectors:Iw,decls:1,vars:0,template:function(t,e){1&t&&(qo(),Eo(0,Tw,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),$w=(()=>{class t extends gb{constructor(){super(...arguments),this.steps=new $l,this.animationDone=new zl,this._iconOverrides={},this._animationDone=new E}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Cm(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(function(t,e){return e=>e.lift(new mm(t,undefined))}((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Cm(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return qw(e||t)},t.\u0275dir=Xt({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){if(1&t&&(nc(n,Hw,1),nc(n,zw,1)),2&t){let t;tc(t=ic())&&(e._steps=t),tc(t=ic())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&ec(Bw,1),2&t){let t;tc(t=ic())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[Pa([{provide:gb,useExisting:t}]),ho]}),t})();const qw=Wn($w);let Ww=(()=>{class t extends $w{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return Gw(e||t)},t.\u0275cmp=Wt({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&ta("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[Pa([{provide:$w,useExisting:t},{provide:gb,useExisting:t}]),ho],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(To(0,"div",0),Eo(1,Rw,3,19,"ng-container",1),Io(),To(2,"div",2),Eo(3,Dw,2,5,"div",3),Io()),2&t&&(Qs(1),Ao("ngForOf",e.steps),Qs(2),Ao("ngForOf",e.steps))},directives:[Ih,Bw,Rh,jh],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Uw.horizontalStepTransition]},changeDetection:0}),t})();const Gw=Wn(Ww);let Zw=(()=>{class t extends _b{}return t.\u0275fac=function(e){return Kw(e||t)},t.\u0275dir=Xt({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&fa("type",e.type)},inputs:{type:"type"},features:[ho]}),t})();const Kw=Wn(Zw);let Qw=(()=>{class t extends yb{}return t.\u0275fac=function(e){return Yw(e||t)},t.\u0275dir=Xt({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&fa("type",e.type)},inputs:{type:"type"},features:[ho]}),t})();const Yw=Wn(Qw);let Xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Fw,Lg],imports:[[Tg,Bh,Gm,Gg,vb,bw,$g],Tg]}),t})();const Jw={provide:new Yn("mat-autocomplete-scroll-strategy"),deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Jw],imports:[[xg,Wg,Tg,Bh],Vm,Wg,Tg]}),t})(),eC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[dm,Tg],Tg]}),t})();const nC=["input"],iC=function(){return{enterDuration:150}},sC=["*"],rC=new Yn("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let oC=0;const aC={provide:p_,useExisting:at(()=>uC),multi:!0};class lC{constructor(t,e){this.source=t,this.value=e}}const cC=new Yn("MatRadioGroup");let hC=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+oC++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new zl}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=If(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=If(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 lC(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)(ko(hl))},t.\u0275dir=Xt({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),uC=(()=>{class t extends hC{}return t.\u0275fac=function(e){return dC(e||t)},t.\u0275dir=Xt({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){if(1&t&&nc(n,gC,1),2&t){let t;tc(t=ic())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Pa([aC,{provide:cC,useExisting:t}]),ho]}),t})();const dC=Wn(uC);class pC{constructor(t){this._elementRef=t}}const fC=Pg(Rg(pC));let mC=(()=>{class t extends fC{constructor(t,e,n,i,s,r,o,a){super(e),this._changeDetector=n,this._focusMonitor=i,this._radioDispatcher=s,this._animationMode=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++oC,this.id=this._uniqueId,this.change=new zl,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,a&&(this.tabIndex=Pf(a,0)),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=If(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(If(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=If(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,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),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 lC(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._controlValueAccessorChangeFn(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)(ko(hC),ko(Va),ko(hl),ko(om),ko(Mm),ko(String),ko(void 0),ko(String))},t.\u0275dir=Xt({type:t,viewQuery:function(t,e){if(1&t&&ec(nC,1),2&t){let t;tc(t=ic())&&(e._inputElement=t.first)}},inputs:{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"},features:[ho]}),t})(),gC=(()=>{class t extends mC{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)(ko(cC,8),ko(Va),ko(hl),ko(om),ko(Mm),ko(nf,8),ko(rC,8),Zn("tabindex"))},t.\u0275cmp=Wt({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&Vo("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(So("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),ta("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"},exportAs:["matRadioButton"],features:[ho],ngContentSelectors:sC,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&&(qo(),To(0,"label",0,1),To(2,"span",2),Po(3,"span",3),Po(4,"span",4),To(5,"input",5,6),Vo("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),Io(),To(7,"span",7),Po(8,"span",8),Io(),Io(),To(9,"span",9),To(10,"span",10),ua(11,"\xa0"),Io(),Wo(12),Io(),Io()),2&t){const t=xe(Re.lFrame.contextLView,21);So("for",e.inputId),Qs(5),Ao("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),So("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),Qs(2),Ao("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Vl(18,iC)),Qs(2),ta("mat-radio-label-before","before"==e.labelPosition)}},directives:[Hg],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;display:block;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;display:block;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;left: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})(),_C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[$g,Tg],Tg]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Bh,Tg,Gm,$g,Qf,dm],Tg]}),t})();const vC={provide:new Yn("mat-select-scroll-strategy"),deps:[Cg],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[vC],imports:[[Bh,xg,Wg,Tg],Vm,vv,Wg,Tg]}),t})(),wC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[xg,Gm,Bh,Gg,Tg],Tg]}),t})(),CC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Mg,Tg],Mg,Tg]}),t})(),SC=(()=>{class t{constructor(){this.changes=new E,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const xC={provide:SC,deps:[[new bi,new wi,SC]],useFactory:function(t){return t||new SC}};let EC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[xC],imports:[[Bh,Gg,bC,Bv,Tg]]}),t})();function kC(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new AC(t,e,n))}}class AC{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new OC(t,this.accumulator,this.seed,this.hasSeed))}}class OC extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function TC(t){return function(e){return 0===t?kf():e.lift(new IC(t))}}class IC{constructor(t){if(this.total=t,this.total<0)throw new xf}call(t,e){return e.subscribe(new PC(t,this.total))}}class PC extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new DC(t))}class DC{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new LC(t,this.defaultValue))}}class LC extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function MC(t,e,n){return 0===n?[e]:(t.push(e),t)}class NC{}let FC=(()=>{class t extends NC{getTranslation(t){return of({})}}return t.\u0275fac=function(e){return VC(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const VC=Wn(FC);class jC{}let BC=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class UC{}let zC=(()=>{class t extends UC{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return HC(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const HC=Wn(zC);function $C(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,i,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(i in s=Object.create(null),t){if(!$C(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&void 0!==e[i])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(i=0;i{WC(e[i])?i in t?n[i]=GC(t[i],e[i]):Object.assign(n,{[i]:e[i]}):Object.assign(n,{[i]:e[i]})}),n}class ZC{}let KC=(()=>{class t extends ZC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n=e.split(".");e="";do{e+=n.shift(),!qC(t)||!qC(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let i=this.getValue(e,n);return qC(i)?i:t}):t}}return t.\u0275fac=function(e){return QC(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const QC=Wn(KC);class YC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new zl,this.onLangChange=new zl,this.onDefaultLangChange=new zl}}const XC=new Yn("USE_STORE"),JC=new Yn("USE_DEFAULT_LANG");let tS=(()=>{class t{constructor(t,e,n,i,s,r=!0,o=!1){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.pending=!1,this._onTranslationChange=new zl,this._onLangChange=new zl,this._onDefaultLangChange=new zl,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(this.defaultLang||(this.defaultLang=t),e.pipe(Af(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return of(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Af(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),of(this.translations[t]))}retrieveTranslations(t){let e;return void 0===this.translations[t]&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(et());return this.loadingTranslations=e.pipe(Af(1),O(e=>this.compiler.compileTranslations(e,t)),et()),this.loadingTranslations.subscribe(e=>{this.translations[t]=e,this.updateLangs(),this.pending=!1},t=>{this.pending=!1}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=n&&this.translations[t]?GC(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let i;if(e instanceof Array){let i={},s=!1;for(let r of e)i[r]=this.getParsedResult(t,r,n),"function"==typeof i[r].subscribe&&(s=!0);if(s){let t;for(let n of e){let e="function"==typeof i[n].subscribe?i[n]:of(i[n]);t=void 0===t?e:G(t,e)}return t.pipe(function(t,e){return arguments.length>=2?function(n){return y(kC(t,e),TC(1),RC(e))(n)}:function(e){return y(kC((e,n,i)=>t(e,n,i+1)),TC(1))(e)}}(MC,[]),O(t=>{let n={};return t.forEach((t,i)=>{n[e[i]]=t}),n}))}return i}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===i&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===i){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),i=this.missingTranslationHandler.handle(t)}return void 0!==i?i:e}get(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return b.create(n=>{let i=t=>{n.next(t),n.complete()},s=t=>{n.error(t)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,t,e)).subscribe?n.subscribe(i,s):i(n)},s)});{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return"function"==typeof n.subscribe?n:of(n)}}stream(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');return Em(this.get(t,e),this.onLangChange.pipe(Am(n=>{const i=this.getParsedResult(n.translations,t,e);return"function"==typeof i.subscribe?i:of(i)})))}instant(t,e){if(!qC(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(void 0!==n.subscribe){if(t instanceof Array){let e={};return t.forEach((n,i)=>{e[t[i]]=t[i]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),this.defaultLang||this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(mi(YC),mi(NC),mi(UC),mi(ZC),mi(jC),mi(JC),mi(XC))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),eS=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let i=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,t,e);"function"==typeof s.subscribe?s.subscribe(i):i(s)}this.translate.get(t,e).subscribe(i)}transform(t,...e){if(!t||0===t.length)return t;if($C(t,this.lastKey)&&$C(e,this.lastParams))return this.value;let n;if(qC(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(i){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(ko(tS),function(t=St.Default){const e=ul(!0);if(null!=e||t&St.Optional)return e;pt("ChangeDetectorRef")}())},t.\u0275pipe={type:(e={name:"translate",type:t,pure:!1}).type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t;var e})(),nS=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:NC,useClass:FC},e.compiler||{provide:UC,useClass:zC},e.parser||{provide:ZC,useClass:KC},e.missingTranslationHandler||{provide:jC,useClass:BC},YC,{provide:XC,useValue:e.isolate},{provide:JC,useValue:e.useDefaultLang},tS]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:NC,useClass:FC},e.compiler||{provide:UC,useClass:zC},e.parser||{provide:ZC,useClass:KC},e.missingTranslationHandler||{provide:jC,useClass:BC},{provide:XC,useValue:e.isolate},{provide:JC,useValue:e.useDefaultLang},tS]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const iS=[Tv,vv,bw,tC,eC,Wg,bC,Gg,_C,nb,Rv,Jv,h_,wC,CC,Bv,Yv,Xw,EC,yC];let sS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[],imports:[[Bh,sw,xg,rb,Ny,Fy,rf,nS,...iS],Bh,sw,xg,rb,Ny,nS,Fy,rf,Tv,vv,bw,tC,eC,Wg,bC,Gg,_C,nb,Rv,Jv,h_,wC,CC,Bv,Yv,Xw,EC,yC]}),t})();class rS{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}function oS(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}const aS=new Yn("config"),lS=new Yn("NEW_CONFIG"),cS=new Yn("INITIAL_CONFIG"),hS={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},uS=["Hh:m0:s0","Hh:m0","m0:s0"],dS=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let pS=(()=>{class t{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,i)=>{const s=t.split(n),r=s.length>1?`${n}${s[1]}`:"";let o=s[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(o="-"===o[0]?`-${o.slice(1,o.length).slice(0,a.length)}`:o.slice(0,a.length));const l=/(\d+)(\d{3})/;for(;e&&l.test(o);)o=o.replace(l,"$1"+e+"$2");return void 0===i?o+r:0===i?o:o+r.substr(0,i+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkAndRemoveSuffix=t=>{var e,n,i;for(let s=(null===(e=this.suffix)||void 0===e?void 0:e.length)-1;s>=0;s--){const e=this.suffix.substr(s,null===(n=this.suffix)||void 0===n?void 0:n.length);if(t.includes(e)&&(s-1<0||!t.includes(this.suffix.substr(s-1,null===(i=this.suffix)||void 0===i?void 0:i.length))))return t.replace(e,"")}return t},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const i=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),s=t.match(i);s&&s[0].length-1>e&&(t=t.substring(0,t.length-(s[0].length-1-e))),0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,e){const[n,i]=e;return this.customPattern=i,this.applyMask(t,n)}applyMask(t,e,n=0,i=!1,s=!1,r=(()=>{})){if(null==t||void 0===e)return"";let o=0,a="",l=!1,c=!1,h=1,u=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const d=t.toString().split("");"IP"===e&&(this.ipError=!!(d.filter(t=>"."===t).length<3&&d.length<7),e="099.099.099.099");const p=[];for(let y=0;y11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}a=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const i=this._charToRegExpExpression(this.thousandSeparator),s=this._charToRegExpExpression(this.decimalMarker),r='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(i,"").replace(s,""),o=new RegExp("["+r+"]");t.match(o)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),u=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(i,"g"),"");a=this._formatWithSeparators(u,this.thousandSeparator,this.decimalMarker,l);const d=a.indexOf(",")-t.indexOf(","),p=a.length-t.length;if(p>0&&","!==a[n]){c=!0;let t=0;do{this._shift.add(n+t),t++}while(t0&&!(a.indexOf(",")>=n&&n>3)||!(a.indexOf(".")>=n&&n>3)&&p<=0?(this._shift.clear(),c=!0,h=p,this._shift.add(n+=p)):this._shift.clear()}else for(let y=0,v=d[0];y2){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("h"===e[o]&&"2"===a&&Number(v)>3){o+=1,y--;continue}if("m"===e[o]&&Number(v)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("s"===e[o]&&Number(v)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}const n=31;if("d"===e[o]&&(Number(v)>3&&this.leadZeroDateTime||Number(t.slice(o,o+2))>n||"/"===t[o+1])){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("M"===e[o]){const i=12,s=0===o&&(Number(v)>2||Number(t.slice(o,o+2))>i||"/"===t[o+1]),r=t.slice(o-3,o-1).includes("/")&&("/"===t[o-2]&&Number(t.slice(o-1,o+1))>i&&"/"!==t[o]||"/"===t[o]||"/"===t[o-3]&&Number(t.slice(o-2,o))>i&&"/"!==t[o-1]||"/"===t[o-1]),l=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"===t[o-1]&&(Number(t.slice(o,o+2))>i||"/"===t[o+1]),c=Number(t.slice(o-3,o-1))>n&&!t.slice(o-3,o-1).includes("/")&&!t.slice(o-2,o).includes("/")&&Number(t.slice(o-2,o))>i,h=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"!==t[o-1]&&Number(t.slice(o-1,o+1))>i;if(Number(v)>1&&this.leadZeroDateTime||s||r||l||c||h){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}}a+=v,o++}else-1!==this.maskSpecialCharacters.indexOf(e[o])?(a+=e[o],o++,this._shiftStep(e,o,d.length),y--):this.maskSpecialCharacters.indexOf(v)>-1&&this.maskAvailablePatterns[e[o]]&&this.maskAvailablePatterns[e[o]].optional?(d[o]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(a+=d[o]),o++,y--):"*"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(v)===this.maskExpression[o+2]&&l||"?"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(v)===this.maskExpression[o+2]&&l?(o+=3,a+=v):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(v)<0&&v!==this.placeHolderCharacter&&(u=!0);a.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(a+=e[e.length-1]);let f=n+1;for(;this._shift.has(f);)h++,f++;let m=i?o:this._shift.has(n)?h:0;u&&m--,r(m,c),h<0&&this._shift.clear();let g=!1;s&&(g=d.every(t=>this.maskSpecialCharacters.includes(t)));let _=`${this.prefix}${g?"":a}${this.suffix}`;return 0===a.length&&(_=`${this.prefix}${a}`),_}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||t.match("\\s")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}_shiftStep(t,e,n){const i=/[*?]/g.test(t.slice(0,e))?n:e;this._shift.add(i+this.prefix.length||0)}}return t.\u0275fac=function(e){return new(e||t)(mi(aS))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),fS=(()=>{class t extends pS{constructor(t,e,n,i){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=i,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{}}applyMask(t,e,n=0,i=!1,s=!1,r=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const o=t&&"number"==typeof this.selStart?t[this.selStart]:"";let a="";if(this.hiddenInput&&!this.writingValue){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,o):t.lengtht!==this.decimalMarker)),this.formControlResult(l),!this.showMaskTyped)return this.hiddenInput&&l&&l.length?this.hideInput(l,this.maskExpression):l;const c=l.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const t=this._numberSkipedSymbols(l);return l+h.slice(c+t)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?l+h:l+h.slice(c)}_numberSkipedSymbols(t){const e=/(^|\D)(\d\D)/g;let n=e.exec(t),i=0;for(;null!=n;)i+=1,n=e.exec(t);return i}applyValueChanges(t=0,e,n,i=(()=>{})){const s=this._elementRef.nativeElement;s.value=this.applyMask(s.value,this.maskExpression,t,e,n,i),s!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,i)=>{if(this.maskSpecialCharacters.includes(t[i+1])&&t[i+1]!==this.maskExpression[i+1])return e=n,t[i+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,e]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,e))}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const i=[];for(let s=0;s3&&i.length<=6?e.slice(i.length+1,e.length):i.length>6&&i.length<=9?e.slice(i.length+2,e.length):i.length>9&&i.length<11?e.slice(i.length+3,e.length):11===i.length?"":12===i.length?n.slice(17===t.length?16:15,n.length):i.length>12&&i.length<=14?n.slice(i.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const e=Number(t);return Number.isNaN(e)?t:e}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>`\\${t}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}return t.\u0275fac=function(e){return new(e||t)(mi(ah),mi(aS),mi(Va),mi(Ua))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),mS=(()=>{class t{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:i,prefix:s,suffix:r,thousandSeparator:o,decimalMarker:a,dropSpecialCharacters:l,hiddenInput:c,showMaskTyped:h,placeHolderCharacter:u,shownMaskExpression:d,showTemplate:p,clearIfNotMatch:f,validation:m,separatorLimit:g,allowNegativeNumbers:_,leadZeroDateTime:y}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}i&&i.currentValue&&(this._maskService.maskAvailablePatterns=i.currentValue),s&&(this._maskService.prefix=s.currentValue),r&&(this._maskService.suffix=r.currentValue),o&&(this._maskService.thousandSeparator=o.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),u&&(this._maskService.placeHolderCharacter=u.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),p&&(this._maskService.showTemplate=p.currentValue),f&&(this._maskService.clearIfNotMatch=f.currentValue),m&&(this._maskService.validation=m.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),_&&(this._maskService.allowNegativeNumbers=_.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),y&&(this._maskService.leadZeroDateTime=y.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(dS.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(uS.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length1&&t.toString().length{this._justPasted=!1,i=t,s=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let r=this._position?this._inputValue.length+n+i:n+("Backspace"!==this._code||s?i:0);r>this._getActualInputLength()&&(r=this._getActualInputLength()),e.setSelectionRange(r,r),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){var e;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const n=t.target;if(this._inputValue=n.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===n.value.length&&(n.selectionStart=n.selectionEnd),8===t.keyCode&&0!==n.selectionStart)if(this.specialCharacters=(null===(e=this.specialCharacters)||void 0===e?void 0:e.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&n.selectionStart<=this.prefix.length)n.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==n.selectionStart&&1!==n.selectionStart)for(;this.specialCharacters.includes(this._inputValue[n.selectionStart-1].toString())&&(this.prefix.length>=1&&n.selectionStart>this.prefix.length||0===this.prefix.length);)n.setSelectionRange(n.selectionStart-1,n.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,n)}this.suffixCheckOnPressDelete(t.keyCode,n),this._maskService.prefix.length&&n.selectionStart<=this._maskService.prefix.length&&n.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const i=n.selectionStart;8!==t.keyCode||n.readOnly||0!==i||n.selectionEnd!==n.value.length||0===n.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length{if(this._start="{"===n?i:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=i;const s=Number(t.slice(this._start+1,this._end));return e+new Array(s+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return t.\u0275fac=function(e){return new(e||t)(ko(ah),ko(fS),ko(aS))},t.\u0275dir=Xt({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,e){1&t&&Vo("paste",function(){return e.onPaste()})("input",function(t){return e.onInput(t)})("blur",function(){return e.onBlur()})("click",function(t){return e.onFocus(t)})("keydown",function(t){return e.onKeyDown(t)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[Pa([{provide:p_,useExisting:at(()=>t),multi:!0},{provide:v_,useExisting:at(()=>t),multi:!0},fS]),ue]}),t})(),gS=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:lS,useValue:e},{provide:cS,useValue:hS},{provide:aS,useFactory:_S,deps:[cS,lS]},pS]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();function _S(t,e){return Object.assign(Object.assign({},t),e instanceof Function?e():e)}const yS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};yS.KeyboardEvent||(yS.KeyboardEvent=function(t,e){});const vS=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function bS(t=SS){return e=>e.lift(new wS(t))}class wS{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new CS(t,this.errorFactory))}}class CS extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function SS(){return new vS}function xS(t,e){const n=arguments.length>=2;return i=>i.pipe(t?wf((e,n)=>t(e,n,i)):_,Af(1),n?RC(e):bS(()=>new vS))}class ES{constructor(t,e){this.id=t,this.url=e}}class kS extends ES{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class AS extends ES{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class OS extends ES{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class TS extends ES{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class IS extends ES{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PS extends ES{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RS extends ES{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DS extends ES{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LS extends ES{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MS{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class NS{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class FS{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VS{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jS{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BS{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class US{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const zS="primary";class HS{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,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 $S(t){return new HS(t)}function qS(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function WS(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function KS(t){return Array.prototype.concat.apply([],t)}function QS(t){return t.length>0?t[t.length-1]:null}function YS(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function XS(t){return Fo(t)?t:No(t)?V(Promise.resolve(t)):of(t)}function JS(t,e,n){return n?function(t,e){return GS(t,e)}(t.queryParams,e.queryParams)&&tx(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ZS(t[n],e[n]))}(t.queryParams,e.queryParams)&&ex(t.root,e.root)}function tx(t,e){if(!ox(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!tx(t.children[n],e.children[n]))return!1}return!0}function ex(t,e){return nx(t,e,e.segments)}function nx(t,e,n){if(t.segments.length>n.length)return!!ox(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!ox(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ex(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!ox(t.segments,i)&&!!t.children.primary&&nx(t.children.primary,e,s)}}class ix{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$S(this.queryParams)),this._queryParamMap}toString(){return cx.serialize(this)}}class sx{constructor(t,e){this.segments=t,this.children=e,this.parent=null,YS(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hx(this)}}class rx{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=$S(this.parameters)),this._parameterMap}toString(){return _x(this)}}function ox(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class ax{}class lx{parse(t){const e=new Cx(t);return new ix(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${ux(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${px(e)}=${px(t)}`).join("&"):`${px(e)}=${px(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const cx=new lx;function hx(t){return t.segments.map(t=>_x(t)).join("/")}function ux(t,e){if(!t.hasChildren())return hx(t);if(e){const e=t.children.primary?ux(t.children.primary,!1):"",n=[];return YS(t.children,(t,e)=>{e!==zS&&n.push(`${e}:${ux(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return YS(t.children,(t,i)=>{i===zS&&(n=n.concat(e(t,i)))}),YS(t.children,(t,i)=>{i!==zS&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===zS?[ux(t.children.primary,!1)]:[`${n}:${ux(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${hx(t)}/${e[0]}`:`${hx(t)}/(${e.join("//")})`}}function dx(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function px(t){return dx(t).replace(/%3B/gi,";")}function fx(t){return dx(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function mx(t){return decodeURIComponent(t)}function gx(t){return mx(t.replace(/\+/g,"%20"))}function _x(t){return`${fx(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${fx(t)}=${fx(e[t])}`).join("")}`;var e}const yx=/^[^\/()?;=#]+/;function vx(t){const e=t.match(yx);return e?e[0]:""}const bx=/^[^=?&#]+/,wx=/^[^?&#]+/;class Cx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new sx([],{}):new sx([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new sx(t,e)),n}parseSegment(){const t=vx(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new rx(mx(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=vx(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=vx(this.remaining);t&&(n=t,this.capture(n))}t[mx(e)]=mx(n)}parseQueryParam(t){const e=function(t){const e=t.match(bx);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(wx);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=gx(e),s=gx(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=vx(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=zS);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new sx([],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 Sx{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=xx(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=xx(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ex(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ex(t,this._root).map(t=>t.value)}}function xx(t,e){if(t===e.value)return e;for(const n of e.children){const e=xx(t,n);if(e)return e}return null}function Ex(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ex(t,n);if(i.length)return i.unshift(e),i}return[]}class kx{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ax(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ox extends Sx{constructor(t,e){super(t),this.snapshot=e,Lx(this,t)}toString(){return this.snapshot.toString()}}function Tx(t,e){const n=function(t,e){const n=new Rx([],{},{},"",{},zS,e,null,t.root,-1,{});return new Dx("",new kx(n,[]))}(t,e),i=new tb([new rx("",{})]),s=new tb({}),r=new tb({}),o=new tb({}),a=new tb(""),l=new Ix(i,s,o,a,r,zS,e,n.root);return l.snapshot=n.root,new Ox(new kx(l,[]),n)}class Ix{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,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(O(t=>$S(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(O(t=>$S(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Px(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Rx{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,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=$S(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$S(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dx extends Sx{constructor(t,e){super(e),this.url=t,Lx(this,e)}toString(){return Mx(this._root)}}function Lx(t,e){e.value._routerState=t,e.children.forEach(e=>Lx(t,e))}function Mx(t){const e=t.children.length>0?` { ${t.children.map(Mx).join(", ")} } `:"";return`${t.value}${e}`}function Nx(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,GS(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),GS(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nGS(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Fx(t.parent,e.parent))}function Vx(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Vx(t,e,i);return Vx(t,e)})}(t,e,n);return new kx(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return jx(e,t),t}}const n=new Ix(new tb((i=e.value).url),new tb(i.params),new tb(i.queryParams),new tb(i.fragment),new tb(i.data),i.outlet,i.component,i),s=e.children.map(e=>Vx(t,e));return new kx(n,s)}var i}function jx(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new ix(n.root===t?e:Hx(n.root,t,e),r,s)}function Hx(t,e,n){const i={};return YS(t.children,(t,s)=>{i[s]=t===e?n:Hx(t,e,n)}),new sx(t.segments,i)}class $x{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Bx(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Ux);if(i&&i!==QS(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class qx{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Wx(t,e,n){if(t||(t=new sx([],{})),0===t.segments.length&&t.hasChildren())return Gx(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(Ux(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Yx(a,l,e))return r;i+=2}else{if(!Yx(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=Wx(t.children[i],e,n))}),YS(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new sx(t.segments,s)}}function Zx(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Zx(new sx([],{}),0,t))}),e}function Qx(t){const e={};return YS(t,(t,n)=>e[n]=`${t}`),e}function Yx(t,e,n){return t==n.path&&GS(e,n.parameters)}class Xx{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Nx(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Ax(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),YS(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Ax(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Ax(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new BS(t.value.snapshot))}),t.children.length&&this.forwardEvent(new VS(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Nx(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Jx(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Jx(t){Nx(t.value),t.children.forEach(Jx)}class tE{constructor(t,e){this.routes=t,this.module=e}}function eE(t){return"function"==typeof t}function nE(t){return t instanceof ix}const iE=Symbol("INITIAL_VALUE");function sE(){return Am(t=>function(...t){let e,n;return A(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new Fv(e))}(t.map(t=>t.pipe(Af(1),km(iE)))).pipe(kC((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==iE)return t;if(i===iE&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||nE(i))return i}return t},t)},iE),wf(t=>t!==iE),O(t=>nE(t)?t:!0===t),Af(1)))}let rE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Wt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Po(0,"router-outlet")},directives:function(){return[YE]},encapsulation:2}),t})();function oE(t,e=""){for(let n=0;nhE(t)===e);return n.push(...t.filter(t=>hE(t)!==e)),n}const dE={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pE(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},dE):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||WS)(n,t,e);if(!s)return Object.assign({},dE);const r={};YS(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function fE(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>mE(t,e,n)&&hE(n)!==zS)}(t,n,i)){const s=new sx(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&hE(r)!==zS){const n=new sx([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[hE(r)]=n}return s}(t,e,i,new sx(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>mE(t,e,n))}(t,n,i)){const r=new sx(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(mE(t,n,a)&&!s[hE(a)]){const n=new sx([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[hE(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new sx(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function mE(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function gE(t,e,n,i){return!!(hE(t)===i||i!==zS&&mE(e,n,t))&&("**"===t.path||pE(e,t,n).matched)}function _E(t,e,n){return 0===e.length&&!t.children[n]}class yE{constructor(t){this.segmentGroup=t||null}}class vE{constructor(t){this.urlTree=t}}function bE(t){return new b(e=>e.error(new yE(t)))}function wE(t){return new b(e=>e.error(new vE(t)))}function CE(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class SE{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(bl)}apply(){const t=fE(this.urlTree.root,[],[],this.config).segmentGroup,e=new sx(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,zS).pipe(O(t=>this.createUrlTree(xE(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(bb(t=>{if(t instanceof vE)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof yE)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,zS).pipe(O(e=>this.createUrlTree(xE(e),t.queryParams,t.fragment))).pipe(bb(t=>{if(t instanceof yE)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new sx([],{[zS]:t}):t;return new ix(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(O(t=>new sx([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return V(i).pipe(kb(i=>{const s=n.children[i],r=uE(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(O(t=>({segment:t,outlet:i})))}),kC((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?wf((e,n)=>t(e,n,i)):_,TC(1),n?RC(e):bS(()=>new vS))}())}expandSegment(t,e,n,i,s,r){return V(n).pipe(kb(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(bb(t=>{if(t instanceof yE)return of(null);throw t}))),xS(t=>!!t),bb((t,n)=>{if(t instanceof vS||"EmptyError"===t.name){if(_E(e,i,s))return of(new sx([],{}));throw new yE(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return gE(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):bE(e):bE(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?wE(s):this.lineralizeSegments(n,s).pipe(z(n=>{const s=new sx(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=pE(e,i,s);if(!o)return bE(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?wE(h):this.lineralizeSegments(i,h).pipe(z(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?of(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(O(t=>(n._loadedConfig=t,new sx(i,{})))):of(new sx(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=pE(e,n,i);if(!r)return bE(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(z(t=>{const i=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=fE(e,o,l,r),h=new sx(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe(O(t=>new sx(o,t)));if(0===r.length&&0===c.length)return of(new sx(o,{}));const u=hE(n)===s;return this.expandSegment(i,h,r,c,u?zS:s,!0).pipe(O(t=>new sx(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?of(new tE(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?of(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(z(n=>n?this.configLoader.load(t.injector,e).pipe(O(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(qS(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):of(new tE([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?of(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&eE(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!eE(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return XS(r)})).pipe(sE(),cf(t=>{if(!nE(t))return;const e=qS(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),O(t=>!0===t)):of(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return of(n);if(i.numberOfChildren>1||!i.children.primary)return CE(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new ix(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return YS(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return YS(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new sx(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function xE(t){const e={};for(const n of Object.keys(t.children)){const i=xE(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new sx(t.segments.concat(e.segments),e.children)}return t}(new sx(t.segments,e))}class EE{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class kE{constructor(t,e){this.component=t,this.route=e}}function AE(t,e,n){const i=t._root;return TE(i,e?e._root:null,n,[i.value])}function OE(t,e,n){const i=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(i?i.module.injector:n).get(t)}function TE(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Ax(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ox(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ox(t.url,e.url)||!GS(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fx(t,e)||!GS(t.queryParams,e.queryParams);case"paramsChange":default:return!Fx(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new EE(i)):(r.data=o.data,r._resolvedData=o._resolvedData),TE(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new kE(a.outlet.component,o))}else o&&IE(e,a,s),s.canActivateChecks.push(new EE(i)),TE(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),YS(r,(t,e)=>IE(t,n.getContext(e),s)),s}function IE(t,e,n){const i=Ax(t),s=t.value;YS(i,(t,i)=>{IE(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new kE(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class PE{}function RE(t){return new b(e=>e.error(t))}class DE{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=fE(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,zS);if(null===e)return null;const n=new Rx([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},zS,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new kx(n,e),s=new Dx(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Px(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=uE(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=ME(n);return i.sort((t,e)=>t.value.outlet===zS?-1:e.value.outlet===zS?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return _E(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!gE(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?QS(n).parameters:{};s=new Rx(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,VE(t),hE(t),t.component,t,NE(e),FE(e)+n.length,jE(t))}else{const i=pE(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new Rx(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,VE(t),hE(t),t.component,t,NE(e),FE(e)+r.length,jE(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=fE(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new kx(s,t)]}if(0===a.length&&0===c.length)return[new kx(s,[])];const h=hE(t)===i,u=this.processSegment(a,l,c,h?zS:i);return null===u?null:[new kx(s,u)]}}function LE(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function ME(t){const e=[],n=new Set;for(const i of t){if(!LE(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=ME(i.children);e.push(new kx(i.value,t))}return e.filter(t=>!n.has(t))}function NE(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function FE(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function VE(t){return t.data||{}}function jE(t){return t.resolve||{}}function BE(t){return Am(e=>{const n=t(e);return n?V(n).pipe(O(()=>e)):of(e)})}class UE extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const zE=new Yn("ROUTES");class HE{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(O(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new tE(KS(i.injector.get(zE,void 0,St.Self|St.Optional)).map(cE),i)}),bb(t=>{throw e._loader$=void 0,t}));return e._loader$=new Y(n,()=>new E).pipe(Z()),e._loader$}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):XS(t()).pipe(z(t=>t instanceof wl?of(t):V(this.compiler.compileModuleAsync(t))))}}class $E{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new qE,this.attachRef=null}}class qE{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new $E,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class WE{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function GE(t){throw t}function ZE(t,e,n){return e.parse("/")}function KE(t,e){return of(null)}let QE=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=GE,this.malformedUriErrorHandler=ZE,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:KE,afterPreactivation:KE},this.urlHandlingStrategy=new WE,this.routeReuseStrategy=new UE,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(bl),this.console=s.get(mc);const l=s.get(Oc);this.isNgZoneEnabled=l instanceof Oc&&Oc.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new ix(new sx([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new HE(r,o,t=>this.triggerEvent(new MS(t)),t=>this.triggerEvent(new NS(t))),this.routerState=Tx(this.currentUrlTree,this.rootComponentType),this.transitions=new tb({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(wf(t=>0!==t.id),O(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Am(t=>{let n=!1,i=!1;return of(t).pipe(cf(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}}),Am(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return of(t).pipe(Am(t=>{const n=this.transitions.getValue();return e.next(new kS(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Ef:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,Am(t=>function(t,e,n,i,s){return new SE(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(O(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),cf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return z(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new DE(t,e,n,i,s,r).recognize();return null===o?RE(new PE):of(o)}catch(o){return RE(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(O(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new IS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new kS(n,this.serializeUrl(i),s,r);e.next(a);const l=Tx(i,this.rootComponentType).snapshot;return of(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Ef}),BE(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),cf(t=>{const e=new PS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),O(t=>Object.assign(Object.assign({},t),{guards:AE(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return z(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?of(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return V(t).pipe(z(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?of(r.map(r=>{const o=OE(r,e,s);let a;if(function(t){return t&&eE(t.canDeactivate)}(o))a=XS(o.canDeactivate(t,e,n,i));else{if(!eE(o))throw new Error("Invalid CanDeactivate guard");a=XS(o(t,e,n,i))}return a.pipe(xS())})).pipe(sE()):of(!0)}(t.component,t.route,n,e,i)),xS(t=>!0!==t,!0))}(o,i,s,t).pipe(z(n=>n&&"boolean"==typeof n?function(t,e,n,i){return V(e).pipe(kb(e=>Em(function(t,e){return null!==t&&e&&e(new FS(t)),of(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new jS(t)),of(!0)}(e.route,i),function(t,e,n){const i=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=>Zg(()=>of(e.guards.map(s=>{const r=OE(s,e.node,n);let o;if(function(t){return t&&eE(t.canActivateChild)}(r))o=XS(r.canActivateChild(i,t));else{if(!eE(r))throw new Error("Invalid CanActivateChild guard");o=XS(r(i,t))}return o.pipe(xS())})).pipe(sE())));return of(s).pipe(sE())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?of(i.map(i=>Zg(()=>{const s=OE(i,e,n);let r;if(function(t){return t&&eE(t.canActivate)}(s))r=XS(s.canActivate(e,t));else{if(!eE(s))throw new Error("Invalid CanActivate guard");r=XS(s(e,t))}return r.pipe(xS())}))).pipe(sE()):of(!0)}(t,e.route,n))),xS(t=>!0!==t,!0))}(i,r,t,e):of(n)),O(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),cf(t=>{if(nE(t.guardsResult)){const e=qS(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new RS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),wf(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new OS(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),BE(t=>{if(t.guards.canActivateChecks.length)return of(t).pipe(cf(t=>{const e=new DS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Am(t=>{let n=!1;return of(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,z(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return of(t);let r=0;return V(n).pipe(kb(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return of({});const r={};return V(s).pipe(z(s=>function(t,e,n,i){const s=OE(t,e,i);return XS(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(cf(t=>{r[s]=t}))),TC(1),z(()=>Object.keys(r).length===s.length?of(r):Ef))}(t._resolve,t,e,i).pipe(O(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Px(t,n).resolve),null)))}(t.route,e,i,s)),cf(()=>r++),TC(1),z(e=>r===n.length?of(t):Ef))})),cf({next:()=>n=!0,complete:()=>{if(!n){const n=new OS(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),cf(t=>{const e=new LS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),BE(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),O(t=>{const e=function(t,e,n){const i=Vx(t,e._root,n?n._root:void 0);return new Ox(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cf(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),O(t=>(new Xx(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),cf({next(){n=!0},complete(){n=!0}}),Sb(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new OS(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),bb(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=nE(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new OS(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);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 i=new TS(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Ef}));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=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){oE(t),this.config=t.map(cE),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return zx(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new $x(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return YS(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new $x(n,e,i)}(n);if(r.toRoot())return zx(e.root,new sx([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new qx(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new qx(t,t===e.root,0)}const i=Bx(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new qx(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Gx(o.segmentGroup,o.index,r.commands):Wx(o.segmentGroup,o.index,r.commands);return zx(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=nE(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new AS(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(mi(Jn),mi(ax),mi(qE),mi(Ch),mi(lo),mi(Yc),mi(Ec),mi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),YE=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new zl,this.deactivateEvents=new zl,this.name=i||zS,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new XE(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(ko(qE),ko(Sl),ko(La),Zn("name"),ko(hl))},t.\u0275dir=Xt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class XE{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ix?this.route:t===qE?this.childContexts:this.parent.get(t,e)}}class JE{}class tk{preload(t,e){return of(null)}}let ek=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new HE(e,n,e=>t.triggerEvent(new MS(e)),e=>t.triggerEvent(new NS(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(wf(t=>t instanceof AS),kb(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(bl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return V(n).pipe(q(),O(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?of(e._loadedConfig):this.loader.load(t.injector,e)).pipe(z(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(mi(QE),mi(Yc),mi(Ec),mi(lo),mi(JE))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),nk=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kS?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof AS&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof US&&(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 US(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(e){return new(e||t)(mi(QE),mi(Uh),mi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const ik=new Yn("ROUTER_CONFIGURATION"),sk=new Yn("ROUTER_FORROOT_GUARD"),rk=[Ch,{provide:ax,useClass:lx},{provide:QE,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new QE(null,t,e,n,i,s,r,KS(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing){const t=oh();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[ax,qE,Ch,lo,Yc,Ec,zE,ik,[class{},new bi],[class{},new bi]]},qE,{provide:Ix,useFactory:function(t){return t.routerState.root},deps:[QE]},{provide:Yc,useClass:th},ek,tk,class{preload(t,e){return e().pipe(bb(()=>of(null)))}},{provide:ik,useValue:{enableTracing:!1}}];function ok(){return new $c("Router",QE)}let ak=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[rk,uk(e),{provide:sk,useFactory:hk,deps:[[QE,new bi,new wi]]},{provide:ik,useValue:n||{}},{provide:_h,useFactory:ck,deps:[lh,[new vi(vh),new bi],ik]},{provide:nk,useFactory:lk,deps:[QE,Uh,ik]},{provide:JE,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:tk},{provide:$c,multi:!0,useFactory:ok},[dk,{provide:ac,multi:!0,useFactory:pk,deps:[dk]},{provide:mk,useFactory:fk,deps:[dk]},{provide:fc,multi:!0,useExisting:mk}]]}}static forChild(e){return{ngModule:t,providers:[uk(e)]}}}return t.\u0275fac=function(e){return new(e||t)(mi(sk,8),mi(QE,8))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();function lk(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new nk(t,e,n)}function ck(t,e,n={}){return n.useHash?new wh(t,e):new bh(t,e)}function hk(t){return"guarded"}function uk(t){return[{provide:Xn,multi:!0,useValue:t},{provide:zE,multi:!0,useValue:t}]}let dk=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(hh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(QE),i=this.injector.get(ik);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?of(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(ik),n=this.injector.get(ek),i=this.injector.get(nk),s=this.injector.get(QE),r=this.injector.get(Kc);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(mi(lo))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function pk(t){return t.appInitializer.bind(t)}function fk(t){return t.bootstrapListener.bind(t)}const mk=new Yn("Router Initializer"),gk="https://apiv2.seniorlife.io/",_k="https://seniorlife.io/",yk="https://jp.seniorlife.io/";function vk(t,e){if(1&t){const t=Mo();To(0,"div",4),Vo("click",function(){return Ne(t),Ho().goToPage(3)}),To(1,"label"),ua(2),jl(3,"translate"),Io(),Io()}2&t&&(Qs(2),da(Bl(3,1,"LABELS.PRICING")))}function bk(t,e){if(1&t){const t=Mo();To(0,"span",11),Vo("click",function(){return Ne(t),Ho().menuOpened=!0}),To(1,"mat-icon"),ua(2,"menu"),Io(),Io()}}function wk(t,e){if(1&t){const t=Mo();To(0,"span",12),Vo("click",function(){return Ne(t),Ho().menuOpened=!1}),ua(1,"\xd7"),Io()}}function Ck(t,e){if(1&t){const t=Mo();To(0,"div",4),Vo("click",function(){return Ne(t),Ho(2).goToPage(3)}),To(1,"label"),ua(2),jl(3,"translate"),Io(),To(4,"span"),ua(5,">"),Io(),Io()}2&t&&(Qs(2),da(Bl(3,1,"LABELS.PRICING")))}function Sk(t,e){if(1&t){const t=Mo();To(0,"div",13),To(1,"div",4),Vo("click",function(){return Ne(t),Ho().goToPage(1)}),To(2,"label"),ua(3),jl(4,"translate"),Io(),To(5,"span"),ua(6,">"),Io(),Io(),To(7,"div",4),Vo("click",function(){return Ne(t),Ho().goToPage(2)}),To(8,"label"),ua(9),jl(10,"translate"),Io(),To(11,"span"),ua(12,">"),Io(),Io(),Eo(13,Ck,6,3,"div",5),To(14,"div",4),Vo("click",function(){return Ne(t),Ho().goToPage(4)}),To(15,"label"),ua(16),jl(17,"translate"),Io(),To(18,"span"),ua(19,">"),Io(),Io(),To(20,"div",4),Vo("click",function(){return Ne(t),Ho().goToPage(5)}),To(21,"label"),ua(22),jl(23,"translate"),Io(),To(24,"span"),ua(25,">"),Io(),Io(),Io()}if(2&t){const t=Ho();Qs(3),da(Bl(4,5,"LABELS.SOLUTION")),Qs(6),da(Bl(10,7,"LABELS.ABOUT_US")),Qs(4),Ao("ngIf","jp"!=t.curLang),Qs(3),da(Bl(17,9,"LABELS.FAQ")),Qs(6),da(Bl(23,11,"LABELS.LOGIN"))}}let xk=(()=>{class t{constructor(){this.menuOpened=!1,this.domain="",this.domain="ja"===localStorage.getItem("origin")?yk:_k}ngOnInit(){this.curLang=localStorage.getItem("language")}goToPage(t){switch(t){case 1:window.location.href=this.domain+"solution/";break;case 2:window.location.href=this.domain+"about-us/";break;case 3:window.location.href=this.domain+"pricing/";break;case 4:window.location.href=this.domain+"faq/";break;case 5:window.location.href=this.domain+"my-account/";break;case 6:window.location.href=this.domain}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-nav-menu"]],decls:27,vars:16,consts:[["tabindex","0",1,"div-nav"],[2,"display","flex","align-items","center","cursor","pointer",3,"click"],["src","assets/images/sl-logo.png",2,"width","8em"],[1,"div-children",2,"display","flex","margin","0 3%","align-items","center"],[1,"div-nav-child",3,"click"],["class","div-nav-child",3,"click",4,"ngIf"],[1,"div-nav-mobile"],[2,"display","flex","align-items","center"],["class","icon",3,"click",4,"ngIf"],["class","icon-close",3,"click",4,"ngIf"],["class","div-menu",4,"ngIf"],[1,"icon",3,"click"],[1,"icon-close",3,"click"],[1,"div-menu"]],template:function(t,e){1&t&&(To(0,"div",0),To(1,"div",1),Vo("click",function(){return e.goToPage(6)}),Po(2,"img",2),Io(),To(3,"div",3),To(4,"div",4),Vo("click",function(){return e.goToPage(1)}),To(5,"label"),ua(6),jl(7,"translate"),Io(),Io(),To(8,"div",4),Vo("click",function(){return e.goToPage(2)}),To(9,"label"),ua(10),jl(11,"translate"),Io(),Io(),Eo(12,vk,4,3,"div",5),To(13,"div",4),Vo("click",function(){return e.goToPage(4)}),To(14,"label"),ua(15),jl(16,"translate"),Io(),Io(),To(17,"div",4),Vo("click",function(){return e.goToPage(5)}),To(18,"label"),ua(19),jl(20,"translate"),Io(),Io(),Io(),Io(),To(21,"div",6),To(22,"div",7),Po(23,"img",2),Io(),Eo(24,bk,3,0,"span",8),Eo(25,wk,2,0,"span",9),Io(),Eo(26,Sk,26,13,"div",10)),2&t&&(Qs(6),da(Bl(7,8,"LABELS.SOLUTION")),Qs(4),da(Bl(11,10,"LABELS.ABOUT_US")),Qs(2),Ao("ngIf","jp"!=e.curLang),Qs(3),da(Bl(16,12,"LABELS.FAQ")),Qs(4),da(Bl(20,14,"LABELS.LOGIN")),Qs(5),Ao("ngIf",!e.menuOpened),Qs(1),Ao("ngIf",e.menuOpened),Qs(1),Ao("ngIf",e.menuOpened))},directives:[Rh,vw],pipes:[eS],styles:[".div-nav[_ngcontent-%COMP%]{z-index:1;background-color:#fff;opacity:1;justify-content:space-between;overflow-x:hidden;position:sticky;position:-webkit-sticky;top:0;padding:.5em 3em;max-width:100vw;object-fit:contain;height:3em;display:flex;box-shadow:0 3px 6px 0 #00000029}.div-nav[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.3em;color:#17428d;cursor:pointer}.logo-text[_ngcontent-%COMP%]{font-family:Roboto;color:#125ccb;margin-top:14px;margin-left:5px;font-size:1.1em}.div-nav-child[_ngcontent-%COMP%]{margin:0 2em;font-weight:500;font-family:Roboto;cursor:pointer}.div-nav-child[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer}.div-nav-mobile[_ngcontent-%COMP%]{display:none}.div-nav-mobile[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%]{font-size:2em;font-weight:600;color:#125ccb}.div-menu[_ngcontent-%COMP%]{position:fixed;background-color:#fff;top:3.5em;width:100%;opacity:.9}.div-menu[_ngcontent-%COMP%] .div-nav-child[_ngcontent-%COMP%]{margin:0 20px;font-weight:500;font-family:Roboto;cursor:pointer;padding:20px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #f0f0f0}.div-menu[_ngcontent-%COMP%] .div-nav-child[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:monospace;font-size:1.5em;font-weight:600}.div-nav-child[_ngcontent-%COMP%]:hover label[_ngcontent-%COMP%]{transition:.5s;color:#17428d}@media only screen and (min-height:1000px){.div-nav[_ngcontent-%COMP%]{display:none}.div-nav-mobile[_ngcontent-%COMP%]{display:flex;padding:15px 20px;align-items:center;background-color:#fff;opacity:1;justify-content:space-between;overflow:hidden;position:sticky;position:-webkit-sticky;box-shadow:0 3px 6px 0 #00000029;top:0;z-index:1}.div-nav-mobile[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.3em;color:#17428d;cursor:pointer}img[_ngcontent-%COMP%]{width:10em!important}}@media only screen and (max-width:700px){.div-nav[_ngcontent-%COMP%]{display:none}.div-nav-mobile[_ngcontent-%COMP%]{display:flex;padding:5px 20px;align-items:center;background-color:#fff;opacity:1;justify-content:space-between;overflow:hidden;position:sticky;position:-webkit-sticky;box-shadow:0 3px 6px 0 #00000029;top:0;z-index:1}.div-nav-mobile[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.3em;color:#17428d;cursor:pointer}}"]}),t})(),Ek=(()=>{class t{constructor(t){this.translate=t,this.translate.setDefaultLang(localStorage.getItem("language"))}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(ko(tS))},t.\u0275cmp=Wt({type:t,selectors:[["app-failed"]],decls:8,vars:6,consts:[[2,"text-align","center","margin","10em auto","font-family","Roboto","padding","0 20px"],[2,"font-size","3em","margin-bottom","1.5em"],[2,"font-size","1.5em"]],template:function(t,e){1&t&&(Po(0,"app-nav-menu"),To(1,"div",0),To(2,"div",1),ua(3),jl(4,"translate"),Io(),To(5,"div",2),ua(6),jl(7,"translate"),Io(),Io()),2&t&&(Qs(3),pa(" ",Bl(4,2,"LABELS.FAILED_TEXT1")," "),Qs(3),pa(" ",Bl(7,4,"LABELS.FAILED_TEXT2")," "))},directives:[xk],pipes:[eS],styles:[""]}),t})(),kk=(()=>{class t{constructor(t){this.http=t,this.apiUrl=gk}setHeaders(t,e){let n=new Tb;const i="jp"===localStorage.getItem("language")?"ja":"en";return n=n.append("Accept-Language",i),n=n.append("x-api-key","IgFIqekIvN2R2xMRbwUC913aPRYTOBocaLgFeBq5"),n.set("Access-Control-Allow-Origin","*"),n.set("Access-Control-Allow-Origin","*"),"json"===t?n=n.append("Content-Type","application/json; charset=utf-8"):"form"===t?n=n.append("Content-Type","application/x-www-form-urlencoded"):"multipart"===t&&(n=n.append("Content-Type",void 0)),n}loadIp(){return this.http.get("https://jsonip.com")}get(t,e="json",n=!1){const i=this.setHeaders(e,n);return this.http.get(this.apiUrl+t,{headers:i})}patch(t,e="json",n=!1){const i=this.setHeaders(e,n);return this.http.patch(this.apiUrl+t,{},{headers:i})}post(t,e,n="json",i=!1,s){const r={headers:this.setHeaders(n,i)};return"text"===s&&(r.responseType="text"),this.http.post(this.apiUrl+t,e,r)}put(t,e,n="json",i=!1,s){const r={headers:this.setHeaders(n,i)};return"text"===s&&(r.responseType="text"),this.http.put(this.apiUrl+t,e,r)}delete(t,e,n){const i=this.setHeaders(e,n);return this.http.delete(this.apiUrl+t,{headers:i,responseType:"text"})}handleError(t){return t.error instanceof ErrorEvent?console.error("An error occurred:",t.error.message):console.error(`Backend returned code ${t.status}, body was: ${t.error}`),Im(t.error.error||"Something bad happened. Please try again later.")}}return t.\u0275fac=function(e){return new(e||t)(mi(Hb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ak=(()=>{class t{constructor(t){this.common=t,this.baserUrl=gk}getCustomerQuestions(){return this.common.get("website/questions/registration")}validateEmail(t){return this.common.get("website/user/validate?email="+encodeURIComponent(String(t)))}confirmRegistration(t){const e=localStorage.getItem("origin");return this.common.post("website/user/registration?region="+e,t)}emailVerification(t){return this.common.get("website/user/registration/confirm?code="+t)}resendLink(t){const e=localStorage.getItem("origin");return this.common.post("website/users/verify/email?origin="+e,t)}}return t.\u0275fac=function(e){return new(e||t)(mi(kk))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ok(t,e){if(1&t){const t=Mo();To(0,"mat-radio-button",52),Vo("change",function(e){return Ne(t),Ho(2).toggleNext(e)}),To(1,"div",53),To(2,"div",54),To(3,"span"),ua(4),Io(),Io(),Io(),Io()}if(2&t){const t=e.$implicit;Ao("value",t),Qs(4),da(t)}}function Tk(t,e){1&t&&(To(0,"mat-error",41),ua(1),jl(2,"translate"),Io()),2&t&&(Qs(1),da(Bl(2,1,"ERRORS.PASSWORD_FORMAT")))}function Ik(t,e){1&t&&(To(0,"mat-error",41),ua(1),jl(2,"translate"),Io()),2&t&&(Qs(1),pa(" ",Bl(2,1,"ERRORS.CONFIRM_PASSWORD_NO_MATCH"),""))}const Pk=function(){return[0]},Rk=function(){return[2]},Dk=function(){return[3]};function Lk(t,e){if(1&t){const t=Mo();To(0,"div"),To(1,"h3",1),ua(2),jl(3,"translate"),Io(),To(4,"div",2),To(5,"div",3),To(6,"form",4),To(7,"div",5),To(8,"label"),ua(9),Io(),Io(),To(10,"mat-horizontal-stepper",6,7),To(12,"mat-step",8),To(13,"div",9),To(14,"div",10),Po(15,"img",11),To(16,"div",12),To(17,"label"),ua(18),jl(19,"translate"),Io(),Po(20,"br"),ua(21),jl(22,"translate"),Io(),Io(),To(23,"div",13),To(24,"label"),ua(25),Io(),Io(),To(26,"div",14),To(27,"label",15),ua(28),jl(29,"translate"),Io(),To(30,"label",16),ua(31),jl(32,"translate"),Io(),To(33,"mat-radio-group",17),Eo(34,Ok,5,2,"mat-radio-button",18),Io(),To(35,"div",19),To(36,"button",20),Vo("click",function(){return Ne(t),Ho().stepTwoClear()}),ua(37),jl(38,"translate"),Po(39,"img",21),Io(),Io(),Io(),Io(),Io(),To(40,"mat-step",22),To(41,"div",9),To(42,"div",23),Po(43,"img",24),Io(),To(44,"div",13),To(45,"label"),ua(46),Io(),Io(),To(47,"div",25),To(48,"div",26),To(49,"label",15),ua(50),jl(51,"translate"),Io(),To(52,"label",16),ua(53),jl(54,"translate"),Io(),Io(),To(55,"div",27),To(56,"mat-form-field",28),Po(57,"input",29),jl(58,"translate"),Io(),Io(),To(59,"div",27),To(60,"mat-form-field",28),Po(61,"input",30),jl(62,"translate"),Io(),Io(),To(63,"div",27),To(64,"mat-form-field",28),Po(65,"input",31),jl(66,"translate"),Io(),Io(),To(67,"div",27),To(68,"mat-form-field",28),Po(69,"input",32),jl(70,"translate"),Io(),Io(),To(71,"div",33),To(72,"button",34),Vo("click",function(){return Ne(t),Ho().selectIndex(1)}),Po(73,"img",35),ua(74),jl(75,"translate"),Io(),To(76,"button",20),Vo("click",function(){return Ne(t),Ho().stepThreeClear()}),ua(77),jl(78,"translate"),Po(79,"img",21),Io(),Io(),Io(),Io(),Io(),To(80,"mat-step",36),To(81,"div",9),To(82,"div",23),Po(83,"img",37),Io(),To(84,"div",13),To(85,"label"),ua(86),Io(),Io(),To(87,"div",25),To(88,"div",38),To(89,"label",15),ua(90),jl(91,"translate"),Io(),To(92,"label",16),ua(93),jl(94,"translate"),Io(),Io(),To(95,"div",39),To(96,"mat-form-field",28),To(97,"input",40),Vo("input",function(e){return Ne(t),Ho().validateEmail(e)}),jl(98,"translate"),Io(),To(99,"mat-error",41),ua(100),Io(),Io(),Io(),To(101,"div",39),To(102,"mat-form-field",28),To(103,"input",42),Vo("input",function(){return Ne(t),Ho().checkPassword()}),jl(104,"translate"),Io(),To(105,"mat-icon",43),Vo("click",function(){Ne(t);const e=Ho();return e.hide=!e.hide}),ua(106),Io(),Eo(107,Tk,3,3,"mat-error",44),Io(),Io(),To(108,"div",39),To(109,"mat-form-field",28),To(110,"input",45),Vo("input",function(){return Ne(t),Ho().checkPassword()})("paste",function(){return!1}),jl(111,"translate"),Io(),To(112,"mat-icon",43),Vo("click",function(){Ne(t);const e=Ho();return e.hide=!e.hide}),ua(113),Io(),Eo(114,Ik,3,3,"mat-error",44),Io(),Io(),To(115,"div",46),To(116,"button",34),Vo("click",function(){return Ne(t),Ho().selectIndex(2)}),Po(117,"img",35),ua(118),jl(119,"translate"),Io(),To(120,"button",20),Vo("click",function(){return Ne(t),Ho().selectIndex(4)}),ua(121),jl(122,"translate"),Po(123,"img",21),Io(),Io(),Io(),Io(),Io(),To(124,"mat-step",36),To(125,"div",9),To(126,"div",23),Po(127,"img",37),Io(),To(128,"div",13),To(129,"label"),ua(130),Io(),Io(),To(131,"div",47),To(132,"div",38),To(133,"label",15),ua(134),jl(135,"translate"),Io(),To(136,"label",16),ua(137),jl(138,"translate"),Io(),Io(),To(139,"table",48),To(140,"tbody"),To(141,"tr"),To(142,"td"),To(143,"label",49),ua(144),jl(145,"translate"),Io(),Io(),To(146,"td"),To(147,"label",50),ua(148),Io(),Io(),Io(),To(149,"tr"),To(150,"td"),To(151,"label",49),ua(152),jl(153,"translate"),Io(),Io(),To(154,"td"),To(155,"label",50),ua(156),Io(),Io(),Io(),To(157,"tr"),To(158,"td"),To(159,"label",49),ua(160),jl(161,"translate"),Io(),Io(),To(162,"td"),To(163,"label",50),ua(164),Io(),Io(),Io(),To(165,"tr"),To(166,"td"),To(167,"label",49),ua(168),jl(169,"translate"),Io(),Io(),To(170,"td"),To(171,"label",50),ua(172),Io(),Io(),Io(),To(173,"tr"),To(174,"td"),To(175,"label",49),ua(176),jl(177,"translate"),Io(),Io(),To(178,"td"),To(179,"label",50),ua(180),Io(),Io(),Io(),Io(),Io(),To(181,"div",46),To(182,"button",34),Vo("click",function(){return Ne(t),Ho().selectIndex(3)}),Po(183,"img",35),ua(184),jl(185,"translate"),Io(),To(186,"button",51),Vo("click",function(){return Ne(t),Ho().confirmRegistration()}),ua(187),jl(188,"translate"),Po(189,"img",21),Io(),Io(),Io(),Io(),Io(),Io(),Io(),Io(),Io(),Io()}if(2&t){const t=Ho();Qs(2),pa(" ",Bl(3,57,"LABELS.REGISTRATION")," "),Qs(4),Ao("formGroup",t.questionForm),Qs(3),pa("",t.index," / 4"),Qs(3),Ao("stepControl",null==t.formArray?null:t.formArray.get(Vl(117,Pk))),Qs(6),da(Bl(19,59,"LABELS.PAGE1_TEXT1")),Qs(3),pa(" ",Bl(22,61,"LABELS.PAGE1_TEXT2")," "),Qs(4),pa("",t.index," / 4"),Qs(3),da(Bl(29,63,"LABELS.QUESTION1_HEADING")),Qs(3),da(Bl(32,65,"LABELS.QUESTION1_SUB_HEADING")),Qs(3),Ao("ngForOf",t.aboutBusiness),Qs(2),Ao("disabled",t.disableFirstNext),Qs(1),pa("",Bl(38,67,"BUTTONS.NEXT")," "),Qs(3),Ao("stepControl",null==t.formArray?null:t.formArray.get(Vl(118,Rk))),Qs(6),pa("",t.index," / 4"),Qs(4),da(Bl(51,69,"LABELS.BUSINESS_CONTACT")),Qs(3),da(Bl(54,71,"LABELS.CHECK_INFO_SUB")),Qs(4),Ao("placeholder",Bl(58,73,"LABELS.BUSINESS_NAME_PLACEHOLDER")),Qs(4),Ao("mask",t.mask)("placeholder",Bl(62,75,"LABELS.ZIPCODE")),Qs(4),Ao("placeholder",Bl(66,77,"LABELS.LAST_NAME")),Qs(4),Ao("placeholder",Bl(70,79,"LABELS.FIRST_NAME")),Qs(5),da(Bl(75,81,"BUTTONS.BACK")),Qs(2),Ao("disabled",t.getDisableCompany()),Qs(1),pa("",Bl(78,83,"BUTTONS.NEXT")," "),Qs(3),Ao("stepControl",null==t.formArray?null:t.formArray.get(Vl(119,Dk))),Qs(6),pa("",t.index," / 4"),Qs(4),da(Bl(91,85,"LABELS.ADMIN_INFO")),Qs(3),da(Bl(94,87,"LABELS.ADMIN_INFO_SUB")),Qs(4),Ao("placeholder",Bl(98,89,"LABELS.EMAIL")),Qs(3),da(t.errMessage),Qs(3),Ao("type",t.hide?"password":"text")("placeholder",Bl(104,91,"LABELS.PASSWORD")),Qs(3),da(t.hide?"visibility_off":"visibility"),Qs(1),Ao("ngIf",(null==t.formArray?null:t.formArray.get(Vl(120,Dk)).get("password").dirty)&&(null==t.formArray?null:t.formArray.get(Vl(121,Dk)).get("password").invalid)),Qs(3),Ao("placeholder",Bl(111,93,"LABELS.CONFIRM"))("type",t.hide?"password":"text"),Qs(3),da(t.hide?"visibility_off":"visibility"),Qs(1),Ao("ngIf",null==t.formArray?null:t.formArray.get(Vl(122,Dk)).get("confirm").dirty),Qs(4),da(Bl(119,95,"BUTTONS.BACK")),Qs(2),Ao("disabled",t.getDisableAccount()),Qs(1),pa("",Bl(122,97,"BUTTONS.NEXT")," "),Qs(3),Ao("stepControl",null==t.formArray?null:t.formArray.get(Vl(123,Dk))),Qs(6),pa("",t.index," / 4"),Qs(4),da(Bl(135,99,"LABELS.CHECK_INFO")),Qs(3),da(Bl(138,101,"LABELS.CHECK_INFO_SUB")),Qs(7),da(Bl(145,103,"LABELS.COMPANY_NAME")),Qs(4),da(null==t.formArray?null:t.formArray.get(Vl(124,Rk)).get("businessName").value),Qs(4),da(Bl(153,105,"LABELS.ZIPCODE")),Qs(4),da(null==t.formArray?null:t.formArray.get(Vl(125,Rk)).get("zipcode").value),Qs(4),da(Bl(161,107,"LABELS.LAST_NAME")),Qs(4),da(null==t.formArray?null:t.formArray.get(Vl(126,Rk)).get("lastName").value),Qs(4),da(Bl(169,109,"LABELS.FIRST_NAME")),Qs(4),da(null==t.formArray?null:t.formArray.get(Vl(127,Rk)).get("firstName").value),Qs(4),da(Bl(177,111,"LABELS.EMAIL")),Qs(4),da(null==t.formArray?null:t.formArray.get(Vl(128,Dk)).get("email").value),Qs(4),da(Bl(185,113,"BUTTONS.BACK")),Qs(3),pa("",Bl(188,115,"BUTTONS.CONFIRM")," ")}}function Mk(t,e){1&t&&Po(0,"mat-spinner")}let Nk=(()=>{class t{constructor(t,e,n,i,s,r){this.fb=t,this.service=e,this.ipservice=n,this.router=i,this.route=s,this.translate=r,this.aboutBusiness=[],this.physician=[],this.others=[],this.seniorLiving=[],this.dayCare=[],this.about_you=[],this.aboutYouSelected=[],this.disableFirstNext=!0,this.disableNextRadio=!0,this.disableCompanyNext=!0,this.apiError=!1,this.loadSpinner=!1,this.displayEmrField=!1,this.questionPlaceholder="",this.errMessage="",this.index=1,this.hide=!0,this.mask="000-0000",this.emailRegExp=/^\s*(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))\s*$/,this.passwordExp=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$/}get formArray(){return this.questionForm.get("questionFormArray")}ngOnInit(){this.translate.addLangs(["en","jp"]),this.questionForm=this.fb.group({questionFormArray:this.fb.array([this.fb.group({about_business:[""]}),this.fb.group({about_you:[[]],emr:[""]}),this.fb.group({businessName:["",C_.required],zipcode:[""],lastName:["",C_.required],firstName:["",C_.required]}),this.fb.group({email:["",[C_.required,C_.pattern(this.emailRegExp)]],password:["",[C_.required]],confirm:["",C_.required]})])}),setTimeout(()=>{this.route.queryParams.subscribe(t=>{if(t.locale){const e="ja"===t.locale?"jp":t.locale;localStorage.setItem("language",e),this.translate.setDefaultLang(e),this.curLang=e}else this.loadIP();localStorage.setItem("origin",t.origin),this.setMask(),this.getQuestions()})},0)}setMask(){this.mask="en"===this.curLang?"00-000":"000-0000"}loadIP(){this.ipservice.loadIp().subscribe(t=>{"JP"===t.country?(this.translate.setDefaultLang("jp"),localStorage.setItem("language","jp"),this.curLang="jp"):(this.translate.setDefaultLang("en"),localStorage.setItem("language","en"),this.curLang="en")})}getQuestions(){this.loadSpinner=!0,this.service.getCustomerQuestions().subscribe(t=>{this.sortQuestions(t.data),this.loadSpinner=!1})}sortQuestions(t){this.aboutBusiness=t.companyCategory,this.physician=t.physician,this.dayCare=t.dayCare,this.seniorLiving=t.seniorLiving,this.others=t.others,setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100)}selectIndex(t){this.index=t}stepTwoClear(){var t,e,n,i,s,r,o;this.selectIndex(2);const a=this.aboutYouSelected.findIndex(t=>5===t.questionId);a>-1&&(null===(t=this.formArray)||void 0===t?void 0:t.get([1]).get("emr").value)&&(this.aboutYouSelected[a].answerValue=null===(e=this.formArray)||void 0===e?void 0:e.get([1]).get("emr").value),(null===(n=this.formArray)||void 0===n?void 0:n.get([2]).untouched)&&(null===(i=this.formArray)||void 0===i||i.get([2]).get("businessName").setErrors(null),null===(s=this.formArray)||void 0===s||s.get([2]).get("firstName").setErrors(null),null===(r=this.formArray)||void 0===r||r.get([2]).get("lastName").setErrors(null),null===(o=this.formArray)||void 0===o||o.get([2]).setErrors({invalid:!0}))}getDisableCompany(){var t;const e=null===(t=this.formArray)||void 0===t?void 0:t.get([2]);return!(0!=e.get("businessName").value.length&&0!=e.get("firstName").value.length&&0!=e.get("lastName").value.length&&!e.invalid)}stepThreeClear(){var t,e,n,i,s;this.selectIndex(3),(null===(t=this.formArray)||void 0===t?void 0:t.get([3]).untouched)&&(null===(e=this.formArray)||void 0===e||e.get([3]).get("email").setErrors(null),null===(n=this.formArray)||void 0===n||n.get([3]).get("password").setErrors(null),null===(i=this.formArray)||void 0===i||i.get([3]).get("confirm").setErrors(null),null===(s=this.formArray)||void 0===s||s.get([3]).setErrors({invalid:!0}))}getDisableAccount(){var t;const e=null===(t=this.formArray)||void 0===t?void 0:t.get([3]);return!(0!=e.get("email").value.length&&0!=e.get("password").value.length&&0!=e.get("confirm").value.length&&!e.invalid)}toggleNext(t){var e;switch(this.disableFirstNext=!1,this.displayEmrField=!1,this.disableNextRadio=!0,t.value.split(" "),this.aboutBusinessSelected=t.value,this.aboutYouSelected.splice(0,this.aboutYouSelected.length),null===(e=this.formArray)||void 0===e||e.get([1]).get("about_you").reset(),t.value){case"Senior Living Operator":case"\u9ad8\u9f62\u8005\u65bd\u8a2d":this.about_you=this.seniorLiving,this.imgSrc="assets/images/Senior.png";break;case"Physician / Therapist":case"\u7406\u5b66\u7642\u6cd5\u58eb":this.about_you=this.physician,this.imgSrc="assets/images/Physician.png";break;case"Day care / Home care":case"\u30c7\u30a4\u30b1\u30a2\u30fb\u30c7\u30a4\u30b5\u30fc\u30d3\u30b9":this.about_you=this.dayCare,this.imgSrc="assets/images/Day.png";break;case"Other":case"\u305d\u306e\u4ed6":this.about_you=this.others,this.imgSrc="assets/images/Other.png"}}setAboutYou(t,e){var n,i;this.disableNextRadio=!0;let s=!1;const r=null===(n=this.formArray)||void 0===n?void 0:n.get([1]).get("emr").value;t.description.includes("Physician")&&4===t.id&&(9===e.value.a_id?(s=!0,this.displayEmrField=!0,this.disableNextRadio=!0,this.questionPlaceholder=this.about_you[4].question):this.displayEmrField=!1,this.aboutYouSelected.push({questionId:this.about_you[4].id,question:this.about_you[4].question,answerValue:r}));const o=null===(i=this.aboutYouSelected)||void 0===i?void 0:i.findIndex(e=>e.questionId===t.id);o>-1?(this.aboutYouSelected[o].answerId=e.value.a_id,this.aboutYouSelected[o].answerValue=e.value.answer):this.aboutYouSelected.push({questionId:t.id,question:t.question,answerId:e.value.a_id,answerValue:e.value.answer}),s?r.length>0&&this.aboutYouSelected.length>=this.about_you.length&&(this.disableNextRadio=!1):this.disableNextRadio=!(this.aboutYouSelected.length>=this.about_you.length)}setAnswer(){var t;const e=null===(t=this.formArray)||void 0===t?void 0:t.get([1]).get("emr").value;this.disableNextRadio=!(e.length>0&&this.aboutYouSelected.length>=this.about_you.length)}inputEmail(){var t;null===(t=this.formArray)||void 0===t||t.get([3]).get("email").setErrors({invalid:!0})}validateEmail(t){var e,n;this.errMessage="",(null===(e=this.formArray)||void 0===e?void 0:e.get([3]).get("email").invalid)?this.errMessage=this.translate.instant("ERRORS.ERR_EMAIL"):(this.apiError=!1,this.service.validateEmail(null===(n=this.formArray)||void 0===n?void 0:n.get([3]).get("email").value).subscribe(t=>{},t=>{var e;this.errMessage=t.error.message,null===(e=this.formArray)||void 0===e||e.get([3]).get("email").setErrors({invalid:!0}),this.apiError=!0}))}checkPassword(){var t,e,n,i;const s=null===(t=this.formArray)||void 0===t?void 0:t.get([3]).get("confirm").value,r=null===(e=this.formArray)||void 0===e?void 0:e.get([3]).get("password").value;null===(n=this.formArray)||void 0===n||n.get([3]).get("confirm").setErrors(null),s.length>0&&s!==r&&(null===(i=this.formArray)||void 0===i||i.get([3]).get("confirm").setErrors({invalid:!0}))}confirmRegistration(){var t,e,n,i,s,r,o,a,l;let c;this.loadSpinner=!0,c=""!==(null===(t=this.formArray)||void 0===t?void 0:t.get([2]).get("zipcode").value)?(null===(e=this.formArray)||void 0===e?void 0:e.get([2]).get("businessName").value)+" - "+(null===(n=this.formArray)||void 0===n?void 0:n.get([2]).get("zipcode").value):null===(i=this.formArray)||void 0===i?void 0:i.get([2]).get("businessName").value;const h={about_business:this.aboutBusinessSelected,about_you:this.aboutYouSelected,registration_details:{businessName:c,zipCode:null===(s=this.formArray)||void 0===s?void 0:s.get([2]).get("zipcode").value,firstName:null===(r=this.formArray)||void 0===r?void 0:r.get([2]).get("firstName").value,lastName:null===(o=this.formArray)||void 0===o?void 0:o.get([2]).get("lastName").value,email:null===(a=this.formArray)||void 0===a?void 0:a.get([3]).get("email").value,password:btoa(null===(l=this.formArray)||void 0===l?void 0:l.get([3]).get("password").value)}};this.service.confirmRegistration(h).subscribe(t=>{t.status&&(this.loadSpinner=!1,this.formArray.reset(),this.router.navigate(["success"]))},t=>{this.loadSpinner=!1,this.router.navigate(["failed"])})}}return t.\u0275fac=function(e){return new(e||t)(ko(Vy),ko(Ak),ko(kk),ko(QE),ko(Ix),ko(tS))},t.\u0275cmp=Wt({type:t,selectors:[["app-register"]],decls:3,vars:2,consts:[[4,"ngIf"],[2,"padding","0.5em 15%","font-weight","500","color","#125ccb"],[1,"div-container"],[1,"div-stepper",2,"width","90%"],[1,"space-evenly",3,"formGroup"],[1,"desktop-step",2,"padding","0 24px","text-align","right","margin-bottom","10px","font-size","1em"],["linear","true","formArrayName","questionFormArray","labelPosition","bottom"],["stepper",""],["formGroupName","0",3,"stepControl"],[1,"div-content",2,"display","flex"],[1,"div-img","show-img"],["src","./assets/images/image-step-1.png"],[1,"div-first-q-text"],[1,"mobile-step",2,"text-align","right","margin-bottom","10px","font-size","1em"],[1,"div-checklist-container"],[1,"main-heading-label"],[1,"second-heading-label"],["formControleName","about_business",1,"exercise-radio"],["name","about_business",3,"value","change",4,"ngFor","ngForOf"],[1,"adduser-actions",2,"justify-content","center"],["matStepperNext","",1,"adduser-actions__button","next",3,"disabled","click"],["src","assets/images/arrow-right.png",1,"arrow",2,"margin-top","unset"],["formGroupName","2",3,"stepControl"],[1,"div-img","show-img",2,"width","35%"],["src","./assets/images/company.png"],[1,"custom-input","div-resp"],[2,"margin-bottom","2em"],[2,"margin-bottom","10px"],["floatLabel","never","appearance","outline"],["matInput","","formControlName","businessName","maxlength","30",3,"placeholder"],["matInput","","formControlName","zipcode",3,"mask","placeholder"],["matInput","","formControlName","lastName","maxlength","30",3,"placeholder"],["matInput","","formControlName","firstName","maxlength","30",3,"placeholder"],[1,"adduser-actions",2,"margin-top","2em"],["matStepperPrevious","",1,"adduser-actions__button","back",3,"click"],["src","assets/images/arrow-left.png",1,"arrow-left",2,"margin-top","unset"],["formGroupName","3",3,"stepControl"],["src","./assets/images/account.png"],[2,"margin-bottom","1em","display","flex","flex-direction","column"],[2,"margin-bottom","25px"],["matInput","","autofocus","","formControlName","email",3,"placeholder","input"],[1,"text-danger"],["matInput","","minlength","6","formControlName","password",3,"type","placeholder","input"],["matSuffix","",3,"click"],["class","text-danger",4,"ngIf"],["matInput","","formControlName","confirm",3,"placeholder","type","input","paste"],[1,"adduser-actions",2,"margin-top","3em"],[1,"div-resp"],["cellspacing","0"],[1,"label-key"],[2,"overflow-wrap","anywhere"],["matStepperNext","",1,"adduser-actions__button","next",3,"click"],["name","about_business",3,"value","change"],[1,"div-radio"],[1,"exercise-radio-select"]],template:function(t,e){1&t&&(Po(0,"app-nav-menu"),Eo(1,Lk,190,129,"div",0),Eo(2,Mk,1,0,"mat-spinner",0)),2&t&&(Qs(1),Ao("ngIf",!e.loadSpinner),Qs(1),Ao("ngIf",e.loadSpinner))},directives:[xk,Rh,vy,$_,Sy,Ww,Ay,Hw,Ey,uC,Ih,Zw,yv,Ov,g_,H_,Iy,Ly,mS,Qw,sv,Ry,vw,dv,gC,Qv],pipes:[eS],styles:[".div-container[_ngcontent-%COMP%]{width:85%;justify-content:center;display:flex;margin:2vh auto auto}.div-container[_ngcontent-%COMP%] .desktop-step[_ngcontent-%COMP%]{display:block;font-size:1.2em;color:#125ccb;font-weight:500}.div-container[_ngcontent-%COMP%] .mobile-step[_ngcontent-%COMP%]{display:none;font-size:1em;color:#125ccb;font-weight:500}.div-img[_ngcontent-%COMP%]{min-width:45%;margin-bottom:5%;height:auto;display:flex;flex-direction:column}.div-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto;width:90%;height:auto}.main-heading-label[_ngcontent-%COMP%]{font-size:2vw;margin-bottom:15px;display:block;font-weight:500;text-align:left}.second-heading-label[_ngcontent-%COMP%]{font-size:1.2vw;margin-bottom:10px;display:block;text-align:left}.adduser-actions__button[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;width:9em;height:45px;border-radius:25px;cursor:pointer;font-family:Noto Sans JP,sans-serif;font-weight:300;line-height:40px;font-size:1.2vw;text-align:center}.adduser-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%!important;padding:0}.adduser-actions[_ngcontent-%COMP%] .next[_ngcontent-%COMP%]{background-color:#125ccb!important;color:#fff;border:none}.adduser-actions[_ngcontent-%COMP%] .next[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1em;margin-left:10px}.adduser-actions[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{border:1px solid #125ccb;color:#125ccb;background-color:#fff}.adduser-actions[_ngcontent-%COMP%] .back[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1em;margin-right:10px}.adduser-actions[_ngcontent-%COMP%] .next[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.div-first-q-text[_ngcontent-%COMP%]{font-family:Montserrat;font-size:2.2em;font-weight:600;background-image:linear-gradient(150deg,#15c 23%,#17428d 93%);color:#fff;width:90%;text-align:center;padding:5% 0;min-height:8rem;margin:auto;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.div-first-q-text[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{padding:2%;display:inline-block;line-height:2;font-weight:100}.div-checklist-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #dddce0;width:80%;border-radius:30px;box-shadow:0 4px 10px 0 #0000000d;padding:30px;height:60vh}.div-checklist-container[_ngcontent-%COMP%] .adduser-actions[_ngcontent-%COMP%]{width:100%!important;justify-content:space-between}.priorities[_ngcontent-%COMP%]{width:30vw}.exercise-radio[_ngcontent-%COMP%]{flex-direction:column;display:flex;margin-top:1.5em;min-height:38vh}.exercise-radio[_ngcontent-%COMP%] .mat-radio-container[_ngcontent-%COMP%]{display:none}.exercise-radio[_ngcontent-%COMP%] .mat-radio-label[_ngcontent-%COMP%]{justify-content:center!important}.exercise-radio[_ngcontent-%COMP%] .mat-radio-checked[_ngcontent-%COMP%] .exercise-radio-select[_ngcontent-%COMP%]{border:2px solid #125ccb;color:#125ccb;font-weight:600}.exercise-radio[_ngcontent-%COMP%] .mat-radio-checked[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#125ccb}.exercise-radio[_ngcontent-%COMP%] .div-radio[_ngcontent-%COMP%]{border:none;margin:3px 0}.exercise-radio[_ngcontent-%COMP%] .exercise-radio-select[_ngcontent-%COMP%]{display:inline-block;background-color:#eff3f9;border-radius:30px;height:auto;width:20em;justify-content:center;color:#434343;cursor:pointer}.exercise-radio[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .exercise-radio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.1em;float:left;margin:2vh 3vw;cursor:pointer}.checkedDiv[_ngcontent-%COMP%]{background-color:#125ccb!important;color:#fff}.checkedDiv[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff}.div-dropdown[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;border:1px solid #dddce0;border-radius:30px;box-shadow:0 4px 10px 0 #0000000d;padding:30px;height:60vh}.div-wrap[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:start;margin:3em 10em 0}.div-wrap[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2.5em}.div-wrap[_ngcontent-%COMP%] .div-text[_ngcontent-%COMP%]{float:right;margin-left:2vw;text-align:left}.div-wrap[_ngcontent-%COMP%] .div-text[_ngcontent-%COMP%] .first[_ngcontent-%COMP%]{font-size:1.4em;margin-bottom:15px}.div-resp[_ngcontent-%COMP%]{border:1px solid #dddce0;border-radius:30px;box-shadow:0 4px 10px 0 #0000000d;padding:30px;height:65vh;width:65%;text-align:center}.div-resp[_ngcontent-%COMP%] mat-error[_ngcontent-%COMP%]{margin-top:5px!important}table[_ngcontent-%COMP%]{width:80%;margin:auto}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:7vh;color:#999;font-size:.9em}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;width:50%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{color:#434343!important;font-weight:500}.show-img[_ngcontent-%COMP%]{margin:auto}@media only screen and (min-height:1000px){.main-heading-label[_ngcontent-%COMP%]{font-size:2em!important}.second-heading-label[_ngcontent-%COMP%]{font-size:1.6em!important;margin-bottom:10%!important}table[_ngcontent-%COMP%]{width:60%!important;margin:auto}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{font-size:1.4em!important}.next[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:.9em!important;margin-left:15px!important}.exercise-radio-select[_ngcontent-%COMP%]{width:60vw!important}.adduser-actions[_ngcontent-%COMP%] .adduser-actions__button[_ngcontent-%COMP%]{width:10.5em!important;max-width:11em!important;font-size:1.4em!important;height:2.8em;border-radius:30px}.exercise-radio[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .exercise-radio[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .mobile-step[_ngcontent-%COMP%] label[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-size:1.4em!important}.div-resp[_ngcontent-%COMP%]{width:95%!important}}@media only screen and (max-width:700px),only screen and (min-height:1000px){.show-img[_ngcontent-%COMP%]{display:none!important}.next[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:.9em!important;margin-left:5px!important}.main-heading-label[_ngcontent-%COMP%]{font-size:1.6em}.second-heading-label[_ngcontent-%COMP%]{font-size:1em;margin-bottom:15px}.back[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:.9em!important;margin-right:5px!important}h3[_ngcontent-%COMP%]{margin-top:2em;margin-bottom:0;padding-left:5%!important}table[_ngcontent-%COMP%]{width:100%}.div-content[_ngcontent-%COMP%]{flex-direction:column}.div-checklist-container[_ngcontent-%COMP%]{height:auto;margin:auto;border:none;box-shadow:none}.div-container[_ngcontent-%COMP%]{width:100%!important;flex-direction:column;overflow-x:hidden;margin-top:0}.div-container[_ngcontent-%COMP%] .desktop-step[_ngcontent-%COMP%]{display:none}.div-container[_ngcontent-%COMP%] .mobile-step[_ngcontent-%COMP%]{display:block}.div-container[_ngcontent-%COMP%] .div-img[_ngcontent-%COMP%]{width:100%!important;margin-top:20px;height:auto!important}.div-container[_ngcontent-%COMP%] .div-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100vw!important;width:100%}.div-container[_ngcontent-%COMP%] .div-img[_ngcontent-%COMP%] .div-first-q-text[_ngcontent-%COMP%]{max-width:100vw!important;width:100%;font-size:2em}.div-container[_ngcontent-%COMP%] .div-stepper[_ngcontent-%COMP%]{width:100%!important}.div-container[_ngcontent-%COMP%] .exercise-radio[_ngcontent-%COMP%]{margin:inherit!important}.div-container[_ngcontent-%COMP%] .div-resp[_ngcontent-%COMP%]{margin-left:0;width:85%;padding:20px;height:auto;border:none;box-shadow:none}.div-container[_ngcontent-%COMP%] .div-resp[_ngcontent-%COMP%] .exercise-radio-select[_ngcontent-%COMP%]{width:103%!important;min-width:unset!important}.div-container[_ngcontent-%COMP%] .adduser-actions[_ngcontent-%COMP%]{width:100%!important}.div-container[_ngcontent-%COMP%] .adduser-actions[_ngcontent-%COMP%] .adduser-actions__button[_ngcontent-%COMP%]{width:7.5em;max-width:8.9em;font-size:1em}.div-container[_ngcontent-%COMP%] .exercise-radio-select[_ngcontent-%COMP%]{width:15em}.div-container[_ngcontent-%COMP%] .exercise-radio[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .div-container[_ngcontent-%COMP%] .exercise-radio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.1em}.div-container[_ngcontent-%COMP%] .div-dropdown[_ngcontent-%COMP%]{flex-direction:column;margin-left:0!important;margin-top:20px;padding:30px 20px;height:auto}.div-container[_ngcontent-%COMP%] .div-dropdown[_ngcontent-%COMP%] .mat-radio-button[_ngcontent-%COMP%]{width:22%!important}.div-container[_ngcontent-%COMP%] .div-dropdown[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important}.div-container[_ngcontent-%COMP%] .div-dropdown[_ngcontent-%COMP%] .question-container[_ngcontent-%COMP%]{height:auto!important}.div-container[_ngcontent-%COMP%] .div-dropdown[_ngcontent-%COMP%] .question-text[_ngcontent-%COMP%]{margin-bottom:5px!important}.div-container[_ngcontent-%COMP%] .div-wrap[_ngcontent-%COMP%]{margin:3em auto 0}}@media only screen and (max-width:330px){.adduser-actions__button[_ngcontent-%COMP%]{min-width:8.9em!important;font-size:11px!important}.exercise-radio-select[_ngcontent-%COMP%]{width:13em!important}.div-dropdown[_ngcontent-%COMP%] .mat-radio-button[_ngcontent-%COMP%]{width:29%!important}}"]}),t})();const Fk=[{id:1,stepEN:"Register",stepJP:"\u767b\u9332\u3059\u308b"},{id:2,stepEN:"Verify Email",stepJP:"E\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u307e\u3059"},{id:3,stepEN:"Purchase",stepJP:"\u8cfc\u5165"},{id:4,stepEN:"Add Users",stepJP:"\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b"}];function Vk(t,e){1&t&&(To(0,"label",17),ua(1,"Register"),Io())}function jk(t,e){1&t&&(To(0,"label",17),ua(1,"\u767b\u9332\u3059\u308b"),Io())}function Bk(t,e){1&t&&(To(0,"label",17),ua(1,"Verify Email"),Io())}function Uk(t,e){1&t&&(To(0,"label",17),ua(1,"E\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u307e\u3059"),Io())}function zk(t,e){1&t&&(To(0,"label"),ua(1,"Purchase"),Io())}function Hk(t,e){1&t&&(To(0,"label"),ua(1,"\u8cfc\u5165"),Io())}function $k(t,e){1&t&&(To(0,"label"),ua(1,"Add Users"),Io())}function qk(t,e){1&t&&(To(0,"label"),ua(1,"\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b"),Io())}let Wk=(()=>{class t{constructor(t){this.translate=t,this.steps=[],this.steps=Fk,this.curlang=localStorage.getItem("language"),this.translate.setDefaultLang(this.curlang)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(ko(tS))},t.\u0275cmp=Wt({type:t,selectors:[["app-success"]],decls:44,vars:17,consts:[[2,"text-align","center","margin","5em auto 0","font-family","Roboto","padding","0 20px"],["src","assets/images/registered.png",2,"width","8em"],[2,"margin-top","1em"],[2,"font-size","1.2em","color","#434343","font-weight","600"],[2,"margin-top","3em"],[1,"div-steps"],[1,"div-step-container"],["src","assets/images/completed.png",2,"width","inherit"],["class","label-done",4,"ngIf"],[1,"div-line"],[2,"border","1.5px solid #58CB12"],["src","assets/images/current.png",2,"width","inherit"],["src","assets/images/upcoming.png",2,"width","inherit"],[4,"ngIf"],[2,"font-size","1.2em","color","#000","font-weight","400"],[2,"margin-top","2em"],[2,"font-size","1em","color","#5E5E5E","font-weight","400"],[1,"label-done"]],template:function(t,e){1&t&&(Po(0,"app-nav-menu"),To(1,"div",0),To(2,"div"),Po(3,"img",1),Io(),To(4,"div",2),To(5,"label",3),ua(6),jl(7,"translate"),Io(),Io(),To(8,"div",4),To(9,"div",5),To(10,"div",6),To(11,"span"),Po(12,"img",7),Io(),Eo(13,Vk,2,0,"label",8),Eo(14,jk,2,0,"label",8),Io(),To(15,"div",9),Po(16,"div",10),Io(),To(17,"div",6),To(18,"span"),Po(19,"img",11),Io(),Eo(20,Bk,2,0,"label",8),Eo(21,Uk,2,0,"label",8),Io(),To(22,"div",9),Po(23,"div"),Io(),To(24,"div",6),To(25,"span"),Po(26,"img",12),Io(),Eo(27,zk,2,0,"label",13),Eo(28,Hk,2,0,"label",13),Io(),To(29,"div",9),Po(30,"div"),Io(),To(31,"div",6),To(32,"span"),Po(33,"img",12),Io(),Eo(34,$k,2,0,"label",13),Eo(35,qk,2,0,"label",13),Io(),Io(),Io(),To(36,"div",4),To(37,"label",14),ua(38),jl(39,"translate"),Io(),Io(),To(40,"div",15),To(41,"label",16),ua(42),jl(43,"translate"),Io(),Io(),Io()),2&t&&(Qs(6),da(Bl(7,11,"SUCCESS.THANK_YOU")),Qs(7),Ao("ngIf","jp"!=e.curlang),Qs(1),Ao("ngIf","jp"==e.curlang),Qs(6),Ao("ngIf","jp"!=e.curlang),Qs(1),Ao("ngIf","jp"==e.curlang),Qs(6),Ao("ngIf","jp"!=e.curlang),Qs(1),Ao("ngIf","jp"==e.curlang),Qs(6),Ao("ngIf","jp"!=e.curlang),Qs(1),Ao("ngIf","jp"==e.curlang),Qs(3),da(Bl(39,13,"SUCCESS.VERIFY")),Qs(4),da(Bl(43,15,"SUCCESS.SPAM")))},directives:[xk,Rh],pipes:[eS],styles:["@media only screen and (max-width:500px){div[_ngcontent-%COMP%]{font-size:1em!important}.adduser-actions[_ngcontent-%COMP%]{margin-top:3em!important}.div-steps[_ngcontent-%COMP%]{width:95%!important}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:1.5em!important}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.8em!important}}.div-steps[_ngcontent-%COMP%]{overflow:hidden;display:flex;margin:0 auto;width:42vw;text-align:center}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%]{float:left;min-width:12%;max-width:18%;position:relative;z-index:10}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:100%;width:2vw;display:block;margin:0 auto 10px}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.9em;color:#b1b1b1;font-size:600}.div-steps[_ngcontent-%COMP%] .div-step-container[_ngcontent-%COMP%] .label-done[_ngcontent-%COMP%]{color:#434343}.div-steps[_ngcontent-%COMP%] .div-line[_ngcontent-%COMP%]{margin:0 auto;width:6vw;float:left}.div-steps[_ngcontent-%COMP%] .div-line[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block;width:inherit;border:1.5px solid #b8b8b8;height:0}"]}),t})();n("CxY0");const Gk=new Yn("JWT_OPTIONS");let Zk=(()=>{let t=class{constructor(t=null){this.tokenGetter=t&&t.tokenGetter||function(){}}urlBase64Decode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(e)}b64decode(t){let e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,i,s=0,r=0;i=t.charAt(r++);~i&&(n=s%4?64*n+i:i,s++%4)?e+=String.fromCharCode(255&n>>(-2*s&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return e}b64DecodeUnicode(t){return decodeURIComponent(Array.prototype.map.call(this.b64decode(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(t=this.tokenGetter()){if(!t||""===t)return null;const e=t.split(".");if(3!==e.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=this.urlBase64Decode(e[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}getTokenExpirationDate(t=this.tokenGetter()){let e;if(e=this.decodeToken(t),!e||!e.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(e.exp),n}isTokenExpired(t=this.tokenGetter(),e){if(!t||""===t)return!0;const n=this.getTokenExpirationDate(t);return e=e||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*e)}getAuthScheme(t,e){return"function"==typeof t?t(e):t}};return t.\u0275fac=function(e){return new(e||t)(mi(Gk))},t.\u0275prov=ft({token:t,factory:function(e){return t.\u0275fac(e)}}),t=function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}([(0,e=vi(Gk),function(t,n){e(t,n,0)}),oS("design:paramtypes",[Object])],t),t;var e})();function Kk(t,e){1&t&&(To(0,"div",5),ua(1),jl(2,"translate"),Io()),2&t&&(Qs(1),pa(" ",Bl(2,1,"LABELS.EMAIL_VERIFIED")," "))}function Qk(t,e){1&t&&(To(0,"div",5),ua(1),jl(2,"translate"),Io()),2&t&&(Qs(1),pa(" ",Bl(2,1,"LABELS.RESEND_LINK")," "))}function Yk(t,e){if(1&t){const t=Mo();To(0,"div",6),To(1,"button",7),Vo("click",function(){return Ne(t),Ho(2).goToPlan()}),ua(2),jl(3,"translate"),Po(4,"img",8),Io(),Io()}2&t&&(Qs(2),pa("",Bl(3,1,"BUTTONS.NEXT")," "))}function Xk(t,e){if(1&t&&(To(0,"div",5),ua(1),Io()),2&t){const t=Ho(2);Qs(1),pa(" ",t.errMessage," ")}}function Jk(t,e){if(1&t){const t=Mo();To(0,"div",6),To(1,"button",7),Vo("click",function(){return Ne(t),Ho(2).goToLogin()}),ua(2),jl(3,"translate"),Po(4,"img",8),Io(),Io()}2&t&&(Qs(2),pa("",Bl(3,1,"BUTTONS.SIGNIN")," "))}function tA(t,e){if(1&t){const t=Mo();To(0,"div",6),To(1,"button",7),Vo("click",function(){return Ne(t),Ho(2).resend()}),ua(2),jl(3,"translate"),Po(4,"img",8),Io(),Io()}2&t&&(Qs(2),pa("",Bl(3,1,"BUTTONS.RESEND")," "))}function eA(t,e){if(1&t&&(To(0,"div",2),Eo(1,Kk,3,3,"div",3),Eo(2,Qk,3,3,"div",3),Eo(3,Yk,5,3,"div",4),Eo(4,Xk,2,1,"div",3),Eo(5,Jk,5,3,"div",4),Eo(6,tA,5,3,"div",4),Io()),2&t){const t=Ho();Qs(1),Ao("ngIf",t.success),Qs(1),Ao("ngIf",t.resendSuccess),Qs(1),Ao("ngIf",1===t.status),Qs(1),Ao("ngIf",!t.success&&(2===t.status||0===t.status)),Qs(1),Ao("ngIf",!t.success&&2===t.status),Qs(1),Ao("ngIf",!t.success&&0===t.status)}}function nA(t,e){1&t&&Po(0,"mat-spinner",9)}const iA=[{path:"",component:Nk},{path:"success",component:Wk},{path:"email-verification",component:(()=>{class t{constructor(t,e,n,i){this.route=t,this.service=e,this.router=n,this.translate=i,this.errMessage="",this.loadSpinner=!1,this.domain="",this.resendSuccess=!1}ngOnInit(){setTimeout(()=>{this.route.queryParams.subscribe(t=>{if(t.code&&t.token){this.code=t.code,this.token=t.token,localStorage.setItem("origin",t.origin);const e="ja"===t.origin?"jp":"en";localStorage.setItem("language",e),this.translate.setDefaultLang(e),this.translate.use(e),this.domain="ja"===t.origin?yk:_k,this.verifyEmail()}})},0)}verifyEmail(){this.loadSpinner=!0,this.service.emailVerification(this.code).subscribe(t=>{this.status=t.status,1===this.status?(this.loadSpinner=!1,this.success=!0):(this.loadSpinner=!1,this.success=!1,this.errMessage=t.message)},t=>{this.loadSpinner=!1,this.success=!1,this.errMessage=t.error.message})}goToPlan(){window.location.href=this.domain+`?token=${this.token}&action=register-login`}goToLogin(){window.location.href=this.domain+"my-account/"}resend(){this.loadSpinner=!0,this.resendSuccess=!1,this.success=!1;const t=new Zk;this.errMessage="";const e=t.decodeToken(this.code);this.service.resendLink({emailId:e.email}).subscribe(t=>{this.status=t.status,1===this.status?(this.loadSpinner=!1,this.resendSuccess=!0):(this.loadSpinner=!1,this.success=!1,this.errMessage=t.message)},t=>{this.loadSpinner=!1,this.success=!1,this.errMessage=t.error.message})}}return t.\u0275fac=function(e){return new(e||t)(ko(Ix),ko(Ak),ko(QE),ko(tS))},t.\u0275cmp=Wt({type:t,selectors:[["app-verify-email"]],decls:3,vars:2,consts:[["style","text-align: center;margin: 8em auto 0;padding: 0 20px;",4,"ngIf"],["class","spinner","style","margin-left: 50%;\ntop: 35vh;",4,"ngIf"],[2,"text-align","center","margin","8em auto 0","padding","0 20px"],["style","font-family: Roboto;font-size: 3em;",4,"ngIf"],["class","adduser-actions","style","justify-content: center;",4,"ngIf"],[2,"font-family","Roboto","font-size","3em"],[1,"adduser-actions",2,"justify-content","center"],[1,"adduser-actions__button","next",3,"click"],["src","assets/images/arrow-right.png",1,"arrow",2,"margin-top","unset"],[1,"spinner",2,"margin-left","50%","top","35vh"]],template:function(t,e){1&t&&(Po(0,"app-nav-menu"),Eo(1,eA,7,6,"div",0),Eo(2,nA,1,0,"mat-spinner",1)),2&t&&(Qs(1),Ao("ngIf",!e.loadSpinner),Qs(1),Ao("ngIf",e.loadSpinner))},directives:[xk,Rh,Qv],pipes:[eS],styles:[".adduser-actions__button[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;width:9em;height:40px;border-radius:25px;cursor:pointer;font-family:Noto Sans JP,sans-serif;font-weight:300;line-height:40px;font-size:1em!important;text-align:center}.adduser-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:auto!important;margin:5% 0;padding:0}.adduser-actions[_ngcontent-%COMP%] .next[_ngcontent-%COMP%]{background-color:#125ccb!important;color:#fff;border:none}.adduser-actions[_ngcontent-%COMP%] .next[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1em;margin-left:10px}@media only screen and (max-width:500px){div[_ngcontent-%COMP%]{font-size:1em!important}.adduser-actions[_ngcontent-%COMP%]{margin-top:3em!important}mat-spinner[_ngcontent-%COMP%]{left:0!important;right:20%}}"]}),t})()},{path:"failed",component:Ek}];let sA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[ak.forRoot(iA)],ak]}),t})(),rA=(()=>{class t{constructor(){this.title="customerRegistration"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&Po(0,"router-outlet")},directives:[YE],styles:[""]}),t})();function oA(t){return new rS(t,"assets/i18n/")}let aA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t,bootstrap:[rA]}),t.\u0275inj=mt({providers:[],imports:[[bu,sS,gS.forRoot(),Xw,nS.forRoot({loader:{provide:NC,useFactory:oA,deps:[Hb]}}),sA]]}),t})();(function(){if(Uc)throw new Error("Cannot enable prod mode after platform setup.");Bc=!1})(),yu().bootstrapModule(aA).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);