(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}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 e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const _=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class S extends f{constructor(e){super(e),this.destination=e}}let x=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;rnew C(e,t),e})();class C extends x{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}function E(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const D=e=>{if(e&&"function"==typeof e[g])return s=e,e=>{const t=s[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(P(e))return I(e);if(N(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[R])return t=e,e=>{const n=t[R]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new v(n=>{const s=new h;let r=0;return s.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()})),s})}function j(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[g]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(N(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(P(e))return F(e,t);if(function(e){return e&&"function"==typeof e[R]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[R](),s.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())}))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(D(e))}class M extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function q(e,t){if(t.closed)return;if(e instanceof v)return e.subscribe(t);let n;try{n=D(e)(t)}catch(s){t.error(s)}return n}function U(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(U((n,s)=>j(e(n,s)).pipe(E((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new $(e,this.project,this.concurrent))}}class $ extends L{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(e=Number.POSITIVE_INFINITY){return U(y,e)}function V(e,t){return t?F(e,t):new v(I(e))}function z(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return k(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:B(t)(V(e,n))}function W(){return function(e){return e.lift(new Q(e))}}class Q{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new K(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class K extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class G extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Y(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return W()(this)}}const Z=(()=>{const e=G.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 Y extends S{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new x}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function ee(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function te(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(te).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 ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const se=X({__forward_ref__:X});function re(e){return e.__forward_ref__=re,e.toString=function(){return te(this())},e}function ie(e){return"function"==typeof(t=e)&&t.hasOwnProperty(se)&&t.__forward_ref__===re?e():e;var t}class oe extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function ae(e){return"string"==typeof e?e:null==e?"":String(e)}function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ae(e)}function ce(e,t){const n=t?` in ${t}`:"";throw new oe("201",`No provider for ${le(e)} found${n}`)}function ue(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function he(e){return{providers:e.providers||[],imports:e.imports||[]}}function de(e){return pe(e,me)||pe(e,ye)}function pe(e,t){return e.hasOwnProperty(t)?e[t]:null}function fe(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(ve))?e[ge]:null}const me=X({"\u0275prov":X}),ge=X({"\u0275inj":X}),ye=X({ngInjectableDef:X}),ve=X({ngInjectorDef:X});var be=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let _e;function we(e){const t=_e;return _e=e,t}function Se(e,t,n){const s=de(e);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:n&be.Optional?null:void 0!==t?t:void ce(te(e),"Injector")}function xe(e){return{toString:e}.toString()}var Ce=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),ke=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Ee="undefined"!=typeof globalThis&&globalThis,Te="undefined"!=typeof window&&window,Ae="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ie="undefined"!=typeof global&&global,Oe=Ee||Ie||Te||Ae,Re={},Pe=[],Ne=[],De=X({"\u0275cmp":X}),Fe=X({"\u0275dir":X}),je=X({"\u0275pipe":X}),Me=X({"\u0275mod":X}),Le=X({"\u0275loc":X}),qe=X({"\u0275fac":X}),Ue=X({__NG_ELEMENT_ID__:X});let He=0;function $e(e){return xe(()=>{const t={},n={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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ke.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=He++,n.inputs=Qe(e.inputs,t),n.outputs=Qe(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(Be):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(Ve):null,n})}function Be(e){return Ze(e)||function(e){return e[Fe]||null}(e)}function Ve(e){return function(e){return e[je]||null}(e)}const ze={};function We(e){const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&xe(()=>{ze[e.id]=e.type}),t}function Qe(e,t){if(null==e)return Re;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const Ke=$e;function Ge(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[De]||null}function Ye(e,t){const n=e[Me]||null;if(!n&&!0===t)throw new Error(`Type ${te(e)} does not have '\u0275mod' property.`);return n}const Je=20,Xe=10;function et(e){return Array.isArray(e)&&"object"==typeof e[1]}function tt(e){return Array.isArray(e)&&!0===e[1]}function nt(e){return 0!=(8&e.flags)}function st(e){return 2==(2&e.flags)}function rt(e){return 1==(1&e.flags)}function it(e){return null!==e.template}function ot(e,t){return e.hasOwnProperty(qe)?e[qe]:null}class at{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function lt(){return ct}function ct(e){return e.type.prototype.ngOnChanges&&(e.setInput=ht),ut}function ut(){const e=dt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Re)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function ht(e,t,n,s){const r=dt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Re,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new at(l&&l.currentValue,t,o===Re),e[s]=t}function dt(e){return e.__ngSimpleChanges__||null}lt.ngInherit=!0;const pt="http://www.w3.org/2000/svg";let ft;function mt(){return void 0!==ft?ft:"undefined"!=typeof document?document:void 0}function gt(e){return!!e.listen}const yt={createRenderer:(e,t)=>mt()};function vt(e){for(;Array.isArray(e);)e=e[0];return e}function bt(e,t){return vt(t[e])}function _t(e,t){return vt(t[e.index])}function wt(e,t){return e.data[t]}function St(e,t){return e[t]}function xt(e,t){const n=t[e];return et(n)?n:n[0]}function Ct(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function kt(e){return 4==(4&e[2])}function Et(e){return 128==(128&e[2])}function Tt(e,t){return null==t?null:e[t]}function At(e){e[18]=0}function It(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Ot={lFrame:tn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rt(){return Ot.bindingsEnabled}function Pt(){return Ot.lFrame.lView}function Nt(){return Ot.lFrame.tView}function Dt(e){Ot.lFrame.contextLView=e}function Ft(){let e=jt();for(;null!==e&&64===e.type;)e=e.parent;return e}function jt(){return Ot.lFrame.currentTNode}function Mt(e,t){const n=Ot.lFrame;n.currentTNode=e,n.isParent=t}function Lt(){return Ot.lFrame.isParent}function qt(){Ot.lFrame.isParent=!1}function Ut(){return Ot.isInCheckNoChangesMode}function Ht(e){Ot.isInCheckNoChangesMode=e}function $t(){const e=Ot.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Bt(){return Ot.lFrame.bindingIndex}function Vt(){return Ot.lFrame.bindingIndex++}function zt(e){const t=Ot.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Wt(e,t){const n=Ot.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qt(t)}function Qt(e){Ot.lFrame.currentDirectiveIndex=e}function Kt(e){const t=Ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Gt(){return Ot.lFrame.currentQueryIndex}function Zt(e){Ot.lFrame.currentQueryIndex=e}function Yt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Jt(e,t,n){if(n&be.SkipSelf){let s=t,r=e;for(;s=s.parent,!(null!==s||n&be.Host||(s=Yt(r),null===s)||(r=r[15],10&s.type)););if(null===s)return!1;t=s,e=r}const s=Ot.lFrame=en();return s.currentTNode=t,s.lView=e,!0}function Xt(e){const t=en(),n=e[1];Ot.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function en(){const e=Ot.lFrame,t=null===e?null:e.child;return null===t?tn(e):t}function tn(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 nn(){const e=Ot.lFrame;return Ot.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const sn=nn;function rn(){const e=nn();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 on(){return Ot.lFrame.selectedIndex}function an(e){Ot.lFrame.selectedIndex=e}function ln(){const e=Ot.lFrame;return wt(e.tView,e.selectedIndex)}function cn(){Ot.lFrame.currentNamespace=pt}function un(){Ot.lFrame.currentNamespace=null}function hn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n=s)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}const yn=-1;class vn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function bn(e,t,n){const s=gt(e);let r=0;for(;rt){o=i-1;break}}}for(;i>16,s=t;for(;n>0;)s=s[15],n--;return s}let Tn=!0;function An(e){const t=Tn;return Tn=e,t}let In=0;function On(e,t){const n=Pn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Rn(s.data,e),Rn(t,null),Rn(s.blueprint,null));const r=Nn(e,t),i=e.injectorIndex;if(Cn(r)){const e=kn(r),n=En(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Rn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,s=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(s=2===t?e.declTNode:1===t?r[6]:null,null===s)return yn;if(n++,r=r[15],-1!==s.injectorIndex)return s.injectorIndex|n<<16}return yn}function Dn(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ue)&&(s=n[Ue]),null==s&&(s=n[Ue]=In++);const r=255&s;t.data[e+(r>>5)]|=1<=0?255&t:qn:t}(n);if("function"==typeof i){if(!Jt(t,e,s))return s&be.Host?Fn(r,n,s):jn(t,n,s,r);try{const e=i();if(null!=e||s&be.Optional)return e;ce(n)}finally{sn()}}else if("number"==typeof i){let r=null,o=Pn(e,t),a=yn,l=s&be.Host?t[16][6]:null;for((-1===o||s&be.SkipSelf)&&(a=-1===o?Nn(e,t):t[o+8],a!==yn&&Vn(s,!1)?(r=t[1],o=kn(a),t=En(a,t)):o=-1);-1!==o;){const e=t[1];if(Bn(i,o,e.data)){const e=Un(o,t,n,r,s,l);if(e!==Ln)return e}a=t[o+8],a!==yn&&Vn(s,t[1].data[o+8]===l)&&Bn(i,o,t)?(r=e,o=kn(a),t=En(a,t)):o=-1}}}return jn(t,n,s,r)}const Ln={};function qn(){return new zn(Ft(),Pt())}function Un(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Hn(a,o,n,null==s?st(a)&&Tn:s!=o&&0!=(3&a.type),r&be.Host&&i===a);return null!==l?$n(t,o,l,a):Ln}function Hn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h=l&&e.type===n)return h}if(r){const e=o[l];if(e&&it(e)&&e.type===n)return l}return null}function $n(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof vn){const o=r;o.resolving&&function(e,t){throw new oe("200",`Circular dependency in DI detected for ${e}`)}(le(i[n]));const a=An(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?we(o.injectImpl):null;Jt(e,s,be.Default);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=ct(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&we(l),An(a),o.resolving=!1,sn()}}return r}function Bn(e,t,n){return!!(n[t+(e>>5)]&1<{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(Wn)?e[Wn]:Object.defineProperty(e,Wn,{value:[]})[Wn];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class Kn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ue({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Gn=new Kn("AnalyzeForEntryComponents"),Zn=Function;function Yn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?Jn(e,t):t(e))}function Xn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function es(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ts(e,t){const n=[];for(let s=0;s=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function ss(e,t){const n=rs(e,t);if(n>=0)return e[1|n]}function rs(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}const is={},os=/\n/gm,as="__source",ls=X({provide:String,useValue:X});let cs;function us(e){const t=cs;return cs=e,t}function hs(e,t=be.Default){if(void 0===cs)throw new Error("inject() must be called from an injection context");return null===cs?Se(e,void 0,t):cs.get(e,t&be.Optional?null:void 0,t)}function ds(e,t=be.Default){return(_e||hs)(ie(e),t)}function ps(e){const t=[];for(let n=0;n({token:e})),-1),gs=fs(Qn("Optional"),8),ys=fs(Qn("SkipSelf"),4);let vs,bs;function _s(e){var t;return(null===(t=function(){if(void 0===vs&&(vs=null,Oe.trustedTypes))try{vs=Oe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return vs}())||void 0===t?void 0:t.createHTML(e))||e}function ws(e){var t;return(null===(t=function(){if(void 0===bs&&(bs=null,Oe.trustedTypes))try{bs=Oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return bs}())||void 0===t?void 0:t.createHTML(e))||e}class Ss{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xs extends Ss{getTypeName(){return"HTML"}}class Cs extends Ss{getTypeName(){return"Style"}}class ks extends Ss{getTypeName(){return"Script"}}class Es extends Ss{getTypeName(){return"URL"}}class Ts extends Ss{getTypeName(){return"ResourceURL"}}function As(e){return e instanceof Ss?e.changingThisBreaksApplicationSecurity:e}function Is(e,t){const n=Os(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Os(e){return e instanceof Ss&&e.getTypeName()||null}class Rs{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(_s(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Ps{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=_s(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=_s(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let s=t.length-1;0Fs(e.trim())).join(", ")),this.buf.push(" ",t,'="',Zs(o),'"')}var s;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();$s.hasOwnProperty(t)&&!Ls.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Zs(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ks=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gs=/([^\#-~ |!])/g;function Zs(e){return e.replace(/&/g,"&").replace(Ks,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Gs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Ys;function Js(e,t){let n=null;try{Ys=Ys||function(e){const t=new Ps(e);return function(){try{return!!(new window.DOMParser).parseFromString(_s(""),"text/html")}catch(e){return!1}}()?new Rs(t):t}(e);let s=t?String(t):"";n=Ys.getInertBodyElement(s);let r=5,i=s;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,s=i,i=n.innerHTML,n=Ys.getInertBodyElement(s)}while(s!==i);return _s((new Qs).sanitizeChildren(Xs(n)||n))}finally{if(n){const e=Xs(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Xs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var er=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function tr(e){const t=sr();return t?ws(t.sanitize(er.HTML,e)||""):Is(e,"HTML")?ws(As(e)):Js(mt(),ae(e))}function nr(e){const t=sr();return t?t.sanitize(er.URL,e)||"":Is(e,"URL")?As(e):Fs(ae(e))}function sr(){const e=Pt();return e&&e[12]}function rr(e){return e.ngDebugContext}function ir(e){return e.ngOriginalError}function or(e,...t){e.error(...t)}class ar{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||or}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?rr(e)?rr(e):this._findContext(ir(e)):null}_findOriginalError(e){let t=ir(e);for(;t&&ir(t);)t=ir(t);return t}}function lr(e,t){e.__ngContext__=t}const cr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Oe))();function ur(e){return{name:"window",target:e.ownerDocument.defaultView}}function hr(e){return e instanceof Function?e():e}var dr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function pr(e,t){return(void 0)(e,t)}function fr(e){const t=e[3];return tt(t)?t[3]:t}function mr(e){return yr(e[13])}function gr(e){return yr(e[4])}function yr(e){for(;null!==e&&!tt(e);)e=e[4];return e}function vr(e,t,n,s,r){if(null!=s){let i,o=!1;tt(s)?i=s:et(s)&&(o=!0,s=s[0]);const a=vt(s);0===e&&null!==n?null==r?Er(t,n,a):kr(t,n,a,r||null,!0):1===e&&null!==n?kr(t,n,a,r||null,!0):2===e?function(e,t,n){const s=Ar(e,t);s&&function(e,t,n,s){gt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==vt(n)&&vr(t,e,s,i,r);for(let o=Xe;o0&&(e[n-1][4]=s[4]);const o=es(e,Xe+t);jr(s[1],r=s,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var r;return s}function Sr(e,t){if(!(256&t[2])){const n=t[11];gt(n)&&n.destroyNode&&jr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return xr(e[1],e);for(;t;){let n=null;if(et(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)et(t)&&xr(t[1],t),t=t[3];null===t&&(t=e),et(t)&&xr(t[1],t),n=t&&t[4]}t=n}}(t)}}function xr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s=0?s[r=l]():s[r=-l].unsubscribe(),i+=2}else{const e=s[r=n[i+1]];n[i].call(e)}if(null!==s){for(let e=r+1;ei?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==Ur(t,c,0)||2&s&&c!==e){if(Wr(s))return!1;o=!0}}}}else{if(!o&&!Wr(s)&&!Wr(l))return!1;if(o&&Wr(l))continue;o=!1,s=l|1&s}}return Wr(s)||o}function Wr(e){return 0==(1&e)}function Qr(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||Wr(o)||(t+=Gr(i,r),r=""),s=o,i=i||!Wr(s);n++}return""!==r&&(t+=Gr(i,r)),t}const Yr={};function Jr(e){Xr(Nt(),Pt(),on()+e,Ut())}function Xr(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&dn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&pn(t,s,0,n)}an(n)}function ei(e,t){return e<<17|t<<2}function ti(e){return e>>17&32767}function ni(e){return 2|e}function si(e){return(131068&e)>>2}function ri(e,t){return-131069&e|t<<2}function ii(e){return 1|e}function oi(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;sJe&&Xr(e,t,Je,Ut()),n(s,r)}finally{an(i)}}function fi(e,t,n){if(nt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(s,r,o)}}function Ci(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ki(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ei(e,t,n){if(n){if(t.exportAs)for(let s=0;s0&&Di(n)}}function Di(e){for(let n=mr(e);null!==n;n=gr(n))for(let e=Xe;e0&&Di(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&Di(s)}}function Fi(e,t){const n=xt(t,e),s=n[1];!function(e,t){for(let n=t.length;nPromise.resolve(null))();function $i(e){return e[7]||(e[7]=[])}function Bi(e){return e.cleanup||(e.cleanup=[])}function Vi(e,t){const n=e[9],s=n?n.get(ar,null):null;s&&s.handleError(t)}function zi(e,t,n,s,r){for(let i=0;ithis.processProvider(n,e,t)),Jn([e],e=>this.processInjectorType(e,[],r)),this.records.set(Qi,ro(void 0,this));const i=this.records.get(Gi);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:te(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=is,n=be.Default){this.assertNotDestroyed();const s=us(this);try{if(!(n&be.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Kn)&&de(e);t=n&&this.injectableDefInScope(n)?ro(so(e),Zi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&be.Self?eo():this.parent).get(e,t=n&be.Optional&&t===is?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(te(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[as]&&r.unshift(t[as]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=te(t);if(Array.isArray(t))r=t.map(te).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):te(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(os,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{us(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(te(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ie(e)))return!1;let s=fe(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=fe(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Jn(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,s||Ji))}}this.injectorDefTypes.add(i);const a=ot(i)||(()=>new i);this.records.set(i,ro(a,Zi));const l=s.providers;if(null!=l&&!o){const t=e;Jn(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=oo(e=ie(e))?e:ie(e&&e.provide);const r=function(e,t,n){return io(e)?ro(void 0,e.useValue):ro(function(e,t,n){let s;if(oo(e)){const t=ie(e);return ot(t)||so(t)}if(io(e))s=()=>ie(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...ps(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>ds(ie(e.useExisting));else{const t=ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ot(t)||so(t);s=()=>new t(...ps(e.deps))}var r;return s}(e),Zi)}(e);if(oo(e)||!0!==e.multi)this.records.get(s);else{let t=this.records.get(s);t||(t=ro(void 0,Zi,!0),t.factory=()=>ps(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===Zi&&(t.value=Yi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function so(e){const t=de(e),n=null!==t?t.factory:ot(e);if(null!==n)return n;if(e instanceof Kn)throw new Error(`Token ${te(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=ts(t,"?");throw new Error(`Can't resolve all parameters for ${te(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[me]||e[ye]);if(t){const n=function(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 Error("unreachable")}function ro(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function io(e){return null!==e&&"object"==typeof e&&ls in e}function oo(e){return"function"==typeof e}const ao=function(e,t,n){return function(e,t=null,n=null,s){const r=to(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let lo=(()=>{class e{static create(e,t){return Array.isArray(e)?ao(e,t,""):ao(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=is,e.NULL=new Ki,e.\u0275prov=ue({token:e,providedIn:"any",factory:()=>ds(Qi)}),e.__NG_ELEMENT_ID__=-1,e})();function co(e,t){hn(Ct(e)[1],Ft())}function uo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r;if(it(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=ho(e.inputs),t.declaredInputs=ho(e.declaredInputs),t.outputs=ho(e.outputs);const n=r.hostBindings;n&&mo(e,n);const i=r.viewQuery,o=r.contentQueries;if(i&&po(e,i),o&&fo(e,o),ee(e.inputs,r.inputs),ee(e.declaredInputs,r.declaredInputs),ee(e.outputs,r.outputs),it(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let s=0;s=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=Sn(r.hostAttrs,n=Sn(n,r.hostAttrs))}}(s)}function ho(e){return e===Re?{}:e===Ne?[]:e}function po(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function fo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function mo(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}let go=null;function yo(){if(!go){const e=Oe.Symbol;if(e&&e.iterator)go=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(vt(e[s.index])).target:s.index;if(gt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;in?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Ho(s,t,0,i,!1);const e=n.listen(p.name||f,r,i);u.push(i,e),c&&c.push(r,g,m,m+1)}}else i=Ho(s,t,0,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}else i=Ho(s,t,0,i,!1);const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,Ot.lFrame.contextLView))[8]}(e)}function Bo(e,t,n){return Vo(e,"",t,"",n),Bo}function Vo(e,t,n,s,r){const i=Pt(),o=ko(i,t,n,s);return o!==Yr&&wi(Nt(),ln(),i,e,o,i[11],r,!1),Vo}function zo(e,t,n,s,r,i,o){const a=Pt(),l=function(e,t,n,s,r,i){const o=xo(e,Bt(),n,r);return zt(2),o?t+ae(n)+s+ae(r)+i:Yr}(a,t,n,s,r,i);return l!==Yr&&wi(Nt(),ln(),a,e,l,a[11],o,!1),zo}function Wo(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?ti(i):si(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Qo(e[a],t)&&(l=!0,e[a+1]=s?ii(n):ni(n)),a=s?ti(n):si(n)}l&&(e[n+1]=s?ni(i):ii(i))}function Qo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&rs(e,t)>=0}const Ko={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Go(e){return e.substring(Ko.key,Ko.keyEnd)}function Zo(e,t){const n=Ko.textEnd;return n===t?-1:(t=Ko.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ko.key=t,n),Yo(e,t,n))}function Yo(e,t,n){for(;t=0;n=Zo(t,n))ns(e,Go(t),!0)}function ta(e,t,n,s){const r=Nt(),i=zt(2);r.firstUpdatePass&&sa(r,null,i,s);const o=Pt();if(n!==Yr&&So(o,i,n)){const a=r.data[on()];if(ca(a,s)&&!na(r,i)){let e=s?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=ne(e,n||"")),Oo(r,a,o,n,s)}else!function(e,t,n,s,r,i,o,a){r===Yr&&(r=Pe);let l=0,c=0,u=0=e.expandoStartIndex}function sa(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[on()],o=na(e,n);ca(i,s)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=Kt(e);let i=s?t.residualClasses:t.residualStyles;if(null===r)0===(s?t.classBindings:t.styleBindings)&&(n=ia(n=ra(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=ra(r,e,t,n,s),null===i){let n=function(e,t,n){const s=n?t.classBindings:t.styleBindings;if(0!==si(s))return e[ti(s)]}(e,t,s);void 0!==n&&Array.isArray(n)&&(n=ra(null,e,t,n[1],s),n=ia(n,t.attrs,s),function(e,t,n,s){e[ti(n?t.classBindings:t.styleBindings)]=s}(e,t,s,n))}else i=function(e,t,n){let s;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=ti(e[a+1]);e[s+1]=ei(t,a),0!==t&&(e[t+1]=ri(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=ei(a,0),0!==a&&(e[a+1]=ri(e[a+1],s)),a=s;else e[s+1]=ei(l,0),0===a?a=s:e[l+1]=ri(e[l+1],s),l=s;u&&(e[s+1]=ni(e[s+1])),Wo(e,c,s,!0),Wo(e,c,s,!1),function(e,t,n,s,r){const i=r?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&rs(i,t)>=0&&(n[s+1]=ii(n[s+1]))}(t,c,e,s,i),o=ei(a,l),i?t.classBindings=o:t.styleBindings=o}(r,i,t,n,o,s)}}function ra(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===Yr&&(u=c?Pe:void 0);let h=c?ss(u,s):l===s?u:void 0;if(i&&!la(h)&&(h=ss(t,s)),la(h)&&(a=h,o))return a;const d=e[r+1];r=o?ti(d):si(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=ss(e,s))}return a}function la(e){return void 0!==e}function ca(e,t){return 0!=(e.flags&(t?16:32))}function ua(e,t=""){const n=Pt(),s=Nt(),r=e+Je,i=s.firstCreatePass?li(s,r,1,t,null):s.data[r],o=n[r]=function(e,t){return gt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Rr(s,n,o,i),Mt(i,!1)}function ha(e){return da("",e,""),ha}function da(e,t,n){const s=Pt(),r=ko(s,e,t,n);return r!==Yr&&function(e,t,n){const s=bt(t,e);!function(e,t,n){gt(e)?e.setValue(t,n):t.textContent=n}(e[11],s,n)}(s,on(),r),da}function pa(e,t,n){const s=Pt();if(So(s,Vt(),t)){const r=Nt(),i=ln();wi(r,i,s,e,t,function(e,t,n){return(null===e||it(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(Kt(r.data),i,s),n,!0)}return pa}const fa=void 0;var ma=["en",[["a","p"],["AM","PM"],fa],[["AM","PM"],fa,fa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fa,"{1} 'at' {0}",fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ga={};function ya(e){return e in ga||(ga[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),ga[e]}var va=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const ba="en-US";let _a=ba;function wa(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(_a=e.toLowerCase().replace(/_/g,"-"))}class Sa{}class xa{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${te(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Ca=(()=>{class e{}return e.NULL=new xa,e})();function ka(...e){}function Ea(e,t){return new Aa(_t(e,t))}const Ta=function(){return Ea(Ft(),Pt())};let Aa=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Ta,e})();function Ia(e){return e instanceof Aa?e.nativeElement:e}class Oa{}let Ra=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Pa(),e})();const Pa=function(){const e=Pt(),t=xt(Ft().index,e);return function(e){return e[11]}(et(t)?t:e)};let Na=(()=>{class e{}return e.\u0275prov=ue({token:e,providedIn:"root",factory:()=>null}),e})();class Da{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Fa=new Da("11.2.11");class ja{constructor(){}supports(e){return bo(e)}create(e){return new La(e)}}const Ma=(e,t)=>t;class La{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ma}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<$a(n,s,r)?t:n,o=$a(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):e=this._addAfter(new qa(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Ha),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ha),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class qa{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ua{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Ha{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Ua,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $a(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new za(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class za{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Wa(){return new Qa([new ja])}let Qa=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Wa()),deps:[[e,new ys,new gs]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ue({token:e,providedIn:"root",factory:Wa}),e})();function Ka(){return new Ga([new Ba])}let Ga=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Ka()),deps:[[e,new ys,new gs]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ue({token:e,providedIn:"root",factory:Ka}),e})();function Za(e,t,n,s,r=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&s.push(vt(i)),tt(i))for(let e=Xe;e-1&&(wr(e,n),es(t,n))}this._attachedToViewContainer=!1}Sr(this._lView[1],this._lView)}onDestroy(e){bi(this._lView[1],this._lView,null,e)}markForCheck(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Li(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ht(!0);try{Li(e,t,n)}finally{Ht(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,jr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Ja extends Ya{constructor(e){super(e),this._view=e}detectChanges(){qi(this._view)}checkNoChanges(){!function(e){Ht(!0);try{qi(e)}finally{Ht(!1)}}(this._view)}get context(){return null}}const Xa=function(e=!1){return function(e,t,n){if(!n&&st(e)){const n=xt(e.index,t);return new Ya(n,n)}return 47&e.type?new Ya(t[16],t):null}(Ft(),Pt(),e)};let el=(()=>{class e{}return e.__NG_ELEMENT_ID__=Xa,e.__ChangeDetectorRef__=!0,e})();const tl=[new Ba],nl=new Qa([new ja]),sl=new Ga(tl),rl=function(){return ll(Ft(),Pt())};let il=(()=>{class e{}return e.__NG_ELEMENT_ID__=rl,e})();const ol=il,al=class extends ol{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ai(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),ui(t,n,e),new Ya(n)}};function ll(e,t){return 4&e.type?new al(t,e,Ea(e,t)):null}class cl{}class ul{}const hl=function(){return yl(Ft(),Pt())};let dl=(()=>{class e{}return e.__NG_ELEMENT_ID__=hl,e})();const pl=dl,fl=class extends pl{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ea(this._hostTNode,this._hostLView)}get injector(){return new zn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Nn(this._hostTNode,this._hostLView);if(Cn(e)){const t=En(e,this._hostLView),n=kn(e);return new zn(t[1].data[n+8],t)}return new zn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=ml(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Xe}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(cl,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(tt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new fl(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t),i=this._lContainer;!function(e,t,n,s){const r=Xe+s,i=n.length;s>0&&(n[r-1][4]=t),scr});class Sl extends Sa{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Zr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return _l(this.componentDef.inputs)}get outputs(){return _l(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,vl,r);return i!==vl||s===vl?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(Oa,yt),o=r.get(Na,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(gt(e))return e.selectRootElement(t,n===ke.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):br(i.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?pt:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:cr,clean:Hi,playerHandler:null,flags:0},d=vi(0,null,null,1,0,null,null,null,null,null),p=ai(null,d,h,u,null,null,i,a,o,r);let f,m;Xt(p);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=li(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Wi(a,l,!0),null!==e&&(bn(r,e,l),null!==a.classes&&qr(r,e,a.classes),null!==a.styles&&Lr(r,e,a.styles)));const c=s.createRenderer(e,t),u=ai(n,yi(t),null,t.onPush?64:16,n[20],a,s,c,null,null);return o.firstCreatePass&&(Dn(On(a,n),o,t.type),ki(o,a),Ti(a,n.length,1)),ji(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)bn(a,c,["ng-version",Fa.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s0&&qr(a,c,t.join(" "))}if(m=wt(d,Je),void 0!==t){const e=m.projection=[];for(let n=0;ne(o,t)),t.contentQueries){const e=Ft();t.contentQueries(1,o,e.directiveStart)}const a=Ft();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(an(a.index),xi(n[1],a,0,a.directiveStart,a.directiveEnd,t),Ci(t,o)),o}(e,this.componentDef,p,h,[co]),ui(d,p,null)}finally{rn()}return new xl(this.componentType,f,Ea(m,p),p,m)}}class xl extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new Ja(s),this.componentType=e}get injector(){return new zn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Cl=new Map;class kl extends cl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new bl(this);const n=Ye(e),s=e[Le]||null;s&&wa(s),this._bootstrapComponents=hr(n.bootstrap),this._r3Injector=to(e,t,[{provide:cl,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],te(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=lo.THROW_IF_NOT_FOUND,n=be.Default){return e===lo||e===cl||e===Qi?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class El extends ul{constructor(e){super(),this.moduleType=e,null!==Ye(e)&&function(e){const t=new Set;!function e(n){const s=Ye(n,!0),r=s.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${te(t)} vs ${te(t.name)}`)}(r,Cl.get(r),n),Cl.set(r,n));const i=hr(s.imports);for(const o of i)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new kl(this.moduleType,e)}}function Tl(e,t,n,s){return Il(Pt(),$t(),e,t,n,s)}function Al(e,t){const n=e[t];return n===Yr?void 0:n}function Il(e,t,n,s,r,i){const o=t+n;return So(e,o,r)?wo(e,o+1,i?s.call(i,r):s(r)):Al(e,o+1)}function Ol(e,t){const n=Nt();let s;const r=e+Je;n.firstCreatePass?(s=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const s=t[n];if(e===s.name)return s}throw new oe("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,s.onDestroy)):s=n.data[r];const i=s.factory||(s.factory=ot(s.type)),o=we(Ao);try{const e=An(!1),t=i();return An(e),function(e,t,n,s){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=s}(n,Pt(),r,t),t}finally{we(o)}}function Rl(e,t,n){const s=e+Je,r=Pt(),i=St(r,s);return Nl(r,Pl(r,s)?Il(r,$t(),t,i.transform,n,i):i.transform(n))}function Pl(e,t){return e[1].data[t].pure}function Nl(e,t){return vo.isWrapped(t)&&(t=vo.unwrap(t),e[Bt()]=Yr),t}function Dl(e){return t=>{setTimeout(e,void 0,t)}}const Fl=class extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var s,r,i;let o=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;o=null===(s=t.next)||void 0===s?void 0:s.bind(t),a=null===(r=t.error)||void 0===r?void 0:r.bind(t),l=null===(i=t.complete)||void 0===i?void 0:i.bind(t)}this.__isAsync&&(a=Dl(a),o&&(o=Dl(o)),l&&(l=Dl(l)));const c=super.subscribe({next:o,error:a,complete:l});return e instanceof h&&e.add(c),c}};function jl(){return this._results[yo()]()}class Ml{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=yo(),n=Ml.prototype;n[t]||(n[t]=jl)}get changes(){return this._changes||(this._changes=new Fl)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const s=Yn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let s=0;s0)s.push(o[e/2]);else{const r=i[e+1],o=t[-n];for(let e=Xe;e{class e{constructor(e){this.appInits=e,this.resolve=ka,this.reject=ka,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(ds(ec,8))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const nc=new Kn("AppId"),sc={provide:nc,useFactory:function(){return`${rc()}${rc()}${rc()}`},deps:[]};function rc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ic=new Kn("Platform Initializer"),oc=new Kn("Platform ID"),ac=new Kn("appBootstrapListener");let lc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const cc=new Kn("LocaleId"),uc=new Kn("DefaultCurrencyCode");class hc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const dc=function(e){return new El(e)},pc=dc,fc=function(e){return Promise.resolve(dc(e))},mc=function(e){const t=dc(e),n=hr(Ye(e).declarations).reduce((e,t)=>{const n=Ze(t);return n&&e.push(new Sl(n)),e},[]);return new hc(t,n)},gc=mc,yc=function(e){return Promise.resolve(mc(e))};let vc=(()=>{class e{constructor(){this.compileModuleSync=pc,this.compileModuleAsync=fc,this.compileModuleAndAllComponentsSync=gc,this.compileModuleAndAllComponentsAsync=yc}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const bc=(()=>Promise.resolve(0))();function _c(e){"undefined"==typeof Zone?bc.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class wc{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fl(!1),this.onMicrotaskEmpty=new Fl(!1),this.onStable=new Fl(!1),this.onError=new Fl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&t,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let e=Oe.requestAnimationFrame,t=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Cc(e),xc(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Cc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,s,r,i,o,a)=>{try{return kc(e),n.invokeTask(r,i,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Ec(e)}},onInvoke:(n,s,r,i,o,a,l)=>{try{return kc(e),n.invoke(r,i,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ec(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Cc(e),xc(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(wc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,Sc,ka,ka);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Sc={};function xc(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 Cc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function kc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ec(e){e._nesting--,xc(e)}class Tc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fl,this.onMicrotaskEmpty=new Fl,this.onStable=new Fl,this.onError=new Fl}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let Ac=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{wc.assertNotInAngularZone(),_c(()=>{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())_c(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(ds(wc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Ic=(()=>{class e{constructor(){this._applications=new Map,Pc.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Pc.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();class Oc{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Rc,Pc=new Oc,Nc=!0,Dc=!1;const Fc=new Kn("AllowMultipleToken");class jc{constructor(e,t){this.name=e,this.token=t}}function Mc(e,t,n=[]){const s=`Platform: ${t}`,r=new Kn(s);return(t=[])=>{let i=Lc();if(!i||i.injector.get(Fc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Gi,useValue:"platform"});!function(e){if(Rc&&!Rc.destroyed&&!Rc.injector.get(Fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rc=e.get(qc);const t=e.get(ic,null);t&&t.forEach(e=>e())}(lo.create({providers:e,name:s}))}return function(e){const t=Lc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Lc(){return Rc&&!Rc.destroyed?Rc:null}let qc=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Tc:("zone.js"===e?void 0:e)||new wc({enableLongStackTrace:(Dc=!0,Nc),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),s=[{provide:wc,useValue:n}];return n.run(()=>{const t=lo.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ar,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{i.handleError(e)}});r.onDestroy(()=>{$c(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const s=n();return Lo(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(tc);return e.runInitializers(),e.donePromise.then(()=>(wa(r.injector.get(cc,ba)||ba),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Uc({},t);return function(e,t,n){const s=new El(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Hc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${te(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(ds(lo))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function Uc(e,t){return Array.isArray(t)?t.reduce(Uc,e):Object.assign(Object.assign({},e),t)}let Hc=(()=>{class e{constructor(e,t,n,s,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=r,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 i=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{wc.assertNotInAngularZone(),_c(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{wc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=z(i,o.pipe(e=>{return W()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,Z);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Sa?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(cl),r=n.create(lo.NULL,[],t||n.selector,s),i=r.location.nativeElement,o=r.injector.get(Ac,null),a=o&&r.injector.get(Ic);return o&&a&&a.registerApplication(i,o),r.onDestroy(()=>{this.detachView(r.hostView),$c(this.components,r),a&&a.unregisterApplication(i)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;$c(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ac,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ds(wc),ds(lo),ds(ar),ds(Ca),ds(tc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function $c(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bc{}class Vc{}const zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wc=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||zc}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,s]=e.split("#");return void 0===s&&(s="default"),n("zn8P")(t).then(e=>e[s]).then(e=>Qc(e,t,s)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,s]=e.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[s+r]).then(e=>Qc(e,t,s))}}return e.\u0275fac=function(t){return new(t||e)(ds(vc),ds(Vc,8))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function Qc(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Kc=Mc(null,"core",[{provide:oc,useValue:"unknown"},{provide:qc,deps:[lo]},{provide:Ic,deps:[]},{provide:lc,deps:[]}]),Gc=[{provide:Hc,useClass:Hc,deps:[wc,lo,ar,Ca,tc]},{provide:wl,deps:[wc],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:tc,useClass:tc,deps:[[new gs,ec]]},{provide:vc,useClass:vc,deps:[]},sc,{provide:Qa,useFactory:function(){return nl},deps:[]},{provide:Ga,useFactory:function(){return sl},deps:[]},{provide:cc,useFactory:function(e){return wa(e=e||"undefined"!=typeof $localize&&$localize.locale||ba),e},deps:[[new ms(cc),new gs,new ys]]},{provide:uc,useValue:"USD"}];let Zc=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(ds(Hc))},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:Gc}),e})(),Yc=null;function Jc(){return Yc}const Xc=new Kn("DocumentToken");let eu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({factory:tu,token:e,providedIn:"platform"}),e})();function tu(){return ds(su)}const nu=new Kn("Location Initialized");let su=(()=>{class e extends eu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Jc().getLocation(),this._history=Jc().getHistory()}getBaseHrefFromDOM(){return Jc().getBaseHref(this._doc)}onPopState(e){Jc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Jc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){ru()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){ru()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({factory:iu,token:e,providedIn:"platform"}),e})();function ru(){return!!window.history.pushState}function iu(){return new su(ds(Xc))}function ou(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 au(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 lu(e){return e&&"?"!==e[0]?"?"+e:e}let cu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({factory:uu,token:e,providedIn:"root"}),e})();function uu(e){const t=ds(Xc).location;return new du(ds(eu),t&&t.origin||"")}const hu=new Kn("appBaseHref");let du=(()=>{class e extends cu{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ou(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+lu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,s){const r=this.prepareExternalUrl(n+lu(s));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,s){const r=this.prepareExternalUrl(n+lu(s));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(ds(eu),ds(hu,8))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),pu=(()=>{class e extends cu{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=ou(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,s){let r=this.prepareExternalUrl(n+lu(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,s){let r=this.prepareExternalUrl(n+lu(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(ds(eu),ds(hu,8))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),fu=(()=>{class e{constructor(e,t){this._subject=new Fl,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=au(gu(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+lu(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,gu(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+lu(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+lu(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(ds(cu),ds(eu))},e.normalizeQueryParams=lu,e.joinWithSlash=ou,e.stripTrailingSlash=au,e.\u0275prov=ue({factory:mu,token:e,providedIn:"root"}),e})();function mu(){return new fu(ds(cu),ds(eu))}function gu(e){return e.replace(/\/index.html$/,"")}var yu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class vu{}let bu=(()=>{class e extends vu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ya(t);if(n)return n;const s=t.split("-")[0];if(n=ya(s),n)return n;if("en"===s)return ma;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[va.PluralCase]}(t||this.locale)(e)){case yu.Zero:return"zero";case yu.One:return"one";case yu.Two:return"two";case yu.Few:return"few";case yu.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(ds(cc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function _u(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}let wu=(()=>{class e{constructor(e,t,n,s){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(bo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${te(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(Ao(Qa),Ao(Ga),Ao(Aa),Ao(Ra))},e.\u0275dir=Ke({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class Su{constructor(e,t,n,s){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xu=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,s)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Su(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new Cu(e,n);t.push(r)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const i=new Cu(e,r);t.push(i)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ao(dl),Ao(il),Ao(Qa))},e.\u0275dir=Ke({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Cu{constructor(e,t){this.record=e,this.view=t}}let ku=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Eu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Tu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Tu("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ao(dl),Ao(il))},e.\u0275dir=Ke({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Eu{constructor(){this.$implicit=null,this.ngIf=null}}function Tu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${te(t)}'.`)}class Au{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Iu=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Au(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Ao(dl),Ao(il),Ao(Iu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Ru=(()=>{class e{constructor(e,t,n){n._addDefault(new Au(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Ao(dl),Ao(il),Ao(Iu,1))},e.\u0275dir=Ke({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Pu=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(Ao(dl))},e.\u0275dir=Ke({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[lt]}),e})(),Nu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:[{provide:vu,useClass:bu}]}),e})(),Du=(()=>{class e{}return e.\u0275prov=ue({token:e,providedIn:"root",factory:()=>new Fu(ds(Xc),window)}),e})();class Fu{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(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 n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const e=s.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}s=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=ju(this.window.history)||ju(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function ju(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Mu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new Mu,Yc||(Yc=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=qu||(qu=document.querySelector("base"),qu)?qu.getAttribute("href"):null;return null==t?null:(n=t,Lu||(Lu=document.createElement("a")),Lu.setAttribute("href",n),"/"===Lu.pathname.charAt(0)?Lu.pathname:"/"+Lu.pathname);var n}resetBaseElement(){qu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return _u(document.cookie,e)}}let Lu,qu=null;const Uu=new Kn("TRANSITION_ID"),Hu=[{provide:ec,useFactory:function(e,t,n){return()=>{n.get(tc).donePromise.then(()=>{const n=Jc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Uu,Xc,lo],multi:!0}];class $u{static init(){var e;e=new $u,Pc=e}addToWindow(e){Oe.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Oe.getAllAngularTestabilities=()=>e.getAllTestabilities(),Oe.getAllAngularRootElements=()=>e.getAllRootElements(),Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(e=>{const t=Oe.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach(function(e){e.whenStable(r)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Jc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Bu=new Kn("EventManagerPlugins");let Vu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Qu=(()=>{class e extends Wu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Jc().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const Ku={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/"},Gu=/%COMP%/g;function Zu(e,t,n){for(let s=0;s{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ju=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Xu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ke.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new eh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case ke.ShadowDom:return new th(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Zu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(ds(Vu),ds(Qu),ds(nc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();class Xu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ku[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=Ku[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=Ku[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&(dr.DashCase|dr.Important)?e.style.setProperty(t,n,s&dr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&dr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Yu(n)):this.eventManager.addEventListener(e,t,Yu(n))}}class eh extends Xu{constructor(e,t,n,s){super(e),this.component=n;const r=Zu(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Gu,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Gu,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class th extends Xu{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Zu(s.id,s.styles,[]);for(let i=0;i{class e extends zu{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const sh=["alt","control","meta","shift"],rh={"\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"},ih={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"},oh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let ah=(()=>{class e extends zu{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jc().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(sh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(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&&ih.hasOwnProperty(t)&&(t=ih[t]))}return rh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),sh.forEach(s=>{s!=n&&(0,oh[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),lh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({factory:function(){return ds(ch)},token:e,providedIn:"root"}),e})(),ch=(()=>{class e extends lh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case er.NONE:return t;case er.HTML:return Is(t,"HTML")?As(t):Js(this._doc,String(t)).toString();case er.STYLE:return Is(t,"Style")?As(t):t;case er.SCRIPT:if(Is(t,"Script"))return As(t);throw new Error("unsafe value used in a script context");case er.URL:return Os(t),Is(t,"URL")?As(t):Fs(String(t));case er.RESOURCE_URL:if(Is(t,"ResourceURL"))return As(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new xs(e)}bypassSecurityTrustStyle(e){return new Cs(e)}bypassSecurityTrustScript(e){return new ks(e)}bypassSecurityTrustUrl(e){return new Es(e)}bypassSecurityTrustResourceUrl(e){return new Ts(e)}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({factory:function(){return e=ds(Qi),new ch(e.get(Xc));var e},token:e,providedIn:"root"}),e})();const uh=Mc(Kc,"browser",[{provide:oc,useValue:"browser"},{provide:ic,useValue:function(){Mu.makeCurrent(),$u.init()},multi:!0},{provide:Xc,useFactory:function(){return function(e){ft=e}(document),document},deps:[]}]),hh=[[],{provide:Gi,useValue:"root"},{provide:ar,useFactory:function(){return new ar},deps:[]},{provide:Bu,useClass:nh,multi:!0,deps:[Xc,wc,oc]},{provide:Bu,useClass:ah,multi:!0,deps:[Xc]},[],{provide:Ju,useClass:Ju,deps:[Vu,Qu,nc]},{provide:Oa,useExisting:Ju},{provide:Wu,useExisting:Qu},{provide:Qu,useClass:Qu,deps:[Xc]},{provide:Ac,useClass:Ac,deps:[wc]},{provide:Vu,useClass:Vu,deps:[Bu,wc]},[]];let dh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:nc,useValue:t.appId},{provide:Uu,useExisting:nc},Hu]}}}return e.\u0275fac=function(t){return new(t||e)(ds(e,12))},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:hh,imports:[Nu,Zc]}),e})();function ph(...e){let t=e[e.length-1];return k(t)?(e.pop(),F(e,t)):V(e)}"undefined"!=typeof window&&window;class fh extends x{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(e){super.next(this._value=e)}}class mh extends f{notifyNext(e,t,n,s,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class gh extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function yh(e,t,n,s,r=new gh(e,n,s)){if(!r.closed)return t instanceof v?t.subscribe(r):D(t)(r)}const vh={};class bh{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new _h(e,this.resultSelector))}}class _h extends mh{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(vh),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function Sh(...e){return B(1)(ph(...e))}const xh=new v(e=>e.complete());function Ch(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):xh}function kh(e){return new v(t=>{let n;try{n=e()}catch(s){return void t.error(s)}return(n?j(n):Ch()).subscribe(t)})}function Eh(e,t){return"function"==typeof t?n=>n.pipe(Eh((n,s)=>j(e(n,s)).pipe(E((e,r)=>t(n,e,s,r))))):t=>t.lift(new Th(e))}class Th{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ah(e,this.project))}}class Ah extends L{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=q(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Ih=(()=>{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 Oh(e){return t=>0===e?Ch():t.lift(new Rh(e))}class Rh{constructor(e){if(this.total=e,this.total<0)throw new Ih}call(e,t){return t.subscribe(new Ph(e,this.total))}}class Ph extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Nh(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new Dh(e,t,n))}}class Dh{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Fh(e,this.accumulator,this.seed,this.hasSeed))}}class Fh extends f{constructor(e,t,n,s){super(e),this.accumulator=t,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function jh(e,t){return function(n){return n.lift(new Mh(e,t))}}class Mh{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Lh(e,this.predicate,this.thisArg))}}class Lh extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function qh(e){return function(t){const n=new Uh(e),s=t.lift(n);return n.caught=s}}class Uh{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Hh(e,this.selector,this.caught))}}class Hh extends L{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const s=new M(this);this.add(s);const r=q(n,s);r!==s&&this.add(r)}}}function $h(e,t){return U(e,t,1)}function Bh(e){return function(t){return 0===e?Ch():t.lift(new Vh(e))}}class Vh{constructor(e){if(this.total=e,this.total<0)throw new Ih}call(e,t){return t.subscribe(new zh(e,this.total))}}class zh extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,s=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;rt.lift(new Qh(e))}class Qh{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Kh(e,this.errorFactory))}}class Kh extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Gh(){return new wh}function Zh(e=null){return t=>t.lift(new Yh(e))}class Yh{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Jh(e,this.defaultValue))}}class Jh extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Xh(e,t){const n=arguments.length>=2;return s=>s.pipe(e?jh((t,n)=>e(t,n,s)):y,Oh(1),n?Zh(t):Wh(()=>new wh))}function ed(){}function td(e,t,n){return function(s){return s.lift(new nd(e,t,n))}}class nd{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new sd(e,this.nextOrObserver,this.error,this.complete))}}class sd extends f{constructor(e,t,n,r){super(e),this._tapNext=ed,this._tapError=ed,this._tapComplete=ed,this._tapError=n||ed,this._tapComplete=r||ed,s(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ed,this._tapError=t.error||ed,this._tapComplete=t.complete||ed)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class rd{constructor(e){this.callback=e}call(e,t){return t.subscribe(new id(e,this.callback))}}class id extends f{constructor(e,t){super(e),this.add(new h(t))}}class od{constructor(e,t){this.id=e,this.url=t}}class ad extends od{constructor(e,t,n="imperative",s=null){super(e,t),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ld extends od{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cd extends od{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ud extends od{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hd extends od{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dd extends od{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pd extends od{constructor(e,t,n,s,r){super(e,t),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fd extends od{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class md extends od{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gd{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yd{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vd{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bd{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _d{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wd{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sd{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const xd="primary";class Cd{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function kd(e){return new Cd(e)}function Ed(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Td(e,t,n){const s=n.path.split("/");if(s.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||s.lengths[t]===e)}return e===t}function Od(e){return Array.prototype.concat.apply([],e)}function Rd(e){return e.length>0?e[e.length-1]:null}function Pd(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Nd(e){return(t=e)&&"function"==typeof t.subscribe?e:Lo(e)?j(Promise.resolve(e)):ph(e);var t}function Dd(e,t,n){return n?function(e,t){return Ad(e,t)}(e.queryParams,t.queryParams)&&Fd(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Id(e[n],t[n]))}(e.queryParams,t.queryParams)&&jd(e.root,t.root)}function Fd(e,t){if(!Hd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Fd(e.children[n],t.children[n]))return!1}return!0}function jd(e,t){return Md(e,t,t.segments)}function Md(e,t,n){if(e.segments.length>n.length)return!!Hd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Hd(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!jd(e.children[n],t.children[n]))return!1}return!0}{const s=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!Hd(e.segments,s)&&!!e.children.primary&&Md(e.children.primary,t,r)}}class Ld{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kd(this.queryParams)),this._queryParamMap}toString(){return Vd.serialize(this)}}class qd{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Pd(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zd(this)}}class Ud{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=kd(this.parameters)),this._parameterMap}toString(){return Jd(this)}}function Hd(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class $d{}class Bd{parse(e){const t=new sp(e);return new Ld(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${Wd(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Kd(t)}=${Kd(e)}`).join("&"):`${Kd(t)}=${Kd(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Vd=new Bd;function zd(e){return e.segments.map(e=>Jd(e)).join("/")}function Wd(e,t){if(!e.hasChildren())return zd(e);if(t){const t=e.children.primary?Wd(e.children.primary,!1):"",n=[];return Pd(e.children,(e,t)=>{t!==xd&&n.push(`${t}:${Wd(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return Pd(e.children,(e,s)=>{s===xd&&(n=n.concat(t(e,s)))}),Pd(e.children,(e,s)=>{s!==xd&&(n=n.concat(t(e,s)))}),n}(e,(t,n)=>n===xd?[Wd(e.children.primary,!1)]:[`${n}:${Wd(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${zd(e)}/${t[0]}`:`${zd(e)}/(${t.join("//")})`}}function Qd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kd(e){return Qd(e).replace(/%3B/gi,";")}function Gd(e){return Qd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zd(e){return decodeURIComponent(e)}function Yd(e){return Zd(e.replace(/\+/g,"%20"))}function Jd(e){return`${Gd(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Gd(e)}=${Gd(t[e])}`).join("")}`;var t}const Xd=/^[^\/()?;=#]+/;function ep(e){const t=e.match(Xd);return t?t[0]:""}const tp=/^[^=?&#]+/,np=/^[^?&#]+/;class sp{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qd([],{}):new qd([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new qd(e,t)),n}parseSegment(){const e=ep(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Ud(Zd(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ep(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=ep(this.remaining);e&&(n=e,this.capture(n))}e[Zd(t)]=Zd(n)}parseQueryParam(e){const t=function(e){const t=e.match(tp);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(np);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const s=Yd(t),r=Yd(n);if(e.hasOwnProperty(s)){let t=e[s];Array.isArray(t)||(t=[t],e[s]=t),t.push(r)}else e[s]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ep(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=xd);const i=this.parseChildren();t[r]=1===Object.keys(i).length?i.primary:new qd([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class rp{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=ip(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=ip(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=op(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return op(e,this._root).map(e=>e.value)}}function ip(e,t){if(e===t.value)return t;for(const n of t.children){const t=ip(e,n);if(t)return t}return null}function op(e,t){if(e===t.value)return[t];for(const n of t.children){const s=op(e,n);if(s.length)return s.unshift(t),s}return[]}class ap{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function lp(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class cp extends rp{constructor(e,t){super(e),this.snapshot=t,mp(this,e)}toString(){return this.snapshot.toString()}}function up(e,t){const n=function(e,t){const n=new pp([],{},{},"",{},xd,t,null,e.root,-1,{});return new fp("",new ap(n,[]))}(e,t),s=new fh([new Ud("",{})]),r=new fh({}),i=new fh({}),o=new fh({}),a=new fh(""),l=new hp(s,r,o,a,i,xd,t,n.root);return l.snapshot=n.root,new cp(new ap(l,[]),n)}class hp{constructor(e,t,n,s,r,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(e=>kd(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(e=>kd(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dp(e,t="emptyOnly"){const n=e.pathFromRoot;let s=0;if("always"!==t)for(s=n.length-1;s>=1;){const e=n[s],t=n[s-1];if(e.routeConfig&&""===e.routeConfig.path)s--;else{if(t.component)break;s--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class pp{constructor(e,t,n,s,r,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=kd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=kd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fp extends rp{constructor(e,t){super(t),this.url=e,mp(this,t)}toString(){return gp(this._root)}}function mp(e,t){t.value._routerState=e,t.children.forEach(t=>mp(e,t))}function gp(e){const t=e.children.length>0?` { ${e.children.map(gp).join(", ")} } `:"";return`${e.value}${t}`}function yp(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ad(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ad(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nAd(e.parameters,s[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||vp(e.parent,t.parent))}function bp(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const s of n.children)if(e.shouldReuseRoute(t.value,s.value.snapshot))return bp(e,t,s);return bp(e,t)})}(e,t,n);return new ap(s,r)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return _p(t,e),e}}const n=new hp(new fh((s=t.value).url),new fh(s.params),new fh(s.queryParams),new fh(s.fragment),new fh(s.data),s.outlet,s.component,s),r=t.children.map(t=>bp(e,t));return new ap(n,r)}var s}function _p(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Ld(n.root===e?t:Cp(n.root,e,t),i,r)}function Cp(e,t,n){const s={};return Pd(e.children,(e,r)=>{s[r]=e===t?n:Cp(e,t,n)}),new qd(e.segments,s)}class kp{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&wp(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(Sp);if(s&&s!==Rd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ep{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Tp(e,t,n){if(e||(e=new qd([],{})),0===e.segments.length&&e.hasChildren())return Ap(e,t,n);const s=function(e,t,n){let s=0,r=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return i;const t=e.segments[r],o=n[s];if(Sp(o))break;const a=`${o}`,l=s0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Pp(a,l,t))return i;s+=2}else{if(!Pp(a,{},t))return i;s++}r++}return{match:!0,pathIndex:r,commandIndex:s}}(e,t,n),r=n.slice(s.commandIndex);if(s.match&&s.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[s]=Tp(e.children[s],t,n))}),Pd(e.children,(e,t)=>{void 0===s[t]&&(r[t]=e)}),new qd(e.segments,r)}}function Ip(e,t,n){const s=e.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=Ip(new qd([],{}),0,e))}),t}function Rp(e){const t={};return Pd(e,(e,n)=>t[n]=`${e}`),t}function Pp(e,t,n){return e==n.path&&Ad(t,n.parameters)}class Np{constructor(e,t,n,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=s}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),yp(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const s=lp(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,s[t],n),delete s[t]}),Pd(s,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const s=e.value,r=t?t.value:null;if(s===r)if(s.component){const r=n.getContext(s.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:s})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),s=n&&e.value.component?n.children:t,r=lp(e);for(const i of Object.keys(r))this.deactivateRouteAndItsChildren(r[i],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const s=lp(t);e.children.forEach(e=>{this.activateRoutes(e,s[e.value.outlet],n),this.forwardEvent(new wd(e.value.snapshot))}),e.children.length&&this.forwardEvent(new bd(e.value.snapshot))}activateRoutes(e,t,n){const s=e.value,r=t?t.value:null;if(yp(s),s===r)if(s.component){const r=n.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(s.component){const t=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const e=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Dp(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=s,t.resolver=r,t.outlet&&t.outlet.activateWith(s,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Dp(e){yp(e.value),e.children.forEach(Dp)}class Fp{constructor(e,t){this.routes=e,this.module=t}}function jp(e){return"function"==typeof e}function Mp(e){return e instanceof Ld}const Lp=Symbol("INITIAL_VALUE");function qp(){return Eh(e=>function(...e){let t,n;return k(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),V(e,n).lift(new bh(t))}(e.map(e=>e.pipe(Oh(1),function(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>Sh(e,n,t)):t=>Sh(e,t)}(Lp)))).pipe(Nh((e,t)=>{let n=!1;return t.reduce((e,s,r)=>{if(e!==Lp)return e;if(s===Lp&&(n=!0),!n){if(!1===s)return s;if(r===t.length-1||Mp(s))return s}return e},e)},Lp),jh(e=>e!==Lp),E(e=>Mp(e)?e:!0===e),Oh(1)))}let Up=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&No(0,"router-outlet")},directives:function(){return[Nf]},encapsulation:2}),e})();function Hp(e,t=""){for(let n=0;nzp(e)===t);return n.push(...e.filter(e=>zp(e)!==t)),n}const Qp={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Kp(e,t,n){var s;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Qp):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||Td)(n,e,t);if(!r)return Object.assign({},Qp);const i={};Pd(r.posParams,(e,t)=>{i[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(s=r.posParams)&&void 0!==s?s:{}}}function Gp(e,t,n,s,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Zp(e,t,n)&&zp(n)!==xd)}(e,n,s)){const r=new qd(t,function(e,t,n,s){const r={};r.primary=s,s._sourceSegment=e,s._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&zp(i)!==xd){const n=new qd([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[zp(i)]=n}return r}(e,t,s,new qd(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Zp(e,t,n))}(e,n,s)){const i=new qd(e.segments,function(e,t,n,s,r,i){const o={};for(const a of s)if(Zp(e,n,a)&&!r[zp(a)]){const n=new qd([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[zp(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,s,e.children,r));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new qd(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Zp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Yp(e,t,n,s){return!!(zp(e)===s||s!==xd&&Zp(t,n,e))&&("**"===e.path||Kp(t,e,n).matched)}function Jp(e,t,n){return 0===t.length&&!e.children[n]}class Xp{constructor(e){this.segmentGroup=e||null}}class ef{constructor(e){this.urlTree=e}}function tf(e){return new v(t=>t.error(new Xp(e)))}function nf(e){return new v(t=>t.error(new ef(e)))}function sf(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class rf{constructor(e,t,n,s,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(cl)}apply(){const e=Gp(this.urlTree.root,[],[],this.config).segmentGroup,t=new qd(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,xd).pipe(E(e=>this.createUrlTree(of(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(qh(e=>{if(e instanceof ef)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Xp)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,xd).pipe(E(t=>this.createUrlTree(of(t),e.queryParams,e.fragment))).pipe(qh(e=>{if(e instanceof Xp)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const s=e.segments.length>0?new qd([],{[xd]:e}):e;return new Ld(s,t,n)}expandSegmentGroup(e,t,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(E(e=>new qd([],e))):this.expandSegment(e,n,t,n.segments,s,!0)}expandChildren(e,t,n){const s=[];for(const r of Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return j(s).pipe($h(s=>{const r=n.children[s],i=Wp(t,s);return this.expandSegmentGroup(e,i,r,s).pipe(E(e=>({segment:e,outlet:s})))}),Nh((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return s=>s.pipe(e?jh((t,n)=>e(t,n,s)):y,Bh(1),n?Zh(t):Wh(()=>new wh))}())}expandSegment(e,t,n,s,r,i){return j(n).pipe($h(o=>this.expandSegmentAgainstRoute(e,t,n,o,s,r,i).pipe(qh(e=>{if(e instanceof Xp)return ph(null);throw e}))),Xh(e=>!!e),qh((e,n)=>{if(e instanceof wh||"EmptyError"===e.name){if(Jp(t,s,r))return ph(new qd([],{}));throw new Xp(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,s,r,i,o){return Yp(s,t,r,i)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i):tf(t):tf(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,s,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,s){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?nf(r):this.lineralizeSegments(n,r).pipe(U(n=>{const r=new qd(n,{});return this.expandSegment(e,r,t,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Kp(t,s,r);if(!o)return tf(t);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?nf(u):this.lineralizeSegments(s,u).pipe(U(s=>this.expandSegment(e,t,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,s,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?ph(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(E(e=>(n._loadedConfig=e,new qd(s,{})))):ph(new qd(s,{}));const{matched:i,consumedSegments:o,lastChild:a}=Kp(t,n,s);if(!i)return tf(t);const l=s.slice(a);return this.getChildConfig(e,n,s).pipe(U(e=>{const s=e.module,i=e.routes,{segmentGroup:a,slicedSegments:c}=Gp(t,o,l,i),u=new qd(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(s,i,u).pipe(E(e=>new qd(o,e)));if(0===i.length&&0===c.length)return ph(new qd(o,{}));const h=zp(n)===r;return this.expandSegment(s,u,i,c,h?xd:r,!0).pipe(E(e=>new qd(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?ph(new Fp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?ph(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(U(n=>n?this.configLoader.load(e.injector,t).pipe(E(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(Ed(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):ph(new Fp([],e))}runCanLoadGuards(e,t,n){const s=t.canLoad;return s&&0!==s.length?ph(s.map(s=>{const r=e.get(s);let i;if(function(e){return e&&jp(e.canLoad)}(r))i=r.canLoad(t,n);else{if(!jp(r))throw new Error("Invalid CanLoad guard");i=r(t,n)}return Nd(i)})).pipe(qp(),td(e=>{if(!Mp(e))return;const t=Ed(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),E(e=>!0===e)):ph(!0)}lineralizeSegments(e,t){let n=[],s=t.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return ph(n);if(s.numberOfChildren>1||!s.children.primary)return sf(e.redirectTo);s=s.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,s){const r=this.createSegmentGroup(e,t.root,n,s);return new Ld(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Pd(e,(e,s)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[s]=t[r]}else n[s]=e}),n}createSegmentGroup(e,t,n,s){const r=this.createSegments(e,t.segments,n,s);let i={};return Pd(t.children,(t,r)=>{i[r]=this.createSegmentGroup(e,t,n,s)}),new qd(r,i)}createSegments(e,t,n,s){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,s):this.findOrReturn(t,n))}findPosParam(e,t,n){const s=n[t.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let n=0;for(const s of t){if(s.path===e.path)return t.splice(n),s;n++}return e}}function of(e){const t={};for(const n of Object.keys(e.children)){const s=of(e.children[n]);(s.segments.length>0||s.hasChildren())&&(t[n]=s)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new qd(e.segments.concat(t.segments),t.children)}return e}(new qd(e.segments,t))}class af{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class lf{constructor(e,t){this.component=e,this.route=t}}function cf(e,t,n){const s=e._root;return hf(s,t?t._root:null,n,[s.value])}function uf(e,t,n){const s=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(s?s.module.injector:n).get(e)}function hf(e,t,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=lp(t);return e.children.forEach(e=>{!function(e,t,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Hd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Hd(e.url,t.url)||!Ad(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vp(e,t)||!Ad(e.queryParams,t.queryParams);case"paramsChange":default:return!vp(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new af(s)):(i.data=o.data,i._resolvedData=o._resolvedData),hf(e,t,i.component?a?a.children:null:n,s,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new lf(a.outlet.component,o))}else o&&df(t,a,r),r.canActivateChecks.push(new af(s)),hf(e,null,i.component?a?a.children:null:n,s,r)}(e,i[e.value.outlet],n,s.concat([e.value]),r),delete i[e.value.outlet]}),Pd(i,(e,t)=>df(e,n.getContext(t),r)),r}function df(e,t,n){const s=lp(e),r=e.value;Pd(s,(e,s)=>{df(e,r.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new lf(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class pf{}function ff(e){return new v(t=>t.error(e))}class mf{constructor(e,t,n,s,r,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=i}recognize(){const e=Gp(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,xd);if(null===t)return null;const n=new pp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},xd,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new ap(n,t),r=new fp(this.url,s);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=dp(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const s=t.children[r],i=Wp(e,r),o=this.processSegmentGroup(i,s,r);if(null===o)return null;n.push(...o)}const s=yf(n);return s.sort((e,t)=>e.value.outlet===xd?-1:t.value.outlet===xd?1:e.value.outlet.localeCompare(t.value.outlet)),s}processSegment(e,t,n,s){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,s);if(null!==e)return e}return Jp(t,n,s)?[]:null}processSegmentAgainstRoute(e,t,n,s){if(e.redirectTo||!Yp(e,t,n,s))return null;let r,i=[],o=[];if("**"===e.path){const s=n.length>0?Rd(n).parameters:{};r=new pp(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_f(e),zp(e),e.component,e,vf(t),bf(t)+n.length,wf(e))}else{const s=Kp(t,e,n);if(!s.matched)return null;i=s.consumedSegments,o=n.slice(s.lastChild),r=new pp(i,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_f(e),zp(e),e.component,e,vf(t),bf(t)+i.length,wf(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Gp(t,i,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new ap(r,e)]}if(0===a.length&&0===c.length)return[new ap(r,[])];const u=zp(e)===s,h=this.processSegment(a,l,c,u?xd:s);return null===h?null:[new ap(r,h)]}}function gf(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function yf(e){const t=[],n=new Set;for(const s of e){if(!gf(s)){t.push(s);continue}const e=t.find(e=>s.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...s.children),n.add(e)):t.push(s)}for(const s of n){const e=yf(s.children);t.push(new ap(s.value,e))}return t.filter(e=>!n.has(e))}function vf(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function bf(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 _f(e){return e.data||{}}function wf(e){return e.resolve||{}}function Sf(e){return Eh(t=>{const n=e(t);return n?j(n).pipe(E(()=>t)):ph(t)})}class xf extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Cf=new Kn("ROUTES");class kf{constructor(e,t,n,s){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=s}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const s=n.create(e);return new Fp(Od(s.injector.get(Cf,void 0,be.Self|be.Optional)).map(Vp),s)}),qh(e=>{throw t._loader$=void 0,e}));return t._loader$=new G(n,()=>new x).pipe(W()),t._loader$}loadModuleFactory(e){return"string"==typeof e?j(this.loader.load(e)):Nd(e()).pipe(U(e=>e instanceof ul?ph(e):j(this.compiler.compileModuleAsync(e))))}}class Ef{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Tf,this.attachRef=null}}class Tf{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ef,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Af{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function If(e){throw e}function Of(e,t,n){return t.parse("/")}function Rf(e,t){return ph(null)}let Pf=(()=>{class e{constructor(e,t,n,s,r,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x,this.errorHandler=If,this.malformedUriErrorHandler=Of,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Rf,afterPreactivation:Rf},this.urlHandlingStrategy=new Af,this.routeReuseStrategy=new xf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(cl),this.console=r.get(lc);const l=r.get(wc);this.isNgZoneEnabled=l instanceof wc&&wc.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Ld(new qd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kf(i,o,e=>this.triggerEvent(new gd(e)),e=>this.triggerEvent(new yd(e))),this.routerState=up(this.currentUrlTree,this.rootComponentType),this.transitions=new fh({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(jh(e=>0!==e.id),E(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Eh(e=>{let n=!1,s=!1;return ph(e).pipe(td(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Eh(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return ph(e).pipe(Eh(e=>{const n=this.transitions.getValue();return t.next(new ad(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?xh:Promise.resolve(e)}),(s=this.ngModule.injector,r=this.configLoader,i=this.urlSerializer,o=this.config,Eh(e=>function(e,t,n,s,r){return new rf(e,t,n,s,r).apply()}(s,r,i,e.extractedUrl,o).pipe(E(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),td(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,s,r){return U(i=>function(e,t,n,s,r="emptyOnly",i="legacy"){try{const o=new mf(e,t,n,s,r,i).recognize();return null===o?ff(new pf):ph(o)}catch(o){return ff(o)}}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(E(e=>Object.assign(Object.assign({},i),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),td(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new hd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var s,r,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:i,extras:o}=e,a=new ad(n,this.serializeUrl(s),r,i);t.next(a);const l=up(s,this.rootComponentType).snapshot;return ph(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),xh}),Sf(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),td(e=>{const t=new dd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),E(e=>Object.assign(Object.assign({},e),{guards:cf(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return U(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?ph(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,s){return j(e).pipe(U(e=>function(e,t,n,s,r){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?ph(i.map(i=>{const o=uf(i,t,r);let a;if(function(e){return e&&jp(e.canDeactivate)}(o))a=Nd(o.canDeactivate(e,t,n,s));else{if(!jp(o))throw new Error("Invalid CanDeactivate guard");a=Nd(o(e,t,n,s))}return a.pipe(Xh())})).pipe(qp()):ph(!0)}(e.component,e.route,n,t,s)),Xh(e=>!0!==e,!0))}(o,s,r,e).pipe(U(n=>n&&"boolean"==typeof n?function(e,t,n,s){return j(t).pipe($h(t=>Sh(function(e,t){return null!==e&&t&&t(new vd(e)),ph(!0)}(t.route.parent,s),function(e,t){return null!==e&&t&&t(new _d(e)),ph(!0)}(t.route,s),function(e,t,n){const s=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>kh(()=>ph(t.guards.map(r=>{const i=uf(r,t.node,n);let o;if(function(e){return e&&jp(e.canActivateChild)}(i))o=Nd(i.canActivateChild(s,e));else{if(!jp(i))throw new Error("Invalid CanActivateChild guard");o=Nd(i(s,e))}return o.pipe(Xh())})).pipe(qp())));return ph(r).pipe(qp())}(e,t.path,n),function(e,t,n){const s=t.routeConfig?t.routeConfig.canActivate:null;return s&&0!==s.length?ph(s.map(s=>kh(()=>{const r=uf(s,t,n);let i;if(function(e){return e&&jp(e.canActivate)}(r))i=Nd(r.canActivate(t,e));else{if(!jp(r))throw new Error("Invalid CanActivate guard");i=Nd(r(t,e))}return i.pipe(Xh())}))).pipe(qp()):ph(!0)}(e,t.route,n))),Xh(e=>!0!==e,!0))}(s,i,e,t):ph(n)),E(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),td(e=>{if(Mp(e.guardsResult)){const t=Ed(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new pd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),jh(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new cd(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Sf(e=>{if(e.guards.canActivateChecks.length)return ph(e).pipe(td(e=>{const t=new fd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Eh(e=>{let n=!1;return ph(e).pipe((s=this.paramsInheritanceStrategy,r=this.ngModule.injector,U(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return ph(e);let i=0;return j(n).pipe($h(e=>function(e,t,n,s){return function(e,t,n,s){const r=Object.keys(e);if(0===r.length)return ph({});const i={};return j(r).pipe(U(r=>function(e,t,n,s){const r=uf(e,t,s);return Nd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,s).pipe(td(e=>{i[r]=e}))),Bh(1),U(()=>Object.keys(i).length===r.length?ph(i):xh))}(e._resolve,e,t,s).pipe(E(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),dp(e,n).resolve),null)))}(e.route,t,s,r)),td(()=>i++),Bh(1),U(t=>i===n.length?ph(e):xh))})),td({next:()=>n=!0,complete:()=>{if(!n){const n=new cd(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var s,r}),td(e=>{const t=new md(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Sf(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),E(e=>{const t=function(e,t,n){const s=bp(e,t._root,n?n._root:void 0);return new cp(s,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),td(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),E(e=>(new Np(o,e.targetRouterState,e.currentRouterState,a).activate(i),e))),td({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new cd(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new rd(r))),qh(n=>{if(s=!0,(r=n)&&r.ngNavigationCancelingError){const s=Mp(n.url);s||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new cd(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),s?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const s=new ud(e.id,this.serializeUrl(e.extractedUrl),n);t.next(s);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var r;return xh}));var r,i,o,a}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:s}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(s,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Hp(e),this.config=e.map(Vp),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(e,t={}){const{relativeTo:n,queryParams:s,fragment:r,queryParamsHandling:i,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,s,r){if(0===n.length)return xp(t.root,t.root,t,s,r);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new kp(!0,0,e);let t=0,n=!1;const s=e.reduce((e,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const t={};return Pd(s.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(s.segmentPath)return[...e,s.segmentPath]}return"string"!=typeof s?[...e,s]:0===r?(s.split("/").forEach((s,r)=>{0==r&&"."===s||(0==r&&""===s?n=!0:".."===s?t++:""!=s&&e.push(s))}),e):[...e,s]},[]);return new kp(n,t,s)}(n);if(i.toRoot())return xp(t.root,new qd([],{}),t,s,r);const o=function(e,t,n){if(e.isAbsolute)return new Ep(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new Ep(e,e===t.root,0)}const s=wp(e.commands[0])?0:1;return function(e,t,n){let s=e,r=t,i=n;for(;i>r;){if(i-=r,s=s.parent,!s)throw new Error("Invalid number of '../'");r=s.segments.length}return new Ep(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?Ap(o.segmentGroup,o.index,i.commands):Tp(o.segmentGroup,o.index,i.commands);return xp(o.segmentGroup,a,t,s,r)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=Mp(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const s=e[n];return null!=s&&(t[n]=s),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new ld(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,s,r){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==t&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((e,t)=>{l=e,c=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,s){const r=this.urlSerializer.serialize(e);s=s||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},s),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},s),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(ds(Zn),ds($d),ds(Tf),ds(fu),ds(lo),ds(Bc),ds(vc),ds(void 0))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Nf=(()=>{class e{constructor(e,t,n,s,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Fl,this.deactivateEvents=new Fl,this.name=s||xd,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,r=new Df(e,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(Ao(Tf),Ao(dl),Ao(Ca),("name",function(e,t){const n=e.attrs;if(n){const e=n.length;let s=0;for(;s{class e{constructor(e,t,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new kf(t,n,t=>e.triggerEvent(new gd(t)),t=>e.triggerEvent(new yd(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(jh(e=>e instanceof ld),$h(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(cl);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const s of t)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const e=s._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(e,s)):s.children&&n.push(this.processRoutes(e,s.children));return j(n).pipe(B(),E(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?ph(t._loadedConfig):this.loader.load(e.injector,t)).pipe(U(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(ds(Pf),ds(Bc),ds(vc),ds(lo),ds(Ff))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Lf=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ad?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ld&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Sd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Sd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(ds(Pf),ds(Du),ds(void 0))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const qf=new Kn("ROUTER_CONFIGURATION"),Uf=new Kn("ROUTER_FORROOT_GUARD"),Hf=[fu,{provide:$d,useClass:Bd},{provide:Pf,useFactory:function(e,t,n,s,r,i,o,a={},l,c){const u=new Pf(null,e,t,n,s,r,i,Od(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(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)}(a,u),a.enableTracing){const e=Jc();u.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[$d,Tf,fu,lo,Bc,vc,Cf,qf,[class{},new gs],[class{},new gs]]},Tf,{provide:hp,useFactory:function(e){return e.routerState.root},deps:[Pf]},{provide:Bc,useClass:Wc},Mf,jf,class{preload(e,t){return t().pipe(qh(()=>ph(null)))}},{provide:qf,useValue:{enableTracing:!1}}];function $f(){return new jc("Router",Pf)}let Bf=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[Hf,Qf(t),{provide:Uf,useFactory:Wf,deps:[[Pf,new gs,new ys]]},{provide:qf,useValue:n||{}},{provide:cu,useFactory:zf,deps:[eu,[new ms(hu),new gs],qf]},{provide:Lf,useFactory:Vf,deps:[Pf,Du,qf]},{provide:Ff,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:jf},{provide:jc,multi:!0,useFactory:$f},[Kf,{provide:ec,multi:!0,useFactory:Gf,deps:[Kf]},{provide:Yf,useFactory:Zf,deps:[Kf]},{provide:ac,multi:!0,useExisting:Yf}]]}}static forChild(t){return{ngModule:e,providers:[Qf(t)]}}}return e.\u0275fac=function(t){return new(t||e)(ds(Uf,8),ds(Pf,8))},e.\u0275mod=We({type:e}),e.\u0275inj=he({}),e})();function Vf(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Lf(e,t,n)}function zf(e,t,n={}){return n.useHash?new pu(e,t):new du(e,t)}function Wf(e){return"guarded"}function Qf(e){return[{provide:Gn,multi:!0,useValue:e},{provide:Cf,multi:!0,useValue:e}]}let Kf=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new x}appInitializer(){return this.injector.get(nu,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Pf),s=this.injector.get(qf);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?ph(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(qf),n=this.injector.get(Mf),s=this.injector.get(Lf),r=this.injector.get(Pf),i=this.injector.get(Hc);e===i.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),s.init(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(ds(lo))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function Gf(e){return e.appInitializer.bind(e)}function Zf(e){return e.bootstrapListener.bind(e)}const Yf=new Kn("Router Initializer");let Jf=(()=>{class e{constructor(){this.hashCode=e=>e.split("").reduce((e,t)=>(e=(e<<5)-e+t.charCodeAt(0))&e,0)}unsubscribe(...e){e.forEach(e=>{try{e.unsubscribe()}catch(t){console.error("UtilService.unsubscribe",t)}})}scroll(e,t=50){setTimeout(()=>{(document.scrollingElement||document.body).scrollTop=e},t)}questionAnswered(e){return e.reduce((e,t)=>e+(null!=t.response?1:0),0)}questionsCompleted(e){return!!(e&&e.length>0)&&this.questionAnswered(e)===e.length}scrollTop(){window.scrollTo(0,0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Xf="https://echeckup.sdsu.edu",em={resourcesLocation:"https://echeckup.sdsu.edu/echeckup/resources/campus/",imgLocation:"https://echeckup.sdsu.edu/echeckup/images/",echeckupLogo:"https://echeckup.sdsu.edu/echeckup/images/screener/echeckup.svg",footerLogo:"https://echeckup.sdsu.edu/echeckup/images/echeckup_logo_white.png"},tm=[{id:"audit",display:"Alcohol",desc:"Thinking about my drinking habits",instructions:"Please answer the following questions about your use of alcoholic beverages during this past year.",survey:"Alcohol Use Disorders Identification Test (AUDIT)"},{id:"anxiety",display:"Anxiety",desc:"Tense and worried in general",instructions:"Over the last 2 weeks, how often have you been bothered by any of the following problems?",survey:"General Anxiety Disorder-7 (GAD-7)"},{id:"cudit",display:"Cannabis",desc:"Concerned about my cannabis usage",instructions:"Please answer the following questions about your cannabis use during the last 6 months.",survey:"Cannabis Use Disorder Identification Test (CUDIT-R)"},{id:"eating",display:"Eating and Food Concerns",desc:"Concerned about my eating habits",instructions:"This assessment may be able to help you determine if you need to speak to a mental health professional or a physician about problematic eating behaviors. It is not designed to make a diagnosis of an eating disorder. Only a qualified health care professional can provide a diagnosis. Please provide a response for each of the following statements.",survey:"Eating Attitudes Test (EAT-26)"},{id:"bipolar",display:"Bipolar",desc:"Mood changes from very high to low",instructions:"Please answer the following questions to the best of your ability.",survey:"The Mood Disorder Questionnaire (MDQ)"},{id:"depression",display:"Depression",desc:"Feeling sad, empty or down",instructions:"Over the last 2 weeks, how often have you been bothered by any of the following problems?",survey:"PATIENT HEALTH QUESTIONNAIRE-9 (PHQ-9)"},{id:"opioid",display:"Opioid",desc:"Concerned about my opioid usage",instructions:"When completing this assessment, consider opioid use that is either illicit or involves taking prescribed opioids at higher doses, more often, or for different reasons than prescribed. If opioids are taken exactly as prescribed by a doctor, do not include them in answering these questions.",survey:"Opioid questions adapted from the Alcohol, Smoking and Substance Involvement Screening Test (ASSIST)"},{id:"ptsd",display:"PTSD",desc:"Troubled by past shocking painful events",instructions:"For the trauma causing you concern, please answer the following questions about your experiences related to that trauma for the past week.",survey:"Short Post-Traumatic Stress Disorder Rating Interview (SPRINT)"}];class nm extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class sm extends nm{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,s=!1;try{this.work(e)}catch(r){s=!0,n=!!r&&r||new Error(r)}if(s)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class rm extends sm{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let im=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class om extends im{constructor(e,t=im.now){super(e,()=>om.delegate&&om.delegate!==this?om.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return om.delegate&&om.delegate!==this?om.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class am extends om{}const lm=new am(rm);let cm=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return ph(this.value);case"E":return e=this.error,new v(t=>t.error(e));case"C":return Ch()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class um extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(um.dispatch,this.delay,new hm(e,this.destination)))}_next(e){this.scheduleMessage(cm.createNext(e))}_error(e){this.scheduleMessage(cm.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(cm.createComplete()),this.unsubscribe()}}class hm{constructor(e,t){this.notification=e,this.destination=t}}class dm extends x{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new pm(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new _;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new w(this,e)),s&&e.add(e=new um(e,s)),t)for(let o=0;ot&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class pm{constructor(e,t){this.time=e,this.value=t}}class fm{}class mm{}class gm{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),s=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const s=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof gm?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new gm;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof gm?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const s=("a"===e.op?this.headers.get(t):void 0)||[];s.push(...n),this.headers.set(t,s);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class ym{encodeKey(e){return vm(e)}encodeValue(e){return vm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function vm(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class bm{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ym,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const s=e.indexOf("="),[r,i]=-1==s?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,s)),t.decodeValue(e.slice(s+1))],o=n.get(r)||[];o.push(i),n.set(r,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const s=e[n];Array.isArray(s)?s.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:s,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new bm({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function _m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function wm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Sm(e){return"undefined"!=typeof FormData&&e instanceof FormData}class xm{constructor(e,t,n,s){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new gm),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new xm(t,n,r,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:i})}}var Cm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class km{constructor(e,t=200,n="OK"){this.headers=e.headers||new gm,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Em extends km{constructor(e={}){super(e),this.type=Cm.ResponseHeader}clone(e={}){return new Em({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Tm extends km{constructor(e={}){super(e),this.type=Cm.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Tm({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Am extends km{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Im(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Om=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let s;if(e instanceof xm)s=e;else{let r,i;r=n.headers instanceof gm?n.headers:new gm(n.headers),n.params&&(i=n.params instanceof bm?n.params:new bm({fromObject:n.params})),s=new xm(e,t,void 0!==n.body?n.body:null,{headers:r,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=ph(s).pipe($h(e=>this.handler.handle(e)));if(e instanceof xm||"events"===n.observe)return r;const i=r.pipe(jh(e=>e instanceof Tm));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return i.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(E(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe(E(e=>e.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new bm).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Im(n,t))}post(e,t,n={}){return this.request("POST",e,Im(n,t))}put(e,t,n={}){return this.request("PUT",e,Im(n,t))}}return e.\u0275fac=function(t){return new(t||e)(ds(fm))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();class Rm{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Pm=new Kn("HTTP_INTERCEPTORS");let Nm=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const Dm=/^\)\]\}',?\n/;class Fm{}let jm=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Mm=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const s=e.serializeBody();let r=null;const i=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,s=n.statusText||"OK",i=new gm(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new Em({headers:i,status:t,statusText:s,url:o}),r},o=()=>{let{headers:s,status:r,statusText:o,url:a}=i(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Dm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Tm({body:l,headers:s,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new Am({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:s}=i(),r=new Am({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});t.error(r)};let l=!1;const c=s=>{l||(t.next(i()),l=!0);let r={type:Cm.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(r.total=s.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:Cm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),t.next({type:Cm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(ds(Fm))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const Lm=new Kn("XSRF_COOKIE_NAME"),qm=new Kn("XSRF_HEADER_NAME");class Um{}let Hm=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_u(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc),ds(oc),ds(Lm))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),$m=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const s=this.tokenService.getToken();return null===s||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,s)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(ds(Um),ds(qm))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Bm=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Pm,[]);this.chain=e.reduceRight((e,t)=>new Rm(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(ds(mm),ds(lo))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Vm=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:$m,useClass:Nm}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Lm,useValue:t.cookieName}:[],t.headerName?{provide:qm,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:[$m,{provide:Pm,useExisting:$m,multi:!0},{provide:Um,useClass:Hm},{provide:Lm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),e})(),zm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:[Om,{provide:fm,useClass:Bm},Mm,{provide:mm,useExisting:Mm},jm,{provide:Fm,useExisting:jm}],imports:[[Vm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Wm{constructor(e,t,n,s,r){this.campusId=e,this.name=t,this.country=n,this.state=s,this.url=r}}let Qm=(()=>{class e{adapt(e){return new Wm(e.campusId,e.campusName,e.country,e.state,e.url)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Km=(()=>{class e{constructor(e,t,n){this.http=e,this.campusAdapter=t,this.rendererFactory=n,this.campusSubject=new dm(1),this.campusObservable=this.campusSubject.asObservable(),this.accessibilitySubject=new dm(0),this.accessibilityObservable=this.accessibilitySubject.asObservable(),this.modules=[],this._accessibility=!1,this.renderer=n.createRenderer(null,null)}get accessibility(){return this._accessibility}updateAccessibility(e){this.accessibilitySubject.next(e)}init(e){this.http.get(`${Xf}/screener/configs/${e}`).subscribe(e=>{const t=this.campusAdapter.adapt(e.campus);this.campus=t,this.modules=e.modules,this.campusSubject.next(t)}),this.accessibilitySubscription=this.accessibilityObservable.subscribe(e=>{this._accessibility=e})}fetch(e,t){return this.http.get(`${Xf}/screener/${e}/fetch`,{params:{uid:t}})}loadCss(e){const t=this.renderer.createElement("link");this.renderer.setProperty(t,"rel","stylesheet"),this.renderer.setProperty(t,"href",`${Xf}/cssss/${e}`),this.renderer.insertBefore(document.head,t,document.head.firstChild)}setProduct(e){this.product=e}print(e){window.open(`${Xf}/screener/${this.campus.campusId}/${this.product}/print-api/${e}`,"_blank")}getQuestions(e){return new v(t=>{const n=setInterval(()=>{this.campus&&(e||this.product)&&(this.http.get(`${Xf}/screener/q/${this.campus.campusId}/${e||this.product}`).subscribe(e=>{t.next(e)},e=>{t.error(e)}),clearInterval(n))},500)})}get takeAScreener(){return`screener/${this.campus.campusId}/take-a-screener`}startSession(e){return`screener/${this.campus.campusId}/${e}/demographic`}get assessment(){return`screener/${this.campus.campusId}/${this.product}/assessment`}get assessmentFeedback(){return`screener/${this.campus.campusId}/${this.product}/assessment-feedback`}get changeQuestionFeedback(){return`screener/${this.campus.campusId}/${this.product}/change-question-feedback`}}return e.\u0275fac=function(t){return new(t||e)(ds(Om),ds(Qm),ds(Oa))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gm=(()=>{class e{constructor(e){this.config=e}ngOnInit(){}get campus(){return this.config.campus}onImgSrcError(e){e.target.src="https://echeckup.sdsu.edu/echeckup/resources/campuses/_DEFAULT/logo_horizontal.png"}}return e.\u0275fac=function(t){return new(t||e)(Ao(Km))},e.\u0275cmp=$e({type:e,selectors:[["app-header"]],decls:4,vars:2,consts:[[1,"bg-dark"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2","logo-container"],[3,"src","alt","error"]],template:function(e,t){1&e&&(Ro(0,"header",0),Ro(1,"div",1),Ro(2,"div",2),Ro(3,"img",3),qo("error",function(e){return t.onImgSrcError(e)}),Po(),Po(),Po(),Po()),2&e&&(Jr(3),Vo("src","https://echeckup.sdsu.edu/echeckup/resources/campuses/",t.campus.campusId,"/logo_horizontal.png",nr),Vo("alt","",t.campus.name," Logo"))},styles:[""]}),e})(),Zm=(()=>{class e{constructor(e,t){this.router=e,this.util=t}ngOnInit(){this.router.events.subscribe(e=>{e instanceof ld&&this.util.scrollTop()})}}return e.\u0275fac=function(t){return new(t||e)(Ao(Pf),Ao(Jf))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:2,vars:0,template:function(e,t){1&e&&(No(0,"app-header"),No(1,"router-outlet"))},directives:[Gm,Nf],styles:[""]}),e})(),Ym=(()=>{class e{constructor(e,t){this.router=e,this.config=t,this.asset=em}ngOnInit(){sessionStorage.removeItem("screenerau")}takeAScreener(){this.router.navigate([this.config.takeAScreener])}}return e.\u0275fac=function(t){return new(t||e)(Ao(Pf),Ao(Km))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:94,vars:1,consts:[["role","main",1,"bg-light","mt-1","round-0"],[1,"jumbotron","mt-1","mb-0","welcome-jumbo","text-center"],[1,"container"],[1,"row"],[1,"col-md-12","col-sm-12","mx-auto","welcome_container"],[1,"col-md-7","col-sm-12","mx-auto"],[1,"justlovely","display-xl"],[1,"lead","teal","roboto","p-3"],[1,"col-md-4"],[1,"mb-4"],[1,"card-body"],["role","presentation","alt","Stopwatch icon representing speed",1,"img-responsive",2,"width","100%","height","6em !important","margin","0 0 1em 0","fill","#111111"],[0,"xlink","href","assets/img/icons.svg#stopwatch"],[1,"card-text"],["role","presentation","alt","Question mark representing unknown identity",1,"img-responsive",2,"width","100%","height","5em !important","margin","1em 0"],[0,"xlink","href","assets/img/icons.svg#question_mark"],["role","presentation","alt","Circle with three range sliders in it",1,"img-responsive",2,"width","100%","height","5em !important","margin","1em 0"],[0,"xlink","href","assets/img/icons.svg#settings"],[1,"row","mb-3"],[1,"col"],[1,"btn","screener-btn",3,"click"],[1,"jumbotron","mt-1","mb-0","what-to-expect-jumbo"],[1,"row","what-to-expect-bg"],[1,"col","mx-auto","p-2","teal-bg","text-center"],[1,"justlovely","display-xl","text-white"],[1,"p-0","col-md-10","col-sm-12","mx-auto","what_to_expect_container"],[1,"row","text-white"],[1,"col-md-3"],[1,"round","teal-bg","justlovely","mb-4"],[1,"font-weight-bold"],[1,"col-md-3","mt-5"],[1,"row","pt-4","pb-4"],[1,"col","text-center"],[1,"bg-white"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"]],template:function(e,t){1&e&&(Ro(0,"main",0),Ro(1,"section",1),Ro(2,"div",2),Ro(3,"div",3),Ro(4,"div",4),Ro(5,"div",3),Ro(6,"div",5),Ro(7,"h1",6),ua(8,"Welcome"),Po(),Po(),Po(),Ro(9,"div",3),Ro(10,"p",7),ua(11,"We're glad you're here. eCHECKUP Screeners allow you to gain more clarity on your emotional well-being, an area that directly impacts your ability to thrive in college and beyond. Let's see what has been going on for you and how we can support your mental health."),Po(),Po(),Ro(12,"div",3),Ro(13,"div",8),Ro(14,"div",9),Ro(15,"div",10),cn(),Ro(16,"svg",11),No(17,"use",12),Po(),un(),Ro(18,"p",13),ua(19,"Takes less than 5 minutes to complete"),Po(),Po(),Po(),Po(),Ro(20,"div",8),Ro(21,"div",9),Ro(22,"div",10),cn(),Ro(23,"svg",14),No(24,"use",15),Po(),un(),Ro(25,"p",13),ua(26,"Screeners are 100% anonymous"),Po(),Po(),Po(),Po(),Ro(27,"div",8),Ro(28,"div",9),Ro(29,"div",10),cn(),Ro(30,"svg",16),No(31,"use",17),Po(),un(),Ro(32,"p",13),ua(33,"Results are customized to you"),Po(),Po(),Po(),Po(),Po(),Ro(34,"div",18),Ro(35,"div",19),Ro(36,"button",20),qo("click",function(){return t.takeAScreener()}),ua(37,"TAKE A SCREENER"),Po(),Po(),Po(),Po(),Po(),Po(),Po(),Ro(38,"section",21),Ro(39,"div",22),Ro(40,"div",23),Ro(41,"h2",24),ua(42,"What to Expect"),Po(),Po(),Po(),Ro(43,"div",2),Ro(44,"div",3),Ro(45,"div",25),Ro(46,"div",26),Ro(47,"div",27),Ro(48,"div",9),Ro(49,"div",10),Ro(50,"div",28),ua(51," 1 "),Po(),Ro(52,"p",13),Ro(53,"span",29),ua(54,"Reflect"),Po(),ua(55," on how you are feeling to determine which screener to take "),Po(),Po(),Po(),Po(),Ro(56,"div",30),Ro(57,"div",9),Ro(58,"div",10),Ro(59,"div",28),ua(60," 2 "),Po(),Ro(61,"p",13),Ro(62,"span",29),ua(63,"Start"),Po(),ua(64," the screener and "),Ro(65,"span",29),ua(66,"answer"),Po(),ua(67," a brief series of questions "),Po(),Po(),Po(),Po(),Ro(68,"div",30),Ro(69,"div",9),Ro(70,"div",10),Ro(71,"div",28),ua(72," 3 "),Po(),Ro(73,"p",13),ua(74," Receive helpful feedback with "),Ro(75,"span",29),ua(76,"strategies and skills"),Po(),Po(),Po(),Po(),Po(),Ro(77,"div",27),Ro(78,"div",9),Ro(79,"div",10),Ro(80,"div",28),ua(81," 4 "),Po(),Ro(82,"p",13),Ro(83,"span",29),ua(84,"Discover"),Po(),ua(85," relevant resources "),Po(),Po(),Po(),Po(),Po(),Ro(86,"div",31),Ro(87,"div",32),Ro(88,"button",20),qo("click",function(){return t.takeAScreener()}),ua(89,"TAKE A SCREENER"),Po(),Po(),Po(),Po(),Po(),Po(),Po(),Ro(90,"section",33),Ro(91,"div",34),Ro(92,"div",35),No(93,"img",36),Po(),Po(),Po(),Po()),2&e&&(Jr(93),Io("src",t.asset.echeckupLogo,nr))},styles:[".jumbotron[_ngcontent-%COMP%]{padding:0}.welcome_container[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.8);font-weight:700}.welcome_container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:700}.what_to_expect_container[_ngcontent-%COMP%]{margin-top:20em!important}@media screen and (max-width:768px){.what_to_expect_container[_ngcontent-%COMP%]{margin:0!important;background:rgba(0,0,0,.6)}}"]}),e})(),Jm=(()=>{class e{transform(e,t){return e&&t?e.filter(e=>t(e)):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ge({name:"filter",type:e,pure:!1}),e})();function Xm(e,t){1&e&&(Ro(0,"div",6),Ro(1,"div",12),ua(2," Please select another screener "),Po(),Po())}function eg(e,t){1&e&&(Ro(0,"div",6),Ro(1,"div",13),Ro(2,"h1",14),ua(3,"How have you been feeling?"),Po(),Ro(4,"p",15),ua(5,"(Select one item below)"),Po(),Po(),Po())}function tg(e,t){1&e&&(Ro(0,"div",16),ua(1,"> "),Ro(2,"div",17),Ro(3,"h1",14),ua(4,"How have you been feeling?"),Po(),Ro(5,"p",15),ua(6,"(Select one item below)"),Po(),Po(),Po())}function ng(e,t){if(1&e){const e=Mo();Ro(0,"div",18),Ro(1,"div",19),qo("click",function(){Dt(e);const n=t.$implicit;return $o().startSession(n.id)}),Ro(2,"div",20),Ro(3,"div",21),Ro(4,"p"),ua(5),Po(),Po(),Ro(6,"div",22),Ro(7,"p"),ua(8),Po(),Po(),Po(),Po(),Po()}if(2&e){const e=t.$implicit;Jr(1),Bo("id",e.id),Jr(4),ha(e.desc),Jr(3),ha(e.display)}}let sg=(()=>{class e{constructor(e,t){this.router=e,this.config=t,this.asset=em,this.product=tm,this.takeAnotherScreener=!1,this.showModule=e=>this.config.modules.includes(e.id);let n=this.router.getCurrentNavigation().extras.state;n&&(this.takeAnotherScreener=n.takeAnotherScreener);let s=-1,r=null,i=null;document.addEventListener("keydown",e=>{r=document.activeElement;const t=Array.from(document.querySelectorAll(".flip-card")),n=t.length-1;switch(e.code){case"Tab":case"ArrowRight":case"ArrowDown":s=s0?s-1:n;break;case"Space":case"Enter":t.includes(r)&&this.startSession(r.id)}i=t[s],i&&(i.focus(),e.preventDefault())})}startSession(e){this.router.navigate([this.config.startSession(e)])}}return e.\u0275fac=function(t){return new(t||e)(Ao(Pf),Ao(Km))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"jumbotron","mb-0","bg-white","how-have-jumbo","pt-0","px-0","mt-1"],["class","row",4,"ngIf"],["class","row what-to-expect-bg",4,"ngIf"],[1,"container","p-4"],[1,"row","text-white","mt-5"],[1,"col-md-12","col-lg-9","mx-auto"],[1,"row"],["class","col-lg-3 col-md-4 col-xs-6","style","width:auto !important",4,"ngFor","ngForOf"],[1,"bg-white"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"],[1,"col","mx-auto","pt-5","p-2","display-4","text-black","text-center"],[1,"col-12",2,"border-top","1px solid white"],[1,"mx-auto","pt-5","p-2","display-xl","justlovely","text-black","text-center"],[1,"text-black","text-center","text-small"],[1,"row","what-to-expect-bg"],[1,"col"],[1,"col-lg-3","col-md-4","col-xs-6",2,"width","auto !important"],["tabindex","0",1,"mb-4","flip-card","cursor-pointer",3,"id","click"],[1,"card-body","flip-card-inner","p-0"],[1,"round","round-lg","purple-outline","mb-4","roboto","flip-card-front"],[1,"round","round-lg","purple-bg","mb-4","roboto","flip-card-back"]],template:function(e,t){1&e&&(Ro(0,"section",0),Eo(1,Xm,3,0,"div",1),Eo(2,eg,6,0,"div",1),Eo(3,tg,7,0,"div",2),Ro(4,"div",3),Ro(5,"div",4),Ro(6,"div",5),Ro(7,"div",6),Eo(8,ng,9,3,"div",7),Ol(9,"filter"),Po(),Po(),Po(),Po(),Po(),Ro(10,"section",8),Ro(11,"div",9),Ro(12,"div",10),No(13,"img",11),Po(),Po(),Po()),2&e&&(Jr(1),Io("ngIf",t.takeAnotherScreener),Jr(1),Io("ngIf",t.takeAnotherScreener),Jr(1),Io("ngIf",!t.takeAnotherScreener),Jr(5),Io("ngForOf",function(e,t,n,s){const r=e+Je,i=Pt(),o=St(i,r);return Nl(i,Pl(i,r)?function(e,t,n,s,r,i,o){const a=t+n;return xo(e,a,r,i)?wo(e,a+2,o?s.call(o,r,i):s(r,i)):Al(e,a+2)}(i,$t(),t,o.transform,n,s,o):o.transform(n,s))}(9,5,t.product,t.showModule)),Jr(5),Io("src",t.asset.echeckupLogo,nr))},directives:[ku,xu],pipes:[Jm],styles:[""]}),e})(),rg=(()=>{class e{constructor(e,t){this.http=e,this.config=t,this.applicationUserSubject=new dm(1),this.applicationUserObservable=this.applicationUserSubject.asObservable()}update(e){sessionStorage.setItem("screenerau",JSON.stringify(e)),this.save(e),this.applicationUserSubject.next(e)}save(e){this.http.post(`${Xf}/screener/${this.config.campus.campusId}/save`,this.applicationUserToJson(e)).subscribe(e=>{},e=>{})}applicationUserToJson(e){let t={};return e.hasOwnProperty("demographic")&&(t=e.demographic.reduce((e,t)=>(e[t.name]=t.response,e),{})),this.config.modules.forEach(n=>{e.product&&e.product[n]&&(t[n]=e.product[n].assessment.reduce((e,t)=>(e[t.name]=`${t.response}`,e),{}),e.product[n].change&&e.product[n].change.hasOwnProperty("response")&&(t[n].changeResponse=e.product[n].change.response),t[n].lookForward=e.product[n].lookForward?JSON.stringify(e.product[n].lookForward):"")}),t.uid=e.uid,t}}return e.\u0275fac=function(t){return new(t||e)(ds(Om),ds(Km))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ig=(()=>{class e{constructor(){this.questionAnsweredSubject=new x,this.questionAnsweredObservable=this.questionAnsweredSubject.asObservable(),this.questionIncrementSubject=new x,this.questionIncrementObservable=this.questionIncrementSubject.asObservable()}questionAnswered(){this.questionAnsweredSubject.next()}nextQuestion(e){this.questionIncrementSubject.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class og{constructor(e,t,n,s){this.template=e,this.inputType=t,this.modal=n,this.options=s}}let ag=(()=>{class e{adapt(e){return new og(e.template,e.inputType,e.modal,e.options)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class lg{constructor(e,t,n,s,r,i,o,a,l,c,u,h){this.questionId=e,this.category=t,this.qClass=n,this.group=s,this.inputText=r,this.name=i,this.options=o,this.outputText=a,this.product=l,this.type=c,this.response=u,this.hidden=h}}let cg=(()=>{class e{constructor(e,t){this.resourceOptionsAdapterService=e,this.util=t}adapt(e){return new lg(this.util.hashCode(e.name),e.category,e.class,e.group,e.inputText,e.name,this.resourceOptionsAdapterService.adapt(e.options),e.outputText,e.product,e.type,null,!0)}}return e.\u0275fac=function(t){return new(t||e)(ds(ag),ds(Jf))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class ug{}const hg="*";function dg(e,t=null){return{type:4,styles:t,timings:e}}function pg(e,t=null){return{type:2,steps:e,options:t}}function fg(e){return{type:6,styles:e,offset:null}}function mg(e,t,n){return{type:0,name:e,styles:t,options:n}}function gg(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function yg(e){Promise.resolve(null).then(e)}class vg{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){yg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class bg{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?yg(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const _g=["toast-component",""];function wg(e,t){if(1&e){const e=Mo();Ro(0,"button",5),qo("click",function(){return Dt(e),$o().remove()}),Ro(1,"span",6),ua(2,"\xd7"),Po(),Po()}}function Sg(e,t){if(1&e&&(Do(0),ua(1),Fo()),2&e){const e=$o(2);Jr(1),da("[",e.duplicatesCount+1,"]")}}function xg(e,t){if(1&e&&(Ro(0,"div"),ua(1),Eo(2,Sg,2,1,"ng-container",4),Po()),2&e){const e=$o();Xo(e.options.titleClass),Co("aria-label",e.title),Jr(1),da(" ",e.title," "),Jr(1),Io("ngIf",e.duplicatesCount)}}function Cg(e,t){if(1&e&&No(0,"div",7),2&e){const e=$o();Xo(e.options.messageClass),Io("innerHTML",e.message,tr)}}function kg(e,t){if(1&e&&(Ro(0,"div",8),ua(1),Po()),2&e){const e=$o();Xo(e.options.messageClass),Co("aria-label",e.message),Jr(1),da(" ",e.message," ")}}function Eg(e,t){if(1&e&&(Ro(0,"div"),No(1,"div",9),Po()),2&e){const e=$o();Jr(1),Jo("width",e.width+"%")}}function Tg(e,t){if(1&e){const e=Mo();Ro(0,"button",5),qo("click",function(){return Dt(e),$o().remove()}),Ro(1,"span",6),ua(2,"\xd7"),Po(),Po()}}function Ag(e,t){if(1&e&&(Do(0),ua(1),Fo()),2&e){const e=$o(2);Jr(1),da("[",e.duplicatesCount+1,"]")}}function Ig(e,t){if(1&e&&(Ro(0,"div"),ua(1),Eo(2,Ag,2,1,"ng-container",4),Po()),2&e){const e=$o();Xo(e.options.titleClass),Co("aria-label",e.title),Jr(1),da(" ",e.title," "),Jr(1),Io("ngIf",e.duplicatesCount)}}function Og(e,t){if(1&e&&No(0,"div",7),2&e){const e=$o();Xo(e.options.messageClass),Io("innerHTML",e.message,tr)}}function Rg(e,t){if(1&e&&(Ro(0,"div",8),ua(1),Po()),2&e){const e=$o();Xo(e.options.messageClass),Co("aria-label",e.message),Jr(1),da(" ",e.message," ")}}function Pg(e,t){if(1&e&&(Ro(0,"div"),No(1,"div",9),Po()),2&e){const e=$o();Jr(1),Jo("width",e.width+"%")}}class Ng{constructor(e,t,n,s,r,i){this.toastId=e,this.config=t,this.message=n,this.title=s,this.toastType=r,this.toastRef=i,this._onTap=new x,this._onAction=new x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}}const Dg={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Fg=new Kn("ToastConfig");class jg{constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){const e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Mg extends class{attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}}{constructor(e,t,n){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=n}attachComponentPortal(e,t){const n=this._componentFactoryResolver.resolveComponentFactory(e.component);let s;return s=n.create(e.injector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(s),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(s)),s}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Lg=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc))},e.\u0275prov=ue({factory:function(){return new e(ds(Xc))},token:e,providedIn:"root"}),e})();class qg{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let Ug=(()=>{class e{constructor(e,t,n,s){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=s,this._paneElements=new Map}create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(e){return new Mg(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new qg(this._createPortalHost(e))}}return e.\u0275fac=function(t){return new(t||e)(ds(Lg),ds(Ca),ds(Hc),ds(Xc))},e.\u0275prov=ue({factory:function(){return new e(ds(Lg),ds(Ca),ds(Hc),ds(Xc))},token:e,providedIn:"root"}),e})();class Hg{constructor(e){this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new x,this._activate=new x,this._manualClose=new x,this._resetTimeout=new x,this._countDuplicate=new x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class $g{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===Ng?this._toastPackage:this._parentInjector.get(e,t,n)}}let Bg=(()=>{class e{constructor(e,t,n,s,r){this.overlay=t,this._injector=n,this.sanitizer=s,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,t,n={},s=""){return this._preBuildNotification(s,e,t,this.applyConfig(n))}success(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))}error(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))}info(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))}warning(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))}clear(e){for(const t of this.toasts)if(void 0!==e){if(t.toastId===e)return void t.toastRef.manualClose()}else t.toastRef.manualClose()}remove(e){const t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(e,t,n,s)):this._buildNotification(e,t,n,s)}_buildNotification(e,t,n,s){if(!s.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(n,t,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||t)&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=t;let i=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(i=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const o=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let a=t;t&&s.enableHtml&&(a=this.sanitizer.sanitize(er.HTML,t));const l=new Hg(o),c=new Ng(this.index,s,a,n,e,l),u=new $g(c,this._injector),h=new jg(s.toastComponent,u),d=o.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=d.instance;const p={toastId:this.index,title:n||"",message:t||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:c.onTap(),onAction:c.onAction(),portal:d};return i||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return e.\u0275fac=function(t){return new(t||e)(ds(Fg),ds(Ug),ds(lo),ds(lh),ds(wc))},e.\u0275prov=ue({factory:function(){return new e(ds(Fg),ds(Ug),ds(Qi),ds(lh),ds(wc))},token:e,providedIn:"root"}),e})(),Vg=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}var t;return e.\u0275fac=function(t){return new(t||e)(Ao(Bg),Ao(Ng),Ao(wc))},e.\u0275cmp=$e({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&qo("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(pa("@flyInOut",t.state),Xo(t.toastClasses),Jo("display",t.displayStyle))},attrs:_g,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(Eo(0,wg,3,0,"button",0),Eo(1,xg,3,5,"div",1),Eo(2,Cg,1,3,"div",2),Eo(3,kg,2,4,"div",3),Eo(4,Eg,2,2,"div",4)),2&e&&(Io("ngIf",t.options.closeButton),Jr(1),Io("ngIf",t.title),Jr(1),Io("ngIf",t.message&&t.options.enableHtml),Jr(1),Io("ngIf",t.message&&!t.options.enableHtml),Jr(1),Io("ngIf",t.options.progressBar))},directives:[ku],encapsulation:2,data:{animation:[(t=[mg("inactive",fg({opacity:0})),mg("active",fg({opacity:1})),mg("removed",fg({opacity:0})),gg("inactive => active",dg("{{ easeTime }}ms {{ easing }}")),gg("active => removed",dg("{{ easeTime }}ms {{ easing }}"))],{type:7,name:"flyInOut",definitions:t,options:{}})]}}),e})();const zg=Object.assign(Object.assign({},Dg),{toastComponent:Vg});let Wg=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:Fg,useValue:{default:zg,config:t}}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({imports:[[Nu]]}),e})(),Qg=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return e.\u0275fac=function(t){return new(t||e)(Ao(Bg),Ao(Ng),Ao(Hc))},e.\u0275cmp=$e({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&qo("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(Xo(t.toastClasses),Jo("display",t.displayStyle))},attrs:_g,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(Eo(0,Tg,3,0,"button",0),Eo(1,Ig,3,5,"div",1),Eo(2,Og,1,3,"div",2),Eo(3,Rg,2,4,"div",3),Eo(4,Pg,2,2,"div",4)),2&e&&(Io("ngIf",t.options.closeButton),Jr(1),Io("ngIf",t.title),Jr(1),Io("ngIf",t.message&&t.options.enableHtml),Jr(1),Io("ngIf",t.message&&!t.options.enableHtml),Jr(1),Io("ngIf",t.options.progressBar))},directives:[ku],encapsulation:2}),e})();function Kg(e,t){if(1&e){const e=Mo();Ro(0,"button",2),qo("click",function(){return Dt(e),$o().toastPackage.toastRef.close()}),ua(1,"Close"),Po()}}Object.assign(Object.assign({},Dg),{toastComponent:Qg});let Gg=(()=>{class e extends Vg{constructor(e,t,n){super(e,t),this.toastrService=e,this.toastPackage=t,this.config=n}}return e.\u0275fac=function(t){return new(t||e)(Ao(Bg),Ao(Ng),Ao(Km))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],features:[uo],decls:4,vars:6,consts:[["role","alert"],["type","button","class","w-100 btn btn-dark",3,"click",4,"ngIf"],["type","button",1,"w-100","btn","btn-dark",3,"click"]],template:function(e,t){var n;1&e&&(Ro(0,"div",0),Ro(1,"p"),ua(2),Po(),Eo(3,Kg,2,0,"button",1),Po()),2&e&&("alert ",n=t.options.toastClass," text-dark",ta(ns,ea,ko(Pt(),"alert ",n," text-dark"),!0),Co("aria-label",t.message),Jr(2),ha(t.message),Jr(1),Io("ngIf",t.config.accessibility))},directives:[ku],styles:[".toast-container .ngx-toastr{box-shadow:none}.toast-container .ngx-toastr:hover{box-shadow:none!important}.toast-container .alert{width:300px;position:relative;overflow:hidden;margin:0 0 6px;padding:15px;border-radius:3px 3px 3px 3px;background-position:15px;background-repeat:no-repeat;background-size:24px;box-shadow:0 0 12px #999;color:#fff;pointer-events:auto}"],encapsulation:2,changeDetection:0}),e})(),Zg=(()=>{class e{constructor(e,t){this.toastr=e,this.config=t}success(e,t,n){this.toastr.success(e,t,{toastComponent:Gg,disableTimeOut:this.config.accessibility,toastClass:"alert-success"})}error(e,t){this.toastr.show(e,t,{toastComponent:Gg,disableTimeOut:this.config.accessibility,toastClass:"alert-danger"})}info(e,t,n){this.toastr.info(e,t,{toastComponent:Gg,disableTimeOut:this.config.accessibility,toastClass:"alert-info"})}warning(e,t,n){this.toastr.warning(e,t,{toastComponent:Gg,disableTimeOut:this.config.accessibility,toastClass:"alert-warning"})}}return e.\u0275fac=function(t){return new(t||e)(ds(Bg),ds(Km))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yg=function(e){return{disabled:e}};function Jg(e,t){if(1&e){const e=Mo();Ro(0,"button",6),qo("click",function(){return Dt(e),$o().next()}),ua(1),Po()}if(2&e){const e=$o();Io("ngClass",Tl(2,Yg,!e.canNext())),Jr(1),da("",e.nextLabel," >")}}function Xg(e,t){if(1&e){const e=Mo();Ro(0,"button",7),qo("click",function(){return Dt(e),$o().back()}),ua(1),Po()}if(2&e){const e=$o();Io("ngClass",Tl(2,Yg,!e.canReturn())),Jr(1),da("< ",e.returnLabel,"")}}let ey=(()=>{class e{constructor(){this.showReturnBtn=!0,this.canReturn=()=>!0,this.returnAction=()=>console.error("Return action is not defined"),this.showNextBtn=!0,this.canNext=()=>!0,this.nextAction=()=>console.error("Next action is not defined"),this.nextLabel="Next",this.returnLabel="Back"}next(){this.canNext(!0)&&this.nextAction()}back(){this.canReturn(!0)&&this.returnAction()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["app-navigation"]],inputs:{showReturnBtn:"showReturnBtn",canReturn:"canReturn",returnAction:"returnAction",showNextBtn:"showNextBtn",canNext:"canNext",nextAction:"nextAction",nextLabel:"nextLabel",returnLabel:"returnLabel"},decls:6,vars:2,consts:[[1,"bg-light"],[1,"container"],[1,"row"],[1,"col","py-3"],["class","btn btn-sm btn-outline-primary float-right",3,"ngClass","click",4,"ngIf"],["class","btn btn-sm btn-outline-primary float-left",3,"ngClass","click",4,"ngIf"],[1,"btn","btn-sm","btn-outline-primary","float-right",3,"ngClass","click"],[1,"btn","btn-sm","btn-outline-primary","float-left",3,"ngClass","click"]],template:function(e,t){1&e&&(Ro(0,"div",0),Ro(1,"div",1),Ro(2,"div",2),Ro(3,"div",3),Eo(4,Jg,2,4,"button",4),Eo(5,Xg,2,4,"button",5),Po(),Po(),Po(),Po()),2&e&&(Jr(4),Io("ngIf",t.showNextBtn),Jr(1),Io("ngIf",t.showReturnBtn))},directives:[ku,wu],styles:[""]}),e})();function ty(e,t){if(1&e&&No(0,"app-navigation",5),2&e){const e=$o();Io("showNextBtn",e.showNextBtn)("showReturnBtn",e.showReturnBtn)("canNext",e.canNext)("canReturn",e.canReturn)("nextAction",e.nextAction)("returnAction",e.returnAction)("returnLabel",e.returnLabel)("nextLabel",e.nextLabel)}}let ny=(()=>{class e{constructor(){this.asset=em,this.showReturnBtn=!0,this.canReturn=()=>!0,this.returnAction=()=>console.error("Return action is not defined"),this.showNextBtn=!0,this.canNext=()=>!0,this.nextAction=()=>console.error("Next action is not defined"),this.nextLabel="Next",this.returnLabel="Back"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["app-footer"]],inputs:{showNavigation:"showNavigation",showReturnBtn:"showReturnBtn",canReturn:"canReturn",returnAction:"returnAction",showNextBtn:"showNextBtn",canNext:"canNext",nextAction:"nextAction",nextLabel:"nextLabel",returnLabel:"returnLabel"},decls:8,vars:2,consts:[[3,"showNextBtn","showReturnBtn","canNext","canReturn","nextAction","returnAction","returnLabel","nextLabel",4,"ngIf"],[1,"footer","bg-dark"],[1,"container"],["alt","eCHECKUP TO GO Logo",1,"logo",2,"max-height","25px","width","auto",3,"src"],[1,"text-white","small"],[3,"showNextBtn","showReturnBtn","canNext","canReturn","nextAction","returnAction","returnLabel","nextLabel"]],template:function(e,t){1&e&&(Ro(0,"footer"),Eo(1,ty,1,8,"app-navigation",0),Ro(2,"div",1),Ro(3,"div",2),No(4,"img",3),ua(5,"\xa0 "),Ro(6,"span",4),ua(7,"\xa9 2003-2021 SDSU Research Foundation"),Po(),Po(),Po(),Po()),2&e&&(Jr(1),Io("ngIf",t.showNavigation),Jr(3),Io("src",t.asset.footerLogo,nr))},directives:[ku,ey],styles:[".footer[_ngcontent-%COMP%]{margin:auto;text-align:center;line-height:40px}"]}),e})();class sy{constructor(e,t){this.open=e,this.close=t||e}isManual(){return"manual"===this.open||"manual"===this.close}}const ry={hover:["mouseover","mouseout"],focus:["focusin","focusout"]},iy="undefined"!=typeof window&&window||{};let oy;function ay(){return void 0===iy||(void 0===iy.__theme?(oy||(oy=function(){if("undefined"==typeof document)return null;const e=document.createElement("span");e.innerText="test bs version",document.body.appendChild(e),e.classList.add("d-none");const t=e.getBoundingClientRect();return document.body.removeChild(e),t&&0===t.top?"bs4":"bs3"}()),"bs3"===oy):"bs4"!==iy.__theme)}function ly(e,t,n,r){return s(n)&&(r=n,n=void 0),r?ly(e,t,n).pipe(E(e=>l(e)?r(...e):r(e))):new v(s=>{cy(e,t,function(e){s.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},s,n)})}function cy(e,t,n,s,r){let i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const s=e;e.addEventListener(t,n,r),i=()=>s.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const s=e;e.on(t,n),i=()=>s.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const s=e;e.addListener(t,n),i=()=>s.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let i=0,o=e.length;i0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class hy extends om{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,s=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++sObject.assign(Object.assign({key:e},l[e]),{area:Ny(l[e])})).sort((e,t)=>t.area-e.area);let u=c.filter(({width:e,height:t})=>e>=n.clientWidth&&t>=n.clientHeight);u=u.filter(e=>r.some(t=>t===e.key));const h=u.length>0?u[0].key:c[0].key,d=e.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${h}`),h+(d?`-${d}`:"")}function Fy(e){const t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),s=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:Number(e.offsetWidth)+s,height:Number(e.offsetHeight)+n}}function jy(e,t,n=null){return Iy(t,n?Ry(e):Sy(e,t),n)}function My(e,t,n){const s=n.split(" ")[0],r=Fy(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(s),a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[l]=s===l?t[l]-r[u]:t[function(e){const t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,e=>t[e])}(l)],i}function Ly(e,t){return e&&e.modifiers&&e.modifiers[t]&&e.modifiers[t].enabled}function qy(e,t,n){Object.keys(t).forEach(s=>{let r="";var i;-1!==["width","height","top","right","bottom","left"].indexOf(s)&&""!==(i=t[s])&&!isNaN(parseFloat(i))&&isFinite(i)&&(r="px"),n?n.setStyle(e,s,`${String(t[s])}${r}`):e.style[s]=String(t[s])+r})}function Uy(e){let t=e.offsets.target;const n=e.instance.target.querySelector(".arrow");if(!n)return e;const s=-1!==["left","right"].indexOf(e.placement.split(" ")[0]),r=s?"height":"width",i=s?"Top":"Left",o=i.toLowerCase(),a=s?"left":"top",l=s?"bottom":"right",c=Fy(n)[r],u=e.placement.split(" ")[1];e.offsets.host[l]-ct[l]&&(t[o]+=Number(e.offsets.host[o])+Number(c)-Number(t[l])),t=Ty(t);const h=py(e.instance.target),d=parseFloat(h[`margin${i}`]),p=parseFloat(h[`border${i}Width`]);let f;if(u){const t=parseFloat(h.borderRadius),n=Number(d+p+t);f=o===u?Number(e.offsets.host[o])+n:Number(e.offsets.host[o])+Number(e.offsets.host[r]-n)}else f=Number(e.offsets.host[o])+Number(e.offsets.host[r]/2-c/2);let m=f-t[o]-d-p;return m=Math.max(Math.min(t[r]-c,m),0),e.offsets.arrow={[o]:Math.round(m),[a]:""},e.instance.arrow=n,e}function Hy(e){if(e.offsets.target=Ty(e.offsets.target),!Ly(e.options,"flip"))return e.offsets.target=Object.assign(Object.assign({},e.offsets.target),My(e.instance.target,e.offsets.host,e.placement)),e;const t=Py(e.instance.target,e.instance.host,0,"viewport",!1);let n=e.placement.split(" ")[0],s=e.placement.split(" ")[1]||"";const r=Dy("auto",e.offsets.host,e.instance.target,e.instance.host,e.options.allowedPositions),i=[n,r];return i.forEach((r,o)=>{if(n!==r||i.length===o+1)return e;n=e.placement.split(" ")[0];const a="left"===n&&Math.floor(e.offsets.target.right)>Math.floor(e.offsets.host.left)||"right"===n&&Math.floor(e.offsets.target.left)Math.floor(e.offsets.host.top)||"bottom"===n&&Math.floor(e.offsets.target.top)Math.floor(t.right),u=Math.floor(e.offsets.target.top)Math.floor(t.bottom),d="left"===n&&l||"right"===n&&c||"top"===n&&u||"bottom"===n&&h,p=-1!==["top","bottom"].indexOf(n),f=p&&"left"===s&&l||p&&"right"===s&&c||!p&&"left"===s&&u||!p&&"right"===s&&h;(a||d||f)&&((a||d)&&(n=i[o+1]),f&&(s=function(e){return"right"===e?"left":"left"===e?"right":e}(s)),e.placement=n+(s?` ${s}`:""),e.offsets.target=Object.assign(Object.assign({},e.offsets.target),My(e.instance.target,e.offsets.host,e.placement)))}),e}function $y(e){if(!Ly(e.options,"preventOverflow"))return e;const t="transform",n=e.instance.target.style,{top:s,left:r,[t]:i}=n;n.top="",n.left="",n[t]="";const o=Py(e.instance.target,e.instance.host,0,"scrollParent",!1);n.top=s,n.left=r,n[t]=i;const a={primary(t){let n=e.offsets.target[t];return e.offsets.target[t]o[t]&&(s=Math.min(e.offsets.target[n],o[t]-("right"===t?e.offsets.target.width:e.offsets.target.height))),{[n]:s}}};let l;return["left","right","top","bottom"].forEach(t=>{l=-1!==["left","top"].indexOf(t)?"primary":"secondary",e.offsets.target=Object.assign(Object.assign({},e.offsets.target),a[l](t))}),e}function By(e){const t=e.placement,n=t.split(" ")[0],s=t.split(" ")[1];if(s){const{host:t,target:r}=e.offsets,i=-1!==["bottom","top"].indexOf(n),o=i?"left":"top",a=i?"width":"height",l={start:{[o]:t[o]},end:{[o]:t[o]+t[a]-r[a]}};e.offsets.target=Object.assign(Object.assign({},r),{[o]:o===s?l.start[o]:l.end[o]})}return e}const Vy=new class{position(e,t,n=!0){return this.offset(e,t,!1)}offset(e,t,n=!0){return jy(t,e)}positionElements(e,t,n,s,r){return[Hy,By,$y,Uy].reduce((e,t)=>t(e),function(e,t,n,s){const r=jy(e,t);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)||(n="auto");const i=!!n.match(/auto/g);let o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;const a=o.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(o)&&(o="auto");const l=My(e,r,o);return o=Dy(o,r,e,t,s?s.allowedPositions:void 0),{options:s,instance:{target:e,host:t,arrow:null},offsets:{target:l,host:r,arrow:null},positionFixed:!1,placement:o,placementAuto:i}}(t,e,n,r))}};let zy=(()=>{class e{constructor(e,t,n){this.update$$=new x,this.positionElements=new Map,this.isDisabled=!1,function(e){return"browser"===e}(n)&&e.runOutsideAngular(()=>{this.triggerEvent$=z(ly(window,"scroll",{passive:!0}),ly(window,"resize",{passive:!0}),ph(0,dy),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(e=>{!function(e,t,n,s,r,i){const o=Vy.positionElements(e,t,n,s,r),a=function(e){return{width:e.offsets.target.width,height:e.offsets.target.height,left:Math.floor(e.offsets.target.left),top:Math.round(e.offsets.target.top),bottom:Math.round(e.offsets.target.bottom),right:Math.floor(e.offsets.target.right)}}(o);qy(t,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},i),o.instance.arrow&&qy(o.instance.arrow,o.offsets.arrow,i),function(e,t){const n=e.instance.target;let s=n.className;e.placementAuto&&(s=s.replace(/bs-popover-auto/g,`bs-popover-${e.placement}`),s=s.replace(/bs-tooltip-auto/g,`bs-tooltip-${e.placement}`),s=s.replace(/\sauto/g,` ${e.placement}`),-1!==s.indexOf("popover")&&-1===s.indexOf("popover-auto")&&(s+=" popover-auto"),-1!==s.indexOf("tooltip")&&-1===s.indexOf("tooltip-auto")&&(s+=" tooltip-auto")),s=s.replace(/left|right|top|bottom/g,`${e.placement.split(" ")[0]}`),t?t.setAttribute(n,"class",s):n.className=s}(o,i)}(Wy(e.target),Wy(e.element),e.attachment,e.appendToBody,this.options,t.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(Wy(e.element),e)}calcPosition(){this.update$$.next()}deletePositionElement(e){this.positionElements.delete(Wy(e))}setOptions(e){this.options=e}}return e.\u0275fac=function(t){return new(t||e)(ds(wc),ds(Oa),ds(oc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();function Wy(e){return"string"==typeof e?document.querySelector(e):e instanceof Aa?e.nativeElement:e}class Qy{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Ky{constructor(e,t,n,s,r,i,o,a){this._viewContainerRef=e,this._renderer=t,this._elementRef=n,this._injector=s,this._componentFactoryResolver=r,this._ngZone=i,this._applicationRef=o,this._posService=a,this.onBeforeShow=new Fl,this.onShown=new Fl,this.onBeforeHide=new Fl,this.onHidden=new Fl,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(e){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(e),this}to(e){return this.container=e||this.container,this}position(e){return this.attachment=e.attachment||this.attachment,this._elementRef=e.target||this._elementRef,this}provide(e){return this._providers.push(e),this}show(e={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(e.content,e.context,e.initialState);const t=lo.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(t,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,e),this.container instanceof Aa&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(e.id?{id:e.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(e){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(e?{id:e}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(e){this.triggers=e.triggers||this.triggers,this._listenOpts.outsideClick=e.outsideClick,this._listenOpts.outsideEsc=e.outsideEsc,e.target=e.target||this._elementRef.nativeElement;const t=this._listenOpts.hide=()=>e.hide?e.hide():void this.hide(),n=this._listenOpts.show=t=>{e.show?e.show(t):this.show(t),t()};return this._unregisterListenersFn=function(e,t){const n=function(e,t=ry){const n=(e||"").trim();if(0===n.length)return[];const s=n.split(/\s+/).map(e=>e.split(":")).map(e=>{const n=t[e[0]]||e;return new sy(n[0],n[1])}),r=s.filter(e=>e.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&s.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return s}(t.triggers),s=t.target;if(1===n.length&&n[0].isManual())return Function.prototype;const r=[],i=[],o=()=>{i.forEach(e=>r.push(e())),i.length=0};return n.forEach(n=>{const a=n.open===n.close,l=a?t.toggle:t.show;a||i.push(()=>e.listen(s,n.close,t.hide)),r.push(e.listen(s,n.open,()=>l(o)))}),()=>{r.forEach(e=>e())}}(this._renderer,{target:e.target,triggers:e.triggers,show:n,hide:t,toggle:e=>{this.isShown?t():n(e)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(e,t){return this._inlineViewRef=e.createEmbeddedView(t),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const e=this._componentRef.location.nativeElement;setTimeout(()=>{var t;this._globalListener=(t={targets:[e,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()}).outsideClick?this._renderer.listen("document","click",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(t=>t.contains(e.target))||t.hide()}):Function.prototype})}var e;this._listenOpts.outsideEsc&&(this._globalListener=(e={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?this._renderer.listen("document","keyup.esc",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype)}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(e,t,n){if(!e)return new Qy([]);if(e instanceof il){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(e,t);return n.markForCheck(),new Qy([n.rootNodes],n)}const n=e.createEmbeddedView({});return this._applicationRef.attachView(n),new Qy([n.rootNodes],n)}if("function"==typeof e){const t=this._componentFactoryResolver.resolveComponentFactory(e),s=lo.create({providers:this._providers,parent:this._injector}),r=t.create(s);return Object.assign(r.instance,n),this._applicationRef.attachView(r.hostView),new Qy([[r.location.nativeElement]],r.hostView,r)}return new Qy([[this._renderer.createText(`${e}`)]])}}let Gy=(()=>{class e{constructor(e,t,n,s,r){this._componentFactoryResolver=e,this._ngZone=t,this._injector=n,this._posService=s,this._applicationRef=r}createLoader(e,t,n){return new Ky(t,n,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return e.\u0275fac=function(t){return new(t||e)(ds(Ca),ds(wc),ds(lo),ds(zy),ds(Hc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const Zy=["*"];let Yy=(()=>{class e{constructor(){this.hide=Function,this.setClass=Function}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),Jy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const Xy={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{}},ev=new Kn("override-default-config"),tv="modal-open",nv="show";let sv=(()=>{class e{constructor(e,t,n){this._element=t,this._renderer=n,this.isShown=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},e)}ngOnInit(){this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,ay()?"in":nv)},this.isAnimated?150:0),document&&document.body&&(1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,tv)),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(e){this.clickStartedInContent=e.target!==this._element.nativeElement}onClickStop(e){this.config.ignoreBackdropClick||"static"===this.config.backdrop||e.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService.setDismissReason("backdrop-click"),this.hide())}onPopState(){this.bsModalService.setDismissReason("browser-back-navigation-clicked"),this.hide()}onEsc(e){this.isShown&&(27!==e.keyCode&&"Escape"!==e.key||e.preventDefault(),this.config.keyboard&&this.level===this.bsModalService.getModalsCount()&&(this.bsModalService.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this.hide()}hide(){!this.isModalHiding&&this.isShown&&(this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,ay()?"in":nv),setTimeout(()=>{this.isShown=!1,document&&document.body&&1===this.bsModalService.getModalsCount()&&this._renderer.removeClass(document.body,tv),this.bsModalService.hide(this.config.id),this.isModalHiding=!1},this.isAnimated?300:0))}}return e.\u0275fac=function(t){return new(t||e)(Ao(Jy),Ao(Aa),Ao(Ra))},e.\u0275cmp=$e({type:e,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(e,t){1&e&&qo("mousedown",function(e){return t.onClickStarted(e)})("mouseup",function(e){return t.onClickStop(e)})("popstate",function(){return t.onPopState()},!1,ur)("keydown.esc",function(e){return t.onEsc(e)},!1,ur),2&e&&Co("aria-modal",!0)("aria-labelledby",t.config.ariaLabelledBy)("aria-describedby",t.config.ariaDescribedby)},ngContentSelectors:Zy,decls:3,vars:2,consts:[["role","document"],[1,"modal-content"]],template:function(e,t){1&e&&(function(e){const t=Pt()[16][6];if(!t.projection){const e=t.projection=ts(1,null),n=e.slice();let s=t.child;for(;null!==s;){const t=0;null!==t&&(n[t]?n[t].projectionNext=s:e[t]=s,n[t]=s),s=s.next}}}(),Ro(0,"div",0),Ro(1,"div",1),function(e,t=0,n){const s=Pt(),r=Nt(),i=li(r,Je+e,16,null,n||null);null===i.projection&&(i.projection=t),qt(),64!=(64&i.flags)&&function(e,t,n){Mr(t[11],0,t,n,Cr(e,n,t),Ir(n.parent||t[6],n,t))}(r,s,i)}(2),Po(),Po()),2&e&&Xo("modal-dialog"+(t.config.class?" "+t.config.class:""))},encapsulation:2}),e})(),rv=(()=>{class e{constructor(e,t){this._isShown=!1,this.element=e,this.renderer=t}get isAnimated(){return this._isAnimated}set isAnimated(e){this._isAnimated=e}get isShown(){return this._isShown}set isShown(e){this._isShown=e,e?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),ay()||(e?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),class{static reflow(e){}static getStyles(e){let t=e.ownerDocument.defaultView;return t&&t.opener||(t=iy),t.getComputedStyle(e)}}.reflow(this.element.nativeElement)),this.isShown=!0}}return e.\u0275fac=function(t){return new(t||e)(Ao(Aa),Ao(Ra))},e.\u0275cmp=$e({type:e,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),iv=(()=>{class e{constructor(e,t,n){this.clf=t,this.modalDefaultOption=n,this.onShow=new Fl,this.onShown=new Fl,this.onHide=new Fl,this.onHidden=new Fl,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason=null,this.loaders=[],this._backdropLoader=this.clf.createLoader(null,null,null),this._renderer=e.createRenderer(null,null),this.config=n?Object.assign({},Xy,n):Xy}show(e,t){this.modalsCount++,this._createLoaders();const n=(null==t?void 0:t.id)||(new Date).getUTCMilliseconds();return this.config=this.modalDefaultOption?Object.assign({},Xy,this.modalDefaultOption,t):Object.assign({},Xy,t),this.config.id=n,this._showBackdrop(),this.lastDismissReason=null,this._showModal(e)}hide(e){1!==this.modalsCount&&null!=e||(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=e?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(e),this.removeLoaders(e)},this.config.animated?150:0)}_showBackdrop(){const e=this.config.backdrop||"static"===this.config.backdrop,t=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),e&&t&&(this._backdropLoader.attach(rv).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(e){var t;const n=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const i of this.config.providers)n.provide(i);const s=new Yy,r=n.provide({provide:Jy,useValue:this.config}).provide({provide:Yy,useValue:s}).attach(sv).to("body");return s.hide=()=>r.instance.hide(),s.setClass=e=>{r.instance.config.class=e},s.onHidden=new Fl,s.onHide=new Fl,this.copyEvent(n.onBeforeHide,s.onHide),this.copyEvent(n.onHidden,s.onHidden),r.show({content:e,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),r.instance.level=this.getModalsCount(),s.content=n.getInnerComponent()||null,s.id=null===(t=r.instance.config)||void 0===t?void 0:t.id,s}_hideModal(e){if(null!=e){const t=this.loaders.findIndex(t=>t.instance.config.id===e),n=this.loaders[t];n&&n.hide(e)}else this.loaders.forEach(e=>{e.hide(e.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(e){this.lastDismissReason=e}removeBackdrop(){this._renderer.removeClass(document.body,tv),this._backdropLoader.hide(),this.backdropRef=null}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidtht.instance.config.id===e);t>=0&&(this.loaders.splice(t,1),this.loaders.forEach((e,t)=>{e.instance.level=t+1}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(e,t){e.subscribe(e=>{t.emit(this.lastDismissReason||e)})}}return e.\u0275fac=function(t){return new(t||e)(ds(Oa),ds(Gy),ds(ev,8))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),ov=(()=>{class e{static forRoot(){return{ngModule:e,providers:[iv,Gy,zy]}}static forChild(){return{ngModule:e,providers:[iv,Gy,zy]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({}),e})(),av=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t}onKeydownHandler(e){e.preventDefault(),this.elementRef.nativeElement.click()}ngOnInit(){this.renderer.setAttribute(this.elementRef.nativeElement,"role","radio")}}return e.\u0275fac=function(t){return new(t||e)(Ao(Aa),Ao(Ra))},e.\u0275dir=Ke({type:e,selectors:[["","radio",""]],hostBindings:function(e,t){1&e&&qo("keydown.space",function(e){return t.onKeydownHandler(e)})}}),e})(),lv=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.keyEvents=["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],this.leftEvents=["ArrowLeft","ArrowUp"]}onKeydownHandler(e){if(this.keyEvents.includes(e.code)){e.preventDefault();let n=parseInt(e.target.dataset.index),s=this.leftEvents.includes(e.code)?-1:1;try{this.radios.find(e=>e.elementRef.nativeElement.dataset.index==`${n+s}`).elementRef.nativeElement.focus()}catch(t){}}}ngOnInit(){this.renderer.setAttribute(this.elementRef.nativeElement,"role","radiogroup")}}return e.\u0275fac=function(t){return new(t||e)(Ao(Aa),Ao(Ra))},e.\u0275dir=Ke({type:e,selectors:[["","radiogroup",""]],contentQueries:function(e,t,n){if(1&e&&function(e,t,n,s){const r=Nt();if(r.firstCreatePass){const n=Ft();Yl(r,new Ul(t,1,void 0),n.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e)}Zl(r,Pt(),1)}(n,av),2&e){let e;Ql(e=Gl())&&(t.radios=e)}},hostBindings:function(e,t){1&e&&qo("keydown",function(e){return t.onKeydownHandler(e)})}}),e})();const cv=["si"],uv=["app-question-template",""];function hv(e,t){if(1&e){const e=Mo();Ro(0,"li",9),qo("click",function(){Dt(e);const n=t.$implicit;return $o(3).selectAnswer(n.display,n.value)}),Ro(1,"div",10),No(2,"input",11),Ro(3,"label",12),ua(4),Po(),Po(),Po()}if(2&e){const e=t.$implicit,n=t.index,s=$o(3);Io("tabindex",0==n?0:-1)("ngClass",s.getActive(e.display,e.value)),Co("data-index",n)("aria-checked",s.isChecked(e.display,e.value)),Jr(2),zo("id","",s.question.name,"-",e.value,""),Bo("value",e.value),Io("checked",s.isChecked(e.display,e.value)),Co("aria-checked",s.isChecked(e.display,e.value)),Jr(1),zo("for","",s.question.name,"-",e.value,""),Co("aria-label",e.display),Jr(1),da(" ",e.display," ")}}function dv(e,t){if(1&e&&(Ro(0,"ul",7),Eo(1,hv,5,13,"li",8),Po()),2&e){const e=$o(2);Co("aria-labelledby",e.question.name+"_prompt"),Jr(1),Io("ngForOf",e.question.options.options)}}function pv(e,t){if(1&e){const e=Mo();Ro(0,"div",19),qo("click",function(){Dt(e);const n=t.$implicit;return $o(3).selectAnswer(n.display,n.value)}),Ro(1,"div",20),Ro(2,"p",21),No(3,"input",11),Ro(4,"label",22),ua(5),Po(),Po(),Po(),Po()}if(2&e){const e=t.$implicit,n=t.index,s=$o(3);Io("tabindex",0==n?0:-1),Co("data-index",n)("aria-checked",s.isChecked(e.display,e.value)),Jr(1),Io("ngClass",s.getSelectionClass(e.display,e.value)),Jr(2),zo("id","",s.question.name,"-",e.value,""),Bo("value",e.value),Io("checked",s.isChecked(e.display,e.value)),Co("aria-checked",s.isChecked(e.display,e.value))("aria-hidden",!0),Jr(1),zo("for","",s.question.name,"-",e.value,""),Co("aria-label",e.display),Jr(1),ha(e.display)}}function fv(e,t){if(1&e){const e=Mo();Ro(0,"div",23),qo("click",function(){Dt(e);const t=$o(3),n=To(5);return t.openModal(n),t.siModalShown=!0}),ua(1,"National Suicide Hotline Information"),Po()}}function mv(e,t){if(1&e&&(Ro(0,"div"),Ro(1,"fieldset",13),Ro(2,"div"),Ro(3,"p",14),Ro(4,"legend",15),ua(5),Po(),Po(),Po(),Ro(6,"div",16),Eo(7,pv,6,14,"div",17),Po(),Eo(8,fv,2,0,"div",18),Po(),Po()),2&e){const e=$o(2);Jr(1),Co("aria-labelledby",e.question.name+"_prompt"),Jr(3),Vo("id","",e.question.name,"_prompt"),Jr(1),ha(e.question.inputText),Jr(1),Co("aria-labelledby",e.question.name+"_prompt"),Jr(1),Io("ngForOf",e.question.options.options),Jr(1),Io("ngIf","depression_9"==e.question.name&&e.question.response>0)}}function gv(e,t){if(1&e){const e=Mo();Ro(0,"div",19),qo("click",function(){Dt(e);const n=t.$implicit;return $o(3).selectAnswer(n.display,n.value)}),Ro(1,"div",29),Ro(2,"p",21),No(3,"i",30),ua(4,"\xa0 "),No(5,"input",11),Ro(6,"label",22),ua(7),Po(),Po(),Po(),Po()}if(2&e){const e=t.$implicit,n=t.index,s=$o(3);Io("tabindex",0==n?0:-1),Co("data-index",n)("aria-checked",s.isChecked(e.display,e.value)),Jr(1),Io("ngClass",s.getSelectionClass(e.display,e.value)),Jr(2),Xo(e.icon),Jr(2),zo("id","",s.question.name,"-",e.value,""),Bo("value",e.value),Io("checked",s.isChecked(e.display,e.value)),Co("aria-checked",s.isChecked(e.display,e.value))("aria-hidden",!0),Jr(1),zo("for","",s.question.name,"-",e.value,""),Co("aria-label",e.display),Jr(1),ha(e.display)}}function yv(e,t){if(1&e){const e=Mo();Ro(0,"a",33),qo("click",function(){Dt(e);const t=$o(4),n=To(3);return t.openModal(n)}),ua(1),Po()}if(2&e){const e=$o(4);Jr(1),ha(e.question.options.modal.modalTitle)}}function vv(e,t){if(1&e&&(Ro(0,"p",31),Eo(1,yv,2,1,"a",32),Po()),2&e){const e=$o(3);Jr(1),Io("ngIf",e.question.options.modal.modalTitle.length>0)}}function bv(e,t){if(1&e&&(Ro(0,"div"),Ro(1,"fieldset",24),Ro(2,"div",25),Ro(3,"p",14),Ro(4,"legend",15),ua(5),Po(),Po(),Po(),Ro(6,"div",26),Ro(7,"div",27),Eo(8,gv,8,16,"div",17),Po(),Eo(9,vv,2,1,"p",28),Po(),Po(),Po()),2&e){const e=$o(2);Jr(1),Co("aria-labelledby",e.question.name+"_prompt"),Jr(3),Vo("id","",e.question.name,"_prompt"),Jr(1),ha(e.question.inputText),Jr(2),Co("aria-labelledby",e.question.name+"_prompt"),Jr(1),Io("ngForOf",e.question.options.options),Jr(1),Io("ngIf",e.question.options.modal)}}function _v(e,t){if(1&e&&(Ro(0,"span",41),Ro(1,"label",22),ua(2),Po(),Po()),2&e){const e=$o(3);Jr(1),Bo("for",e.question.name),Co("aria-label",e.question.options.options[0].display),Jr(1),da(" ",e.question.options.options[0].display," ")}}function wv(e,t){if(1&e){const e=Mo();Ro(0,"a",33),qo("click",function(){Dt(e);const t=$o(4),n=To(3);return t.openModal(n)}),ua(1),Po()}if(2&e){const e=$o(4);Jr(1),ha(e.question.options.modal.modalTitle)}}function Sv(e,t){if(1&e&&(Ro(0,"p",42),Eo(1,wv,2,1,"a",32),Po()),2&e){const e=$o(3);Jr(1),Io("ngIf",e.question.options.modal.modalTitle.length>0)}}function xv(e,t){if(1&e){const e=Mo();Ro(0,"div"),Ro(1,"fieldset",24),Ro(2,"div",25),Ro(3,"p",14),Ro(4,"legend",15),ua(5),Po(),Po(),Po(),Ro(6,"div",26),Ro(7,"div",34),Ro(8,"div",35),Ro(9,"input",36,37),qo("change",function(){Dt(e);const t=To(10),n=$o(2);return n.selectAnswer(n.question.inputText,t.value)}),Po(),Ro(11,"div",38),Eo(12,_v,3,3,"span",39),Po(),Po(),Po(),Eo(13,Sv,2,1,"p",40),Po(),Po(),Po()}if(2&e){const e=$o(2);Jr(1),Co("aria-labelledby",e.question.name+"_prompt"),Jr(3),Vo("id","",e.question.name,"_prompt"),Jr(1),ha(e.question.inputText),Jr(4),Bo("id",e.question.name),Io("value",e.question.response),Jr(3),Io("ngIf",1==e.question.options.options.length),Jr(1),Io("ngIf",e.question.options.modal)}}function Cv(e,t){if(1&e&&(Ro(0,"span"),ua(1),Po()),2&e){const e=$o(4);Jr(1),da("",e.campusName," Student")}}function kv(e,t){if(1&e&&(Ro(0,"span"),ua(1),Po()),2&e){const e=$o(4);Jr(1),da("",e.campusName," Faculty/Staff")}}function Ev(e,t){if(1&e&&(Ro(0,"span"),ua(1),Po()),2&e){const e=$o().$implicit;Jr(1),ha(e.display)}}function Tv(e,t){if(1&e){const e=Mo();Ro(0,"li",9),qo("click",function(){Dt(e);const n=t.$implicit;return $o(3).selectAnswer(n.display,n.value)}),Ro(1,"div",10),No(2,"input",11),Ro(3,"label",44),Eo(4,Cv,2,1,"span",5),Eo(5,kv,2,1,"span",5),Eo(6,Ev,2,1,"span",45),Po(),Po(),Po()}if(2&e){const e=t.$implicit,n=t.index,s=$o(3);Io("tabindex",0==n?0:-1)("ngClass",s.getActive(e.display,e.value)),Co("data-index",n)("aria-checked",s.isChecked(e.display,e.value)),Jr(2),zo("id","",s.question.name,"-",e.value,""),Bo("value",e.value),Io("checked",s.isChecked(e.display,e.value)),Co("aria-checked",s.isChecked(e.display,e.value))("aria-hidden",!0),Jr(1),zo("for","",s.question.name,"-",e.value,""),Io("ngSwitch",e.display),Co("aria-label",s.question.options.options[0].display),Jr(1),Io("ngSwitchCase","campusNameStudentTmp"),Jr(1),Io("ngSwitchCase","campusNameFacultyTmp")}}function Av(e,t){if(1&e){const e=Mo();Ro(0,"a",33),qo("click",function(){Dt(e);const t=$o(4),n=To(3);return t.openModal(n)}),ua(1),Po()}if(2&e){const e=$o(4);Jr(1),ha(e.question.options.modal.modalTitle)}}function Iv(e,t){if(1&e&&(Ro(0,"p",31),Eo(1,Av,2,1,"a",32),Po()),2&e){const e=$o(3);Jr(1),Io("ngIf",e.question.options.modal.modalTitle.length>0)}}function Ov(e,t){if(1&e&&(Ro(0,"div"),Ro(1,"fieldset",24),Ro(2,"div",25),Ro(3,"p",14),Ro(4,"legend",15),ua(5),Po(),Po(),Po(),Ro(6,"div",26),Ro(7,"ul",43),Eo(8,Tv,7,16,"li",8),Po(),Eo(9,Iv,2,1,"p",28),Po(),Po(),Po()),2&e){const e=$o(2);Jr(1),Co("aria-labelledby",e.question.name+"_prompt"),Jr(3),Vo("id","",e.question.name,"_prompt"),Jr(1),ha(e.question.inputText),Jr(2),Co("aria-labelledby",e.question.name+"_prompt"),Jr(1),Io("ngForOf",e.question.options.options),Jr(1),Io("ngIf",e.question.options.modal)}}function Rv(e,t){if(1&e){const e=Mo();Ro(0,"div",46),Ro(1,"p",14),Ro(2,"legend",15),ua(3),Po(),Po(),Ro(4,"div",47),Ro(5,"div",48),Ro(6,"label",49),Ro(7,"span"),ua(8),Po(),Ro(9,"span",50),ua(10),Po(),Po(),Ro(11,"input",51,52),qo("change",function(){Dt(e);const t=To(12);return $o(2).selectAnswer("",t.value)}),Po(),Ro(13,"label",53),Ro(14,"span",54),ua(15),Po(),Ro(16,"span",55),ua(17),Po(),Ro(18,"span",50),ua(19),Po(),Po(),Po(),Po(),Po()}if(2&e){const e=To(12),t=$o(2);Jr(2),Vo("id","",t.question.name,"_prompt"),Jr(1),ha(t.question.inputText),Jr(3),Vo("for","",t.question.name,"-scale"),Jr(2),ha(t.question.options.options.lowerDisplay),Jr(2),ha(t.question.options.options.upperDisplay),Jr(1),Vo("id","",t.question.name,"-scale"),Io("value",t.question.options.options.lowerScale)("min",t.question.options.options.lowerScale)("max",t.question.options.options.upperScale),Jr(4),ha(t.question.options.options.lowerScale),Jr(2),da("",e.value,"%"),Jr(2),ha(t.question.options.options.upperScale)}}function Pv(e,t){1&e&&(Do(0),Eo(1,dv,2,2,"ul",4),Eo(2,mv,9,6,"div",5),Eo(3,bv,10,6,"div",5),Eo(4,xv,14,7,"div",5),Eo(5,Ov,10,6,"div",5),Eo(6,Rv,20,12,"div",6),Fo()),2&e&&(Jr(2),Io("ngSwitchCase","card"),Jr(1),Io("ngSwitchCase","column-card"),Jr(1),Io("ngSwitchCase","column-input"),Jr(1),Io("ngSwitchCase","column-list"),Jr(1),Io("ngSwitchCase","scale"))}function Nv(e,t){if(1&e){const e=Mo();Ro(0,"div",56),Ro(1,"p",57),ua(2),Po(),Ro(3,"button",58),qo("click",function(){return Dt(e),$o().closeModal()}),Ro(4,"span",59),ua(5,"\xd7"),Po(),Po(),Po(),Ro(6,"div",60),ua(7),Po(),Ro(8,"div",61),Ro(9,"button",62),qo("click",function(){return Dt(e),$o().closeModal()}),ua(10,"Close"),Po(),Po()}if(2&e){const e=$o();Jr(2),ha(e.modalTitle),Jr(5),da(" ",e.modalBody," ")}}function Dv(e,t){if(1&e){const e=Mo();Ro(0,"div",56),Ro(1,"p",57),ua(2,"Attention"),Po(),Ro(3,"button",58),qo("click",function(){return Dt(e),$o().closeModal()}),Ro(4,"span",59),ua(5,"\xd7"),Po(),Po(),Po(),Ro(6,"div",60),ua(7," If you are considering suicide or concerned about the safety of someone else, there is help. Please call the National Suicide Hotline at 800-273-8255, call 911, or go to your nearest hospital. "),Po(),Ro(8,"div",61),Ro(9,"button",62),qo("click",function(){return Dt(e),$o().closeModal()}),ua(10,"Close"),Po(),Po()}}let Fv=(()=>{class e{constructor(e,t,n,s){this.questionService=e,this.modalService=t,this.util=n,this.config=s,this.index=0,this.siModalShown=!1}ngOnInit(){this.timeoutTime="scale"===this.question.options.template?1500:0}next(e){this.questionService.nextQuestion(e)}get campusName(){return this.config.campus.name}selectAnswer(e,t){null==this.question.response?(this.question.response=t,this.question.responseId=this.util.hashCode(e+t),this.next(this.index+1)):(this.question.response=t,this.question.responseId=this.util.hashCode(e+t)),"depression_9"==this.question.name&&parseInt(this.question.response)>0&&!this.siModalShown&&(this.openModal(this.siModal),this.siModalShown=!0),"accessibility"==this.question.name&&this.config.updateAccessibility("Y"===this.question.response),this.questionService.questionAnswered()}openModal(e){console.log("openModal"),this.modalRef=this.modalService.show(e)}closeModal(){this.modalRef.hide()}get modalBody(){return this.question.options.modal.modalBody}get modalTitle(){return this.question.options.modal.modalTitle}getActive(e,t){return this.question.responseId===this.util.hashCode(e+t)?"active":""}isChecked(e,t){return this.question.responseId===this.util.hashCode(e+t)}getSelectionClass(e,t){return this.question.responseId===this.util.hashCode(e+t)?"btn-primary":"btn-light"}}return e.\u0275fac=function(t){return new(t||e)(Ao(ig),Ao(iv),Ao(Jf),Ao(Km))},e.\u0275cmp=$e({type:e,selectors:[["","app-question-template",""]],viewQuery:function(e,t){if(1&e&&Kl(cv,1),2&e){let e;Ql(e=Gl())&&(t.siModal=e.first)}},inputs:{question:"question",index:"index"},attrs:uv,decls:6,vars:2,consts:[[1,"mb-4",3,"ngSwitch"],[4,"ngIf"],["whyWeAskTemplate",""],["si",""],["role","list","class","list-group my-3","radiogroup","",4,"ngSwitchDefault"],[4,"ngSwitchCase"],["class","my-5",4,"ngSwitchCase"],["role","list","radiogroup","",1,"list-group","my-3"],["class","list-group-item p-0","radio","",3,"tabindex","ngClass","click",4,"ngFor","ngForOf"],["radio","",1,"list-group-item","p-0",3,"tabindex","ngClass","click"],[1,"form-check"],["type","radio","hidden","",3,"id","value","checked"],[1,"form-check-label","col","p-2","pl-3","cursor-pointer",3,"for"],[1,"col-12","my-5"],[1,"h4"],[3,"id"],["radiogroup","",1,"card-deck","p-2"],["class","card shadow","radio","",3,"tabindex","click",4,"ngFor","ngForOf"],["class","cursor-pointer pt-3 text-danger",3,"click",4,"ngIf"],["radio","",1,"card","shadow",3,"tabindex","click"],[1,"card-body","btn",3,"ngClass"],[1,"card-text","text-center"],[3,"for"],[1,"cursor-pointer","pt-3","text-danger",3,"click"],[1,"row","col-12","my-5"],[1,"col-7"],[1,"col-5"],["radiogroup","",1,"card-deck"],["class","card-deck mt-3",4,"ngIf"],[1,"card-body","btn","p-2",3,"ngClass"],[1,"hidden-xs"],[1,"card-deck","mt-3"],["class","text-primary cursor-pointer",3,"click",4,"ngIf"],[1,"text-primary","cursor-pointer",3,"click"],[1,"card-deck"],[1,"input-group"],["type","text",1,"form-control",3,"id","value","change"],["input",""],[1,"input-group-append"],["class","input-group-text bg-transparent","style","border:none;",4,"ngIf"],["class","card-deck mt-2",4,"ngIf"],[1,"input-group-text","bg-transparent",2,"border","none"],[1,"card-deck","mt-2"],["radiogroup","",1,"list-group","my-3"],[1,"form-check-label","col","p-2","pl-3","cursor-pointer",3,"for","ngSwitch"],[4,"ngSwitchDefault"],[1,"my-5"],[1,"card-deck","p-2"],[1,"col"],[1,"col",3,"for"],[1,"float-right"],["type","range",1,"form-control-range","custom-range","range-bg-primary",3,"id","value","min","max","change"],["rangeSlide",""],[1,"col","text-center","mt-1"],[1,"float-left"],[1,"font-weight-bold"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(Ro(0,"div",0),Eo(1,Pv,7,5,"ng-container",1),Eo(2,Nv,11,2,"ng-template",null,2,Xl),Eo(4,Dv,11,0,"ng-template",null,3,Xl),Po()),2&e&&(Io("ngSwitch",t.question.options.template),Jr(1),Io("ngIf",!t.question.hidden))},directives:[Iu,ku,Ru,Ou,lv,xu,av,wu],styles:["div[radio][_ngcontent-%COMP%]:focus, li[radio][_ngcontent-%COMP%]:focus{outline:1px auto -webkit-focus-ring-color!important}"]}),e})();const jv=function(e){return{"d-none":e}};function Mv(e,t){if(1&e&&No(0,"div",9),2&e){const e=t.$implicit,n=t.index;Io("ngClass",Tl(3,jv,e.hidden))("question",e)("index",n)}}let Lv=(()=>{class e{constructor(e,t,n,s,r,i,o){this.applicationUserService=e,this.config=t,this.router=n,this.questionService=s,this.questionAdapterService=r,this.toastService=i,this.util=o,this.questions=[]}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>{this.applicationUser=e,e.demographic?this.questions=e.demographic:this.getQuestions()}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.demographic=this.questions,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionAnsweredSubscription,this.applicationUserSubscription)}getQuestions(){this.config.getQuestions("demographic").subscribe(e=>{let t=e.resourceItems.map(e=>{let t=this.questionAdapterService.adapt(e);return t.hidden=!1,t});e.demo.push({class:"demographic",name:"accessibility",inputText:"Would you like to turn on the accessibility features of this web site?",category:"",outputText:"",product:"screener",type:"coll",group:null,options:{template:"column-card",modal:{modalTitle:"Why do we ask if you would like to turn on the accessibility features of this web site?",modalBody:"Accessibility features allow users to utilize a screen reader or other adaptive technologies to access all information within the program. All content is identical, only the presentation format will change if \u201cyes\u201d is selected."},options:[{display:"No",value:"N"},{display:"Yes",value:"Y"}]},secondaryResponse:null});let n=e.demo.map(e=>{let t=this.questionAdapterService.adapt(e);return t.hidden=!1,t});this.questions=t.concat(n),this.applicationUser.demographic=this.questions,this.applicationUserService.update(this.applicationUser)})}back(){return()=>this.router.navigate([this.config.takeAScreener])}next(){return()=>this.router.navigate([this.config.assessment])}canNext(){return e=>{let t=this.util.questionsCompleted(this.questions);return e&&!t&&this.toastService.error("Please answer all questions before continuing."),t}}}return e.\u0275fac=function(t){return new(t||e)(Ao(rg),Ao(Km),Ao(Pf),Ao(ig),Ao(cg),Ao(Zg),Ao(Jf))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:19,vars:5,consts:[[1,"row","mb-5"],[1,"interstitial","demographics"],[1,"container","pb-5"],[1,"row"],[1,"col"],[1,"h4","font-weight-bold"],[1,"font-weight-bold"],["app-question-template","",3,"ngClass","question","index",4,"ngFor","ngForOf"],[1,"mt-2",3,"showNavigation","returnAction","canNext","nextAction"],["app-question-template","",3,"ngClass","question","index"]],template:function(e,t){1&e&&(Ro(0,"div",0),Ro(1,"div",1),ua(2,"\xa0"),Po(),Po(),Ro(3,"div",2),Ro(4,"div",3),Ro(5,"div",4),Ro(6,"h1"),ua(7,"Demographics"),Po(),Ro(8,"p",5),ua(9,"All answers are confidential."),Po(),Ro(10,"p"),ua(11," Your name and your personally identifiable information "),Ro(12,"em",6),ua(13,"will not"),Po(),ua(14," be stored or associated with your responses. "),Po(),Po(),Po(),Ro(15,"div",0),Ro(16,"div",4),Eo(17,Mv,1,5,"div",7),Po(),Po(),Po(),No(18,"app-footer",8)),2&e&&(Jr(17),Io("ngForOf",t.questions),Jr(1),Io("showNavigation",!0)("returnAction",t.back())("canNext",t.canNext())("nextAction",t.next()))},directives:[xu,ny,Fv,wu],styles:[""]}),e})();const qv=function(e){return{"d-none":e}};function Uv(e,t){if(1&e&&No(0,"div",11),2&e){const e=t.$implicit,n=t.index;Io("ngClass",Tl(3,qv,e.hidden))("question",e)("index",n)}}let Hv=(()=>{class e{constructor(e,t,n,s,r,i,o){this.config=e,this.questionAdapterService=t,this.questionService=n,this.util=s,this.router=r,this.toastService=i,this.applicationUserService=o,this.questions=[]}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>{if(this.applicationUser=e,e.product&&e.product[this.config.product]&&e.product[this.config.product].assessment){if(this.questions=e.product[this.config.product].assessment,this.config.accessibility)this.questions.forEach(e=>{e.hidden=!1});else{this.questions.forEach(e=>{e.hidden=null===e.response});let e=this.questions.find(e=>e.hidden);e&&(e.hidden=!1,this.util.scroll(5e3))}void 0===this.questionIncrementSubscription&&this.listenQuestionIncrement()}else this.getQuestions()}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.product[this.config.product].assessment=this.questions,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionIncrementSubscription,this.questionAnsweredSubscription,this.applicationUserSubscription)}getQuestions(){this.config.getQuestions().subscribe(e=>{this.questions=e.resourceItems.map(e=>this.questionAdapterService.adapt(e)),this.config.accessibility&&this.questions.forEach(e=>{e.hidden=!1}),this.applicationUser.product||(this.applicationUser.product={}),this.applicationUser.product[this.config.product]={},this.applicationUser.product[this.config.product].assessment=this.questions,this.listenQuestionIncrement(),this.questionService.nextQuestion(0),this.applicationUserService.update(this.applicationUser)})}listenQuestionIncrement(){this.questionIncrementSubscription=this.questionService.questionIncrementObservable.subscribe(e=>{if(this.progress=this.util.questionAnswered(this.questions),!this.config.accessibility){let e=this.questions.find(e=>e.hidden);e&&(e.hidden=!1,this.util.scroll(5e3))}})}getDisplayName(e){let t=tm.find(t=>t.id===e);return t?t.display:e}getInstructions(e){let t=tm.find(t=>t.id===e);return t?t.instructions:"Please answer the following questions."}get product(){return this.config.product}progressText(){return this.util.questionsCompleted(this.questions)?"All Done. Click next to continue.":`${this.progress?this.progress:0} / ${this.questions?this.questions.length:0}`}back(){return()=>this.router.navigate([this.config.startSession(this.product)])}next(){return()=>this.router.navigate([this.config.assessmentFeedback])}canNext(){return e=>{let t=this.util.questionsCompleted(this.questions);return e&&!t&&this.toastService.error("Please check for completion before continuing."),t}}}return e.\u0275fac=function(t){return new(t||e)(Ao(Km),Ao(cg),Ao(ig),Ao(Jf),Ao(Pf),Ao(Zg),Ao(rg))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:15,vars:7,consts:[[1,"interstitial"],[1,"container"],[1,"row"],[1,"col-sm-12","mt-4","mb-3"],[1,"h3","text-white",2,"text-transform","uppercase !important"],[1,"container","pb-5"],[1,"col","my-3"],[1,"row","mb-5"],[1,"col"],["app-question-template","",3,"ngClass","question","index",4,"ngFor","ngForOf"],[1,"mt-2",3,"showNavigation","canNext","returnAction","nextAction"],["app-question-template","",3,"ngClass","question","index"]],template:function(e,t){1&e&&(Ro(0,"div",0),Ro(1,"div",1),Ro(2,"div",2),Ro(3,"div",3),Ro(4,"h1",4),ua(5),Po(),Po(),Po(),Po(),Po(),Ro(6,"div",5),Ro(7,"div",2),Ro(8,"div",6),Ro(9,"h2"),ua(10),Po(),Po(),Po(),Ro(11,"div",7),Ro(12,"div",8),Eo(13,Uv,1,5,"div",9),Po(),Po(),Po(),No(14,"app-footer",10)),2&e&&(Jr(5),da("",t.getDisplayName(t.product)," Screening"),Jr(5),ha(t.getInstructions(t.product)),Jr(3),Io("ngForOf",t.questions),Jr(1),Io("showNavigation",!0)("canNext",t.canNext())("returnAction",t.back())("nextAction",t.next()))},directives:[xu,ny,Fv,wu],styles:[""]}),e})();function $v(e,t,n,s){return new(n||(n=Promise))(function(r,i){function o(e){try{l(s.next(e))}catch(t){i(t)}}function a(e){try{l(s.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}class Bv{constructor(e){this.si=!1,this.score=e}get feedbackStatement(){return"Enter feedbackStatement in extended class"}get staticFeedback(){return"Enter staticFeedback in extended class"}get moreInfo(){return"Enter moreInfo in extended class"}get recommendationStatement(){return"Enter recommendationStatement in extended class"}get disclaimer(){return"Enter recommendationStatement in disclaimer class"}get lookingForwardText(){return"Enter lookingForwardText in disclaimer class"}get hasProblem(){return!1}get strategyAndSkill(){return[]}get learnMore(){return[]}get learnMoreOb(){return[]}get lookingForwardQuestions(){return[{model:"lf_improved_relationships",display:"Improved relationships"},{model:"lf_better_sleep",display:"Better sleep"},{model:"lf_deeper_connection",display:"Deeper connection with others"},{model:"lf_increase_comfort",display:"Increase comfort in my body"},{model:"lf_increase_confidence",display:"Increase confidence"},{model:"lf_improved_energy",display:"Improved energy"},{model:"lf_clearer_thinking",display:"Clearer thinking"},{model:"lf_healthier_thoughts",display:"Healthier thoughts"},{model:"lf_improved_health",display:"Improved general health"},{model:"lf_optimism",display:"Increased optimism"},{model:"lf_stable",display:"Feeling more stable"},{model:"lf_enhanced_joy",display:"Enhanced feeling of joy/flourishing"},{model:"lf_improved_communication",display:"Improved communication"}]}get changeFeedbackStatement(){switch(!0){case 0==this.changeResponse:case 1==this.changeResponse:return"Great, you are highly motivated to take the next step toward change. Remember, setting a specific day/time to follow-up can increase your chance of successfully following through.";case 2==this.changeResponse:return"Great, you are motivated to learn more. Please use the links and resources provided. There is help and change is possible.";case 3==this.changeResponse:return"While you are not yet ready to take your next step toward change, what you have done today is a brave start. It is important for you to know that issues like these are treatable and help is available. Please feel free to print or screenshot these resources or come back and complete another screener at a later date.";case 4==this.changeResponse:return"What you have done today by taking this screener is a brave start. Anything you do to follow up is your choice, and even the smallest changes can lead to large differences in your well-being. It makes sense that you are unsure about how to go forward. It is important for you to know that issues like these are treatable and help is available. Please feel free to print or screenshot these resources or come back and complete another screener at a later date."}}get nextSteps(){return{inputText:"How ready are you to follow up on your results? (Please select one)",class:"screener",name:"chg_ready",options:{template:"column",options:[{display:"I plan to follow-up in the next day or 2",value:0},{display:"I plan to follow-up in the next week",value:1},{display:"I'd like to explore on my own first",value:2},{display:"I'm not ready yet",value:3},{display:"I'm unsure",value:4}]}}}}class Vv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=4:return"Your responses do not suggest you are coping with depression.";case this.score<=9:return"Your responses indicate some features of depression.";case this.score<=14:return"Your responses indicate some features of moderate depression.";case this.score<=19:return"Your responses are consistent with people coping with depression.";default:return"Your responses are consistent with people coping with severe depression."}}get recommendationStatement(){switch(!0){case this.score<=4:return"If your experience makes you feel that this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";case this.score<=9:case this.score<=14:return"You should remain mindful of your mood and consider speaking with a professional if you are concerned about your well-being or safety, or if your mood worsens.";case this.score<=19:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood worsens.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood worsens.\n\nIf you are considering suicide, concerned about your safety, or the safety of someone else, there is help. Please call the National Suicide Hotline at 800-273-8255, call 911, or go to your nearest hospital."}}get staticFeedback(){return"Behavioral health issues such as depression are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"SI Trigger: Dube P, Kroenke K, Bair MJ, Theobald D, Williams L. The P4 screener: a brief measure for assessing potential suicidal risk. J Clin Psychiatry Primary Care Companion 2010 (in press). [Algorithm for following up on positive responses to 9th item of PHQ-9]\n\n Depression feedback source: Kroenke K, Spitzer RL, Psychiatric Annals 2002;32:509-521 "}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."},{title:"Feel Good Song",desc:"Listen to a song that makes you feel good, that makes you want to move or dance, or that reminds you of a good time in your life. Be mindful: listen closely and experience the music."},{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."}]}get learnMore(){return["https://www.nimh.nih.gov/sites/default/files/documents/health/publications/depression/depression.pdf","https://www.nami.org/NAMI/media/NAMI-Media/Images/FactSheets/Depression-FS.pdf"]}get learnMoreOb(){return[{title:"What is Depression?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/sites/default/files/documents/health/publications/depression/depression.pdf"},{title:"Depression Fact Sheet",icon:"icon_pdf",url:"https://www.nami.org/NAMI/media/NAMI-Media/Images/FactSheets/Depression-FS.pdf"}]}get lookingForwardText(){return"What would you look forward to if your mood improved?"}}class zv extends Bv{constructor(e){super(e),this.condition="anxiety"}get feedbackStatement(){switch(!0){case this.score<=4:return"Your responses are consistent with minimal anxiety.";case this.score<=9:return"Your responses suggest a mild level of anxiety.";case this.score<=14:return"Your responses suggest a moderate level of anxiety.";default:return"Your responses suggest a high level of anxiety."}}get recommendationStatement(){switch(!0){case this.score<=4:return"If your experience makes you feel otherwise, you may consider speaking to a professional to consider other explanations for the way you are feeling.";case this.score<=9:case this.score<=14:return"You should remain mindful of your mood and consider speaking with a professional if you are concerned about your anxiety or wish to make a change in the way you are feeling.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety."}}get staticFeedback(){return"Anxiety is the most commonly reported mental health diagnosis in college students, and its effects can be significant for some. Anxiety can impact concentration, memory formation, attention, and even \u201cexecutive functioning\u201d such as planning and decision-making.\n\nBehavioral health issues such as anxiety are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"GAD-7 Anxiety Severity. This is calculated by assigning scores of 0, 1, 2, and 3, to the response\n categories of \u2015not at all, \u2015several days, \u2015more than half the days, and \u2015nearly every day, respectively.\n GAD-7 total score for the seven items ranges from 0 to 21. Scores of 5, 10, and 15 represent cutpoints\n for mild, moderate, and severe anxiety, respectively. Though designed primarily as a screening and severity\n measure for generalized anxiety disorder, the GAD-7 also has moderately good operating characteristics for\n three other common anxiety disorders \u2013 panic disorder, social anxiety disorder, and post-traumatic stress\n disorder. When screening for anxiety disorders, a recommended cutpoint for further evaluation is a score\n of 10 or greater."}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Breathe",desc:"Practice deep, focused breathing. Breathe in for 4 counts, hold for 2 counts and release for 4 counts. Continue for 5 minutes. Focus breathing relaxes your heart rate and combats anxiety."},{title:"Reduce Caffeine",desc:"Pay attention to your diet and see if you are drinking a lot of high-caffeine and/or high-sugar drinks like coffee and soft-drinks. Reduce your caffeine intake and eliminate those drinks a least 4 hours before bed."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.nimh.nih.gov/sites/default/files/documents/health/publications/generalized-anxiety-disorder-gad/generalized_anxiety_disorder.pdf"]}get learnMoreOb(){return[{title:"Generalized Anxiety Disorder",icon:"icon_pdf",url:"https://www.nimh.nih.gov/sites/default/files/documents/health/publications/generalized-anxiety-disorder-gad/generalized_anxiety_disorder.pdf"}]}get lookingForwardText(){return"What would you look forward to if your level of anxiety changed?"}}class Wv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=7:return"Your responses are consistent with a \u201clow risk\u201d for alcohol misuse. ";case this.score<=14:return"Your responses are consistent with \u201crisky\u201d or \u201chazardous\u201d alcohol misuse.";default:return"Your responses are consistent with \u201charmful\u201d alcohol misuse and alcohol dependence."}}get recommendationStatement(){switch(!0){case this.score<=7:return"It is not likely that you are currently experiencing negative consequences associated with alcohol use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=14:return"It is likely that your level of alcohol use is putting you at risk for physical, emotional, and/or social consequences. Long-term alcohol misuse can cause diseases of the liver, brain, heart, and other organs. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of alcohol use is putting you at risk for physical, emotional, and/or social consequences. Long-term alcohol misuse can cause lead to diseases of the liver, brain, heart, and other organs. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>7}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.niaaa.nih.gov/sites/default/files/publications/Alcohol_Use_Disorder.pdf"]}get learnMoreOb(){return[{title:"Understanding Alcohol Use Disorder",icon:"icon_pdf",url:"https://www.niaaa.nih.gov/sites/default/files/publications/Alcohol_Use_Disorder.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your alcohol use?"}}class Qv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<20:return"Your responses are not consistent with an eating disorder.";default:return"Your responses indicate you might have concerns regarding body weight, body shape, and/or eating."}}get recommendationStatement(){switch(!0){case this.score<20:return"You may also want to consider if you have engaged in the following behaviors for weight control: binge-eating, self-induced vomiting, or using laxatives to control your weight. If so, then you might have problematic eating behaviors and consultation with a counselor could be helpful.";default:return"You could benefit from seeking help from a mental health professional or physician who has experience working with eating disorders. While completing a screening like this one is a good first step, only a qualified health professional can provide you with an accurate diagnosis."}}get staticFeedback(){return"Behavioral health issues such as eating disorders are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>19}get strategyAndSkill(){return[{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Feel Good Song",desc:"Listen to a song that makes you feel good, that makes you want to move or dance, or that reminds you of a good time in your life. Be mindful: listen closely and experience the music."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.nimh.nih.gov/sites/default/files/documents/health/publications/eating-disorders/eating-disorders-what-you-need-to-know.pdf"]}get learnMoreOb(){return[{title:"Eating Disorders: About More Than Food",icon:"icon_pdf",url:"https://www.nimh.nih.gov/sites/default/files/documents/health/publications/eating-disorders/eating-disorders-what-you-need-to-know.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your relationship with food?"}}class Kv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=0:return"Your responses indicate you are not at risk of bipolar disorder.";default:return"Your responses indicate you are at risk of bipolar disorder."}}get recommendationStatement(){switch(!0){case this.score<=0:return"If your experience makes you feel this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";default:return'Bipolar disorder (sometimes called \u201cmanic depression\u201d) is a serious mental health condition that causes disruptions in mood, sleep, thinking, energy, and behavior. It can often lead to serious consequences for the affected person and those around them. People who develop a Bipolar disorder often first show signs of the disorder between the ages of 18 and 23.\n\nIt is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood swings widely between the "highs" and the "lows."'}}get staticFeedback(){return"Behavioral health issues such as Bipolar Spectrum Disorders are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>0}get strategyAndSkill(){return[{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."},{title:"Make it Routine",desc:"Develop a routine and monitor your mood daily. Having a routine can help keep you organized and reduce stress. You can also take note of when you are breaking your routine, or if your mood starts to change significantly."},{title:"Sweat",desc:"Physical exercise not only strengthens your body, it strengthens your mind. Regular exercise can help improve memory and learning and help stabilize your mood by combating depression."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/bipolar-disorder/index.shtml","https://www.nimh.nih.gov/sites/default/files/health/publications/bipolar-disorder/bipolar-disorder_0.pdf"]}get learnMoreOb(){return[{title:"What is Bipolar Disorder?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/sites/default/files/health/publications/bipolar-disorder/bipolar-disorder_0.pdf"},{title:"Bipolar Disorder Facts",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/bipolar-disorder/index.shtml"}]}get lookingForwardText(){return"What would you look forward to if your mood was more stable?"}}class Gv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=7:return"Your responses are consistent with a \u201clow risk\u201d for cannabis misuse.";case this.score<=11:return"Your responses are consistent with \u201crisky\u201d or \u201chazardous\u201d cannabis misuse.";default:return"Your responses are consistent with \u201charmful\u201d cannabis misuse and cannabis dependence."}}get recommendationStatement(){switch(!0){case this.score<=7:return"It is not likely that you are currently experiencing negative consequences associated with cannabis use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=11:return"It is likely that your level of cannabis use is putting you at increased risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of cannabis use is putting you at increased risk for negative physical, emotional, and/or social consequences.\n\nLong-term cannabis misuse can lead to impairment of brain functions like learning and memory, and have negative physical effects like breathing problems, increased heart rate, and cycles of nausea and vomiting. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>7}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://nida.nih.gov/sites/default/files/parents_mj_brochure_2016.pdf"]}get learnMoreOb(){return[{title:"Cannabis Drug Facts",icon:"icon_pdf",url:"https://nida.nih.gov/sites/default/files/parents_mj_brochure_2016.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your cannabis use?"}}class Zv extends Bv{constructor(e,t){super(e),this.questions=t,console.log("this.questions",this.questions)}get feedbackStatement(){switch(!0){case this.score<=3:return`Your responses indicated you are low risk of health and other problems from your current pattern of use.${this.injection()}`;case this.score<=26:return`Your responses indicated you are at risk of health and other problems from your current pattern of use.${this.injection()}`;default:return`Your responses indicate you are at high risk of experiencing severe problems (health, social, financial, legal, and/or relationship problems) as a result of your current pattern of use and are likely to be dependent.${this.injection()}`}}get recommendationStatement(){switch(!0){case this.score<=3:return"It is not likely that you are currently experiencing negative consequences associated with opioid use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=26:return"It is likely that your level of opioid use is putting you at increased risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of opioid use is putting you at high risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>3}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.cdc.gov/overdose-prevention/about/prescription-opioids.html"]}get learnMoreOb(){return[{title:"CDC: Opioid Information",icon:"icon_pdf",url:"https://www.cdc.gov/overdose-prevention/about/prescription-opioids.html"}]}injection(){return parseInt(this.questions[3].response)>0?"\n\nMoreover, persons who have injected drugs more than an average of 4 times per month in the last 3 months are also likely to be at high risk.":""}get lookingForwardText(){return"What would you look forward to if you made a change in your opioid use?"}}class Yv extends Bv{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=13:return"Your responses are not consistent with post-traumatic stress disorder.";default:return"Your responses are consistent with post-traumatic stress disorder."}}get recommendationStatement(){switch(!0){case this.score<=13:return"If your experience makes you feel this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or the safety of others. While completing a screening like this one is a good first step, only a qualified health professional can provide you with an accurate diagnosis."}}get staticFeedback(){return"Behavioral health issues such as Post-Traumatic Stress Disorder are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"Scores from each item are summed to attain a final score. The maximum score is 32 and represents the most severe symptom state, while a cutoff score of 14 has been suggested by authors to warrant further assessment using a structured interview for PTSD."}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."},{title:"Connect",desc:"Connect with family and friends, and if possible, let them know how you\u2019re feeling. Social isolation can increase feelings of depression and helplessness. Also, having someone to talk to can help you get through stressful situations."},{title:"Sweat",desc:"Physical exercise not only strengthens your body, it strengthens your mind. Regular exercise can help improve memory and learning and help stabilize your mood by combating depression."}]}get learnMore(){return["https://www.nimh.nih.gov/sites/default/files/documents/health/publications/post-traumatic-stress-disorder-ptsd/post-traumatic-stress-disorder_1.pdf"]}get learnMoreOb(){return[{title:"What is Post-Traumatic Stress Disorder?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/sites/default/files/documents/health/publications/post-traumatic-stress-disorder-ptsd/post-traumatic-stress-disorder_1.pdf"}]}get lookingForwardText(){return"What would you look forward to if your symptoms changed?"}}let Jv=(()=>{class e{constructor(e){this.http=e}getResources(e,t){return this.http.get(`${Xf}/screener/r/${e}/${t}`)}}return e.\u0275fac=function(t){return new(t||e)(ds(Om))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Xv{constructor(e,t,n){this.name=e,this.url=t,this.tel=n}}let eb=(()=>{class e{constructor(){}adapt(e){return new Xv(e.dept,e.url,e.tel)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tb=(()=>{class e{constructor(e,t,n){this.resourcesService=e,this.resourceAdapterService=t,this.config=n}score(e){if(e&&e.length>0)return this[e[0].qClass](e);console.error("questions param must be valid")}audit(e){return $v(this,void 0,void 0,function*(){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"audit").subscribe(n=>{let s=new Wv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})})}anxiety(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"anxiety").subscribe(n=>{let s=new zv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}eating(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"eating").subscribe(n=>{let s=new Qv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}bipolar(e){let t=e.slice(0,13).reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0),n=parseInt(e[14].response),s=parseInt(e[15].response)?1:0,r=t>=7&&n>0&&s>=1?1:0;return new Promise(e=>{this.getResources(this.config.campus.campusId,"bipolar").subscribe(t=>{let n=new Kv(r);n.resources=t.map(e=>this.resourceAdapterService.adapt(e)),e(n)})})}depression(e){return $v(this,void 0,void 0,function*(){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0),n=e.filter(e=>"depression_9"===e.name);return new Promise(e=>{this.getResources(this.config.campus.campusId,"depression").subscribe(s=>{let r=new Vv(t);r.resources=s.map(e=>this.resourceAdapterService.adapt(e)),n&&n.length>0&&(r.si=parseInt(n[0].response)>0),e(r)})})})}cudit(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"cudit").subscribe(n=>{let s=new Gv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}opioid(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(n=>{this.getResources(this.config.campus.campusId,"opioid").subscribe(s=>{let r=new Zv(t,e);r.resources=s.map(e=>this.resourceAdapterService.adapt(e)),n(r)})})}ptsd(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"ptsd").subscribe(n=>{let s=new Yv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}getResources(e,t){return this.resourcesService.getResources(e,t)}}return e.\u0275fac=function(t){return new(t||e)(ds(Jv),ds(eb),ds(Km))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nb=(()=>{class e{transform(e){{let t,n,s,r=e.toString().trim().replace(/^\+|-|\(|\)/g,"");if(r.match(/[^0-9]/))return e;switch(r.length){case 10:t=1,n=r.slice(0,3),s=r.slice(3);break;case 11:t=r[0],n=r.slice(1,4),s=r.slice(4);break;case 12:t=r.slice(0,3),n=r.slice(3,5),s=r.slice(5);break;default:return e}return 1==t&&(t=""),s=s.slice(0,3)+"-"+s.slice(3),(t+" ("+n+") "+s).trim()}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ge({name:"phone",type:e,pure:!0}),e})();const sb=["page"];function rb(e,t){1&e&&jo(0)}function ib(e,t){1&e&&jo(0)}function ob(e,t){1&e&&jo(0)}function ab(e,t){1&e&&No(0,"div")}function lb(e,t){1&e&&jo(0)}function cb(e,t){if(1&e){const e=Mo();Ro(0,"div",14),Ro(1,"div",18),Ro(2,"button",19),qo("click",function(){return Dt(e),$o(2).printFeedback()}),ua(3,"Print Feedback"),Po(),Po(),Po()}}function ub(e,t){if(1&e&&(Ro(0,"div",13),Ro(1,"div",14),Ro(2,"div",15),Ro(3,"h1",16),ua(4,"Results"),Po(),Po(),Po(),Eo(5,cb,4,0,"div",17),Po()),2&e){const e=$o();Jr(5),Io("ngIf",e.changeModule||!(null!=e.screenerScore&&e.screenerScore.hasProblem))}}function hb(e,t){if(1&e&&(Ro(0,"div",20),Ro(1,"div",13),Ro(2,"div",14),Ro(3,"div",21),Ro(4,"p",22),ua(5),Po(),Po(),Po(),Po(),Po(),Ro(6,"div",23),Ro(7,"div",14),Ro(8,"div",24),Ro(9,"p",25),ua(10,"Recommendations:"),Po(),Ro(11,"p",26),ua(12),Po(),Po(),Po(),Ro(13,"div",14),Ro(14,"div",27),Ro(15,"p",28),ua(16),Po(),Po(),Po(),Ro(17,"div",14),Ro(18,"div",21),Ro(19,"p",29),ua(20),Po(),Po(),Po(),Po()),2&e){const e=$o();Jr(5),ha(null==e.screenerScore?null:e.screenerScore.feedbackStatement),Jr(7),ha(null==e.screenerScore?null:e.screenerScore.recommendationStatement),Jr(4),ha(null==e.screenerScore?null:e.screenerScore.staticFeedback),Jr(4),ha(null==e.screenerScore?null:e.screenerScore.disclaimer)}}function db(e,t){if(1&e&&(Ro(0,"div",20),Ro(1,"div",13),Ro(2,"div",14),Ro(3,"div",21),Ro(4,"p",22),ua(5),Po(),Po(),Po(),Po(),Po()),2&e){const e=$o();Jr(5),ha(null==e.screenerScore?null:e.screenerScore.changeFeedbackStatement)}}const pb=function(e){return{"btn-primary":e}};function fb(e,t){if(1&e){const e=Mo();Ro(0,"div",36),Ro(1,"div",37),Ro(2,"button",38),qo("click",function(){Dt(e);const n=t.$implicit;return $o(2).lfClick(n.model)}),ua(3),Po(),Po(),Po()}if(2&e){const e=t.$implicit,n=$o(2);Jr(2),Bo("id",e.model),Io("ngClass",Tl(4,pb,n.lfIncludes(e.model))),Co("aria-pressed",n.lfIncludes(e.model)),Jr(1),ha(e.display)}}function mb(e,t){if(1&e&&(Ro(0,"div",23),Ro(1,"div",14),Ro(2,"div",30),Ro(3,"h2",31),ua(4,"Looking Forward"),Po(),Po(),Po(),Ro(5,"div",14),Ro(6,"div",32),Ro(7,"h4",33),ua(8),Po(),Po(),Po(),Ro(9,"div",34),Eo(10,fb,4,6,"div",35),Po(),Po()),2&e){const e=$o();Jr(8),da("",null==e.screenerScore?null:e.screenerScore.lookingForwardText," (Please select at least one response)"),Jr(2),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.lookingForwardQuestions)}}function gb(e,t){if(1&e&&(Ro(0,"div",42),Ro(1,"div",43),Ro(2,"div",44),No(3,"i",45),Po(),Ro(4,"div",46),Ro(5,"h3",47),ua(6),Po(),Ro(7,"p",48),ua(8),Po(),Po(),Po(),Po()),2&e){const e=t.$implicit;Jr(6),da(" ",e.title," "),Jr(2),ha(e.desc)}}function yb(e,t){if(1&e&&(Ro(0,"div",23),Ro(1,"div",14),Ro(2,"div",30),Ro(3,"h2",31),ua(4,"Strategies and Skills"),Po(),Po(),Po(),Ro(5,"div",14),Ro(6,"div",39),Ro(7,"p",28),ua(8,"Regardless of your screener results, you can always take a moment to improve your peace of mind and well-being by practicing these strategies and skills. "),Po(),Po(),Po(),Ro(9,"div",40),Eo(10,gb,9,2,"div",41),Po(),Po()),2&e){const e=$o();Jr(10),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.strategyAndSkill)}}function vb(e,t){1&e&&No(0,"div",56),2&e&&Io("question",$o(2).changeQuestion)}function bb(e,t){if(1&e&&(Ro(0,"div",23),Ro(1,"section"),Ro(2,"div",13),Ro(3,"div",49),Eo(4,vb,1,1,"div",50),Po(),Po(),Po(),Ro(5,"section",51),Ro(6,"div",52),Ro(7,"div",53),No(8,"img",54),Po(),Po(),Po(),Po(),No(9,"app-footer",55)),2&e){const e=$o();Jr(4),Io("ngIf",e.changeQuestion),Jr(4),Io("src",e.asset.echeckupLogo,nr),Jr(1),Io("showNavigation",!0)("returnAction",e.back())("canNext",e.canNext())("nextAction",e.next())}}function _b(e,t){if(1&e&&(Ro(0,"p",66),No(1,"i",67),ua(2," \xa0 "),Ro(3,"a",68),ua(4),Po(),Po()),2&e){const e=$o().$implicit;Jr(3),Bo("href",e.url,nr),Jr(1),ha(e.url)}}function wb(e,t){if(1&e&&(Ro(0,"p",66),No(1,"i",69),ua(2," \xa0 "),Ro(3,"a",70),ua(4),Ol(5,"phone"),Po(),Po()),2&e){const e=$o().$implicit;Jr(3),Vo("href","tel:",e.tel,"",nr),Jr(1),ha(Rl(5,2,e.tel))}}function Sb(e,t){if(1&e&&(Ro(0,"div",62),Ro(1,"div",63),No(2,"p",64),Eo(3,_b,5,2,"p",65),Eo(4,wb,6,4,"p",65),Po(),Po()),2&e){const e=t.$implicit;Jr(2),Io("innerHTML",e.name,tr),Jr(1),Io("ngIf",e.url),Jr(1),Io("ngIf",e.tel)}}function xb(e,t){if(1&e&&(Ro(0,"div",71),Ro(1,"div",72),cn(),Ro(2,"svg",73),No(3,"use"),Po(),un(),Ro(4,"a",74),ua(5),Po(),Po(),Po()),2&e){const e=t.$implicit;Jr(3),Co("href","assets/img/icons.svg#"+e.icon),Jr(1),Bo("href",e.url,nr),Jr(1),ha(e.title)}}function Cb(e,t){if(1&e&&(Ro(0,"section"),Ro(1,"div",57),Ro(2,"div",13),Ro(3,"div",14),Ro(4,"div",15),Ro(5,"h2",31),ua(6,"Resources"),Po(),Po(),Po(),Ro(7,"div",14),Eo(8,Sb,5,3,"div",58),Po(),Ro(9,"div",14),Ro(10,"div",15),Ro(11,"h2",31),ua(12,"Learn More"),Po(),Po(),Po(),Ro(13,"div",59),Ro(14,"div",60),Ro(15,"div",14),Eo(16,xb,6,3,"div",61),Po(),Po(),Po(),Po(),Po(),Po()),2&e){const e=$o();Jr(8),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.resources),Jr(8),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.learnMoreOb)}}function kb(e,t){if(1&e&&(Ro(0,"p",66),No(1,"i",67),ua(2," \xa0 "),Ro(3,"a",68),ua(4),Po(),Po()),2&e){const e=$o().$implicit;Jr(3),Bo("href",e.url,nr),Jr(1),ha(e.url)}}function Eb(e,t){if(1&e&&(Ro(0,"p",66),No(1,"i",69),ua(2," \xa0 "),Ro(3,"a",70),ua(4),Ol(5,"phone"),Po(),Po()),2&e){const e=$o().$implicit;Jr(3),Vo("href","tel:",e.tel,"",nr),Jr(1),ha(Rl(5,2,e.tel))}}function Tb(e,t){if(1&e&&(Ro(0,"div",62),Ro(1,"div",63),No(2,"p",64),Eo(3,kb,5,2,"p",65),Eo(4,Eb,6,4,"p",65),Po(),Po()),2&e){const e=t.$implicit;Jr(2),Io("innerHTML",e.name,tr),Jr(1),Io("ngIf",e.url),Jr(1),Io("ngIf",e.tel)}}function Ab(e,t){if(1&e&&(Ro(0,"div",71),Ro(1,"div",72),Ro(2,"a",74),cn(),Ro(3,"svg",73),No(4,"use"),Po(),ua(5),Po(),Po(),Po()),2&e){const e=t.$implicit;Jr(2),Bo("href",e.url,nr),Jr(2),Co("href","assets/img/icons.svg#"+e.icon),Jr(1),da(" ",e.title,"")}}function Ib(e,t){if(1&e){const e=Mo();Ro(0,"section"),Ro(1,"div",57),Ro(2,"div",13),Ro(3,"div",14),Ro(4,"div",15),Ro(5,"h2",31),ua(6,"Resources"),Po(),Po(),Po(),Ro(7,"div",14),Eo(8,Tb,5,3,"div",58),Po(),Ro(9,"div",14),Ro(10,"div",18),Ro(11,"button",19),qo("click",function(){return Dt(e),$o(2).printFeedback()}),ua(12,"Print Feedback"),Po(),Po(),Po(),Ro(13,"div",14),Ro(14,"div",15),Ro(15,"h2",31),ua(16,"Learn More"),Po(),Po(),Po(),Ro(17,"div",59),Ro(18,"div",60),Ro(19,"div",14),Eo(20,Ab,6,3,"div",61),Po(),Po(),Po(),Po(),Po(),Po()}if(2&e){const e=$o(2);Jr(8),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.resources),Jr(12),Io("ngForOf",null==e.screenerScore?null:e.screenerScore.learnMoreOb)}}function Ob(e,t){if(1&e){const e=Mo();Eo(0,Ib,21,2,"section",75),Ro(1,"section",76),Ro(2,"div",14),Ro(3,"div",77),ua(4,"Thank you"),Po(),Po(),Ro(5,"div",14),Ro(6,"div",78),Ro(7,"p",79),ua(8,"Thank you for completing your screening. We hope you found it helpful. If you would like to discuss your results further please follow up with the resources provided above. "),Po(),Po(),Po(),Ro(9,"div",14),Ro(10,"div",18),Ro(11,"button",19),qo("click",function(){return Dt(e),$o().takeAnotherScreener()}),ua(12,"TAKE ANOTHER SCREENER"),Po(),Po(),Po(),Po(),Ro(13,"section",51),Ro(14,"div",80),Ro(15,"div",53),No(16,"img",54),Po(),Po(),Po()}if(2&e){const e=$o();Io("ngIf",!e.changeModule),Jr(16),Io("src",e.asset.echeckupLogo,nr)}}let Rb=(()=>{class e{constructor(e,t,n,s,r,i,o,a,l){this.screenerScoring=e,this.questionService=t,this.questionAdapterService=n,this.router=s,this.route=r,this.config=i,this.util=o,this.applicationUserService=a,this.toastService=l,this.asset=em,this.lf=[],this.changeModule=this.route.snapshot.data.change,this.print=this.route.snapshot.data.print,this.fetch=this.route.snapshot.data.fetch}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>$v(this,void 0,void 0,function*(){this.applicationUser=e,ph(e).pipe(U(this.fetchBlock.bind(this)),U(this.lookForwardBlock.bind(this)),U(this.screenerScoreBlock.bind(this))).subscribe()}),e=>{console.error("AssessmentFeedbackComponent",e)}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.product[this.config.product].change=this.changeQuestion,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionAnsweredSubscription,this.applicationUserSubscription)}fetchBlock(){return new v(e=>{this.fetch?this.config.getQuestions().subscribe(t=>{this.applicationUser.product={},this.applicationUser.product[this.config.product]={},this.applicationUser.product[this.config.product].assessment=t.resourceItems.map(e=>this.questionAdapterService.adapt(e));let n=this.fetch[this.config.product];this.applicationUser.product[this.config.product].assessment.forEach(e=>{e.response=n[e.name]}),e.next(),e.complete()}):(e.next(),e.complete())})}lookForwardBlock(){return new v(e=>{this.applicationUser.product[this.config.product].lookForward&&(this.lf=this.applicationUser.product[this.config.product].lookForward),e.next(),e.complete()})}screenerScoreBlock(){return new v(e=>{!this.fetch&&this.screenerScore||this.screenerScoring.score(this.applicationUser.product[this.config.product].assessment).then(e=>{this.screenerScore=e,this.applicationUser.product[this.config.product].change?(this.changeQuestion=this.applicationUser.product[this.config.product].change,this.screenerScore.changeResponse=parseInt(this.applicationUser.product[this.config.product].change.response)):(this.changeQuestion=this.questionAdapterService.adapt(this.screenerScore.nextSteps),this.changeQuestion.hidden=!1)}),e.next(),e.complete()})}lfClick(e){this.lf.includes(e)?this.lf=this.lf.filter(t=>t!==e):this.lf.push(e),this.applicationUser.product[this.config.product].lookForward=this.lf,this.applicationUserService.update(this.applicationUser)}lfIncludes(e){return this.lf.includes(e)}printFeedback(){this.config.print(this.applicationUser.uid)}takeAnotherScreener(){this.router.navigate([this.config.takeAScreener],{state:{takeAnotherScreener:!0}})}back(){return()=>this.router.navigate([this.config.assessment])}next(){return()=>this.router.navigate([this.config.changeQuestionFeedback])}canNext(){return e=>{let t=!!this.changeQuestion&&this.util.questionsCompleted([this.changeQuestion]);return e&&0==this.lf.length?this.toastService.error("Please select at least one thing to look forward to."):e&&!t&&this.toastService.error("Please check for completion before continuing."),t&&this.lf.length>0}}}return e.\u0275fac=function(t){return new(t||e)(Ao(tb),Ao(ig),Ao(cg),Ao(Pf),Ao(hp),Ao(Km),Ao(Jf),Ao(rg),Ao(Zg))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Kl(sb,1),2&e){let e;Ql(e=Gl())&&(t.printView=e.first)}},decls:25,vars:6,consts:[["id","basdf"],["page",""],[1,"jumbotron","mb-0","bg-white","results-jumbo","py-0"],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["header",""],["assessmentFeedback",""],["changeFeedback",""],["lookForwardAssessment",""],["strategyAndSkill",""],["changeAssessment",""],["resources",""],["closing",""],[1,"container"],[1,"row"],[1,"col-12","text-center","mx-auto","pt-5"],[1,"justlovely","display-xl"],["class","row",4,"ngIf"],[1,"col","text-center","mb-5"],[1,"btn","screener-btn",3,"click"],[1,"interstitial"],[1,"col-sm-10","mx-auto","mt-4","mb-3"],[1,"font-weight-bold","text-white","lead",2,"white-space","pre-wrap"],[1,"container",2,"background","rgba(255,255,255,0.75)"],[1,"col-sm-10","mx-auto","mt-3"],[1,"font-weight-bold","text-purple","lead","pl-3"],[1,"lead","pl-3","font-weight-bold"],[1,"col-sm-10","mx-auto","mt-4","mb-3","static-feedback"],[1,"lead","p-3",2,"white-space","pre-wrap"],[1,"text-small","font-weight-bold",2,"white-space","pre-wrap"],[1,"col-sm-10","mx-auto","text-center","pt-5"],[1,"justlovely","display-3"],[1,"col-md-8","col-sm-12","text-center","mx-auto","pt-5"],[1,"px-3","mb-0"],[1,"row","pb-5"],["class","col-lg-4 col-md-6 col-sm-12",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-12"],[1,"card","shadow","lf-option"],["type","button",1,"card-body","btn",3,"id","ngClass","click"],[1,"col-sm-10","mx-auto"],[1,"strategies_container"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"col-md-4"],[1,"mb-5","purple-bg","text-white","text-center"],[1,"round","round-md","purple-outline","roboto",2,"margin-top","-50px"],[1,"fas","fa-chart-bar"],[1,"card-body"],[1,"card-title","justlovely","text-center","display-4"],[1,"card-text"],["id","changeQuestion",1,"row","mb-5"],["class","mx-auto","app-question-template","",3,"question",4,"ngIf"],[1,"bg-white",2,"margin-bottom","100px"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"],[1,"mt-2",3,"showNavigation","returnAction","canNext","nextAction"],["app-question-template","",1,"mx-auto",3,"question"],[1,"interstitial","resources"],["class","col-md-6 col-lg-4",4,"ngFor","ngForOf"],[1,"row","text-white"],[1,"col","mx-auto"],["class","col-md-3 col-sm-4 col-xs-6 mx-auto",4,"ngFor","ngForOf"],[1,"col-md-6","col-lg-4"],[1,"card-body","bg-transparent"],[1,"font-weight-bold","mb-1",3,"innerHTML"],["class","mb-1",4,"ngIf"],[1,"mb-1"],[1,"fas","fa-external-link","ml-2"],["target","_blank",3,"href"],[1,"fas","fa-phone-square","ml-2"],[3,"href"],[1,"col-md-3","col-sm-4","col-xs-6","mx-auto"],[1,"card-body","text-center"],["role","presentation","alt","Document Icon",1,"img-responsive",2,"width","100%","height","3em !important","margin","0 0 1em 0","fill","white"],["target","_blank",1,"font-weight-bold","mb-1","text-dark",3,"href"],[4,"ngIf"],[1,"jumbotron","mb-0","bg-white","pt-0","px-0","mt-1","mb-0","pb-0"],[1,"col","mx-auto","p-2","display-3","justlovely","text-center"],[1,"col-lg-6","col-md-7","col-sm-9","col-xs-12","mx-auto","mb-5",2,"border-top","1px solid white"],[1,"font-weight-bold","mb-1","p-3"],[1,"container","text-center"]],template:function(e,t){if(1&e&&(Ro(0,"section",0,1),Ro(2,"div"),Ro(3,"section",2),Eo(4,rb,1,0,"ng-container",3),Eo(5,ib,1,0,"ng-container",3),Eo(6,ob,1,0,"ng-container",3),Eo(7,ab,1,0,"div",4),Po(),Eo(8,lb,1,0,"ng-container",3),Po(),Po(),Eo(9,ub,6,1,"ng-template",null,5,Xl),Eo(11,hb,21,4,"ng-template",null,6,Xl),Eo(13,db,6,1,"ng-template",null,7,Xl),Eo(15,mb,11,2,"ng-template",null,8,Xl),Eo(17,yb,11,1,"ng-template",null,9,Xl),Eo(19,bb,10,6,"ng-template",null,10,Xl),Eo(21,Cb,17,2,"ng-template",null,11,Xl),Eo(23,Ob,17,2,"ng-template",null,12,Xl)),2&e){const e=To(10),n=To(12),s=To(14),r=To(16),i=To(18),o=To(20),a=To(22),l=To(24);Jr(4),Io("ngTemplateOutlet",e),Jr(1),Io("ngTemplateOutlet",t.changeModule?s:n),Jr(1),Io("ngTemplateOutlet",t.changeModule||null==t.screenerScore||!t.screenerScore.hasProblem?i:r),Jr(1),Io("ngIf",!t.changeModule)("ngIfElse",a),Jr(1),Io("ngTemplateOutlet",t.changeModule||null==t.screenerScore||!t.screenerScore.hasProblem?l:o)}},directives:[Pu,ku,xu,wu,ny,Fv],pipes:[nb],styles:[".jumbotron[_ngcontent-%COMP%]{padding:0}.strategies_container[_ngcontent-%COMP%]{margin-right:-60px;margin-left:-60px;margin-top:60px;display:flex}@media screen and (max-width:768px){.strategies_container[_ngcontent-%COMP%]{display:block;margin-right:0;margin-left:0}.strategies_container[_ngcontent-%COMP%] > .col-md-4[_ngcontent-%COMP%]{margin-top:4em}}"]}),e})();class Pb{constructor(){this.uid=this.createUUID()}createUUID(){let e=new Date;return`${e.getFullYear().toString().substr(-2)}xxxxxxxxx-xxxxxx`.replace(/[x]/g,t=>{const n=(e.getTime()+16*Math.random())%16|0;return("x"===t?n:3&n|8).toString(16)})}}let Nb=(()=>{class e{constructor(e,t,n){this.route=e,this.config=t,this.applicationUserService=n}ngOnInit(){const e=this.route.snapshot.paramMap.get("product");this.config.setProduct(e);const t=sessionStorage.getItem("screenerau");if(t){let e=JSON.parse(t);this.applicationUserService.update(e)}else this.applicationUserService.update(new Pb)}}return e.\u0275fac=function(t){return new(t||e)(Ao(hp),Ao(Km),Ao(rg))},e.\u0275cmp=$e({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&No(0,"router-outlet")},directives:[Nf],encapsulation:2}),e})(),Db=(()=>{class e{constructor(e){this.config=e}canActivate(e,t){return new v(t=>{this.config.init(e.params.campusId),this.campusSubscription=this.config.campusObservable.subscribe(e=>{t.next(!0)},e=>{console.error("Campus ID failed"),t.next(!1)})})}}return e.\u0275fac=function(t){return new(t||e)(ds(Km))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Fb=(()=>{class e{constructor(e){this.config=e}canActivate(e,t){return this.config.modules.includes(e.params.product)}}return e.\u0275fac=function(t){return new(t||e)(ds(Km))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jb=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["app-four-zero-four"]],decls:2,vars:0,template:function(e,t){1&e&&(Ro(0,"p"),ua(1,"404"),Po())},styles:[""]}),e})()},{path:"screener/:campusId",component:Zm,canActivate:[Db],children:[{path:"",component:Ym},{path:"take-a-screener",component:sg},{path:":product",component:Nb,canActivate:[Fb],children:[{path:"demographic",component:Lv},{path:"assessment",component:Hv},{path:"assessment-feedback",component:Rb,data:{change:!1,print:!1}},{path:"change-question-feedback",component:Rb,data:{change:!0,print:!1}}]}]},{path:"**",redirectTo:"",pathMatch:"full"}];let Mb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({imports:[[Bf.forRoot(jb)],Bf]}),e})(),Lb=(()=>{class e{constructor(){this.title="screener"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=$e({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&No(0,"router-outlet")},directives:[Nf],styles:[""]}),e})();function qb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ub(e){switch(e.length){case 0:return new vg;case 1:return e[0];default:return new bg(e)}}function Hb(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case hg:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function $b(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&Bb(n,"start",e)));break;case"done":e.onDone(()=>s(n&&Bb(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&Bb(n,"destroy",e)))}}function Bb(e,t,n){const s=n.totalTime,r=Vb(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function Vb(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function zb(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function Wb(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Qb=(e,t)=>!1,Kb=(e,t)=>!1,Gb=(e,t,n)=>[];const Zb=qb();(Zb||"undefined"!=typeof Element)&&(Qb=(e,t)=>e.contains(t),Kb=(()=>{if(Zb||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):Kb}})(),Gb=(e,t,n)=>{let s=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let r_=(()=>{class e{validateStyleProperty(e){return Xb(e)}matchesElement(e,t){return e_(e,t)}containsElement(e,t){return t_(e,t)}query(e,t,n){return n_(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new vg(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})(),i_=(()=>{class e{}return e.NOOP=new r_,e})();const o_="ng-enter",a_="ng-leave",l_="ng-trigger",c_=".ng-trigger",u_="ng-animating",h_=".ng-animating";function d_(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:p_(parseFloat(t[1]),t[2])}function p_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function f_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=p_(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=p_(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function m_(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function g_(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else m_(e,n);return n}function y_(e,t,n){return n?t+":"+n+";":""}function v_(e){let t="";for(let n=0;n{const r=T_(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),qb()&&v_(e))}function __(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=T_(t);e.style[n]=""}),qb()&&v_(e))}function w_(e){return Array.isArray(e)?1==e.length?e[0]:pg(e):e}const S_=new RegExp("{{\\s*(.+?)\\s*}}","g");function x_(e){let t=[];if("string"==typeof e){let n;for(;n=S_.exec(e);)t.push(n[1]);S_.lastIndex=0}return t}function C_(e,t,n){const s=e.toString(),r=s.replace(S_,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),r=""),r.toString()});return r==s?e:r}function k_(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const E_=/-+([a-z0-9])/g;function T_(e){return e.replace(E_,(...e)=>e[1].toUpperCase())}function A_(e,t){return 0===e||0===t}function I_(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;rfunction(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(j_(r,o)),"<"!=i[0]||r==P_&&o==P_||t.push(j_(o,r))}(e,n,t)):n.push(e),n}const D_=new Set(["true","1"]),F_=new Set(["false","0"]);function j_(e,t){const n=D_.has(e)||F_.has(e),s=D_.has(t)||F_.has(t);return(r,i)=>{let o=e==P_||e==r,a=t==P_||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?D_.has(e):F_.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?D_.has(t):F_.has(t)),o&&a}}const M_=new RegExp("s*:selfs*,?","g");function L_(e,t,n){return new q_(e).build(t,n)}class q_{constructor(e){this._driver=e}build(e,t){const n=new U_(t);return this._resetContextStyleTimingState(n),O_(this,w_(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(H_(e)){const t=e;Object.keys(t).forEach(e=>{x_(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=k_(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=O_(this,w_(e.animation),t);return{type:1,matchers:N_(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:$_(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>O_(this,e,t)),options:$_(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=O_(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:$_(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return B_(f_(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=B_(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||f_(s,t),B_(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:fg({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=fg(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==hg?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(H_(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=x_(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(H_(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(H_(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c0&&s{const i=u>0?s==h?1:u*s:r[s],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:O_(this,w_(e.animation),t),options:$_(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:$_(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:$_(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(M_,"")),[e=e.replace(/@\*/g,c_).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,h_),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,zb(t.collectedStyles,t.currentQuerySelector,{});const o=O_(this,w_(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:$_(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:f_(e.timings,t.errors,!0);return{type:12,animation:O_(this,w_(e.animation),t),timings:n,options:null}}}class U_{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function H_(e){return!Array.isArray(e)&&"object"==typeof e}function $_(e){var t;return e?(e=m_(e)).params&&(e.params=(t=e.params)?m_(t):null):e={},e}function B_(e,t,n){return{duration:e,delay:t,easing:n}}function V_(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class z_{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const W_=new RegExp(":enter","g"),Q_=new RegExp(":leave","g");function K_(e,t,n,s,r,i={},o={},a,l,c=[]){return(new G_).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class G_{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new z_;const u=new Y_(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),O_(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[V_(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?d_(n.duration):null,i=null!=n.delay?d_(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),O_(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Z_);const e=d_(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>O_(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?d_(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),O_(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return f_(t.params?C_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?d_(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Z_);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),O_(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;O_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Z_={};class Y_{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Z_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new J_(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=d_(n.duration)),null!=n.delay&&(s.delay=d_(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=C_(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new Y_(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Z_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new X_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(W_,"."+this._enterClassName)).replace(Q_,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class J_{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new J_(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||hg,this._currentKeyframe[e]=hg}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=hg})):g_(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=C_(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:hg),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=g_(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==hg&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?k_(e.values()):[],i=t.size?k_(t.values()):[];if(n){const e=s[0],t=m_(e);e.offset=0,t.offset=1,s=[e,t]}return V_(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class X_ extends J_{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=g_(e[0],!1);a.offset=0,r.push(a);const l=g_(e[0],!1);l.offset=ew(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=g_(e[s],!1);o.offset=ew((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return V_(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function ew(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class tw{}class nw extends tw{normalizePropertyName(e,t){return T_(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(sw[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const sw=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function rw(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const iw={};class ow{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||iw,d=this.buildStyles(n,o&&o.params||iw,u),p=a&&a.params||iw,f=this.buildStyles(s,p,u),m=new Set,g=new Map,y=new Map,v="void"===s,b={params:Object.assign(Object.assign({},h),p)},_=c?[]:K_(e,t,this.ast.animation,r,i,d,f,b,l,u);let w=0;if(_.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return rw(t,this._triggerName,n,s,v,d,f,[],[],g,y,w,u);_.forEach(e=>{const n=e.element,s=zb(g,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=zb(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const S=k_(m.values());return rw(t,this._triggerName,n,s,v,d,f,_,S,g,y,w)}}class aw{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=m_(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=C_(i,s,t)),n[e]=i})}}),n}}class lw{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new aw(e.style,e.options&&e.options.params||{})}),cw(this.states,"true","1"),cw(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new ow(e,t,this.states))}),this.fallbackTransition=new ow(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function cw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const uw=new z_;class hw{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=L_(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=Hb(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=K_(this._driver,t,r,o_,a_,{},{},n,uw,s),i.forEach(e=>{const t=zb(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,hg)})});const a=Ub(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,s){const r=Vb(t,"","","");return $b(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const dw="ng-animate-queued",pw="ng-animate-disabled",fw=".ng-animate-disabled",mw=[],gw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class vw{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=m_(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const bw="void",_w=new vw(bw);class ww{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Aw(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=zb(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=zb(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Aw(e,l_),Aw(e,"ng-trigger-"+t),a[t]=_w),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new xw(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Aw(e,l_),Aw(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new vw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=_w),l.value!==bw&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r{__(e,n),b_(e,s)})}return}const c=zb(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Aw(e,dw),i.onStart(()=>{Iw(e,dw)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,c_,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,bw,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Ub(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const s=new Set;t.forEach(t=>{const r=t.name;if(s.has(r))return;s.add(r);const i=this._triggers[r].fallbackTransition,o=n[r]||_w,a=new vw(bw),l=new xw(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:i,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==gw||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Aw(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=Vb(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,$b(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Sw{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new ww(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Aw(e,pw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Iw(e,pw))}removeNode(e,t,n,s){if(Cw(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return Cw(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,c_,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,h_,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ub(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=gw,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,fw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,fw,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Ub(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new z_,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n{const n=o_+f++;p.set(t,n),e.forEach(e=>Aw(e,n))});const m=[],g=new Set,y=new Set;for(let O=0;Og.add(e)):y.add(e))}const v=new Map,b=Tw(h,Array.from(g));b.forEach((e,t)=>{const n=a_+f++;v.set(t,n),e.forEach(e=>Aw(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Iw(e,n))}),b.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>Iw(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(_.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=v.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return t.onStart(()=>__(r,f.fromStyles)),t.onDestroy(()=>b_(r,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>__(r,f.fromStyles)),t.onDestroy(()=>b_(r,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>zb(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,x=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{zb(S,t,[]).push(e),e.destroy()})});const C=m.filter(e=>Pw(e,a,l)),k=new Map;Ew(k,this.driver,y,l,hg).forEach(e=>{Pw(e,a,l)&&C.push(e)});const E=new Map;d.forEach((e,t)=>{Ew(E,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=k.get(e),n=E.get(e);k.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>b_(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(x.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>x.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,r,E,k);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Ub(t)),s.push(i)}}else __(t,o.fromStyles),i.onDestroy(()=>b_(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Ub(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O!e.destroyed);s.length?Ow(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==bw;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=zb(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}__(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new vg(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return Rw(e,t),t}((n.get(h)||mw).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),g=i.get(h),y=Hb(0,this._normalizer,0,t.keyframes,m,g),v=this._buildPlayer(t,y,f);if(t.subTimeline&&s&&u.add(h),p){const t=new xw(e,o,h);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{zb(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Aw(e,u_));const d=Ub(h);return d.onDestroy(()=>{c.forEach(e=>Iw(e,u_)),b_(a,t.toStyles)}),u.forEach(e=>{zb(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new vg(e.duration,e.delay)}}class xw{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new vg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>$b(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){zb(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Cw(e){return e&&1===e.nodeType}function kw(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ew(e,t,n,s,r){const i=[];n.forEach(e=>i.push(kw(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=yw,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>kw(e,i[a++])),o}function Tw(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;function i(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:s.has(o)?1:i(o),r.set(e,t),t}return t.forEach(e=>{const t=i(e);1!==t&&n.get(t).push(e)}),n}function Aw(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Iw(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Ow(e,t,n){Ub(n).onDone(()=>e.processLeaveNode(t))}function Rw(e,t){for(let n=0;nr.add(e)):t.set(e,s),n.delete(e),!0}class Nw{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Sw(e,t,n),this._timelineEngine=new hw(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=L_(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new lw(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=Wb(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=Wb(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Dw(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=jw(t[0]),t.length>1&&(s=jw(t[t.length-1]))):t&&(n=jw(t)),n||s?new Fw(e,n,s):null}let Fw=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&b_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(b_(this._element,this._initialStyles),this._endStyles&&(b_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(__(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(__(this._element,this._endStyles),this._endStyles=null),b_(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function jw(e){let t=null;const n=Object.keys(e);for(let s=0;sthis._handleCallback(e)}apply(){!function(e,t){const n=Ww(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Vw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Ww(e,"").split(","),s=Bw(n,t);s>=0&&(n.splice(s,1),zw(e,"",n.join(",")))}(this._element,this._name))}}function Hw(e,t,n){zw(e,"PlayState",n,$w(e,t))}function $w(e,t){const n=Ww(e,"");return n.indexOf(",")>0?Bw(n.split(","),t):Bw([n],t)}function Bw(e,t){for(let n=0;n=0)return n;return-1}function Vw(e,t,n){n?e.removeEventListener(qw,t):e.addEventListener(qw,t)}function zw(e,t,n,s){const r=Lw+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function Ww(e,t){return e.style[Lw+t]||""}class Qw{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Uw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:R_(this.element,n))})}this.currentSnapshot=e}}class Kw extends vg{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=s_(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class Gw{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return Xb(e)}matchesElement(e,t){return e_(e,t)}containsElement(e,t){return t_(e,t)}query(e,t,n){return n_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>s_(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=`${r}}\n`}),s+="}\n";const i=document.createElement("style");return i.textContent=s,i}animate(e,t,n,s,r,i=[],o){const a=i.filter(e=>e instanceof Qw),l={};A_(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=I_(e,t,l));if(0==n)return new Kw(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Dw(e,t),p=new Qw(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class Zw{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:R_(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Yw{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Jw().toString()),this._cssKeyframesDriver=new Gw}validateStyleProperty(e){return Xb(e)}matchesElement(e,t){return e_(e,t)}containsElement(e,t){return t_(e,t)}query(e,t,n){return n_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof Zw);A_(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Dw(e,t=I_(e,t=t.map(e=>g_(e,!1)),l));return new Zw(e,t,a,u)}}function Jw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Xw=(()=>{class e extends ug{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:ke.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?pg(e):e;return nS(this._renderer,null,t,"register",[n]),new eS(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(ds(Oa),ds(Xc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();class eS extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new tS(this._id,e,t||{},this._renderer)}}class tS{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return nS(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function nS(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const sS="@",rS="@.disabled";let iS=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new oS("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new aS(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(ds(Oa),ds(Nw),ds(wc))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();class oS{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==sS&&t==rS?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class aS extends oS{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==sS?"."==t.charAt(1)&&t==rS?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==sS){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=sS&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let lS=(()=>{class e extends Nw{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(ds(Xc),ds(i_),ds(tw))},e.\u0275prov=ue({token:e,factory:e.\u0275fac}),e})();const cS=[{provide:i_,useFactory:function(){return"function"==typeof Jw()?new Yw:new Gw}},{provide:new Kn("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:ug,useClass:Xw},{provide:tw,useFactory:function(){return new nw}},{provide:Nw,useClass:lS},{provide:Oa,useFactory:function(e,t,n){return new iS(e,t,n)},deps:[Ju,Nw,wc]}];let uS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({providers:cS,imports:[dh]}),e})(),hS=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e}),e.\u0275inj=he({imports:[[Nu]]}),e})(),dS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=We({type:e,bootstrap:[Lb]}),e.\u0275inj=he({providers:[],imports:[[dh,uS,Mb,zm,ov.forRoot(),hS.forRoot(),Wg.forRoot()]]}),e})();(function(){if(Dc)throw new Error("Cannot enable prod mode after platform setup.");Nc=!1})(),uh().bootstrapModule(dS).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);