diff --git a/docs/404.html b/docs/404.html index 0c7fecb..ed71c12 100644 --- a/docs/404.html +++ b/docs/404.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0c7fecb..ed71c12 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/docs/main.b0653128d21e7efc.js b/docs/main.568f05c94fb83e1e.js similarity index 93% rename from docs/main.b0653128d21e7efc.js rename to docs/main.568f05c94fb83e1e.js index a5bf111..cfe8454 100644 --- a/docs/main.b0653128d21e7efc.js +++ b/docs/main.568f05c94fb83e1e.js @@ -1 +1 @@ -"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[179],{432:()=>{function rr(e){return"function"==typeof e}let Vi=!1;const Et={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Vi&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Vi=e},get useDeprecatedSynchronousErrorHandling(){return Vi}};function On(e){setTimeout(()=>{throw e},0)}const as={closed:!0,next(e){},error(e){if(Et.useDeprecatedSynchronousErrorHandling)throw e;On(e)},complete(){}},Li=Array.isArray||(e=>e&&"number"==typeof e.length);function wu(e){return null!==e&&"object"==typeof e}const us=(()=>{function e(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e})();class ge{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ge)n.remove(this);else if(null!==n)for(let s=0;st.concat(n instanceof us?n.errors:n),[])}ge.EMPTY=((e=new ge).closed=!0,e);const ls="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class se extends ge{constructor(t,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=as;break;case 1:if(!t){this.destination=as;break}if("object"==typeof t){t instanceof se?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new sh(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new sh(this,t,n,r)}}[ls](){return this}static create(t,n,r){const i=new se(t,n,r);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 sh extends se{constructor(t,n,r,i){super(),this._parentSubscriber=t;let o,s=this;rr(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==as&&(s=Object.create(n),rr(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=r,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Et.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Et;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):On(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;On(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const n=()=>this._complete.call(this._context);Et.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,n){try{t.call(this._context,n)}catch(r){if(this.unsubscribe(),Et.useDeprecatedSynchronousErrorHandling)throw r;On(r)}}__tryOrSetError(t,n,r){if(!Et.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return Et.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(On(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ji="function"==typeof Symbol&&Symbol.observable||"@@observable";function cs(e){return e}let ae=(()=>{class e{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:o}=this,s=function JC(e,t,n){if(e){if(e instanceof se)return e;if(e[ls])return e[ls]()}return e||t||n?new se(e,t,n):new se(as)}(n,r,i);if(s.add(o?o.call(s,this.source):this.source||Et.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Et.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Et.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function YC(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof se?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=uh(r))((i,o)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){o(u),s&&s.unsubscribe()}},o,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[ji](){return this}pipe(...n){return 0===n.length?this:function ah(e){return 0===e.length?cs:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=uh(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function uh(e){if(e||(e=Et.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const Ar=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class XC extends ge{constructor(t,n){super(),this.subject=t,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,n=t.observers;if(this.subject=null,!n||0===n.length||t.isStopped||t.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class lh extends se{constructor(t){super(t),this.destination=t}}let Xe=(()=>{class e extends ae{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ls](){return new lh(this)}lift(n){const r=new ch(this,this);return r.operator=n,r}next(n){if(this.closed)throw new Ar;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let s=0;snew ch(t,n),e})();class ch extends Xe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){const{destination:n}=this;n&&n.next&&n.next(t)}error(t){const{destination:n}=this;n&&n.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:n}=this;return n?this.source.subscribe(t):ge.EMPTY}}function xr(e){return e&&"function"==typeof e.schedule}function Q(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new ew(e,t))}}class ew{constructor(t,n){this.project=t,this.thisArg=n}call(t,n){return n.subscribe(new tw(t,this.project,this.thisArg))}}class tw extends se{constructor(t,n,r){super(t),this.project=n,this.count=0,this.thisArg=r||this}_next(t){let n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const dh=e=>t=>{for(let n=0,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function hh(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const Eu=e=>{if(e&&"function"==typeof e[ji])return(e=>t=>{const n=e[ji]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(fh(e))return dh(e);if(hh(e))return(e=>t=>(e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,On),t))(e);if(e&&"function"==typeof e[ds])return(e=>t=>{const n=e[ds]();for(;;){let r;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const n=`You provided ${wu(e)?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Mu(e,t){return new ae(n=>{const r=new ge;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function je(e,t){return t?function dw(e,t){if(null!=e){if(function lw(e){return e&&"function"==typeof e[ji]}(e))return function sw(e,t){return new ae(n=>{const r=new ge;return r.add(t.schedule(()=>{const i=e[ji]();r.add(i.subscribe({next(o){r.add(t.schedule(()=>n.next(o)))},error(o){r.add(t.schedule(()=>n.error(o)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(hh(e))return function aw(e,t){return new ae(n=>{const r=new ge;return r.add(t.schedule(()=>e.then(i=>{r.add(t.schedule(()=>{n.next(i),r.add(t.schedule(()=>n.complete()))}))},i=>{r.add(t.schedule(()=>n.error(i)))}))),r})}(e,t);if(fh(e))return Mu(e,t);if(function cw(e){return e&&"function"==typeof e[ds]}(e)||"string"==typeof e)return function uw(e,t){if(!e)throw new Error("Iterable cannot be null");return new ae(n=>{const r=new ge;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[ds](),r.add(t.schedule(function(){if(n.closed)return;let o,s;try{const a=i.next();o=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(o),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof ae?e:new ae(Eu(e))}class fs extends se{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 hs extends se{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ps(e,t){if(t.closed)return;if(e instanceof ae)return e.subscribe(t);let n;try{n=Eu(e)(t)}catch(r){t.error(r)}return n}function Be(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Be((i,o)=>je(e(i,o)).pipe(Q((s,a)=>t(i,s,o,a))),n)):("number"==typeof t&&(n=t),r=>r.lift(new fw(e,n)))}class fw{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new hw(t,this.project,this.concurrent))}}class hw extends hs{constructor(t,n,r=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=r,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 Bi(e=Number.POSITIVE_INFINITY){return Be(cs,e)}function Tu(e,t){return t?Mu(e,t):new ae(dh(e))}function Su(){return function(t){return t.lift(new gw(t))}}class gw{constructor(t){this.connectable=t}call(t,n){const{connectable:r}=this;r._refCount++;const i=new mw(t,r),o=n.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class mw extends se{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=t._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class ph extends ae{constructor(t,n){super(),this.source=t,this.subjectFactory=n,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 ge,t.add(this.source.subscribe(new _w(this.getSubject(),this))),t.closed&&(this._connection=null,t=ge.EMPTY)),t}refCount(){return Su()(this)}}const yw=(()=>{const e=ph.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class _w extends lh{constructor(t,n){super(t),this.connectable=n}_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 n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}class bw{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(t);return o.add(n.subscribe(i)),o}}function Cw(){return new Xe}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function Iu(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Au(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ew=re({__forward_ref__:re});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return J(this())},e}function V(e){return gh(e)?e():e}function gh(e){return"function"==typeof e&&e.hasOwnProperty(Ew)&&e.__forward_ref__===ue}class z extends Error{constructor(t,n){super(function xu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function He(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}function gs(e,t){const n=t?` in ${t}`:"";throw new z(-201,`No provider for ${He(e)} found${n}`)}function ht(e,t){null==e&&function de(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Nu(e){return mh(e,ms)||mh(e,_h)}function mh(e,t){return e.hasOwnProperty(t)?e[t]:null}function yh(e){return e&&(e.hasOwnProperty(Ru)||e.hasOwnProperty(Nw))?e[Ru]:null}const ms=re({\u0275prov:re}),Ru=re({\u0275inj:re}),_h=re({ngInjectableDef:re}),Nw=re({ngInjectorDef:re});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let Fu;function Pn(e){const t=Fu;return Fu=e,t}function vh(e,t,n){const r=Nu(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&O.Optional?null:void 0!==t?t:void gs(J(e),"Injector")}function kn(e){return{toString:e}.toString()}var Vt=(()=>((Vt=Vt||{})[Vt.OnPush=0]="OnPush",Vt[Vt.Default=1]="Default",Vt))(),Yt=(()=>(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Yt||(Yt={})),Yt))();const Fw="undefined"!=typeof globalThis&&globalThis,Ow="undefined"!=typeof window&&window,Pw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne=Fw||"undefined"!=typeof global&&global||Ow||Pw,Nr={},ie=[],ys=re({\u0275cmp:re}),Ou=re({\u0275dir:re}),Pu=re({\u0275pipe:re}),Dh=re({\u0275mod:re}),gn=re({\u0275fac:re}),Hi=re({__NG_ELEMENT_ID__:re});let kw=0;function Jt(e){return kn(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Vt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Yt.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=kw++,r.inputs=Eh(e.inputs,n),r.outputs=Eh(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(bh):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ch):null,r})}function bh(e){return ze(e)||function Vn(e){return e[Ou]||null}(e)}function Ch(e){return function ir(e){return e[Pu]||null}(e)}const wh={};function Ue(e){return kn(()=>{const t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(wh[e.id]=e.type),t})}function Eh(e,t){if(null==e)return Nr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const M=Jt;function Z(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ze(e){return e[ys]||null}function Mt(e,t){const n=e[Dh]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}const L=11;function Xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function jt(e){return Array.isArray(e)&&!0===e[1]}function Lu(e){return 0!=(8&e.flags)}function bs(e){return 2==(2&e.flags)}function Cs(e){return 1==(1&e.flags)}function Bt(e){return null!==e.template}function Uw(e){return 0!=(512&e[2])}function ur(e,t){return e.hasOwnProperty(gn)?e[gn]:null}class qw{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ve(){return Th}function Th(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ww),zw}function zw(){const e=Ih(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Nr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ww(e,t,n,r){const i=Ih(e)||function Kw(e,t){return e[Sh]=t}(e,{previous:Nr,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new qw(u&&u.currentValue,t,s===Nr),e[r]=t}Ve.ngInherit=!0;const Sh="__ngSimpleChanges__";function Ih(e){return e[Sh]||null}let $u;function _e(e){return!!e.listen}const Ah={createRenderer:(e,t)=>function Gu(){return void 0!==$u?$u:"undefined"!=typeof document?document:void 0}()};function Me(e){for(;Array.isArray(e);)e=e[0];return e}function ws(e,t){return Me(t[e])}function It(e,t){return Me(t[e.index])}function qu(e,t){return e.data[t]}function kr(e,t){return e[t]}function gt(e,t){const n=t[e];return Xt(n)?n:n[0]}function zu(e){return 128==(128&e[2])}function Ln(e,t){return null==t?null:e[t]}function Nh(e){e[18]=0}function Wu(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const R={lFrame:Bh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rh(){return R.bindingsEnabled}function _(){return R.lFrame.lView}function W(){return R.lFrame.tView}function xe(){let e=Oh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Oh(){return R.lFrame.currentTNode}function en(e,t){const n=R.lFrame;n.currentTNode=e,n.isParent=t}function Ku(){return R.lFrame.isParent}function Qu(){R.lFrame.isParent=!1}function Es(){return R.isInCheckNoChangesMode}function Ms(e){R.isInCheckNoChangesMode=e}function et(){const e=R.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vr(){return R.lFrame.bindingIndex++}function dE(e,t){const n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zu(t)}function Zu(e){R.lFrame.currentDirectiveIndex=e}function Ju(e){R.lFrame.currentQueryIndex=e}function hE(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Lh(e,t,n){if(n&O.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&O.Host||(i=hE(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=R.lFrame=jh();return r.currentTNode=t,r.lView=e,!0}function Ts(e){const t=jh(),n=e[1];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jh(){const e=R.lFrame,t=null===e?null:e.child;return null===t?Bh(e):t}function Bh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hh(){const e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Uh=Hh;function Ss(){const e=Hh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tt(){return R.lFrame.selectedIndex}function jn(e){R.lFrame.selectedIndex=e}function Is(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class zi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ns(e,t,n){const r=_e(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let nl=!0;function Fs(e){const t=nl;return nl=e,t}let IE=0;function Ki(e,t){const n=il(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,rl(r.data,e),rl(t,null),rl(r.blueprint,null));const i=Os(e,t),o=e.injectorIndex;if(zh(i)){const s=Lr(i),a=jr(i,t),u=a[1].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function rl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function il(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ps(e,t,n){!function AE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Hi)&&(r=n[Hi]),null==r&&(r=n[Hi]=IE++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:NE:t}(n);if("function"==typeof o){if(!Lh(t,e,r))return r&O.Host?Qh(i,n,r):Zh(t,n,r,i);try{const s=o(r);if(null!=s||r&O.Optional)return s;gs(n)}finally{Uh()}}else if("number"==typeof o){let s=null,a=il(e,t),u=-1,l=r&O.Host?t[16][6]:null;for((-1===a||r&O.SkipSelf)&&(u=-1===a?Os(e,t):t[a+8],-1!==u&&ep(r,!1)?(s=t[1],a=Lr(u),t=jr(u,t)):a=-1);-1!==a;){const c=t[1];if(Xh(o,a,c.data)){const d=RE(a,t,n,s,r,l);if(d!==Jh)return d}u=t[a+8],-1!==u&&ep(r,t[1].data[a+8]===l)&&Xh(o,a,t)?(s=c,a=Lr(u),t=jr(u,t)):a=-1}}}return Zh(t,n,r,i)}const Jh={};function NE(){return new Br(xe(),_())}function RE(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],c=function ks(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,f=i?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(i){const h=s[u];if(h&&Bt(h)&&h.type===n)return u}return null}(a,s,n,null==r?bs(a)&&nl:r!=s&&0!=(3&a.type),i&O.Host&&o===a);return null!==c?Qi(t,s,c,a):Jh}function Qi(e,t,n,r){let i=e[n];const o=t.data;if(function wE(e){return e instanceof zi}(i)){const s=i;s.resolving&&function Mw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new z(-200,`Circular dependency in DI detected for ${e}${n}`)}(He(o[n]));const a=Fs(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Pn(s.injectImpl):null;Lh(e,r,O.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function bE(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Th(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&Pn(u),Fs(a),s.resolving=!1,Uh()}}return i}function Xh(e,t,n){return!!(n[t+(e>>5)]&1<{const t=ol(V(e));return t&&t()}:ur(e)}const Ur="__parameters__";function Gr(e,t,n){return kn(()=>{const r=function sl(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Ur)?u[Ur]:Object.defineProperty(u,Ur,{value:[]})[Ur];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class I{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const PE=new I("AnalyzeForEntryComponents");function tn(e,t){e.forEach(n=>Array.isArray(n)?tn(n,t):t(n))}function np(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Xi(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function LE(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ul(e,t){const n=qr(e,t);if(n>=0)return e[1|n]}function qr(e,t){return function op(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<({token:e})),-1),Hn=no(Gr("Optional"),8),ro=no(Gr("SkipSelf"),4);const Sp="__ngContext__";function Qe(e,t){e[Sp]=t}function Dl(e){const t=function lo(e){return e[Sp]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Cl(e){return e.ngOriginalError}function $0(e,...t){e.error(...t)}class co{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function U0(e){return e&&e.ngErrorLogger||$0}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Cl(t);for(;n&&Cl(n);)n=Cl(n);return n||null}}const X0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ne))();function rn(e){return e instanceof Function?e():e}var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();function El(e,t){return undefined(e,t)}function fo(e){const t=e[3];return jt(t)?t[3]:t}function Ml(e){return kp(e[13])}function Tl(e){return kp(e[4])}function kp(e){for(;null!==e&&!jt(e);)e=e[4];return e}function Qr(e,t,n,r,i){if(null!=r){let o,s=!1;jt(r)?o=r:Xt(r)&&(s=!0,r=r[0]);const a=Me(r);0===e&&null!==n?null==i?Up(t,n,a):lr(t,n,a,i||null,!0):1===e&&null!==n?lr(t,n,a,i||null,!0):2===e?function Qp(e,t,n){const r=zs(e,t);r&&function hM(e,t,n,r){_e(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function mM(e,t,n,r,i){const o=n[7];o!==Me(n)&&Qr(t,e,r,o,i);for(let a=10;a0&&(e[n-1][4]=r[4]);const o=Vs(e,10+t);!function oM(e,t){ho(e,t,t[L],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function jp(e,t){if(!(256&t[2])){const n=t[L];_e(n)&&n.destroyNode&&ho(e,t,n,3,null,null),function uM(e){let t=e[13];if(!t)return xl(e[1],e);for(;t;){let n=null;if(Xt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Xt(t)&&xl(t[1],t),t=t[3];null===t&&(t=e),Xt(t)&&xl(t[1],t),n=t&&t[4]}t=n}}(t)}}function xl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function fM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Jp(h,l,0)||2&r&&l!==f){if(Ht(r))return!1;s=!0}}}}else{if(!s&&!Ht(r)&&!Ht(u))return!1;if(s&&Ht(u))continue;s=!1,r=u|1&r}}return Ht(r)||s}function Ht(e){return 0==(1&e)}function bM(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Ht(s)&&(t+=ng(o,i),i=""),r=s,o=o||!Ht(r);n++}return""!==i&&(t+=ng(o,i)),t}const k={};function F(e){rg(W(),_(),tt()+e,Es())}function rg(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&As(t,o,n)}else{const o=e.preOrderHooks;null!==o&&xs(t,o,0,n)}jn(n)}function Qs(e,t){return e<<17|t<<2}function Ut(e){return e>>17&32767}function Pl(e){return 2|e}function _n(e){return(131068&e)>>2}function kl(e,t){return-131069&e|t<<2}function Vl(e){return 1|e}function pg(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&rg(e,t,20,Es()),n(r,i)}finally{jn(o)}}function mg(e,t,n){if(Lu(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,i,s)}}function Eg(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mg(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function tT(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Yl(n)}}function Yl(e){for(let r=Ml(e);null!==r;r=Tl(r))for(let i=10;i0&&Yl(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Yl(i)}}function uT(e,t){const n=gt(t,e),r=n[1];(function lT(e,t){for(let n=t.length;nPromise.resolve(null))();function xg(e){return e[7]||(e[7]=[])}function Ng(e){return e.cleanup||(e.cleanup=[])}function Fg(e,t){const n=e[9],r=n?n.get(co,null):null;r&&r.handleError(t)}function Og(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),tn([t],a=>this.processInjectorType(a,[],o)),this.records.set(nc,Xr(void 0,this));const s=this.records.get(rc);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:J(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,n=eo,r=O.Default){this.assertNotDestroyed();const i=up(this),o=Pn(void 0);try{if(!(r&O.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function MT(e){return"function"==typeof e||"object"==typeof e&&e instanceof I}(t)&&Nu(t);a=u&&this.injectableDefInScope(u)?Xr(oc(t),mo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&O.Self?kg():this.parent).get(t,n=r&O.Optional&&n===eo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[js]=s[js]||[]).unshift(J(t)),i)throw s;return function YE(e,t,n,r){const i=e[js];throw t[ap]&&i.unshift(t[ap]),e.message=function JE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=J(t);if(Array.isArray(t))i=t.map(J).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):J(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(qE,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[js]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Pn(o),up(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(J(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new z(205,!1)}processInjectorType(t,n,r){if(!(t=V(t)))return!1;let i=yh(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=yh(o)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(s);try{tn(i.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||ie))}}this.injectorDefTypes.add(s);const u=ur(s)||(()=>new s);this.records.set(s,Xr(u,mo));const l=i.providers;if(null!=l&&!a){const c=t;tn(l,d=>this.processProvider(d,c,l))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ei(t=V(t))?t:V(t&&t.provide);const o=function vT(e,t,n){return Bg(e)?Xr(void 0,e.useValue):Xr(jg(e),mo)}(t);if(ei(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Xr(void 0,mo,!0),s.factory=()=>dl(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===mo&&(n.value=mT,n.value=n.factory()),"object"==typeof n.value&&n.value&&function ET(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=V(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function oc(e){const t=Nu(e),n=null!==t?t.factory:ur(e);if(null!==n)return n;if(e instanceof I)throw new z(204,!1);if(e instanceof Function)return function _T(e){const t=e.length;if(t>0)throw Xi(t,"?"),new z(204,!1);const n=function Aw(e){const t=e&&(e[ms]||e[_h]);if(t){const n=function xw(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new z(204,!1)}function jg(e,t,n){let r;if(ei(e)){const i=V(e);return ur(i)||oc(i)}if(Bg(e))r=()=>V(e.useValue);else if(function bT(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...dl(e.deps||[]));else if(function DT(e){return!(!e||!e.useExisting)}(e))r=()=>E(V(e.useExisting));else{const i=V(e&&(e.useClass||e.provide));if(!function wT(e){return!!e.deps}(e))return ur(i)||oc(i);r=()=>new i(...dl(e.deps))}return r}function Xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bg(e){return null!==e&&"object"==typeof e&&WE in e}function ei(e){return"function"==typeof e}let rt=(()=>{class e{static create(n,r){var i;if(Array.isArray(n))return Vg({name:""},r,n,"");{const o=null!==(i=n.name)&&void 0!==i?i:"";return Vg({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=eo,e.NULL=new Pg,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>E(nc)}),e.__NG_ELEMENT_ID__=-1,e})();function FT(e,t){Is(Dl(e)[1],xe())}function X(e){let t=function Jg(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Bt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new z(903,"");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=uc(e.inputs),s.declaredInputs=uc(e.declaredInputs),s.outputs=uc(e.outputs);const a=i.hostBindings;a&&VT(e,a);const u=i.viewQuery,l=i.contentQueries;if(u&&PT(e,u),l&&kT(e,l),Iu(e.inputs,i.inputs),Iu(e.declaredInputs,i.declaredInputs),Iu(e.outputs,i.outputs),Bt(i)&&i.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Rs(i.hostAttrs,n=Rs(n,i.hostAttrs))}}(r)}function uc(e){return e===Nr?{}:e===ie?[]:e}function PT(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function kT(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function VT(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function sn(e,t,n){return e[t]=n}function Ze(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function me(e,t,n,r,i,o,s,a){const u=_(),l=W(),c=e+20,d=l.firstCreatePass?function GT(e,t,n,r,i,o,s,a,u){const l=t.consts,c=Zr(t,e,4,s||null,Ln(l,a));Ql(t,n,c,Ln(l,u)),Is(t,c);const d=c.tViews=Js(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,i,o,s):l.data[c];en(d,!1);const f=u[L].createComment("");Ws(l,u,f,d),Qe(f,u),Xs(u,u[c]=Ig(f,u,f,d)),Cs(d)&&Wl(l,u,d),null!=s&&Kl(u,d,a)}function m(e,t=O.Default){const n=_();return null===n?E(e,t):Yh(xe(),n,V(e),t)}function pc(){throw new Error("invalid")}function j(e,t,n){const r=_();return Ze(r,Vr(),t)&&function _t(e,t,n,r,i,o,s,a){const u=It(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Og(e,n,c,r,i),bs(t)&&function WM(e,t){const n=gt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function zM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,_e(o)?o.setProperty(u,r,i):tl(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}(W(),function ve(){const e=R.lFrame;return qu(e.tView,e.selectedIndex)}(),r,e,t,r[L],n,!1),j}function gc(e,t,n,r,i){const s=i?"class":"style";Og(e,n,t.inputs[s],s,r)}function ee(e,t,n,r){const i=_(),o=W(),s=20+e,a=i[L],u=i[s]=Il(a,t,function DE(){return R.lFrame.currentNamespace}()),l=o.firstCreatePass?function dS(e,t,n,r,i,o,s){const a=t.consts,l=Zr(t,e,2,i,Ln(a,o));return Ql(t,n,l,Ln(a,s)),null!==l.attrs&&ea(l,l.attrs,!1),null!==l.mergedAttrs&&ea(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];en(l,!0);const c=l.mergedAttrs;null!==c&&Ns(a,u,c);const d=l.classes;null!==d&&Ol(a,u,d);const f=l.styles;return null!==f&&Yp(a,u,f),64!=(64&l.flags)&&Ws(o,i,u,l),0===function iE(){return R.lFrame.elementDepthCount}()&&Qe(u,i),function oE(){R.lFrame.elementDepthCount++}(),Cs(l)&&(Wl(o,i,l),mg(o,l,i)),null!==r&&Kl(i,l),ee}function K(){let e=xe();Ku()?Qu():(e=e.parent,en(e,!1));const t=e;!function sE(){R.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(Is(n,e),Lu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ME(e){return 0!=(16&e.flags)}(t)&&gc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function TE(e){return 0!=(32&e.flags)}(t)&&gc(n,t,_(),t.stylesWithoutHost,!1),K}function ct(e,t,n,r){return ee(e,t,n,r),K(),ct}function Nt(e,t,n){const r=_(),i=W(),o=e+20,s=i.firstCreatePass?function fS(e,t,n,r,i){const o=t.consts,s=Ln(o,r),a=Zr(t,e,8,"ng-container",s);return null!==s&&ea(a,s,!0),Ql(t,n,a,Ln(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];en(s,!0);const a=r[o]=r[L].createComment("");return Ws(i,r,a,s),Qe(a,r),Cs(s)&&(Wl(i,r,s),mg(i,s,r)),null!=n&&Kl(r,s),Nt}function Rt(){let e=xe();const t=W();return Ku()?Qu():(e=e.parent,en(e,!1)),t.firstCreatePass&&(Is(t,e),Lu(e)&&t.queries.elementEnd(e)),Rt}function vo(e){return!!e&&"function"==typeof e.then}function vm(e){return!!e&&"function"==typeof e.subscribe}const mc=vm;function Le(e,t,n,r){const i=_(),o=W(),s=xe();return function bm(e,t,n,r,i,o,s,a){const u=Cs(r),c=e.firstCreatePass&&Ng(e),d=t[8],f=xg(t);let h=!0;if(3&r.type||a){const v=It(r,t),D=a?a(v):v,g=f.length,w=a?N=>a(Me(N[r.index])):r.index;if(_e(n)){let N=null;if(!a&&u&&(N=function hS(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==N)(N.__ngLastListenerFn__||N).__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,h=!1;else{o=yc(r,t,d,o,!1);const $=n.listen(D,i,o);f.push(o,$),c&&c.push(i,w,g,g+1)}}else o=yc(r,t,d,o,!0),D.addEventListener(i,o,s),f.push(o),c&&c.push(i,w,g,s)}else o=yc(r,t,d,o,!1);const p=r.outputs;let y;if(h&&null!==p&&(y=p[i])){const v=y.length;if(v)for(let D=0;D0;)t=t[15],e--;return t}(e,R.lFrame.contextLView))[8]}(e)}function pS(e,t){let n=null;const r=function CM(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let i=0;i=0}function ia(e,t){return function Gt(e,t,n,r){const i=_(),o=W(),s=function yn(e){const t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);o.firstUpdatePass&&function Um(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[tt()],s=function Hm(e,t){return t>=e.expandoStartIndex}(e,n);(function zm(e,t){return 0!=(e.flags&(t?16:32))})(o,r)&&null===t&&!s&&(t=!1),t=function TS(e,t,n,r){const i=function Yu(e){const t=R.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Do(n=Dc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Dc(i,e,t,n,r),null===o){let u=function SS(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==_n(r))return e[Ut(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Dc(null,e,t,u[1],r),u=Do(u,t.attrs,r),function IS(e,t,n,r){e[Ut(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else o=function AS(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==u){const f=Ut(e[a+1]);e[r+1]=Qs(f,a),0!==f&&(e[f+1]=kl(e[f+1],r)),e[a+1]=function AM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Qs(a,0),0!==a&&(e[a+1]=kl(e[a+1],r)),a=r;else e[r+1]=Qs(u,0),0===a?a=r:e[u+1]=kl(e[u+1],r),u=r;l&&(e[r+1]=Pl(e[r+1])),Fm(e,c,r,!0),Fm(e,c,r,!1),function mS(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&qr(o,t)>=0&&(n[r+1]=Vl(n[r+1]))}(t,c,e,r,o),s=Qs(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}(o,e,s,r),t!==k&&Ze(i,s,t)&&function Gm(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];oa(function sg(e){return 1==(1&e)}(l)?qm(u,t,n,i,_n(l),s):void 0)||(oa(o)||function og(e){return 2==(2&e)}(l)&&(o=qm(u,null,n,i,a,s)),function yM(e,t,n,r,i){const o=_e(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:yt.DashCase;if(null==i)o?e.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=yt.Important),o?e.setStyle(n,r,i,s):n.style.setProperty(r,i,a?"important":"")}}}(r,s,ws(tt(),n),i,o))}(o,o.data[tt()],i,i[L],e,i[s+1]=function RS(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(function Un(e){return e instanceof class yp{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),ia}function Dc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[i+1];f===k&&(f=d?ie:void 0);let h=d?ul(f,r):c===r?f:void 0;if(l&&!oa(h)&&(h=ul(u,r)),oa(h)&&(a=h,s))return a;const p=e[i+1];i=s?Ut(p):_n(p)}if(null!==t){let u=o?t.residualClasses:t.residualStyles;null!=u&&(a=ul(u,r))}return a}function oa(e){return void 0!==e}function te(e,t=""){const n=_(),r=W(),i=e+20,o=r.firstCreatePass?Zr(r,i,1,t,null):r.data[i],s=n[i]=function Sl(e,t){return _e(e)?e.createText(t):e.createTextNode(t)}(n[L],t);Ws(r,n,s,o),en(o,!1)}function Fe(e){return bn("",e,""),Fe}function bn(e,t,n){const r=_(),i=function ri(e,t,n,r){return Ze(e,Vr(),n)?t+P(n)+r:k}(r,e,t,n);return i!==k&&vn(r,tt(),i),bn}const sa="en-US";let hy=sa;function wc(e,t,n,r,i){if(e=V(e),Array.isArray(e))for(let o=0;o>20;if(ei(e)||!e.multi){const h=new zi(u,i,m),p=Mc(a,t,i?c:c+f,d);-1===p?(Ps(Ki(l,s),o,a),Ec(o,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Mc(a,t,c+f,d),p=Mc(a,t,c,c+f),y=h>=0&&n[h],v=p>=0&&n[p];if(i&&!v||!i&&!y){Ps(Ki(l,s),o,a);const D=function YI(e,t,n,r,i){const o=new zi(e,n,m);return o.multi=[],o.index=t,o.componentProviders=0,Vy(o,i,r&&!n),o}(i?ZI:QI,n.length,i,r,u);!i&&v&&(n[p].providerFactory=D),Ec(o,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Ec(o,e,h>-1?h:p,Vy(n[i?p:h],u,!i&&r));!i&&r&&v&&n[p].componentProviders++}}}function Ec(e,t,n,r){const i=ei(t),o=function CT(e){return!!e.useClass}(t);if(i||o){const u=(o?V(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Vy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Mc(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function KI(e,t,n){const r=W();if(r.firstCreatePass){const i=Bt(e);wc(n,r.data,r.blueprint,i,!0),wc(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Ly{}class eA{resolveComponentFactory(t){throw function XI(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Mo=(()=>{class e{}return e.NULL=new eA,e})();function tA(){return yi(xe(),_())}function yi(e,t){return new ot(It(e,t))}let ot=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tA,e})();class By{}let Cn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function iA(){const e=_(),n=gt(xe().index,e);return function rA(e){return e[L]}(Xt(n)?n:e)}(),e})(),oA=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class To{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sA=new To("13.3.5"),Sc={};function da(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(Me(o)),jt(o))for(let a=10;a-1&&(Al(t,r),Vs(n,r))}this._attachedToViewContainer=!1}jp(this._lView[1],this._lView)}onDestroy(t){!function Dg(e,t,n,r){const i=xg(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Ng(e).push(r,i.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Jl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ec(this._lView[1],this._lView,this.context)}checkNoChanges(){!function dT(e,t,n){Ms(!0);try{ec(e,t,n)}finally{Ms(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new z(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function aM(e,t){ho(e,t,t[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new z(902,"");this._appRef=t}}class aA extends So{constructor(t){super(t),this._view=t}detectChanges(){Ag(this._view)}checkNoChanges(){!function fT(e){Ms(!0);try{Ag(e)}finally{Ms(!1)}}(this._view)}get context(){return null}}class Hy extends Mo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ze(t);return new Ic(n,this.ngModule)}}function Uy(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Ic extends Ly{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function SM(e){return e.map(TM).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Uy(this.componentDef.inputs)}get outputs(){return Uy(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function lA(e,t){return{get:(n,r,i)=>{const o=e.get(n,Sc,i);return o!==Sc||r===Sc?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(By,Ah),a=o.get(oA,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function vg(e,t,n){if(_e(e))return e.selectRootElement(t,n===Yt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Il(s.createRenderer(null,this.componentDef),l,function uA(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?576:528,f=function Yg(e,t){return{components:[],scheduler:e||X0,clean:hT,playerHandler:t||null,flags:0}}(),h=Js(0,null,null,1,0,null,null,null,null,null),p=po(null,h,f,d,null,null,s,u,a,o);let y,v;Ts(p);try{const D=function Qg(e,t,n,r,i,o){const s=n[1];n[20]=e;const u=Zr(s,20,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(ea(u,l,!0),null!==e&&(Ns(i,e,l),null!==u.classes&&Ol(i,e,u.classes),null!==u.styles&&Yp(i,e,u.styles)));const c=r.createRenderer(e,t),d=po(n,yg(t),null,t.onPush?64:16,n[20],u,r,c,o||null,null);return s.firstCreatePass&&(Ps(Ki(u,n),s,t.type),Mg(s,u),Tg(u,n.length,1)),Xs(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)Ns(u,c,["ng-version",sA.full]);else{const{attrs:g,classes:w}=function IM(e){const t=[],n=[];let r=1,i=2;for(;r0&&Ol(u,c,w.join(" "))}if(v=qu(h,20),void 0!==n){const g=v.projection=[];for(let w=0;wu(s,t)),t.contentQueries){const u=xe();t.contentQueries(1,s,u.directiveStart)}const a=xe();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(a.index),wg(n[1],a,0,a.directiveStart,a.directiveEnd,t),Eg(t,s)),s}(D,this.componentDef,p,f,[FT]),go(h,p,null)}finally{Ss()}return new dA(this.componentType,y,yi(v,p),p,v)}}class dA extends class JI{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new aA(i),this.componentType=t}get injector(){return new Br(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class wn{}class $y{}const _i=new Map;class zy extends wn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Hy(this);const r=Mt(t);this._bootstrapComponents=rn(r.bootstrap),this._r3Injector=Lg(t,n,[{provide:wn,useValue:this},{provide:Mo,useValue:this.componentFactoryResolver}],J(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=rt.THROW_IF_NOT_FOUND,r=O.Default){return t===rt||t===wn||t===nc?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ac extends $y{constructor(t){super(),this.moduleType=t,null!==Mt(t)&&function hA(e){const t=new Set;!function n(r){const i=Mt(r,!0),o=i.id;null!==o&&(function Gy(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${J(t)} vs ${J(t.name)}`)}(o,_i.get(o),r),_i.set(o,r));const s=rn(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new zy(this.moduleType,t)}}function Io(e,t){const n=e[t];return n===k?void 0:n}function Qy(e,t,n,r,i,o,s){const a=t+n;return function cr(e,t,n,r){const i=Ze(e,t,n);return Ze(e,t+1,r)||i}(e,a,i,o)?sn(e,a+2,s?r.call(s,i,o):r(i,o)):Io(e,a+2)}function Y(e,t){const n=W();let r;const i=e+20;n.firstCreatePass?(r=function CA(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=ur(r.type)),s=Pn(m);try{const a=Fs(!1),u=o();return Fs(a),function qT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),i,u),u}finally{Pn(s)}}function oe(e,t,n){const r=e+20,i=_(),o=kr(i,r);return Ao(i,r)?function Ky(e,t,n,r,i,o){const s=t+n;return Ze(e,s,i)?sn(e,s+1,o?r.call(o,i):r(i)):Io(e,s+1)}(i,et(),t,o.transform,n,o):o.transform(n)}function Ao(e,t){return e[1].data[t].pure}function xc(e){return t=>{setTimeout(e,void 0,t)}}const Ce=class TA extends Xe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,u=n||(()=>null),l=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),u=null===(o=d.error)||void 0===o?void 0:o.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=xc(u),a&&(a=xc(a)),l&&(l=xc(l)));const c=super.subscribe({next:a,error:u,complete:l});return t instanceof ge&&t.add(c),c}};Symbol;let zt=(()=>{class e{}return e.__NG_ELEMENT_ID__=xA,e})();const IA=zt,AA=class extends IA{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=po(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),go(n,r,t),new So(r)}};function xA(){return function ha(e,t){return 4&e.type?new AA(t,e,yi(e,t)):null}(xe(),_())}let Wt=(()=>{class e{}return e.__NG_ELEMENT_ID__=NA,e})();function NA(){return function t_(e,t){let n;const r=t[e.index];if(jt(r))n=r;else{let i;if(8&e.type)i=Me(r);else{const o=t[L];i=o.createComment("");const s=It(e,t);lr(o,zs(o,s),i,function pM(e,t){return _e(e)?e.nextSibling(t):t.nextSibling}(o,s),!1)}t[e.index]=n=Ig(r,t,i,e),Xs(t,n)}return new Xy(n,e,t)}(xe(),_())}const RA=Wt,Xy=class extends RA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return yi(this._hostTNode,this._hostLView)}get injector(){return new Br(this._hostTNode,this._hostLView)}get parentInjector(){const t=Os(this._hostTNode,this._hostLView);if(zh(t)){const n=jr(t,this._hostLView),r=Lr(t);return new Br(n[1].data[r+8],n)}return new Br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=e_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=t&&!function Ji(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const u=s?t:new Ic(ze(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const f=(s?l:this.parentInjector).get(wn,null);f&&(o=f)}const c=u.create(l,i,void 0,o);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,i=r[1];if(function rE(e){return jt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Xy(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function lM(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(E(zc,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ro=new I("AppId",{providedIn:"root",factory:function w_(){return`${Kc()}${Kc()}${Kc()}`}});function Kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const E_=new I("Platform Initializer"),Qc=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),M_=new I("appBootstrapListener");let ix=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const qn=new I("LocaleId",{providedIn:"root",factory:()=>QE(qn,O.Optional|O.SkipSelf)||function ox(){return"undefined"!=typeof $localize&&$localize.locale||sa}()});class ax{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let T_=(()=>{class e{compileModuleSync(n){return new Ac(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=rn(Mt(n).declarations).reduce((s,a)=>{const u=ze(a);return u&&s.push(new Ic(u)),s},[]);return new ax(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lx=(()=>Promise.resolve(0))();function Zc(e){"undefined"==typeof Zone?lx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!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=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function cx(){let e=ne.requestAnimationFrame,t=ne.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hx(e){const t=()=>{!function fx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ne,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jc(e),e.isCheckStableRunning=!0,Yc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return S_(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),I_(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return S_(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),I_(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Jc(e),Yc(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,dx,ma,ma);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const dx={};function Yc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function S_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function I_(e){e._nesting--,Yc(e)}class px{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Xc=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{$e.assertNotInAngularZone(),Zc(()=>{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())Zc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(E($e))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),gx=(()=>{class e{constructor(){this._applications=new Map,ed.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ed.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class mx{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let ed=new mx,hr=null;const A_=new I("AllowMultipleToken"),x_=new I("PlatformOnDestroy");class N_{constructor(t,n){this.name=t,this.token=n}}function R_(e,t,n=[]){const r=`Platform: ${t}`,i=new I(r);return(o=[])=>{let s=td();if(!s||s.injector.get(A_,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function Dx(e){if(hr&&!hr.get(A_,!1))throw new z(400,"");hr=e;const t=e.get(F_),n=e.get(E_,null);n&&n.forEach(r=>r())}(function Cx(e=[],t){return rt.create({name:t,providers:[{provide:rc,useValue:"platform"},{provide:x_,useValue:()=>hr=null},...e]})}(a,r))}return function bx(e){const t=td();if(!t)throw new z(401,"");return t}()}}function td(){var e;return null!==(e=null==hr?void 0:hr.get(F_))&&void 0!==e?e:null}let F_=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function wx(e,t){let n;return n="noop"===e?new px:("zone.js"===e?void 0:e)||new $e({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:$e,useValue:a}];return a.run(()=>{const l=rt.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(co,null);if(!d)throw new z(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{rd(this._modules,c),f.unsubscribe()})}),function Ex(e,t,n){try{const r=n();return vo(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Wc);return f.runInitializers(),f.donePromise.then(()=>(function rI(e){ht(e,"Expected localeId to be defined"),"string"==typeof e&&(hy=e.toLowerCase().replace(/_/g,"-"))}(c.injector.get(qn,sa)||sa),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const i=O_({},r);return function _x(e,t,n){const r=new Ac(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(nd);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new z(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new z(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(x_,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function O_(e,t){return Array.isArray(t)?t.reduce(O_,e):Object.assign(Object.assign({},e),t)}let nd=(()=>{class e{constructor(n,r,i,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=o,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 s=new ae(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),a=new ae(u=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),Zc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function pw(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return xr(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof ae?e[0]:Bi(t)(Tu(e,n))}(s,a.pipe(function ww(){return e=>Su()(function Dw(e,t){return function(r){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new bw(i,t));const o=Object.create(r,yw);return o.source=r,o.subjectFactory=i,o}}(Cw)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new z(405,"");let i;i=n instanceof Ly?n:this._injector.get(Mo).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function vx(e){return e.isBoundToModule}(i)?void 0:this._injector.get(wn),a=i.create(rt.NULL,[],r||i.selector,o),u=a.location.nativeElement,l=a.injector.get(Xc,null),c=l&&a.injector.get(gx);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),rd(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new z(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;rd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(M_,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(E($e),E(rt),E(co),E(Wc))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function rd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let k_=!0,Kt=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sx,e})();function Sx(e){return function Ix(e,t,n){if(bs(e)&&!n){const r=gt(e.index,t);return new So(r,r)}return 47&e.type?new So(t[16],t):null}(xe(),_(),16==(16&e))}const Hx=R_(null,"core",[]);let Ux=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(E(nd))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})(),Da=null;function cn(){return Da}const vt=new I("DocumentToken");let gr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return function zx(){return E(W_)}()},providedIn:"platform"}),e})();const Wx=new I("Location Initialized");let W_=(()=>{class e extends gr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return cn().getBaseHref(this._doc)}onPopState(n){const r=cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,i){K_()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){K_()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:function(){return function Kx(){return new W_(E(vt))}()},providedIn:"platform"}),e})();function K_(){return!!window.history.pushState}function ud(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Q_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function En(e){return e&&"?"!==e[0]?"?"+e:e}let Di=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return function Qx(e){const t=E(vt).location;return new Z_(E(gr),t&&t.origin||"")}()},providedIn:"root"}),e})();const ld=new I("appBaseHref");let Z_=(()=>{class e extends Di{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ud(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+En(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+En(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+En(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)(E(gr),E(ld,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Zx=(()=>{class e extends Di{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=ud(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+En(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+En(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)(E(gr),E(ld,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),cd=(()=>{class e{constructor(n,r){this._subject=new Ce,this._urlChangeListeners=[],this._platformStrategy=n;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Q_(Y_(i)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+En(r))}normalize(n){return e.stripTrailingSlash(function Jx(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Y_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._platformStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),i)}replaceState(n,r="",i=null){this._platformStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return e.normalizeQueryParams=En,e.joinWithSlash=ud,e.stripTrailingSlash=Q_,e.\u0275fac=function(n){return new(n||e)(E(Di),E(gr))},e.\u0275prov=x({token:e,factory:function(){return function Yx(){return new cd(E(Di),E(gr))}()},providedIn:"root"}),e})();function Y_(e){return e.replace(/\/index.html$/,"")}function sv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let xa=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new LN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){lv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){lv("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt))},e.\u0275dir=M({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class LN{constructor(){this.$implicit=null,this.ngIf=null}}function lv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${J(t)}'.`)}class Dd{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,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 mr=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(let r=0;r{class e{constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new Dd(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt),m(mr,9))},e.\u0275dir=M({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Na=(()=>{class e{constructor(n,r,i){i._addDefault(new Dd(n,r))}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt),m(mr,9))},e.\u0275dir=M({type:e,selectors:[["","ngSwitchDefault",""]]}),e})();class HN{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class UN{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}onDestroy(t){}}const $N=new UN,GN=new HN;let Cd=(()=>{class e{constructor(n){this._ref=n,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(vo(n))return $N;if(vm(n))return GN;throw function Zt(e,t){return new z(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(m(Kt,16))},e.\u0275pipe=Z({name:"async",type:e,pure:!1}),e})(),Vo=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();let cR=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new dR(E(vt),window)}),e})();class dR{constructor(t,n){this.document=t,this.window=n,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 n=function fR(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=hv(this.window.history)||hv(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 hv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class pv{}class Md extends class hR extends class qx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Gx(e){Da||(Da=e)}(new Md)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function pR(){return Lo=Lo||document.querySelector("base"),Lo?Lo.getAttribute("href"):null}();return null==n?null:function gR(e){Ra=Ra||document.createElement("a"),Ra.setAttribute("href",e);const t=Ra.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return sv(document.cookie,t)}}let Ra,Lo=null;const gv=new I("TRANSITION_ID"),yR=[{provide:zc,useFactory:function mR(e,t,n){return()=>{n.get(Wc).donePromise.then(()=>{const r=cn(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ne.getAllAngularTestabilities=()=>t.getAllTestabilities(),ne.getAllAngularRootElements=()=>t.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(r=>{const i=ne.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(u){s=s||u,o--,0==o&&r(s)};i.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const i=t.getTestability(n);return null!=i?i:r?cn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let _R=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Fa=new I("EventManagerPlugins");let Oa=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),jo=(()=>{class e extends yv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(_v),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(_v))}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function _v(e){cn().remove(e)}const Sd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Id=/%COMP%/g;function Pa(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ad=(()=>{class e{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new xd(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Yt.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new ER(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case Yt.ShadowDom:return new MR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Pa(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(E(Oa),E(jo),E(Ro))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class xd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Sd[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Sd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Sd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(yt.DashCase|yt.Important)?t.style.setProperty(n,r,i&yt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&yt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,bv(r)):this.eventManager.addEventListener(t,n,bv(r))}}class ER extends xd{constructor(t,n,r,i){super(t),this.component=r;const o=Pa(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function bR(e){return"_ngcontent-%COMP%".replace(Id,e)}(i+"-"+r.id),this.hostAttr=function CR(e){return"_nghost-%COMP%".replace(Id,e)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class MR extends xd{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pa(i.id,i.styles,[]);for(let s=0;s{class e extends mv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const wv=["alt","control","meta","shift"],IR={"\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"},Ev={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"},AR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let xR=(()=>{class e extends mv{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>cn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="";if(wv.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(n){let r="",i=function NR(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ev.hasOwnProperty(t)&&(t=Ev[t]))}return IR[t]||t}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),wv.forEach(o=>{o!=i&&AR[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{e.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const PR=R_(Hx,"browser",[{provide:Qc,useValue:"browser"},{provide:E_,useValue:function RR(){Md.makeCurrent(),Td.init()},multi:!0},{provide:vt,useFactory:function OR(){return function Xw(e){$u=e}(document),document},deps:[]}]),kR=[{provide:rc,useValue:"root"},{provide:co,useFactory:function FR(){return new co},deps:[]},{provide:Fa,useClass:TR,multi:!0,deps:[vt,$e,Qc]},{provide:Fa,useClass:xR,multi:!0,deps:[vt]},{provide:Ad,useClass:Ad,deps:[Oa,jo,Ro]},{provide:By,useExisting:Ad},{provide:yv,useExisting:jo},{provide:jo,useClass:jo,deps:[vt]},{provide:Xc,useClass:Xc,deps:[$e]},{provide:Oa,useClass:Oa,deps:[Fa,$e]},{provide:pv,useClass:_R,deps:[]}];let VR=(()=>{class e{constructor(n){if(n)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(n){return{ngModule:e,providers:[{provide:Ro,useValue:n.appId},{provide:gv,useExisting:Ro},yR]}}}return e.\u0275fac=function(n){return new(n||e)(E(e,12))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:kR,imports:[Vo,Ux]}),e})();function ka(e,t){return new ae(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a{l||(l=!0,s++),i[a]=c},error:c=>n.error(c),complete:()=>{o++,(o===r||!l)&&(s===r&&n.next(t?t.reduce((c,d,f)=>(c[d]=i[f],c),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;let Sv=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cn),m(ot))},e.\u0275dir=M({type:e}),e})(),yr=(()=>{class e extends Sv{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=function Ke(e){return kn(()=>{const t=e.prototype.constructor,n=t[gn]||ol(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[gn]||ol(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(r||e)}}(),e.\u0275dir=M({type:e,features:[X]}),e})();const dn=new I("NgValueAccessor"),ZR={provide:dn,useExisting:ue(()=>Va),multi:!0},JR=new I("CompositionEventMode");let Va=(()=>{class e extends Sv{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function YR(){const e=cn()?cn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cn),m(ot),m(JR,8))},e.\u0275dir=M({type:e,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(n,r){1&n&&Le("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[pe([ZR]),X]}),e})();function Wn(e){return null==e||0===e.length}function Av(e){return null!=e&&"number"==typeof e.length}const Ye=new I("NgValidators"),Kn=new I("NgAsyncValidators"),XR=/^(?=.{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 bi{static min(t){return function xv(e){return t=>{if(Wn(t.value)||Wn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Wn(t.value)||Wn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function Rv(e){return Wn(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Fv(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function Ov(e){return Wn(e.value)||XR.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function Pv(e){return t=>Wn(t.value)||!Av(t.value)?null:t.value.lengthAv(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Vv(e){if(!e)return La;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Wn(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return $v(t)}static composeAsync(t){return Gv(t)}}function La(e){return null}function Lv(e){return null!=e}function jv(e){const t=vo(e)?je(e):e;return mc(t),t}function Bv(e){let t={};return e.forEach(n=>{t=null!=n?Object.assign(Object.assign({},t),n):t}),0===Object.keys(t).length?null:t}function Hv(e,t){return t.map(n=>n(e))}function Uv(e){return e.map(t=>function eF(e){return!e.validate}(t)?t:n=>t.validate(n))}function $v(e){if(!e)return null;const t=e.filter(Lv);return 0==t.length?null:function(n){return Bv(Hv(n,t))}}function Rd(e){return null!=e?$v(Uv(e)):null}function Gv(e){if(!e)return null;const t=e.filter(Lv);return 0==t.length?null:function(n){return function KR(...e){if(1===e.length){const t=e[0];if(Li(t))return ka(t,null);if(wu(t)&&Object.getPrototypeOf(t)===Object.prototype){const n=Object.keys(t);return ka(n.map(r=>t[r]),n)}}if("function"==typeof e[e.length-1]){const t=e.pop();return ka(e=1===e.length&&Li(e[0])?e[0]:e,null).pipe(Q(n=>t(...n)))}return ka(e,null)}(Hv(n,t).map(jv)).pipe(Q(Bv))}}function Fd(e){return null!=e?Gv(Uv(e)):null}function qv(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function zv(e){return e._rawValidators}function Wv(e){return e._rawAsyncValidators}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function ja(e,t){return Array.isArray(e)?e.includes(t):e===t}function Kv(e,t){const n=Od(t);return Od(e).forEach(i=>{ja(n,i)||n.push(i)}),n}function Qv(e,t){return Od(t).filter(n=>!ja(e,n))}class Zv{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=Rd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fd(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,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Qn extends Zv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class at extends Zv{get formDirective(){return null}get path(){return null}}class Yv{constructor(t){this._cd=t}is(t){var n,r,i;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}let Jv=(()=>{class e extends Yv{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Qn,2))},e.\u0275dir=M({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ia("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[X]}),e})(),Xv=(()=>{class e extends Yv{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(at,10))},e.\u0275dir=M({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ia("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[X]}),e})();function Bo(e,t){Vd(e,t),t.valueAccessor.writeValue(e.value),function uF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tD(e,t)})}(e,t),function cF(e,t){const n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function lF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function aF(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ua(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Ga(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function $a(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Vd(e,t){const n=zv(e);null!==t.validator?e.setValidators(qv(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=Wv(e);null!==t.asyncValidator?e.setAsyncValidators(qv(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();$a(t._rawValidators,i),$a(t._rawAsyncValidators,i)}function Ga(e,t){let n=!1;if(null!==e){if(null!==t.validator){const i=zv(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.validator);o.length!==i.length&&(n=!0,e.setValidators(o))}}if(null!==t.asyncValidator){const i=Wv(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(n=!0,e.setAsyncValidators(o))}}}const r=()=>{};return $a(t._rawValidators,r),$a(t._rawAsyncValidators,r),n}function tD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ld(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function jd(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===Va?n=o:function hF(e){return Object.getPrototypeOf(e.constructor)===yr}(o)?r=o:i=o}),i||r||n||null}function Bd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ho="VALID",qa="INVALID",Ci="PENDING",Uo="DISABLED";function Ud(e){return(za(e)?e.validators:e)||null}function oD(e){return Array.isArray(e)?Rd(e):e||null}function $d(e,t){return(za(t)?t.asyncValidators:e)||null}function sD(e){return Array.isArray(e)?Fd(e):e||null}function za(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const Gd=e=>e instanceof Ka,Wa=e=>e instanceof wi,aD=e=>e instanceof Qa;function uD(e){return Gd(e)?e.value:e.getRawValue()}function lD(e,t){const n=Wa(e),r=e.controls;if(!(n?Object.keys(r):r).length)throw new z(1e3,"");if(!r[t])throw new z(1001,"")}function cD(e,t){Wa(e),e._forEachChild((r,i)=>{if(void 0===t[i])throw new z(1002,"")})}class qd{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=oD(this._rawValidators),this._composedAsyncValidatorFn=sD(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===Ho}get invalid(){return this.status===qa}get pending(){return this.status==Ci}get disabled(){return this.status===Uo}get enabled(){return this.status!==Uo}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=oD(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=sD(t)}addValidators(t){this.setValidators(Kv(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Kv(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qv(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qv(t,this._rawAsyncValidators))}hasValidator(t){return ja(this._rawValidators,t)}hasAsyncValidator(t){return ja(this._rawAsyncValidators,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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ci,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Uo,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ho,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!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===Ho||this.status===Ci)&&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(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Uo:Ho}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ci,this._hasOwnPendingAsyncValidator=!0;const n=jv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){return function pF(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(n)),Array.isArray(t)&&0===t.length))return null;let r=e;return t.forEach(i=>{r=Wa(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:aD(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}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 Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?Uo:this.errors?qa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ci)?Ci:this._anyControlsHaveStatus(qa)?qa:Ho}_anyControlsHaveStatus(t){return this._anyControls(n=>n.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){za(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ka extends qd{constructor(t=null,n,r){super(Ud(n),$d(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),za(n)&&n.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bd(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bd(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 wi extends qd{constructor(t,n,r){super(Ud(n),$d(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){cD(this,t),Object.keys(t).forEach(r=>{lD(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=uD(n),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_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}}class Qa extends qd{constructor(t,n,r){super(Ud(n),$d(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){cD(this,t),t.forEach((r,i)=>{lD(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>uD(t))}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_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)}}let gD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=M({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),yD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();const Wd=new I("NgModelWithFormControlWarning"),CF={provide:Qn,useExisting:ue(()=>Kd)};let Kd=(()=>{class e extends Qn{constructor(n,r,i,o){super(),this._ngModelWarningConfig=o,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=jd(0,i)}set isDisabled(n){}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&Ua(r,this,!1),Bo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ld(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ua(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(Ye,10),m(Kn,10),m(dn,10),m(Wd,8))},e.\u0275dir=M({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pe([CF]),X,Ve]}),e})();const wF={provide:at,useExisting:ue(()=>Za)};let Za=(()=>{class e extends at{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ga(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return Bo(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Ua(n.control||null,n,!1),Bd(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function iD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,i=this.form.get(n.path);r!==i&&(Ua(r||null,n),Gd(i)&&(Bo(i,n),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function nD(e,t){Vd(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function dF(e,t){return Ga(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vd(this.form,this),this._oldForm&&Ga(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(n){return new(n||e)(m(Ye,10),m(Kn,10))},e.\u0275dir=M({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&Le("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([wF]),X,Ve]}),e})();const TF={provide:Qn,useExisting:ue(()=>Yd)};let Yd=(()=>{class e extends Qn{constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=jd(0,o)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),Ld(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function Ha(e,t){return[...t.path,e]}(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 e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(at,13),m(Ye,10),m(Kn,10),m(dn,10),m(Wd,8))},e.\u0275dir=M({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[pe([TF]),X,Ve]}),e})(),RD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[yD]]}),e})(),UF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[RD]}),e})(),FD=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wd,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[RD]}),e})(),GF=(()=>{class e{group(n,r=null){const i=this._reduceControls(n);let a,o=null,s=null;return null!=r&&(function $F(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(r)?(o=null!=r.validators?r.validators:null,s=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(o=null!=r.validator?r.validator:null,s=null!=r.asyncValidator?r.asyncValidator:null)),new wi(i,{asyncValidators:s,updateOn:a,validators:o})}control(n,r,i){return new Ka(n,r,i)}array(n,r,i){const o=n.map(s=>this._createControl(s));return new Qa(o,r,i)}_reduceControls(n){const r={};return Object.keys(n).forEach(i=>{r[i]=this._createControl(n[i])}),r}_createControl(n){return Gd(n)||Wa(n)||aD(n)?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:FD}),e})();const OD="object"==typeof global&&global&&global.Object===Object&&global;var zF="object"==typeof self&&self&&self.Object===Object&&self;const Tn=OD||zF||Function("return this")(),Zn=Tn.Symbol;var PD=Object.prototype,QF=PD.hasOwnProperty,ZF=PD.toString,Go=Zn?Zn.toStringTag:void 0;var e1=Object.prototype.toString;var kD=Zn?Zn.toStringTag:void 0;const Sn=function o1(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kD&&kD in Object(e)?function YF(e){var t=QF.call(e,Go),n=e[Go];try{e[Go]=void 0;var r=!0}catch(o){}var i=ZF.call(e);return r&&(t?e[Go]=n:delete e[Go]),i}(e):function t1(e){return e1.call(e)}(e)},In=function s1(e){return null!=e&&"object"==typeof e},VD=function u1(e){return!0===e||!1===e||In(e)&&"[object Boolean]"==Sn(e)},LD=function c1(e){return"number"==typeof e||In(e)&&"[object Number]"==Sn(e)},Yn=Array.isArray,tf=function h1(e){return"string"==typeof e||!Yn(e)&&In(e)&&"[object String]"==Sn(e)};function Ei(e){return t=>t.lift(new p1(e))}class p1{constructor(t){this.notifier=t}call(t,n){const r=new g1(t),i=ps(this.notifier,new fs(r));return i&&!r.seenValue?(r.add(i),n.subscribe(r)):r}}class g1 extends hs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let An=(()=>{class e{constructor(){}isBoolean(n){return VD(n)}isNumber(n){return LD(n)}isObservable(n){return n instanceof ae}isPromise(n){return n instanceof Promise}isString(n){return tf(n)}isTemplateRef(n){return n instanceof zt}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();new I("default error image"),new I("default loading image");let A1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo]]}),e})();class Dt extends Xe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return n&&!n.closed&&t.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ar;return this._value}next(t){super.next(this._value=t)}}function T(...e){let t=e[e.length-1];return xr(t)?(e.pop(),Mu(e,t)):Tu(e)}class N1 extends ge{constructor(t,n){super()}schedule(t,n=0){return this}}let HD=(()=>{class e{constructor(n,r=e.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,i){return new this.SchedulerAction(this,n).schedule(i,r)}}return e.now=()=>Date.now(),e})();class Jn extends HD{constructor(t,n=HD.now){super(t,()=>Jn.delegate&&Jn.delegate!==this?Jn.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,n=0,r){return Jn.delegate&&Jn.delegate!==this?Jn.delegate.schedule(t,n,r):super.schedule(t,n,r)}flush(t){const{actions:n}=this;if(this.active)return void n.push(t);let r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this.active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}const F1=new Jn(class R1 extends N1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){if(this.closed)return this;this.state=t;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let i,r=!1;try{this.work(t)}catch(o){r=!0,i=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,n=this.scheduler,r=n.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null}});function UD(e){return!Li(e)&&e-parseFloat(e)+1>=0}function P1(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function bt(e,t){return"function"==typeof t?n=>n.pipe(bt((r,i)=>je(e(r,i)).pipe(Q((o,s)=>t(r,o,i,s))))):n=>n.lift(new k1(e))}class k1{constructor(t){this.project=t}call(t,n){return n.subscribe(new V1(t,this.project))}}class V1 extends hs{constructor(t,n){super(t),this.project=n,this.index=0}_next(t){let n;const r=this.index++;try{n=this.project(t,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(t){const n=this.innerSubscription;n&&n.unsubscribe();const r=new fs(this),i=this.destination;i.add(r),this.innerSubscription=ps(t,r),this.innerSubscription!==r&&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)}}class j1{constructor(t){this.predicate=t}call(t,n){return n.subscribe(new B1(t,this.predicate))}}class B1 extends se{constructor(t,n){super(t),this.predicate=n,this.skipping=!0,this.index=0}_next(t){const n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)}tryCallPredicate(t){try{const n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(n){this.destination.error(n)}}}function Xn(){}function ut(e,t,n){return function(i){return i.lift(new H1(e,t,n))}}class H1{constructor(t,n,r){this.nextOrObserver=t,this.error=n,this.complete=r}call(t,n){return n.subscribe(new U1(t,this.nextOrObserver,this.error,this.complete))}}class U1 extends se{constructor(t,n,r,i){super(t),this._tapNext=Xn,this._tapError=Xn,this._tapComplete=Xn,this._tapError=r||Xn,this._tapComplete=i||Xn,rr(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Xn,this._tapError=n.error||Xn,this._tapComplete=n.complete||Xn)}_next(t){try{this._tapNext.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class G1{constructor(t,n){this.count=t,this.source=n}call(t,n){return n.subscribe(new q1(t,this.count,this.source))}}class q1 extends se{constructor(t,n,r){super(t),this.count=n,this.source=r}error(t){if(!this.isStopped){const{source:n,count:r}=this;if(0===r)return super.error(t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}function er(e){return function(n){const r=new z1(e),i=n.lift(r);return r.caught=i}}class z1{constructor(t){this.selector=t}call(t,n){return n.subscribe(new W1(t,this.selector,this.caught))}}class W1 extends hs{constructor(t,n,r){super(t),this.selector=n,this.caught=r}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const r=new fs(this);this.add(r);const i=ps(n,r);i!==r&&this.add(i)}}}const rf=function Q1(e){return"symbol"==typeof e||In(e)&&"[object Symbol]"==Sn(e)};var Z1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y1=/^\w*$/;const $D=function eO(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},of=function oO(e){if(!$D(e))return!1;var t=Sn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sf=Tn["__core-js_shared__"];var GD=function(){var e=/[^.]+$/.exec(sf&&sf.keys&&sf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var cO=Function.prototype.toString;const vr=function dO(e){if(null!=e){try{return cO.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var hO=/^\[object .+?Constructor\]$/,_O=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const DO=function vO(e){return!(!$D(e)||function aO(e){return!!GD&&GD in e}(e))&&(of(e)?_O:hO).test(vr(e))},Mi=function wO(e,t){var n=function bO(e,t){return null==e?void 0:e[t]}(e,t);return DO(n)?n:void 0},qo=Mi(Object,"create");var NO=Object.prototype.hasOwnProperty;var PO=Object.prototype.hasOwnProperty;function Ti(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Si.prototype.set=function XO(e,t){var n=this.__data__,r=Ya(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Ja=Si,zo=Mi(Tn,"Map"),Xa=function sP(e,t){var n=e.__data__;return function iP(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function Ii(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,h=2&n?new ek:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var fe={};fe["[object Float32Array]"]=fe["[object Float64Array]"]=fe["[object Int8Array]"]=fe["[object Int16Array]"]=fe["[object Int32Array]"]=fe["[object Uint8Array]"]=fe["[object Uint8ClampedArray]"]=fe["[object Uint16Array]"]=fe["[object Uint32Array]"]=!0,fe["[object Arguments]"]=fe["[object Array]"]=fe["[object ArrayBuffer]"]=fe["[object Boolean]"]=fe["[object DataView]"]=fe["[object Date]"]=fe["[object Error]"]=fe["[object Function]"]=fe["[object Map]"]=fe["[object Number]"]=fe["[object Object]"]=fe["[object RegExp]"]=fe["[object Set]"]=fe["[object String]"]=fe["[object WeakMap]"]=!1;var ab="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wo=ab&&"object"==typeof module&&module&&!module.nodeType&&module,df=Wo&&Wo.exports===ab&&OD.process,OV=function(){try{return Wo&&Wo.require&&Wo.require("util").types||df&&df.binding&&df.binding("util")}catch(t){}}(),lb=OV&&OV.isTypedArray;const cb=lb?function NV(e){return function(t){return e(t)}}(lb):function AV(e){return In(e)&&sb(e.length)&&!!fe[Sn(e)]};var VV=Object.prototype.hasOwnProperty;const jV=function LV(e,t){var n=Yn(e),r=!n&&Wk(e),i=!n&&!r&&cf(e),o=!n&&!r&&!i&&cb(e),s=n||r||i||o,a=s?function Bk(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:0,n=(Ge[e[t+0]]+Ge[e[t+1]]+Ge[e[t+2]]+Ge[e[t+3]]+"-"+Ge[e[t+4]]+Ge[e[t+5]]+"-"+Ge[e[t+6]]+Ge[e[t+7]]+"-"+Ge[e[t+8]]+Ge[e[t+9]]+"-"+Ge[e[t+10]]+Ge[e[t+11]]+Ge[e[t+12]]+Ge[e[t+13]]+Ge[e[t+14]]+Ge[e[t+15]]).toLowerCase();if(!TL(n))throw TypeError("Stringified UUID is invalid");return n}(r)},zL=new I("nb-trans-default-lang");var xn=(()=>(function(e){e.ZH_CN="zh-CN",e.ZH_TW="zh-TW",e.ZH_HK="zh-HK",e.EN="en",e.AR_EG="ar-EG",e.HY_AM="hy-AM",e.BG_BG="bg-BG",e.CA_ES="ca-ES",e.CS_CZ="cs-CZ",e.DA_DK="da-DK",e.DE_DE="de-DE",e.EL_GR="el-GR",e.EN_GB="en-GB",e.EN_US="en-US",e.ES_ES="es-ES",e.ET_EE="et-EE",e.FA_IR="fa-IR",e.FI_FI="fi-FI",e.FR_BE="fr-BE",e.FR_FR="fr-FR",e.HE_IL="he-IL",e.HI_IN="hi-IN",e.HR_HR="hr-HR",e.HU_HU="hu-HU",e.IS_IS="is-IS",e.ID_ID="id-ID",e.IT_IT="it-IT",e.JA_JP="ja-JP",e.KA_GE="ka-GE",e.KN_IN="kn-IN",e.KO_KR="ko-KR",e.KU_IQ="ku-IQ",e.LV_LV="lv-LV",e.MS_MY="ms-MY",e.MN_MN="mn-MN",e.NB_NO="nb-NO",e.NE_NP="ne-NP",e.NL_BE="nl-BE",e.NL_NL="nl-NL",e.PL_PL="pl-PL",e.PT_BR="pt-BR",e.PT_PT="pt-PT",e.SK_SK="sk-SK",e.SR_RS="sr-RS",e.SL_SI="sl-SI",e.SV_SE="sv-SE",e.TA_IN="ta-IN",e.TH_TH="th-TH",e.TR_TR="tr-TR",e.RO_RO="ro-RO",e.RU_RU="ru-RU",e.UK_UA="uk-UA",e.VI_VN="vi-VN"}(xn||(xn={})),xn))();const wb=new I("nb-trans-loader"),WL=new I("nb-trans-max-retry");let Ko=(()=>{class e{constructor(n){this.valueType=n}static checkNavigator(){return e.checkWindow()&&void 0!==window.navigator}static checkWindow(){return"undefined"!=typeof window}getFinalKey(n,r){return r?`${r}.${n}`:n}handleSentence(n,r,i){return n.replace(new RegExp(r,"g"),i)}handleSentenceWithParams(n,r){if(!r)return n;const i=Object.keys(r);if(!i.length)return n;const o=i.reduce((a,u)=>(a[u]=xL(),a),{});let s=n;return i.forEach(a=>{s=this.handleSentence(s,`{{${a}}}`,o[a])}),n=s,i.forEach(a=>{n=this.handleSentence(n,o[a],r[a])}),n}handleTrans(n){const r=[];for(;n.length;){const i=n.search(/<\d+>/);if(i>0){const s=n.slice(0,i);r.push(s)}const o=this.handleCompStr(n);this.valueType.isString(o)?(r.push(o),n=""):(r.push({index:o.index,content:o.content,list:o.list}),n=o.otherContent)}return r}handleCompStr(n){const r=n.search(/<\d+>/);if(-1===r)return n;let i=[];const o=n.indexOf(">",r),s=Number(n.slice(r+1,o)),a=``,u=n.indexOf(a),l=n.slice(o+1,u);return l.search(/<\d+>/)>-1&&(i=this.handleTrans(l)),{index:s,content:l,list:i,otherContent:n.slice(u+a.length,n.length)}}}return e.\u0275fac=function(n){return new(n||e)(E(An))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ou=(()=>{class e{constructor(n,r,i,o){this.transDefaultLang=n,this.transLoader=r,this.maxRetry=i,this.transToolsService=o,this.lang$=new Dt(xn.ZH_CN),this.loadDefaultOver$=new Dt(!1),this.loadLangTrans$=new Xe,this.retry=5,this.translations={},this.retry=null==this.maxRetry?this.retry:this.maxRetry,this.transLoader=this.transLoader||{},this.lang$.next(n||xn.ZH_CN),this.loadDefaultTrans()}get lang(){return this.lang$.value}get loadDefaultOver(){return this.loadDefaultOver$.value}static getBrowserLang(){var n;if(Ko.checkNavigator())return null===(n=null==window?void 0:window.navigator)||void 0===n?void 0:n.language}static getBrowserLangs(){var n;if(Ko.checkNavigator())return null===(n=null==window?void 0:window.navigator)||void 0===n?void 0:n.languages}changeLang(n){const r={curLang:n,result:!0},i={curLang:this.lang,result:!1};return this.translations[n]?(this.lang$.next(n),T(r)):this.transLoader[n]?this.loadLangTrans(n).pipe(bt(o=>{let s=this.lang,a=i;return o&&(s=n,a=r),this.lang$.next(s),T(a)})):(function O1(e=0,t,n){let r=-1;return UD(t)?r=Number(t)<1?1:Number(t):xr(t)&&(n=t),xr(n)||(n=F1),new ae(i=>{const o=UD(e)?e:+e-n.now();return n.schedule(P1,o,{index:0,period:r,subscriber:i})})}().subscribe(o=>this.loadLangTrans$.next(!1)),T(i))}changeLangSync(n){this.changeLang(n).subscribe()}getBrowserLang(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLang()!"),e.getBrowserLang()}getBrowserLangs(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLangs()!"),e.getBrowserLangs()}translationAsync(n,r){return this.lang$.pipe(bt(i=>this.translations[this.lang]?T({trans:this.translations[this.lang],result:!0}):this.loadLangTrans$),Q(i=>this.translationSync(n,r)))}translationSync(n,r){const i=this.transToolsService.getFinalKey(n,null==r?void 0:r.prefix),o=!1===(null==r?void 0:r.returnKeyWhenEmpty)?"":i;let s=ZD(this.translations[this.lang],i);return s||(s=ZD(this.translations[this.transDefaultLang],i)),s?(s=this.transToolsService.handleSentenceWithParams(s,null==r?void 0:r.params),s||o):o}subscribeLangChange(){return this.lang$.asObservable()}subscribeLoadDefaultOver(){return this.loadDefaultOver?T(!0):this.loadDefaultOver$.asObservable().pipe(function L1(e){return t=>t.lift(new j1(e))}((n,r)=>!n&&0===r))}loadDefaultTrans(){this.loadTrans(this.lang).subscribe(n=>{const r=!!n;this.loadDefaultOver$.next(r),this.loadDefaultOver$.complete(),this.loadLangTrans$.next(r)})}loadLangTrans(n){return this.loadTrans(n).pipe(Q(r=>{const i=!!r;return this.loadLangTrans$.next(i),i}))}loadTrans(n){const r=this.transLoader[n];return r?(of(r)?T(null).pipe(bt(()=>je(r()))):T(r)).pipe(ut(o=>this.translations[n]=o),function $1(e=-1){return t=>t.lift(new G1(e,t))}(this.retry),er(o=>T(null))):T(null)}}return e.\u0275fac=function(n){return new(n||e)(E(zL,8),E(wb,8),E(WL,8),E(Ko))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Eb=(()=>{class e{constructor(n,r){this.changeDR=n,this.transService=r,this.latestValue="",this.destroy$=new Xe,this.key="",this.subscribeLangChange()}transform(n,r){return(!this.latestValue||n!==this.key||!mf(r,this.options))&&(this.latestValue=this.transService.translationSync(n,r),this.key=n,this.options=r),this.latestValue}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}subscribeLangChange(){this.transService.subscribeLangChange().pipe(bt(n=>this.transService.translationAsync(this.key,this.options)),Ei(this.destroy$)).subscribe(n=>this.updateLatestValue(n))}updateLatestValue(n){this.latestValue=n,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(Kt,16),m(ou,16))},e.\u0275pipe=Z({name:"nbTrans",type:e,pure:!1}),e})(),JL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo,A1]]}),e})();const XL=["nb-r-str",""];function ej(e,t){if(1&e&&(Nt(0),te(1),Y(2,"async"),Rt()),2&e){const n=De();F(1),Fe(oe(2,1,n.asyncContent))}}function tj(e,t){if(1&e&&(Nt(0),te(1),Rt()),2&e){const n=De();F(1),Fe(n.content)}}let Cr=(()=>{class e{constructor(){}isBoolean(n){return VD(n)}isNumber(n){return LD(n)}isObservable(n){return n instanceof ae}isPromise(n){return n instanceof Promise}isString(n){return tf(n)}isTemplateRef(n){return n instanceof zt}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Mb=(()=>{class e{constructor(n){this.valueTypeService=n}transform(n){return this.valueTypeService.isObservable(n)||this.valueTypeService.isPromise(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cr,16))},e.\u0275pipe=Z({name:"nbIsAsync",type:e,pure:!0}),e})(),Tb=(()=>{class e{constructor(){this.content=""}get asyncContent(){return this.content}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["","nb-r-str",""]],inputs:{content:["nb-r-str","content"]},attrs:XL,decls:4,vars:4,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(n,r){1&n&&(Nt(0,0),Y(1,"nbIsAsync"),me(2,ej,3,3,"ng-container",1),me(3,tj,2,1,"ng-container",2),Rt()),2&n&&(j("ngSwitch",oe(1,2,r.content)),F(2),j("ngSwitchCase",!0))},directives:[mr,ko,Na],pipes:[Mb,Cd],encapsulation:2,changeDetection:0}),e})();new I("default error image"),new I("default loading image");let hj=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo]]}),e})();class gj extends se{notifyNext(t,n,r,i,o){this.destination.next(n)}notifyError(t,n){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class mj extends se{constructor(t,n,r){super(),this.parent=t,this.outerValue=n,this.outerIndex=r,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 yj(e,t,n,r,i=new mj(e,n,r)){if(!i.closed)return t instanceof ae?t.subscribe(i):Eu(t)(i)}const Sb={};function Ib(...e){let t,n;return xr(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Li(e[0])&&(e=e[0]),Tu(e,n).lift(new _j(t))}class _j{constructor(t){this.resultSelector=t}call(t,n){return n.subscribe(new vj(t,this.resultSelector))}}class vj extends gj{constructor(t,n){super(t),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Sb),this.observables.push(t)}_complete(){const t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r_f(e,n,t)):n=>_f(e,n)}class Cj{constructor(t,n){this.compare=t,this.keySelector=n}call(t,n){return n.subscribe(new wj(t,this.compare,this.keySelector))}}class wj extends se{constructor(t,n,r){super(t),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}compare(t,n){return t===n}_next(t){let n;try{const{keySelector:i}=this;n=i?i(t):t}catch(i){return this.destination.error(i)}let r=!1;if(this.hasKey)try{const{compare:i}=this;r=i(this.key,n)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=n,this.destination.next(t))}}function Ej(e,t){if(1&e&&(ct(0,"div",1),Y(1,"nbErrInfo")),2&e){const n=De();j("nb-r-str",function fa(e,t,n,r){const i=e+20,o=_(),s=kr(o,i);return Ao(o,i)?Qy(o,et(),t,s.transform,n,r,s):s.transform(n,r)}(1,1,n.control.errors,n.allErrInfo))}}function Mj(e,t){1&e&&(ee(0,"span",4),te(1,"*"),K())}function Tj(e,t){if(1&e&&ct(0,"nb-control-err",5),2&e){const n=De();j("control",n.control)("errInfo",n.errInfo)}}const Sj=[[["","field-label",""]],"*"],Ij=["[field-label]","*"],Ab=new I("common errors information");var Je=(()=>(function(e){e.REQUIRED="required",e.FILE_MAX_SIZE="fileMaxSize",e.FILE_MIN_SIZE="fileMinSize",e.FILE_TYPE="fileType",e.EQUAL="equal",e.MAX_LENGTH="maxlength",e.MIN_LENGTH="minlength",e.ARR_MAX_LENGTH="arrMaxLength",e.ARR_MIN_LENGTH="arrMinLength",e.WHITESPACE="whitespace"}(Je||(Je={})),Je))();let Aj=(()=>{class e{transform(n,r){const i=Object.keys(n||{})[0];return i&&(null==r?void 0:r[i])||""}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Z({name:"nbErrInfo",type:e,pure:!0}),e})(),Df=(()=>{class e{constructor(n={},r){this.commonErrInfo=n,this.changeDR=r,this.errInfo={},this.allErrInfo={},this.errControl=new Ka,this.hasErr=!1,this.destroy$=new Xe}ngOnChanges(n){const{control:r,errInfo:i}=n;r&&this.subscribeControlChange(),i&&this.updateAllErrInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllErrInfo(){this.allErrInfo=Object.assign(Object.assign({},this.commonErrInfo),this.errInfo),this.changeDR.markForCheck()}subscribeControlChange(){this.updateHasErr(this.control),this.control.statusChanges.pipe(Ei(this.destroy$)).subscribe(n=>this.updateHasErr(this.control))}updateHasErr(n){this.hasErr=n.dirty&&"INVALID"===n.status,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(Ab,8),m(Kt))},e.\u0275cmp=Jt({type:e,selectors:[["nb-control-err"]],inputs:{control:"control",errInfo:"errInfo"},features:[Ve],decls:1,vars:1,consts:[["class","err-info",3,"nb-r-str",4,"ngIf"],[1,"err-info",3,"nb-r-str"]],template:function(n,r){1&n&&me(0,Ej,2,4,"div",0),2&n&&j("ngIf",r.control&&r.hasErr)},directives:[Tb,xa],pipes:[Aj],styles:["[_nghost-%COMP%]{position:relative;top:100%;left:0;display:block;font-size:14px;color:red}.err-info[_ngcontent-%COMP%]{position:absolute;top:0;left:0;word-break:break-word}"],changeDetection:0}),e})(),xb=(()=>{class e{constructor(){this.errInfo={},this.required=!1}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["nb-field-item"]],inputs:{control:"control",errInfo:"errInfo",required:"required"},ngContentSelectors:Ij,decls:6,vars:2,consts:[[1,"field-label"],["class","label-required",4,"ngIf"],[1,"field-content"],["class","nb-control-err",3,"control","errInfo",4,"ngIf"],[1,"label-required"],[1,"nb-control-err",3,"control","errInfo"]],template:function(n,r){1&n&&(function wm(e){const t=_()[16][6];if(!t.projection){const r=t.projection=Xi(e?e.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=e?pS(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(Sj),ee(0,"label",0),me(1,Mj,2,0,"span",1),_c(2),K(),ee(3,"div",2),_c(4,1),me(5,Tj,1,2,"nb-control-err",3),K()),2&n&&(F(1),j("ngIf",r.required),F(4),j("ngIf",r.control))},directives:[Df,xa],styles:["[_nghost-%COMP%]{display:flex;align-items:center;margin-bottom:24px}[_nghost-%COMP%]:last-child{margin-bottom:0}.field-label[_ngcontent-%COMP%]{flex:0 0 120px;display:flex;justify-content:flex-end;align-items:center;padding:0 8px 0 4px;word-break:break-word}.field-label[_ngcontent-%COMP%]:empty{flex-basis:0;padding:0}.label-required[_ngcontent-%COMP%]{color:red}.field-content[_ngcontent-%COMP%]{flex:1 1 auto;position:relative;display:flex;align-items:center}.nb-control-err[_ngcontent-%COMP%]{position:absolute;width:100%}"],changeDetection:0}),e})(),xj=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo,hj]]}),e})();const Pt_arrLength=e=>t=>Array.isArray(t.value)?e.max&&t.value.length>e.max?{[Je.ARR_MAX_LENGTH]:!0}:e.min&&t.value.lengthn=>!t&&!e.dirty||mf(n.value,e.value)?null:{[Je.EQUAL]:!0},Pt_fileSize=e=>t=>{const n=t.value;return n instanceof File?e.max&&n.size>e.max?{[Je.FILE_MAX_SIZE]:!0}:e.min&&n.sizet=>e?bi.required(t):null,Pt_whitespace=(e=!0)=>t=>e||!t.value||!tf(t.value)||t.value.trim()?null:{[Je.WHITESPACE]:!0};let Nj=(()=>{class e{constructor(){}doFormArrayFn(n,r){n.controls.forEach(i=>r(i))}doFormGroupFn(n,r){Object.keys(n.controls).forEach(i=>r(n.get(i)))}getFormValidatorStrategies(){return{required:n=>Pt_required(n.required),max:n=>{var r;if(null!==(r=n.max)&&void 0!==r&&r)return bi.max(n.max)},min:n=>{var r;if(null!==(r=n.min)&&void 0!==r&&r)return bi.min(n.min)},maxLength:n=>{var r;if(null!==(r=n.maxLength)&&void 0!==r&&r)return bi.maxLength(n.maxLength)},minLength:n=>{var r;if(null!==(r=n.minLength)&&void 0!==r&&r)return bi.minLength(n.minLength)},arrMaxLength:n=>{var r;if(null!==(r=n.arrMaxLength)&&void 0!==r&&r)return Pt_arrLength({max:n.arrMaxLength})},arrMinLength:n=>{var r;if(null!==(r=n.arrMinLength)&&void 0!==r&&r)return Pt_arrLength({min:n.arrMinLength})},maxFileSize:n=>{var r;if(null!==(r=n.maxFileSize)&&void 0!==r&&r)return Pt_fileSize({max:n.maxFileSize})},minFileSize:n=>{var r;if(null!==(r=n.minFileSize)&&void 0!==r&&r)return Pt_fileSize({min:n.minFileSize})},fileType:n=>{var r;if(null===(r=n.fileType)||void 0===r?void 0:r.length)return(e=>t=>{const n=t.value;return n instanceof File&&e.length&&!e.includes(n.type)?{[Je.FILE_TYPE]:!0}:null})(n.fileType)},pattern:n=>{if(n.pattern)return bi.pattern(n.pattern)},whitespace:n=>Pt_whitespace(n.whitespace)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Rj=(()=>{class e{constructor(n){this.formTools=n}getValidatorsFromControlConfig(n){const r=this.formTools.getFormValidatorStrategies(),i=[];return Object.keys(n).forEach(o=>{var s;const a=null===(s=r[o])||void 0===s?void 0:s.call(r,n);a&&i.push(a)}),i}markAllAsDirty(n,r){null==n||n.markAsDirty(r);const i=o=>this.markAllAsDirty(o,r);n instanceof Qa?this.formTools.doFormArrayFn(n,i):n instanceof wi&&this.formTools.doFormGroupFn(n,i)}showAllErrInfo(n,r){null==n||n.markAllAsTouched(),this.markAllAsDirty(n,r),this.updateAllValueAndValidity(n,r)}updateAllValueAndValidity(n,r){null==n||n.updateValueAndValidity(r);const i=o=>this.updateAllValueAndValidity(o,r);n instanceof Qa?this.formTools.doFormArrayFn(n,i):n instanceof wi&&this.formTools.doFormGroupFn(n,i)}updateEqualControlsValidities(n,r){const{target:i,compared:o}=n;return Ib([i.statusChanges.pipe(vf(i.status)),o.statusChanges.pipe(vf(o.status))]).pipe(function bj(e,t){return n=>n.lift(new Cj(e,t))}((s,a)=>mf(s,a)),r?Ei(r):ut(()=>{})).subscribe(s=>{i.updateValueAndValidity(),o.updateValueAndValidity()})}}return e.\u0275fac=function(n){return new(n||e)(E(Nj))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function su(e,t){return new ae(t?n=>t.schedule(Fj,0,{error:e,subscriber:n}):n=>n.error(e))}function Fj({error:e,subscriber:t}){t.error(e)}const au=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),xi=new ae(e=>e.complete());function bf(e){return e?function Oj(e){return new ae(t=>e.schedule(()=>t.complete()))}(e):xi}function Nb(e){return new ae(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?je(n):bf()).subscribe(t)})}const Rb=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function Cf(e){return t=>0===e?bf():t.lift(new Pj(e))}class Pj{constructor(t){if(this.total=t,this.total<0)throw new Rb}call(t,n){return n.subscribe(new kj(t,this.total))}}class kj extends se{constructor(t,n){super(t),this.total=n,this.count=0}_next(t){const n=this.total,r=++this.count;r<=n&&(this.destination.next(t),r===n&&(this.destination.complete(),this.unsubscribe()))}}function Fb(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Vj(e,t,n))}}class Vj{constructor(t,n,r=!1){this.accumulator=t,this.seed=n,this.hasSeed=r}call(t,n){return n.subscribe(new Lj(t,this.accumulator,this.seed,this.hasSeed))}}class Lj extends se{constructor(t,n,r,i){super(t),this.accumulator=n,this._seed=r,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 n=this.index++;let r;try{r=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=r,this.destination.next(r)}}function wr(e,t){return function(r){return r.lift(new jj(e,t))}}class jj{constructor(t,n){this.predicate=t,this.thisArg=n}call(t,n){return n.subscribe(new Bj(t,this.predicate,this.thisArg))}}class Bj extends se{constructor(t,n,r){super(t),this.predicate=n,this.thisArg=r,this.count=0}_next(t){let n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(t)}}function Ni(e,t){return Be(e,t,1)}function wf(e){return function(n){return 0===e?bf():n.lift(new Hj(e))}}class Hj{constructor(t){if(this.total=t,this.total<0)throw new Rb}call(t,n){return n.subscribe(new Uj(t,this.total))}}class Uj extends se{constructor(t,n){super(t),this.total=n,this.ring=new Array,this.count=0}_next(t){const n=this.ring,r=this.total,i=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;ot.lift(new $j(e))}class $j{constructor(t){this.errorFactory=t}call(t,n){return n.subscribe(new Gj(t,this.errorFactory))}}class Gj extends se{constructor(t,n){super(t),this.errorFactory=n,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)}}}function qj(){return new au}function Pb(e=null){return t=>t.lift(new zj(e))}class zj{constructor(t){this.defaultValue=t}call(t,n){return n.subscribe(new Wj(t,this.defaultValue))}}class Wj extends se{constructor(t,n){super(t),this.defaultValue=n,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ri(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wr((i,o)=>e(i,o,r)):cs,Cf(1),n?Pb(t):Ob(()=>new au))}class Zj{constructor(t){this.callback=t}call(t,n){return n.subscribe(new Yj(t,this.callback))}}class Yj extends se{constructor(t,n){super(t),this.add(new ge(n))}}class Nn{constructor(t,n){this.id=t,this.url=n}}class Ef extends Nn{constructor(t,n,r="imperative",i=null){super(t,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Nn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kb extends Nn{constructor(t,n,r){super(t,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jj extends Nn{constructor(t,n,r){super(t,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xj extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tB extends Nn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class nB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vb{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Lb{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iB{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oB{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sB{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aB{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jb{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const U="primary";class uB{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Fi(e){return new uB(e)}const Bb="ngNavigationCancelingError";function Mf(e){const t=Error("NavigationCancelingError: "+e);return t[Bb]=!0,t}function cB(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return e===t}function Ub(e){return Array.prototype.concat.apply([],e)}function $b(e){return e.length>0?e[e.length-1]:null}function qe(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function hn(e){return mc(e)?e:vo(e)?je(Promise.resolve(e)):T(e)}const hB={exact:function zb(e,t,n){if(!Mr(e.segments,t.segments)||!uu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!zb(e.children[r],t.children[r],n))return!1;return!0},subset:Wb},Gb={exact:function pB(e,t){return fn(e,t)},subset:function gB(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Hb(e[n],t[n]))},ignored:()=>!0};function qb(e,t,n){return hB[n.paths](e.root,t.root,n.matrixParams)&&Gb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Wb(e,t,n){return Kb(e,t,t.segments,n)}function Kb(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Mr(i,n)||t.hasChildren()||!uu(i,n,r))}if(e.segments.length===n.length){if(!Mr(e.segments,n)||!uu(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!Wb(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Mr(e.segments,i)&&uu(e.segments,i,r)&&e.children[U])&&Kb(e.children[U],t,o,r)}}function uu(e,t,n){return t.every((r,i)=>Gb[n](e[i].parameters,r.parameters))}class Er{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fi(this.queryParams)),this._queryParamMap}toString(){return _B.serialize(this)}}class q{constructor(t,n){this.segments=t,this.children=n,this.parent=null,qe(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lu(this)}}class Zo{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Fi(this.parameters)),this._parameterMap}toString(){return Xb(this)}}function Mr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}class Qb{}class Zb{parse(t){const n=new SB(t);return new Er(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Yo(t.root,!0)}`,r=function bB(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${cu(n)}=${cu(i)}`).join("&"):`${cu(n)}=${cu(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams),i="string"==typeof t.fragment?`#${function vB(e){return encodeURI(e)}(t.fragment)}`:"";return`${n}${r}${i}`}}const _B=new Zb;function lu(e){return e.segments.map(t=>Xb(t)).join("/")}function Yo(e,t){if(!e.hasChildren())return lu(e);if(t){const n=e.children[U]?Yo(e.children[U],!1):"",r=[];return qe(e.children,(i,o)=>{o!==U&&r.push(`${o}:${Yo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function yB(e,t){let n=[];return qe(e.children,(r,i)=>{i===U&&(n=n.concat(t(r,i)))}),qe(e.children,(r,i)=>{i!==U&&(n=n.concat(t(r,i)))}),n}(e,(r,i)=>i===U?[Yo(e.children[U],!1)]:[`${i}:${Yo(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[U]?`${lu(e)}/${n[0]}`:`${lu(e)}/(${n.join("//")})`}}function Yb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cu(e){return Yb(e).replace(/%3B/gi,";")}function Tf(e){return Yb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function du(e){return decodeURIComponent(e)}function Jb(e){return du(e.replace(/\+/g,"%20"))}function Xb(e){return`${Tf(e.path)}${function DB(e){return Object.keys(e).map(t=>`;${Tf(t)}=${Tf(e[t])}`).join("")}(e.parameters)}`}const CB=/^[^\/()?;=#]+/;function fu(e){const t=e.match(CB);return t?t[0]:""}const wB=/^[^=?&#]+/,MB=/^[^&#]+/;class SB{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[U]=new q(t,n)),r}parseSegment(){const t=fu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zo(du(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=fu(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=fu(this.remaining);i&&(r=i,this.capture(r))}t[du(n)]=du(r)}parseQueryParam(t){const n=function EB(e){const t=e.match(wB);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function TB(e){const t=e.match(MB);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Jb(n),o=Jb(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=fu(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=U);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[U]:new q([],s),this.consumeOptional("//")}return n}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 eC{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Sf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Sf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=If(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return If(t,this._root).map(n=>n.value)}}function Sf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Sf(e,n);if(r)return r}return null}function If(e,t){if(e===t.value)return[t];for(const n of t.children){const r=If(e,n);if(r.length)return r.unshift(t),r}return[]}class Rn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Oi(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class tC extends eC{constructor(t,n){super(t),this.snapshot=n,Af(this,t)}toString(){return this.snapshot.toString()}}function nC(e,t){const n=function IB(e,t){const s=new hu([],{},{},"",{},U,t,null,e.root,-1,{});return new iC("",new Rn(s,[]))}(e,t),r=new Dt([new Zo("",{})]),i=new Dt({}),o=new Dt({}),s=new Dt({}),a=new Dt(""),u=new Pi(r,i,s,a,o,U,t,n.root);return u.snapshot=n.root,new tC(new Rn(u,[]),n)}class Pi{constructor(t,n,r,i,o,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=u}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(Q(t=>Fi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(t=>Fi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rC(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function AB(e){return e.reduce((t,n)=>({params:Object.assign(Object.assign({},t.params),n.params),data:Object.assign(Object.assign({},t.data),n.data),resolve:Object.assign(Object.assign({},t.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class hu{constructor(t,n,r,i,o,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}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=Fi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class iC extends eC{constructor(t,n){super(n),this.url=t,Af(this,n)}toString(){return oC(this._root)}}function Af(e,t){t.value._routerState=e,t.children.forEach(n=>Af(e,n))}function oC(e){const t=e.children.length>0?` { ${e.children.map(oC).join(", ")} } `:"";return`${e.value}${t}`}function xf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,fn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),fn(t.params,n.params)||e.params.next(n.params),function dB(e,t){if(e.length!==t.length)return!1;for(let n=0;nfn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Nf(e.parent,t.parent))}function Jo(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function NB(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Jo(e,r,i);return Jo(e,r)})}(e,t,n);return new Rn(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Jo(e,a)),s}}const r=function RB(e){return new Pi(new Dt(e.url),new Dt(e.params),new Dt(e.queryParams),new Dt(e.fragment),new Dt(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>Jo(e,o));return new Rn(r,i)}}function pu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xo(e){return"object"==typeof e&&null!=e&&e.outlets}function Rf(e,t,n,r,i){let o={};if(r&&qe(r,(a,u)=>{o[u]=Array.isArray(a)?a.map(l=>`${l}`):`${a}`}),e===t)return new Er(n,o,i);const s=sC(e,t,n);return new Er(s,o,i)}function sC(e,t,n){const r={};return qe(e.children,(i,o)=>{r[o]=i===t?n:sC(i,t,n)}),new q(e.segments,r)}class aC{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&pu(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Xo);if(i&&i!==$b(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ff{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function uC(e,t,n){if(e||(e=new q([],{})),0===e.segments.length&&e.hasChildren())return gu(e,t,n);const r=function LB(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=e.segments[i],a=n[r];if(Xo(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!cC(u,l,s))return o;r+=2}else{if(!cC(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=uC(e.children[s],t,o))}),qe(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new q(e.segments,i)}}function Of(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Of(new q([],{}),0,n))}),t}function lC(e){const t={};return qe(e,(n,r)=>t[r]=`${n}`),t}function cC(e,t,n){return e==n.path&&fn(t,n.parameters)}class HB{constructor(t,n,r,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=Oi(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),qe(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Oi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Oi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const i=Oi(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new aB(o.value.snapshot))}),t.children.length&&this.forwardEvent(new oB(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(xf(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function UB(e){for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=i,s.resolver=u,s.outlet&&s.outlet.activateWith(i,u),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Pf{constructor(t,n){this.routes=t,this.module=n}}function tr(e){return"function"==typeof e}function Tr(e){return e instanceof Er}const es=Symbol("INITIAL_VALUE");function ts(){return bt(e=>Ib(e.map(t=>t.pipe(Cf(1),vf(es)))).pipe(Fb((t,n)=>{let r=!1;return n.reduce((i,o,s)=>i!==es?i:(o===es&&(r=!0),r||!1!==o&&s!==n.length-1&&!Tr(o)?i:o),t)},es),wr(t=>t!==es),Q(t=>Tr(t)?t:!0===t),Cf(1)))}class KB{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ns,this.attachRef=null}}class ns{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const r=this.getOrCreateContext(t);r.outlet=n,this.contexts.set(t,r)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new KB,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}let dC=(()=>{class e{constructor(n,r,i,o,s){this.parentContexts=n,this.location=r,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.name=o||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.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 n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new QB(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(m(ns),m(Wt),m(Mo),function Zi(e){return function xE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&ct(0,"router-outlet")},directives:[dC],encapsulation:2}),e})();function hC(e,t=""){for(let n=0;nkt(r)===t);return n.push(...e.filter(r=>kt(r)!==t)),n}const gC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mu(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},gC):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||cB)(n,e,t);if(!o)return Object.assign({},gC);const s={};qe(o.posParams,(u,l)=>{s[l]=u.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function yu(e,t,n,r,i="corrected"){if(n.length>0&&function e2(e,t,n){return n.some(r=>_u(e,t,r)&&kt(r)!==U)}(e,n,r)){const s=new q(t,function XB(e,t,n,r){const i={};i[U]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&kt(o)!==U){const s=new q([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[kt(o)]=s}return i}(e,t,r,new q(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function t2(e,t,n){return n.some(r=>_u(e,t,r))}(e,n,r)){const s=new q(e.segments,function JB(e,t,n,r,i,o){const s={};for(const a of r)if(_u(e,n,a)&&!i[kt(a)]){const u=new q([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[kt(a)]=u}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const o=new q(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function _u(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function mC(e,t,n,r){return!!(kt(e)===r||r!==U&&_u(t,n,e))&&("**"===e.path||mu(t,e,n).matched)}function yC(e,t,n){return 0===t.length&&!e.children[n]}class vu{constructor(t){this.segmentGroup=t||null}}class _C{constructor(t){this.urlTree=t}}function rs(e){return su(new vu(e))}function vC(e){return su(new _C(e))}function n2(e){return su(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`))}class o2{constructor(t,n,r,i,o){this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(wn)}apply(){const t=yu(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,U).pipe(Q(o=>this.createUrlTree(Vf(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(er(o=>{if(o instanceof _C)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof vu?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,U).pipe(Q(i=>this.createUrlTree(Vf(i),t.queryParams,t.fragment))).pipe(er(i=>{throw i instanceof vu?this.noMatchError(i):i}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,n,r){const i=t.segments.length>0?new q([],{[U]:t}):t;return new Er(i,n,r)}expandSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(Q(o=>new q([],o))):this.expandSegment(t,r,n,r.segments,i,!0)}expandChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return je(i).pipe(Ni(o=>{const s=r.children[o],a=pC(n,o);return this.expandSegmentGroup(t,a,s,o).pipe(Q(u=>({segment:u,outlet:o})))}),Fb((o,s)=>(o[s.outlet]=s.segment,o),{}),function Kj(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wr((i,o)=>e(i,o,r)):cs,wf(1),n?Pb(t):Ob(()=>new au))}())}expandSegment(t,n,r,i,o,s){return je(r).pipe(Ni(a=>this.expandSegmentAgainstRoute(t,n,r,a,i,o,s).pipe(er(l=>{if(l instanceof vu)return T(null);throw l}))),Ri(a=>!!a),er((a,u)=>{if(a instanceof au||"EmptyError"===a.name)return yC(n,i,o)?T(new q([],{})):rs(n);throw a}))}expandSegmentAgainstRoute(t,n,r,i,o,s,a){return mC(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s):rs(n):rs(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?vC(o):this.lineralizeSegments(r,o).pipe(Be(s=>{const a=new q(s,{});return this.expandSegment(t,a,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=mu(n,i,o);if(!a)return rs(n);const d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?vC(d):this.lineralizeSegments(i,d).pipe(Be(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){if("**"===r.path)return r.loadChildren?(r._loadedConfig?T(r._loadedConfig):this.configLoader.load(t.injector,r)).pipe(Q(d=>(r._loadedConfig=d,new q(i,{})))):T(new q(i,{}));const{matched:s,consumedSegments:a,remainingSegments:u}=mu(n,r,i);return s?this.getChildConfig(t,r,i).pipe(Be(c=>{const d=c.module,f=c.routes,{segmentGroup:h,slicedSegments:p}=yu(n,a,u,f),y=new q(h.segments,h.children);if(0===p.length&&y.hasChildren())return this.expandChildren(d,f,y).pipe(Q(w=>new q(a,w)));if(0===f.length&&0===p.length)return T(new q(a,{}));const v=kt(r)===o;return this.expandSegment(d,y,f,p,v?U:o,!0).pipe(Q(g=>new q(a.concat(g.segments),g.children)))})):rs(n)}getChildConfig(t,n,r){return n.children?T(new Pf(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?T(n._loadedConfig):this.runCanLoadGuards(t.injector,n,r).pipe(Be(i=>i?this.configLoader.load(t.injector,n).pipe(Q(o=>(n._loadedConfig=o,o))):function r2(e){return su(Mf(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(n))):T(new Pf([],t))}runCanLoadGuards(t,n,r){const i=n.canLoad;if(!i||0===i.length)return T(!0);const o=i.map(s=>{const a=t.get(s);let u;if(function GB(e){return e&&tr(e.canLoad)}(a))u=a.canLoad(n,r);else{if(!tr(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return hn(u)});return T(o).pipe(ts(),ut(s=>{if(!Tr(s))return;const a=Mf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Q(s=>!0===s))}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return T(r);if(i.numberOfChildren>1||!i.children[U])return n2(t.redirectTo);i=i.children[U]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreatreUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new Er(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return qe(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return qe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,i)}),new q(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${n.path}'.`);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}function Vf(e){const t={};for(const r of Object.keys(e.children)){const o=Vf(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function s2(e){if(1===e.numberOfChildren&&e.children[U]){const t=e.children[U];return new q(e.segments.concat(t.segments),t.children)}return e}(new q(e.segments,t))}class DC{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Du{constructor(t,n){this.component=t,this.route=n}}function u2(e,t,n){const r=e._root;return is(r,t?t._root:null,n,[r.value])}function bu(e,t,n){const r=function c2(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function is(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Oi(t);return e.children.forEach(s=>{(function d2(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function f2(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Mr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Mr(e.url,t.url)||!fn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nf(e,t)||!fn(e.queryParams,t.queryParams);default:return!Nf(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new DC(r)):(o.data=s.data,o._resolvedData=s._resolvedData),is(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Du(a.outlet.component,s))}else s&&os(t,a,i),i.canActivateChecks.push(new DC(r)),is(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),qe(o,(s,a)=>os(s,n.getContext(a),i)),i}function os(e,t,n){const r=Oi(e),i=e.value;qe(r,(o,s)=>{os(o,i.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Du(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class b2{}function bC(e){return new ae(t=>t.error(e))}class w2{constructor(t,n,r,i,o,s){this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=yu(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,U);if(null===n)return null;const r=new hu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Rn(r,n),o=new iC(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const n=t.value,r=rC(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,r)}processChildren(t,n){const r=[];for(const o of Object.keys(n.children)){const s=n.children[o],a=pC(t,o),u=this.processSegmentGroup(a,s,o);if(null===u)return null;r.push(...u)}const i=CC(r);return function E2(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}processSegment(t,n,r,i){for(const o of t){const s=this.processSegmentAgainstRoute(o,n,r,i);if(null!==s)return s}return yC(n,r,i)?[]:null}processSegmentAgainstRoute(t,n,r,i){if(t.redirectTo||!mC(t,n,r,i))return null;let o,s=[],a=[];if("**"===t.path){const h=r.length>0?$b(r).parameters:{};o=new hu(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MC(t),kt(t),t.component,t,wC(n),EC(n)+r.length,TC(t))}else{const h=mu(n,t,r);if(!h.matched)return null;s=h.consumedSegments,a=h.remainingSegments,o=new hu(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MC(t),kt(t),t.component,t,wC(n),EC(n)+s.length,TC(t))}const u=function M2(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=yu(n,s,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new Rn(o,h)]}if(0===u.length&&0===c.length)return[new Rn(o,[])];const d=kt(t)===i,f=this.processSegment(u,l,c,d?U:i);return null===f?null:[new Rn(o,f)]}}function T2(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function CC(e){const t=[],n=new Set;for(const r of e){if(!T2(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=CC(r.children);t.push(new Rn(r.value,i))}return t.filter(r=>!n.has(r))}function wC(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function EC(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function MC(e){return e.data||{}}function TC(e){return e.resolve||{}}function SC(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Lf(e){return bt(t=>{const n=e(t);return n?je(n).pipe(Q(()=>t)):T(t)})}class O2 extends class F2{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const jf=new I("ROUTES");class IC{constructor(t,n,r,i){this.injector=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}load(t,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const i=this.loadModuleFactory(n.loadChildren).pipe(Q(o=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=o.create(t);return new Pf(Ub(s.injector.get(jf,void 0,O.Self|O.Optional)).map(kf),s)}),er(o=>{throw n._loader$=void 0,o}));return n._loader$=new ph(i,()=>new Xe).pipe(Su()),n._loader$}loadModuleFactory(t){return hn(t()).pipe(Be(n=>n instanceof $y?T(n):je(this.compiler.compileModuleAsync(n))))}}class k2{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function V2(e){throw e}function L2(e,t,n){return t.parse("/")}function AC(e,t){return T(null)}const j2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},B2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ct=(()=>{class e{constructor(n,r,i,o,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Xe,this.errorHandler=V2,this.malformedUriErrorHandler=L2,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:AC,afterPreactivation:AC},this.urlHandlingStrategy=new k2,this.routeReuseStrategy=new O2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(wn),this.console=s.get(ix);const d=s.get($e);this.isNgZoneEnabled=d instanceof $e&&$e.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function fB(){return new Er(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new IC(s,a,f=>this.triggerEvent(new Vb(f)),f=>this.triggerEvent(new Lb(f))),this.routerState=nC(this.currentUrlTree,this.rootComponentType),this.transitions=new Dt({id:0,targetPageId: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()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(wr(i=>0!==i.id),Q(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),bt(i=>{let o=!1,s=!1;return T(i).pipe(ut(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),bt(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return xC(a.source)&&(this.browserUrlTree=a.extractedUrl),T(a).pipe(bt(d=>{const f=this.transitions.getValue();return r.next(new Ef(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?xi:Promise.resolve(d)}),function a2(e,t,n,r){return bt(i=>function i2(e,t,n,r,i){return new o2(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(Q(o=>Object.assign(Object.assign({},i),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ut(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function S2(e,t,n,r,i){return Be(o=>function C2(e,t,n,r,i="emptyOnly",o="legacy"){try{const s=new w2(e,t,n,r,i,o).recognize();return null===s?bC(new b2):T(s)}catch(s){return bC(s)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(Q(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ut(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new Xj(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:y,extras:v}=a,D=new Ef(f,this.serializeUrl(h),p,y);r.next(D);const g=nC(h,this.rootComponentType).snapshot;return T(Object.assign(Object.assign({},a),{targetSnapshot:g,urlAfterRedirects:h,extras:Object.assign(Object.assign({},v),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),xi}),Lf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ut(a=>{const u=new eB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Q(a=>Object.assign(Object.assign({},a),{guards:u2(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function h2(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?T(Object.assign(Object.assign({},n),{guardsResult:!0})):function p2(e,t,n,r){return je(e).pipe(Be(i=>function D2(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?T(o.map(a=>{const u=bu(a,t,i);let l;if(function WB(e){return e&&tr(e.canDeactivate)}(u))l=hn(u.canDeactivate(e,t,n,r));else{if(!tr(u))throw new Error("Invalid CanDeactivate guard");l=hn(u(e,t,n,r))}return l.pipe(Ri())})).pipe(ts()):T(!0)}(i.component,i.route,n,t,r)),Ri(i=>!0!==i,!0))}(s,r,i,e).pipe(Be(a=>a&&function $B(e){return"boolean"==typeof e}(a)?function g2(e,t,n,r){return je(t).pipe(Ni(i=>_f(function y2(e,t){return null!==e&&t&&t(new iB(e)),T(!0)}(i.route.parent,r),function m2(e,t){return null!==e&&t&&t(new sB(e)),T(!0)}(i.route,r),function v2(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function l2(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Nb(()=>T(s.guards.map(u=>{const l=bu(u,s.node,n);let c;if(function zB(e){return e&&tr(e.canActivateChild)}(l))c=hn(l.canActivateChild(r,e));else{if(!tr(l))throw new Error("Invalid CanActivateChild guard");c=hn(l(r,e))}return c.pipe(Ri())})).pipe(ts())));return T(o).pipe(ts())}(e,i.path,n),function _2(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return T(!0);const i=r.map(o=>Nb(()=>{const s=bu(o,t,n);let a;if(function qB(e){return e&&tr(e.canActivate)}(s))a=hn(s.canActivate(t,e));else{if(!tr(s))throw new Error("Invalid CanActivate guard");a=hn(s(t,e))}return a.pipe(Ri())}));return T(i).pipe(ts())}(e,i.route,n))),Ri(i=>!0!==i,!0))}(r,o,e,t):T(a)),Q(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ut(a=>{if(Tr(a.guardsResult)){const l=Mf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new tB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),wr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Lf(a=>{if(a.guards.canActivateChecks.length)return T(a).pipe(ut(u=>{const l=new nB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),bt(u=>{let l=!1;return T(u).pipe(function I2(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return T(n);let o=0;return je(i).pipe(Ni(s=>function A2(e,t,n,r){return function x2(e,t,n,r){const i=SC(e);if(0===i.length)return T({});const o={};return je(i).pipe(Be(s=>function N2(e,t,n,r){const i=bu(e,t,r);return hn(i.resolve?i.resolve(t,n):i(t,n))}(e[s],t,n,r).pipe(ut(a=>{o[s]=a}))),wf(1),Be(()=>SC(o).length===i.length?T(o):xi))}(e._resolve,e,t,r).pipe(Q(o=>(e._resolvedData=o,e.data=Object.assign(Object.assign({},e.data),rC(e,n).resolve),null)))}(s.route,r,e,t)),ut(()=>o++),wf(1),Be(s=>o===i.length?T(n):xi))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ut({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ut(u=>{const l=new rB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),Lf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Q(a=>{const u=function xB(e,t,n){const r=Jo(e,t._root,n?n._root:void 0);return new tC(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),ut(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>Q(r=>(new HB(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ut({next(){o=!0},complete(){o=!0}}),function Qj(e){return t=>t.lift(new Zj(e))}(()=>{var a;o||s||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),er(a=>{if(s=!0,function lB(e){return e&&e[Bb]}(a)){const u=Tr(a.url);u||(this.navigated=!0,this.restoreHistory(i,!0));const l=new kb(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xC(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const u=new Jj(i.id,this.serializeUrl(i.extractedUrl),a);r.next(u);try{i.resolve(this.errorHandler(a))}catch(l){i.reject(l)}}return xi}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const o={replaceUrl:!0},s=(null===(i=n.state)||void 0===i?void 0:i.navigationId)?n.state:null;if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const a=this.parseUrl(n.url);this.scheduleNavigation(a,r,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){hC(n),this.config=n.map(kf),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(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=i||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function FB(e,t,n,r,i){if(0===n.length)return Rf(t.root,t.root,t.root,r,i);const o=function OB(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new aC(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return qe(o.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new aC(n,t,r)}(n);if(o.toRoot())return Rf(t.root,t.root,new q([],{}),r,i);const s=function PB(e,t,n){if(e.isAbsolute)return new Ff(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const o=n.snapshot._urlSegment;return new Ff(o,o===t.root,0)}const r=pu(e.commands[0])?0:1;return function kB(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Ff(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?gu(s.segmentGroup,s.index,o.commands):uC(s.segmentGroup,s.index,o.commands);return Rf(t.root,s.segmentGroup,a,r,i)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Tr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function H2(e){for(let t=0;t{const o=n[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Qo(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,o,s){var a,u;if(this.disposed)return Promise.resolve(!1);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((p,y)=>{l=p,c=y});const f=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),h=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):h=0,this.setTransition({id:f,targetPageId:h,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(p=>Promise.reject(p))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(n,r=!1){var i,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const i=new kb(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){pc()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function xC(e){return"imperative"!==e}class NC{}class RC{preload(t,n){return T(null)}}let FC=(()=>{class e{constructor(n,r,i,o){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=new IC(i,r,u=>n.triggerEvent(new Vb(u)),u=>n.triggerEvent(new Lb(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(wr(n=>n instanceof Qo),Ni(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(wn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(n,o)):o.children&&i.push(this.processRoutes(n,o.children));return je(i).pipe(Bi(),Q(o=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?T(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Be(o=>(r._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return e.\u0275fac=function(n){return new(n||e)(E(Ct),E(T_),E(rt),E(NC))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Uf=(()=>{class e{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Ef?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Qo&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof jb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new jb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){pc()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Sr=new I("ROUTER_CONFIGURATION"),OC=new I("ROUTER_FORROOT_GUARD"),q2=[cd,{provide:Qb,useClass:Zb},{provide:Ct,useFactory:function Z2(e,t,n,r,i,o,s={},a,u){const l=new Ct(null,e,t,n,r,i,Ub(o));return a&&(l.urlHandlingStrategy=a),u&&(l.routeReuseStrategy=u),function Y2(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,l),s.enableTracing&&l.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),l},deps:[Qb,ns,cd,rt,T_,jf,Sr,[class P2{},new Hn],[class R2{},new Hn]]},ns,{provide:Pi,useFactory:function J2(e){return e.routerState.root},deps:[Ct]},FC,RC,class G2{preload(t,n){return n().pipe(er(()=>T(null)))}},{provide:Sr,useValue:{enableTracing:!1}}];function z2(){return new N_("Router",Ct)}let PC=(()=>{class e{constructor(n,r){}static forRoot(n,r){return{ngModule:e,providers:[q2,kC(n),{provide:OC,useFactory:Q2,deps:[[Ct,new Hn,new ro]]},{provide:Sr,useValue:r||{}},{provide:Di,useFactory:K2,deps:[gr,[new Bs(ld),new Hn],Sr]},{provide:Uf,useFactory:W2,deps:[Ct,cR,Sr]},{provide:NC,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:RC},{provide:N_,multi:!0,useFactory:z2},[$f,{provide:zc,multi:!0,useFactory:X2,deps:[$f]},{provide:VC,useFactory:eH,deps:[$f]},{provide:M_,multi:!0,useExisting:VC}]]}}static forChild(n){return{ngModule:e,providers:[kC(n)]}}}return e.\u0275fac=function(n){return new(n||e)(E(OC,8),E(Ct,8))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();function W2(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Uf(e,t,n)}function K2(e,t,n={}){return n.useHash?new Zx(e,t):new Z_(e,t)}function Q2(e){return"guarded"}function kC(e){return[{provide:PE,multi:!0,useValue:e},{provide:jf,multi:!0,useValue:e}]}let $f=(()=>{class e{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Xe}appInitializer(){return this.injector.get(Wx,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),o=this.injector.get(Ct),s=this.injector.get(Sr);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?T(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),o.initialNavigation()):r(!0),i})}bootstrapListener(n){const r=this.injector.get(Sr),i=this.injector.get(FC),o=this.injector.get(Uf),s=this.injector.get(Ct),a=this.injector.get(nd);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),i.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(n){return new(n||e)(E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function X2(e){return e.appInitializer.bind(e)}function eH(e){return e.bootstrapListener.bind(e)}const VC=new I("Router Initializer"),nH=[];let rH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[PC.forRoot(nH)],PC]}),e})();function iH(e,t){if(1&e){const n=function _m(){return _()}();ee(0,"form",6)(1,"nb-field-item",7)(2,"span",8),te(3),Y(4,"nbTrans"),K(),ct(5,"input",9),K(),ee(6,"nb-field-item",10)(7,"span",8),te(8),Y(9,"nbTrans"),K(),ct(10,"input",9),K(),ee(11,"nb-field-item",10)(12,"span",8),te(13),Y(14,"nbTrans"),K(),ee(15,"input",11),Le("change",function(i){return function Fh(e){return R.lFrame.contextLView=e,e[8]}(n),De().onChangeFile(i)}),K()(),ee(16,"nb-field-item",12)(17,"span",8),te(18),Y(19,"nbTrans"),K(),ct(20,"input",9),K(),ee(21,"nb-field-item",12)(22,"span",8),te(23),Y(24,"nbTrans"),K(),ct(25,"input",9),K(),ee(26,"nb-field-item",10)(27,"span",8),te(28),Y(29,"nbTrans"),K(),ct(30,"input",9),K()()}if(2&e){const n=De();j("formGroup",n.form),F(1),j("required",!0)("control",n.field1Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(4,23,"demoContent.field1"),"\uff1a"),F(2),j("formControl",n.field1Ctrl),F(1),j("control",n.field2Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(9,25,"demoContent.field2"),"\uff1a"),F(2),j("formControl",n.field2Ctrl),F(1),j("control",n.field3Ctrl)("errInfo",n.errInfo2),F(2),bn("",oe(14,27,"demoContent.field3"),"\uff1a"),F(3),j("control",n.field4Ctrl),F(2),bn("",oe(19,29,"demoContent.field4"),"\uff1a"),F(2),j("formControl",n.field4Ctrl),F(1),j("control",n.field5Ctrl),F(2),bn("",oe(24,31,"demoContent.field5"),"\uff1a"),F(2),j("formControl",n.field5Ctrl),F(1),j("control",n.field6Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(29,33,"demoContent.field6"),"\uff1a"),F(2),j("formControl",n.field6Ctrl)}}function oH(e,t){if(1&e&&(ee(0,"form",13),ct(1,"input",14)(2,"nb-control-err",10),K()),2&e){const n=De();j("formGroup",n.form),F(2),j("control",n.field1Ctrl)("errInfo",n.errInfo1)}}let sH=(()=>{class e{constructor(n,r,i){this.fb=n,this.formService=r,this.transService=i,this.errInfo1={[Je.REQUIRED]:this.transService.translationAsync("errors.required"),[Je.WHITESPACE]:this.transService.translationAsync("errors.required")},this.errInfo2={[Je.FILE_MAX_SIZE]:"The file max size is 500kb!"}}get field1Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field1")}get field2Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field2")}get field3Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field3")}get field4Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field4")}get field5Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field5")}get field6Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field6")}ngOnInit(){this.buildForm(),this.formService.updateEqualControlsValidities({target:this.field4Ctrl,compared:this.field5Ctrl})}changeLanguage(n){this.transService.changeLangSync("en"===n?xn.EN:xn.ZH_CN)}resetCtrl1(){this.field1Ctrl.reset()}onChangeFile(n){var r;const i=n.target;i&&(null===(r=i.files)||void 0===r?void 0:r.length)&&(this.field3Ctrl.markAsDirty(),this.field3Ctrl.setValue(i.files[0]))}onSubmit(){this.formService.showAllErrInfo(this.form)}buildForm(){this.form=this.fb.group({field1:[null,[Pt_required(!0)]],field2:[null,[Pt_whitespace(!1)]],field3:[void 0,this.formService.getValidatorsFromControlConfig({fileType:["image/svg+xml","image/jpeg"],maxFileSize:5e5,minFileSize:1e5})],field4:[""],field5:[null],field6:[null,[Pt_required(!0)]]}),this.field4Ctrl.setValidators([Pt_equal(this.field5Ctrl,!1)]),this.field5Ctrl.setValidators([Pt_equal(this.field4Ctrl,!1)]),this.field6Ctrl.markAsDirty()}}return e.\u0275fac=function(n){return new(n||e)(m(GF),m(Rj),m(ou))},e.\u0275cmp=Jt({type:e,selectors:[["app-root"]],decls:49,vars:35,consts:[["href","https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md","target","_blank"],["href","https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/CHANGELOG.md","target","_blank"],["type","button",3,"click"],[3,"formGroup",4,"ngIf"],["style","margin-bottom: 20px;width: 200px;",3,"formGroup",4,"ngIf"],[3,"click"],[3,"formGroup"],[3,"required","control","errInfo"],["field-label",""],["type","text",3,"formControl"],[3,"control","errInfo"],["type","file",3,"change"],[3,"control"],[2,"margin-bottom","20px","width","200px",3,"formGroup"],["type","text","formControlName","field1"]],template:function(n,r){1&n&&(ee(0,"h2")(1,"a",0),te(2," Document "),K(),ee(3,"a",1),te(4," Changelog "),K()(),ct(5,"hr"),ee(6,"h3")(7,"button",2),Le("click",function(){return r.changeLanguage("zh-CN")}),te(8,"\u5207\u6362\u4e3a\u4e2d\u6587"),K(),ee(9,"button",2),Le("click",function(){return r.changeLanguage("en")}),te(10,"switch as English"),K()(),me(11,iH,31,35,"form",3),ct(12,"hr"),ee(13,"h5"),te(14),Y(15,"nbTrans"),K(),me(16,oH,3,3,"form",4),ct(17,"hr"),ee(18,"button",2),Le("click",function(){return r.onSubmit()}),te(19),Y(20,"nbTrans"),K(),ee(21,"button",5),Le("click",function(){return r.resetCtrl1()}),te(22),Y(23,"nbTrans"),K(),ee(24,"div")(25,"p"),te(26),Y(27,"nbTrans"),K(),ee(28,"p"),te(29),Y(30,"nbTrans"),K(),ee(31,"p"),te(32),Y(33,"nbTrans"),K(),ee(34,"p"),te(35),Y(36,"nbTrans"),K(),ee(37,"p"),te(38),Y(39,"nbTrans"),K(),ee(40,"p"),te(41),Y(42,"nbTrans"),K(),ee(43,"p"),te(44),Y(45,"nbTrans"),K(),ee(46,"p"),te(47),Y(48,"nbTrans"),K()()),2&n&&(F(11),j("ngIf",r.form),F(3),Fe(oe(15,13,"demoContent.useComp")),F(2),j("ngIf",r.form),F(3),Fe(oe(20,15,"demoContent.submit")),F(3),Fe(oe(23,17,"demoContent.resetField1")),F(4),Fe(oe(27,19,"demoContent.desc")),F(3),Fe(oe(30,21,"demoContent.desc1")),F(3),Fe(oe(33,23,"demoContent.desc2")),F(3),Fe(oe(36,25,"demoContent.desc3")),F(3),Fe(oe(39,27,"demoContent.desc4")),F(3),Fe(oe(42,29,"demoContent.desc5")),F(3),Fe(oe(45,31,"demoContent.desc6")),F(3),Fe(oe(48,33,"demoContent.desc7")))},directives:[xa,gD,Xv,Za,xb,Va,Jv,Kd,Yd,Df],pipes:[Eb],styles:["h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 8px}form[_ngcontent-%COMP%]{width:300px}"]}),e})();class LC{}class jC{}class Fn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(n,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fn?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(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Fn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Fn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class aH{encodeKey(t){return BC(t)}encodeValue(t){return BC(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const lH=/%(\d[a-f0-9])/gi,cH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function BC(e){return encodeURIComponent(e).replace(lH,(t,n)=>{var r;return null!==(r=cH[n])&&void 0!==r?r:t})}function HC(e){return`${e}`}class nr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new aH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function uH(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new nr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}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 n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(HC(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(HC(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class dH{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function UC(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function $C(e){return"undefined"!=typeof Blob&&e instanceof Blob}function GC(e){return"undefined"!=typeof FormData&&e instanceof FormData}class ss{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function fH(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fn),this.context||(this.context=new dH),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),c)),new ss(r,i,s,{params:c,headers:l,context:d,reportProgress:u,responseType:o,withCredentials:a})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class Gf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Fn,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class qf extends Gf{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new qf({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 Cu extends Gf{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cu({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 qC extends Gf{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 zf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let zC=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof ss)o=n;else{let u,l;u=i.headers instanceof Fn?i.headers:new Fn(i.headers),i.params&&(l=i.params instanceof nr?i.params:new nr({fromObject:i.params})),o=new ss(n,r,void 0!==i.body?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=T(o).pipe(Ni(u=>this.handler.handle(u)));if(n instanceof ss||"events"===i.observe)return s;const a=s.pipe(wr(u=>u instanceof Cu));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Q(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Q(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new nr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,zf(i,r))}post(n,r,i={}){return this.request("POST",n,zf(i,r))}put(n,r,i={}){return this.request("PUT",n,zf(i,r))}}return e.\u0275fac=function(n){return new(n||e)(E(LC))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class WC{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const KC=new I("HTTP_INTERCEPTORS");let pH=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const gH=/^\)\]\}',?\n/;let QC=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ae(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Fn(i.getAllResponseHeaders()),y=function mH(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new qf({headers:p,status:i.status,statusText:h,url:y}),s},u=()=>{let{headers:h,status:p,statusText:y,url:v}=a(),D=null;204!==p&&(D=void 0===i.response?i.responseText:i.response),0===p&&(p=D?200:0);let g=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const w=D;D=D.replace(gH,"");try{D=""!==D?JSON.parse(D):null}catch(N){D=w,g&&(g=!1,D={error:N,text:D})}}g?(r.next(new Cu({body:D,headers:h,status:p,statusText:y,url:v||void 0})),r.complete()):r.error(new qC({error:D,headers:h,status:p,statusText:y,url:v||void 0}))},l=h=>{const{url:p}=a(),y=new qC({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(y)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!i.responseText&&(p.partialText=i.responseText),r.next(p)},f=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),n.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),r.next({type:Ae.Sent}),()=>{i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),n.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(E(pv))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Wf=new I("XSRF_COOKIE_NAME"),Kf=new I("XSRF_HEADER_NAME");class ZC{}let yH=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=sv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(E(vt),E(Qc),E(Wf))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Qf=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const i=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(n);const o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(E(ZC),E(Kf))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),_H=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(KC,[]);this.chain=r.reduceRight((i,o)=>new WC(i,o),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(E(jC),E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),vH=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Qf,useClass:pH}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:Wf,useValue:n.cookieName}:[],n.headerName?{provide:Kf,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:[Qf,{provide:KC,useExisting:Qf,multi:!0},{provide:ZC,useClass:yH},{provide:Wf,useValue:"XSRF-TOKEN"},{provide:Kf,useValue:"X-XSRF-TOKEN"}]}),e})(),DH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:[zC,{provide:LC,useClass:_H},QC,{provide:jC,useExisting:QC}],imports:[[vH.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})(),bH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e,bootstrap:[sH]}),e.\u0275inj=Pe({providers:[{provide:Ab,useFactory:t=>({[Je.FILE_TYPE]:t.translationAsync("errors.fileType"),[Je.FILE_MIN_SIZE]:"The file min size is 100KB!",[Je.EQUAL]:"\u4e24\u4e2a\u63a7\u4ef6\u503c\u4e0d\u76f8\u7b49"}),deps:[ou]},{provide:wb,useFactory:t=>({[xn.ZH_CN]:()=>t.get("./assets/localization/zh-CN/translations.json"),[xn.EN]:()=>t.get("./assets/localization/en/translations.json")}),deps:[zC]}],imports:[[VR,DH,UF,FD,xj,JL,rH]]}),e})();(function Tx(){k_=!1})(),PR().bootstrapModule(bH).catch(e=>console.error(e))}},rr=>{rr(rr.s=432)}]); \ No newline at end of file +"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[179],{432:()=>{function rr(e){return"function"==typeof e}let Vi=!1;const Et={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Vi&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Vi=e},get useDeprecatedSynchronousErrorHandling(){return Vi}};function On(e){setTimeout(()=>{throw e},0)}const as={closed:!0,next(e){},error(e){if(Et.useDeprecatedSynchronousErrorHandling)throw e;On(e)},complete(){}},Li=Array.isArray||(e=>e&&"number"==typeof e.length);function wu(e){return null!==e&&"object"==typeof e}const us=(()=>{function e(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e})();class ge{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ge)n.remove(this);else if(null!==n)for(let s=0;st.concat(n instanceof us?n.errors:n),[])}ge.EMPTY=((e=new ge).closed=!0,e);const ls="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class se extends ge{constructor(t,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=as;break;case 1:if(!t){this.destination=as;break}if("object"==typeof t){t instanceof se?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new sh(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new sh(this,t,n,r)}}[ls](){return this}static create(t,n,r){const i=new se(t,n,r);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 sh extends se{constructor(t,n,r,i){super(),this._parentSubscriber=t;let o,s=this;rr(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==as&&(s=Object.create(n),rr(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=r,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Et.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Et;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):On(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;On(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const n=()=>this._complete.call(this._context);Et.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,n){try{t.call(this._context,n)}catch(r){if(this.unsubscribe(),Et.useDeprecatedSynchronousErrorHandling)throw r;On(r)}}__tryOrSetError(t,n,r){if(!Et.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return Et.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(On(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ji="function"==typeof Symbol&&Symbol.observable||"@@observable";function cs(e){return e}let ae=(()=>{class e{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:o}=this,s=function JC(e,t,n){if(e){if(e instanceof se)return e;if(e[ls])return e[ls]()}return e||t||n?new se(e,t,n):new se(as)}(n,r,i);if(s.add(o?o.call(s,this.source):this.source||Et.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Et.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Et.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function YC(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof se?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=uh(r))((i,o)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){o(u),s&&s.unsubscribe()}},o,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[ji](){return this}pipe(...n){return 0===n.length?this:function ah(e){return 0===e.length?cs:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=uh(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function uh(e){if(e||(e=Et.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const Ar=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class XC extends ge{constructor(t,n){super(),this.subject=t,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,n=t.observers;if(this.subject=null,!n||0===n.length||t.isStopped||t.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class lh extends se{constructor(t){super(t),this.destination=t}}let Xe=(()=>{class e extends ae{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ls](){return new lh(this)}lift(n){const r=new ch(this,this);return r.operator=n,r}next(n){if(this.closed)throw new Ar;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let s=0;snew ch(t,n),e})();class ch extends Xe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){const{destination:n}=this;n&&n.next&&n.next(t)}error(t){const{destination:n}=this;n&&n.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:n}=this;return n?this.source.subscribe(t):ge.EMPTY}}function xr(e){return e&&"function"==typeof e.schedule}function Q(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new ew(e,t))}}class ew{constructor(t,n){this.project=t,this.thisArg=n}call(t,n){return n.subscribe(new tw(t,this.project,this.thisArg))}}class tw extends se{constructor(t,n,r){super(t),this.project=n,this.count=0,this.thisArg=r||this}_next(t){let n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const dh=e=>t=>{for(let n=0,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function hh(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const Eu=e=>{if(e&&"function"==typeof e[ji])return(e=>t=>{const n=e[ji]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(fh(e))return dh(e);if(hh(e))return(e=>t=>(e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,On),t))(e);if(e&&"function"==typeof e[ds])return(e=>t=>{const n=e[ds]();for(;;){let r;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const n=`You provided ${wu(e)?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Mu(e,t){return new ae(n=>{const r=new ge;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function je(e,t){return t?function dw(e,t){if(null!=e){if(function lw(e){return e&&"function"==typeof e[ji]}(e))return function sw(e,t){return new ae(n=>{const r=new ge;return r.add(t.schedule(()=>{const i=e[ji]();r.add(i.subscribe({next(o){r.add(t.schedule(()=>n.next(o)))},error(o){r.add(t.schedule(()=>n.error(o)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(hh(e))return function aw(e,t){return new ae(n=>{const r=new ge;return r.add(t.schedule(()=>e.then(i=>{r.add(t.schedule(()=>{n.next(i),r.add(t.schedule(()=>n.complete()))}))},i=>{r.add(t.schedule(()=>n.error(i)))}))),r})}(e,t);if(fh(e))return Mu(e,t);if(function cw(e){return e&&"function"==typeof e[ds]}(e)||"string"==typeof e)return function uw(e,t){if(!e)throw new Error("Iterable cannot be null");return new ae(n=>{const r=new ge;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[ds](),r.add(t.schedule(function(){if(n.closed)return;let o,s;try{const a=i.next();o=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(o),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof ae?e:new ae(Eu(e))}class fs extends se{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 hs extends se{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ps(e,t){if(t.closed)return;if(e instanceof ae)return e.subscribe(t);let n;try{n=Eu(e)(t)}catch(r){t.error(r)}return n}function Be(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Be((i,o)=>je(e(i,o)).pipe(Q((s,a)=>t(i,s,o,a))),n)):("number"==typeof t&&(n=t),r=>r.lift(new fw(e,n)))}class fw{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new hw(t,this.project,this.concurrent))}}class hw extends hs{constructor(t,n,r=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=r,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 Bi(e=Number.POSITIVE_INFINITY){return Be(cs,e)}function Tu(e,t){return t?Mu(e,t):new ae(dh(e))}function Su(){return function(t){return t.lift(new gw(t))}}class gw{constructor(t){this.connectable=t}call(t,n){const{connectable:r}=this;r._refCount++;const i=new mw(t,r),o=n.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class mw extends se{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=t._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class ph extends ae{constructor(t,n){super(),this.source=t,this.subjectFactory=n,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 ge,t.add(this.source.subscribe(new _w(this.getSubject(),this))),t.closed&&(this._connection=null,t=ge.EMPTY)),t}refCount(){return Su()(this)}}const yw=(()=>{const e=ph.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class _w extends lh{constructor(t,n){super(t),this.connectable=n}_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 n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}class bw{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(t);return o.add(n.subscribe(i)),o}}function Cw(){return new Xe}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function Iu(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Au(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ew=re({__forward_ref__:re});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return J(this())},e}function V(e){return gh(e)?e():e}function gh(e){return"function"==typeof e&&e.hasOwnProperty(Ew)&&e.__forward_ref__===ue}class z extends Error{constructor(t,n){super(function xu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function He(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}function gs(e,t){const n=t?` in ${t}`:"";throw new z(-201,`No provider for ${He(e)} found${n}`)}function ht(e,t){null==e&&function de(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Nu(e){return mh(e,ms)||mh(e,_h)}function mh(e,t){return e.hasOwnProperty(t)?e[t]:null}function yh(e){return e&&(e.hasOwnProperty(Ru)||e.hasOwnProperty(Nw))?e[Ru]:null}const ms=re({\u0275prov:re}),Ru=re({\u0275inj:re}),_h=re({ngInjectableDef:re}),Nw=re({ngInjectorDef:re});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let Fu;function Pn(e){const t=Fu;return Fu=e,t}function vh(e,t,n){const r=Nu(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&O.Optional?null:void 0!==t?t:void gs(J(e),"Injector")}function kn(e){return{toString:e}.toString()}var Vt=(()=>((Vt=Vt||{})[Vt.OnPush=0]="OnPush",Vt[Vt.Default=1]="Default",Vt))(),Yt=(()=>(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Yt||(Yt={})),Yt))();const Fw="undefined"!=typeof globalThis&&globalThis,Ow="undefined"!=typeof window&&window,Pw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne=Fw||"undefined"!=typeof global&&global||Ow||Pw,Nr={},ie=[],ys=re({\u0275cmp:re}),Ou=re({\u0275dir:re}),Pu=re({\u0275pipe:re}),Dh=re({\u0275mod:re}),gn=re({\u0275fac:re}),Hi=re({__NG_ELEMENT_ID__:re});let kw=0;function Jt(e){return kn(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Vt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Yt.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=kw++,r.inputs=Eh(e.inputs,n),r.outputs=Eh(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(bh):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ch):null,r})}function bh(e){return ze(e)||function Vn(e){return e[Ou]||null}(e)}function Ch(e){return function ir(e){return e[Pu]||null}(e)}const wh={};function Ue(e){return kn(()=>{const t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(wh[e.id]=e.type),t})}function Eh(e,t){if(null==e)return Nr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const M=Jt;function Z(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ze(e){return e[ys]||null}function Mt(e,t){const n=e[Dh]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}const L=11;function Xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function jt(e){return Array.isArray(e)&&!0===e[1]}function Lu(e){return 0!=(8&e.flags)}function bs(e){return 2==(2&e.flags)}function Cs(e){return 1==(1&e.flags)}function Bt(e){return null!==e.template}function Uw(e){return 0!=(512&e[2])}function ur(e,t){return e.hasOwnProperty(gn)?e[gn]:null}class qw{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ve(){return Th}function Th(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ww),zw}function zw(){const e=Ih(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Nr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ww(e,t,n,r){const i=Ih(e)||function Kw(e,t){return e[Sh]=t}(e,{previous:Nr,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new qw(u&&u.currentValue,t,s===Nr),e[r]=t}Ve.ngInherit=!0;const Sh="__ngSimpleChanges__";function Ih(e){return e[Sh]||null}let $u;function _e(e){return!!e.listen}const Ah={createRenderer:(e,t)=>function Gu(){return void 0!==$u?$u:"undefined"!=typeof document?document:void 0}()};function Me(e){for(;Array.isArray(e);)e=e[0];return e}function ws(e,t){return Me(t[e])}function It(e,t){return Me(t[e.index])}function qu(e,t){return e.data[t]}function kr(e,t){return e[t]}function gt(e,t){const n=t[e];return Xt(n)?n:n[0]}function zu(e){return 128==(128&e[2])}function Ln(e,t){return null==t?null:e[t]}function Nh(e){e[18]=0}function Wu(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const R={lFrame:Bh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rh(){return R.bindingsEnabled}function _(){return R.lFrame.lView}function W(){return R.lFrame.tView}function xe(){let e=Oh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Oh(){return R.lFrame.currentTNode}function en(e,t){const n=R.lFrame;n.currentTNode=e,n.isParent=t}function Ku(){return R.lFrame.isParent}function Qu(){R.lFrame.isParent=!1}function Es(){return R.isInCheckNoChangesMode}function Ms(e){R.isInCheckNoChangesMode=e}function et(){const e=R.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vr(){return R.lFrame.bindingIndex++}function dE(e,t){const n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zu(t)}function Zu(e){R.lFrame.currentDirectiveIndex=e}function Ju(e){R.lFrame.currentQueryIndex=e}function hE(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Lh(e,t,n){if(n&O.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&O.Host||(i=hE(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=R.lFrame=jh();return r.currentTNode=t,r.lView=e,!0}function Ts(e){const t=jh(),n=e[1];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jh(){const e=R.lFrame,t=null===e?null:e.child;return null===t?Bh(e):t}function Bh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hh(){const e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Uh=Hh;function Ss(){const e=Hh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tt(){return R.lFrame.selectedIndex}function jn(e){R.lFrame.selectedIndex=e}function Is(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class zi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ns(e,t,n){const r=_e(e);let i=0;for(;it){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let nl=!0;function Fs(e){const t=nl;return nl=e,t}let IE=0;function Ki(e,t){const n=il(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,rl(r.data,e),rl(t,null),rl(r.blueprint,null));const i=Os(e,t),o=e.injectorIndex;if(zh(i)){const s=Lr(i),a=jr(i,t),u=a[1].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function rl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function il(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ps(e,t,n){!function AE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Hi)&&(r=n[Hi]),null==r&&(r=n[Hi]=IE++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:NE:t}(n);if("function"==typeof o){if(!Lh(t,e,r))return r&O.Host?Qh(i,n,r):Zh(t,n,r,i);try{const s=o(r);if(null!=s||r&O.Optional)return s;gs(n)}finally{Uh()}}else if("number"==typeof o){let s=null,a=il(e,t),u=-1,l=r&O.Host?t[16][6]:null;for((-1===a||r&O.SkipSelf)&&(u=-1===a?Os(e,t):t[a+8],-1!==u&&ep(r,!1)?(s=t[1],a=Lr(u),t=jr(u,t)):a=-1);-1!==a;){const c=t[1];if(Xh(o,a,c.data)){const d=RE(a,t,n,s,r,l);if(d!==Jh)return d}u=t[a+8],-1!==u&&ep(r,t[1].data[a+8]===l)&&Xh(o,a,t)?(s=c,a=Lr(u),t=jr(u,t)):a=-1}}}return Zh(t,n,r,i)}const Jh={};function NE(){return new Br(xe(),_())}function RE(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],c=function ks(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,f=i?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(i){const h=s[u];if(h&&Bt(h)&&h.type===n)return u}return null}(a,s,n,null==r?bs(a)&&nl:r!=s&&0!=(3&a.type),i&O.Host&&o===a);return null!==c?Qi(t,s,c,a):Jh}function Qi(e,t,n,r){let i=e[n];const o=t.data;if(function wE(e){return e instanceof zi}(i)){const s=i;s.resolving&&function Mw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new z(-200,`Circular dependency in DI detected for ${e}${n}`)}(He(o[n]));const a=Fs(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Pn(s.injectImpl):null;Lh(e,r,O.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function bE(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Th(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&Pn(u),Fs(a),s.resolving=!1,Uh()}}return i}function Xh(e,t,n){return!!(n[t+(e>>5)]&1<{const t=ol(V(e));return t&&t()}:ur(e)}const Ur="__parameters__";function Gr(e,t,n){return kn(()=>{const r=function sl(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Ur)?u[Ur]:Object.defineProperty(u,Ur,{value:[]})[Ur];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class I{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const PE=new I("AnalyzeForEntryComponents");function tn(e,t){e.forEach(n=>Array.isArray(n)?tn(n,t):t(n))}function np(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Xi(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function LE(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ul(e,t){const n=qr(e,t);if(n>=0)return e[1|n]}function qr(e,t){return function op(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<({token:e})),-1),Hn=no(Gr("Optional"),8),ro=no(Gr("SkipSelf"),4);const Sp="__ngContext__";function Qe(e,t){e[Sp]=t}function Dl(e){const t=function lo(e){return e[Sp]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Cl(e){return e.ngOriginalError}function $0(e,...t){e.error(...t)}class co{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function U0(e){return e&&e.ngErrorLogger||$0}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Cl(t);for(;n&&Cl(n);)n=Cl(n);return n||null}}const X0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ne))();function rn(e){return e instanceof Function?e():e}var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();function El(e,t){return undefined(e,t)}function fo(e){const t=e[3];return jt(t)?t[3]:t}function Ml(e){return kp(e[13])}function Tl(e){return kp(e[4])}function kp(e){for(;null!==e&&!jt(e);)e=e[4];return e}function Qr(e,t,n,r,i){if(null!=r){let o,s=!1;jt(r)?o=r:Xt(r)&&(s=!0,r=r[0]);const a=Me(r);0===e&&null!==n?null==i?Up(t,n,a):lr(t,n,a,i||null,!0):1===e&&null!==n?lr(t,n,a,i||null,!0):2===e?function Qp(e,t,n){const r=zs(e,t);r&&function hM(e,t,n,r){_e(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function mM(e,t,n,r,i){const o=n[7];o!==Me(n)&&Qr(t,e,r,o,i);for(let a=10;a0&&(e[n-1][4]=r[4]);const o=Vs(e,10+t);!function oM(e,t){ho(e,t,t[L],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function jp(e,t){if(!(256&t[2])){const n=t[L];_e(n)&&n.destroyNode&&ho(e,t,n,3,null,null),function uM(e){let t=e[13];if(!t)return xl(e[1],e);for(;t;){let n=null;if(Xt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Xt(t)&&xl(t[1],t),t=t[3];null===t&&(t=e),Xt(t)&&xl(t[1],t),n=t&&t[4]}t=n}}(t)}}function xl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function fM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Jp(h,l,0)||2&r&&l!==f){if(Ht(r))return!1;s=!0}}}}else{if(!s&&!Ht(r)&&!Ht(u))return!1;if(s&&Ht(u))continue;s=!1,r=u|1&r}}return Ht(r)||s}function Ht(e){return 0==(1&e)}function bM(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Ht(s)&&(t+=ng(o,i),i=""),r=s,o=o||!Ht(r);n++}return""!==i&&(t+=ng(o,i)),t}const k={};function F(e){rg(W(),_(),tt()+e,Es())}function rg(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&As(t,o,n)}else{const o=e.preOrderHooks;null!==o&&xs(t,o,0,n)}jn(n)}function Qs(e,t){return e<<17|t<<2}function Ut(e){return e>>17&32767}function Pl(e){return 2|e}function _n(e){return(131068&e)>>2}function kl(e,t){return-131069&e|t<<2}function Vl(e){return 1|e}function pg(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&rg(e,t,20,Es()),n(r,i)}finally{jn(o)}}function mg(e,t,n){if(Lu(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,i,s)}}function Eg(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mg(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function tT(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Yl(n)}}function Yl(e){for(let r=Ml(e);null!==r;r=Tl(r))for(let i=10;i0&&Yl(o)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Yl(i)}}function uT(e,t){const n=gt(t,e),r=n[1];(function lT(e,t){for(let n=t.length;nPromise.resolve(null))();function xg(e){return e[7]||(e[7]=[])}function Ng(e){return e.cleanup||(e.cleanup=[])}function Fg(e,t){const n=e[9],r=n?n.get(co,null):null;r&&r.handleError(t)}function Og(e,t,n,r,i){for(let o=0;othis.processProvider(a,t,n)),tn([t],a=>this.processInjectorType(a,[],o)),this.records.set(nc,Xr(void 0,this));const s=this.records.get(rc);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:J(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,n=eo,r=O.Default){this.assertNotDestroyed();const i=up(this),o=Pn(void 0);try{if(!(r&O.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function MT(e){return"function"==typeof e||"object"==typeof e&&e instanceof I}(t)&&Nu(t);a=u&&this.injectableDefInScope(u)?Xr(oc(t),mo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&O.Self?kg():this.parent).get(t,n=r&O.Optional&&n===eo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[js]=s[js]||[]).unshift(J(t)),i)throw s;return function YE(e,t,n,r){const i=e[js];throw t[ap]&&i.unshift(t[ap]),e.message=function JE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=J(t);if(Array.isArray(t))i=t.map(J).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):J(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(qE,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[js]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Pn(o),up(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(J(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new z(205,!1)}processInjectorType(t,n,r){if(!(t=V(t)))return!1;let i=yh(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=yh(o)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(s);try{tn(i.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||ie))}}this.injectorDefTypes.add(s);const u=ur(s)||(()=>new s);this.records.set(s,Xr(u,mo));const l=i.providers;if(null!=l&&!a){const c=t;tn(l,d=>this.processProvider(d,c,l))}return void 0!==o&&void 0!==t.providers}processProvider(t,n,r){let i=ei(t=V(t))?t:V(t&&t.provide);const o=function vT(e,t,n){return Bg(e)?Xr(void 0,e.useValue):Xr(jg(e),mo)}(t);if(ei(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Xr(void 0,mo,!0),s.factory=()=>dl(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,n){return n.value===mo&&(n.value=mT,n.value=n.factory()),"object"==typeof n.value&&n.value&&function ET(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=V(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function oc(e){const t=Nu(e),n=null!==t?t.factory:ur(e);if(null!==n)return n;if(e instanceof I)throw new z(204,!1);if(e instanceof Function)return function _T(e){const t=e.length;if(t>0)throw Xi(t,"?"),new z(204,!1);const n=function Aw(e){const t=e&&(e[ms]||e[_h]);if(t){const n=function xw(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);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.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new z(204,!1)}function jg(e,t,n){let r;if(ei(e)){const i=V(e);return ur(i)||oc(i)}if(Bg(e))r=()=>V(e.useValue);else if(function bT(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...dl(e.deps||[]));else if(function DT(e){return!(!e||!e.useExisting)}(e))r=()=>E(V(e.useExisting));else{const i=V(e&&(e.useClass||e.provide));if(!function wT(e){return!!e.deps}(e))return ur(i)||oc(i);r=()=>new i(...dl(e.deps))}return r}function Xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bg(e){return null!==e&&"object"==typeof e&&WE in e}function ei(e){return"function"==typeof e}let rt=(()=>{class e{static create(n,r){var i;if(Array.isArray(n))return Vg({name:""},r,n,"");{const o=null!==(i=n.name)&&void 0!==i?i:"";return Vg({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=eo,e.NULL=new Pg,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>E(nc)}),e.__NG_ELEMENT_ID__=-1,e})();function FT(e,t){Is(Dl(e)[1],xe())}function X(e){let t=function Jg(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Bt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new z(903,"");i=t.\u0275dir}if(i){if(n){r.push(i);const s=e;s.inputs=uc(e.inputs),s.declaredInputs=uc(e.declaredInputs),s.outputs=uc(e.outputs);const a=i.hostBindings;a&&VT(e,a);const u=i.viewQuery,l=i.contentQueries;if(u&&PT(e,u),l&&kT(e,l),Iu(e.inputs,i.inputs),Iu(e.declaredInputs,i.declaredInputs),Iu(e.outputs,i.outputs),Bt(i)&&i.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Rs(i.hostAttrs,n=Rs(n,i.hostAttrs))}}(r)}function uc(e){return e===Nr?{}:e===ie?[]:e}function PT(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function kT(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function VT(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function sn(e,t,n){return e[t]=n}function Ze(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function me(e,t,n,r,i,o,s,a){const u=_(),l=W(),c=e+20,d=l.firstCreatePass?function GT(e,t,n,r,i,o,s,a,u){const l=t.consts,c=Zr(t,e,4,s||null,Ln(l,a));Ql(t,n,c,Ln(l,u)),Is(t,c);const d=c.tViews=Js(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,i,o,s):l.data[c];en(d,!1);const f=u[L].createComment("");Ws(l,u,f,d),Qe(f,u),Xs(u,u[c]=Ig(f,u,f,d)),Cs(d)&&Wl(l,u,d),null!=s&&Kl(u,d,a)}function m(e,t=O.Default){const n=_();return null===n?E(e,t):Yh(xe(),n,V(e),t)}function pc(){throw new Error("invalid")}function j(e,t,n){const r=_();return Ze(r,Vr(),t)&&function _t(e,t,n,r,i,o,s,a){const u=It(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Og(e,n,c,r,i),bs(t)&&function WM(e,t){const n=gt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function zM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,_e(o)?o.setProperty(u,r,i):tl(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}(W(),function ve(){const e=R.lFrame;return qu(e.tView,e.selectedIndex)}(),r,e,t,r[L],n,!1),j}function gc(e,t,n,r,i){const s=i?"class":"style";Og(e,n,t.inputs[s],s,r)}function ee(e,t,n,r){const i=_(),o=W(),s=20+e,a=i[L],u=i[s]=Il(a,t,function DE(){return R.lFrame.currentNamespace}()),l=o.firstCreatePass?function dS(e,t,n,r,i,o,s){const a=t.consts,l=Zr(t,e,2,i,Ln(a,o));return Ql(t,n,l,Ln(a,s)),null!==l.attrs&&ea(l,l.attrs,!1),null!==l.mergedAttrs&&ea(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];en(l,!0);const c=l.mergedAttrs;null!==c&&Ns(a,u,c);const d=l.classes;null!==d&&Ol(a,u,d);const f=l.styles;return null!==f&&Yp(a,u,f),64!=(64&l.flags)&&Ws(o,i,u,l),0===function iE(){return R.lFrame.elementDepthCount}()&&Qe(u,i),function oE(){R.lFrame.elementDepthCount++}(),Cs(l)&&(Wl(o,i,l),mg(o,l,i)),null!==r&&Kl(i,l),ee}function K(){let e=xe();Ku()?Qu():(e=e.parent,en(e,!1));const t=e;!function sE(){R.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(Is(n,e),Lu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ME(e){return 0!=(16&e.flags)}(t)&&gc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function TE(e){return 0!=(32&e.flags)}(t)&&gc(n,t,_(),t.stylesWithoutHost,!1),K}function ct(e,t,n,r){return ee(e,t,n,r),K(),ct}function Nt(e,t,n){const r=_(),i=W(),o=e+20,s=i.firstCreatePass?function fS(e,t,n,r,i){const o=t.consts,s=Ln(o,r),a=Zr(t,e,8,"ng-container",s);return null!==s&&ea(a,s,!0),Ql(t,n,a,Ln(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];en(s,!0);const a=r[o]=r[L].createComment("");return Ws(i,r,a,s),Qe(a,r),Cs(s)&&(Wl(i,r,s),mg(i,s,r)),null!=n&&Kl(r,s),Nt}function Rt(){let e=xe();const t=W();return Ku()?Qu():(e=e.parent,en(e,!1)),t.firstCreatePass&&(Is(t,e),Lu(e)&&t.queries.elementEnd(e)),Rt}function vo(e){return!!e&&"function"==typeof e.then}function vm(e){return!!e&&"function"==typeof e.subscribe}const mc=vm;function Le(e,t,n,r){const i=_(),o=W(),s=xe();return function bm(e,t,n,r,i,o,s,a){const u=Cs(r),c=e.firstCreatePass&&Ng(e),d=t[8],f=xg(t);let h=!0;if(3&r.type||a){const v=It(r,t),D=a?a(v):v,g=f.length,w=a?N=>a(Me(N[r.index])):r.index;if(_e(n)){let N=null;if(!a&&u&&(N=function hS(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==N)(N.__ngLastListenerFn__||N).__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,h=!1;else{o=yc(r,t,d,o,!1);const $=n.listen(D,i,o);f.push(o,$),c&&c.push(i,w,g,g+1)}}else o=yc(r,t,d,o,!0),D.addEventListener(i,o,s),f.push(o),c&&c.push(i,w,g,s)}else o=yc(r,t,d,o,!1);const p=r.outputs;let y;if(h&&null!==p&&(y=p[i])){const v=y.length;if(v)for(let D=0;D0;)t=t[15],e--;return t}(e,R.lFrame.contextLView))[8]}(e)}function pS(e,t){let n=null;const r=function CM(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let i=0;i=0}function ia(e,t){return function Gt(e,t,n,r){const i=_(),o=W(),s=function yn(e){const t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);o.firstUpdatePass&&function Um(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[tt()],s=function Hm(e,t){return t>=e.expandoStartIndex}(e,n);(function zm(e,t){return 0!=(e.flags&(t?16:32))})(o,r)&&null===t&&!s&&(t=!1),t=function TS(e,t,n,r){const i=function Yu(e){const t=R.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Do(n=Dc(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Dc(i,e,t,n,r),null===o){let u=function SS(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==_n(r))return e[Ut(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Dc(null,e,t,u[1],r),u=Do(u,t.attrs,r),function IS(e,t,n,r){e[Ut(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else o=function AS(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==u){const f=Ut(e[a+1]);e[r+1]=Qs(f,a),0!==f&&(e[f+1]=kl(e[f+1],r)),e[a+1]=function AM(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Qs(a,0),0!==a&&(e[a+1]=kl(e[a+1],r)),a=r;else e[r+1]=Qs(u,0),0===a?a=r:e[u+1]=kl(e[u+1],r),u=r;l&&(e[r+1]=Pl(e[r+1])),Fm(e,c,r,!0),Fm(e,c,r,!1),function mS(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&qr(o,t)>=0&&(n[r+1]=Vl(n[r+1]))}(t,c,e,r,o),s=Qs(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}(o,e,s,r),t!==k&&Ze(i,s,t)&&function Gm(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];oa(function sg(e){return 1==(1&e)}(l)?qm(u,t,n,i,_n(l),s):void 0)||(oa(o)||function og(e){return 2==(2&e)}(l)&&(o=qm(u,null,n,i,a,s)),function yM(e,t,n,r,i){const o=_e(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:yt.DashCase;if(null==i)o?e.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=yt.Important),o?e.setStyle(n,r,i,s):n.style.setProperty(r,i,a?"important":"")}}}(r,s,ws(tt(),n),i,o))}(o,o.data[tt()],i,i[L],e,i[s+1]=function RS(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(function Un(e){return e instanceof class yp{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),ia}function Dc(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[i],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[i+1];f===k&&(f=d?ie:void 0);let h=d?ul(f,r):c===r?f:void 0;if(l&&!oa(h)&&(h=ul(u,r)),oa(h)&&(a=h,s))return a;const p=e[i+1];i=s?Ut(p):_n(p)}if(null!==t){let u=o?t.residualClasses:t.residualStyles;null!=u&&(a=ul(u,r))}return a}function oa(e){return void 0!==e}function te(e,t=""){const n=_(),r=W(),i=e+20,o=r.firstCreatePass?Zr(r,i,1,t,null):r.data[i],s=n[i]=function Sl(e,t){return _e(e)?e.createText(t):e.createTextNode(t)}(n[L],t);Ws(r,n,s,o),en(o,!1)}function Fe(e){return bn("",e,""),Fe}function bn(e,t,n){const r=_(),i=function ri(e,t,n,r){return Ze(e,Vr(),n)?t+P(n)+r:k}(r,e,t,n);return i!==k&&vn(r,tt(),i),bn}const sa="en-US";let hy=sa;function wc(e,t,n,r,i){if(e=V(e),Array.isArray(e))for(let o=0;o>20;if(ei(e)||!e.multi){const h=new zi(u,i,m),p=Mc(a,t,i?c:c+f,d);-1===p?(Ps(Ki(l,s),o,a),Ec(o,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Mc(a,t,c+f,d),p=Mc(a,t,c,c+f),y=h>=0&&n[h],v=p>=0&&n[p];if(i&&!v||!i&&!y){Ps(Ki(l,s),o,a);const D=function YI(e,t,n,r,i){const o=new zi(e,n,m);return o.multi=[],o.index=t,o.componentProviders=0,Vy(o,i,r&&!n),o}(i?ZI:QI,n.length,i,r,u);!i&&v&&(n[p].providerFactory=D),Ec(o,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Ec(o,e,h>-1?h:p,Vy(n[i?p:h],u,!i&&r));!i&&r&&v&&n[p].componentProviders++}}}function Ec(e,t,n,r){const i=ei(t),o=function CT(e){return!!e.useClass}(t);if(i||o){const u=(o?V(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Vy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Mc(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function KI(e,t,n){const r=W();if(r.firstCreatePass){const i=Bt(e);wc(n,r.data,r.blueprint,i,!0),wc(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Ly{}class eA{resolveComponentFactory(t){throw function XI(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Mo=(()=>{class e{}return e.NULL=new eA,e})();function tA(){return yi(xe(),_())}function yi(e,t){return new ot(It(e,t))}let ot=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tA,e})();class By{}let Cn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function iA(){const e=_(),n=gt(xe().index,e);return function rA(e){return e[L]}(Xt(n)?n:e)}(),e})(),oA=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class To{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sA=new To("13.3.5"),Sc={};function da(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(Me(o)),jt(o))for(let a=10;a-1&&(Al(t,r),Vs(n,r))}this._attachedToViewContainer=!1}jp(this._lView[1],this._lView)}onDestroy(t){!function Dg(e,t,n,r){const i=xg(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Ng(e).push(r,i.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Jl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ec(this._lView[1],this._lView,this.context)}checkNoChanges(){!function dT(e,t,n){Ms(!0);try{ec(e,t,n)}finally{Ms(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new z(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function aM(e,t){ho(e,t,t[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new z(902,"");this._appRef=t}}class aA extends So{constructor(t){super(t),this._view=t}detectChanges(){Ag(this._view)}checkNoChanges(){!function fT(e){Ms(!0);try{Ag(e)}finally{Ms(!1)}}(this._view)}get context(){return null}}class Hy extends Mo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ze(t);return new Ic(n,this.ngModule)}}function Uy(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Ic extends Ly{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function SM(e){return e.map(TM).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Uy(this.componentDef.inputs)}get outputs(){return Uy(this.componentDef.outputs)}create(t,n,r,i){const o=(i=i||this.ngModule)?function lA(e,t){return{get:(n,r,i)=>{const o=e.get(n,Sc,i);return o!==Sc||r===Sc?o:t.get(n,r,i)}}}(t,i.injector):t,s=o.get(By,Ah),a=o.get(oA,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function vg(e,t,n){if(_e(e))return e.selectRootElement(t,n===Yt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Il(s.createRenderer(null,this.componentDef),l,function uA(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?576:528,f=function Yg(e,t){return{components:[],scheduler:e||X0,clean:hT,playerHandler:t||null,flags:0}}(),h=Js(0,null,null,1,0,null,null,null,null,null),p=po(null,h,f,d,null,null,s,u,a,o);let y,v;Ts(p);try{const D=function Qg(e,t,n,r,i,o){const s=n[1];n[20]=e;const u=Zr(s,20,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(ea(u,l,!0),null!==e&&(Ns(i,e,l),null!==u.classes&&Ol(i,e,u.classes),null!==u.styles&&Yp(i,e,u.styles)));const c=r.createRenderer(e,t),d=po(n,yg(t),null,t.onPush?64:16,n[20],u,r,c,o||null,null);return s.firstCreatePass&&(Ps(Ki(u,n),s,t.type),Mg(s,u),Tg(u,n.length,1)),Xs(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)Ns(u,c,["ng-version",sA.full]);else{const{attrs:g,classes:w}=function IM(e){const t=[],n=[];let r=1,i=2;for(;r0&&Ol(u,c,w.join(" "))}if(v=qu(h,20),void 0!==n){const g=v.projection=[];for(let w=0;wu(s,t)),t.contentQueries){const u=xe();t.contentQueries(1,s,u.directiveStart)}const a=xe();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(a.index),wg(n[1],a,0,a.directiveStart,a.directiveEnd,t),Eg(t,s)),s}(D,this.componentDef,p,f,[FT]),go(h,p,null)}finally{Ss()}return new dA(this.componentType,y,yi(v,p),p,v)}}class dA extends class JI{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new aA(i),this.componentType=t}get injector(){return new Br(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class wn{}class $y{}const _i=new Map;class zy extends wn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Hy(this);const r=Mt(t);this._bootstrapComponents=rn(r.bootstrap),this._r3Injector=Lg(t,n,[{provide:wn,useValue:this},{provide:Mo,useValue:this.componentFactoryResolver}],J(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=rt.THROW_IF_NOT_FOUND,r=O.Default){return t===rt||t===wn||t===nc?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ac extends $y{constructor(t){super(),this.moduleType=t,null!==Mt(t)&&function hA(e){const t=new Set;!function n(r){const i=Mt(r,!0),o=i.id;null!==o&&(function Gy(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${J(t)} vs ${J(t.name)}`)}(o,_i.get(o),r),_i.set(o,r));const s=rn(i.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new zy(this.moduleType,t)}}function Io(e,t){const n=e[t];return n===k?void 0:n}function Qy(e,t,n,r,i,o,s){const a=t+n;return function cr(e,t,n,r){const i=Ze(e,t,n);return Ze(e,t+1,r)||i}(e,a,i,o)?sn(e,a+2,s?r.call(s,i,o):r(i,o)):Io(e,a+2)}function Y(e,t){const n=W();let r;const i=e+20;n.firstCreatePass?(r=function CA(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=ur(r.type)),s=Pn(m);try{const a=Fs(!1),u=o();return Fs(a),function qT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),i,u),u}finally{Pn(s)}}function oe(e,t,n){const r=e+20,i=_(),o=kr(i,r);return Ao(i,r)?function Ky(e,t,n,r,i,o){const s=t+n;return Ze(e,s,i)?sn(e,s+1,o?r.call(o,i):r(i)):Io(e,s+1)}(i,et(),t,o.transform,n,o):o.transform(n)}function Ao(e,t){return e[1].data[t].pure}function xc(e){return t=>{setTimeout(e,void 0,t)}}const Ce=class TA extends Xe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,o,s;let a=t,u=n||(()=>null),l=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),u=null===(o=d.error)||void 0===o?void 0:o.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=xc(u),a&&(a=xc(a)),l&&(l=xc(l)));const c=super.subscribe({next:a,error:u,complete:l});return t instanceof ge&&t.add(c),c}};Symbol;let zt=(()=>{class e{}return e.__NG_ELEMENT_ID__=xA,e})();const IA=zt,AA=class extends IA{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=po(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),go(n,r,t),new So(r)}};function xA(){return function ha(e,t){return 4&e.type?new AA(t,e,yi(e,t)):null}(xe(),_())}let Wt=(()=>{class e{}return e.__NG_ELEMENT_ID__=NA,e})();function NA(){return function t_(e,t){let n;const r=t[e.index];if(jt(r))n=r;else{let i;if(8&e.type)i=Me(r);else{const o=t[L];i=o.createComment("");const s=It(e,t);lr(o,zs(o,s),i,function pM(e,t){return _e(e)?e.nextSibling(t):t.nextSibling}(o,s),!1)}t[e.index]=n=Ig(r,t,i,e),Xs(t,n)}return new Xy(n,e,t)}(xe(),_())}const RA=Wt,Xy=class extends RA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return yi(this._hostTNode,this._hostLView)}get injector(){return new Br(this._hostTNode,this._hostLView)}get parentInjector(){const t=Os(this._hostTNode,this._hostLView);if(zh(t)){const n=jr(t,this._hostLView),r=Lr(t);return new Br(n[1].data[r+8],n)}return new Br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=e_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,o){const s=t&&!function Ji(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const u=s?t:new Ic(ze(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const f=(s?l:this.parentInjector).get(wn,null);f&&(o=f)}const c=u.create(l,i,void 0,o);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,i=r[1];if(function rE(e){return jt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Xy(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function lM(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(E(zc,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ro=new I("AppId",{providedIn:"root",factory:function w_(){return`${Kc()}${Kc()}${Kc()}`}});function Kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const E_=new I("Platform Initializer"),Qc=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),M_=new I("appBootstrapListener");let ix=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const qn=new I("LocaleId",{providedIn:"root",factory:()=>QE(qn,O.Optional|O.SkipSelf)||function ox(){return"undefined"!=typeof $localize&&$localize.locale||sa}()});class ax{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let T_=(()=>{class e{compileModuleSync(n){return new Ac(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=rn(Mt(n).declarations).reduce((s,a)=>{const u=ze(a);return u&&s.push(new Ic(u)),s},[]);return new ax(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lx=(()=>Promise.resolve(0))();function Zc(e){"undefined"==typeof Zone?lx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!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=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function cx(){let e=ne.requestAnimationFrame,t=ne.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hx(e){const t=()=>{!function fx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ne,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jc(e),e.isCheckStableRunning=!0,Yc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return S_(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),I_(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return S_(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),I_(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Jc(e),Yc(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,dx,ma,ma);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const dx={};function Yc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function S_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function I_(e){e._nesting--,Yc(e)}class px{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let Xc=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{$e.assertNotInAngularZone(),Zc(()=>{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())Zc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(E($e))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),gx=(()=>{class e{constructor(){this._applications=new Map,ed.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ed.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class mx{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let ed=new mx,hr=null;const A_=new I("AllowMultipleToken"),x_=new I("PlatformOnDestroy");class N_{constructor(t,n){this.name=t,this.token=n}}function R_(e,t,n=[]){const r=`Platform: ${t}`,i=new I(r);return(o=[])=>{let s=td();if(!s||s.injector.get(A_,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function Dx(e){if(hr&&!hr.get(A_,!1))throw new z(400,"");hr=e;const t=e.get(F_),n=e.get(E_,null);n&&n.forEach(r=>r())}(function Cx(e=[],t){return rt.create({name:t,providers:[{provide:rc,useValue:"platform"},{provide:x_,useValue:()=>hr=null},...e]})}(a,r))}return function bx(e){const t=td();if(!t)throw new z(401,"");return t}()}}function td(){var e;return null!==(e=null==hr?void 0:hr.get(F_))&&void 0!==e?e:null}let F_=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function wx(e,t){let n;return n="noop"===e?new px:("zone.js"===e?void 0:e)||new $e({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:$e,useValue:a}];return a.run(()=>{const l=rt.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(co,null);if(!d)throw new z(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{rd(this._modules,c),f.unsubscribe()})}),function Ex(e,t,n){try{const r=n();return vo(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Wc);return f.runInitializers(),f.donePromise.then(()=>(function rI(e){ht(e,"Expected localeId to be defined"),"string"==typeof e&&(hy=e.toLowerCase().replace(/_/g,"-"))}(c.injector.get(qn,sa)||sa),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const i=O_({},r);return function _x(e,t,n){const r=new Ac(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(nd);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new z(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new z(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(x_,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function O_(e,t){return Array.isArray(t)?t.reduce(O_,e):Object.assign(Object.assign({},e),t)}let nd=(()=>{class e{constructor(n,r,i,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=o,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 s=new ae(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),a=new ae(u=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),Zc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function pw(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return xr(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof ae?e[0]:Bi(t)(Tu(e,n))}(s,a.pipe(function ww(){return e=>Su()(function Dw(e,t){return function(r){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new bw(i,t));const o=Object.create(r,yw);return o.source=r,o.subjectFactory=i,o}}(Cw)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new z(405,"");let i;i=n instanceof Ly?n:this._injector.get(Mo).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function vx(e){return e.isBoundToModule}(i)?void 0:this._injector.get(wn),a=i.create(rt.NULL,[],r||i.selector,o),u=a.location.nativeElement,l=a.injector.get(Xc,null),c=l&&a.injector.get(gx);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),rd(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new z(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;rd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(M_,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(E($e),E(rt),E(co),E(Wc))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function rd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let k_=!0,Kt=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sx,e})();function Sx(e){return function Ix(e,t,n){if(bs(e)&&!n){const r=gt(e.index,t);return new So(r,r)}return 47&e.type?new So(t[16],t):null}(xe(),_(),16==(16&e))}const Hx=R_(null,"core",[]);let Ux=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(E(nd))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})(),Da=null;function cn(){return Da}const vt=new I("DocumentToken");let gr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return function zx(){return E(W_)}()},providedIn:"platform"}),e})();const Wx=new I("Location Initialized");let W_=(()=>{class e extends gr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return cn().getBaseHref(this._doc)}onPopState(n){const r=cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=cn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,i){K_()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){K_()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:function(){return function Kx(){return new W_(E(vt))}()},providedIn:"platform"}),e})();function K_(){return!!window.history.pushState}function ud(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Q_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function En(e){return e&&"?"!==e[0]?"?"+e:e}let Di=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return function Qx(e){const t=E(vt).location;return new Z_(E(gr),t&&t.origin||"")}()},providedIn:"root"}),e})();const ld=new I("appBaseHref");let Z_=(()=>{class e extends Di{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ud(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+En(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+En(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+En(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)(E(gr),E(ld,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Zx=(()=>{class e extends Di{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=ud(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+En(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+En(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return e.\u0275fac=function(n){return new(n||e)(E(gr),E(ld,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),cd=(()=>{class e{constructor(n,r){this._subject=new Ce,this._urlChangeListeners=[],this._platformStrategy=n;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Q_(Y_(i)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+En(r))}normalize(n){return e.stripTrailingSlash(function Jx(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Y_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._platformStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),i)}replaceState(n,r="",i=null){this._platformStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return e.normalizeQueryParams=En,e.joinWithSlash=ud,e.stripTrailingSlash=Q_,e.\u0275fac=function(n){return new(n||e)(E(Di),E(gr))},e.\u0275prov=x({token:e,factory:function(){return function Yx(){return new cd(E(Di),E(gr))}()},providedIn:"root"}),e})();function Y_(e){return e.replace(/\/index.html$/,"")}function sv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let xa=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new LN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){lv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){lv("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt))},e.\u0275dir=M({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class LN{constructor(){this.$implicit=null,this.ngIf=null}}function lv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${J(t)}'.`)}class Dd{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,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 mr=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(let r=0;r{class e{constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new Dd(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt),m(mr,9))},e.\u0275dir=M({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Na=(()=>{class e{constructor(n,r,i){i._addDefault(new Dd(n,r))}}return e.\u0275fac=function(n){return new(n||e)(m(Wt),m(zt),m(mr,9))},e.\u0275dir=M({type:e,selectors:[["","ngSwitchDefault",""]]}),e})();class HN{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class UN{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}onDestroy(t){}}const $N=new UN,GN=new HN;let Cd=(()=>{class e{constructor(n){this._ref=n,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(vo(n))return $N;if(vm(n))return GN;throw function Zt(e,t){return new z(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(m(Kt,16))},e.\u0275pipe=Z({name:"async",type:e,pure:!1}),e})(),Vo=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();let cR=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new dR(E(vt),window)}),e})();class dR{constructor(t,n){this.document=t,this.window=n,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 n=function fR(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=hv(this.window.history)||hv(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 hv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class pv{}class Md extends class hR extends class qx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Gx(e){Da||(Da=e)}(new Md)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function pR(){return Lo=Lo||document.querySelector("base"),Lo?Lo.getAttribute("href"):null}();return null==n?null:function gR(e){Ra=Ra||document.createElement("a"),Ra.setAttribute("href",e);const t=Ra.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return sv(document.cookie,t)}}let Ra,Lo=null;const gv=new I("TRANSITION_ID"),yR=[{provide:zc,useFactory:function mR(e,t,n){return()=>{n.get(Wc).donePromise.then(()=>{const r=cn(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ne.getAllAngularTestabilities=()=>t.getAllTestabilities(),ne.getAllAngularRootElements=()=>t.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(r=>{const i=ne.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(u){s=s||u,o--,0==o&&r(s)};i.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const i=t.getTestability(n);return null!=i?i:r?cn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let _R=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Fa=new I("EventManagerPlugins");let Oa=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),jo=(()=>{class e extends yv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(_v),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(_v))}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function _v(e){cn().remove(e)}const Sd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Id=/%COMP%/g;function Pa(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ad=(()=>{class e{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new xd(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Yt.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new ER(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case Yt.ShadowDom:return new MR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Pa(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(E(Oa),E(jo),E(Ro))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class xd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Sd[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Sd[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Sd[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(yt.DashCase|yt.Important)?t.style.setProperty(n,r,i&yt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&yt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,bv(r)):this.eventManager.addEventListener(t,n,bv(r))}}class ER extends xd{constructor(t,n,r,i){super(t),this.component=r;const o=Pa(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function bR(e){return"_ngcontent-%COMP%".replace(Id,e)}(i+"-"+r.id),this.hostAttr=function CR(e){return"_nghost-%COMP%".replace(Id,e)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class MR extends xd{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pa(i.id,i.styles,[]);for(let s=0;s{class e extends mv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const wv=["alt","control","meta","shift"],IR={"\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"},Ev={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"},AR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let xR=(()=>{class e extends mv{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>cn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="";if(wv.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(n){let r="",i=function NR(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ev.hasOwnProperty(t)&&(t=Ev[t]))}return IR[t]||t}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),wv.forEach(o=>{o!=i&&AR[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{e.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(E(vt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const PR=R_(Hx,"browser",[{provide:Qc,useValue:"browser"},{provide:E_,useValue:function RR(){Md.makeCurrent(),Td.init()},multi:!0},{provide:vt,useFactory:function OR(){return function Xw(e){$u=e}(document),document},deps:[]}]),kR=[{provide:rc,useValue:"root"},{provide:co,useFactory:function FR(){return new co},deps:[]},{provide:Fa,useClass:TR,multi:!0,deps:[vt,$e,Qc]},{provide:Fa,useClass:xR,multi:!0,deps:[vt]},{provide:Ad,useClass:Ad,deps:[Oa,jo,Ro]},{provide:By,useExisting:Ad},{provide:yv,useExisting:jo},{provide:jo,useClass:jo,deps:[vt]},{provide:Xc,useClass:Xc,deps:[$e]},{provide:Oa,useClass:Oa,deps:[Fa,$e]},{provide:pv,useClass:_R,deps:[]}];let VR=(()=>{class e{constructor(n){if(n)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(n){return{ngModule:e,providers:[{provide:Ro,useValue:n.appId},{provide:gv,useExisting:Ro},yR]}}}return e.\u0275fac=function(n){return new(n||e)(E(e,12))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:kR,imports:[Vo,Ux]}),e})();function ka(e,t){return new ae(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a{l||(l=!0,s++),i[a]=c},error:c=>n.error(c),complete:()=>{o++,(o===r||!l)&&(s===r&&n.next(t?t.reduce((c,d,f)=>(c[d]=i[f],c),{}):i),n.complete())}}))}})}"undefined"!=typeof window&&window;let Sv=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cn),m(ot))},e.\u0275dir=M({type:e}),e})(),yr=(()=>{class e extends Sv{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=function Ke(e){return kn(()=>{const t=e.prototype.constructor,n=t[gn]||ol(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[gn]||ol(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(r||e)}}(),e.\u0275dir=M({type:e,features:[X]}),e})();const dn=new I("NgValueAccessor"),ZR={provide:dn,useExisting:ue(()=>Va),multi:!0},JR=new I("CompositionEventMode");let Va=(()=>{class e extends Sv{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function YR(){const e=cn()?cn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cn),m(ot),m(JR,8))},e.\u0275dir=M({type:e,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(n,r){1&n&&Le("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[pe([ZR]),X]}),e})();function Wn(e){return null==e||0===e.length}function Av(e){return null!=e&&"number"==typeof e.length}const Ye=new I("NgValidators"),Kn=new I("NgAsyncValidators"),XR=/^(?=.{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 bi{static min(t){return function xv(e){return t=>{if(Wn(t.value)||Wn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Wn(t.value)||Wn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function Rv(e){return Wn(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Fv(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function Ov(e){return Wn(e.value)||XR.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function Pv(e){return t=>Wn(t.value)||!Av(t.value)?null:t.value.lengthAv(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Vv(e){if(!e)return La;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Wn(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return $v(t)}static composeAsync(t){return Gv(t)}}function La(e){return null}function Lv(e){return null!=e}function jv(e){const t=vo(e)?je(e):e;return mc(t),t}function Bv(e){let t={};return e.forEach(n=>{t=null!=n?Object.assign(Object.assign({},t),n):t}),0===Object.keys(t).length?null:t}function Hv(e,t){return t.map(n=>n(e))}function Uv(e){return e.map(t=>function eF(e){return!e.validate}(t)?t:n=>t.validate(n))}function $v(e){if(!e)return null;const t=e.filter(Lv);return 0==t.length?null:function(n){return Bv(Hv(n,t))}}function Rd(e){return null!=e?$v(Uv(e)):null}function Gv(e){if(!e)return null;const t=e.filter(Lv);return 0==t.length?null:function(n){return function KR(...e){if(1===e.length){const t=e[0];if(Li(t))return ka(t,null);if(wu(t)&&Object.getPrototypeOf(t)===Object.prototype){const n=Object.keys(t);return ka(n.map(r=>t[r]),n)}}if("function"==typeof e[e.length-1]){const t=e.pop();return ka(e=1===e.length&&Li(e[0])?e[0]:e,null).pipe(Q(n=>t(...n)))}return ka(e,null)}(Hv(n,t).map(jv)).pipe(Q(Bv))}}function Fd(e){return null!=e?Gv(Uv(e)):null}function qv(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function zv(e){return e._rawValidators}function Wv(e){return e._rawAsyncValidators}function Od(e){return e?Array.isArray(e)?e:[e]:[]}function ja(e,t){return Array.isArray(e)?e.includes(t):e===t}function Kv(e,t){const n=Od(t);return Od(e).forEach(i=>{ja(n,i)||n.push(i)}),n}function Qv(e,t){return Od(t).filter(n=>!ja(e,n))}class Zv{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=Rd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Fd(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,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Qn extends Zv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class at extends Zv{get formDirective(){return null}get path(){return null}}class Yv{constructor(t){this._cd=t}is(t){var n,r,i;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}let Jv=(()=>{class e extends Yv{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Qn,2))},e.\u0275dir=M({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ia("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[X]}),e})(),Xv=(()=>{class e extends Yv{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(at,10))},e.\u0275dir=M({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ia("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[X]}),e})();function Bo(e,t){Vd(e,t),t.valueAccessor.writeValue(e.value),function uF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&tD(e,t)})}(e,t),function cF(e,t){const n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function lF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&tD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function aF(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ua(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Ga(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function $a(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Vd(e,t){const n=zv(e);null!==t.validator?e.setValidators(qv(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=Wv(e);null!==t.asyncValidator?e.setAsyncValidators(qv(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();$a(t._rawValidators,i),$a(t._rawAsyncValidators,i)}function Ga(e,t){let n=!1;if(null!==e){if(null!==t.validator){const i=zv(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.validator);o.length!==i.length&&(n=!0,e.setValidators(o))}}if(null!==t.asyncValidator){const i=Wv(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(n=!0,e.setAsyncValidators(o))}}}const r=()=>{};return $a(t._rawValidators,r),$a(t._rawAsyncValidators,r),n}function tD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ld(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function jd(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===Va?n=o:function hF(e){return Object.getPrototypeOf(e.constructor)===yr}(o)?r=o:i=o}),i||r||n||null}function Bd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ho="VALID",qa="INVALID",Ci="PENDING",Uo="DISABLED";function Ud(e){return(za(e)?e.validators:e)||null}function oD(e){return Array.isArray(e)?Rd(e):e||null}function $d(e,t){return(za(t)?t.asyncValidators:e)||null}function sD(e){return Array.isArray(e)?Fd(e):e||null}function za(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const Gd=e=>e instanceof Ka,Wa=e=>e instanceof wi,aD=e=>e instanceof Qa;function uD(e){return Gd(e)?e.value:e.getRawValue()}function lD(e,t){const n=Wa(e),r=e.controls;if(!(n?Object.keys(r):r).length)throw new z(1e3,"");if(!r[t])throw new z(1001,"")}function cD(e,t){Wa(e),e._forEachChild((r,i)=>{if(void 0===t[i])throw new z(1002,"")})}class qd{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=oD(this._rawValidators),this._composedAsyncValidatorFn=sD(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===Ho}get invalid(){return this.status===qa}get pending(){return this.status==Ci}get disabled(){return this.status===Uo}get enabled(){return this.status!==Uo}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=oD(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=sD(t)}addValidators(t){this.setValidators(Kv(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Kv(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qv(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qv(t,this._rawAsyncValidators))}hasValidator(t){return ja(this._rawValidators,t)}hasAsyncValidator(t){return ja(this._rawAsyncValidators,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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ci,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Uo,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ho,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!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===Ho||this.status===Ci)&&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(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Uo:Ho}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ci,this._hasOwnPendingAsyncValidator=!0;const n=jv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){return function pF(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(n)),Array.isArray(t)&&0===t.length))return null;let r=e;return t.forEach(i=>{r=Wa(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:aD(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}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 Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?Uo:this.errors?qa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ci)?Ci:this._anyControlsHaveStatus(qa)?qa:Ho}_anyControlsHaveStatus(t){return this._anyControls(n=>n.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){za(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ka extends qd{constructor(t=null,n,r){super(Ud(n),$d(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),za(n)&&n.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bd(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bd(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 wi extends qd{constructor(t,n,r){super(Ud(n),$d(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){cD(this,t),Object.keys(t).forEach(r=>{lD(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=uD(n),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_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}}class Qa extends qd{constructor(t,n,r){super(Ud(n),$d(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){cD(this,t),t.forEach((r,i)=>{lD(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>uD(t))}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_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)}}let gD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=M({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),yD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();const Wd=new I("NgModelWithFormControlWarning"),CF={provide:Qn,useExisting:ue(()=>Kd)};let Kd=(()=>{class e extends Qn{constructor(n,r,i,o){super(),this._ngModelWarningConfig=o,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=jd(0,i)}set isDisabled(n){}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&Ua(r,this,!1),Bo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ld(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ua(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(Ye,10),m(Kn,10),m(dn,10),m(Wd,8))},e.\u0275dir=M({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pe([CF]),X,Ve]}),e})();const wF={provide:at,useExisting:ue(()=>Za)};let Za=(()=>{class e extends at{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ga(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return Bo(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Ua(n.control||null,n,!1),Bd(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function iD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,i=this.form.get(n.path);r!==i&&(Ua(r||null,n),Gd(i)&&(Bo(i,n),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function nD(e,t){Vd(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function dF(e,t){return Ga(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vd(this.form,this),this._oldForm&&Ga(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(n){return new(n||e)(m(Ye,10),m(Kn,10))},e.\u0275dir=M({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&Le("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([wF]),X,Ve]}),e})();const TF={provide:Qn,useExisting:ue(()=>Yd)};let Yd=(()=>{class e extends Qn{constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=jd(0,o)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),Ld(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function Ha(e,t){return[...t.path,e]}(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 e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(at,13),m(Ye,10),m(Kn,10),m(dn,10),m(Wd,8))},e.\u0275dir=M({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[pe([TF]),X,Ve]}),e})(),RD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[yD]]}),e})(),UF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[RD]}),e})(),FD=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wd,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[RD]}),e})(),GF=(()=>{class e{group(n,r=null){const i=this._reduceControls(n);let a,o=null,s=null;return null!=r&&(function $F(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(r)?(o=null!=r.validators?r.validators:null,s=null!=r.asyncValidators?r.asyncValidators:null,a=null!=r.updateOn?r.updateOn:void 0):(o=null!=r.validator?r.validator:null,s=null!=r.asyncValidator?r.asyncValidator:null)),new wi(i,{asyncValidators:s,updateOn:a,validators:o})}control(n,r,i){return new Ka(n,r,i)}array(n,r,i){const o=n.map(s=>this._createControl(s));return new Qa(o,r,i)}_reduceControls(n){const r={};return Object.keys(n).forEach(i=>{r[i]=this._createControl(n[i])}),r}_createControl(n){return Gd(n)||Wa(n)||aD(n)?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:FD}),e})();const OD="object"==typeof global&&global&&global.Object===Object&&global;var zF="object"==typeof self&&self&&self.Object===Object&&self;const Tn=OD||zF||Function("return this")(),Zn=Tn.Symbol;var PD=Object.prototype,QF=PD.hasOwnProperty,ZF=PD.toString,Go=Zn?Zn.toStringTag:void 0;var e1=Object.prototype.toString;var kD=Zn?Zn.toStringTag:void 0;const Sn=function o1(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kD&&kD in Object(e)?function YF(e){var t=QF.call(e,Go),n=e[Go];try{e[Go]=void 0;var r=!0}catch(o){}var i=ZF.call(e);return r&&(t?e[Go]=n:delete e[Go]),i}(e):function t1(e){return e1.call(e)}(e)},In=function s1(e){return null!=e&&"object"==typeof e},VD=function u1(e){return!0===e||!1===e||In(e)&&"[object Boolean]"==Sn(e)},LD=function c1(e){return"number"==typeof e||In(e)&&"[object Number]"==Sn(e)},Yn=Array.isArray,tf=function h1(e){return"string"==typeof e||!Yn(e)&&In(e)&&"[object String]"==Sn(e)};function Ei(e){return t=>t.lift(new p1(e))}class p1{constructor(t){this.notifier=t}call(t,n){const r=new g1(t),i=ps(this.notifier,new fs(r));return i&&!r.seenValue?(r.add(i),n.subscribe(r)):r}}class g1 extends hs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let An=(()=>{class e{constructor(){}isBoolean(n){return VD(n)}isNumber(n){return LD(n)}isObservable(n){return n instanceof ae}isPromise(n){return n instanceof Promise}isString(n){return tf(n)}isTemplateRef(n){return n instanceof zt}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();new I("default error image"),new I("default loading image");let A1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo]]}),e})();class Dt extends Xe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return n&&!n.closed&&t.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ar;return this._value}next(t){super.next(this._value=t)}}function T(...e){let t=e[e.length-1];return xr(t)?(e.pop(),Mu(e,t)):Tu(e)}class N1 extends ge{constructor(t,n){super()}schedule(t,n=0){return this}}let HD=(()=>{class e{constructor(n,r=e.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,i){return new this.SchedulerAction(this,n).schedule(i,r)}}return e.now=()=>Date.now(),e})();class Jn extends HD{constructor(t,n=HD.now){super(t,()=>Jn.delegate&&Jn.delegate!==this?Jn.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,n=0,r){return Jn.delegate&&Jn.delegate!==this?Jn.delegate.schedule(t,n,r):super.schedule(t,n,r)}flush(t){const{actions:n}=this;if(this.active)return void n.push(t);let r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this.active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}const F1=new Jn(class R1 extends N1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){if(this.closed)return this;this.state=t;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let i,r=!1;try{this.work(t)}catch(o){r=!0,i=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,n=this.scheduler,r=n.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null}});function UD(e){return!Li(e)&&e-parseFloat(e)+1>=0}function P1(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function bt(e,t){return"function"==typeof t?n=>n.pipe(bt((r,i)=>je(e(r,i)).pipe(Q((o,s)=>t(r,o,i,s))))):n=>n.lift(new k1(e))}class k1{constructor(t){this.project=t}call(t,n){return n.subscribe(new V1(t,this.project))}}class V1 extends hs{constructor(t,n){super(t),this.project=n,this.index=0}_next(t){let n;const r=this.index++;try{n=this.project(t,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(t){const n=this.innerSubscription;n&&n.unsubscribe();const r=new fs(this),i=this.destination;i.add(r),this.innerSubscription=ps(t,r),this.innerSubscription!==r&&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)}}class j1{constructor(t){this.predicate=t}call(t,n){return n.subscribe(new B1(t,this.predicate))}}class B1 extends se{constructor(t,n){super(t),this.predicate=n,this.skipping=!0,this.index=0}_next(t){const n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)}tryCallPredicate(t){try{const n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(n){this.destination.error(n)}}}function Xn(){}function ut(e,t,n){return function(i){return i.lift(new H1(e,t,n))}}class H1{constructor(t,n,r){this.nextOrObserver=t,this.error=n,this.complete=r}call(t,n){return n.subscribe(new U1(t,this.nextOrObserver,this.error,this.complete))}}class U1 extends se{constructor(t,n,r,i){super(t),this._tapNext=Xn,this._tapError=Xn,this._tapComplete=Xn,this._tapError=r||Xn,this._tapComplete=i||Xn,rr(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Xn,this._tapError=n.error||Xn,this._tapComplete=n.complete||Xn)}_next(t){try{this._tapNext.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class G1{constructor(t,n){this.count=t,this.source=n}call(t,n){return n.subscribe(new q1(t,this.count,this.source))}}class q1 extends se{constructor(t,n,r){super(t),this.count=n,this.source=r}error(t){if(!this.isStopped){const{source:n,count:r}=this;if(0===r)return super.error(t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}function er(e){return function(n){const r=new z1(e),i=n.lift(r);return r.caught=i}}class z1{constructor(t){this.selector=t}call(t,n){return n.subscribe(new W1(t,this.selector,this.caught))}}class W1 extends hs{constructor(t,n,r){super(t),this.selector=n,this.caught=r}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const r=new fs(this);this.add(r);const i=ps(n,r);i!==r&&this.add(i)}}}const rf=function Q1(e){return"symbol"==typeof e||In(e)&&"[object Symbol]"==Sn(e)};var Z1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y1=/^\w*$/;const $D=function eO(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},of=function oO(e){if(!$D(e))return!1;var t=Sn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sf=Tn["__core-js_shared__"];var GD=function(){var e=/[^.]+$/.exec(sf&&sf.keys&&sf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var cO=Function.prototype.toString;const vr=function dO(e){if(null!=e){try{return cO.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var hO=/^\[object .+?Constructor\]$/,_O=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const DO=function vO(e){return!(!$D(e)||function aO(e){return!!GD&&GD in e}(e))&&(of(e)?_O:hO).test(vr(e))},Mi=function wO(e,t){var n=function bO(e,t){return null==e?void 0:e[t]}(e,t);return DO(n)?n:void 0},qo=Mi(Object,"create");var NO=Object.prototype.hasOwnProperty;var PO=Object.prototype.hasOwnProperty;function Ti(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Si.prototype.set=function XO(e,t){var n=this.__data__,r=Ya(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Ja=Si,zo=Mi(Tn,"Map"),Xa=function sP(e,t){var n=e.__data__;return function iP(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function Ii(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,h=2&n?new ek:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var fe={};fe["[object Float32Array]"]=fe["[object Float64Array]"]=fe["[object Int8Array]"]=fe["[object Int16Array]"]=fe["[object Int32Array]"]=fe["[object Uint8Array]"]=fe["[object Uint8ClampedArray]"]=fe["[object Uint16Array]"]=fe["[object Uint32Array]"]=!0,fe["[object Arguments]"]=fe["[object Array]"]=fe["[object ArrayBuffer]"]=fe["[object Boolean]"]=fe["[object DataView]"]=fe["[object Date]"]=fe["[object Error]"]=fe["[object Function]"]=fe["[object Map]"]=fe["[object Number]"]=fe["[object Object]"]=fe["[object RegExp]"]=fe["[object Set]"]=fe["[object String]"]=fe["[object WeakMap]"]=!1;var ab="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wo=ab&&"object"==typeof module&&module&&!module.nodeType&&module,df=Wo&&Wo.exports===ab&&OD.process,OV=function(){try{return Wo&&Wo.require&&Wo.require("util").types||df&&df.binding&&df.binding("util")}catch(t){}}(),lb=OV&&OV.isTypedArray;const cb=lb?function NV(e){return function(t){return e(t)}}(lb):function AV(e){return In(e)&&sb(e.length)&&!!fe[Sn(e)]};var VV=Object.prototype.hasOwnProperty;const jV=function LV(e,t){var n=Yn(e),r=!n&&Wk(e),i=!n&&!r&&cf(e),o=!n&&!r&&!i&&cb(e),s=n||r||i||o,a=s?function Bk(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:0,n=(Ge[e[t+0]]+Ge[e[t+1]]+Ge[e[t+2]]+Ge[e[t+3]]+"-"+Ge[e[t+4]]+Ge[e[t+5]]+"-"+Ge[e[t+6]]+Ge[e[t+7]]+"-"+Ge[e[t+8]]+Ge[e[t+9]]+"-"+Ge[e[t+10]]+Ge[e[t+11]]+Ge[e[t+12]]+Ge[e[t+13]]+Ge[e[t+14]]+Ge[e[t+15]]).toLowerCase();if(!TL(n))throw TypeError("Stringified UUID is invalid");return n}(r)},zL=new I("nb-trans-default-lang");var xn=(()=>(function(e){e.ZH_CN="zh-CN",e.ZH_TW="zh-TW",e.ZH_HK="zh-HK",e.EN="en",e.AR_EG="ar-EG",e.HY_AM="hy-AM",e.BG_BG="bg-BG",e.CA_ES="ca-ES",e.CS_CZ="cs-CZ",e.DA_DK="da-DK",e.DE_DE="de-DE",e.EL_GR="el-GR",e.EN_GB="en-GB",e.EN_US="en-US",e.ES_ES="es-ES",e.ET_EE="et-EE",e.FA_IR="fa-IR",e.FI_FI="fi-FI",e.FR_BE="fr-BE",e.FR_FR="fr-FR",e.HE_IL="he-IL",e.HI_IN="hi-IN",e.HR_HR="hr-HR",e.HU_HU="hu-HU",e.IS_IS="is-IS",e.ID_ID="id-ID",e.IT_IT="it-IT",e.JA_JP="ja-JP",e.KA_GE="ka-GE",e.KN_IN="kn-IN",e.KO_KR="ko-KR",e.KU_IQ="ku-IQ",e.LV_LV="lv-LV",e.MS_MY="ms-MY",e.MN_MN="mn-MN",e.NB_NO="nb-NO",e.NE_NP="ne-NP",e.NL_BE="nl-BE",e.NL_NL="nl-NL",e.PL_PL="pl-PL",e.PT_BR="pt-BR",e.PT_PT="pt-PT",e.SK_SK="sk-SK",e.SR_RS="sr-RS",e.SL_SI="sl-SI",e.SV_SE="sv-SE",e.TA_IN="ta-IN",e.TH_TH="th-TH",e.TR_TR="tr-TR",e.RO_RO="ro-RO",e.RU_RU="ru-RU",e.UK_UA="uk-UA",e.VI_VN="vi-VN"}(xn||(xn={})),xn))();const wb=new I("nb-trans-loader"),WL=new I("nb-trans-max-retry");let Ko=(()=>{class e{constructor(n){this.valueType=n}static checkNavigator(){return e.checkWindow()&&void 0!==window.navigator}static checkWindow(){return"undefined"!=typeof window}getFinalKey(n,r){return r?`${r}.${n}`:n}handleSentence(n,r,i){return n.replace(new RegExp(r,"g"),i)}handleSentenceWithParams(n,r){if(!r)return n;const i=Object.keys(r);if(!i.length)return n;const o=i.reduce((a,u)=>(a[u]=xL(),a),{});let s=n;return i.forEach(a=>{s=this.handleSentence(s,`{{${a}}}`,o[a])}),n=s,i.forEach(a=>{n=this.handleSentence(n,o[a],r[a])}),n}handleTrans(n){const r=[];for(;n.length;){const i=n.search(/<\d+>/);if(i>0){const s=n.slice(0,i);r.push(s)}const o=this.handleCompStr(n);this.valueType.isString(o)?(r.push(o),n=""):(r.push({index:o.index,content:o.content,list:o.list}),n=o.otherContent)}return r}handleCompStr(n){const r=n.search(/<\d+>/);if(-1===r)return n;let i=[];const o=n.indexOf(">",r),s=Number(n.slice(r+1,o)),a=``,u=n.indexOf(a),l=n.slice(o+1,u);return l.search(/<\d+>/)>-1&&(i=this.handleTrans(l)),{index:s,content:l,list:i,otherContent:n.slice(u+a.length,n.length)}}}return e.\u0275fac=function(n){return new(n||e)(E(An))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ou=(()=>{class e{constructor(n,r,i,o){this.transDefaultLang=n,this.transLoader=r,this.maxRetry=i,this.transToolsService=o,this.lang$=new Dt(xn.ZH_CN),this.loadDefaultOver$=new Dt(!1),this.loadLangTrans$=new Xe,this.retry=5,this.translations={},this.retry=null==this.maxRetry?this.retry:this.maxRetry,this.transLoader=this.transLoader||{},this.lang$.next(n||xn.ZH_CN),this.loadDefaultTrans()}get lang(){return this.lang$.value}get loadDefaultOver(){return this.loadDefaultOver$.value}static getBrowserLang(){var n;if(Ko.checkNavigator())return null===(n=null==window?void 0:window.navigator)||void 0===n?void 0:n.language}static getBrowserLangs(){var n;if(Ko.checkNavigator())return null===(n=null==window?void 0:window.navigator)||void 0===n?void 0:n.languages}changeLang(n){const r={curLang:n,result:!0},i={curLang:this.lang,result:!1};return this.translations[n]?(this.lang$.next(n),T(r)):this.transLoader[n]?this.loadLangTrans(n).pipe(bt(o=>{let s=this.lang,a=i;return o&&(s=n,a=r),this.lang$.next(s),T(a)})):(function O1(e=0,t,n){let r=-1;return UD(t)?r=Number(t)<1?1:Number(t):xr(t)&&(n=t),xr(n)||(n=F1),new ae(i=>{const o=UD(e)?e:+e-n.now();return n.schedule(P1,o,{index:0,period:r,subscriber:i})})}().subscribe(o=>this.loadLangTrans$.next(!1)),T(i))}changeLangSync(n){this.changeLang(n).subscribe()}getBrowserLang(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLang()!"),e.getBrowserLang()}getBrowserLangs(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLangs()!"),e.getBrowserLangs()}translationAsync(n,r){return this.lang$.pipe(bt(i=>this.translations[this.lang]?T({trans:this.translations[this.lang],result:!0}):this.loadLangTrans$),Q(i=>this.translationSync(n,r)))}translationSync(n,r){const i=this.transToolsService.getFinalKey(n,null==r?void 0:r.prefix),o=!1===(null==r?void 0:r.returnKeyWhenEmpty)?"":i;let s=ZD(this.translations[this.lang],i);return s||(s=ZD(this.translations[this.transDefaultLang],i)),s?(s=this.transToolsService.handleSentenceWithParams(s,null==r?void 0:r.params),s||o):o}subscribeLangChange(){return this.lang$.asObservable()}subscribeLoadDefaultOver(){return this.loadDefaultOver?T(!0):this.loadDefaultOver$.asObservable().pipe(function L1(e){return t=>t.lift(new j1(e))}((n,r)=>!n&&0===r))}loadDefaultTrans(){this.loadTrans(this.lang).subscribe(n=>{const r=!!n;this.loadDefaultOver$.next(r),this.loadDefaultOver$.complete(),this.loadLangTrans$.next(r)})}loadLangTrans(n){return this.loadTrans(n).pipe(Q(r=>{const i=!!r;return this.loadLangTrans$.next(i),i}))}loadTrans(n){const r=this.transLoader[n];return r?(of(r)?T(null).pipe(bt(()=>je(r()))):T(r)).pipe(ut(o=>this.translations[n]=o),function $1(e=-1){return t=>t.lift(new G1(e,t))}(this.retry),er(o=>T(null))):T(null)}}return e.\u0275fac=function(n){return new(n||e)(E(zL,8),E(wb,8),E(WL,8),E(Ko))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Eb=(()=>{class e{constructor(n,r){this.changeDR=n,this.transService=r,this.latestValue="",this.destroy$=new Xe,this.key="",this.subscribeLangChange()}transform(n,r){return(!this.latestValue||n!==this.key||!mf(r,this.options))&&(this.latestValue=this.transService.translationSync(n,r),this.key=n,this.options=r),this.latestValue}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}subscribeLangChange(){this.transService.subscribeLangChange().pipe(bt(n=>this.transService.translationAsync(this.key,this.options)),Ei(this.destroy$)).subscribe(n=>this.updateLatestValue(n))}updateLatestValue(n){this.latestValue=n,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(Kt,16),m(ou,16))},e.\u0275pipe=Z({name:"nbTrans",type:e,pure:!1}),e})(),JL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo,A1]]}),e})();const XL=["nb-r-str",""];function ej(e,t){if(1&e&&(Nt(0),te(1),Y(2,"async"),Rt()),2&e){const n=De();F(1),Fe(oe(2,1,n.asyncContent))}}function tj(e,t){if(1&e&&(Nt(0),te(1),Rt()),2&e){const n=De();F(1),Fe(n.content)}}let Cr=(()=>{class e{constructor(){}isBoolean(n){return VD(n)}isNumber(n){return LD(n)}isObservable(n){return n instanceof ae}isPromise(n){return n instanceof Promise}isString(n){return tf(n)}isTemplateRef(n){return n instanceof zt}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Mb=(()=>{class e{constructor(n){this.valueTypeService=n}transform(n){return this.valueTypeService.isObservable(n)||this.valueTypeService.isPromise(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Cr,16))},e.\u0275pipe=Z({name:"nbIsAsync",type:e,pure:!0}),e})(),Tb=(()=>{class e{constructor(){this.content=""}get asyncContent(){return this.content}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["","nb-r-str",""]],inputs:{content:["nb-r-str","content"]},attrs:XL,decls:4,vars:4,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(n,r){1&n&&(Nt(0,0),Y(1,"nbIsAsync"),me(2,ej,3,3,"ng-container",1),me(3,tj,2,1,"ng-container",2),Rt()),2&n&&(j("ngSwitch",oe(1,2,r.content)),F(2),j("ngSwitchCase",!0))},directives:[mr,ko,Na],pipes:[Mb,Cd],encapsulation:2,changeDetection:0}),e})();new I("default error image"),new I("default loading image");let hj=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo]]}),e})();class gj extends se{notifyNext(t,n,r,i,o){this.destination.next(n)}notifyError(t,n){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class mj extends se{constructor(t,n,r){super(),this.parent=t,this.outerValue=n,this.outerIndex=r,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 yj(e,t,n,r,i=new mj(e,n,r)){if(!i.closed)return t instanceof ae?t.subscribe(i):Eu(t)(i)}const Sb={};function Ib(...e){let t,n;return xr(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Li(e[0])&&(e=e[0]),Tu(e,n).lift(new _j(t))}class _j{constructor(t){this.resultSelector=t}call(t,n){return n.subscribe(new vj(t,this.resultSelector))}}class vj extends gj{constructor(t,n){super(t),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Sb),this.observables.push(t)}_complete(){const t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r_f(e,n,t)):n=>_f(e,n)}class Cj{constructor(t,n){this.compare=t,this.keySelector=n}call(t,n){return n.subscribe(new wj(t,this.compare,this.keySelector))}}class wj extends se{constructor(t,n,r){super(t),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}compare(t,n){return t===n}_next(t){let n;try{const{keySelector:i}=this;n=i?i(t):t}catch(i){return this.destination.error(i)}let r=!1;if(this.hasKey)try{const{compare:i}=this;r=i(this.key,n)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=n,this.destination.next(t))}}function Ej(e,t){if(1&e&&(ct(0,"div",1),Y(1,"nbErrInfo")),2&e){const n=De();j("nb-r-str",function fa(e,t,n,r){const i=e+20,o=_(),s=kr(o,i);return Ao(o,i)?Qy(o,et(),t,s.transform,n,r,s):s.transform(n,r)}(1,1,n.control.errors,n.allErrInfo))}}function Mj(e,t){1&e&&(ee(0,"span",4),te(1,"*"),K())}function Tj(e,t){if(1&e&&ct(0,"nb-control-err",5),2&e){const n=De();j("control",n.control)("errInfo",n.errInfo)}}const Sj=[[["","field-label",""]],"*"],Ij=["[field-label]","*"],Ab=new I("common errors information");var Je=(()=>(function(e){e.REQUIRED="required",e.FILE_MAX_SIZE="fileMaxSize",e.FILE_MIN_SIZE="fileMinSize",e.FILE_TYPE="fileType",e.EQUAL="equal",e.MAX_LENGTH="maxlength",e.MIN_LENGTH="minlength",e.ARR_MAX_LENGTH="arrMaxLength",e.ARR_MIN_LENGTH="arrMinLength",e.WHITESPACE="whitespace"}(Je||(Je={})),Je))();let Aj=(()=>{class e{transform(n,r){const i=Object.keys(n||{})[0];return i&&(null==r?void 0:r[i])||""}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Z({name:"nbErrInfo",type:e,pure:!0}),e})(),Df=(()=>{class e{constructor(n={},r){this.commonErrInfo=n,this.changeDR=r,this.errInfo={},this.allErrInfo={},this.errControl=new Ka,this.hasErr=!1,this.destroy$=new Xe}ngOnChanges(n){const{control:r,errInfo:i}=n;r&&this.subscribeControlChange(),i&&this.updateAllErrInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllErrInfo(){this.allErrInfo=Object.assign(Object.assign({},this.commonErrInfo),this.errInfo),this.changeDR.markForCheck()}subscribeControlChange(){this.updateHasErr(this.control),this.control.statusChanges.pipe(Ei(this.destroy$)).subscribe(n=>this.updateHasErr(this.control))}updateHasErr(n){this.hasErr=n.dirty&&"INVALID"===n.status,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(Ab,8),m(Kt))},e.\u0275cmp=Jt({type:e,selectors:[["nb-control-err"]],inputs:{control:"control",errInfo:"errInfo"},features:[Ve],decls:1,vars:1,consts:[["class","err-info",3,"nb-r-str",4,"ngIf"],[1,"err-info",3,"nb-r-str"]],template:function(n,r){1&n&&me(0,Ej,2,4,"div",0),2&n&&j("ngIf",r.control&&r.hasErr)},directives:[Tb,xa],pipes:[Aj],styles:["[_nghost-%COMP%]{position:relative;top:100%;left:0;display:block;font-size:14px;color:red}.err-info[_ngcontent-%COMP%]{position:absolute;top:0;left:0;word-break:break-word}"],changeDetection:0}),e})(),xb=(()=>{class e{constructor(){this.errInfo={},this.required=!1}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["nb-field-item"]],inputs:{control:"control",errInfo:"errInfo",required:"required"},ngContentSelectors:Ij,decls:6,vars:2,consts:[[1,"field-label"],["class","label-required",4,"ngIf"],[1,"field-content"],["class","nb-control-err",3,"control","errInfo",4,"ngIf"],[1,"label-required"],[1,"nb-control-err",3,"control","errInfo"]],template:function(n,r){1&n&&(function wm(e){const t=_()[16][6];if(!t.projection){const r=t.projection=Xi(e?e.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=e?pS(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(Sj),ee(0,"label",0),me(1,Mj,2,0,"span",1),_c(2),K(),ee(3,"div",2),_c(4,1),me(5,Tj,1,2,"nb-control-err",3),K()),2&n&&(F(1),j("ngIf",r.required),F(4),j("ngIf",r.control))},directives:[Df,xa],styles:["[_nghost-%COMP%]{display:flex;align-items:center;margin-bottom:24px}[_nghost-%COMP%]:last-child{margin-bottom:0}.field-label[_ngcontent-%COMP%]{flex:0 0 120px;display:flex;justify-content:flex-end;align-items:center;padding:0 8px 0 4px;word-break:break-word}.field-label[_ngcontent-%COMP%]:empty{flex-basis:0;padding:0}.label-required[_ngcontent-%COMP%]{color:red}.field-content[_ngcontent-%COMP%]{flex:1 1 auto;position:relative;display:flex;align-items:center}.nb-control-err[_ngcontent-%COMP%]{position:absolute;width:100%}"],changeDetection:0}),e})(),xj=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[Vo,hj]]}),e})();const Pt_arrLength=e=>t=>Array.isArray(t.value)?e.max&&t.value.length>e.max?{[Je.ARR_MAX_LENGTH]:!0}:e.min&&t.value.lengthn=>!t&&!e.dirty||mf(n.value,e.value)?null:{[Je.EQUAL]:!0},Pt_fileSize=e=>t=>{const n=t.value;return n instanceof File?e.max&&n.size>e.max?{[Je.FILE_MAX_SIZE]:!0}:e.min&&n.sizet=>e?bi.required(t):null,Pt_whitespace=(e=!0)=>t=>e||!t.value||!tf(t.value)||t.value.trim()?null:{[Je.WHITESPACE]:!0};let Nj=(()=>{class e{constructor(){}doFormArrayFn(n,r){n.controls.forEach(i=>r(i))}doFormGroupFn(n,r){Object.keys(n.controls).forEach(i=>r(n.get(i)))}getFormValidatorStrategies(){return{required:n=>Pt_required(n.required),max:n=>{var r;if(null!==(r=n.max)&&void 0!==r&&r)return bi.max(n.max)},min:n=>{var r;if(null!==(r=n.min)&&void 0!==r&&r)return bi.min(n.min)},maxLength:n=>{var r;if(null!==(r=n.maxLength)&&void 0!==r&&r)return bi.maxLength(n.maxLength)},minLength:n=>{var r;if(null!==(r=n.minLength)&&void 0!==r&&r)return bi.minLength(n.minLength)},arrMaxLength:n=>{var r;if(null!==(r=n.arrMaxLength)&&void 0!==r&&r)return Pt_arrLength({max:n.arrMaxLength})},arrMinLength:n=>{var r;if(null!==(r=n.arrMinLength)&&void 0!==r&&r)return Pt_arrLength({min:n.arrMinLength})},maxFileSize:n=>{var r;if(null!==(r=n.maxFileSize)&&void 0!==r&&r)return Pt_fileSize({max:n.maxFileSize})},minFileSize:n=>{var r;if(null!==(r=n.minFileSize)&&void 0!==r&&r)return Pt_fileSize({min:n.minFileSize})},fileType:n=>{var r;if(null===(r=n.fileType)||void 0===r?void 0:r.length)return(e=>t=>{const n=t.value;return n instanceof File&&e.length&&!e.includes(n.type)?{[Je.FILE_TYPE]:!0}:null})(n.fileType)},pattern:n=>{if(n.pattern)return bi.pattern(n.pattern)},whitespace:n=>Pt_whitespace(n.whitespace)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Rj=(()=>{class e{constructor(n){this.formTools=n}getValidatorsFromControlConfig(n){const r=this.formTools.getFormValidatorStrategies(),i=[];return Object.keys(n).forEach(o=>{var s;const a=null===(s=r[o])||void 0===s?void 0:s.call(r,n);a&&i.push(a)}),i}markAllAsDirty(n,r){null==n||n.markAsDirty(r);const i=o=>this.markAllAsDirty(o,r);n instanceof Qa?this.formTools.doFormArrayFn(n,i):n instanceof wi&&this.formTools.doFormGroupFn(n,i)}showAllErrInfo(n,r){null==n||n.markAllAsTouched(),this.markAllAsDirty(n,r),this.updateAllValueAndValidity(n,r)}updateAllValueAndValidity(n,r){null==n||n.updateValueAndValidity(r);const i=o=>this.updateAllValueAndValidity(o,r);n instanceof Qa?this.formTools.doFormArrayFn(n,i):n instanceof wi&&this.formTools.doFormGroupFn(n,i)}updateEqualControlsValidities(n,r){const{target:i,compared:o}=n;return Ib([i.statusChanges.pipe(vf(i.status)),o.statusChanges.pipe(vf(o.status))]).pipe(function bj(e,t){return n=>n.lift(new Cj(e,t))}((s,a)=>mf(s,a)),r?Ei(r):ut(()=>{})).subscribe(s=>{i.updateValueAndValidity(),o.updateValueAndValidity()})}}return e.\u0275fac=function(n){return new(n||e)(E(Nj))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function su(e,t){return new ae(t?n=>t.schedule(Fj,0,{error:e,subscriber:n}):n=>n.error(e))}function Fj({error:e,subscriber:t}){t.error(e)}const au=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),xi=new ae(e=>e.complete());function bf(e){return e?function Oj(e){return new ae(t=>e.schedule(()=>t.complete()))}(e):xi}function Nb(e){return new ae(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?je(n):bf()).subscribe(t)})}const Rb=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function Cf(e){return t=>0===e?bf():t.lift(new Pj(e))}class Pj{constructor(t){if(this.total=t,this.total<0)throw new Rb}call(t,n){return n.subscribe(new kj(t,this.total))}}class kj extends se{constructor(t,n){super(t),this.total=n,this.count=0}_next(t){const n=this.total,r=++this.count;r<=n&&(this.destination.next(t),r===n&&(this.destination.complete(),this.unsubscribe()))}}function Fb(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Vj(e,t,n))}}class Vj{constructor(t,n,r=!1){this.accumulator=t,this.seed=n,this.hasSeed=r}call(t,n){return n.subscribe(new Lj(t,this.accumulator,this.seed,this.hasSeed))}}class Lj extends se{constructor(t,n,r,i){super(t),this.accumulator=n,this._seed=r,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 n=this.index++;let r;try{r=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=r,this.destination.next(r)}}function wr(e,t){return function(r){return r.lift(new jj(e,t))}}class jj{constructor(t,n){this.predicate=t,this.thisArg=n}call(t,n){return n.subscribe(new Bj(t,this.predicate,this.thisArg))}}class Bj extends se{constructor(t,n,r){super(t),this.predicate=n,this.thisArg=r,this.count=0}_next(t){let n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(t)}}function Ni(e,t){return Be(e,t,1)}function wf(e){return function(n){return 0===e?bf():n.lift(new Hj(e))}}class Hj{constructor(t){if(this.total=t,this.total<0)throw new Rb}call(t,n){return n.subscribe(new Uj(t,this.total))}}class Uj extends se{constructor(t,n){super(t),this.total=n,this.ring=new Array,this.count=0}_next(t){const n=this.ring,r=this.total,i=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;ot.lift(new $j(e))}class $j{constructor(t){this.errorFactory=t}call(t,n){return n.subscribe(new Gj(t,this.errorFactory))}}class Gj extends se{constructor(t,n){super(t),this.errorFactory=n,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)}}}function qj(){return new au}function Pb(e=null){return t=>t.lift(new zj(e))}class zj{constructor(t){this.defaultValue=t}call(t,n){return n.subscribe(new Wj(t,this.defaultValue))}}class Wj extends se{constructor(t,n){super(t),this.defaultValue=n,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ri(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wr((i,o)=>e(i,o,r)):cs,Cf(1),n?Pb(t):Ob(()=>new au))}class Zj{constructor(t){this.callback=t}call(t,n){return n.subscribe(new Yj(t,this.callback))}}class Yj extends se{constructor(t,n){super(t),this.add(new ge(n))}}class Nn{constructor(t,n){this.id=t,this.url=n}}class Ef extends Nn{constructor(t,n,r="imperative",i=null){super(t,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Nn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kb extends Nn{constructor(t,n,r){super(t,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jj extends Nn{constructor(t,n,r){super(t,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xj extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tB extends Nn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class nB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rB extends Nn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vb{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Lb{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iB{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oB{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sB{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aB{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jb{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const U="primary";class uB{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Fi(e){return new uB(e)}const Bb="ngNavigationCancelingError";function Mf(e){const t=Error("NavigationCancelingError: "+e);return t[Bb]=!0,t}function cB(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return e===t}function Ub(e){return Array.prototype.concat.apply([],e)}function $b(e){return e.length>0?e[e.length-1]:null}function qe(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function hn(e){return mc(e)?e:vo(e)?je(Promise.resolve(e)):T(e)}const hB={exact:function zb(e,t,n){if(!Mr(e.segments,t.segments)||!uu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!zb(e.children[r],t.children[r],n))return!1;return!0},subset:Wb},Gb={exact:function pB(e,t){return fn(e,t)},subset:function gB(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Hb(e[n],t[n]))},ignored:()=>!0};function qb(e,t,n){return hB[n.paths](e.root,t.root,n.matrixParams)&&Gb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Wb(e,t,n){return Kb(e,t,t.segments,n)}function Kb(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Mr(i,n)||t.hasChildren()||!uu(i,n,r))}if(e.segments.length===n.length){if(!Mr(e.segments,n)||!uu(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!Wb(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Mr(e.segments,i)&&uu(e.segments,i,r)&&e.children[U])&&Kb(e.children[U],t,o,r)}}function uu(e,t,n){return t.every((r,i)=>Gb[n](e[i].parameters,r.parameters))}class Er{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fi(this.queryParams)),this._queryParamMap}toString(){return _B.serialize(this)}}class q{constructor(t,n){this.segments=t,this.children=n,this.parent=null,qe(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lu(this)}}class Zo{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Fi(this.parameters)),this._parameterMap}toString(){return Xb(this)}}function Mr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}class Qb{}class Zb{parse(t){const n=new SB(t);return new Er(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Yo(t.root,!0)}`,r=function bB(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${cu(n)}=${cu(i)}`).join("&"):`${cu(n)}=${cu(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams),i="string"==typeof t.fragment?`#${function vB(e){return encodeURI(e)}(t.fragment)}`:"";return`${n}${r}${i}`}}const _B=new Zb;function lu(e){return e.segments.map(t=>Xb(t)).join("/")}function Yo(e,t){if(!e.hasChildren())return lu(e);if(t){const n=e.children[U]?Yo(e.children[U],!1):"",r=[];return qe(e.children,(i,o)=>{o!==U&&r.push(`${o}:${Yo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function yB(e,t){let n=[];return qe(e.children,(r,i)=>{i===U&&(n=n.concat(t(r,i)))}),qe(e.children,(r,i)=>{i!==U&&(n=n.concat(t(r,i)))}),n}(e,(r,i)=>i===U?[Yo(e.children[U],!1)]:[`${i}:${Yo(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[U]?`${lu(e)}/${n[0]}`:`${lu(e)}/(${n.join("//")})`}}function Yb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cu(e){return Yb(e).replace(/%3B/gi,";")}function Tf(e){return Yb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function du(e){return decodeURIComponent(e)}function Jb(e){return du(e.replace(/\+/g,"%20"))}function Xb(e){return`${Tf(e.path)}${function DB(e){return Object.keys(e).map(t=>`;${Tf(t)}=${Tf(e[t])}`).join("")}(e.parameters)}`}const CB=/^[^\/()?;=#]+/;function fu(e){const t=e.match(CB);return t?t[0]:""}const wB=/^[^=?&#]+/,MB=/^[^&#]+/;class SB{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[U]=new q(t,n)),r}parseSegment(){const t=fu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zo(du(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=fu(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=fu(this.remaining);i&&(r=i,this.capture(r))}t[du(n)]=du(r)}parseQueryParam(t){const n=function EB(e){const t=e.match(wB);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function TB(e){const t=e.match(MB);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Jb(n),o=Jb(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=fu(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=U);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[U]:new q([],s),this.consumeOptional("//")}return n}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 eC{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Sf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Sf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=If(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return If(t,this._root).map(n=>n.value)}}function Sf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Sf(e,n);if(r)return r}return null}function If(e,t){if(e===t.value)return[t];for(const n of t.children){const r=If(e,n);if(r.length)return r.unshift(t),r}return[]}class Rn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Oi(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class tC extends eC{constructor(t,n){super(t),this.snapshot=n,Af(this,t)}toString(){return this.snapshot.toString()}}function nC(e,t){const n=function IB(e,t){const s=new hu([],{},{},"",{},U,t,null,e.root,-1,{});return new iC("",new Rn(s,[]))}(e,t),r=new Dt([new Zo("",{})]),i=new Dt({}),o=new Dt({}),s=new Dt({}),a=new Dt(""),u=new Pi(r,i,s,a,o,U,t,n.root);return u.snapshot=n.root,new tC(new Rn(u,[]),n)}class Pi{constructor(t,n,r,i,o,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=u}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(Q(t=>Fi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(t=>Fi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rC(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function AB(e){return e.reduce((t,n)=>({params:Object.assign(Object.assign({},t.params),n.params),data:Object.assign(Object.assign({},t.data),n.data),resolve:Object.assign(Object.assign({},t.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class hu{constructor(t,n,r,i,o,s,a,u,l,c,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}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=Fi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class iC extends eC{constructor(t,n){super(n),this.url=t,Af(this,n)}toString(){return oC(this._root)}}function Af(e,t){t.value._routerState=e,t.children.forEach(n=>Af(e,n))}function oC(e){const t=e.children.length>0?` { ${e.children.map(oC).join(", ")} } `:"";return`${e.value}${t}`}function xf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,fn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),fn(t.params,n.params)||e.params.next(n.params),function dB(e,t){if(e.length!==t.length)return!1;for(let n=0;nfn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Nf(e.parent,t.parent))}function Jo(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function NB(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Jo(e,r,i);return Jo(e,r)})}(e,t,n);return new Rn(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Jo(e,a)),s}}const r=function RB(e){return new Pi(new Dt(e.url),new Dt(e.params),new Dt(e.queryParams),new Dt(e.fragment),new Dt(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>Jo(e,o));return new Rn(r,i)}}function pu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xo(e){return"object"==typeof e&&null!=e&&e.outlets}function Rf(e,t,n,r,i){let o={};if(r&&qe(r,(a,u)=>{o[u]=Array.isArray(a)?a.map(l=>`${l}`):`${a}`}),e===t)return new Er(n,o,i);const s=sC(e,t,n);return new Er(s,o,i)}function sC(e,t,n){const r={};return qe(e.children,(i,o)=>{r[o]=i===t?n:sC(i,t,n)}),new q(e.segments,r)}class aC{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&pu(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Xo);if(i&&i!==$b(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ff{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function uC(e,t,n){if(e||(e=new q([],{})),0===e.segments.length&&e.hasChildren())return gu(e,t,n);const r=function LB(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=e.segments[i],a=n[r];if(Xo(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!cC(u,l,s))return o;r+=2}else{if(!cC(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=uC(e.children[s],t,o))}),qe(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new q(e.segments,i)}}function Of(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Of(new q([],{}),0,n))}),t}function lC(e){const t={};return qe(e,(n,r)=>t[r]=`${n}`),t}function cC(e,t,n){return e==n.path&&fn(t,n.parameters)}class HB{constructor(t,n,r,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=Oi(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),qe(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Oi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Oi(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const i=Oi(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new aB(o.value.snapshot))}),t.children.length&&this.forwardEvent(new oB(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(xf(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function UB(e){for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=i,s.resolver=u,s.outlet&&s.outlet.activateWith(i,u),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Pf{constructor(t,n){this.routes=t,this.module=n}}function tr(e){return"function"==typeof e}function Tr(e){return e instanceof Er}const es=Symbol("INITIAL_VALUE");function ts(){return bt(e=>Ib(e.map(t=>t.pipe(Cf(1),vf(es)))).pipe(Fb((t,n)=>{let r=!1;return n.reduce((i,o,s)=>i!==es?i:(o===es&&(r=!0),r||!1!==o&&s!==n.length-1&&!Tr(o)?i:o),t)},es),wr(t=>t!==es),Q(t=>Tr(t)?t:!0===t),Cf(1)))}class KB{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ns,this.attachRef=null}}class ns{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const r=this.getOrCreateContext(t);r.outlet=n,this.contexts.set(t,r)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new KB,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}let dC=(()=>{class e{constructor(n,r,i,o,s){this.parentContexts=n,this.location=r,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.name=o||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.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 n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new QB(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(m(ns),m(Wt),m(Mo),function Zi(e){return function xE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Jt({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&ct(0,"router-outlet")},directives:[dC],encapsulation:2}),e})();function hC(e,t=""){for(let n=0;nkt(r)===t);return n.push(...e.filter(r=>kt(r)!==t)),n}const gC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mu(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},gC):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||cB)(n,e,t);if(!o)return Object.assign({},gC);const s={};qe(o.posParams,(u,l)=>{s[l]=u.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function yu(e,t,n,r,i="corrected"){if(n.length>0&&function e2(e,t,n){return n.some(r=>_u(e,t,r)&&kt(r)!==U)}(e,n,r)){const s=new q(t,function XB(e,t,n,r){const i={};i[U]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&kt(o)!==U){const s=new q([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[kt(o)]=s}return i}(e,t,r,new q(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function t2(e,t,n){return n.some(r=>_u(e,t,r))}(e,n,r)){const s=new q(e.segments,function JB(e,t,n,r,i,o){const s={};for(const a of r)if(_u(e,n,a)&&!i[kt(a)]){const u=new q([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[kt(a)]=u}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const o=new q(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function _u(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function mC(e,t,n,r){return!!(kt(e)===r||r!==U&&_u(t,n,e))&&("**"===e.path||mu(t,e,n).matched)}function yC(e,t,n){return 0===t.length&&!e.children[n]}class vu{constructor(t){this.segmentGroup=t||null}}class _C{constructor(t){this.urlTree=t}}function rs(e){return su(new vu(e))}function vC(e){return su(new _C(e))}function n2(e){return su(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`))}class o2{constructor(t,n,r,i,o){this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(wn)}apply(){const t=yu(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,U).pipe(Q(o=>this.createUrlTree(Vf(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(er(o=>{if(o instanceof _C)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof vu?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,U).pipe(Q(i=>this.createUrlTree(Vf(i),t.queryParams,t.fragment))).pipe(er(i=>{throw i instanceof vu?this.noMatchError(i):i}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,n,r){const i=t.segments.length>0?new q([],{[U]:t}):t;return new Er(i,n,r)}expandSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(Q(o=>new q([],o))):this.expandSegment(t,r,n,r.segments,i,!0)}expandChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return je(i).pipe(Ni(o=>{const s=r.children[o],a=pC(n,o);return this.expandSegmentGroup(t,a,s,o).pipe(Q(u=>({segment:u,outlet:o})))}),Fb((o,s)=>(o[s.outlet]=s.segment,o),{}),function Kj(e,t){const n=arguments.length>=2;return r=>r.pipe(e?wr((i,o)=>e(i,o,r)):cs,wf(1),n?Pb(t):Ob(()=>new au))}())}expandSegment(t,n,r,i,o,s){return je(r).pipe(Ni(a=>this.expandSegmentAgainstRoute(t,n,r,a,i,o,s).pipe(er(l=>{if(l instanceof vu)return T(null);throw l}))),Ri(a=>!!a),er((a,u)=>{if(a instanceof au||"EmptyError"===a.name)return yC(n,i,o)?T(new q([],{})):rs(n);throw a}))}expandSegmentAgainstRoute(t,n,r,i,o,s,a){return mC(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s):rs(n):rs(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?vC(o):this.lineralizeSegments(r,o).pipe(Be(s=>{const a=new q(s,{});return this.expandSegment(t,a,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=mu(n,i,o);if(!a)return rs(n);const d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?vC(d):this.lineralizeSegments(i,d).pipe(Be(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){if("**"===r.path)return r.loadChildren?(r._loadedConfig?T(r._loadedConfig):this.configLoader.load(t.injector,r)).pipe(Q(d=>(r._loadedConfig=d,new q(i,{})))):T(new q(i,{}));const{matched:s,consumedSegments:a,remainingSegments:u}=mu(n,r,i);return s?this.getChildConfig(t,r,i).pipe(Be(c=>{const d=c.module,f=c.routes,{segmentGroup:h,slicedSegments:p}=yu(n,a,u,f),y=new q(h.segments,h.children);if(0===p.length&&y.hasChildren())return this.expandChildren(d,f,y).pipe(Q(w=>new q(a,w)));if(0===f.length&&0===p.length)return T(new q(a,{}));const v=kt(r)===o;return this.expandSegment(d,y,f,p,v?U:o,!0).pipe(Q(g=>new q(a.concat(g.segments),g.children)))})):rs(n)}getChildConfig(t,n,r){return n.children?T(new Pf(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?T(n._loadedConfig):this.runCanLoadGuards(t.injector,n,r).pipe(Be(i=>i?this.configLoader.load(t.injector,n).pipe(Q(o=>(n._loadedConfig=o,o))):function r2(e){return su(Mf(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(n))):T(new Pf([],t))}runCanLoadGuards(t,n,r){const i=n.canLoad;if(!i||0===i.length)return T(!0);const o=i.map(s=>{const a=t.get(s);let u;if(function GB(e){return e&&tr(e.canLoad)}(a))u=a.canLoad(n,r);else{if(!tr(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return hn(u)});return T(o).pipe(ts(),ut(s=>{if(!Tr(s))return;const a=Mf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Q(s=>!0===s))}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return T(r);if(i.numberOfChildren>1||!i.children[U])return n2(t.redirectTo);i=i.children[U]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreatreUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new Er(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return qe(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return qe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,i)}),new q(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${n.path}'.`);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}function Vf(e){const t={};for(const r of Object.keys(e.children)){const o=Vf(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function s2(e){if(1===e.numberOfChildren&&e.children[U]){const t=e.children[U];return new q(e.segments.concat(t.segments),t.children)}return e}(new q(e.segments,t))}class DC{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Du{constructor(t,n){this.component=t,this.route=n}}function u2(e,t,n){const r=e._root;return is(r,t?t._root:null,n,[r.value])}function bu(e,t,n){const r=function c2(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function is(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Oi(t);return e.children.forEach(s=>{(function d2(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function f2(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Mr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Mr(e.url,t.url)||!fn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nf(e,t)||!fn(e.queryParams,t.queryParams);default:return!Nf(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new DC(r)):(o.data=s.data,o._resolvedData=s._resolvedData),is(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Du(a.outlet.component,s))}else s&&os(t,a,i),i.canActivateChecks.push(new DC(r)),is(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),qe(o,(s,a)=>os(s,n.getContext(a),i)),i}function os(e,t,n){const r=Oi(e),i=e.value;qe(r,(o,s)=>{os(o,i.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Du(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class b2{}function bC(e){return new ae(t=>t.error(e))}class w2{constructor(t,n,r,i,o,s){this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=yu(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,U);if(null===n)return null;const r=new hu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Rn(r,n),o=new iC(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const n=t.value,r=rC(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,r)}processChildren(t,n){const r=[];for(const o of Object.keys(n.children)){const s=n.children[o],a=pC(t,o),u=this.processSegmentGroup(a,s,o);if(null===u)return null;r.push(...u)}const i=CC(r);return function E2(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}processSegment(t,n,r,i){for(const o of t){const s=this.processSegmentAgainstRoute(o,n,r,i);if(null!==s)return s}return yC(n,r,i)?[]:null}processSegmentAgainstRoute(t,n,r,i){if(t.redirectTo||!mC(t,n,r,i))return null;let o,s=[],a=[];if("**"===t.path){const h=r.length>0?$b(r).parameters:{};o=new hu(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MC(t),kt(t),t.component,t,wC(n),EC(n)+r.length,TC(t))}else{const h=mu(n,t,r);if(!h.matched)return null;s=h.consumedSegments,a=h.remainingSegments,o=new hu(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,MC(t),kt(t),t.component,t,wC(n),EC(n)+s.length,TC(t))}const u=function M2(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=yu(n,s,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new Rn(o,h)]}if(0===u.length&&0===c.length)return[new Rn(o,[])];const d=kt(t)===i,f=this.processSegment(u,l,c,d?U:i);return null===f?null:[new Rn(o,f)]}}function T2(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function CC(e){const t=[],n=new Set;for(const r of e){if(!T2(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=CC(r.children);t.push(new Rn(r.value,i))}return t.filter(r=>!n.has(r))}function wC(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function EC(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function MC(e){return e.data||{}}function TC(e){return e.resolve||{}}function SC(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Lf(e){return bt(t=>{const n=e(t);return n?je(n).pipe(Q(()=>t)):T(t)})}class O2 extends class F2{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const jf=new I("ROUTES");class IC{constructor(t,n,r,i){this.injector=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}load(t,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const i=this.loadModuleFactory(n.loadChildren).pipe(Q(o=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=o.create(t);return new Pf(Ub(s.injector.get(jf,void 0,O.Self|O.Optional)).map(kf),s)}),er(o=>{throw n._loader$=void 0,o}));return n._loader$=new ph(i,()=>new Xe).pipe(Su()),n._loader$}loadModuleFactory(t){return hn(t()).pipe(Be(n=>n instanceof $y?T(n):je(this.compiler.compileModuleAsync(n))))}}class k2{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function V2(e){throw e}function L2(e,t,n){return t.parse("/")}function AC(e,t){return T(null)}const j2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},B2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ct=(()=>{class e{constructor(n,r,i,o,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Xe,this.errorHandler=V2,this.malformedUriErrorHandler=L2,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:AC,afterPreactivation:AC},this.urlHandlingStrategy=new k2,this.routeReuseStrategy=new O2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(wn),this.console=s.get(ix);const d=s.get($e);this.isNgZoneEnabled=d instanceof $e&&$e.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function fB(){return new Er(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new IC(s,a,f=>this.triggerEvent(new Vb(f)),f=>this.triggerEvent(new Lb(f))),this.routerState=nC(this.currentUrlTree,this.rootComponentType),this.transitions=new Dt({id:0,targetPageId: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()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(wr(i=>0!==i.id),Q(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),bt(i=>{let o=!1,s=!1;return T(i).pipe(ut(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),bt(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return xC(a.source)&&(this.browserUrlTree=a.extractedUrl),T(a).pipe(bt(d=>{const f=this.transitions.getValue();return r.next(new Ef(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?xi:Promise.resolve(d)}),function a2(e,t,n,r){return bt(i=>function i2(e,t,n,r,i){return new o2(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(Q(o=>Object.assign(Object.assign({},i),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ut(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function S2(e,t,n,r,i){return Be(o=>function C2(e,t,n,r,i="emptyOnly",o="legacy"){try{const s=new w2(e,t,n,r,i,o).recognize();return null===s?bC(new b2):T(s)}catch(s){return bC(s)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(Q(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ut(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new Xj(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:y,extras:v}=a,D=new Ef(f,this.serializeUrl(h),p,y);r.next(D);const g=nC(h,this.rootComponentType).snapshot;return T(Object.assign(Object.assign({},a),{targetSnapshot:g,urlAfterRedirects:h,extras:Object.assign(Object.assign({},v),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),xi}),Lf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ut(a=>{const u=new eB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Q(a=>Object.assign(Object.assign({},a),{guards:u2(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function h2(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?T(Object.assign(Object.assign({},n),{guardsResult:!0})):function p2(e,t,n,r){return je(e).pipe(Be(i=>function D2(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?T(o.map(a=>{const u=bu(a,t,i);let l;if(function WB(e){return e&&tr(e.canDeactivate)}(u))l=hn(u.canDeactivate(e,t,n,r));else{if(!tr(u))throw new Error("Invalid CanDeactivate guard");l=hn(u(e,t,n,r))}return l.pipe(Ri())})).pipe(ts()):T(!0)}(i.component,i.route,n,t,r)),Ri(i=>!0!==i,!0))}(s,r,i,e).pipe(Be(a=>a&&function $B(e){return"boolean"==typeof e}(a)?function g2(e,t,n,r){return je(t).pipe(Ni(i=>_f(function y2(e,t){return null!==e&&t&&t(new iB(e)),T(!0)}(i.route.parent,r),function m2(e,t){return null!==e&&t&&t(new sB(e)),T(!0)}(i.route,r),function v2(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function l2(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Nb(()=>T(s.guards.map(u=>{const l=bu(u,s.node,n);let c;if(function zB(e){return e&&tr(e.canActivateChild)}(l))c=hn(l.canActivateChild(r,e));else{if(!tr(l))throw new Error("Invalid CanActivateChild guard");c=hn(l(r,e))}return c.pipe(Ri())})).pipe(ts())));return T(o).pipe(ts())}(e,i.path,n),function _2(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return T(!0);const i=r.map(o=>Nb(()=>{const s=bu(o,t,n);let a;if(function qB(e){return e&&tr(e.canActivate)}(s))a=hn(s.canActivate(t,e));else{if(!tr(s))throw new Error("Invalid CanActivate guard");a=hn(s(t,e))}return a.pipe(Ri())}));return T(i).pipe(ts())}(e,i.route,n))),Ri(i=>!0!==i,!0))}(r,o,e,t):T(a)),Q(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ut(a=>{if(Tr(a.guardsResult)){const l=Mf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new tB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),wr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Lf(a=>{if(a.guards.canActivateChecks.length)return T(a).pipe(ut(u=>{const l=new nB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),bt(u=>{let l=!1;return T(u).pipe(function I2(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return T(n);let o=0;return je(i).pipe(Ni(s=>function A2(e,t,n,r){return function x2(e,t,n,r){const i=SC(e);if(0===i.length)return T({});const o={};return je(i).pipe(Be(s=>function N2(e,t,n,r){const i=bu(e,t,r);return hn(i.resolve?i.resolve(t,n):i(t,n))}(e[s],t,n,r).pipe(ut(a=>{o[s]=a}))),wf(1),Be(()=>SC(o).length===i.length?T(o):xi))}(e._resolve,e,t,r).pipe(Q(o=>(e._resolvedData=o,e.data=Object.assign(Object.assign({},e.data),rC(e,n).resolve),null)))}(s.route,r,e,t)),ut(()=>o++),wf(1),Be(s=>o===i.length?T(n):xi))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ut({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ut(u=>{const l=new rB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),Lf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Q(a=>{const u=function xB(e,t,n){const r=Jo(e,t._root,n?n._root:void 0);return new tC(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),ut(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>Q(r=>(new HB(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ut({next(){o=!0},complete(){o=!0}}),function Qj(e){return t=>t.lift(new Zj(e))}(()=>{var a;o||s||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),er(a=>{if(s=!0,function lB(e){return e&&e[Bb]}(a)){const u=Tr(a.url);u||(this.navigated=!0,this.restoreHistory(i,!0));const l=new kb(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xC(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const u=new Jj(i.id,this.serializeUrl(i.extractedUrl),a);r.next(u);try{i.resolve(this.errorHandler(a))}catch(l){i.reject(l)}}return xi}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const o={replaceUrl:!0},s=(null===(i=n.state)||void 0===i?void 0:i.navigationId)?n.state:null;if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const a=this.parseUrl(n.url);this.scheduleNavigation(a,r,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){hC(n),this.config=n.map(kf),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(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=i||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function FB(e,t,n,r,i){if(0===n.length)return Rf(t.root,t.root,t.root,r,i);const o=function OB(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new aC(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return qe(o.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new aC(n,t,r)}(n);if(o.toRoot())return Rf(t.root,t.root,new q([],{}),r,i);const s=function PB(e,t,n){if(e.isAbsolute)return new Ff(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const o=n.snapshot._urlSegment;return new Ff(o,o===t.root,0)}const r=pu(e.commands[0])?0:1;return function kB(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Ff(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?gu(s.segmentGroup,s.index,o.commands):uC(s.segmentGroup,s.index,o.commands);return Rf(t.root,s.segmentGroup,a,r,i)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Tr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function H2(e){for(let t=0;t{const o=n[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Qo(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,o,s){var a,u;if(this.disposed)return Promise.resolve(!1);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((p,y)=>{l=p,c=y});const f=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),h=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):h=0,this.setTransition({id:f,targetPageId:h,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(p=>Promise.reject(p))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),o=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(n,r=!1){var i,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const i=new kb(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){pc()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function xC(e){return"imperative"!==e}class NC{}class RC{preload(t,n){return T(null)}}let FC=(()=>{class e{constructor(n,r,i,o){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=new IC(i,r,u=>n.triggerEvent(new Vb(u)),u=>n.triggerEvent(new Lb(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(wr(n=>n instanceof Qo),Ni(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(wn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(n,o)):o.children&&i.push(this.processRoutes(n,o.children));return je(i).pipe(Bi(),Q(o=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?T(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Be(o=>(r._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return e.\u0275fac=function(n){return new(n||e)(E(Ct),E(T_),E(rt),E(NC))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Uf=(()=>{class e{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Ef?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Qo&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof jb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new jb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){pc()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Sr=new I("ROUTER_CONFIGURATION"),OC=new I("ROUTER_FORROOT_GUARD"),q2=[cd,{provide:Qb,useClass:Zb},{provide:Ct,useFactory:function Z2(e,t,n,r,i,o,s={},a,u){const l=new Ct(null,e,t,n,r,i,Ub(o));return a&&(l.urlHandlingStrategy=a),u&&(l.routeReuseStrategy=u),function Y2(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,l),s.enableTracing&&l.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),l},deps:[Qb,ns,cd,rt,T_,jf,Sr,[class P2{},new Hn],[class R2{},new Hn]]},ns,{provide:Pi,useFactory:function J2(e){return e.routerState.root},deps:[Ct]},FC,RC,class G2{preload(t,n){return n().pipe(er(()=>T(null)))}},{provide:Sr,useValue:{enableTracing:!1}}];function z2(){return new N_("Router",Ct)}let PC=(()=>{class e{constructor(n,r){}static forRoot(n,r){return{ngModule:e,providers:[q2,kC(n),{provide:OC,useFactory:Q2,deps:[[Ct,new Hn,new ro]]},{provide:Sr,useValue:r||{}},{provide:Di,useFactory:K2,deps:[gr,[new Bs(ld),new Hn],Sr]},{provide:Uf,useFactory:W2,deps:[Ct,cR,Sr]},{provide:NC,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:RC},{provide:N_,multi:!0,useFactory:z2},[$f,{provide:zc,multi:!0,useFactory:X2,deps:[$f]},{provide:VC,useFactory:eH,deps:[$f]},{provide:M_,multi:!0,useExisting:VC}]]}}static forChild(n){return{ngModule:e,providers:[kC(n)]}}}return e.\u0275fac=function(n){return new(n||e)(E(OC,8),E(Ct,8))},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({}),e})();function W2(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Uf(e,t,n)}function K2(e,t,n={}){return n.useHash?new Zx(e,t):new Z_(e,t)}function Q2(e){return"guarded"}function kC(e){return[{provide:PE,multi:!0,useValue:e},{provide:jf,multi:!0,useValue:e}]}let $f=(()=>{class e{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Xe}appInitializer(){return this.injector.get(Wx,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),o=this.injector.get(Ct),s=this.injector.get(Sr);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?T(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),o.initialNavigation()):r(!0),i})}bootstrapListener(n){const r=this.injector.get(Sr),i=this.injector.get(FC),o=this.injector.get(Uf),s=this.injector.get(Ct),a=this.injector.get(nd);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),i.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(n){return new(n||e)(E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function X2(e){return e.appInitializer.bind(e)}function eH(e){return e.bootstrapListener.bind(e)}const VC=new I("Router Initializer"),nH=[];let rH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({imports:[[PC.forRoot(nH)],PC]}),e})();function iH(e,t){if(1&e){const n=function _m(){return _()}();ee(0,"form",6)(1,"nb-field-item",7)(2,"span",8),te(3),Y(4,"nbTrans"),K(),ct(5,"input",9),K(),ee(6,"nb-field-item",10)(7,"span",8),te(8),Y(9,"nbTrans"),K(),ct(10,"input",9),K(),ee(11,"nb-field-item",10)(12,"span",8),te(13),Y(14,"nbTrans"),K(),ee(15,"input",11),Le("change",function(i){return function Fh(e){return R.lFrame.contextLView=e,e[8]}(n),De().onChangeFile(i)}),K()(),ee(16,"nb-field-item",12)(17,"span",8),te(18),Y(19,"nbTrans"),K(),ct(20,"input",9),K(),ee(21,"nb-field-item",12)(22,"span",8),te(23),Y(24,"nbTrans"),K(),ct(25,"input",9),K(),ee(26,"nb-field-item",10)(27,"span",8),te(28),Y(29,"nbTrans"),K(),ct(30,"input",9),K()()}if(2&e){const n=De();j("formGroup",n.form),F(1),j("required",!0)("control",n.field1Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(4,23,"demoContent.field1"),"\uff1a"),F(2),j("formControl",n.field1Ctrl),F(1),j("control",n.field2Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(9,25,"demoContent.field2"),"\uff1a"),F(2),j("formControl",n.field2Ctrl),F(1),j("control",n.field3Ctrl)("errInfo",n.errInfo2),F(2),bn("",oe(14,27,"demoContent.field3"),"\uff1a"),F(3),j("control",n.field4Ctrl),F(2),bn("",oe(19,29,"demoContent.field4"),"\uff1a"),F(2),j("formControl",n.field4Ctrl),F(1),j("control",n.field5Ctrl),F(2),bn("",oe(24,31,"demoContent.field5"),"\uff1a"),F(2),j("formControl",n.field5Ctrl),F(1),j("control",n.field6Ctrl)("errInfo",n.errInfo1),F(2),bn("",oe(29,33,"demoContent.field6"),"\uff1a"),F(2),j("formControl",n.field6Ctrl)}}function oH(e,t){if(1&e&&(ee(0,"form",13),ct(1,"input",14)(2,"nb-control-err",10),K()),2&e){const n=De();j("formGroup",n.form),F(2),j("control",n.field1Ctrl)("errInfo",n.errInfo1)}}let sH=(()=>{class e{constructor(n,r,i){this.fb=n,this.formService=r,this.transService=i,this.errInfo1={[Je.REQUIRED]:this.transService.translationAsync("errors.required"),[Je.WHITESPACE]:this.transService.translationAsync("errors.required")},this.errInfo2={[Je.FILE_MAX_SIZE]:"The file max size is 500kb!"}}get field1Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field1")}get field2Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field2")}get field3Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field3")}get field4Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field4")}get field5Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field5")}get field6Ctrl(){var n;return null===(n=this.form)||void 0===n?void 0:n.get("field6")}ngOnInit(){this.buildForm(),this.formService.updateEqualControlsValidities({target:this.field4Ctrl,compared:this.field5Ctrl})}changeLanguage(n){this.transService.changeLangSync("en"===n?xn.EN:xn.ZH_CN)}resetCtrl1(){this.field1Ctrl.reset()}onChangeFile(n){var r;const i=n.target;i&&(null===(r=i.files)||void 0===r?void 0:r.length)&&(this.field3Ctrl.markAsDirty(),this.field3Ctrl.setValue(i.files[0]))}onSubmit(){this.formService.showAllErrInfo(this.form)}buildForm(){this.form=this.fb.group({field1:[null,[Pt_required(!0)]],field2:[null,[Pt_whitespace(!1)]],field3:[void 0,this.formService.getValidatorsFromControlConfig({fileType:["image/svg+xml","image/jpeg"],maxFileSize:5e5,minFileSize:1e5})],field4:[""],field5:[null],field6:[null,[Pt_required(!0)]]}),this.field4Ctrl.setValidators([Pt_equal(this.field5Ctrl,!1)]),this.field5Ctrl.setValidators([Pt_equal(this.field4Ctrl,!1)]),this.field6Ctrl.markAsDirty()}}return e.\u0275fac=function(n){return new(n||e)(m(GF),m(Rj),m(ou))},e.\u0275cmp=Jt({type:e,selectors:[["app-root"]],decls:49,vars:35,consts:[["href","https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md","target","_blank"],["href","https://github.com/bigBear713/nb-form/blob/master/CHANGELOG.md","target","_blank"],["type","button",3,"click"],[3,"formGroup",4,"ngIf"],["style","margin-bottom: 20px;width: 200px;",3,"formGroup",4,"ngIf"],[3,"click"],[3,"formGroup"],[3,"required","control","errInfo"],["field-label",""],["type","text",3,"formControl"],[3,"control","errInfo"],["type","file",3,"change"],[3,"control"],[2,"margin-bottom","20px","width","200px",3,"formGroup"],["type","text","formControlName","field1"]],template:function(n,r){1&n&&(ee(0,"h2")(1,"a",0),te(2," Document "),K(),ee(3,"a",1),te(4," Changelog "),K()(),ct(5,"hr"),ee(6,"h3")(7,"button",2),Le("click",function(){return r.changeLanguage("zh-CN")}),te(8,"\u5207\u6362\u4e3a\u4e2d\u6587"),K(),ee(9,"button",2),Le("click",function(){return r.changeLanguage("en")}),te(10,"switch as English"),K()(),me(11,iH,31,35,"form",3),ct(12,"hr"),ee(13,"h5"),te(14),Y(15,"nbTrans"),K(),me(16,oH,3,3,"form",4),ct(17,"hr"),ee(18,"button",2),Le("click",function(){return r.onSubmit()}),te(19),Y(20,"nbTrans"),K(),ee(21,"button",5),Le("click",function(){return r.resetCtrl1()}),te(22),Y(23,"nbTrans"),K(),ee(24,"div")(25,"p"),te(26),Y(27,"nbTrans"),K(),ee(28,"p"),te(29),Y(30,"nbTrans"),K(),ee(31,"p"),te(32),Y(33,"nbTrans"),K(),ee(34,"p"),te(35),Y(36,"nbTrans"),K(),ee(37,"p"),te(38),Y(39,"nbTrans"),K(),ee(40,"p"),te(41),Y(42,"nbTrans"),K(),ee(43,"p"),te(44),Y(45,"nbTrans"),K(),ee(46,"p"),te(47),Y(48,"nbTrans"),K()()),2&n&&(F(11),j("ngIf",r.form),F(3),Fe(oe(15,13,"demoContent.useComp")),F(2),j("ngIf",r.form),F(3),Fe(oe(20,15,"demoContent.submit")),F(3),Fe(oe(23,17,"demoContent.resetField1")),F(4),Fe(oe(27,19,"demoContent.desc")),F(3),Fe(oe(30,21,"demoContent.desc1")),F(3),Fe(oe(33,23,"demoContent.desc2")),F(3),Fe(oe(36,25,"demoContent.desc3")),F(3),Fe(oe(39,27,"demoContent.desc4")),F(3),Fe(oe(42,29,"demoContent.desc5")),F(3),Fe(oe(45,31,"demoContent.desc6")),F(3),Fe(oe(48,33,"demoContent.desc7")))},directives:[xa,gD,Xv,Za,xb,Va,Jv,Kd,Yd,Df],pipes:[Eb],styles:["h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 8px}form[_ngcontent-%COMP%]{width:300px}"]}),e})();class LC{}class jC{}class Fn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(n,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fn?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(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Fn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Fn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class aH{encodeKey(t){return BC(t)}encodeValue(t){return BC(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const lH=/%(\d[a-f0-9])/gi,cH={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function BC(e){return encodeURIComponent(e).replace(lH,(t,n)=>{var r;return null!==(r=cH[n])&&void 0!==r?r:t})}function HC(e){return`${e}`}class nr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new aH,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function uH(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new nr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}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 n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(HC(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(HC(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class dH{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function UC(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function $C(e){return"undefined"!=typeof Blob&&e instanceof Blob}function GC(e){return"undefined"!=typeof FormData&&e instanceof FormData}class ss{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function fH(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fn),this.context||(this.context=new dH),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),c)),new ss(r,i,s,{params:c,headers:l,context:d,reportProgress:u,responseType:o,withCredentials:a})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class Gf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Fn,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class qf extends Gf{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new qf({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 Cu extends Gf{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Cu({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 qC extends Gf{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 zf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let zC=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof ss)o=n;else{let u,l;u=i.headers instanceof Fn?i.headers:new Fn(i.headers),i.params&&(l=i.params instanceof nr?i.params:new nr({fromObject:i.params})),o=new ss(n,r,void 0!==i.body?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=T(o).pipe(Ni(u=>this.handler.handle(u)));if(n instanceof ss||"events"===i.observe)return s;const a=s.pipe(wr(u=>u instanceof Cu));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Q(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Q(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new nr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,zf(i,r))}post(n,r,i={}){return this.request("POST",n,zf(i,r))}put(n,r,i={}){return this.request("PUT",n,zf(i,r))}}return e.\u0275fac=function(n){return new(n||e)(E(LC))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class WC{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const KC=new I("HTTP_INTERCEPTORS");let pH=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const gH=/^\)\]\}',?\n/;let QC=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ae(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Fn(i.getAllResponseHeaders()),y=function mH(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new qf({headers:p,status:i.status,statusText:h,url:y}),s},u=()=>{let{headers:h,status:p,statusText:y,url:v}=a(),D=null;204!==p&&(D=void 0===i.response?i.responseText:i.response),0===p&&(p=D?200:0);let g=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const w=D;D=D.replace(gH,"");try{D=""!==D?JSON.parse(D):null}catch(N){D=w,g&&(g=!1,D={error:N,text:D})}}g?(r.next(new Cu({body:D,headers:h,status:p,statusText:y,url:v||void 0})),r.complete()):r.error(new qC({error:D,headers:h,status:p,statusText:y,url:v||void 0}))},l=h=>{const{url:p}=a(),y=new qC({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(y)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!i.responseText&&(p.partialText=i.responseText),r.next(p)},f=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),n.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),r.next({type:Ae.Sent}),()=>{i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),n.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(E(pv))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Wf=new I("XSRF_COOKIE_NAME"),Kf=new I("XSRF_HEADER_NAME");class ZC{}let yH=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=sv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(E(vt),E(Qc),E(Wf))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Qf=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const i=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(n);const o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(E(ZC),E(Kf))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),_H=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(KC,[]);this.chain=r.reduceRight((i,o)=>new WC(i,o),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(E(jC),E(rt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),vH=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Qf,useClass:pH}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:Wf,useValue:n.cookieName}:[],n.headerName?{provide:Kf,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:[Qf,{provide:KC,useExisting:Qf,multi:!0},{provide:ZC,useClass:yH},{provide:Wf,useValue:"XSRF-TOKEN"},{provide:Kf,useValue:"X-XSRF-TOKEN"}]}),e})(),DH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e}),e.\u0275inj=Pe({providers:[zC,{provide:LC,useClass:_H},QC,{provide:jC,useExisting:QC}],imports:[[vH.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})(),bH=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ue({type:e,bootstrap:[sH]}),e.\u0275inj=Pe({providers:[{provide:Ab,useFactory:t=>({[Je.FILE_TYPE]:t.translationAsync("errors.fileType"),[Je.FILE_MIN_SIZE]:"The file min size is 100KB!",[Je.EQUAL]:"\u4e24\u4e2a\u63a7\u4ef6\u503c\u4e0d\u76f8\u7b49"}),deps:[ou]},{provide:wb,useFactory:t=>({[xn.ZH_CN]:()=>t.get("./assets/localization/zh-CN/translations.json"),[xn.EN]:()=>t.get("./assets/localization/en/translations.json")}),deps:[zC]}],imports:[[VR,DH,UF,FD,xj,JL,rH]]}),e})();(function Tx(){k_=!1})(),PR().bootstrapModule(bH).catch(e=>console.error(e))}},rr=>{rr(rr.s=432)}]); \ No newline at end of file diff --git a/src/app/app.component.html b/src/app/app.component.html index b231ba7..681e227 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -2,7 +2,7 @@

Document - + Changelog